Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields   Globals   Related Pages  

particle_system_c Class Reference

Particle system class. More...

#include <particle.h>


Public Methods

 particle_system_c ()
 c'tor

virtual ~particle_system_c ()
 d'tor

void update ()
 call each frame to move particles

void draw ()
 call this to draw all particles

void remove_all_emitters ()
 removes all emitters from system

void remove_all_types ()
 removes all types from system

slong add_emitter (class particle_emitter_c *)
 adds an emitter to that system

void remove_emitter (class particle_emitter_c *)
 removes an emitter from system

slong add_type (class particle_type_c *)
 adds a type to the system


Protected Attributes

array_c< class particle_emitter_c > * emitters
 all emitters

array_c< class particle_type_c > * types
 all types


Detailed Description

The particle system class is the class that holds all emitters and particle types (of that system).

Todo:
brush volumes for effects (gravity, reflection etc)

Definition at line 109 of file particle.h.


Member Function Documentation

slong add_emitter class particle_emitter_c  
 

Parameters:
e  emitter to add

Definition at line 98 of file p_system.cpp.

References INVALID_INDEX.

slong add_type class particle_type_c  
 

Parameters:
t  type to add

Definition at line 121 of file p_system.cpp.

References INVALID_INDEX.

void remove_emitter class particle_emitter_c  
 

Parameters:
e  emitter to remove

Definition at line 110 of file p_system.cpp.

Referenced by particle_emitter_c::~particle_emitter_c().


The documentation for this class was generated from the following files:
Generated on Wed Dec 18 15:48:49 2002 for omicron engine by doxygen1.2.18