diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-13 17:24:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-13 17:24:06 +0300 |
commit | 79075b1688a4218dcee56d727dc2f6c88051c9c0 (patch) | |
tree | 7ae69a4ecfd7f066990673dbfad1c66d81ec666a /src/graphicsvertexes.h | |
parent | 0b734fa8db3cfcef12f4dc35bd4f8da1bb86944d (diff) | |
download | manaverse-79075b1688a4218dcee56d727dc2f6c88051c9c0.tar.gz manaverse-79075b1688a4218dcee56d727dc2f6c88051c9c0.tar.bz2 manaverse-79075b1688a4218dcee56d727dc2f6c88051c9c0.tar.xz manaverse-79075b1688a4218dcee56d727dc2f6c88051c9c0.zip |
Change some pointers to references in OpenGL draw code.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r-- | src/graphicsvertexes.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h index 4a4fd37f9..b5140aa52 100644 --- a/src/graphicsvertexes.h +++ b/src/graphicsvertexes.h @@ -108,12 +108,10 @@ class NormalOpenGLGraphicsVertexes GLfloat *mFloatTexArray; GLint *mIntTexArray; GLint *mIntVertArray; - - private: + std::vector<int> mVp; std::vector<GLfloat*> mFloatTexPool; std::vector<GLint*> mIntVertPool; std::vector<GLint*> mIntTexPool; - std::vector<int> mVp; }; #endif @@ -130,7 +128,7 @@ class ImageVertexes DoubleRects sdl; #ifdef USE_OPENGL - NormalOpenGLGraphicsVertexes *ogl; + NormalOpenGLGraphicsVertexes ogl; #endif }; @@ -166,8 +164,8 @@ class GraphicsVertexes { mPtr = num; } #ifdef USE_OPENGL - NormalOpenGLGraphicsVertexes* getOGL() - { return &ogl[mPtr]; } + NormalOpenGLGraphicsVertexes &getOGL() + { return ogl[mPtr]; } #endif int getX() const |