From 67d4e7c64d9c1ff5bd4c8fe65e585f3186d22c90 Mon Sep 17 00:00:00 2001 From: Ioannis Tsakpinis Date: Wed, 17 Jul 2013 15:57:39 +0300 Subject: [PATCH] Added a DrawElements version with explicit count & type parameters. --- src/templates/org/lwjgl/opengl/GL11.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/templates/org/lwjgl/opengl/GL11.java b/src/templates/org/lwjgl/opengl/GL11.java index 9607590e..1d6d871e 100644 --- a/src/templates/org/lwjgl/opengl/GL11.java +++ b/src/templates/org/lwjgl/opengl/GL11.java @@ -921,6 +921,9 @@ public interface GL11 { @GLushort @GLuint Buffer indices); + @Alternate("glDrawElements") + void glDrawElements(@GLenum int mode, @GLsizei int count, @GLenum int type, @BufferObject(BufferKind.ElementVBO) @Const @Check("count") ByteBuffer indices); + void glDrawBuffer(@GLenum int mode); void glDrawArrays(@GLenum int mode, int first, @GLsizei int count);