diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-10-24 12:18:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-10-24 12:18:04 +0300 |
commit | 950b1bc690ff36013e5e650572872ee7acd5e942 (patch) | |
tree | 3718081fb03d4e80fc657304b824a59fa5b411ec /src/render/mobileopenglgraphics.h | |
parent | 1814650ad896a0f9684d279fa5843771e767748a (diff) | |
download | plus-950b1bc690ff36013e5e650572872ee7acd5e942.tar.gz plus-950b1bc690ff36013e5e650572872ee7acd5e942.tar.bz2 plus-950b1bc690ff36013e5e650572872ee7acd5e942.tar.xz plus-950b1bc690ff36013e5e650572872ee7acd5e942.zip |
add final keyword to render files.
Diffstat (limited to 'src/render/mobileopenglgraphics.h')
-rw-r--r-- | src/render/mobileopenglgraphics.h | 65 |
1 files changed, 35 insertions, 30 deletions
diff --git a/src/render/mobileopenglgraphics.h b/src/render/mobileopenglgraphics.h index 748302221..c5d39ff7f 100644 --- a/src/render/mobileopenglgraphics.h +++ b/src/render/mobileopenglgraphics.h @@ -56,9 +56,12 @@ class MobileOpenGLGraphics final : public Graphics ~MobileOpenGLGraphics(); - bool setVideoMode(const int w, const int h, const int bpp, - const bool fs, const bool hwaccel, - const bool resize, const bool noFrame) override; + 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; /** @@ -68,7 +71,7 @@ class MobileOpenGLGraphics final : public Graphics int dstX, int dstY, const int width, const int height, const int desiredWidth, const int desiredHeight, - const bool useColor) override; + const bool useColor) override final; /** * Used to get the smooth rescale option over the standard function. @@ -81,7 +84,7 @@ class MobileOpenGLGraphics final : public Graphics void drawImagePattern(const Image *const image, const int x, const int y, - const int w, const int h) override; + const int w, const int h) override final; /** * Draw a pattern based on a rescaled version of the given image... @@ -90,66 +93,68 @@ class MobileOpenGLGraphics final : public Graphics const int x, const int y, const int w, const int h, const int scaledWidth, - const int scaledHeight) override; + const int scaledHeight) 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; + 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; + const int w, const int h) const override final; void calcTile(ImageVertexes *const vert, const Image *const image, - int x, int y) const override; + int x, int y) const override final; - void drawTile(const ImageCollection *const vertCol); + void drawTile(const ImageCollection *const vertCol) override final; void calcTile(ImageCollection *const vertCol, - const Image *const image, int x, int y) override; + const Image *const image, int x, int y) override final; - void drawTile(const ImageVertexes *const vert) override; + void drawTile(const ImageVertexes *const vert) override final; 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 updateScreen() override; + void updateScreen() override final; - void _beginDraw(); + void _beginDraw() override final; - void _endDraw(); + void _endDraw() override final; - bool pushClipArea(gcn::Rectangle area); + bool pushClipArea(gcn::Rectangle area) override final; - void popClipArea(); + void popClipArea() override final; - void setColor(const gcn::Color &color) + void setColor(const gcn::Color &color) override final { mColor = color; mColor2 = color; mColorAlpha = (color.a != 255); } - void setColorAll(const gcn::Color &color, const gcn::Color &color2) + void setColorAll(const gcn::Color &color, + const gcn::Color &color2) { mColor = color; mColor2 = color2; mColorAlpha = (color.a != 255); } - void drawPoint(int x, int y); + void drawPoint(int x, int y) override final; - void drawLine(int x1, int y1, int x2, int y2); + void drawLine(int x1, int y1, int x2, int y2) override final; - void drawRectangle(const gcn::Rectangle &rect, const bool filled); + void drawRectangle(const gcn::Rectangle &rect, + const bool filled); - void drawRectangle(const gcn::Rectangle &rect); + void drawRectangle(const gcn::Rectangle &rect) override final; - void fillRectangle(const gcn::Rectangle &rect); + void fillRectangle(const gcn::Rectangle &rect) override final; void setTargetPlane(int width, int height); @@ -163,19 +168,19 @@ class MobileOpenGLGraphics final : public Graphics inline void drawVertexes(const NormalOpenGLGraphicsVertexes &ogl); - void initArrays() override; + void initArrays() override final; static void dumpSettings(); /** * Takes a screenshot and returns it as SDL surface. */ - SDL_Surface *getScreenshot() override A_WARN_UNUSED; + SDL_Surface *getScreenshot() override final A_WARN_UNUSED; - void prepareScreenshot() override; + void prepareScreenshot() override final; bool drawNet(const int x1, const int y1, const int x2, const int y2, - const int width, const int height) override; + const int width, const int height) override final; int getMemoryUsage(); @@ -199,7 +204,7 @@ class MobileOpenGLGraphics final : public Graphics int srcX, int srcY, int dstX, int dstY, const int width, const int height, - const bool useColor) override; + const bool useColor) override final; void setTexturingAndBlending(const bool enable); |