public class ParticleBatch
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
ParticleSystem |
partSys |
Constructor and Description |
---|
ParticleBatch(ParticleSystem partSys)
Initialize with the particle system.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addAttribute(java.lang.String name,
char[] data)
Add an attribute array of the given name.
|
boolean |
addAttribute(java.lang.String name,
float[] data)
Add an attribute array of the given name.
|
void |
finalize() |
double |
getTime()
The time basis is used to offset times passed into the particle batch.
|
boolean |
isValid()
Tests if the batch is valid.
|
void |
setTime(double time)
This will be set by default.
|
public ParticleSystem partSys
public ParticleBatch(ParticleSystem partSys)
partSys
- The particle system this batch belongs to.public void finalize()
finalize
in class java.lang.Object
public void setTime(double time)
public double getTime()
public boolean addAttribute(java.lang.String name, float[] data)
public boolean addAttribute(java.lang.String name, char[] data)
public boolean isValid()