com.threerings.opengl.geometry
Class Geometry

java.lang.Object
  extended by com.threerings.opengl.geometry.Geometry
Direct Known Subclasses:
DynamicGeometry, SimpleGeometry

public abstract class Geometry
extends Object

Represents a geometry instance.


Field Summary
static Geometry EMPTY
          A "geometry" object that draws nothing.
 
Constructor Summary
Geometry()
           
 
Method Summary
abstract  ArrayState getArrayState(int pass)
          Returns the array state for the specified pass.
 Matrix4f[] getBoneMatrices()
          Returns the geometry's bone matrices, if any.
 Vector3f getCenter()
          Returns a reference to the location of the center of the geometry (used for depth sorting).
 CoordSpace getCoordSpace(int pass)
          Returns the coordinate space in which the specified pass is given.
abstract  SimpleBatch.DrawCommand getDrawCommand(int pass)
          Returns the draw command for the specified pass.
 boolean requiresUpdate()
          Checks whether this geometry requires a call to its update() method before rendering.
 void update()
          Updates the state of the geometry.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final Geometry EMPTY
A "geometry" object that draws nothing.

Constructor Detail

Geometry

public Geometry()
Method Detail

getBoneMatrices

public Matrix4f[] getBoneMatrices()
Returns the geometry's bone matrices, if any.


getCoordSpace

public CoordSpace getCoordSpace(int pass)
Returns the coordinate space in which the specified pass is given.


getCenter

public Vector3f getCenter()
Returns a reference to the location of the center of the geometry (used for depth sorting).


getArrayState

public abstract ArrayState getArrayState(int pass)
Returns the array state for the specified pass.


getDrawCommand

public abstract SimpleBatch.DrawCommand getDrawCommand(int pass)
Returns the draw command for the specified pass.


requiresUpdate

public boolean requiresUpdate()
Checks whether this geometry requires a call to its update() method before rendering.


update

public void update()
Updates the state of the geometry.



Copyright © 2011. All Rights Reserved.