GLCREATEVERTEXARRAYS(3G)
β¨ GLCREATEVERTEXARRAYS β¨
okay so real quick β this is page GLCREATEVERTEXARRAYS(3G) from the 3G manual, bestie, and it's about making vertex array objects. yes those. the little containers that hold all your vertex attribute setup so you don't have to re-say it every single draw call. iconic behavior honestly. π
π NAME
glCreateVertexArrays β create vertex array objects π¦
πΈ C SPECIFICATION
void glCreateVertexArrays(GLsizei n, GLuint *arrays);
π PARAMETERS
nβ how many vertex array objects you want to create. that's the count, no cap.arraysβ the array where the names of your brand-new vertex array objects get dropped. this is where the magic lands, so don't hand it garbage. β¨
π«Ά DESCRIPTION
glCreateVertexArrays hands you back n previously unused vertex array object names, and it stashes them right into arrays. each one of those names represents a brand-new vertex array object, and each one is initialized to the default state. fresh out the box. main character energy from day one, no setup required. π
π ERRORS
GL_INVALID_VALUEis generated ifnis negative.
fr fr do not pass a negative n. the spec said what it said and it's gonna yell at you.
π₯ VERSION SUPPORT
okay so here's the vibe check on which OpenGL versions have this function. the columns in the original are OpenGL versions 2.0, 2.1, 3.0, 3.1, 3.2, 3.3, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, and the row is the function / feature name glCreateVertexArrays:
- OpenGL
2.0β-(nope) - OpenGL
2.1β-(nope) - OpenGL
3.0β-(nope) - OpenGL
3.1β-(nope) - OpenGL
3.2β-(nope) - OpenGL
3.3β-(nope) - OpenGL
4.0β-(nope) - OpenGL
4.1β-(nope) - OpenGL
4.2β-(nope) - OpenGL
4.3β-(nope) - OpenGL
4.4β-(nope) - OpenGL
4.5ββ(slay, we ate)
so yeah. 4.5 only. she's exclusive. π
π SEE ALSO
glBindVertexArray()glDeleteVertexArrays()glEnableVertexAttribArray()glGenVertexArrays()glIsVertexArray()glVertexAttribPointer()
π COPYRIGHT
Copyright Β© 2014 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 (yes, again π)
Copyright Β© 2014 Khronos Group
and that's the whole page, bestie π§ β source was [FIXME: source], dated 08/09/2021, and it lives in the 3G manual. go forth and create those vertex arrays, glCreateVertexArrays-style. mwah ππ¦πΈ
π¦ 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