diff options
author | Stijn Buys <ingar@osirion.org> | 2008-11-16 13:53:44 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-11-16 13:53:44 +0000 |
commit | 315a8c2dff9b76ac5e1ebbef265f13ac19d65e3d (patch) | |
tree | dec6de0bcf7f19dd95b7121f27b185da67cee4e2 /src/render/renderext.h | |
parent | 28ba97bdd8fb6ca352dc49dba01a66bd155ad523 (diff) |
engine trails
Diffstat (limited to 'src/render/renderext.h')
-rw-r--r-- | src/render/renderext.h | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/render/renderext.h b/src/render/renderext.h index eafa707..eb2ae67 100644 --- a/src/render/renderext.h +++ b/src/render/renderext.h @@ -7,7 +7,10 @@ #ifndef __INCLUDED_RENDER_RENDEREXT_H__ #define __INCLUDED_RENDER_RENDEREXT_H__ +#include <list> + #include "core/extension.h" +#include "render/particles.h" namespace render { @@ -18,6 +21,8 @@ public: RenderExt(core::Entity *entity); ~RenderExt(); + typedef std::list<ParticleStream *> Particles; + virtual void frame(float elapsed); inline bool visible() const { return state_visible; } @@ -28,15 +33,16 @@ public: /// distance to the camera inline float distance() const { return state_distance; } - // FIXME - float state_engine_trail_offset; - + /// particles + inline Particles &particles() { return state_particles; } private: - bool state_visible; - bool state_detailvisible; + bool state_visible; + bool state_detailvisible; - float state_fuzz; - float state_distance; + float state_fuzz; + float state_distance; + + Particles state_particles; }; } // namespace render |