summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 15:13:54 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-14 15:13:54 +0000
commit4f6c1dad35e575588b73524692d973dec06447c3 (patch)
treed052c3c7db66450888af132ac9dcefb7c28b58a6 /src/graphic/graphic.h
parentebccde5d779f25584386ddc0c4bdc6331877bcc6 (diff)
downloadmana-4f6c1dad35e575588b73524692d973dec06447c3.tar.gz
mana-4f6c1dad35e575588b73524692d973dec06447c3.tar.bz2
mana-4f6c1dad35e575588b73524692d973dec06447c3.tar.xz
mana-4f6c1dad35e575588b73524692d973dec06447c3.zip
Support for drawing using OpenGL. Don't expect it to be fast yet though.
Diffstat (limited to 'src/graphic/graphic.h')
-rw-r--r--src/graphic/graphic.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h
index 3e4bc168..126cfcb4 100644
--- a/src/graphic/graphic.h
+++ b/src/graphic/graphic.h
@@ -47,6 +47,9 @@ class Graphics;
#include "spriteset.h"
#include <SDL.h>
#include <guichan/sdl.hpp>
+#ifdef USE_OPENGL
+#include <guichan/opengl.hpp>
+#endif
#define TILE_SIZE 32
@@ -115,7 +118,11 @@ struct ImageRect {
/**
* A central point of control for graphics.
*/
+#ifdef USE_OPENGL
+class Graphics : public gcn::OpenGLGraphics {
+#else
class Graphics : public gcn::SDLGraphics {
+#endif
public:
/**
* Constructor.