From d4f9da2f3c19511b028da2569d7b6a8d1371e135 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 20 Jan 2013 21:37:11 +0000 Subject: Major overhaul of the particle system back-end, support multiple ejectors per particle system. --- src/render/particle.cc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/render/particle.cc (limited to 'src/render/particle.cc') 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 -- cgit v1.2.3