CPDurationShader

org.cosplay.prefabs.shaders.CPDurationShader
abstract class CPDurationShader extends CPShader

Attributes

Source
CPDurationShader.scala
Graph
Supertypes
trait CPShader
trait CPAsset
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

protected def checkBgPixel(bgPx: CPPixel): Unit

Attributes

Source
CPDurationShader.scala
protected def checkDuration(durMs: Long): Unit

Attributes

Source
CPDurationShader.scala

Inherited methods

def render(ctx: CPSceneObjectContext, objRect: CPRect, inCamera: Boolean): Unit

Called on each frame pass on scene object that has this shaders attached to it. This callback is called regardless of whether or not the scene object is visible or in camera frame.

Called on each frame pass on scene object that has this shaders attached to it. This callback is called regardless of whether or not the scene object is visible or in camera frame.

Value parameters

ctx

Scene object context for this shader pass. Note that scene object context is associated with the scene object this shader is attached to.

inCamera

Whether or not the scene object is in camera frame. Note that this callback is called regardless of whether or not the scene object is visible or in camera frame.

objRect

Current rectangular shape of the scene object this shader is attached to in the canvas coordinate system.

Attributes

Inherited from:
CPShader
Source
CPShader.scala

Inherited fields

override val getOrigin: String

Gets the origin of this asset. Typically, this should be a URL, file name or class name for in-code assets like array images, animations or system font.

Gets the origin of this asset. Typically, this should be a URL, file name or class name for in-code assets like array images, animations or system font.

Attributes

Inherited from:
CPShader
Source
CPShader.scala