render: gl: Add glDrawElementsInstanced binding.
authorDavid Thompson <dthompson2@worcester.edu>
Thu, 25 Oct 2018 12:42:30 +0000 (08:42 -0400)
committerDavid Thompson <dthompson2@worcester.edu>
Thu, 25 Oct 2018 12:42:30 +0000 (08:42 -0400)
* chickadee/render/gl.scm (gl-draw-elements-instanced): New procedure.

chickadee/render/gl.scm

index 02ef321..e6d7305 100644 (file)
                                             (first GLint)
                                             (count GLsizei)
                                             (primcount GLsizei)
-                                            -> GLboolean)
+                                            -> void)
   "Draw multiple instances of a set of arrays.")
 
+(define-gl-procedure (glDrawElementsInstanced (mode GLenum)
+                                              (count GLsizei)
+                                              (type GLenum)
+                                              (indices void-*)
+                                              (primcount GLsizei)
+                                              -> void)
+  "Draw multiple instances of a set of elements.")
+
 (define-gl-procedure (glVertexAttribDivisor (index GLuint)
                                             (divisor GLuint)
                                             -> void)
   "Modify the rate at which generic vertex attributes advance during
 instanced rendering.")
 
-(export glDrawArraysInstanced
-        glVertexAttribDivisor)
+(export (glDrawArraysInstanced . gl-draw-arrays-instanced)
+        (glDrawElementsInstanced . gl-draw-elements-instanced)
+        (glVertexAttribDivisor . gl-vertex-attrib-divisor))
 
 ;;;
 ;;; VBOs