summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-13 17:24:06 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-13 17:24:06 +0300
commit79075b1688a4218dcee56d727dc2f6c88051c9c0 (patch)
tree7ae69a4ecfd7f066990673dbfad1c66d81ec666a /src/graphicsvertexes.h
parent0b734fa8db3cfcef12f4dc35bd4f8da1bb86944d (diff)
downloadmanaverse-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.h10
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