com.threerings.opengl.renderer.config
Class StencilStateConfig

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.renderer.config.StencilStateConfig
All Implemented Interfaces:
Exportable, Copyable, Cloneable

public class StencilStateConfig
extends DeepObject
implements Exportable

Configurable stencil state.


Nested Class Summary
static class StencilStateConfig.Op
          Stencil ops.
static class StencilStateConfig.TestFunc
          Stencil test function constants.
 
Field Summary
 StencilStateConfig.Op depthFailOp
          The stencil depth fail operation.
 StencilStateConfig.Op failOp
          The stencil fail operation.
 StencilStateConfig.Op passOp
          The stencil pass operation.
 StencilStateConfig.TestFunc testFunc
          The stencil test function.
 int testMask
          The stencil test mask.
 int testRef
          The stencil test reference value.
 boolean uniqueInstance
          If true, do not use a shared instance.
 int writeMask
          The stencil write mask.
 
Constructor Summary
StencilStateConfig()
           
 
Method Summary
 StencilState getState()
          Returns the corresponding stencil state.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

testFunc

@Editable(hgroup="t")
public StencilStateConfig.TestFunc testFunc
The stencil test function.


testRef

@Editable(min=0.0,
          hgroup="t")
public int testRef
The stencil test reference value.


failOp

@Editable(hgroup="o")
public StencilStateConfig.Op failOp
The stencil fail operation.


depthFailOp

@Editable(hgroup="o")
public StencilStateConfig.Op depthFailOp
The stencil depth fail operation.


passOp

@Editable(hgroup="o")
public StencilStateConfig.Op passOp
The stencil pass operation.


testMask

@Editable(hgroup="m")
public int testMask
The stencil test mask.


writeMask

@Editable(hgroup="m")
public int writeMask
The stencil write mask.


uniqueInstance

@Editable
public boolean uniqueInstance
If true, do not use a shared instance.

Constructor Detail

StencilStateConfig

public StencilStateConfig()
Method Detail

getState

public StencilState getState()
Returns the corresponding stencil state.



Copyright © 2011. All Rights Reserved.