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>2015-02-28 20:46:53 +0000
committerStijn Buys <ingar@osirion.org>2015-02-28 20:46:53 +0000
commitcffe02f49b66a70d40816ffc8dea42f9e52da57f (patch)
tree110471c23944d09899d4cacb3cdd40508f359f72 /src/render/particlesystem.cc
parent26c8cf4d74062fb12871ae9d5298d8ceaab7a2cf (diff)
Reimplemented camera handling enabling 360-degree freelook.
Diffstat (limited to 'src/render/particlesystem.cc')
-rw-r--r--src/render/particlesystem.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/particlesystem.cc b/src/render/particlesystem.cc
index abc4f0c..74ee498 100644
--- a/src/render/particlesystem.cc
+++ b/src/render/particlesystem.cc
@@ -137,7 +137,7 @@ void ParticleSystem::clear()
(*it)->clear();
}
}
-void ParticleSystem::draw(const float seconds)
+void ParticleSystem::draw(const float seconds, const Camera &camera)
{
// clear particles for docked entities
if ( entity() && (entity()->type() == core::Entity::Controlable)) {
@@ -231,7 +231,7 @@ void ParticleSystem::draw(const float seconds)
}
ejector->enable(ejector_active);
- (*it)->frame(seconds, current_location, current_axis * ejector->axis(), thrust_factor);
+ (*it)->frame(seconds, camera, current_location, current_axis * ejector->axis(), thrust_factor);
}
}