From 924dfdb11eb71a2b45bac78362e7b111b9dfce98 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Aug 2013 15:09:34 +0300 Subject: Remove gcn::SDLGraphics from basic classes. --- src/sdlgraphics.h | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'src/sdlgraphics.h') 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; -- cgit v1.2.3-60-g2f50