|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.geometry.Geometry
com.threerings.opengl.geometry.DynamicGeometry
public abstract class DynamicGeometry
Base class for dynamic geometry.
| Field Summary |
|---|
| Fields inherited from class com.threerings.opengl.geometry.Geometry |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
DynamicGeometry(float[] data,
BufferObject arrayBuffer)
Creates a new dynamic geometry that will draw from a VBO. |
|
DynamicGeometry(float[] data,
BufferObject arrayBuffer,
FloatBuffer floatArray)
Creates a new dynamic geometry. |
|
DynamicGeometry(float[] data,
FloatBuffer floatArray)
Creates a new dynamic geometry that will draw directly from a float buffer. |
|
| Method Summary | |
|---|---|
boolean |
requiresUpdate()
Checks whether this geometry requires a call to its Geometry.update() method before rendering. |
void |
update()
Updates the state of the geometry. |
| Methods inherited from class com.threerings.opengl.geometry.Geometry |
|---|
getArrayState, getBoneMatrices, getCenter, getCoordSpace, getDrawCommand |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicGeometry(float[] data,
BufferObject arrayBuffer)
data - the array from which vertex data will be copied at each update.arrayBuffer - the VBO into which the vertex data will be copied.
public DynamicGeometry(float[] data,
FloatBuffer floatArray)
data - the array from which vertex data will be copied at each update.floatArray - the buffer into which vertex data will be copied.
public DynamicGeometry(float[] data,
BufferObject arrayBuffer,
FloatBuffer floatArray)
data - the array from which vertex data will be copied at each update.arrayBuffer - the VBO into which the vertex data will be copied, or null
for none.floatArray - the buffer into which vertex data will be copied, or null
if using a VBO.| Method Detail |
|---|
public boolean requiresUpdate()
GeometryGeometry.update() method before rendering.
requiresUpdate in class Geometrypublic void update()
Geometry
update in class Geometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||