Main Page   Modules   Alphabetical List   Data Structures   Data Fields  

RpPrtStdParticleBatch Struct Reference
[RpPrtStd]

Collaboration diagram for RpPrtStdParticleBatch:

Collaboration graph

Data Fields

RpPrtStdParticleBatch * next
RpPrtStdParticleClassprtClass
RwInt32 numPrt
RwInt32 maxPrt
RwInt32 newPrt
RwInt32 offset

Detailed Description

A structure repsenting a group of particles. For efficient, particles are stored in batches rather than individually. All live particles are stored at the head of batch with no gaps of dead particles. A counter is used to record the number of live particles in the batch. Once a batch has 0 live particles, it will removed from the emitter's active particle list to the inactive list. The first particle of the batch is given by an offset from the start of the particle batch.


Field Documentation

RwInt32 maxPrt
 

Maxium number of particles in batch

RwInt32 newPrt
 

Start of newly emitted particles in the batch

RpPrtStdParticleBatch* next
 

Pointer to the next particle batch

RwInt32 numPrt
 

Number of particles in the batch

RwInt32 offset
 

Offset to the first particle, from the start of the particle batch

RpPrtStdParticleClass* prtClass
 

Pointer to the particle's class


Criterion Software © 1993-2004 Criterion Software Limited. All rights reserved. Built Thu Feb 12 13:46:43 2004. Send Feedback