diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-26 16:07:54 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-26 16:07:54 +0100 |
commit | 5afe88df2538274859a162ffd63ed52118e80c19 (patch) | |
tree | b610dfd58dc748fd63f49565b2a43eea2316714f /src/openglgraphics.h | |
parent | 73ba2a95f5bd4a0dd09af52d5864800be2b0a4c6 (diff) | |
download | mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.gz mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.bz2 mana-5afe88df2538274859a162ffd63ed52118e80c19.tar.xz mana-5afe88df2538274859a162ffd63ed52118e80c19.zip |
Apply C++11 fixits
modernize-use-auto
modernize-use-nullptr
modernize-use-override
modernize-use-using
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r-- | src/openglgraphics.h | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h index 01bca360..d300dfd7 100644 --- a/src/openglgraphics.h +++ b/src/openglgraphics.h @@ -34,7 +34,7 @@ class OpenGLGraphics : public Graphics public: OpenGLGraphics(); - ~OpenGLGraphics(); + ~OpenGLGraphics() override; /** * Sets whether vertical refresh syncing is enabled. Takes effect @@ -53,15 +53,15 @@ class OpenGLGraphics : public Graphics void setReduceInputLag(bool reduceInputLag); bool getReduceInputLag() const { return mReduceInputLag; } - bool setVideoMode(int w, int h, bool fs); + bool setVideoMode(int w, int h, bool fs) override; - void videoResized(int w, int h); + void videoResized(int w, int h) override; bool drawImage(Image *image, int srcX, int srcY, int dstX, int dstY, int width, int height, - bool useColor); + bool useColor) override; /** * Draws a rescaled version of the image @@ -70,43 +70,43 @@ class OpenGLGraphics : public Graphics int dstX, int dstY, int width, int height, int desiredWidth, int desiredHeight, - bool useColor); + bool useColor) override; void drawImagePattern(Image *image, int x, int y, - int w, int h); + int w, int h) override; /** * Draw a pattern based on a rescaled version of the given image... */ void drawRescaledImagePattern(Image *image, int x, int y, int w, int h, - int scaledWidth, int scaledHeight); + int scaledWidth, int scaledHeight) override; - void updateScreen(); + void updateScreen() override; - void _beginDraw(); - void _endDraw(); + void _beginDraw() override; + void _endDraw() override; - bool pushClipArea(gcn::Rectangle area); - void popClipArea(); + bool pushClipArea(gcn::Rectangle area) override; + void popClipArea() override; - void setColor(const gcn::Color &color); + void setColor(const gcn::Color &color) override; - void drawPoint(int x, int y); + void drawPoint(int x, int y) override; - void drawLine(int x1, int y1, int x2, int y2); + void drawLine(int x1, int y1, int x2, int y2) override; void drawRectangle(const gcn::Rectangle &rect, bool filled); - void drawRectangle(const gcn::Rectangle &rect); + void drawRectangle(const gcn::Rectangle &rect) override; - void fillRectangle(const gcn::Rectangle &rect); + void fillRectangle(const gcn::Rectangle &rect) override; /** * Takes a screenshot and returns it as SDL surface. */ - SDL_Surface *getScreenshot(); + SDL_Surface *getScreenshot() override; static void bindTexture(GLenum target, GLuint texture); |