|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.state.RenderState
com.threerings.opengl.renderer.state.ColorMaskState
public class ColorMaskState
Contains the color mask state.
| Field Summary | |
|---|---|
static ColorMaskState |
ALL
All colors enabled. |
static ColorMaskState |
NONE
All colors disabled. |
| Fields inherited from class com.threerings.opengl.renderer.state.RenderState |
|---|
ALPHA_STATE, ARRAY_STATE, COLOR_MASK_STATE, COLOR_STATE, CULL_STATE, DEPTH_STATE, FOG_STATE, LIGHT_STATE, LINE_STATE, MATERIAL_STATE, POINT_STATE, POLYGON_STATE, SHADER_STATE, STATE_COUNT, STENCIL_STATE, TEXTURE_STATE, TRANSFORM_STATE |
| Constructor Summary | |
|---|---|
ColorMaskState(boolean red,
boolean green,
boolean blue,
boolean alpha)
Creates a new color mask state with the supplied parameters. |
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies this state. |
boolean |
getAlpha()
Checks whether the mask allows writing alpha values. |
boolean |
getBlue()
Checks whether the mask allows writing blue values. |
boolean |
getGreen()
Checks whether the mask allows writing green values. |
static ColorMaskState |
getInstance(boolean red,
boolean green,
boolean blue,
boolean alpha)
Returns a color mask state instance with the supplied parameters. |
boolean |
getRed()
Checks whether the mask allows writing red values. |
int |
getType()
Returns the type of this state. |
| Methods inherited from class com.threerings.opengl.renderer.state.RenderState |
|---|
copy, createDefaultSet, createEmptySet, getDefaults, isDirty, setDirty |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ColorMaskState ALL
public static final ColorMaskState NONE
| Constructor Detail |
|---|
public ColorMaskState(boolean red,
boolean green,
boolean blue,
boolean alpha)
| Method Detail |
|---|
public static ColorMaskState getInstance(boolean red,
boolean green,
boolean blue,
boolean alpha)
public boolean getRed()
public boolean getGreen()
public boolean getBlue()
public boolean getAlpha()
public int getType()
RenderState
getType in class RenderStatepublic void apply(Renderer renderer)
RenderState
apply in class RenderState
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||