new DefaultResources()
Methods
cleanUp() → {void}
unload all resources
Returns:
- Type
- void
getConstColorShader() → {SimpleShader}
Return the Constant Color Shader
Returns:
Simple Shader
- Type
- SimpleShader
getDefaultFont() → {String}
Return the Global default font
Returns:
Default font name
- Type
- String
getGlobalAmbientColor() → {Array.<Float>}
Return Global Ambient Color [R, G, B, A]
Returns:
Global Ambient Color
- Type
- Array.<Float>
getGlobalAmbientIntensity() → {Number}
Return Global Ambient Intensity Value
Returns:
Global Ambient Intensity Value
- Type
- Number
getIllumShader() → {IllumShader}
Return the Illum Shader
Returns:
Illum Shader
- Type
- IllumShader
getLightShader() → {LightShader}
Return the Light Shader
Returns:
Light Shader
- Type
- LightShader
getLineShader() → {LineShader}
Return the Line Shader
Returns:
Line Shader
- Type
- LineShader
getParticleShader() → {TextureShader}
Return the Particle Shader
Returns:
Particle Shader
- Type
- TextureShader
getShadowCasterShader() → {ShadowCasterShader}
Return the Shadow Caster Shader
Returns:
Shadow Caster Shader
- Type
- ShadowCasterShader
getShadowReceiverShader() → {SpriteShader}
Return the Shadow Receiver Shader
Returns:
Shadow Receiver Shader
- Type
- SpriteShader
getSpriteShader() → {SpriteShader}
Return the Sprite Shader
Returns:
Sprite Shader
- Type
- SpriteShader
getTextureShader() → {TextureShader}
Return the Texture Shader
Returns:
Texture Shader
- Type
- TextureShader
getUnlitShader() → {UnlitShader}
Return the Unlit Shader
Returns:
Unlit Shader
- Type
- UnlitShader
getUnlitSpriteShader() → {UnlitSpriteShader}
Return the Unlit Sprite Shader
Returns:
Unlit Sprite Shader
- Type
- UnlitSpriteShader
getUnlitTextureShader() → {UnlitTextureShader}
Return the Unlit Texture Shader
Returns:
Unlit Texture Shader
- Type
- UnlitTextureShader
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
setGlobalAmbientColor(v) → {void}
Set Global Ambient Color [R, G, B, A]
Parameters:
Name | Type | Description |
---|---|---|
v |
type | Global Ambient Color |
Returns:
- Type
- void
setGlobalAmbientIntensity(v) → {void}
Set Global Ambient Intensity Value
Parameters:
Name | Type | Description |
---|---|---|
v |
Number | Global Ambient Intensity Value |
Returns:
- Type
- void