Members
instance :Engine|null
Type:
- Engine | null
scene :Scene|null
Type:
- Scene | null
Methods
(static) getInstance() → {Engine}
Gets current instance
Returns:
- Type
- Engine
getScene() → {Scene|null}
Returns:
- Type
- Scene | null
loadScene(scene) → {this}
load a scene to be rendered
Parameters:
Name | Type | Description |
---|---|---|
scene |
Scene |
Returns:
- Type
- this
simpleScene(setupFunction) → {Engine}
Compose a simple scene for a very quick start
Parameters:
Name | Type | Description |
---|---|---|
setupFunction |
function |
Returns:
- Type
- Engine
start() → {Engine}
Start the rendering loop. This updates automatically with requestAnimationFrame
Returns:
- Type
- Engine
update() → {Engine}
render the loaded scene
Returns:
- Type
- Engine
useScene(scene) → {Engine}
Use a scene
Parameters:
Name | Type | Description |
---|---|---|
scene |
Returns:
- Type
- Engine