glMultiDrawElementsIndirect

render indexed primitives from array data, taking parameters from memory

Signature

glMultiDrawElementsIndirect( GLenum ( mode ) , GLenum ( type ) , const void *( indirect ) , GLsizei ( drawcount ) , GLsizei ( stride ) )-> void
glMultiDrawElementsIndirect( mode , type , indirect , drawcount , stride )

Parameters

VariablesDescription
mode
Specifies what kind of primitives to render. Symbolic constants GL_POINTS , GL_LINE_STRIP , GL_LINE_LOOP , GL_LINES , GL_LINE_STRIP_ADJACENCY , GL_LINES_ADJACENCY , GL_TRIANGLE_STRIP , GL_TRIANGLE_FAN , GL_TRIANGLES , GL_TRIANGLE_STRIP_ADJACENCY , GL_TRIANGLES_ADJACENCY , and GL_PATCHES are accepted.
type
Specifies the type of data in the buffer bound to the GL_ELEMENT_ARRAY_BUFFER binding.
indirect
Specifies the address of a structure containing an array of draw parameters.
drawcount
Specifies the number of elements in the array addressed by indirect .
stride
Specifies the distance in basic machine units between elements of the draw parameter array.