Class: DefaultResources

gEngine.DefaultResources

new DefaultResources()

Source:

Methods

(static) cleanUp() → {void}

unload all resources
Source:
Returns:
Type
void

(static) cleanUp() → {void}

unload all resources
Source:
Returns:
Type
void

(static) getConstColorShader() → {SimpleShader}

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

(static) getConstColorShader() → {SimpleShader}

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

(static) getDefaultFont() → {String}

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

(static) getDefaultFont() → {String}

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

(static) getGlobalAmbientColor() → {Array.<Float>}

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

(static) getGlobalAmbientColor() → {Array.<Float>}

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

(static) getGlobalAmbientIntensity() → {Number}

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

(static) getGlobalAmbientIntensity() → {Number}

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

(static) getIllumShader() → {IllumShader}

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

(static) getIllumShader() → {IllumShader}

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

(static) getLightShader() → {LightShader}

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

(static) getLightShader() → {LightShader}

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

(static) getLineShader() → {LineShader}

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

(static) getLineShader() → {LineShader}

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

(static) getParticleShader() → {TextureShader}

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

(static) getParticleShader() → {TextureShader}

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

(static) getShadowCasterShader() → {ShadowCasterShader}

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

(static) getShadowCasterShader() → {ShadowCasterShader}

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

(static) getShadowReceiverShader() → {SpriteShader}

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

(static) getShadowReceiverShader() → {SpriteShader}

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

(static) getSpriteShader() → {SpriteShader}

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

(static) getSpriteShader() → {SpriteShader}

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

(static) getTextureShader() → {TextureShader}

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

(static) getTextureShader() → {TextureShader}

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

(static) setGlobalAmbientColor(v) → {void}

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

(static) setGlobalAmbientColor(v) → {void}

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

(static) setGlobalAmbientIntensity(v) → {void}

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

(static) setGlobalAmbientIntensity(v) → {void}

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

gEngine.DefaultResources

new DefaultResources()

Source:

Methods

(static) cleanUp() → {void}

unload all resources
Source:
Returns:
Type
void

(static) cleanUp() → {void}

unload all resources
Source:
Returns:
Type
void

(static) getConstColorShader() → {SimpleShader}

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

(static) getConstColorShader() → {SimpleShader}

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

(static) getDefaultFont() → {String}

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

(static) getDefaultFont() → {String}

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

(static) getGlobalAmbientColor() → {Array.<Float>}

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

(static) getGlobalAmbientColor() → {Array.<Float>}

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

(static) getGlobalAmbientIntensity() → {Number}

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

(static) getGlobalAmbientIntensity() → {Number}

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

(static) getIllumShader() → {IllumShader}

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

(static) getIllumShader() → {IllumShader}

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

(static) getLightShader() → {LightShader}

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

(static) getLightShader() → {LightShader}

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

(static) getLineShader() → {LineShader}

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

(static) getLineShader() → {LineShader}

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

(static) getParticleShader() → {TextureShader}

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

(static) getParticleShader() → {TextureShader}

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

(static) getShadowCasterShader() → {ShadowCasterShader}

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

(static) getShadowCasterShader() → {ShadowCasterShader}

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

(static) getShadowReceiverShader() → {SpriteShader}

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

(static) getShadowReceiverShader() → {SpriteShader}

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

(static) getSpriteShader() → {SpriteShader}

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

(static) getSpriteShader() → {SpriteShader}

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

(static) getTextureShader() → {TextureShader}

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

(static) getTextureShader() → {TextureShader}

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

(static) setGlobalAmbientColor(v) → {void}

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

(static) setGlobalAmbientColor(v) → {void}

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

(static) setGlobalAmbientIntensity(v) → {void}

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

(static) setGlobalAmbientIntensity(v) → {void}

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