GLMULTIDRAWELEMENTSB(3G)
π NAME π
Okay so welcome to the GLMULTIDRAWELEMENTSB(3G) page, bestie. The function is glMultiDrawElementsBaseVertex β render multiple sets of primitives by specifying indices of array data elements and an index to apply to each index. Itβs giving βone call, many element listsβ energy. π¦
β¨ C SPECIFICATION β¨
Hereβs the exact signature, no cap:
void glMultiDrawElementsBaseVertex(GLenum mode, const GLsizei *count,
GLenum type,
const GLvoid * const *indices,
GLsizei drawcount,
const GLint *basevertex);
π PARAMETERS π
modeβ tells GL what kind of primitives to render. Accepted 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, andGL_PATCHES. Literally the whole menu. πcountβ points to an array of the element counts.typeβ the type of the values inindices. Must be one ofGL_UNSIGNED_BYTE,GL_UNSIGNED_SHORT, orGL_UNSIGNED_INT. No improvising. πindicesβ a pointer to the location where the indices are stored.drawcountβ the size of thecount,indices, andbasevertexarrays.basevertexβ a pointer to the location where the base vertices are stored.
πΈ DESCRIPTION πΈ
glMultiDrawElementsBaseVertex behaves identically to glDrawElementsBaseVertex(), except that drawcount separate lists of elements are specified instead. Iconic. π
It has the same effect as:
for (int i = 0; i < drawcount; i++)
if (count[i] > 0)
glDrawElementsBaseVertex(mode,
count[i],
type,
indices[i],
basevertex[i]);
π¦ NOTES π¦
glMultiDrawElementsBaseVertexis available only if the GL version is 3.1 or greater.GL_LINE_STRIP_ADJACENCY,GL_LINES_ADJACENCY,GL_TRIANGLE_STRIP_ADJACENCY, andGL_TRIANGLES_ADJACENCYare available only if the GL version is 3.2 or greater.
π ERRORS π
These are the error girls, bestie:
GL_INVALID_ENUMis generated ifmodeis not an accepted value.GL_INVALID_VALUEis generated ifdrawcountis negative.GL_INVALID_OPERATIONis generated if a non-zero buffer object name is bound to an enabled array or the element array and the buffer objectβs data store is currently mapped.
π VERSION SUPPORT π
The original table has the row label glMultiDrawElementsBaseVertex under Function / Feature Name, and the column header is OpenGL Version. The entries are, fr fr:
- OpenGL 2.0:
- - OpenGL 2.1:
- - OpenGL 3.0:
- - OpenGL 3.1:
- - OpenGL 3.2:
β - OpenGL 3.3:
β - OpenGL 4.0:
β - OpenGL 4.1:
β - OpenGL 4.2:
β - OpenGL 4.3:
β - OpenGL 4.4:
β - OpenGL 4.5:
β
π SEE ALSO π
glMultiDrawElements()glDrawElementsBaseVertex()glDrawArrays()glVertexAttribPointer()
π COPYRIGHT π
Copyright Β© 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.
π COPYRIGHT (part 2) π
Copyright Β© 2010-2014 Khronos Group.
Okay thatβs the whole page, bestie β source/version: [FIXME: source], date: 08/09/2021. Bye, slay, and may your draw calls be valid. π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms