Top Description Constructors Methods
org.lwjgl.opengl

public Class ARBDrawElementsBaseVertex

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Native bindings to the ARB_draw_elements_base_vertex extension.

This extension provides a method to specify a "base vertex offset" value which is effectively added to every vertex index that is transferred through DrawElements.

This mechanism can be used to decouple a set of indices from the actual vertex array that it is referencing. This is useful if an application stores multiple indexed models in a single vertex array. The same index array can be used to draw the model no matter where it ends up in a larger vertex array simply by changing the base vertex value. Without this functionality, it would be necessary to rebind all the vertex attributes every time geometry is switched and this can have larger performance penalty.

For example consider the (very contrived and simple) example of drawing two triangles to form a quad. In the typical example you have the following setup:


    vertices         indices
   ----------        -----
0 | (-1,  1) |    0 |  0  |
1 | (-1, -1) |    1 |  1  |
2 | ( 1, -1) |    2 |  2  |
3 | ( 1,  1) |    3 |  3  |
   ----------     4 |  0  |
                  5 |  2  |
                     -----

which is normally rendered with the call


DrawElements(TRIANGLES, 6, UNSIGNED_BYTE, &indices).

Now consider the case where the vertices you want to draw are not at the start of a vertex array but are instead located at offset 100 into a larger array:


     vertices2         indices2
     ----------        -----
        ....        0 | 100 |
100 | (-1,  1) |    1 | 101 |
101 | (-1, -1) |    2 | 102 |
102 | ( 1, -1) |    3 | 103 |
103 | ( 1,  1) |    4 | 100 |
        ....        5 | 102 |
     ----------        -----

The typical choices for rendering this are to rebind your vertex attributes with an additional offset of 100*stride, or to create an new array of indices (as indices2 in the example). However both rebinding vertex attributes and rebuilding index arrays can be quite costly activities.

With the new drawing commands introduced by this extension you can instead draw using vertices2 and the new draw call:


DrawElementsBaseVertex(TRIANGLES, 6, UNSIGNED_BYTE, &indices, 100)

Promoted to core in OpenGL 3.2.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glDrawElementsBaseVertex(int mode, int
the number of elements to be rendered
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
long
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawElementsBaseVertex(int mode, int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
ByteBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawElementsBaseVertex(int mode, ByteBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawElementsBaseVertex(int mode, ShortBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawElementsBaseVertex(int mode, IntBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawElementsInstancedBaseVertex(int mode, int
the number of elements to be rendered
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
long
a pointer to the location where the indices are stored
indices
,
int
the number of instances of the indexed geometry that should be drawn
primcount
,
int
a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
basevertex
)

Renders multiple instances of a set of primitives from array data with a per-element offset.

public static void
glDrawElementsInstancedBaseVertex(int mode, int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
ByteBuffer
a pointer to the location where the indices are stored
indices
,
int
the number of instances of the indexed geometry that should be drawn
primcount
,
int
a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
basevertex
)

Renders multiple instances of a set of primitives from array data with a per-element offset.

public static void
glDrawElementsInstancedBaseVertex(int mode, ByteBuffer
a pointer to the location where the indices are stored
indices
,
int
the number of instances of the indexed geometry that should be drawn
primcount
,
int
a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
basevertex
)

Renders multiple instances of a set of primitives from array data with a per-element offset.

public static void
glDrawElementsInstancedBaseVertex(int mode, ShortBuffer
a pointer to the location where the indices are stored
indices
,
int
the number of instances of the indexed geometry that should be drawn
primcount
,
int
a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
basevertex
)

Renders multiple instances of a set of primitives from array data with a per-element offset.

public static void
glDrawElementsInstancedBaseVertex(int mode, IntBuffer
a pointer to the location where the indices are stored
indices
,
int
the number of instances of the indexed geometry that should be drawn
primcount
,
int
a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays
basevertex
)

Renders multiple instances of a set of primitives from array data with a per-element offset.

public static void
glDrawRangeElementsBaseVertex(int mode, int
the minimum array index contained in indices
start
,
int
the maximum array index contained in indices
end
,
int
the number of elements to be rendered
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
long
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawRangeElementsBaseVertex(int mode, int
the minimum array index contained in indices
start
,
int
the maximum array index contained in indices
end
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
ByteBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawRangeElementsBaseVertex(int mode, int
the minimum array index contained in indices
start
,
int
the maximum array index contained in indices
end
,
ByteBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawRangeElementsBaseVertex(int mode, int
the minimum array index contained in indices
start
,
int
the maximum array index contained in indices
end
,
ShortBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glDrawRangeElementsBaseVertex(int mode, int
the minimum array index contained in indices
start
,
int
the maximum array index contained in indices
end
,
IntBuffer
a pointer to the location where the indices are stored
indices
,
int
a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays
basevertex
)

Renders primitives from array data with a per-element offset.

public static void
glMultiDrawElementsBaseVertex(int mode, IntBuffer
an array of the elements counts
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
PointerBuffer
a pointer to the location where the indices are stored
indices
,
IntBuffer
a pointer to the location where the base vertices are stored
basevertex
)

Renders multiple sets of primitives by specifying indices of array data elements and an offset to apply to each index.

public static void
glMultiDrawElementsBaseVertex(int mode, int[] count, int type, PointerBuffer indices, int[] basevertex)

Array version of: MultiDrawElementsBaseVertex

public static void
nglDrawElementsBaseVertex(int mode, int
the number of elements to be rendered
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
long indices, int basevertex)

Unsafe version of: DrawElementsBaseVertex

public static void
nglDrawElementsInstancedBaseVertex(int mode, int
the number of elements to be rendered
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
long indices, int primcount, int basevertex)

Unsafe version of: DrawElementsInstancedBaseVertex

public static void
nglDrawRangeElementsBaseVertex(int mode, int start, int end, int
the number of elements to be rendered
count
,
int
the type of the values in indices. One of:
UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
type
,
long indices, int basevertex)

Unsafe version of: DrawRangeElementsBaseVertex

public static void
nglMultiDrawElementsBaseVertex(int mode, long count, int type, long indices, int
the size of the count array
drawcount
,
long basevertex)

Unsafe version of: MultiDrawElementsBaseVertex

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ARBDrawElementsBaseVertexback to summary
protected ARBDrawElementsBaseVertex()

Method Detail

glDrawElementsBaseVertexback to summary
public static void glDrawElementsBaseVertex(int mode, int count, int type, long indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
count:int

the number of elements to be rendered

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:long

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawElementsBaseVertexback to summary
public static void glDrawElementsBaseVertex(int mode, int type, ByteBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:ByteBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawElementsBaseVertexback to summary
public static void glDrawElementsBaseVertex(int mode, ByteBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
indices:ByteBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawElementsBaseVertexback to summary
public static void glDrawElementsBaseVertex(int mode, ShortBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
indices:ShortBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawElementsBaseVertexback to summary
public static void glDrawElementsBaseVertex(int mode, IntBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
indices:IntBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawElementsInstancedBaseVertexback to summary
public static void glDrawElementsInstancedBaseVertex(int mode, int count, int type, long indices, int primcount, int basevertex)

Renders multiple instances of a set of primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
count:int

the number of elements to be rendered

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:long

a pointer to the location where the indices are stored

primcount:int

the number of instances of the indexed geometry that should be drawn

basevertex:int

a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays

glDrawElementsInstancedBaseVertexback to summary
public static void glDrawElementsInstancedBaseVertex(int mode, int type, ByteBuffer indices, int primcount, int basevertex)

Renders multiple instances of a set of primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:ByteBuffer

a pointer to the location where the indices are stored

primcount:int

the number of instances of the indexed geometry that should be drawn

basevertex:int

a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays

glDrawElementsInstancedBaseVertexback to summary
public static void glDrawElementsInstancedBaseVertex(int mode, ByteBuffer indices, int primcount, int basevertex)

Renders multiple instances of a set of primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
indices:ByteBuffer

a pointer to the location where the indices are stored

primcount:int

the number of instances of the indexed geometry that should be drawn

basevertex:int

a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays

glDrawElementsInstancedBaseVertexback to summary
public static void glDrawElementsInstancedBaseVertex(int mode, ShortBuffer indices, int primcount, int basevertex)

Renders multiple instances of a set of primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
indices:ShortBuffer

a pointer to the location where the indices are stored

primcount:int

the number of instances of the indexed geometry that should be drawn

basevertex:int

a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays

glDrawElementsInstancedBaseVertexback to summary
public static void glDrawElementsInstancedBaseVertex(int mode, IntBuffer indices, int primcount, int basevertex)

Renders multiple instances of a set of primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
indices:IntBuffer

a pointer to the location where the indices are stored

primcount:int

the number of instances of the indexed geometry that should be drawn

basevertex:int

a constant that should be added to each element of indices when chosing elements from the enabled vertex arrays

glDrawRangeElementsBaseVertexback to summary
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, long indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
start:int

the minimum array index contained in indices

end:int

the maximum array index contained in indices

count:int

the number of elements to be rendered

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:long

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawRangeElementsBaseVertexback to summary
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, int type, ByteBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
start:int

the minimum array index contained in indices

end:int

the maximum array index contained in indices

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:ByteBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawRangeElementsBaseVertexback to summary
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, ByteBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
start:int

the minimum array index contained in indices

end:int

the maximum array index contained in indices

indices:ByteBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawRangeElementsBaseVertexback to summary
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, ShortBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
start:int

the minimum array index contained in indices

end:int

the maximum array index contained in indices

indices:ShortBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glDrawRangeElementsBaseVertexback to summary
public static void glDrawRangeElementsBaseVertex(int mode, int start, int end, IntBuffer indices, int basevertex)

Renders primitives from array data with a per-element offset.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
start:int

the minimum array index contained in indices

end:int

the maximum array index contained in indices

indices:IntBuffer

a pointer to the location where the indices are stored

basevertex:int

a constant that should be added to each element of indices when choosing elements from the enabled vertex arrays

glMultiDrawElementsBaseVertexback to summary
public static void glMultiDrawElementsBaseVertex(int mode, IntBuffer count, int type, PointerBuffer indices, IntBuffer basevertex)

Renders multiple sets of primitives by specifying indices of array data elements and an offset to apply to each index.

LWJGL note: Use org.lwjgl.system.MemoryUtil#memAddress to retrieve pointers to the index buffers.

Parameters
mode:int

the kind of primitives to render. One of:

POINTSLINE_STRIPLINE_LOOPLINESTRIANGLE_STRIPTRIANGLE_FANTRIANGLES
LINES_ADJACENCYLINE_STRIP_ADJACENCYTRIANGLES_ADJACENCYTRIANGLE_STRIP_ADJACENCYPATCHESPOLYGONQUADS
QUAD_STRIP
count:IntBuffer

an array of the elements counts

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
indices:PointerBuffer

a pointer to the location where the indices are stored

basevertex:IntBuffer

a pointer to the location where the base vertices are stored

glMultiDrawElementsBaseVertexback to summary
public static void glMultiDrawElementsBaseVertex(int mode, int[] count, int type, PointerBuffer indices, int[] basevertex)

Array version of: MultiDrawElementsBaseVertex

nglDrawElementsBaseVertexback to summary
public static void nglDrawElementsBaseVertex(int mode, int count, int type, long indices, int basevertex)

Unsafe version of: DrawElementsBaseVertex

Parameters
count:int

the number of elements to be rendered

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
nglDrawElementsInstancedBaseVertexback to summary
public static void nglDrawElementsInstancedBaseVertex(int mode, int count, int type, long indices, int primcount, int basevertex)

Unsafe version of: DrawElementsInstancedBaseVertex

Parameters
count:int

the number of elements to be rendered

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
nglDrawRangeElementsBaseVertexback to summary
public static void nglDrawRangeElementsBaseVertex(int mode, int start, int end, int count, int type, long indices, int basevertex)

Unsafe version of: DrawRangeElementsBaseVertex

Parameters
count:int

the number of elements to be rendered

type:int

the type of the values in indices. One of:

UNSIGNED_BYTEUNSIGNED_SHORTUNSIGNED_INT
nglMultiDrawElementsBaseVertexback to summary
public static void nglMultiDrawElementsBaseVertex(int mode, long count, int type, long indices, int drawcount, long basevertex)

Unsafe version of: MultiDrawElementsBaseVertex

Parameters
drawcount:int

the size of the count array