com.jme.scene.state
Class ColorMaskState
java.lang.Object
com.jme.scene.state.RenderState
com.jme.scene.state.ColorMaskState
- All Implemented Interfaces:
- Savable
- Direct Known Subclasses:
- JOGLColorMaskState, LWJGLColorMaskState
public abstract class ColorMaskState
- extends RenderState
ColorMaskState
- Version:
- $Id: ColorMaskState.java 4137 2009-03-20 18:38:24Z christoph.luder $
- Author:
- Mike Talbot, Joshua Slack
|
Field Summary |
protected boolean |
alpha
|
protected boolean |
blue
|
protected boolean |
green
|
protected boolean |
red
|
| 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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
blue
protected boolean blue
green
protected boolean green
red
protected boolean red
alpha
protected boolean alpha
ColorMaskState
public ColorMaskState()
getType
public int getType()
- Deprecated. As of 2.0, use
RenderState.getStateType() instead.
getType return RenderState.RS_COLORMASK_STATE
- Specified by:
getType in class RenderState
- Returns:
- An int identifying this render state.
- See Also:
RenderState.getType()
getStateType
public RenderState.StateType getStateType()
getStateType returns the type RenderState.StateType.ColorMask
- Specified by:
getStateType in class RenderState
- Returns:
RenderState.StateType.ColorMask- See Also:
RenderState.getStateType()
setAll
public void setAll(boolean on)
getAlpha
public boolean getAlpha()
- Returns:
- Returns the alpha.
setAlpha
public void setAlpha(boolean alpha)
- Parameters:
alpha - The alpha to set.
getBlue
public boolean getBlue()
- Returns:
- Returns the blue.
setBlue
public void setBlue(boolean blue)
- Parameters:
blue - The blue to set.
getGreen
public boolean getGreen()
- Returns:
- Returns the green.
setGreen
public void setGreen(boolean green)
- Parameters:
green - The green to set.
getRed
public boolean getRed()
- Returns:
- Returns the red.
setRed
public void setRed(boolean red)
- Parameters:
red - The red to set.
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
getClassTag
public java.lang.Class<?> getClassTag()
- Description copied from interface:
Savable
- The peristed type for the object.
Note that tag here does not mean XML tag, but the class that the object
is tagged with.
- Specified by:
getClassTag in interface Savable- Overrides:
getClassTag in class RenderState
Copyright 2003-2009 jMonkeyEngine