summaryrefslogtreecommitdiff
path: root/src/render/mobileopengl2graphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-10 19:30:39 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-11 01:47:16 +0300
commit5e460c2c47e85a5ec70e0979750170ec6cd199b3 (patch)
treee3d56ca117fd24c9c916df5589001c8cb960f1f1 /src/render/mobileopengl2graphics.h
parentc5a6f80e62fd9836a75058ac358d39dd5ec956b5 (diff)
downloadmv-5e460c2c47e85a5ec70e0979750170ec6cd199b3.tar.gz
mv-5e460c2c47e85a5ec70e0979750170ec6cd199b3.tar.bz2
mv-5e460c2c47e85a5ec70e0979750170ec6cd199b3.tar.xz
mv-5e460c2c47e85a5ec70e0979750170ec6cd199b3.zip
Impliment initial mobileopengl2graphics as OpenGL ES 2 backend.
Diffstat (limited to 'src/render/mobileopengl2graphics.h')
-rw-r--r--src/render/mobileopengl2graphics.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/render/mobileopengl2graphics.h b/src/render/mobileopengl2graphics.h
index 730dcd304..1a9ce3284 100644
--- a/src/render/mobileopengl2graphics.h
+++ b/src/render/mobileopengl2graphics.h
@@ -94,7 +94,7 @@ class MobileOpenGL2Graphics final : public Graphics
inline void drawTriangleArray(const int size);
- inline void drawTriangleArray(const GLint *const array,
+ inline void drawTriangleArray(const GLfloat *const array,
const int size);
inline void drawLineArrays(const int size);
@@ -105,8 +105,11 @@ class MobileOpenGL2Graphics final : public Graphics
inline void bindAttributes();
- GLint *mIntArray A_NONNULLPOINTER;
- GLint *mIntArrayCached A_NONNULLPOINTER;
+ static void bindTexture2(const GLenum target,
+ const Image *const image);
+
+ GLfloat *mFloatArray A_NONNULLPOINTER;
+ GLfloat *mFloatArrayCached A_NONNULLPOINTER;
ShaderProgram *mProgram;
float mAlphaCached;
int mVpCached;
@@ -115,6 +118,7 @@ class MobileOpenGL2Graphics final : public Graphics
int mMaxVertices;
GLuint mProgramId;
GLuint mSimpleColorUniform;
+ static GLuint mTextureSizeUniform;
GLint mPosAttrib;
GLint mTextureColorUniform;
GLuint mScreenUniform;