summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 19:02:46 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-14 19:02:46 +0000
commit89dd5a7e669012bdb838cbf41418b2d779df300b (patch)
tree44285d37f23f8d3e3c5dad438b125244d9f325e1 /src/graphics.h
parent48bd665f9048cd99cc70f324ae04e20ad64d5c70 (diff)
downloadmana-89dd5a7e669012bdb838cbf41418b2d779df300b.tar.gz
mana-89dd5a7e669012bdb838cbf41418b2d779df300b.tar.bz2
mana-89dd5a7e669012bdb838cbf41418b2d779df300b.tar.xz
mana-89dd5a7e669012bdb838cbf41418b2d779df300b.zip
Make the wrapper functions in the Graphics class conditional on OpenGL support.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 46dfef89..ce4a281f 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -65,9 +65,6 @@ public gcn::SDLGraphics {
*/
bool setFullscreen(bool fs);
- void _beginDraw();
- void _endDraw();
-
void drawImage(Image *image, int x, int y);
void drawImagePattern(Image *image, int x, int y, int w, int h);
@@ -107,6 +104,15 @@ public gcn::SDLGraphics {
*/
int getHeight();
+ /*
+ * Wrapper functions to delegate calls to the right base-class when we
+ * compile with OpenGL support and thus have two gcn::Graphics
+ * base-classes.
+ */
+#ifdef USE_OPENGL
+ void _beginDraw();
+ void _endDraw();
+
void setFont(gcn::ImageFont *font);
void drawText(const std::string &text,
@@ -120,6 +126,7 @@ public gcn::SDLGraphics {
bool pushClipArea(gcn::Rectangle area);
void fillRectangle(const gcn::Rectangle &rectangle);
+#endif
private:
SDL_Surface *mScreen;