diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-22 21:10:29 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-22 21:10:29 +0000 |
commit | be1c0d9dd0fe27079f7edd89c55f5eeeff0ae00c (patch) | |
tree | 44468b31c892c08c7f30b4d7f6c7c220c5cb65fd /src/render/particle.cc | |
parent | b887a9f9de76df999a40f2ae8994984723ac46bf (diff) |
Implemented Flare particles.
Diffstat (limited to 'src/render/particle.cc')
-rw-r--r-- | src/render/particle.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/render/particle.cc b/src/render/particle.cc index ddd8abd..5925ba5 100644 --- a/src/render/particle.cc +++ b/src/render/particle.cc @@ -16,13 +16,22 @@ Particle::Particle(const math::Vector3f &location, const unsigned long timestamp particle_location(location) { particle_timestamp = timestamp; + + particle_speed = 0.0f; + particle_radius = 0.0f; + particle_alpha = 0.0f; + } -Particle::Particle(const math::Vector3f &location, const math::Vector3f &velocity, const unsigned long timestamp) : +Particle::Particle(const math::Vector3f &location, const math::Axis &axis, const unsigned long timestamp) : particle_location(location), - particle_velocity(velocity) + particle_axis(axis) { particle_timestamp = timestamp; + + particle_speed = 0.0f; + particle_radius = 0.0f; + particle_alpha = 0.0f; } } //namespace render |