glDrawElementsIndirect

render indexed primitives from array data, taking parameters from memory

Signature

glDrawElementsIndirect( GLenum ( mode ) , GLenum ( type ) , const void *( indirect ) )-> void
glDrawElementsIndirect( mode , type , indirect )

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 the draw parameters.