com.threerings.opengl.effect
Class ParticleGeometry.LineTrails

java.lang.Object
  extended by com.threerings.opengl.geometry.Geometry
      extended by com.threerings.opengl.geometry.DynamicGeometry
          extended by com.threerings.opengl.effect.ParticleGeometry
              extended by com.threerings.opengl.effect.ParticleGeometry.LineTrails
Enclosing class:
ParticleGeometry

public static class ParticleGeometry.LineTrails
extends ParticleGeometry

Renders particles as multi-segment line trails.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.opengl.effect.ParticleGeometry
ParticleGeometry.Lines, ParticleGeometry.LineTrails, ParticleGeometry.Meshes, ParticleGeometry.Points, ParticleGeometry.Quads, ParticleGeometry.QuadTrails
 
Field Summary
protected  int _segments
          The number of segments in each particle.
 
Fields inherited from class com.threerings.opengl.effect.ParticleGeometry
_arrayStates, _center, _colorOffset, _config, _drawCommand, _last, _living, _n, _next, _normalOffset, _particles, _position, _r, _rotation, _s, _stride, _t, _texCoordOffset, _transformState, _vertexOffset, _view, _vrot, _xform
 
Fields inherited from class com.threerings.opengl.geometry.DynamicGeometry
_arrayBuffer, _data, _floatArray, _scratchBuffer
 
Fields inherited from class com.threerings.opengl.geometry.Geometry
EMPTY
 
Constructor Summary
ParticleGeometry.LineTrails(GlContext ctx, Scope scope, PassDescriptor[] passes, int segments)
           
 
Method Summary
protected  int getMode()
          Returns the primitive mode.
protected  int getParticleIndexCount()
          Returns the number of indices in each particle.
protected  int getParticleVertexCount()
          Returns the number of vertices in each particle.
protected  int[] getPrototypeIndices()
          Returns the array of prototype indices that will be replicated at different offsets to create the actual index buffer.
protected  void updateData()
          Updates the vertex data.
 
Methods inherited from class com.threerings.opengl.effect.ParticleGeometry
computeOffset, createIndices, getArrayState, getCenter, getDrawCommand, init, update, write, write, write, write, write
 
Methods inherited from class com.threerings.opengl.geometry.DynamicGeometry
getScratchBuffer, requiresUpdate
 
Methods inherited from class com.threerings.opengl.geometry.Geometry
getBoneMatrices, getCoordSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_segments

protected int _segments
The number of segments in each particle.

Constructor Detail

ParticleGeometry.LineTrails

public ParticleGeometry.LineTrails(GlContext ctx,
                                   Scope scope,
                                   PassDescriptor[] passes,
                                   int segments)
Method Detail

getMode

protected int getMode()
Description copied from class: ParticleGeometry
Returns the primitive mode.

Specified by:
getMode in class ParticleGeometry

getParticleVertexCount

protected int getParticleVertexCount()
Description copied from class: ParticleGeometry
Returns the number of vertices in each particle.

Specified by:
getParticleVertexCount in class ParticleGeometry

getParticleIndexCount

protected int getParticleIndexCount()
Description copied from class: ParticleGeometry
Returns the number of indices in each particle.

Specified by:
getParticleIndexCount in class ParticleGeometry

getPrototypeIndices

protected int[] getPrototypeIndices()
Description copied from class: ParticleGeometry
Returns the array of prototype indices that will be replicated at different offsets to create the actual index buffer.

Specified by:
getPrototypeIndices in class ParticleGeometry

updateData

protected void updateData()
Description copied from class: DynamicGeometry
Updates the vertex data.

Specified by:
updateData in class DynamicGeometry