|
||||||||||
| 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.SimpleGeometry
public class SimpleGeometry
A simple geometry implementation that returns the same array state and draw command for all passes.
| Field Summary |
|---|
| Fields inherited from class com.threerings.opengl.geometry.Geometry |
|---|
EMPTY |
| Constructor Summary | |
|---|---|
SimpleGeometry()
For convenience, creates a geometry instance that calls the draw() method (which
must be overridden) to draw the geometry in immediate mode. |
|
SimpleGeometry(ArrayState arrayState,
SimpleBatch.DrawCommand drawCommand)
Creates a geometry instance with the specified array state and draw command. |
|
SimpleGeometry(boolean modifiesColorState,
int primitiveCount)
For convenience, creates a geometry instance that calls the draw() method (which
must be overridden) to draw the geometry in immediate mode. |
|
SimpleGeometry(SimpleBatch.DrawCommand drawCommand)
Creates a geometry instance with the specified draw command and no array state. |
|
| Method Summary | |
|---|---|
ArrayState |
getArrayState(int pass)
Returns the array state for the specified pass. |
SimpleBatch.DrawCommand |
getDrawCommand(int pass)
Returns the draw command for the specified pass. |
| Methods inherited from class com.threerings.opengl.geometry.Geometry |
|---|
getBoneMatrices, getCenter, getCoordSpace, requiresUpdate, update |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleGeometry()
draw() method (which
must be overridden) to draw the geometry in immediate mode.
public SimpleGeometry(boolean modifiesColorState,
int primitiveCount)
draw() method (which
must be overridden) to draw the geometry in immediate mode.
modifiesColorState - whether or not the draw method modifies the color state.primitiveCount - the primitive count to report to the renderer.public SimpleGeometry(SimpleBatch.DrawCommand drawCommand)
public SimpleGeometry(ArrayState arrayState,
SimpleBatch.DrawCommand drawCommand)
| Method Detail |
|---|
public ArrayState getArrayState(int pass)
Geometry
getArrayState in class Geometrypublic SimpleBatch.DrawCommand getDrawCommand(int pass)
Geometry
getDrawCommand in class Geometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||