diff options
author | Peter Waller <p@pwaller.net> | 2014-03-01 10:59:15 +0000 |
---|---|---|
committer | Peter Waller <p@pwaller.net> | 2014-03-01 10:59:15 +0000 |
commit | e7d541a2bdc771b569d65f48e6358d0309524e28 (patch) | |
tree | 6d8fee166b1e5422e1f22e523e8004af81271756 | |
parent | 8563d2de6c69024af38b000993b02268388eccb4 (diff) | |
parent | 0cac2ac3e2cebf4924321ebff9f97356bd012095 (diff) | |
download | gl-e7d541a2bdc771b569d65f48e6358d0309524e28.tar.gz |
Merge pull request #135 from PolyFloyd/master
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), |