#include <particleSystemManager.h>
Public Member Functions | |
ParticleSystemManager (int every_nth_frame=1) | |
default constructor | |
void | set_frame_stepping (int every_nth_frame) |
int | get_frame_stepping (void) const |
void | attach_particlesystem (ParticleSystem *ps) |
void | remove_particlesystem (ParticleSystem *ps) |
removes a ps from the maintenance list | |
void | clear (void) |
void | do_particles (float dt) |
does an update and render for each ps in the list. | |
Private Attributes | |
plist< PointerTo< ParticleSystem > > | _ps_list |
int | _nth_frame |
int | _cur_frame |
Definition at line 42 of file particleSystemManager.h.
|
default constructor
Definition at line 40 of file particleSystemManager.cxx. |
|
Definition at line 54 of file particleSystemManager.I. |
|
Definition at line 71 of file particleSystemManager.I. |
|
does an update and render for each ps in the list. this is probably the one you want to use. Rendering is the expensive operation, and particles REALLY should at least be updated every frame, so nth_frame stepping applies only to rendering. Definition at line 82 of file particleSystemManager.cxx. References _ps_list, ParticleSystem::get_active_system_flag(), ParticleSystem::get_system_age(), ParticleSystem::get_system_grows_older_flag(), ParticleSystem::get_system_lifespan(), ParticleSystem::render(), ParticleSystem::set_system_age(), and ParticleSystem::update(). |
|
Definition at line 42 of file particleSystemManager.I. References ParticleSystem::_manager, _ps_list, INLINE, and PT. |
|
removes a ps from the maintenance list
Definition at line 53 of file particleSystemManager.cxx. References _ps_list. |
|
Definition at line 30 of file particleSystemManager.I. References _nth_frame, and INLINE. |
|
Definition at line 48 of file particleSystemManager.h. |
|
Definition at line 47 of file particleSystemManager.h. Referenced by set_frame_stepping(). |
|
Definition at line 45 of file particleSystemManager.h. Referenced by attach_particlesystem(), do_particles(), get_frame_stepping(), ParticleSystemManager(), and remove_particlesystem(). |