Package tripleplay.particle
Class ParticleBatch
java.lang.Object
playn.core.GLBatch
playn.core.TexturedBatch
playn.core.QuadBatch
playn.core.TriangleBatch
tripleplay.particle.ParticleBatch
- All Implemented Interfaces:
AutoCloseable
,react.Closeable
A custom batch designed for shading particles.
-
Nested Class Summary
Nested classes/interfaces inherited from class playn.core.TriangleBatch
TriangleBatch.Source
Nested classes/interfaces inherited from interface react.Closeable
react.Closeable.Set, react.Closeable.Util
-
Field Summary
Fields inherited from class playn.core.TexturedBatch
gl
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParticle
(float l, float t, float r, float b, float[] data, int ppos) Adds a particle quad to this batch.Methods inherited from class playn.core.TriangleBatch
addQuad, addTris, addTris, addTris, addTris, begin, close, end, flush, prepare, prepare, toString
Methods inherited from class playn.core.TexturedBatch
setTexture
-
Constructor Details
-
ParticleBatch
-
-
Method Details
-
prepare
-
addParticle
public void addParticle(float l, float t, float r, float b, float[] data, int ppos) Adds a particle quad to this batch.
-