Shader
Shaders implement the shadowing process by which the shadow state proxies the actual state. Each Property maintains a shader used for shadowing its associated state property.
The Shader#shadowProperty method is responsible for setting up the Shadow
proxy
for the state.
Shaders are setup through StateType instances associated with Property
objects
and there is rarely a need to directly interact with them.
Static Method Summary
Static Public Methods | ||
public static |
addDefault(name: *, shader: *) |
Constructor Summary
Public Constructor | ||
public |
constructor(property: *) |
Member Summary
Public Members | ||
public |
|
|
public |
[_automount]: *[] |
|
public |
|
|
public |
|
|
public |
|
|
public |
|
|
public |
[_property]: * |
|
public |
[_shaders]: {} |
Method Summary
Public Methods | ||
public |
add(name: *, shader: *, automount: *): * |
|
public |
addProperty(name: *, stateType: *) |
|
public |
autoShader(): * |
|
public |
autoShadow(): * |
|
public |
|
|
public |
elementShader(): * |
|
public |
get(name: *): * |
|
public |
has(name: *): * |
|
public |
isAutomount(name: *): boolean |
|
public |
property(): * |
|
public |
remove(name: *): * |
|
public |
setAutomountAll(automount: *) |
|
public |
setAutoshadow(value: *): * |
|
public |
setElementShader(shader: *, automount: *): * |
|
public |
setElementType(stateType: *): * |
|
public |
shaderFor(name: *, state: *): * |
|
public |
shadowProperty(time: *, name: *, parentState: *, parentImpl: *): * |
|
public |
shadowUndefinedProperties(state: *, impl: *, define: *) |
|
public |
shouldAutomount(): * |
|
public |
stateType(): * |
Static Public Methods
public static addDefault(name: *, shader: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
shader | * |
Public Constructors
public constructor(property: *) source
Params:
Name | Type | Attribute | Description |
property | * |
Public Members
public [_automountAll]: * source
public [_automount]: *[] source
public [_autoshadow]: * source
public [_elementShaderAutomount]: * source
public [_elementShader]: * source
public [_hasJitProperties]: * source
public [_property]: * source
public [_shaders]: {} source
Public Methods
public add(name: *, shader: *, automount: *): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
shader | * | ||
automount | * |
Return:
* |
public addProperty(name: *, stateType: *) source
Params:
Name | Type | Attribute | Description |
name | * | ||
stateType | * |
public setAutomountAll(automount: *) source
Params:
Name | Type | Attribute | Description |
automount | * |
public setElementShader(shader: *, automount: *): * source
Params:
Name | Type | Attribute | Description |
shader | * | ||
automount | * |
Return:
* |
public setElementType(stateType: *): * source
Params:
Name | Type | Attribute | Description |
stateType | * |
Return:
* |
public shaderFor(name: *, state: *): * source
Params:
Name | Type | Attribute | Description |
name | * | ||
state | * |
Return:
* |
public shadowProperty(time: *, name: *, parentState: *, parentImpl: *): * source
Params:
Name | Type | Attribute | Description |
time | * | ||
name | * | ||
parentState | * | ||
parentImpl | * |
Return:
* |
public shadowUndefinedProperties(state: *, impl: *, define: *) source
Params:
Name | Type | Attribute | Description |
state | * | ||
impl | * | ||
define | * |