|
||||||||||
| 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
public abstract static class GeometryConfig.Stored
Superclass of configurations with stored 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 | |
|---|---|
Box |
bounds
The bounds of the geometry. |
ClientArrayConfig |
colorArray
The color array. |
GeometryConfig.Mode |
mode
The type of primitives to render. |
ClientArrayConfig |
normalArray
The normal array. |
ClientArrayConfig[] |
texCoordArrays
The texture coordinate arrays. |
ClientArrayConfig |
vertexArray
The vertex array. |
GeometryConfig.AttributeArrayConfig[] |
vertexAttribArrays
The vertex attribute arrays. |
| Constructor Summary | |
|---|---|
GeometryConfig.Stored()
|
|
GeometryConfig.Stored(Box bounds,
GeometryConfig.Mode mode,
GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
ClientArrayConfig[] texCoordArrays,
ClientArrayConfig colorArray,
ClientArrayConfig normalArray,
ClientArrayConfig vertexArray)
|
|
| Method Summary | |
|---|---|
ArrayState[] |
createArrayStates(GlContext ctx,
PassDescriptor[] passes,
boolean staticVBO,
boolean staticIBO)
Creates a set of array states for this geometry. |
ArrayState[] |
createArrayStates(GlContext ctx,
PassDescriptor[] passes,
PassSummary summary,
boolean staticVBO,
boolean staticIBO,
BufferObject arrayBuffer,
FloatBuffer floatArray)
Creates a set of array states for this geometry. |
abstract SimpleBatch.DrawCommand |
createDrawCommand(boolean ibo)
Creates the non-list draw command for this geometry. |
Geometry |
createGeometry(GlContext ctx,
Scope scope,
DeformerConfig deformer,
PassDescriptor[] passes)
Creates an instance of the geometry described by this config. |
Geometry |
createStaticGeometry(GlContext ctx,
Scope scope,
PassDescriptor[] passes)
Creates static geometry for the described passes. |
Matrix4f[] |
getBoneMatrices(Scope scope)
Returns the matrices of the bones influencing this geometry, if any. |
Box |
getBounds()
Returns the bounds of the geometry. |
float[] |
getFloatArray(boolean align,
ClientArrayConfig... arrays)
Returns a float array containing the interleaved contents of the specified arrays. |
int[] |
getIntArray(boolean align,
ClientArrayConfig... arrays)
Returns an int array containing the interleaved contents of the specified arrays. |
ClientArrayConfig |
getTexCoordArray(int idx)
Returns the texture coordinate array config at the specified index. |
GeometryConfig.AttributeArrayConfig |
getVertexAttribArray(String name)
Returns the vertex attribute array config with the specified name. |
int |
getVertexCount()
Returns the number of vertices in the arrays. |
GeometryConfig |
merge(List<TransformedGeometry> glist)
Attempts to merge several transformed geometries. |
| 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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public Box bounds
public GeometryConfig.Mode mode
public GeometryConfig.AttributeArrayConfig[] vertexAttribArrays
public ClientArrayConfig[] texCoordArrays
public ClientArrayConfig colorArray
public ClientArrayConfig normalArray
public ClientArrayConfig vertexArray
| Constructor Detail |
|---|
public GeometryConfig.Stored(Box bounds,
GeometryConfig.Mode mode,
GeometryConfig.AttributeArrayConfig[] vertexAttribArrays,
ClientArrayConfig[] texCoordArrays,
ClientArrayConfig colorArray,
ClientArrayConfig normalArray,
ClientArrayConfig vertexArray)
public GeometryConfig.Stored()
| Method Detail |
|---|
public int getVertexCount()
public GeometryConfig.AttributeArrayConfig getVertexAttribArray(String name)
public ClientArrayConfig getTexCoordArray(int idx)
public float[] getFloatArray(boolean align,
ClientArrayConfig... arrays)
align - if true, use power-of-two alignment.
public int[] getIntArray(boolean align,
ClientArrayConfig... arrays)
align - if true, use power-of-two alignment.
public Geometry createStaticGeometry(GlContext ctx,
Scope scope,
PassDescriptor[] passes)
public Matrix4f[] getBoneMatrices(Scope scope)
public ArrayState[] createArrayStates(GlContext ctx,
PassDescriptor[] passes,
boolean staticVBO,
boolean staticIBO)
staticVBO - if true, use a shared static buffer object for vertex data.staticIBO - if true, use a shared static buffer object for index data.
public ArrayState[] createArrayStates(GlContext ctx,
PassDescriptor[] passes,
PassSummary summary,
boolean staticVBO,
boolean staticIBO,
BufferObject arrayBuffer,
FloatBuffer floatArray)
staticVBO - if true, use a shared static buffer object for vertex data.staticIBO - if true, use a shared static buffer object for index data.arrayBuffer - the precreated buffer object to use for the arrays, if any.floatArray - the precreated float buffer to use for the arrays, if any.public abstract SimpleBatch.DrawCommand createDrawCommand(boolean ibo)
ibo - if true, indices will be read from a buffer object.public Box getBounds()
GeometryConfig
getBounds in class GeometryConfig
public Geometry createGeometry(GlContext ctx,
Scope scope,
DeformerConfig deformer,
PassDescriptor[] passes)
GeometryConfig
createGeometry in class GeometryConfigpublic GeometryConfig merge(List<TransformedGeometry> glist)
GeometryConfig
merge in class GeometryConfigglist - a list of the geometry to merge. Any successfully merged elements will be
removed from the list.
null if we could not merge any.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||