|
|||||||||||
| 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.WireframeState
WireframeState maintains whether a node and it's children
should be drawn in wireframe or solid fill. By default all nodes are
rendered solid.
| Field Summary | |
protected int |
face
Default wireframe of front and back. |
protected float |
lineWidth
Default line width of 1 pixel. |
static int |
WS_BACK
The back will be wireframed, but the front will be solid. |
static int |
WS_FRONT
The front will be wireframed, but the back will be solid. |
static int |
WS_FRONT_AND_BACK
Both sides of the model are wireframed. |
| 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 | |
WireframeState()
|
|
| Method Summary | |
int |
getFace()
Returns the face state of this wireframe state. |
float |
getLineWidth()
Returns the current lineWidth. |
int |
getType()
getType returns the type of render state this is. |
void |
setFace(int face)
setFace sets which face will recieve the wireframe. |
void |
setLineWidth(float width)
setLineWidth sets the width of lines the wireframe
is drawn in. |
| 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 WS_FRONT_AND_BACK
public static final int WS_FRONT
public static final int WS_BACK
protected int face
protected float lineWidth
| Constructor Detail |
public WireframeState()
| Method Detail |
public int getType()
getType returns the type of render state this is.
(RS_WIREFRAME).
getType in class RenderStateRenderState.getType()public void setLineWidth(float width)
setLineWidth sets the width of lines the wireframe
is drawn in. Attempting to set a line width smaller than 0.0
throws an IllegalArgumentException.
width - the line width, in pixelspublic float getLineWidth()
public void setFace(int face)
setFace sets which face will recieve the wireframe. One of WS_FRONT_AND_BACK,
WS_FRONT, or WS_BACK
face - The flag signaling which face will recieve the wireframe.public int getFace()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||