|
wavelength 1.0.0
|
One particle of a RndParticleSys pool. More...
#include <rndparticlesys.h>

Public Member Functions | |
| void * | operator new[] (size_t nSize) |
| Allocate a pool of particles, billed to the structure name. | |
| void | operator delete[] (void *pBlock) |
| Release a pool of particles. | |
Public Attributes | |
| Color | mCol |
| Color | mColVel |
| Vector3 | mPos |
| Vector3 | mVel |
| Vector3 | mBubbleSize |
| float | mBubbleFrequency |
| float | mBubblePhase |
| float | mSize |
| float | mDeathFrame |
| float | mBirthFrame |
| Particle * | mPrev |
| Particle * | mNext |
One particle of a RndParticleSys pool.
The structure is not polymorphic and does not emit an RTTI descriptor. The name is inferred from the tag the pool is allocated under. A live particle is linked into the live list of a system through mPrev and mNext, and a free particle into the free list of the pool owner through mNext.
|
inline |
Allocate a pool of particles, billed to the structure name.
| nSize | The pool size the compiler supplies. |
|
inline |
Release a pool of particles.
| pBlock | The block. |
| Color Particle::mCol |
The colour.
| Color Particle::mColVel |
The change of colour per frame.
| Vector3 Particle::mPos |
The position, in world space.
| Vector3 Particle::mVel |
The change of position per frame.
| Vector3 Particle::mBubbleSize |
The displacement of the bubble motion at its peak.
| float Particle::mBubbleFrequency |
The angular rate of the bubble motion per frame.
| float Particle::mBubblePhase |
The phase of the bubble motion at frame 0.
| float Particle::mSize |
The size of the drawn primitive.
| float Particle::mDeathFrame |
The frame the particle is freed at.
| float Particle::mBirthFrame |
The frame the particle was allocated at.
| Particle* Particle::mPrev |
The previous live particle, the particle itself at the head, or null.
| Particle* Particle::mNext |
The next particle of the live or free list.