Class: DefaultResources

gEngine.DefaultResources()

new DefaultResources()

Source:

Methods

cleanUp() → {void}

unload all resources
Source:
Returns:
Type
void

getConstColorShader() → {SimpleShader}

Return the Constant Color Shader
Source:
Returns:
Simple Shader
Type
SimpleShader

getDefaultFont() → {String}

Return the Global default font
Source:
Returns:
Default font name
Type
String

getGlobalAmbientColor() → {Array.<Float>}

Return Global Ambient Color [R, G, B, A]
Source:
Returns:
Global Ambient Color
Type
Array.<Float>

getGlobalAmbientIntensity() → {Number}

Return Global Ambient Intensity Value
Source:
Returns:
Global Ambient Intensity Value
Type
Number

getIllumShader() → {IllumShader}

Return the Illum Shader
Source:
Returns:
Illum Shader
Type
IllumShader

getLightShader() → {LightShader}

Return the Light Shader
Source:
Returns:
Light Shader
Type
LightShader

getLineShader() → {LineShader}

Return the Line Shader
Source:
Returns:
Line Shader
Type
LineShader

getParticleShader() → {TextureShader}

Return the Particle Shader
Source:
Returns:
Particle Shader
Type
TextureShader

getShadowCasterShader() → {ShadowCasterShader}

Return the Shadow Caster Shader
Source:
Returns:
Shadow Caster Shader
Type
ShadowCasterShader

getShadowReceiverShader() → {SpriteShader}

Return the Shadow Receiver Shader
Source:
Returns:
Shadow Receiver Shader
Type
SpriteShader

getSpriteShader() → {SpriteShader}

Return the Sprite Shader
Source:
Returns:
Sprite Shader
Type
SpriteShader

getTextureShader() → {TextureShader}

Return the Texture Shader
Source:
Returns:
Texture Shader
Type
TextureShader

getUnlitShader() → {UnlitShader}

Return the Unlit Shader
Source:
Returns:
Unlit Shader
Type
UnlitShader

getUnlitSpriteShader() → {UnlitSpriteShader}

Return the Unlit Sprite Shader
Source:
Returns:
Unlit Sprite Shader
Type
UnlitSpriteShader

getUnlitTextureShader() → {UnlitTextureShader}

Return the Unlit Texture Shader
Source:
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
Source:
Returns:
Type
void

setGlobalAmbientColor(v) → {void}

Set Global Ambient Color [R, G, B, A]
Parameters:
Name Type Description
v type Global Ambient Color
Source:
Returns:
Type
void

setGlobalAmbientIntensity(v) → {void}

Set Global Ambient Intensity Value
Parameters:
Name Type Description
v Number Global Ambient Intensity Value
Source:
Returns:
Type
void