Class: Core

gEngine.Core

new Core()

Global variable EngineCore
Source:

Methods

(static) cleanUp() → {void}

Detaches and removes the resources from the DefaultResources Program
Source:
Returns:
Type
void

(static) clearCanvas(color) → {void}

Clears the draw area and draws one square
Parameters:
Name Type Description
color Float [R, G, B, A] Color array
Source:
Returns:
Type
void

(static) getGL() → {WebGLContext}

Accessor of the webgl context
Source:
Returns:
Type
WebGLContext

(static) inheritPrototype(subClass, superClass) → {void}

Inherits a SuperClass prototype functions into the SubClass
Parameters:
Name Type Description
subClass Class class to inherit to
superClass Class class to inherit from
Source:
Returns:
Type
void

(static) initializeEngineCore(htmlCanvasID, myGame) → {void}

initialize all of the EngineCore components
Parameters:
Name Type Description
htmlCanvasID String
myGame Class
Source:
Returns:
Type
void

(static) startScene(scene) → {void}

Loads the scene and starts the gameloop
Parameters:
Name Type Description
scene Scene to load
Source:
Returns:
Type
void