From 459c2c3a6decbd5576760040f566f1544645c3ac Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 21 Nov 2012 04:08:09 +0300 Subject: Add some consts to draw backend. --- src/normalopenglgraphics.h | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'src/normalopenglgraphics.h') diff --git a/src/normalopenglgraphics.h b/src/normalopenglgraphics.h index 5894aa957..0c5bb40ac 100644 --- a/src/normalopenglgraphics.h +++ b/src/normalopenglgraphics.h @@ -62,7 +62,7 @@ class NormalOpenGLGraphics final : public Graphics /** * Draws a resclaled version of the image */ - bool drawRescaledImage(Image *const image, int srcX, int srcY, + 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, @@ -71,7 +71,7 @@ class NormalOpenGLGraphics final : public Graphics /** * Used to get the smooth rescale option over the standard function. */ - bool drawRescaledImage(Image *const image, int srcX, int srcY, + 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, @@ -93,14 +93,14 @@ class NormalOpenGLGraphics final : public Graphics void calcImagePattern(GraphicsVertexes *const vert, const Image *const image, const int x, const int y, - const int w, const int h) override; + const int w, const int h) const override; void calcTile(ImageVertexes *const vert, const Image *const image, - int x, int y) override; + int x, int y) const override; - void drawTile(ImageVertexes *const vert) override; + void drawTile(const ImageVertexes *const vert) override; - void drawImagePattern2(GraphicsVertexes *const vert, + void drawImagePattern2(const GraphicsVertexes *const vert, const Image *const image) override; void updateScreen() override; @@ -119,7 +119,7 @@ class NormalOpenGLGraphics final : public Graphics void drawLine(int x1, int y1, int x2, int y2); - void drawRectangle(const gcn::Rectangle &rect, bool filled); + void drawRectangle(const gcn::Rectangle &rect, const bool filled); void drawRectangle(const gcn::Rectangle &rect); @@ -127,23 +127,23 @@ class NormalOpenGLGraphics final : public Graphics void setTargetPlane(int width, int height); - inline void drawQuadArrayfi(int size); + inline void drawQuadArrayfi(const int size); inline void drawQuadArrayfi(GLint *intVertArray, GLfloat *floatTexArray, const int size); - inline void drawQuadArrayii(int size); + inline void drawQuadArrayii(const int size); inline void drawQuadArrayii(GLint *intVertArray, GLint *intTexArray, const int size); - inline void drawLineArrayi(int size); + inline void drawLineArrayi(const int size); - inline void drawLineArrayf(int size); + inline void drawLineArrayf(const int size); - inline void drawVertexes(NormalOpenGLGraphicsVertexes &ogl); + inline void drawVertexes(const NormalOpenGLGraphicsVertexes &ogl); void initArrays() override; @@ -185,8 +185,6 @@ class NormalOpenGLGraphics final : public Graphics void setTexturingAndBlending(bool enable); - void logString(const char *format, GLenum num); - void updateMemoryInfo(); void debugBindTexture(const Image *image); -- cgit v1.2.3-60-g2f50