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/graphicsvertexes.h | |
parent | 08d0c6de4aa164c690d94622e4a6a6ea57a9efaf (diff) | |
download | mv-459c2c3a6decbd5576760040f566f1544645c3ac.tar.gz mv-459c2c3a6decbd5576760040f566f1544645c3ac.tar.bz2 mv-459c2c3a6decbd5576760040f566f1544645c3ac.tar.xz mv-459c2c3a6decbd5576760040f566f1544645c3ac.zip |
Add some consts to draw backend.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r-- | src/graphicsvertexes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h index dbec25395..cce9491c1 100644 --- a/src/graphicsvertexes.h +++ b/src/graphicsvertexes.h @@ -146,7 +146,7 @@ class ImageVertexes final ~ImageVertexes(); - Image *image; + const Image *image; DoubleRects sdl; #ifdef USE_OPENGL @@ -181,6 +181,8 @@ class GraphicsVertexes final std::vector<DoubleRect*> *getRectsSDL(); + const std::vector<DoubleRect*> *getRectsSDLconst() const; + void incPtr(const int num = 1) { mPtr += num; } @@ -190,6 +192,9 @@ class GraphicsVertexes final #ifdef USE_OPENGL NormalOpenGLGraphicsVertexes &getOGL() A_WARN_UNUSED { return ogl[mPtr]; } + + const NormalOpenGLGraphicsVertexes &getOGLconst() const A_WARN_UNUSED + { return ogl[mPtr]; } #endif int getX() const A_WARN_UNUSED |