summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-06 01:17:00 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-06 01:17:00 +0300
commitbcd99fe009fb7d8b14ca4a711befa7f156b29ae7 (patch)
treeb9136debb29ae3fe3dbdcb595a5d65092e0bf613 /src/openglgraphics.h
parent6d8828b47e291c0e85645adb60c8969a3f8facf4 (diff)
downloadmanaplus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.gz
manaplus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.bz2
manaplus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.tar.xz
manaplus-bcd99fe009fb7d8b14ca4a711befa7f156b29ae7.zip
Add const to images in drawing functions.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index 944b8c917..8d90ec72a 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -55,7 +55,7 @@ class OpenGLGraphics : public Graphics
bool setVideoMode(int w, int h, int bpp, bool fs,
bool hwaccel, bool resize, bool noFrame);
- bool drawImage(Image *image,
+ bool drawImage(const Image *image,
int srcX, int srcY,
int dstX, int dstY,
int width, int height,
@@ -79,7 +79,7 @@ class OpenGLGraphics : public Graphics
int desiredWidth, int desiredHeight,
bool useColor, bool smooth);
- void drawImagePattern(Image *image,
+ void drawImagePattern(const Image *image,
int x, int y,
int w, int h);
@@ -97,7 +97,7 @@ class OpenGLGraphics : public Graphics
void drawTile(ImageVertexes *vert);
- void drawImagePattern2(GraphicsVertexes *vert, Image *image);
+ void drawImagePattern2(GraphicsVertexes *vert, const Image *image);
void updateScreen();