summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-12 22:27:45 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-12 22:27:45 +0300
commit720dbe1e5a90adb66ada166090e34a571e24ff0a (patch)
tree8d5ecd6fe7289d88011fb0cd6044de4b64a1b6a6 /src/render/modernopenglgraphics.h
parent79a05c5d68c2d24d0b0e1b47c5eaa88f47940736 (diff)
downloadmanaplus-720dbe1e5a90adb66ada166090e34a571e24ff0a.tar.gz
manaplus-720dbe1e5a90adb66ada166090e34a571e24ff0a.tar.bz2
manaplus-720dbe1e5a90adb66ada166090e34a571e24ff0a.tar.xz
manaplus-720dbe1e5a90adb66ada166090e34a571e24ff0a.zip
Add set vbo function into modernopengl.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r--src/render/modernopenglgraphics.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h
index 3528462a8..ada964ee9 100644
--- a/src/render/modernopenglgraphics.h
+++ b/src/render/modernopenglgraphics.h
@@ -89,15 +89,14 @@ class ModernOpenGLGraphics final : public Graphics
inline void drawLineArrays(const int size);
+ inline void bindArrayBuffer(const GLuint vbo);
+
GLfloat *mFloatArray;
GLfloat *mFloatArrayCached;
ShaderProgram *mProgram;
float mAlphaCached;
int mVpCached;
- bool mIsByteColor;
- Color mByteColor;
- GLuint mImageCached;
float mFloatColor;
int mMaxVertices;
GLuint mProgramId;
@@ -108,6 +107,7 @@ class ModernOpenGLGraphics final : public Graphics
GLuint mDrawTypeUniform;
GLuint mVao;
GLuint mVbo;
+ GLuint mVboCached;
bool mColorAlpha;
bool mTextureDraw;
#ifdef DEBUG_BIND_TEXTURE