|
||||||||||
| 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.DepthState
public class DepthState
Contains the depth buffer testing/writing state.
| Field Summary | |
|---|---|
static DepthState |
DISABLED
A depth state for neither testing nor writing to the depth buffer. |
static DepthState |
TEST
A depth state for testing, but not writing to, the depth buffer. |
static DepthState |
TEST_WRITE
A depth state for testing and writing to the depth buffer. |
static DepthState |
WRITE
A depth state for writing to, but not testing, the depth buffer. |
| 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 | |
|---|---|
DepthState(int depthTestFunc,
boolean depthMask)
Creates a new depth state with the supplied parameters. |
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies this state. |
boolean |
getDepthMask()
Returns the depth mask value. |
int |
getDepthTestFunc()
Returns the depth test function. |
static DepthState |
getInstance(int depthTestFunc,
boolean depthMask)
Returns a depth state instance with the supplied parameters. |
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 DepthState TEST
public static final DepthState WRITE
public static final DepthState TEST_WRITE
public static final DepthState DISABLED
| Constructor Detail |
|---|
public DepthState(int depthTestFunc,
boolean depthMask)
| Method Detail |
|---|
public static DepthState getInstance(int depthTestFunc,
boolean depthMask)
public int getDepthTestFunc()
public boolean getDepthMask()
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 | |||||||||