diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-21 04:08:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-21 13:19:22 +0300 |
commit | 459c2c3a6decbd5576760040f566f1544645c3ac (patch) | |
tree | 16917971820b11a99acc4f875f977811e4474670 /src/graphics.h | |
parent | 08d0c6de4aa164c690d94622e4a6a6ea57a9efaf (diff) | |
download | manaverse-459c2c3a6decbd5576760040f566f1544645c3ac.tar.gz manaverse-459c2c3a6decbd5576760040f566f1544645c3ac.tar.bz2 manaverse-459c2c3a6decbd5576760040f566f1544645c3ac.tar.xz manaverse-459c2c3a6decbd5576760040f566f1544645c3ac.zip |
Add some consts to draw backend.
Diffstat (limited to 'src/graphics.h')
-rw-r--r-- | src/graphics.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/graphics.h b/src/graphics.h index 6ef38350a..7a5dc41a5 100644 --- a/src/graphics.h +++ b/src/graphics.h @@ -139,7 +139,7 @@ class Graphics : public gcn::SDLGraphics /** * Draws a resclaled version of the image */ - bool drawRescaledImage(Image *const image, + bool drawRescaledImage(const Image *const image, const int srcX, const int srcY, const int dstX, const int dstY, const int width, const int height, @@ -155,7 +155,7 @@ class Graphics : public gcn::SDLGraphics /** * Draws a resclaled version of the image */ - virtual bool drawRescaledImage(Image *const image, int srcX, + virtual bool drawRescaledImage(const Image *const image, int srcX, int srcY, int dstX, int dstY, const int width, const int height, const int desiredWidth, @@ -214,19 +214,19 @@ class Graphics : public gcn::SDLGraphics virtual void calcImagePattern(GraphicsVertexes *const vert, const Image *const image, const int x, const int y, - const int w, const int h); + const int w, const int h) const; virtual void calcTile(ImageVertexes *const vert, - const Image *const image, int x, int y); + const Image *const image, int x, int y) const; - virtual void calcTile(ImageVertexes *const vert, int x, int y); + virtual void calcTile(ImageVertexes *const vert, int x, int y) const; - virtual void drawTile(ImageVertexes *const vert); + virtual void drawTile(const ImageVertexes *const vert); virtual void drawImageRect2(GraphicsVertexes *const vert, const ImageRect &imgRect); - virtual void drawImagePattern2(GraphicsVertexes *const vert, + virtual void drawImagePattern2(const GraphicsVertexes *const vert, const Image *const img); bool calcWindow(GraphicsVertexes *const vert, |