mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
825 B
825 B
resetParameters
luma.gl enables a 'stateless' WebGL programming model. In this model, state settings can be passed as parameters to rendering commands, or applied temporarily using withParameters rather than being set and unset directly on the global state. For more information, see the remarks.
The following functions are provided:
resetParameters- Resets all GL context parameters to their default values
Usage
Reset all parameters to their default values
resetParameters(gl);
Methods
resetParameters
resetParameters(gl)
Resets all gl context parameters to default values.
gl{WebGLRenderingContext} - context Returns no value.
Note that technically, resetting context parameters does not fully reset the context, as buffer binding, z buffer values etc are not reset.