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-20 21:37:11 +0000
committerStijn Buys <ingar@osirion.org>2013-01-20 21:37:11 +0000
commitd4f9da2f3c19511b028da2569d7b6a8d1371e135 (patch)
treee1bba0d8dd3b15169612f865612d3fca6475639a /src/render/particle.cc
parent4feff2411d1b703a3b93d8a342112bd998b1ffed (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.cc28
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