Implements
Members
blendMode BLEND_MODES readonly
Blend mode
- Default Value:
- 'none'
Polygon offset
State ID
Whether current blend equation is different
Collection of check calls
defaultState State protectedreadonly
Default WebGL State
GL context
Collection of calls
Methods
Sets the state, when previous state is unknown.
Name | Type | Description |
---|---|---|
state |
unknown |
The state to set |
Resets all the logic and disables the VAOs.
Sets the current state
Name | Type | Description |
---|---|---|
state |
unknown |
The state to set. |
Sets whether to enable or disable 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 mask.
Name | Type | Description |
---|---|---|
value |
boolean |
Turn on or off webgl depth mask. |
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 whether to enable or disable polygon offset fill.
Name | Type | Description |
---|---|---|
value |
boolean |
Turn on or off webgl polygon offset testing. |
Sets the polygon offset.
Name | Type | Description |
---|---|---|
value |
number |
the polygon offset |
scale |
number |
the polygon offset scale |