aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/OpenGL/Driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Irrlicht/OpenGL/Driver.h')
-rw-r--r--source/Irrlicht/OpenGL/Driver.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Irrlicht/OpenGL/Driver.h b/source/Irrlicht/OpenGL/Driver.h
index c91ccfe..84cc62b 100644
--- a/source/Irrlicht/OpenGL/Driver.h
+++ b/source/Irrlicht/OpenGL/Driver.h
@@ -331,7 +331,7 @@ namespace video
void drawQuad(const VertexType &vertexType, const S3DVertex (&vertices)[4]);
void drawArrays(GLenum primitiveType, const VertexType &vertexType, const void *vertices, int vertexCount);
- void drawElements(GLenum primitiveType, const VertexType &vertexType, const void *vertices, const u16 *indices, int indexCount);
+ void drawElements(GLenum primitiveType, const VertexType &vertexType, const void *vertices, int vertexCount, const u16 *indices, int indexCount);
void drawElements(GLenum primitiveType, const VertexType &vertexType, uintptr_t vertices, uintptr_t indices, int indexCount);
void beginDraw(const VertexType &vertexType, uintptr_t verticesBase);
@@ -386,7 +386,8 @@ private:
void addDummyMaterial(E_MATERIAL_TYPE type);
- std::vector<u16> QuadsIndices;
+ unsigned QuadIndexCount;
+ GLuint QuadIndexBuffer = 0;
void initQuadsIndices(int max_vertex_count = 65536);
void debugCb(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message);