Constructor
new L3D.Engine()
Properties
The engine currently being updated and rendered.
Signal emitted when an Engine performs a fixed update.
Signal emitted when an Engine starts playing.
Signal emitted just after the engine draws the frame.
Signal emitted when an Engine performs a post update.
Signal emitted just before the engine draws the frame.
Signal emitted when an Engine performs a pre update.
Signal emitted when an Engine stops playing.
Signal emitted when an Engine performs an update.
The WebGL canvas using this Engine.
Methods
drawFrame(renderSettings)
Calls the active renderer to render the current frame.
renderSettings |
RenderSettings |
null
|
pause()
Pause the engine, which will skip the update loop but continue rendering.
play()
Start the engine playback. This will call the start event, and begine the update and render loop.
requestFrame()
Request the next frame to be drawn.
step()
If the Engine is paused, this calls the update event for a single frame.
stop()
Stop the engine, calling the stop event and ending the update and render loop.
update(step)
Calls the update method for all components.
step |
number | The time delta since the last frame |