Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-31 19:01:43 +0000
committerStijn Buys <ingar@osirion.org>2011-07-31 19:01:43 +0000
commit5feb96ea3e0616d108a68c14a9a77d0217a686cd (patch)
treeacd8919371b950e5c40880b4e561c98baa7da107 /src/render/state.h
parent45054b224d8f0f8b6d7db4bcd0b0abf6763a60ab (diff)
Added power state to the material context.
Diffstat (limited to 'src/render/state.h')
-rw-r--r--src/render/state.h7
1 files changed, 7 insertions, 0 deletions
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