|
|||||||||||
| 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.CullState
CullState determins which side of a model will be visible when
it is rendered. By default, both sides are visible. Define front as
the side that traces its vertexes counter clockwise and back as the side
that traces its vertexes clockwise, a side (front or back) can be culled, or
not shown when the model is rendered. Instead, the side will be transparent.
| Field Summary | |
static int |
CS_BACK
Cull the back sides. |
static int |
CS_FRONT
Cull the front sides. |
static int |
CS_NONE
No sides of the model's triangles are culled. |
| 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 | |
CullState()
|
|
| Method Summary | |
int |
getCullMode()
Returns the current cull mode for this CullState. |
int |
getType()
getType returns RenderState.RS_CULL |
void |
setCullMode(int mode)
Sets the cull mode to the integer given. |
| 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 CS_NONE
public static final int CS_FRONT
public static final int CS_BACK
| Constructor Detail |
public CullState()
| Method Detail |
public int getType()
getType returns RenderState.RS_CULL
getType in class RenderStateRenderState.getType()public void setCullMode(int mode)
mode - The new cull mode.public int getCullMode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||