Clears selected buffers to specified values.
Destroys the gl context and releases all associated resources.
Executes an empty draw command
Registers a callback
to be called on each animation frame.
This method integrates with requestAnimationFrame
and context loss
events. It also calls gl.flush
and drains several internal buffers,
so you should try to do all your rendering to the drawing buffer within
the frame callback.
Test if an extension is present. Argument is case insensitive.
For more information on WebGL extensions, see the WebGL extension registry.
Relevant WebGL APIs
case-insensitive name of WebGL extension
Returns Total time elapsed since regl was initialized in seconds.
Updates the values of internal times and recalculates the size of viewports.
Read entire screen.
Read entire screen into an existing ArrayBufferView
.
Read a selected region of screen or framebuffer.
Creates an empty texture with given dimensions.
width of a texture, in pixels (Default: 1
)
height of a texture, in pixels (Default: equal to width
)
Generated using TypeDoc
Documentation for interface
Regl
.