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/graphicsvertexes.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/graphicsvertexes.h') 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 *getRectsSDL(); + const std::vector *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 -- cgit v1.2.3-60-g2f50