diff options
author | PolyFloyd <floyd@polyfloyd.net> | 2014-02-28 21:06:00 +0100 |
---|---|---|
committer | PolyFloyd <floyd@polyfloyd.net> | 2014-02-28 21:06:00 +0100 |
commit | 0cac2ac3e2cebf4924321ebff9f97356bd012095 (patch) | |
tree | 6d8fee166b1e5422e1f22e523e8004af81271756 | |
parent | 8563d2de6c69024af38b000993b02268388eccb4 (diff) | |
download | gl-0cac2ac3e2cebf4924321ebff9f97356bd012095.tar.gz |
Added glDrawRangeElements()
-rw-r--r-- | gl.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -257,6 +257,12 @@ func DrawElements(mode GLenum, count int, typ GLenum, indices interface{}) { ptr(indices)) } +//void glDrawRangeElements (GLenum mode, int start, int end, int count, GLenum type, const GLvoid *indices) +func DrawRangeElements(mode GLenum, start, end uint, count int, typ GLenum, indices interface{}) { + C.glDrawRangeElements(C.GLenum(mode), C.GLuint(start), C.GLuint(end), C.GLsizei(count), C.GLenum(typ), + ptr(indices)) +} + //void glDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei primcount) func DrawElementsInstanced(mode GLenum, count int, typ GLenum, indices interface{}, primcount int) { C.glDrawElementsInstanced(C.GLenum(mode), C.GLsizei(count), C.GLenum(typ), |