com.threerings.opengl.effect
Class ParticleGeometry.Quads
java.lang.Object
com.threerings.opengl.geometry.Geometry
com.threerings.opengl.geometry.DynamicGeometry
com.threerings.opengl.effect.ParticleGeometry
com.threerings.opengl.effect.ParticleGeometry.Quads
- Enclosing class:
- ParticleGeometry
public static class ParticleGeometry.Quads
- extends ParticleGeometry
Renders particles as single quads.
| 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.Geometry |
EMPTY |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParticleGeometry.Quads
public ParticleGeometry.Quads(GlContext ctx,
Scope scope,
PassDescriptor[] passes)
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