summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-24 12:18:04 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-24 12:18:04 +0300
commit950b1bc690ff36013e5e650572872ee7acd5e942 (patch)
tree3718081fb03d4e80fc657304b824a59fa5b411ec /src/render/sdl2graphics.h
parent1814650ad896a0f9684d279fa5843771e767748a (diff)
downloadmv-950b1bc690ff36013e5e650572872ee7acd5e942.tar.gz
mv-950b1bc690ff36013e5e650572872ee7acd5e942.tar.bz2
mv-950b1bc690ff36013e5e650572872ee7acd5e942.tar.xz
mv-950b1bc690ff36013e5e650572872ee7acd5e942.zip
add final keyword to render files.
Diffstat (limited to 'src/render/sdl2graphics.h')
-rw-r--r--src/render/sdl2graphics.h66
1 files changed, 38 insertions, 28 deletions
diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h
index e53719049..c35e1067e 100644
--- a/src/render/sdl2graphics.h
+++ b/src/render/sdl2graphics.h
@@ -54,79 +54,89 @@ class SDLGraphics : public Graphics
*/
virtual ~SDLGraphics();
- void _beginDraw();
+ void _beginDraw() override final;
- void _endDraw();
+ void _endDraw() override final;
- bool pushClipArea(gcn::Rectangle rect);
+ bool pushClipArea(gcn::Rectangle rect) override final;
- void popClipArea();
+ void popClipArea() override final;
virtual bool drawRescaledImage(const Image *const image, int srcX,
int srcY, int dstX, int dstY,
const int width, const int height,
const int desiredWidth,
const int desiredHeight,
- const bool useColor = false);
+ const bool useColor = false) override final;
virtual void drawImagePattern(const Image *const image,
const int x, const int y,
- const int w, const int h);
+ const int w, const int h) override final;
virtual void drawRescaledImagePattern(const Image *const image,
const int x, const int y,
const int w, const int h,
const int scaledWidth,
- const int scaledHeight);
+ const int scaledHeight)
+ override final;
virtual void calcImagePattern(ImageVertexes *const vert,
const Image *const image,
- const int x, const int y,
- const int w, const int h) const;
+ const int x,
+ const int y,
+ const int w,
+ const int h) const override final;
virtual void calcImagePattern(ImageCollection *const vert,
const Image *const image,
- const int x, const int y,
- const int w, const int h) const;
+ const int x,
+ const int y,
+ const int w,
+ const int h) const override final;
virtual void calcTile(ImageVertexes *const vert,
- const Image *const image, int x, int y) const;
+ const Image *const image,
+ int x, int y) const override final;
virtual void calcTileSDL(ImageVertexes *const vert,
- int x, int y) const;
+ int x, int y) const override final;
virtual void calcTile(ImageCollection *const vertCol,
const Image *const image,
- int x, int y);
+ int x, int y) override final;
- virtual void drawTile(const ImageVertexes *const vert);
+ virtual void drawTile(const ImageVertexes *const vert) override final;
- virtual void drawTile(const ImageCollection *const vertCol);
+ virtual void drawTile(const ImageCollection *const vertCol)
+ override final;
- virtual void updateScreen();
+ virtual void updateScreen() override final;
- virtual SDL_Surface *getScreenshot() A_WARN_UNUSED;
+ virtual SDL_Surface *getScreenshot() override final A_WARN_UNUSED;
virtual bool drawNet(const int x1, const int y1,
const int x2, const int y2,
- const int width, const int height);
+ const int width, const int height) override final;
virtual bool calcWindow(ImageCollection *const vertCol,
const int x, const int y,
const int w, const int h,
- const ImageRect &imgRect);
+ const ImageRect &imgRect) override final;
- void fillRectangle(const gcn::Rectangle &rect) override;
+ void fillRectangle(const gcn::Rectangle &rect) override final;
- void drawRectangle(const gcn::Rectangle &rect) override;
+ void drawRectangle(const gcn::Rectangle &rect) override final;
- void drawPoint(int x, int y) override;
+ void drawPoint(int x, int y) override final;
- void drawLine(int x1, int y1, int x2, int y2) override;
+ void drawLine(int x1, int y1, int x2, int y2) override final;
- bool setVideoMode(const int w, const int h, const int bpp,
- const bool fs, const bool hwaccel,
- const bool resize, const bool noFrame);
+ bool setVideoMode(const int w, const int h,
+ const int bpp,
+ const bool fs,
+ const bool hwaccel,
+ const bool resize,
+ const bool noFrame) override final;
void setRendererFlags(const uint32_t flags)
{ mRendererFlags = flags; }
@@ -136,7 +146,7 @@ class SDLGraphics : public Graphics
int srcX, int srcY,
int dstX, int dstY,
const int width, const int height,
- const bool useColor);
+ const bool useColor) override final;
uint32_t mRendererFlags;
uint32_t mOldPixel;