#include <particle_emitter.h>
Collaboration diagram for hoa_video::ParticleEmitter:

Public Attributes | |
| float | _center_x |
| float | _center_y |
| float | _emission_rate |
| depending on the emission mode, this specifies how many particles to emit each second | |
| EMITTER_MODE | _emitter_mode |
| emitter mode- e.g. burst, always, one shot, looping | |
| float | _initial_speed |
| float | _initial_speed_variation |
| float | _inner_cone |
| bool | _omnidirectional |
| true if emitter should spit out particles in all directions | |
| float | _orientation |
| float | _outer_cone |
| float | _radius |
| The radius of the emitter, for circular emitters. | |
| EMITTER_SHAPE | _shape |
| shape of the emitter | |
| EMITTER_SPIN | _spin |
| emitter spin- whether particles should rotate clockwise, counterclockwise, or mixed (random) | |
| float | _start_time |
| float | _x |
| float | _x2 |
| The second point/corner of the emitter, for line or rectangle emitters ONLY. | |
| float | _x_variation |
| add some variation to the position of each particle | |
| float | _y |
| float | _y2 |
| float | _y_variation |
Definition at line 92 of file particle_emitter.h.
position of the emitter's center. In many cases this is just the same thing as _x and _y, but we store it anyway because then if we have a rectangle shaped emitter, we don't have to calculate the midpoint every time we want to know where the center is
Definition at line 109 of file particle_emitter.h.
Referenced by hoa_video::private_video::TEMP_LoadEffectHelper().
Definition at line 110 of file particle_emitter.h.
Referenced by hoa_video::private_video::TEMP_LoadEffectHelper().
depending on the emission mode, this specifies how many particles to emit each second
Definition at line 148 of file particle_emitter.h.
Referenced by hoa_video::private_video::TEMP_LoadEffectHelper(), and hoa_video::private_video::ParticleSystem::Update().
emitter mode- e.g. burst, always, one shot, looping
Definition at line 156 of file particle_emitter.h.
Referenced by hoa_video::private_video::TEMP_LoadEffectHelper(), and hoa_video::private_video::ParticleSystem::Update().
initial speed for particles. The unit is pixels. So, with a coordinate system which is 1024x768, a particle going from left to right with a speed of 512 pixels/sec could move across the screen in 2 seconds
Definition at line 141 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
variation in the initial speed (it would be boring if all particles had exactly the same speed)
Definition at line 145 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
inner cone angle, used to create some "spread" in the particle emissions. Set this to zero if you want all particles to be emitted in exactly the same direction
Definition at line 136 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
true if emitter should spit out particles in all directions
Definition at line 123 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
if _omnidirectional is false, then this is the angle at which particles should be emitted. This angle is the same one as what is used for sinf(), e.g. zero is right, PI/2 is up, PI is left, 3PI/2 is down, etc.
Definition at line 128 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
outer cone angle, used to create some "spread" in the particle emissions. Set this to zero if you want all particles to be emitted in exactly the same direction
Definition at line 132 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
The radius of the emitter, for circular emitters.
Definition at line 117 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
shape of the emitter
Definition at line 120 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
emitter spin- whether particles should rotate clockwise, counterclockwise, or mixed (random)
Definition at line 159 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
how many seconds to wait until emitting particles. Note that if you want a particle system to be active for 5 seconds, and start_time is 10 seconds, then you should make the system lifetime 15 seconds.
Definition at line 153 of file particle_emitter.h.
Referenced by hoa_video::private_video::TEMP_LoadEffectHelper().
position of emitter, or in the case of line or rectangle emitters, this is one point/corner of the emitter
Definition at line 98 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
The second point/corner of the emitter, for line or rectangle emitters ONLY.
Definition at line 102 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
add some variation to the position of each particle
Definition at line 113 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
Definition at line 99 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
Definition at line 103 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
Definition at line 114 of file particle_emitter.h.
Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().
1.5.1