Class: WebGLState

Tiny. WebGLState

A WebGL state machines

Name Type Description
gl WebGLRenderingContext

The current WebGL rendering context

Members

activeStateUint8Array

The current active state

defaultStateUint8Array

The default state

glWebGLRenderingContext

The current WebGL rendering context

Methods

Pops a state out

Pushes a new active state

Disables all the vaos in use

Resets all the logic and disables the vaos

Enables or disabled blending.

Name Type Description
value boolean

Turn on or off webgl blending.

Sets the blend mode.

Name Type Description
value number

The blend mode to set to.

Sets whether to enable or disable cull face.

Name Type Description
value boolean

Turn on or off webgl cull face.

Sets whether to enable or disable depth test.

Name Type Description
value boolean

Turn on or off webgl depth testing.

Sets the gl front face.

Name Type Description
value boolean

true is clockwise and false is counter-clockwise

Sets the current state

Name Type Description
state *

The state to set.

Documentation generated by JSDoc 3.4.3 on Fri Jul 09 2021 19:32:27 GMT+0800 (CST)