com.threerings.opengl.effect
Class ParticleGeometry

java.lang.Object
  extended by com.threerings.opengl.geometry.Geometry
      extended by com.threerings.opengl.geometry.DynamicGeometry
          extended by com.threerings.opengl.effect.ParticleGeometry
Direct Known Subclasses:
ParticleGeometry.Lines, ParticleGeometry.LineTrails, ParticleGeometry.Meshes, ParticleGeometry.Points, ParticleGeometry.Quads, ParticleGeometry.QuadTrails

public abstract class ParticleGeometry
extends DynamicGeometry

Represents a particle geometry instance.


Nested Class Summary
static class ParticleGeometry.Lines
          Renders particles as single line segments.
static class ParticleGeometry.LineTrails
          Renders particles as multi-segment line trails.
static class ParticleGeometry.Meshes
          Renders particles as meshes.
static class ParticleGeometry.Points
          Renders particles as points.
static class ParticleGeometry.Quads
          Renders particles as single quads.
static class ParticleGeometry.QuadTrails
          Renders particles as multi-segment quad trails.
 
Field Summary
 
Fields inherited from class com.threerings.opengl.geometry.Geometry
EMPTY
 
Constructor Summary
ParticleGeometry(Scope scope)
          Creates a new geometry object.
 
Method Summary
 ArrayState getArrayState(int pass)
          Returns the array state for the specified pass.
 Vector3f getCenter()
          Returns a reference to the location of the center of the geometry (used for depth sorting).
 SimpleBatch.DrawCommand getDrawCommand(int pass)
          Returns the draw command for the specified pass.
 void update()
          Updates the state of the geometry.
 
Methods inherited from class com.threerings.opengl.geometry.DynamicGeometry
requiresUpdate
 
Methods inherited from class com.threerings.opengl.geometry.Geometry
getBoneMatrices, getCoordSpace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParticleGeometry

public ParticleGeometry(Scope scope)
Creates a new geometry object.

Method Detail

getCenter

public Vector3f getCenter()
Description copied from class: Geometry
Returns a reference to the location of the center of the geometry (used for depth sorting).

Overrides:
getCenter in class Geometry

getArrayState

public ArrayState getArrayState(int pass)
Description copied from class: Geometry
Returns the array state for the specified pass.

Specified by:
getArrayState in class Geometry

getDrawCommand

public SimpleBatch.DrawCommand getDrawCommand(int pass)
Description copied from class: Geometry
Returns the draw command for the specified pass.

Specified by:
getDrawCommand in class Geometry

update

public void update()
Description copied from class: Geometry
Updates the state of the geometry.

Overrides:
update in class DynamicGeometry


Copyright © 2011. All Rights Reserved.