diff options
author | Stijn Buys <ingar@osirion.org> | 2013-01-20 21:37:11 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2013-01-20 21:37:11 +0000 |
commit | d4f9da2f3c19511b028da2569d7b6a8d1371e135 (patch) | |
tree | e1bba0d8dd3b15169612f865612d3fca6475639a /src/render/particle.cc | |
parent | 4feff2411d1b703a3b93d8a342112bd998b1ffed (diff) |
Major overhaul of the particle system back-end, support multiple ejectors per particle system.
Diffstat (limited to 'src/render/particle.cc')
-rw-r--r-- | src/render/particle.cc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/render/particle.cc b/src/render/particle.cc new file mode 100644 index 0000000..ddd8abd --- /dev/null +++ b/src/render/particle.cc @@ -0,0 +1,28 @@ +/* + render/particle.cc + This file is part of the Osirion project and is distributed under + the terms of the GNU General Public License version 2 +*/ + +#include "render/particle.h" + + +namespace render +{ + +/* ---- class Particle --------------------------------------------- */ + +Particle::Particle(const math::Vector3f &location, const unsigned long timestamp) : + particle_location(location) +{ + particle_timestamp = timestamp; +} + +Particle::Particle(const math::Vector3f &location, const math::Vector3f &velocity, const unsigned long timestamp) : + particle_location(location), + particle_velocity(velocity) +{ + particle_timestamp = timestamp; +} + +} //namespace render |