From 7bbe721a23b9caba7a67ac806be10aa536f7f46d Mon Sep 17 00:00:00 2001 From: Björn Steinbrink Date: Wed, 10 Aug 2005 07:46:41 +0000 Subject: Moved knowledge about whether we use OpenGL into the Graphics class. Added helper function for being creation to reduce code duplication. Some code simplifications. --- src/graphics.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/graphics.h') 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; -- cgit v1.2.3-70-g09d2