summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-26 21:29:59 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-26 21:29:59 +0300
commita33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (patch)
tree1b1e98a615e2c03641c99b66cb4667b56f7087c3 /src/graphicsvertexes.h
parent012a10fd8153f3ddb775dde1e4dba4456f2aa9de (diff)
downloadmv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.gz
mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.bz2
mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.xz
mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.zip
Add const to some classes.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index 31eb401f2..f0c19d4bc 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -151,18 +151,18 @@ class GraphicsVertexes
NormalOpenGLGraphicsVertexes ogl[5];
#endif
- void init(int x, int y, int w, int h);
+ void init(const int x, const int y, const int w, const int h);
- void pushSDL(SDL_Rect r1, SDL_Rect r2);
+ void pushSDL(const SDL_Rect r1, const SDL_Rect r2);
void clearSDL();
std::vector<DoubleRect*> *getRectsSDL();
- void incPtr(int num = 1)
+ void incPtr(const int num = 1)
{ mPtr += num; }
- void setPtr(int num)
+ void setPtr(const int num)
{ mPtr = num; }
#ifdef USE_OPENGL
@@ -170,16 +170,16 @@ class GraphicsVertexes
{ return &ogl[mPtr]; }
#endif
- int getX()
+ int getX() const
{ return mX; }
- int getY()
+ int getY() const
{ return mY; }
- int getW()
+ int getW() const
{ return mW; }
- int getH()
+ int getH() const
{ return mH; }
int mX, mY, mW, mH;