Class EXTBaseInstance
- java.lang.Object
-
- org.lwjgl.opengles.EXTBaseInstance
-
public class EXTBaseInstance extends java.lang.ObjectNative bindings to the EXT_base_instance extension.This extension allows the offset within buffer objects used for instanced rendering to be specified. This is congruent with the
firstparameter in glDrawArrays and thebasevertexparameter in glDrawElements. When instanced rendering is performed (for example, through glDrawArraysInstanced), instanced vertex attributes whose vertex attribute divisors are non-zero are fetched from enabled vertex arrays per-instance rather than per-vertex. However, in unextended OpenGL ES, there is no way to define the offset into those arrays from which the attributes are fetched. This extension adds that offset in the form of abaseinstanceparameter to several new procedures.The
baseinstanceparameter is added to the index of the array element, after division by the vertex attribute divisor. This allows several sets of instanced vertex attribute data to be stored in a single vertex array, and the base offset of that data to be specified for each draw. Further, this extension exposes thebaseinstanceparameter as the final and previously undefined structure member of the draw-indirect data structure.Requires
GLES 3.0.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglDrawArraysInstancedBaseInstanceEXT(int mode, int first, int count, int instancecount, int baseinstance)static voidglDrawElementsInstancedBaseInstanceEXT(int mode, java.nio.ByteBuffer indices, int instancecount, int baseinstance)static voidglDrawElementsInstancedBaseInstanceEXT(int mode, java.nio.IntBuffer indices, int instancecount, int baseinstance)static voidglDrawElementsInstancedBaseInstanceEXT(int mode, int type, java.nio.ByteBuffer indices, int instancecount, int baseinstance)static voidglDrawElementsInstancedBaseInstanceEXT(int mode, int count, int type, long indices, int instancecount, int baseinstance)static voidglDrawElementsInstancedBaseInstanceEXT(int mode, java.nio.ShortBuffer indices, int instancecount, int baseinstance)static voidglDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, java.nio.ByteBuffer indices, int instancecount, int basevertex, int baseinstance)static voidglDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, java.nio.IntBuffer indices, int instancecount, int basevertex, int baseinstance)static voidglDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, int type, java.nio.ByteBuffer indices, int instancecount, int basevertex, int baseinstance)static voidglDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, int count, int type, long indices, int instancecount, int basevertex, int baseinstance)static voidglDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, java.nio.ShortBuffer indices, int instancecount, int basevertex, int baseinstance)
-
-
-
Method Detail
-
glDrawArraysInstancedBaseInstanceEXT
public static void glDrawArraysInstancedBaseInstanceEXT(int mode, int first, int count, int instancecount, int baseinstance)
-
glDrawElementsInstancedBaseInstanceEXT
public static void glDrawElementsInstancedBaseInstanceEXT(int mode, int count, int type, long indices, int instancecount, int baseinstance)
-
glDrawElementsInstancedBaseInstanceEXT
public static void glDrawElementsInstancedBaseInstanceEXT(int mode, int type, java.nio.ByteBuffer indices, int instancecount, int baseinstance)
-
glDrawElementsInstancedBaseInstanceEXT
public static void glDrawElementsInstancedBaseInstanceEXT(int mode, java.nio.ByteBuffer indices, int instancecount, int baseinstance)
-
glDrawElementsInstancedBaseInstanceEXT
public static void glDrawElementsInstancedBaseInstanceEXT(int mode, java.nio.ShortBuffer indices, int instancecount, int baseinstance)
-
glDrawElementsInstancedBaseInstanceEXT
public static void glDrawElementsInstancedBaseInstanceEXT(int mode, java.nio.IntBuffer indices, int instancecount, int baseinstance)
-
glDrawElementsInstancedBaseVertexBaseInstanceEXT
public static void glDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, int count, int type, long indices, int instancecount, int basevertex, int baseinstance)
-
glDrawElementsInstancedBaseVertexBaseInstanceEXT
public static void glDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, int type, java.nio.ByteBuffer indices, int instancecount, int basevertex, int baseinstance)
-
glDrawElementsInstancedBaseVertexBaseInstanceEXT
public static void glDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, java.nio.ByteBuffer indices, int instancecount, int basevertex, int baseinstance)
-
glDrawElementsInstancedBaseVertexBaseInstanceEXT
public static void glDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, java.nio.ShortBuffer indices, int instancecount, int basevertex, int baseinstance)
-
glDrawElementsInstancedBaseVertexBaseInstanceEXT
public static void glDrawElementsInstancedBaseVertexBaseInstanceEXT(int mode, java.nio.IntBuffer indices, int instancecount, int basevertex, int baseinstance)
-
-