summaryrefslogtreecommitdiff
path: root/src/render/sdl2graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-12-15 14:00:29 +0300
committerAndrei Karas <akaras@inbox.ru>2013-12-15 14:00:29 +0300
commit76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f (patch)
tree1aeaed7d8a8f16507572224cbd36cd2fc52b3289 /src/render/sdl2graphics.h
parent5546ac2f1a459b3fba47b42d546469cdae3c1c27 (diff)
downloadmanaplus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.tar.gz
manaplus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.tar.bz2
manaplus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.tar.xz
manaplus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.zip
add final keyword to some renderers classes and remove useless virtual keywords.
Diffstat (limited to 'src/render/sdl2graphics.h')
-rw-r--r--src/render/sdl2graphics.h105
1 files changed, 49 insertions, 56 deletions
diff --git a/src/render/sdl2graphics.h b/src/render/sdl2graphics.h
index ed58bc400..362d7cbc0 100644
--- a/src/render/sdl2graphics.h
+++ b/src/render/sdl2graphics.h
@@ -39,7 +39,7 @@ struct SDL_Surface;
/**
* A central point of control for graphics.
*/
-class SDLGraphics : public Graphics
+class SDLGraphics final : public Graphics
{
public:
/**
@@ -52,7 +52,7 @@ class SDLGraphics : public Graphics
/**
* Destructor.
*/
- virtual ~SDLGraphics();
+ ~SDLGraphics();
void _beginDraw() override final;
@@ -62,68 +62,61 @@ class SDLGraphics : public Graphics
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)
- override final;
+ 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) override final;
- virtual void drawImagePattern(const Image *const image,
- const int x, const int y,
- const int w, const int h) override final;
+ void drawImagePattern(const Image *const image,
+ const int x, const int y,
+ 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)
- override final;
+ void drawRescaledImagePattern(const Image *const image,
+ const int x, const int y,
+ const int w, const int h,
+ const int scaledWidth,
+ 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 override final;
+ void calcImagePattern(ImageVertexes *const vert,
+ const Image *const image,
+ 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 override final;
+ void calcImagePattern(ImageCollection *const vert,
+ const Image *const image,
+ const int x, const int y,
+ const int w, const int h) const override final;
- virtual void calcTileVertexes(ImageVertexes *const vert,
- const Image *const image,
- int x, int y) const override final;
+ void calcTileVertexes(ImageVertexes *const vert,
+ const Image *const image,
+ int x, int y) const override final;
- virtual void calcTileSDL(ImageVertexes *const vert,
- int x, int y) const override final;
+ void calcTileSDL(ImageVertexes *const vert,
+ int x, int y) const override final;
- virtual void calcTileCollection(ImageCollection *const vertCol,
- const Image *const image,
- int x, int y) override final;
+ void calcTileCollection(ImageCollection *const vertCol,
+ const Image *const image,
+ int x, int y) override final;
- virtual void drawTileVertexes(const ImageVertexes
- *const vert) override final;
+ void drawTileVertexes(const ImageVertexes *const vert) override final;
- virtual void drawTileCollection(const ImageCollection *const vertCol)
- override final;
+ void drawTileCollection(const ImageCollection *const vertCol)
+ override final;
- virtual void updateScreen() override final;
+ void updateScreen() override final;
- virtual SDL_Surface *getScreenshot() override final A_WARN_UNUSED;
+ 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) override final;
+ bool drawNet(const int x1, const int y1,
+ const int x2, const int y2,
+ 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) override final;
+ bool calcWindow(ImageCollection *const vertCol,
+ const int x, const int y,
+ const int w, const int h,
+ const ImageRect &imgRect) override final;
void fillRectangle(const gcn::Rectangle &rect) override final;
@@ -143,11 +136,11 @@ class SDLGraphics : public Graphics
void setRendererFlags(const uint32_t flags)
{ mRendererFlags = flags; }
- virtual bool drawImage2(const Image *const image,
- int srcX, int srcY,
- int dstX, int dstY,
- const int width, const int height,
- const bool useColor) override final;
+ bool drawImage2(const Image *const image,
+ int srcX, int srcY,
+ int dstX, int dstY,
+ const int width, const int height,
+ const bool useColor) override final;
protected:
uint32_t mRendererFlags;