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>2012-10-07 12:36:08 +0000
committerStijn Buys <ingar@osirion.org>2012-10-07 12:36:08 +0000
commit25a7afeeff7fabaf721cba732a1a3fb47b0b26cd (patch)
tree45c65fb41daf7b7ab878a46ef9e96fd6c81acbfa /src/render/state.h
parente14c5a54a8821affb100c5aee131fabe2955f684 (diff)
Probe the maximal number of OpenGL lights.
Diffstat (limited to 'src/render/state.h')
-rw-r--r--src/render/state.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/state.h b/src/render/state.h
index 2ba7c32..cda64d5 100644
--- a/src/render/state.h
+++ b/src/render/state.h
@@ -101,6 +101,9 @@ public:
inline static GLuint vbo() {
return state_vbo;
}
+ inline static int max_lights() {
+ return state_maxlights;
+ }
static void set_normalize(const bool enable=true);
@@ -112,6 +115,7 @@ private:
static bool state_has_generate_mipmaps;
static bool state_has_vbo;
static GLuint state_vbo;
+ static int state_maxlights;
static math::Color state_color_primary; // current primary color
static math::Color state_color_secondary; // current secondary color