summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-11-21 04:08:09 +0300
committerAndrei Karas <akaras@inbox.ru>2012-11-21 13:19:22 +0300
commit459c2c3a6decbd5576760040f566f1544645c3ac (patch)
tree16917971820b11a99acc4f875f977811e4474670 /src/graphicsvertexes.h
parent08d0c6de4aa164c690d94622e4a6a6ea57a9efaf (diff)
downloadplus-459c2c3a6decbd5576760040f566f1544645c3ac.tar.gz
plus-459c2c3a6decbd5576760040f566f1544645c3ac.tar.bz2
plus-459c2c3a6decbd5576760040f566f1544645c3ac.tar.xz
plus-459c2c3a6decbd5576760040f566f1544645c3ac.zip
Add some consts to draw backend.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h7
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