Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2013-01-22 21:10:29 +0000
committerStijn Buys <ingar@osirion.org>2013-01-22 21:10:29 +0000
commitbe1c0d9dd0fe27079f7edd89c55f5eeeff0ae00c (patch)
tree44468b31c892c08c7f30b4d7f6c7c220c5cb65fd /src/render/particle.cc
parentb887a9f9de76df999a40f2ae8994984723ac46bf (diff)
Implemented Flare particles.
Diffstat (limited to 'src/render/particle.cc')
-rw-r--r--src/render/particle.cc13
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