glMultiDrawArraysIndirect

render multiple sets of primitives from array data, taking parameters from memory

Signature

glMultiDrawArraysIndirect( GLenum ( mode ) , const void *( indirect ) , GLsizei ( drawcount ) , GLsizei ( stride ) )-> void
glMultiDrawArraysIndirect( mode , 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.
indirect
Specifies the address of an array of structures containing the draw parameters.
drawcount
Specifies the the number of elements in the array of draw parameter structures.
stride
Specifies the distance in basic machine units between elements of the draw parameter array.