com.threerings.opengl.geometry.config
Class GeometryConfig.ArrayStored

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.geometry.config.GeometryConfig
          extended by com.threerings.opengl.geometry.config.GeometryConfig.Stored
              extended by com.threerings.opengl.geometry.config.GeometryConfig.ArrayStored
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Enclosing class:
GeometryConfig

public static class GeometryConfig.ArrayStored
extends GeometryConfig.Stored

Array 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
 int count
          The number of indices to render.
 int first
          The starting array 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.ArrayStored()
           
GeometryConfig.ArrayStored(Box bounds, GeometryConfig.Mode mode, GeometryConfig.AttributeArrayConfig[] vertexAttribArrays, ClientArrayConfig[] texCoordArrays, ClientArrayConfig colorArray, ClientArrayConfig normalArray, ClientArrayConfig vertexArray, int first, int count)
           
 
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  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, getElementArrayBuffer, 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

first

public int first
The starting array index.


count

public int count
The number of indices to render.

Constructor Detail

GeometryConfig.ArrayStored

public GeometryConfig.ArrayStored(Box bounds,
                                  GeometryConfig.Mode mode,
                                  GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
                                  ClientArrayConfig[] texCoordArrays,
                                  ClientArrayConfig colorArray,
                                  ClientArrayConfig normalArray,
                                  ClientArrayConfig vertexArray,
                                  int first,
                                  int count)

GeometryConfig.ArrayStored

public GeometryConfig.ArrayStored()
Method Detail

createDrawCommand

public SimpleBatch.DrawCommand createDrawCommand(boolean ibo)
Description copied from class: GeometryConfig.Stored
Creates the non-list draw command for this geometry.

Specified by:
createDrawCommand in class GeometryConfig.Stored
Parameters:
ibo - if true, indices will be read from a buffer object.

getFirst

protected int getFirst()
Description copied from class: GeometryConfig.Stored
Returns the index of the first vertex included in the geometry.

Specified by:
getFirst in class GeometryConfig.Stored

getCount

protected int getCount()
Description copied from class: GeometryConfig.Stored
Returns the number of vertices included in the geometry.

Specified by:
getCount in class GeometryConfig.Stored

createMerged

protected GeometryConfig.Stored createMerged(List<TransformedGeometry> glist)
Description copied from class: GeometryConfig.Stored
Creates the merged geometry (without initializing the arrays, etc.)

Specified by:
createMerged in class GeometryConfig.Stored