Create options
Destroy this Object
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
The rendering surface to render into TODO: allow other targets such as FBOs
The height of the rendering surface
The width of the rendering surface
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Add a one-time listener for a given event.
Remove all listeners, or those of the specified event.
Remove the listeners of a given event.
Render a frame
The frame to render
Resize the rendering surface
The destination width after resize
The destination height after resize
Generated using TypeDoc
object
should be in either of the following forms:interface EventTypes { 'event-with-parameters': any[] 'event-with-example-handler': (...args: any[]) => void }