|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jme.scene.state.RenderState
com.jme.scene.state.ZBufferState
ZBufferState maintains how the use of the depth buffer is to
occur. Depth buffer comparisons are used to evaluate what incoming fragment
will be used. This buffer is based on z depth, or distance between the
pixel source and the eye.
| Field Summary | |
static int |
CF_ALWAYS
Depth comparison always passes. |
static int |
CF_EQUAL
Passes if the incoming value is the same as the stored value. |
static int |
CF_GEQUAL
Passes if the incoming value is greater than or equal to the stored value. |
static int |
CF_GREATER
Passes if the incoming value is greater than the stored value. |
static int |
CF_LEQUAL
Passes if the incoming value is less than or equal to the stored value. |
static int |
CF_LESS
Passes if the incoming value is less than the stored value. |
static int |
CF_NEVER
Depth comparison never passes. |
static int |
CF_NOTEQUAL
Passes if the incoming value is not equal to the stored value. |
protected int |
function
Depth function. |
protected boolean |
writable
Depth mask is writable or not. |
| Fields inherited from class com.jme.scene.state.RenderState |
RS_ALPHA, RS_ATTRIBUTE, RS_CULL, RS_DITHER, RS_FOG, RS_FRAGMENT_PROGRAM, RS_GLSL_SHADER_OBJECTS, RS_LIGHT, RS_MATERIAL, RS_MAX_STATE, RS_SHADE, RS_STENCIL, RS_TEXTURE, RS_VERTEX_PROGRAM, RS_WIREFRAME, RS_ZBUFFER |
| Constructor Summary | |
ZBufferState()
Constructor instantiates a new ZBufferState object. |
|
| Method Summary | |
int |
getFunction()
getFunction returns the current depth function. |
int |
getType()
getType returns the type of renderstate this is. |
boolean |
isWritable()
isWritable returns if the depth mask is writable or not. |
void |
setFunction(int function)
setFunction sets the depth function. |
void |
setWritable(boolean writable)
setWritable sets the depth mask writable or not. |
| Methods inherited from class com.jme.scene.state.RenderState |
apply, extract, isEnabled, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CF_NEVER
public static final int CF_LESS
public static final int CF_EQUAL
public static final int CF_LEQUAL
public static final int CF_GREATER
public static final int CF_NOTEQUAL
public static final int CF_GEQUAL
public static final int CF_ALWAYS
protected int function
protected boolean writable
| Constructor Detail |
public ZBufferState()
ZBufferState object. The
initial values are CF_LESS and depth writing on.
| Method Detail |
public int getFunction()
getFunction returns the current depth function.
public void setFunction(int function)
setFunction sets the depth function. If an invalid value is
passed, CF_LESS is used.
function - the depth function.public boolean isWritable()
isWritable returns if the depth mask is writable or not.
public void setWritable(boolean writable)
setWritable sets the depth mask writable or not.
writable - true to turn on depth writing, false otherwise.public int getType()
getType returns the type of renderstate this is.
(RS_ZBUFFER).
getType in class RenderStateRenderState.getType()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||