From 4ca453e2272beed121b957244408a61b0b0d8b9b Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 15 Aug 2009 08:18:13 +0000 Subject: don't render entites behind the camera --- src/render/renderext.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/render/renderext.h') diff --git a/src/render/renderext.h b/src/render/renderext.h index 28a2c23..3834769 100644 --- a/src/render/renderext.h +++ b/src/render/renderext.h @@ -26,8 +26,14 @@ public: virtual void frame(float elapsed); inline bool visible() const { return state_visible; } + inline bool detailvisible() const { return state_detailvisible; } + /** + * true if the entity is behind the camera + */ + inline bool behind() const { return state_behind; } + inline float fuzz() const { return state_fuzz; } /// distance to the camera @@ -35,9 +41,11 @@ public: /// particles inline ParticleSystems &particles() { return state_particles; } + private: bool state_visible; bool state_detailvisible; + bool state_behind; float state_fuzz; float state_distance; -- cgit v1.2.3