summaryrefslogtreecommitdiff
path: root/src/graphics.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-10 07:46:41 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-10 07:46:41 +0000
commit7bbe721a23b9caba7a67ac806be10aa536f7f46d (patch)
treed87383830d132ca08b472abed69b20f3f3eee58a /src/graphics.h
parent4d338e801f8b1175585de6b5e7b8b2ca331b682f (diff)
downloadmana-7bbe721a23b9caba7a67ac806be10aa536f7f46d.tar.gz
mana-7bbe721a23b9caba7a67ac806be10aa536f7f46d.tar.bz2
mana-7bbe721a23b9caba7a67ac806be10aa536f7f46d.tar.xz
mana-7bbe721a23b9caba7a67ac806be10aa536f7f46d.zip
Moved knowledge about whether we use OpenGL into the Graphics class. Added helper function for being creation to reduce code duplication. Some code simplifications.
Diffstat (limited to 'src/graphics.h')
-rw-r--r--src/graphics.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/graphics.h b/src/graphics.h
index 1d616611..4e2b6c7e 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -135,6 +135,11 @@ public gcn::SDLGraphics {
void setColor(gcn::Color color);
+ void popClipArea();
+ bool pushClipArea(gcn::Rectangle area);
+
+ void fillRectangle(const gcn::Rectangle &rectangle);
+
private:
SDL_Surface *mScreen;
bool mFullscreen, mHWAccel;