Creates a WebGL context for the given canvas element
Whether to enable the stencil buffer for the WebGL context
The background color of the viewport
ReadonlygfxThe canvas element that the renderer draws to
ReadonlyglThe WebGL2 context used by the renderer
The viewport of the renderer
Gets the normalized device coordinates from the provided mouse coordinates.
The x coordinate of the mouse.
The y coordinate of the mouse.
The normalized device coordinates.
Resizes the graphics canvas and adjusts the viewport to maintain the provided aspect ratio.
The width of the graphics canvas in pixels.
The height of the graphics canvas in pixels.
The aspect ratio of the graphics canvas.
Creates a renderer object to use for drawing to a WebGL2 canvas