Class: WebGLState

PIXI. WebGLState

A WebGL state machines

new PIXI.WebGLState(gl)

Name Type Description
gl WebGLRenderingContext

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.