summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-15 00:15:45 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-15 00:15:45 +0000
commit7f88cac6ff2f8c525bca5dd74e96662005358120 (patch)
treee4bc0294918103af7968e7ff0b207cbf20a9d3c7 /src/graphics.h
parentcfaf8b836b21842b5d22ad774f93c2c364d33c0b (diff)
downloadmana-7f88cac6ff2f8c525bca5dd74e96662005358120.tar.gz
mana-7f88cac6ff2f8c525bca5dd74e96662005358120.tar.bz2
mana-7f88cac6ff2f8c525bca5dd74e96662005358120.tar.xz
mana-7f88cac6ff2f8c525bca5dd74e96662005358120.zip
Made the OpenGL related code fully #ifdef'ed.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/graphics.h b/src/graphics.h
index cdbc4104..a3b4aab3 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -48,7 +48,11 @@ public gcn::SDLGraphics {
/**
* Constructor.
*/
+#ifdef USE_OPENGL
Graphics(bool useOpenGL);
+#else
+ Graphics();
+#endif
/**
* Destructor.
@@ -145,7 +149,10 @@ public gcn::SDLGraphics {
private:
SDL_Surface *mScreen;
- bool mFullscreen, mHWAccel, useOpenGL;
+ bool mFullscreen, mHWAccel;
+#ifdef USE_OPENGL
+ bool useOpenGL;
+#endif
};
#endif