From f030154fe727e25a2afe1f78b3998c2d2dba95e4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 18 Aug 2009 09:24:15 +0000 Subject: astyle cleanup, corrects not loading of material textures --- src/render/renderext.h | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) (limited to 'src/render/renderext.h') 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 -- cgit v1.2.3