Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
NewParticleStruct Struct Reference

#include <part_buf.h>

Public Member Functions

bool operator!= (const NewParticleStruct &p)
 
bool operator== (const NewParticleStruct &p)
 

Public Attributes

Vector3 Position
 
Vector3 Velocity
 
unsigned int TimeStamp
 
unsigned char GroupID
 

Detailed Description

NewParticleStruct: structure for passing new particles from the particle emitter to the particle buffer. Since the emitter always continues emitting (unless stopped) but the buffer may not update for long periods, the emitter may emit more particles than the buffer can contain. However, in this case the older particles can be ignored. Therefore ParticleBufferClass contains a circular buffer of NewParticleStructs, and new ones overwrite the oldest in the case of overflows.

Definition at line 60 of file part_buf.h.

Member Function Documentation

◆ operator!=()

bool NewParticleStruct::operator!= ( const NewParticleStruct & p)
inline

Definition at line 68 of file part_buf.h.

◆ operator==()

bool NewParticleStruct::operator== ( const NewParticleStruct & p)
inline

Definition at line 72 of file part_buf.h.

Member Data Documentation

◆ GroupID

unsigned char NewParticleStruct::GroupID

Definition at line 65 of file part_buf.h.

◆ Position

Vector3 NewParticleStruct::Position

Definition at line 62 of file part_buf.h.

◆ TimeStamp

unsigned int NewParticleStruct::TimeStamp

Definition at line 64 of file part_buf.h.

◆ Velocity

Vector3 NewParticleStruct::Velocity

Definition at line 63 of file part_buf.h.


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