com.threerings.opengl.effect
Class ParticleGeometry.Quads

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.Quads
Enclosing class:
ParticleGeometry

public static class ParticleGeometry.Quads
extends ParticleGeometry

Renders particles as single quads.


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
 
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.Quads(GlContext ctx, Scope scope, PassDescriptor[] passes)
           
 
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
 

Constructor Detail

ParticleGeometry.Quads

public ParticleGeometry.Quads(GlContext ctx,
                              Scope scope,
                              PassDescriptor[] passes)
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