Class EXTMultiDrawIndirect


  • public class EXTMultiDrawIndirect
    extends java.lang.Object
    Native bindings to the EXT_multi_draw_indirect extension.

    The ARB_draw_indirect extension (included in OpenGL 4.0 and OpenGL ES 3.1) introduced mechanisms whereby the parameters for a draw function may be provided in a structure contained in a buffer object rather than as parameters to the drawing procedure. This is known as an indirect draw and is exposed as two new functions, glDrawArraysIndirect and glDrawElementsIndirect. Each of these functions generates a single batch of primitives.

    This extension builds on this functionality by providing procedures to invoke multiple draws from a single procedure call. This allows large batches of drawing commands to be assembled in server memory (via a buffer object) which may then be dispatched through a single function call.

    Requires GLES 3.1.

    • Method Detail

      • nglMultiDrawArraysIndirectEXT

        public static void nglMultiDrawArraysIndirectEXT​(int mode,
                                                         long indirect,
                                                         int drawcount,
                                                         int stride)
      • glMultiDrawArraysIndirectEXT

        public static void glMultiDrawArraysIndirectEXT​(int mode,
                                                        java.nio.ByteBuffer indirect,
                                                        int drawcount,
                                                        int stride)
      • glMultiDrawArraysIndirectEXT

        public static void glMultiDrawArraysIndirectEXT​(int mode,
                                                        long indirect,
                                                        int drawcount,
                                                        int stride)
      • glMultiDrawArraysIndirectEXT

        public static void glMultiDrawArraysIndirectEXT​(int mode,
                                                        java.nio.IntBuffer indirect,
                                                        int drawcount,
                                                        int stride)
      • nglMultiDrawElementsIndirectEXT

        public static void nglMultiDrawElementsIndirectEXT​(int mode,
                                                           int type,
                                                           long indirect,
                                                           int drawcount,
                                                           int stride)
      • glMultiDrawElementsIndirectEXT

        public static void glMultiDrawElementsIndirectEXT​(int mode,
                                                          int type,
                                                          java.nio.ByteBuffer indirect,
                                                          int drawcount,
                                                          int stride)
      • glMultiDrawElementsIndirectEXT

        public static void glMultiDrawElementsIndirectEXT​(int mode,
                                                          int type,
                                                          long indirect,
                                                          int drawcount,
                                                          int stride)
      • glMultiDrawElementsIndirectEXT

        public static void glMultiDrawElementsIndirectEXT​(int mode,
                                                          int type,
                                                          java.nio.IntBuffer indirect,
                                                          int drawcount,
                                                          int stride)
      • glMultiDrawArraysIndirectEXT

        public static void glMultiDrawArraysIndirectEXT​(int mode,
                                                        int[] indirect,
                                                        int drawcount,
                                                        int stride)
        Array version of: MultiDrawArraysIndirectEXT
      • glMultiDrawElementsIndirectEXT

        public static void glMultiDrawElementsIndirectEXT​(int mode,
                                                          int type,
                                                          int[] indirect,
                                                          int drawcount,
                                                          int stride)