Class ParticleBatch

All Implemented Interfaces:
AutoCloseable, react.Closeable

public class ParticleBatch extends TriangleBatch
A custom batch designed for shading particles.
  • Constructor Details

    • ParticleBatch

      public ParticleBatch(GL20 gl)
  • Method Details

    • prepare

      public ParticleBatch prepare(Tile tile, int maxQuads)
    • addParticle

      public void addParticle(float l, float t, float r, float b, float[] data, int ppos)
      Adds a particle quad to this batch.