|
||||||||||
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
public abstract class 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.
Nested Class Summary | |
---|---|
static class |
ZBufferState.TestFunction
|
Nested classes/interfaces inherited from class com.jme.scene.state.RenderState |
---|
RenderState.StateType |
Field Summary | |
---|---|
protected ZBufferState.TestFunction |
function
Depth function. |
protected boolean |
writable
Depth mask is writable or not. |
Fields inherited from class com.jme.scene.state.RenderState |
---|
QUICK_COMPARE, RS_BLEND, RS_CLIP, RS_COLORMASK_STATE, RS_CULL, 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 | |
---|---|
java.lang.Class<?> |
getClassTag()
|
ZBufferState.TestFunction |
getFunction()
getFunction returns the current depth function. |
RenderState.StateType |
getStateType()
getStateType returns the type RenderState.StateType.ZBuffer |
int |
getType()
Deprecated. As of 2.0, use RenderState.getStateType() instead. |
boolean |
isWritable()
isWritable returns if the depth mask is writable or not. |
void |
read(JMEImporter e)
|
void |
setFunction(ZBufferState.TestFunction function)
setFunction sets the depth function. |
void |
setWritable(boolean writable)
setWritable sets the depth mask writable or not. |
void |
write(JMEExporter e)
|
Methods inherited from class com.jme.scene.state.RenderState |
---|
apply, createStateRecord, extract, isEnabled, needsRefresh, setEnabled, setNeedsRefresh, setQuickCompares |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ZBufferState.TestFunction function
protected boolean writable
Constructor Detail |
---|
public ZBufferState()
ZBufferState
object. The
initial values are TestFunction.LessThan and depth writing on.
Method Detail |
---|
public ZBufferState.TestFunction getFunction()
getFunction
returns the current depth function.
public void setFunction(ZBufferState.TestFunction function)
setFunction
sets the depth function.
function
- the depth function.
java.lang.IllegalArgumentException
- if function is nullpublic 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()
RenderState.getStateType()
instead.
getType
returns the type of renderstate this is.
(RS_ZBUFFER).
getType
in class RenderState
RenderState.getType()
public RenderState.StateType getStateType()
getStateType
returns the type RenderState.StateType.ZBuffer
getStateType
in class RenderState
RenderState.StateType.ZBuffer
RenderState.getStateType()
public void write(JMEExporter e) throws java.io.IOException
write
in interface Savable
write
in class RenderState
java.io.IOException
public void read(JMEImporter e) throws java.io.IOException
read
in interface Savable
read
in class RenderState
java.io.IOException
public java.lang.Class<?> getClassTag()
getClassTag
in interface Savable
getClassTag
in class RenderState
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |