|
|||||||||
| 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 | |
|---|---|
protected ArrayState |
_arrayState
The array state for all passes. |
protected SimpleBatch.DrawCommand |
_drawCommand
The draw command for all passes. |
| 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 | |
|---|---|
protected void |
draw()
Draws the geometry in immediate mode. |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ArrayState _arrayState
protected SimpleBatch.DrawCommand _drawCommand
| 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 Geometryprotected void draw()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||