From 9abb51fce0cca32ebe267c4797363d99520c2a0a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Oct 2012 21:43:32 +0300 Subject: Add initial version of mobile OpenGL backend. --- src/graphicsvertexes.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'src/graphicsvertexes.h') 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 -#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 *getFloatTexPool() { return &mFloatTexPool; } std::vector *getIntVertPool() { return &mIntVertPool; } + std::vector *getShortVertPool() + { return &mShortVertPool; } + std::vector *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 mVp; std::vector mFloatTexPool; std::vector mIntVertPool; + std::vector mShortVertPool; std::vector mIntTexPool; }; #endif @@ -203,4 +213,8 @@ class GraphicsVertexes final #endif }; +#ifdef USE_OPENGL +extern unsigned int vertexBufSize; +#endif + #endif // GRAPHICSVERTEXES_H -- cgit v1.2.3-60-g2f50