GLState

WebGL context state management, allowing for the pushing and popping of the GL state to be able to temporarily change the GL state and restore it. This requires all state changes to go through GLState. Access the global GLState from GLContext.state.

Constructor

new L3D.GLState()

Methods

setFlag(flag, state)

Set the gl.enable, gl.disable state of a flag

Parameters
flag number
state bool