aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolyFloyd <floyd@polyfloyd.net>2014-02-28 21:06:00 +0100
committerPolyFloyd <floyd@polyfloyd.net>2014-02-28 21:06:00 +0100
commit0cac2ac3e2cebf4924321ebff9f97356bd012095 (patch)
tree6d8fee166b1e5422e1f22e523e8004af81271756
parent8563d2de6c69024af38b000993b02268388eccb4 (diff)
downloadgl-0cac2ac3e2cebf4924321ebff9f97356bd012095.tar.gz
Added glDrawRangeElements()
-rw-r--r--gl.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/gl.go b/gl.go
index a575c8f..e337469 100644
--- a/gl.go
+++ b/gl.go
@@ -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),