diff options
Diffstat (limited to 'src/render/particleejector.h')
-rw-r--r-- | src/render/particleejector.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/render/particleejector.h b/src/render/particleejector.h index d68b32f..57a46d7 100644 --- a/src/render/particleejector.h +++ b/src/render/particleejector.h @@ -9,6 +9,7 @@ #include <deque> +#include "render/camera.h" #include "render/particleejectorscript.h" #include "render/particle.h" @@ -53,7 +54,7 @@ public: /** * @brief updated the particles attached to the ejector, and drawn them * */ - void frame(const float seconds, const math::Vector3f & ps_location, const math::Axis & ps_axis, const float thrust_factor); + void frame(const float seconds, const Camera &camera, const math::Vector3f & ps_location, const math::Axis & ps_axis, const float thrust_factor); /** * @brief remove all particles @@ -66,7 +67,7 @@ protected: return ejector_particles; } - virtual void draw(const math::Vector3f & ps_location, const math::Axis & ps_axis); + virtual void draw(const Camera &camera, const math::Vector3f & ps_location, const math::Axis & ps_axis); private: unsigned long ejector_timestamp; @@ -85,7 +86,7 @@ public: virtual ~ParticleEjectorSprite(); protected: - virtual void draw(const math::Vector3f & ps_location, const math::Axis & ps_axis); + virtual void draw(const Camera &camera, const math::Vector3f & ps_location, const math::Axis & ps_axis); }; /** @@ -98,7 +99,7 @@ public: virtual ~ParticleEjectorFlare(); protected: - virtual void draw(const math::Vector3f & ps_location, const math::Axis & ps_axis); + virtual void draw(const Camera &camera, const math::Vector3f & ps_location, const math::Axis & ps_axis); }; /** @@ -110,7 +111,7 @@ public: virtual ~ParticleEjectorTrail(); protected: - virtual void draw(const math::Vector3f & ps_location, const math::Axis & ps_axis); + virtual void draw(const Camera &camera, const math::Vector3f & ps_location, const math::Axis & ps_axis); }; /** @@ -122,7 +123,7 @@ public: virtual ~ParticleEjectorStreak(); protected: - virtual void draw(const math::Vector3f & ps_location, const math::Axis & ps_axis); + virtual void draw(const Camera &camera, const math::Vector3f & ps_location, const math::Axis & ps_axis); }; } // namespace render |