|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.util.DeepObject
com.threerings.opengl.geometry.config.GeometryConfig
com.threerings.opengl.geometry.config.GeometryConfig.Stored
com.threerings.opengl.geometry.config.GeometryConfig.IndexedStored
public static class GeometryConfig.IndexedStored
Indexed geometry.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.opengl.geometry.config.GeometryConfig |
|---|
GeometryConfig.ArrayStored, GeometryConfig.AttributeArrayConfig, GeometryConfig.IndexedStored, GeometryConfig.Mode, GeometryConfig.SkinnedIndexedStored, GeometryConfig.Stored |
| Field Summary | |
|---|---|
protected SoftReference<BufferObject> |
_elementArrayBuffer
The cached element array buffer. |
int |
end
The maximum index. |
ShortBuffer |
indices
The index buffer. |
int |
start
The minimum index. |
| Fields inherited from class com.threerings.opengl.geometry.config.GeometryConfig.Stored |
|---|
_arrayBuffers, _floatArrays, _intArrays, _listCommands, bounds, colorArray, mode, normalArray, texCoordArrays, vertexArray, vertexAttribArrays |
| Fields inherited from class com.threerings.opengl.geometry.config.GeometryConfig |
|---|
_generated |
| Constructor Summary | |
|---|---|
GeometryConfig.IndexedStored()
|
|
GeometryConfig.IndexedStored(Box bounds,
GeometryConfig.Mode mode,
GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
ClientArrayConfig[] texCoordArrays,
ClientArrayConfig colorArray,
ClientArrayConfig normalArray,
ClientArrayConfig vertexArray,
int start,
int end,
ShortBuffer indices)
|
|
| Method Summary | |
|---|---|
SimpleBatch.DrawCommand |
createDrawCommand(boolean ibo)
Creates the non-list draw command for this geometry. |
protected GeometryConfig.Stored |
createMerged(List<TransformedGeometry> glist)
Creates the merged geometry (without initializing the arrays, etc.) |
protected int |
getCount()
Returns the number of vertices included in the geometry. |
protected BufferObject |
getElementArrayBuffer(GlContext ctx)
Retrieves a reference to the element array buffer, if one should be used. |
protected int |
getFirst()
Returns the index of the first vertex included in the geometry. |
| Methods inherited from class com.threerings.opengl.geometry.config.GeometryConfig.Stored |
|---|
canMerge, canMerge, canMerge, createArrayState, createArrayStates, createArrayStates, createGeometry, createListCommand, createStaticGeometry, getBoneMatrices, getBounds, getCoordSpaces, getFloatArray, getIntArray, getListCommands, getTexCoordArray, getVertexAttribArray, getVertexCount, merge, populateClientArrays |
| Methods inherited from class com.threerings.opengl.geometry.config.GeometryConfig |
|---|
createQuad, getQuad |
| Methods inherited from class com.threerings.util.DeepObject |
|---|
clone, copy, copy, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int start
public int end
@Shallow public ShortBuffer indices
protected transient SoftReference<BufferObject> _elementArrayBuffer
| Constructor Detail |
|---|
public GeometryConfig.IndexedStored(Box bounds,
GeometryConfig.Mode mode,
GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
ClientArrayConfig[] texCoordArrays,
ClientArrayConfig colorArray,
ClientArrayConfig normalArray,
ClientArrayConfig vertexArray,
int start,
int end,
ShortBuffer indices)
public GeometryConfig.IndexedStored()
| Method Detail |
|---|
public SimpleBatch.DrawCommand createDrawCommand(boolean ibo)
GeometryConfig.Stored
createDrawCommand in class GeometryConfig.Storedibo - if true, indices will be read from a buffer object.protected int getFirst()
GeometryConfig.Stored
getFirst in class GeometryConfig.Storedprotected int getCount()
GeometryConfig.Stored
getCount in class GeometryConfig.Storedprotected GeometryConfig.Stored createMerged(List<TransformedGeometry> glist)
GeometryConfig.Stored
createMerged in class GeometryConfig.Storedprotected BufferObject getElementArrayBuffer(GlContext ctx)
GeometryConfig.Stored
getElementArrayBuffer in class GeometryConfig.Stored
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||