Static methods

staticfromSource(vertSource:String, fragSource:String):Shader

Available on clay

Instanciates a shader from source. Although it would expect GLSL code in default ceramic backends (luxe backend), Expected shading language could be different in some future backend implementations.

Constructor

new(backendItem:Shader, ?customAttributes:ReadOnlyArray<ShaderAttribute>)

Variables

Methods

inlinesetInt(name:String, value:Int):Void

inlinesetFloat(name:String, value:Float):Void

inlinesetColor(name:String, color:Color):Void

inlinesetAlphaColor(name:String, color:AlphaColor):Void

inlinesetVec2(name:String, x:Float, y:Float):Void

inlinesetVec3(name:String, x:Float, y:Float, z:Float):Void

inlinesetVec4(name:String, x:Float, y:Float, z:Float, w:Float):Void

inlinesetFloatArray(name:String, array:Array<Float>):Void

inlinesetTexture(name:String, slot:Int, texture:Texture):Void

inlinesetMat4FromTransform(name:String, transform:Transform):Void

Inherited Events

Defined by Entity

@:dox(show)dispose(entity:Entity):Void

@:dox(show)destroy(entity:Entity):Void

Inherited Variables

Defined by Entity

read onlyhasData:Bool

@:value(null)id:String = null

read onlydestroyed:Bool

read onlydisposed:Bool

@:value(null)read onlyautoruns:Array<Autorun> = null

@editablecomponents:ReadOnlyMap<String, Component>

Public components mapping. Contain components created separately with component() or macro-based components as well.

scriptContent:ScriptContent

Available with script plugin

script:Script

Available with script plugin

Inherited Methods

Defined by Entity

dispose():Void

Schedules destroy, at the end of the current frame.

unbindEvents():Void

Remove all events handlers from this entity.

autorun(run:() ‑> Void, ?afterRun:() ‑> Void):Autorun

Creates a new Autorun instance with the given callback associated with the current entity.

Parameters:

run

The run callback

Returns:

The autorun instance

tween(?easing:Easing, duration:Float, fromValue:Float, toValue:Float, update:(Float, Float) ‑> Void):Tween

component<C>(?name:String, ?component:Null<C>):C