From 5feb96ea3e0616d108a68c14a9a77d0217a686cd Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 31 Jul 2011 19:01:43 +0000 Subject: Added power state to the material context. --- src/render/state.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/render/state.h') diff --git a/src/render/state.h b/src/render/state.h index b614c1b..2ba7c32 100644 --- a/src/render/state.h +++ b/src/render/state.h @@ -68,6 +68,11 @@ public: * set_color() should be used before calling set_material(). **/ static void set_color(const core::Entity *entity); + + /** + * @brief set the power state for materials with Bright and Engine flags + */ + static void set_power(const bool power); /** * @brief Set the material context @@ -112,6 +117,8 @@ private: static math::Color state_color_secondary; // current secondary color static math::Color state_color_engine; // current secondary color + static bool state_power; // power state indicator + }; } // namespace render -- cgit v1.2.3