|
||||||||||
| 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.ArrayState
public class ArrayState
Contains the client array state.
| Field Summary | |
|---|---|
static ArrayState |
DISABLED
A state that disables all of the client arrays. |
| 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 | |
|---|---|
ArrayState(int firstVertexAttribIndex,
ClientArray[] vertexAttribArrays,
ClientArray[] texCoordArrays,
ClientArray colorArray,
ClientArray normalArray,
ClientArray vertexArray,
BufferObject elementArrayBuffer)
Creates a new array state. |
|
| Method Summary | |
|---|---|
void |
apply(Renderer renderer)
Applies this state. |
ClientArray |
getColorArray()
Returns a reference to the color array. |
BufferObject |
getElementArrayBuffer()
Returns a reference to the element array buffer object. |
int |
getFirstVertexAttribIndex()
Returns the attribute index of the first vertex attribute array. |
ClientArray |
getNormalArray()
Returns a reference to the normal array. |
ClientArray[] |
getTexCoordArrays()
Returns a reference to the array of texture coordinate arrays. |
int |
getType()
Returns the type of this state. |
ClientArray |
getVertexArray()
Returns a reference to the vertex array. |
ClientArray[] |
getVertexAttribArrays()
Returns a reference to the array of vertex attribute arrays. |
| 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 ArrayState DISABLED
| Constructor Detail |
|---|
public ArrayState(int firstVertexAttribIndex,
ClientArray[] vertexAttribArrays,
ClientArray[] texCoordArrays,
ClientArray colorArray,
ClientArray normalArray,
ClientArray vertexArray,
BufferObject elementArrayBuffer)
| Method Detail |
|---|
public int getFirstVertexAttribIndex()
public ClientArray[] getVertexAttribArrays()
public ClientArray[] getTexCoordArrays()
public ClientArray getColorArray()
public ClientArray getNormalArray()
public ClientArray getVertexArray()
public BufferObject getElementArrayBuffer()
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 | |||||||||