From 4f6c1dad35e575588b73524692d973dec06447c3 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 14 Feb 2005 15:13:54 +0000 Subject: Support for drawing using OpenGL. Don't expect it to be fast yet though. --- src/graphic/graphic.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/graphic/graphic.h') 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 #include +#ifdef USE_OPENGL +#include +#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. -- cgit v1.2.3-70-g09d2