|
Public Member Functions |
| virtual void | Render () |
| | Draws all particles.
|
| void | ReloadImage () |
| | Reload image.
|
| void | SetDrawStyle (ParticleDrawStyle style) |
| | Sets ParticleDrawStyle for this system.
|
| void | SetImage (std::string filename) |
| | Sets image for particle system. filename Filename of image to load for the system.
|
| void | SetPosRange (float minX, float minY, float maxX, float maxY) |
| | Sets the range of initial positions.
|
| void | SetVelocityRange (float minXVel, float minYVel, float maxXVel, float maxYVel) |
| | Sets range of velocities for particles.
|
| void | SetEnergyRange (float minEnergy, float maxEnergy, float minEnergyDelta=0, float maxEnergyDelta=0) |
| | Sets range of initial energy and energyDelta.
|
| void | SetSizeRange (float minSize, float maxSize, float minSizeDelta=0, float maxSizeDelta=0) |
| | Sets range of initial size and sizeDelta.
|
| void | SetColorRange (Uint8 minRed, Uint8 maxRed, Uint8 minGreen, Uint8 maxGreen, Uint8 minBlue, Uint8 maxBlue, Uint8 minAlpha, Uint8 maxAlpha) |
| | Set range of color for a new particle.
|
Protected Member Functions |
| virtual particleType | NewParticle () |
| | Function which creates a new particle.
|
| virtual void | UpdateParticle (int index, float elapsedTime) |
| | Updates a given particle given it's index and the elapsedTime.
|
Protected Attributes |
|
ParticleDrawStyle | rStyle |
| | Draw style, one of the three enumerated values specifying how particles will be drawn.
|
|
ZImage | rImage |
| | Image to draw (only used if rStyle is DS_IMAGE).
|
|
float | rMinX |
| | Minimum X value for starting position.
|
|
float | rMaxX |
| | Maximum X value for starting position.
|
|
float | rMinY |
| | Minimum Y value for starting position.
|
|
float | rMaxY |
| | Maximum Y value for starting position.
|
|
float | rMinXVel |
| | Minimum X velocity, particle moves it's velocity every second.
|
|
float | rMaxXVel |
| | Maximum X velocity, particle moves it's velocity every second.
|
|
float | rMinYVel |
| | Minimum Y velocity, particle moves it's velocity every second.
|
|
float | rMaxYVel |
| | Maximum Y velocity, particle moves it's velocity every second.
|
|
float | rMinEnergy |
| | Minimum starting energy. (Remember particles with energy values <= 0 are removed.).
|
|
float | rMaxEnergy |
| | Maximum starting energy.
|
|
float | rMinEnergyDelta |
| | Minimum energy change per second.
|
|
float | rMaxEnergyDelta |
| | Maximum energy change per second.
|
|
float | rMinSize |
| | Minimum starting size.
|
|
float | rMaxSize |
| | Maximum starting size.
|
|
float | rMinSizeDelta |
| | Minimum size change per second.
|
|
float | rMaxSizeDelta |
| | Maximum size change per second.
|
|
Uint8 | rMinRed |
| | Minimum red component of color, 0-255.
|
|
Uint8 | rMaxRed |
| | Maximum red component of color, 0-255.
|
|
Uint8 | rMinGreen |
| | Minimum green component of color, 0-255.
|
|
Uint8 | rMaxGreen |
| | Maximum green component of color, 0-255.
|
|
Uint8 | rMinBlue |
| | Minimum blue component of color, 0-255.
|
|
Uint8 | rMaxBlue |
| | Maximum blue component of color, 0-255.
|
|
Uint8 | rMinAlpha |
| | Minimum alpha of particle, 0-255.
|
|
Uint8 | rMaxAlpha |
| | Maximum alpha of particle, 0-255.
|