summaryrefslogtreecommitdiff
path: root/src/render/sdl2softwaregraphics.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/sdl2softwaregraphics.h
parent5546ac2f1a459b3fba47b42d546469cdae3c1c27 (diff)
downloadplus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.tar.gz
plus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.tar.bz2
plus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.tar.xz
plus-76bd8cfad1f9dd7e1e61c69132dc02ec75e5ee8f.zip
add final keyword to some renderers classes and remove useless virtual keywords.
Diffstat (limited to 'src/render/sdl2softwaregraphics.h')
-rw-r--r--src/render/sdl2softwaregraphics.h107
1 files changed, 50 insertions, 57 deletions
diff --git a/src/render/sdl2softwaregraphics.h b/src/render/sdl2softwaregraphics.h
index 079e1425f..54a45d4fe 100644
--- a/src/render/sdl2softwaregraphics.h
+++ b/src/render/sdl2softwaregraphics.h
@@ -39,7 +39,7 @@ struct SDL_Surface;
/**
* A central point of control for graphics.
*/
-class SDL2SoftwareGraphics : public Graphics
+class SDL2SoftwareGraphics final : public Graphics
{
public:
/**
@@ -52,7 +52,7 @@ class SDL2SoftwareGraphics : public Graphics
/**
* Destructor.
*/
- virtual ~SDL2SoftwareGraphics();
+ ~SDL2SoftwareGraphics();
void _beginDraw();
@@ -62,69 +62,62 @@ class SDL2SoftwareGraphics : public Graphics
void popClipArea();
- 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;
@@ -146,11 +139,11 @@ class SDL2SoftwareGraphics : public Graphics
bool resizeScreen(const int width, const int height) override final;
- 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:
int SDL_FakeUpperBlit(const SDL_Surface *const src,