|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.state.RenderState
com.threerings.opengl.renderer.state.StencilState
public class StencilState
Contains the stencil state.
| Field Summary | |
|---|---|
static StencilState |
DISABLED
Disables stencil testing/writing. |
| Fields inherited from class com.threerings.opengl.renderer.state.RenderState |
|---|
ALPHA_STATE, ARRAY_STATE, COLOR_MASK_STATE, COLOR_STATE, CULL_STATE, DEPTH_STATE, FOG_STATE, LIGHT_STATE, LINE_STATE, MATERIAL_STATE, POINT_STATE, POLYGON_STATE, SHADER_STATE, STATE_COUNT, STENCIL_STATE, TEXTURE_STATE, TRANSFORM_STATE |
| Constructor Summary | |
|---|---|
StencilState(int stencilTestFunc,
int stencilTestRef,
int stencilTestMask,
int stencilFailOp,
int stencilDepthFailOp,
int stencilPassOp,
int stencilWriteMask)
Creates a new stencil state with the supplied parameters. |
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies this state. |
static StencilState |
getInstance(int stencilTestFunc,
int stencilTestRef,
int stencilTestMask,
int stencilFailOp,
int stencilDepthFailOp,
int stencilPassOp,
int stencilWriteMask)
Returns a stencil state instance with the supplied parameters. |
int |
getStencilDepthFailOp()
Returns the action to take when the fragment passes the stencil test, but fails the depth test. |
int |
getStencilFailOp()
Returns the action to take when the fragment fails the stencil test. |
int |
getStencilPassOp()
Returns the action to take when the fragment passes both the stencil test and the depth test. |
int |
getStencilTestFunc()
Returns the stencil test function. |
int |
getStencilTestMask()
Returns the stencil test mask. |
int |
getStencilTestRef()
Returns the stencil test reference value. |
int |
getStencilWriteMask()
Returns the stencil write mask. |
int |
getType()
Returns the type of this state. |
| Methods inherited from class com.threerings.opengl.renderer.state.RenderState |
|---|
copy, createDefaultSet, createEmptySet, getDefaults, isDirty, setDirty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final StencilState DISABLED
| Constructor Detail |
|---|
public StencilState(int stencilTestFunc,
int stencilTestRef,
int stencilTestMask,
int stencilFailOp,
int stencilDepthFailOp,
int stencilPassOp,
int stencilWriteMask)
| Method Detail |
|---|
public static StencilState getInstance(int stencilTestFunc,
int stencilTestRef,
int stencilTestMask,
int stencilFailOp,
int stencilDepthFailOp,
int stencilPassOp,
int stencilWriteMask)
public int getStencilTestFunc()
public int getStencilTestRef()
public int getStencilTestMask()
public int getStencilFailOp()
public int getStencilDepthFailOp()
public int getStencilPassOp()
public int getStencilWriteMask()
public int getType()
RenderState
getType in class RenderStatepublic void apply(Renderer renderer)
RenderState
apply in class RenderState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||