diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-25 21:43:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-26 13:48:26 +0300 |
commit | 9abb51fce0cca32ebe267c4797363d99520c2a0a (patch) | |
tree | e0a22c5dc699fdd0f85d04ff1aa96196cc8d43ac /src/graphicsvertexes.h | |
parent | 5ff486002243e1481e6686494a85480a85220451 (diff) | |
download | manaverse-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.gz manaverse-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.bz2 manaverse-9abb51fce0cca32ebe267c4797363d99520c2a0a.tar.xz manaverse-9abb51fce0cca32ebe267c4797363d99520c2a0a.zip |
Add initial version of mobile OpenGL backend.
Diffstat (limited to 'src/graphicsvertexes.h')
-rw-r--r-- | src/graphicsvertexes.h | 16 |
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 |