summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilebuf.h
diff options
context:
space:
mode:
authorIxtli <cg@325i.org>2010-03-01 02:59:00 +0900
committerEnne Walker <ennewalker@users.sourceforge.net>2010-04-24 10:19:38 -0400
commit4064d1c1f84d93baf2a2cec3504d08220f2ea570 (patch)
treec927aa45964c5451b12bfe7ddc67727bad8ee7c2 /crawl-ref/source/tilebuf.h
parenta79a36f5a6e26c71f977378f9c25d66a5cf81ba9 (diff)
downloadcrawl-ref-4064d1c1f84d93baf2a2cec3504d08220f2ea570.tar.gz
crawl-ref-4064d1c1f84d93baf2a2cec3504d08220f2ea570.zip
Removed GLState and GLStateManager classes from tilebuf.cc/h and moved them to the new glwrapper files. Removed SDL_opengl from these files and instead have them call static members of the GLStateManager class.
Diffstat (limited to 'crawl-ref/source/tilebuf.h')
-rw-r--r--crawl-ref/source/tilebuf.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/crawl-ref/source/tilebuf.h b/crawl-ref/source/tilebuf.h
index 0b1627fee0..998913e2af 100644
--- a/crawl-ref/source/tilebuf.h
+++ b/crawl-ref/source/tilebuf.h
@@ -8,33 +8,14 @@
#include "tiles.h"
+#ifdef USE_GL
+#include "glwrapper.h"
+#endif
+
// This struct defines all of the state that any particular rendering needs.
// If other rendering states are needed, they should be added here so that
// they do not introduce unneeded side effects for other parts of the code
// that have not thought about turning that new state off.
-struct GLState
-{
- GLState();
-
- // vertex arrays
- bool array_vertex;
- bool array_texcoord;
- bool array_colour;
-
- // render state
- bool blend;
- bool texture;
- bool depthtest;
- bool alphatest;
- unsigned char alpharef;
-};
-
-class GLStateManager
-{
-public:
- static void init();
- static void set(const GLState& state);
-};
class FTFont;
class formatted_string;