Chevron Down
Table of Contents
Chevron DownGetting Started
Chevron DownAPI Reference

resetParameters 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


Reset all parameters to their default values





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.