Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/renderext.h')
-rw-r--r--src/render/renderext.h20
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