summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
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