summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-17 21:08:56 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-17 22:31:22 +0300
commit932a7f3ca748f04448c72c5d31515bc3a8008144 (patch)
treecc8f8af7da04d8c1c724dde76c7f6e895293871f /src/graphicsvertexes.h
parent3293fb7b5df3c93b7b6cccf56feb4fa42fd1ea41 (diff)
downloadmv-932a7f3ca748f04448c72c5d31515bc3a8008144.tar.gz
mv-932a7f3ca748f04448c72c5d31515bc3a8008144.tar.bz2
mv-932a7f3ca748f04448c72c5d31515bc3a8008144.tar.xz
mv-932a7f3ca748f04448c72c5d31515bc3a8008144.zip
Optimisation in drawing map in opengl mode.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index b01496b09..ac5168b4f 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -102,10 +102,13 @@ class OpenGLGraphicsVertexes
void clear();
- private:
+ int ptr;
+
GLfloat *mFloatTexArray;
GLint *mIntTexArray;
GLint *mIntVertArray;
+
+ private:
std::vector<GLfloat*> mFloatTexPool;
std::vector<GLint*> mIntVertPool;
std::vector<GLint*> mIntTexPool;