summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-06-14 23:22:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-06-14 23:37:06 +0300
commitbc6c26b7616281cbeaf0987869f117664d829908 (patch)
treeffa64105836b7e28db724c66f4a8829a39b79762 /src/render/modernopenglgraphics.h
parent447729b01b7412833cc36e79f1ce9ebe15bf0e06 (diff)
downloadmv-bc6c26b7616281cbeaf0987869f117664d829908.tar.gz
mv-bc6c26b7616281cbeaf0987869f117664d829908.tar.bz2
mv-bc6c26b7616281cbeaf0987869f117664d829908.tar.xz
mv-bc6c26b7616281cbeaf0987869f117664d829908.zip
In modernopengl add support for EBO, but unused.
Diffstat (limited to 'src/render/modernopenglgraphics.h')
-rw-r--r--src/render/modernopenglgraphics.h4
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;