public abstract class ParticleSorter extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ParticleSorter.Distance
This class will sort all the particles using the distance from camera.
|
static class |
ParticleSorter.None
Using this class will not apply sorting
|
Constructor and Description |
---|
ParticleSorter() |
Modifier and Type | Method and Description |
---|---|
void |
ensureCapacity(int capacity)
This method is called when the batch has increased the underlying particle buffer.
|
void |
setCamera(Camera camera) |
abstract <T extends ParticleControllerRenderData> |
sort(Array<T> renderData) |
public abstract <T extends ParticleControllerRenderData> int[] sort(Array<T> renderData)
public void setCamera(Camera camera)
public void ensureCapacity(int capacity)
Copyright © 2014. All rights reserved.