wavelength 1.0.0
Loading...
Searching...
No Matches
Particle Struct Reference

One particle of a RndParticleSys pool. More...

#include <rndparticlesys.h>

Collaboration diagram for Particle:

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

Detailed Description

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.

Member Function Documentation

◆ operator new[]()

void * Particle::operator new[] ( size_t nSize)
inline

Allocate a pool of particles, billed to the structure name.

Parameters
nSizeThe pool size the compiler supplies.
Returns
The block.

◆ operator delete[]()

void Particle::operator delete[] ( void * pBlock)
inline

Release a pool of particles.

Parameters
pBlockThe block.

Member Data Documentation

◆ mCol

Color Particle::mCol

The colour.

◆ mColVel

Color Particle::mColVel

The change of colour per frame.

◆ mPos

Vector3 Particle::mPos

The position, in world space.

◆ mVel

Vector3 Particle::mVel

The change of position per frame.

◆ mBubbleSize

Vector3 Particle::mBubbleSize

The displacement of the bubble motion at its peak.

◆ mBubbleFrequency

float Particle::mBubbleFrequency

The angular rate of the bubble motion per frame.

◆ mBubblePhase

float Particle::mBubblePhase

The phase of the bubble motion at frame 0.

◆ mSize

float Particle::mSize

The size of the drawn primitive.

◆ mDeathFrame

float Particle::mDeathFrame

The frame the particle is freed at.

◆ mBirthFrame

float Particle::mBirthFrame

The frame the particle was allocated at.

◆ mPrev

Particle* Particle::mPrev

The previous live particle, the particle itself at the head, or null.

◆ mNext

Particle* Particle::mNext

The next particle of the live or free list.


The documentation for this struct was generated from the following file: