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.h31
1 files changed, 22 insertions, 9 deletions
diff --git a/src/render/renderext.h b/src/render/renderext.h
index 3834769..ce4b2a4 100644
--- a/src/render/renderext.h
+++ b/src/render/renderext.h
@@ -16,7 +16,8 @@ namespace render
{
/// the render extension of an entity
-class RenderExt :public core::Extension {
+class RenderExt : public core::Extension
+{
public:
RenderExt(core::Entity *entity);
~RenderExt();
@@ -25,32 +26,44 @@ public:
virtual void frame(float elapsed);
- inline bool visible() const { return state_visible; }
+ inline bool visible() const {
+ return state_visible;
+ }
- inline bool detailvisible() const { return state_detailvisible; }
+ inline bool detailvisible() const {
+ return state_detailvisible;
+ }
/**
* true if the entity is behind the camera
*/
- inline bool behind() const { return state_behind; }
+ inline bool behind() const {
+ return state_behind;
+ }
- inline float fuzz() const { return state_fuzz; }
+ inline float fuzz() const {
+ return state_fuzz;
+ }
/// distance to the camera
- inline float distance() const { return state_distance; }
+ inline float distance() const {
+ return state_distance;
+ }
/// particles
- inline ParticleSystems &particles() { return state_particles; }
+ inline ParticleSystems &particles() {
+ return state_particles;
+ }
private:
bool state_visible;
bool state_detailvisible;
bool state_behind;
-
+
float state_fuzz;
float state_distance;
- ParticleSystems state_particles;
+ ParticleSystems state_particles;
};
} // namespace render