From be1c0d9dd0fe27079f7edd89c55f5eeeff0ae00c Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 22 Jan 2013 21:10:29 +0000 Subject: Implemented Flare particles. --- src/render/particle.cc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/render/particle.cc') 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 -- cgit v1.2.3