diff options
author | Stijn Buys <ingar@osirion.org> | 2010-10-24 16:02:09 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-10-24 16:02:09 +0000 |
commit | a704318f507f486ac04834747eb209d0a9410702 (patch) | |
tree | b6f3f6df4b285be0b9c6e91c0486271daf0bb6ee /src/render/state.h | |
parent | c2a6f7c2ee6245109c897ee23b093b5277a30594 (diff) |
keepalive optimizations, r_lights engine variable, OpenGL VBO support
Diffstat (limited to 'src/render/state.h')
-rw-r--r-- | src/render/state.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/render/state.h b/src/render/state.h index 9a5a67c..3fa3b80 100644 --- a/src/render/state.h +++ b/src/render/state.h @@ -7,6 +7,7 @@ #ifndef __INCLUDED_RENDER_STATE_H__ #define __INCLUDED_RENDER_STATE_H__ +#include "render/gl.h" namespace render { @@ -32,6 +33,12 @@ public: inline static bool has_generate_mipmaps() { return render_has_generate_mipmaps; } + inline static bool has_vbo() { + return render_has_vbo; + } + inline static GLuint vbo() { + return render_vbo; + } private: static int render_width; @@ -39,6 +46,8 @@ private: static float render_aspect; static bool render_has_generate_mipmaps; + static bool render_has_vbo; + static GLuint render_vbo; }; } // namespace render |