diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-06-14 23:22:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-06-14 23:37:06 +0300 |
commit | bc6c26b7616281cbeaf0987869f117664d829908 (patch) | |
tree | ffa64105836b7e28db724c66f4a8829a39b79762 /src/render/modernopenglgraphics.h | |
parent | 447729b01b7412833cc36e79f1ce9ebe15bf0e06 (diff) | |
download | ManaVerse-bc6c26b7616281cbeaf0987869f117664d829908.tar.gz ManaVerse-bc6c26b7616281cbeaf0987869f117664d829908.tar.bz2 ManaVerse-bc6c26b7616281cbeaf0987869f117664d829908.tar.xz ManaVerse-bc6c26b7616281cbeaf0987869f117664d829908.zip |
In modernopengl add support for EBO, but unused.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r-- | src/render/modernopenglgraphics.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.h b/src/render/modernopenglgraphics.h index b5f7fdd3a..28a7f8bbb 100644 --- a/src/render/modernopenglgraphics.h +++ b/src/render/modernopenglgraphics.h @@ -107,6 +107,8 @@ class ModernOpenGLGraphics final : public Graphics inline void bindAttributes(); + inline void bindElementBuffer(const GLuint ebo); + GLint *mIntArray; GLint *mIntArrayCached; ShaderProgram *mProgram; @@ -123,7 +125,9 @@ class ModernOpenGLGraphics final : public Graphics GLuint mDrawTypeUniform; GLuint mVao; GLuint mVbo; + GLuint mEbo; GLuint mVboCached; + GLuint mEboCached; GLuint mAttributesCached; bool mColorAlpha; bool mTextureDraw; |