|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.renderer.state.RenderState
public abstract class RenderState
The superclass for all render state classes. Each render state class represents a separate aspect of the OpenGL state. Because the renderer relies on referential equality while rendering, the states must not change while rendering is taking place.
| Field Summary | |
|---|---|
static int |
ALPHA_STATE
The alpha testing/blending state. |
static int |
ARRAY_STATE
The geometry array state. |
static int |
COLOR_MASK_STATE
The color mask state. |
static int |
COLOR_STATE
The draw color state. |
static int |
CULL_STATE
The back-face culling state. |
static int |
DEPTH_STATE
The depth testing/writing state. |
static int |
FOG_STATE
The fog state. |
static int |
LIGHT_STATE
The light state. |
static int |
LINE_STATE
The line state. |
static int |
MATERIAL_STATE
The material state. |
static int |
POINT_STATE
The point state. |
static int |
POLYGON_STATE
The polygon state. |
static int |
SHADER_STATE
The GLSL shader state. |
static int |
STATE_COUNT
The total number of state types. |
static int |
STENCIL_STATE
The stencil state. |
static int |
TEXTURE_STATE
The texture state. |
static int |
TRANSFORM_STATE
The transform state. |
| Constructor Summary | |
|---|---|
RenderState()
|
|
| Method Summary | |
|---|---|
abstract void |
apply(Renderer renderer)
Applies this state. |
static void |
copy(RenderState[] s1,
RenderState[] s2)
Copies any non-null states in s1 into s2. |
static RenderState[] |
createDefaultSet()
Returns a new render state set containing the default states. |
static RenderState[] |
createEmptySet()
Creates and returns a new, empty render state set. |
static RenderState[] |
getDefaults()
Returns a reference to the shared default state array. |
abstract int |
getType()
Returns the type of this state. |
boolean |
isDirty()
Checks the dirty flag. |
void |
setDirty(boolean dirty)
Sets the dirty flag. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ALPHA_STATE
public static final int ARRAY_STATE
public static final int COLOR_STATE
public static final int COLOR_MASK_STATE
public static final int CULL_STATE
public static final int DEPTH_STATE
public static final int FOG_STATE
public static final int LIGHT_STATE
public static final int LINE_STATE
public static final int MATERIAL_STATE
public static final int POINT_STATE
public static final int POLYGON_STATE
public static final int SHADER_STATE
public static final int STENCIL_STATE
public static final int TEXTURE_STATE
public static final int TRANSFORM_STATE
public static final int STATE_COUNT
| Constructor Detail |
|---|
public RenderState()
| Method Detail |
|---|
public static RenderState[] createEmptySet()
public static RenderState[] createDefaultSet()
public static RenderState[] getDefaults()
public static void copy(RenderState[] s1,
RenderState[] s2)
s1 into s2.
public abstract int getType()
public abstract void apply(Renderer renderer)
public final void setDirty(boolean dirty)
public final boolean isDirty()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||