|
||||||||||
| 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.ColorState
public class ColorState
Contains the draw color state.
| Field Summary | |
|---|---|
static ColorState |
WHITE
An opaque white color state. |
| 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 | |
|---|---|
ColorState()
Creates a new color state. |
|
ColorState(Color4f color)
Creates a new color state with the values in the supplied color object. |
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies this state. |
boolean |
equals(Object other)
|
Color4f |
getColor()
Returns a reference to the draw color object. |
static ColorState |
getInstance(Color4f color)
If there is a shared instance with the supplied parameters, returns a reference to it; otherwise, returns a new state with the parameters. |
static ColorState |
getInstance(ColorState state)
If there is a shared equivalent to the specified state, this method will return the shared state; otherwise, it will simply return the parameter. |
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 |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ColorState WHITE
| Constructor Detail |
|---|
public ColorState(Color4f color)
public ColorState()
| Method Detail |
|---|
public static ColorState getInstance(Color4f color)
public static ColorState getInstance(ColorState state)
public Color4f getColor()
public int getType()
RenderState
getType in class RenderStatepublic void apply(Renderer renderer)
RenderState
apply in class RenderStatepublic boolean equals(Object other)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||