com.jme.scene.state
Class StippleState

java.lang.Object
  extended by com.jme.scene.state.RenderState
      extended by com.jme.scene.state.StippleState
All Implemented Interfaces:
Savable
Direct Known Subclasses:
JOGLStippleState, LWJGLStippleState

public abstract class StippleState
extends RenderState

StippleState maintains a ByteBuffer containing the stipple mask which is applied by glPolygonStipple(mask).
The ByteBuffer needs to be 1024 Bytes big (32x32).

Author:
Christoph Luder

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme.scene.state.RenderState
RenderState.StateType
 
Field Summary
 
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
StippleState()
           
 
Method Summary
 java.lang.Class<?> getClassTag()
           
 RenderState.StateType getStateType()
          getStateType returns RenderState.StateType.Stipple
 java.nio.ByteBuffer getStippleMask()
          Returns the ByteBuffer containing the stipple mask.
 int getType()
          Deprecated. 
 void read(JMEImporter e)
           
 void setStippleMask(java.nio.ByteBuffer stippleMask)
          Sets the stipple mask to be used.
The ByteBuffer needs to be 1024 byte big.
 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
 

Constructor Detail

StippleState

public StippleState()
Method Detail

getStateType

public RenderState.StateType getStateType()
getStateType returns RenderState.StateType.Stipple

Specified by:
getStateType in class RenderState
Returns:
RenderState.StateType.Stipple
See Also:
RenderState.getStateType()

getType

@Deprecated
public int getType()
Deprecated. 

Description copied from class: RenderState
Defined by the subclass, this returns an int identifying the renderstate. For example, RS_CULL or RS_TEXTURE.

Specified by:
getType in class RenderState
Returns:
An int identifying this render state.

getStippleMask

public java.nio.ByteBuffer getStippleMask()
Returns the ByteBuffer containing the stipple mask.

Returns:
the stipple mask

setStippleMask

public void setStippleMask(java.nio.ByteBuffer stippleMask)
Sets the stipple mask to be used.
The ByteBuffer needs to be 1024 byte big.

Parameters:
stippleMask - ByteBuffer containing the stipple mask.

getClassTag

public java.lang.Class<?> getClassTag()
Specified by:
getClassTag in interface Savable
Overrides:
getClassTag in class RenderState

write

public void write(JMEExporter e)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class RenderState
Throws:
java.io.IOException

read

public void read(JMEImporter e)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class RenderState
Throws:
java.io.IOException