Package com.ardor3d.renderer.state
Class CullState
java.lang.Object
com.ardor3d.renderer.state.RenderState
com.ardor3d.renderer.state.CullState
- All Implemented Interfaces:
Savable
CullState
determines 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 vertices counter clockwise and back as the side that traces its
vertices clockwise, a side (front or back) can be culled, or not shown when the model is rendered. Instead, the side
will be transparent. NOTE: Any object that is placed in the transparent queue with two sided transparency will not use the cullstate that is attached to it. Instead, using the CullStates necessary for rendering two sided transparency.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.ardor3d.renderer.state.RenderState
RenderState.StateStack, RenderState.StateType
-
Field Summary
Fields inherited from class com.ardor3d.renderer.state.RenderState
_quickCompare
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetType()
void
read
(InputCapsule capsule) void
setCullFace
(CullState.Face face) void
setPolygonWind
(CullState.PolygonWind windOrder) void
write
(OutputCapsule capsule) Methods inherited from class com.ardor3d.renderer.state.RenderState
createState, extract, getClassTag, isEnabled, needsRefresh, setEnabled, setNeedsRefresh, setQuickCompares
-
Constructor Details
-
CullState
public CullState()
-
-
Method Details
-
getType
- Specified by:
getType
in classRenderState
- Returns:
- An statetype enum value for the subclass.
- See Also:
-
setCullFace
- Parameters:
face
- The new face to cull.
-
getCullFace
- Returns:
- the currently set face to cull.
-
setPolygonWind
- Parameters:
windOrder
- The new polygonWind order.
-
getPolygonWind
- Returns:
- the currently set polygonWind order.
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classRenderState
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classRenderState
- Throws:
IOException
-
createStateRecord
- Specified by:
createStateRecord
in classRenderState
-