Class

StateBlock

StateBlock()

A rendering state

Constructor

new StateBlock()

Constructor

View Source StateBlock.js, line 281

Members

BlendMode

blendMode

Blend mode

View Source StateBlock.js, line 292

DepthFunction

depthFunction

Depth function to use
Default Value:
  • {DepthFunction.Less}

View Source StateBlock.js, line 301

boolean

depthTest

Indicates if we want to test pixels with values in the depth buffer
Default Value:
  • {true}

View Source StateBlock.js, line 319

boolean

depthWrite

Indicates if we want to write in the depth buffer
Default Value:
  • {true}

View Source StateBlock.js, line 310

DrawingMode

drawingMode

Drawing mode
Default Value:
  • {DrawingMode.Triangles}

View Source StateBlock.js, line 328

FaceCulling

faceCulling

Face culling
Default Value:
  • {FaceCulling.Back}

View Source StateBlock.js, line 337

StencilOperation

stencilDepthTestFail

Operation to execute when stencil test failed using depth buffer
Default Value:
  • {StencilOperation.Keep}

View Source StateBlock.js, line 400

StencilFunction

stencilFunction

Stencil function to use
Default Value:
  • {StencilFunction.Less}

View Source StateBlock.js, line 346

number

stencilMask

Stencil mask value
Default Value:
  • {255}

View Source StateBlock.js, line 364

number

stencilReference

Stencil reference value
Default Value:
  • {0}

View Source StateBlock.js, line 355

StencilOperation

stencilSuccess

Operation to execute when stencil test is a success
Default Value:
  • {StencilOperation.Keep}

View Source StateBlock.js, line 409

boolean

stencilTest

Indicates if stencil test is active
Default Value:
  • {false}

View Source StateBlock.js, line 373

StencilOperation

stencilTestFail

Operation to execute when stencil test failed
Default Value:
  • {StencilOperation.Keep}

View Source StateBlock.js, line 391

number

stencilWrite

Value to write in the stencil buffer when stencil is active
Default Value:
  • {0xFF}

View Source StateBlock.js, line 382

Methods

isEqual(state) → {boolean}

Check if the given StateBlock instance is equal to this one
Parameters:
Name Type Description
state StateBlock A StateBlock instance

View Source StateBlock.js, line 418

True if the two states are equals, otherwise false
boolean