diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-18 15:09:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-18 15:09:34 +0300 |
commit | 924dfdb11eb71a2b45bac78362e7b111b9dfce98 (patch) | |
tree | 223c25994fa3c5782c816fab002495eb654f1043 /src/sdlgraphics.h | |
parent | 09ec2b1ecc1a812e03878ccc07708a0aad02896a (diff) | |
download | manaverse-924dfdb11eb71a2b45bac78362e7b111b9dfce98.tar.gz manaverse-924dfdb11eb71a2b45bac78362e7b111b9dfce98.tar.bz2 manaverse-924dfdb11eb71a2b45bac78362e7b111b9dfce98.tar.xz manaverse-924dfdb11eb71a2b45bac78362e7b111b9dfce98.zip |
Remove gcn::SDLGraphics from basic classes.
Diffstat (limited to 'src/sdlgraphics.h')
-rw-r--r-- | src/sdlgraphics.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/sdlgraphics.h b/src/sdlgraphics.h index 823ee9a43..b16a5fbac 100644 --- a/src/sdlgraphics.h +++ b/src/sdlgraphics.h @@ -58,6 +58,14 @@ class SDLGraphics : public Graphics */ virtual ~SDLGraphics(); + void _beginDraw(); + + void _endDraw(); + + bool pushClipArea(gcn::Rectangle rect); + + void popClipArea(); + virtual bool drawRescaledImage(const Image *const image, int srcX, int srcY, int dstX, int dstY, const int width, const int height, @@ -118,7 +126,13 @@ class SDLGraphics : public Graphics BlitMode getBlitMode() const A_WARN_UNUSED { return mBlitMode; } - void fillRectangle(const gcn::Rectangle& rectangle) override; + void fillRectangle(const gcn::Rectangle &rect) override; + + void drawRectangle(const gcn::Rectangle &rect) override; + + void drawPoint(int x, int y) override; + + void drawLine(int x1, int y1, int x2, int y2) override; protected: virtual bool drawImage2(const Image *const image, @@ -132,6 +146,10 @@ class SDLGraphics : public Graphics const SDL_Surface *const dst, SDL_Rect *dstrect) const; + void drawHLine(int x1, int y, int x2); + + void drawVLine(int x, int y1, int y2); + BlitMode mBlitMode; uint32_t mOldPixel; int mOldAlpha; |