Get the actual resolution of the canvas.
Get the viewArea size set by the last setViewArea.
By default, canvasSize is used for the view area size.
Schedule a drawable to be rendered during the next renderDrawables call.
Must be a subclass of drawable and its class must contain a static descriptor property of type DrawableDescriptor.
since the last frame, in milliseconds.
Let go of every GPU resource held by the renderer.
It's up to the browser and driver whether these resources are actually freed. Nonetheless, when a renderer is no longer needed, this method should be called.
Return the world coordinates from a pixel's position.
The view area coordinates are also given in world coordinates.
Useful for picking.
The origin is in the display's top left corner. Just as in mouse events' clientX and clientY.
Render every drawable added since the last renderDrawables call.
Resizing of framebuffers and the canvas also takes effect
when calling renderDrawables.
Patch the current runtime settings with new values.
Set the camera transformation.
top (!) left. By default, equals to [0, canvasHeight].
need not be equal to the canvas size, though their aspect ratio should be the same to avoid stretching.
The main interface through which rendering can be achieved.
Multiple renderers are permitted on a single page.