From 720dbe1e5a90adb66ada166090e34a571e24ff0a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 12 Jun 2014 22:27:45 +0300 Subject: Add set vbo function into modernopengl. --- src/render/modernopenglgraphics.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/render/modernopenglgraphics.h') 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 -- cgit v1.2.3-60-g2f50