//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), ptr(indices), C.GLsizei(primcount)) }
func DrawElementsInstancedShort(mode DrawMode, count int, indices []uint16, instanceCount int) { C.glDrawElementsInstanced(C.GLenum(mode), C.GLsizei(count), C.GL_UNSIGNED_SHORT, unsafe.Pointer(&indices[0]), C.GLsizei(instanceCount)) }