summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
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;