public class PointSpriteParticleBatch extends BufferedParticleBatch<PointSpriteControllerRenderData>
| Modifier and Type | Field and Description |
|---|---|
protected static VertexAttributes |
CPU_ATTRIBUTES |
protected static int |
CPU_COLOR_OFFSET |
protected static int |
CPU_POSITION_OFFSET |
protected static int |
CPU_REGION_OFFSET |
protected static int |
CPU_SIZE_AND_ROTATION_OFFSET |
protected static int |
CPU_VERTEX_SIZE |
protected static int |
sizeAndRotationUsage |
protected static Vector3 |
TMP_V1 |
bufferedParticlesCount, camera, currentCapacity, renderData, sorter| Constructor and Description |
|---|
PointSpriteParticleBatch() |
PointSpriteParticleBatch(int capacity) |
PointSpriteParticleBatch(int capacity,
ParticleShader.Config shaderConfig) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
allocParticlesData(int capacity) |
protected void |
allocRenderable() |
protected void |
flush(int[] offsets)
Sends the data to the gpu.
|
void |
getRenderables(Array<Renderable> renderables,
Pool<Renderable> pool)
Returns
Renderable instances. |
Texture |
getTexture() |
void |
load(AssetManager manager,
ResourceData resources) |
void |
save(AssetManager manager,
ResourceData resources) |
void |
setTexture(Texture texture) |
begin, draw, end, ensureCapacity, getBufferedCount, getSorter, resetCapacity, setCamera, setSorterprotected static final Vector3 TMP_V1
protected static final int sizeAndRotationUsage
protected static final VertexAttributes CPU_ATTRIBUTES
protected static final int CPU_VERTEX_SIZE
protected static final int CPU_POSITION_OFFSET
protected static final int CPU_COLOR_OFFSET
protected static final int CPU_REGION_OFFSET
protected static final int CPU_SIZE_AND_ROTATION_OFFSET
public PointSpriteParticleBatch()
public PointSpriteParticleBatch(int capacity)
public PointSpriteParticleBatch(int capacity,
ParticleShader.Config shaderConfig)
protected void allocParticlesData(int capacity)
allocParticlesData in class BufferedParticleBatch<PointSpriteControllerRenderData>protected void allocRenderable()
public void setTexture(Texture texture)
public Texture getTexture()
protected void flush(int[] offsets)
BufferedParticleBatchflush in class BufferedParticleBatch<PointSpriteControllerRenderData>offsets - the calculated offsetspublic void getRenderables(Array<Renderable> renderables, Pool<Renderable> pool)
RenderableProviderRenderable instances. Renderables are obtained from the provided Pool and added to the provided
array. The Renderables obtained using Pool.obtain() will later be put back into the pool, do not store them
internally. The resulting array can be rendered via a ModelBatch.renderables - the output arraypool - the pool to obtain Renderables frompublic void save(AssetManager manager, ResourceData resources)
public void load(AssetManager manager, ResourceData resources)