summaryrefslogtreecommitdiff
path: root/src/graphicsvertexes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r--src/graphicsvertexes.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/graphicsvertexes.h b/src/graphicsvertexes.h
index 789e9fd34..6a2e30664 100644
--- a/src/graphicsvertexes.h
+++ b/src/graphicsvertexes.h
@@ -37,8 +37,9 @@
#include <SDL/SDL.h>
-#include "safeopenglgraphics.h"
+#include "mobileopenglgraphics.h"
#include "normalopenglgraphics.h"
+#include "safeopenglgraphics.h"
#endif
#include "resources/image.h"
@@ -85,12 +86,17 @@ class NormalOpenGLGraphicsVertexes final
GLint *switchIntTexArray();
+ GLshort *switchShortVertArray();
+
std::vector<GLfloat*> *getFloatTexPool()
{ return &mFloatTexPool; }
std::vector<GLint*> *getIntVertPool()
{ return &mIntVertPool; }
+ std::vector<GLshort*> *getShortVertPool()
+ { return &mShortVertPool; }
+
std::vector<GLint*> *getIntTexPool()
{ return &mIntTexPool; }
@@ -100,6 +106,8 @@ class NormalOpenGLGraphicsVertexes final
GLint *continueIntVertArray();
+ GLshort *continueShortVertArray();
+
GLint *continueIntTexArray();
int continueVp();
@@ -118,9 +126,11 @@ class NormalOpenGLGraphicsVertexes final
GLfloat *mFloatTexArray;
GLint *mIntTexArray;
GLint *mIntVertArray;
+ GLshort *mShortVertArray;
std::vector<int> mVp;
std::vector<GLfloat*> mFloatTexPool;
std::vector<GLint*> mIntVertPool;
+ std::vector<GLshort*> mShortVertPool;
std::vector<GLint*> mIntTexPool;
};
#endif
@@ -203,4 +213,8 @@ class GraphicsVertexes final
#endif
};
+#ifdef USE_OPENGL
+extern unsigned int vertexBufSize;
+#endif
+
#endif // GRAPHICSVERTEXES_H