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_VALUE is generated if n is 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 Β© 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 Β© 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