glMultiDrawElementsBaseVertex

glMultiDrawElementsBaseVertex: man4/glMultiDrawElementsBaseVertex.xml

glMultiDrawElementsBaseVertex behaves identically to glDrawElementsBaseVertex, except that drawcount separate lists of elements are specifried instead. It has the same effect as:

for (int i = 0; i <  $(D_INLINECODE drawcount); i++)
    if ( $(D_INLINECODE count)[i] > 0)
        glDrawElementsBaseVertex( $(D_INLINECODE mode),
                                  $(D_INLINECODE count)[i],
                                  $(D_INLINECODE type),
                                  $(D_INLINECODE indices[i]),
                                  $(D_INLINECODE basevertex[i]));
More...
@OpenGL_Version(OGLIntroducedIn.V3P2)
@OpenGL_Extension("GL_ARB_draw_elements_base_vertex")
fn_glMultiDrawElementsBaseVertex glMultiDrawElementsBaseVertex;

Detailed Description

glMultiDrawElementsBaseVertex is available only if the GL version is 3.1 or greater. GL_LINE_STRIP_ADJACENCY, GL_LINES_ADJACENCY, GL_TRIANGLE_STRIP_ADJACENCY and GL_TRIANGLES_ADJACENCY are available only if the GL version is 3.2 or greater.

See Also

glMultiDrawElements, glDrawElementsBaseVertex, glDrawArrays, glVertexAttribPointer

Meta