Methods
cleanUp() → {void}
Detaches and removes the resources from the DefaultResources Program
- Source:
Returns:
- Type
- void
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
getGL() → {WebGLContext}
Accessor of the webgl context
- Source:
Returns:
- Type
- WebGLContext
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
initializeEngineCore(htmlCanvasID, myGame) → {void}
initialize all of the EngineCore components
Parameters:
Name | Type | Description |
---|---|---|
htmlCanvasID |
String | |
myGame |
Class |
- Source:
Returns:
- Type
- void
startScene(scene) → {void}
Loads the scene and starts the gameloop
Parameters:
Name | Type | Description |
---|---|---|
scene |
Scene | to load |
- Source:
Returns:
- Type
- void