| Modifier and Type | Class and Description |
|---|---|
| public static class | ParticleSorter.
This class will sort all the particles using the distance from camera. |
| public static class | ParticleSorter.
Using this class will not apply sorting |
| Modifier and Type | Field and Description |
|---|---|
| protected Camera | |
| pack-priv static final Vector3 |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | ensureCapacity(int capacity)
This method is called when the batch has increased the underlying particle buffer. |
| public void | |
| public abstract <T extends ParticleControllerRenderData> int[] |
| camera | back to summary |
|---|---|
| protected Camera camera | |
| TMP_V1 | back to summary |
|---|---|
| pack-priv static final Vector3 TMP_V1 | |
| ParticleSorter | back to summary |
|---|---|
| public ParticleSorter() | |
| ensureCapacity | back to summary |
|---|---|
| public void ensureCapacity(int capacity) This method is called when the batch has increased the underlying particle buffer. In this way the sorter can increase the data structures used to sort the particles (i.e increase backing array size) | |
| setCamera | back to summary |
|---|---|
| public void setCamera(Camera camera) | |
| sort | back to summary |
|---|---|
public abstract <T extends ParticleControllerRenderData> int[] sort(Array<T> renderData)
| |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private float[] | |
| private int[] | |
| private int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | ensureCapacity(int capacity)
Overrides com. This method is called when the batch has increased the underlying particle buffer. |
| public void | |
| public <T extends ParticleControllerRenderData> int[] | sort(Array<T> renderData)
Implements abstract com.
|
| currentSize | back to summary |
|---|---|
| private int currentSize | |
| distances | back to summary |
|---|---|
| private float[] distances | |
| particleIndices | back to summary |
|---|---|
| private int[] particleIndices | |
| particleOffsets | back to summary |
|---|---|
| private int[] particleOffsets | |
| Distance | back to summary |
|---|---|
| public Distance() | |
| ensureCapacity | back to summary |
|---|---|
| public void ensureCapacity(int capacity) Overrides com. Doc from com. This method is called when the batch has increased the underlying particle buffer. In this way the sorter can increase the data structures used to sort the particles (i.e increase backing array size)
| |
| qsort | back to summary |
|---|---|
| public void qsort(int si, int ei) | |
| sort | back to summary |
|---|---|
| public <T extends ParticleControllerRenderData> int[] sort(Array<T> renderData) Implements abstract com.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | ensureCapacity(int capacity)
Overrides com. This method is called when the batch has increased the underlying particle buffer. |
| public <T extends ParticleControllerRenderData> int[] | sort(Array<T> renderData)
Implements abstract com.
|
| currentCapacity | back to summary |
|---|---|
| pack-priv int currentCapacity | |
| indices | back to summary |
|---|---|
| pack-priv int[] indices | |
| None | back to summary |
|---|---|
| public None() | |
| ensureCapacity | back to summary |
|---|---|
| public void ensureCapacity(int capacity) Overrides com. Doc from com. This method is called when the batch has increased the underlying particle buffer. In this way the sorter can increase the data structures used to sort the particles (i.e increase backing array size)
| |
| sort | back to summary |
|---|---|
| public <T extends ParticleControllerRenderData> int[] sort(Array<T> renderData) Implements abstract com.
| |