Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Goers <mega@osirion.org>2012-11-26 06:29:34 +0000
committerEvan Goers <mega@osirion.org>2012-11-26 06:29:34 +0000
commita3a57df0be5c9d1d4ebbd153cabadbca48d16e79 (patch)
treec745f693d46e4f966e9ebc478bf09da795144c2e /src/render/state.h
parentbc8fb513b967d9c4eaa5f478e112c7f479093bbf (diff)
Abstracted many more GL functions.
Added in useful texture unit info to State::init(). Cleaned up many non-abstracted GL functions used in draw.cc and state.cc.
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 cda64d5..ea55602 100644
--- a/src/render/state.h
+++ b/src/render/state.h
@@ -104,6 +104,9 @@ public:
inline static int max_lights() {
return state_maxlights;
}
+ inline static int max_textureunits() {
+ return state_maxtextureunits;
+ }
static void set_normalize(const bool enable=true);
@@ -116,6 +119,7 @@ private:
static bool state_has_vbo;
static GLuint state_vbo;
static int state_maxlights;
+ static int state_maxtextureunits;
static math::Color state_color_primary; // current primary color
static math::Color state_color_secondary; // current secondary color