new DefaultResources()
Methods
(static) cleanUp() → {void}
unload all resources
Returns:
- Type
- void
(static) cleanUp() → {void}
unload all resources
Returns:
- Type
- void
(static) getConstColorShader() → {SimpleShader}
Return the Constant Color Shader
Returns:
Simple Shader
- Type
- SimpleShader
(static) getConstColorShader() → {SimpleShader}
Return the Constant Color Shader
Returns:
Simple Shader
- Type
- SimpleShader
(static) getDefaultFont() → {String}
Return the Global default font
Returns:
Default font name
- Type
- String
(static) getDefaultFont() → {String}
Return the Global default font
Returns:
Default font name
- Type
- String
(static) getGlobalAmbientColor() → {Array.<Float>}
Return Global Ambient Color [R, G, B, A]
Returns:
Global Ambient Color
- Type
- Array.<Float>
(static) getGlobalAmbientColor() → {Array.<Float>}
Return Global Ambient Color [R, G, B, A]
Returns:
Global Ambient Color
- Type
- Array.<Float>
(static) getGlobalAmbientIntensity() → {Number}
Return Global Ambient Intensity Value
Returns:
Global Ambient Intensity Value
- Type
- Number
(static) getGlobalAmbientIntensity() → {Number}
Return Global Ambient Intensity Value
Returns:
Global Ambient Intensity Value
- Type
- Number
(static) getIllumShader() → {IllumShader}
Return the Illum Shader
Returns:
Illum Shader
- Type
- IllumShader
(static) getIllumShader() → {IllumShader}
Return the Illum Shader
Returns:
Illum Shader
- Type
- IllumShader
(static) getLightShader() → {LightShader}
Return the Light Shader
Returns:
Light Shader
- Type
- LightShader
(static) getLightShader() → {LightShader}
Return the Light Shader
Returns:
Light Shader
- Type
- LightShader
(static) getLineShader() → {LineShader}
Return the Line Shader
Returns:
Line Shader
- Type
- LineShader
(static) getLineShader() → {LineShader}
Return the Line Shader
Returns:
Line Shader
- Type
- LineShader
(static) getParticleShader() → {TextureShader}
Return the Particle Shader
Returns:
Particle Shader
- Type
- TextureShader
(static) getParticleShader() → {TextureShader}
Return the Particle Shader
Returns:
Particle Shader
- Type
- TextureShader
(static) getShadowCasterShader() → {ShadowCasterShader}
Return the Shadow Caster Shader
Returns:
Shadow Caster Shader
- Type
- ShadowCasterShader
(static) getShadowCasterShader() → {ShadowCasterShader}
Return the Shadow Caster Shader
Returns:
Shadow Caster Shader
- Type
- ShadowCasterShader
(static) getShadowReceiverShader() → {SpriteShader}
Return the Shadow Receiver Shader
Returns:
Shadow Receiver Shader
- Type
- SpriteShader
(static) getShadowReceiverShader() → {SpriteShader}
Return the Shadow Receiver Shader
Returns:
Shadow Receiver Shader
- Type
- SpriteShader
(static) getSpriteShader() → {SpriteShader}
Return the Sprite Shader
Returns:
Sprite Shader
- Type
- SpriteShader
(static) getSpriteShader() → {SpriteShader}
Return the Sprite Shader
Returns:
Sprite Shader
- Type
- SpriteShader
(static) getTextureShader() → {TextureShader}
Return the Texture Shader
Returns:
Texture Shader
- Type
- TextureShader
(static) getTextureShader() → {TextureShader}
Return the Texture Shader
Returns:
Texture Shader
- Type
- TextureShader
(static) initialize(callBackFunction) → {void}
Initilize Default Resources.
Calls callBackFunction when finished loading.
Parameters:
Name | Type | Description |
---|---|---|
callBackFunction |
function | to call after loading completes |
Returns:
- Type
- void
(static) initialize(callBackFunction) → {void}
Initilize Default Resources.
Calls callBackFunction when finished loading.
Parameters:
Name | Type | Description |
---|---|---|
callBackFunction |
function | to call after loading completes |
Returns:
- Type
- void
(static) setGlobalAmbientColor(v) → {void}
Set Global Ambient Color [R, G, B, A]
Parameters:
Name | Type | Description |
---|---|---|
v |
type | Global Ambient Color |
Returns:
- Type
- void
(static) setGlobalAmbientColor(v) → {void}
Set Global Ambient Color [R, G, B, A]
Parameters:
Name | Type | Description |
---|---|---|
v |
type | Global Ambient Color |
Returns:
- Type
- void
(static) setGlobalAmbientIntensity(v) → {void}
Set Global Ambient Intensity Value
Parameters:
Name | Type | Description |
---|---|---|
v |
Number | Global Ambient Intensity Value |
Returns:
- Type
- void
(static) setGlobalAmbientIntensity(v) → {void}
Set Global Ambient Intensity Value
Parameters:
Name | Type | Description |
---|---|---|
v |
Number | Global Ambient Intensity Value |
Returns:
- Type
- void