diff options
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 |