GLBINDVERTEXARRAY(3G)

🌸 NAME 🌸

okay bestie, welcome to GLBINDVERTEXARRAY(3G) β€” the manual page for glBindVertexArray, aka the call that binds a vertex array object. iconic OpenGL behavior, no cap πŸ’…


✨ C SPECIFICATION ✨

void glBindVertexArray(GLuint array);

πŸŽ€ PARAMETERS πŸŽ€

  • array β€” specifies the name of the vertex array to bind. yes bestie, that’s the whole parameter. simple, stunning, effective ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

glBindVertexArray binds the vertex array object with name array. <pink>arrayis the name of a vertex array object previously returned from a call toglGenVertexArrays()`, or zero to break the existing vertex array object binding.

If no vertex array object with name array exists, one is created when array is first bound. If the bind is successful, no change is made to the state of the vertex array object, and any previous vertex array object binding is broken. periodt πŸ’–


πŸ’€ ERRORS πŸ’€

GL_INVALID_OPERATION is generated if array is not zero or the name of a vertex array object previously returned from a call to glGenVertexArrays(). so yeah, don’t just pass it any random little number and expect main character energy β€” it will not slay 😭


πŸ‘‘ VERSION SUPPORT πŸ‘‘

the Function / Feature Name here is glBindVertexArray, and here’s the OpenGL Version vibe check:

  • 2.0: -
  • 2.1: -
  • 3.0: βœ”
  • 3.1: βœ”
  • 3.2: βœ”
  • 3.3: βœ”
  • 4.0: βœ”
  • 4.1: βœ”
  • 4.2: βœ”
  • 4.3: βœ”
  • 4.4: βœ”
  • 4.5: βœ”

so it’s giving β€œnot in 2.0 or 2.1, but fully present from 3.0 through 4.5,” and honestly? we love a consistent queen 🌈


🫢 SEE ALSO 🫢

glDeleteVertexArrays(), glEnableVertexAttribArray(), glGenVertexArrays(), glIsVertexArray(), glVertexAttribPointer()

go read those too, bestie β€” iykyk 🧚


Copyright Β© 2010-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 Β© 2010-2014 Khronos Group


and that’s the whole vibe, bestie πŸ’…βœ¨ this page is from [FIXME: source], dated 08/09/2021, and it’s the GLBINDVERTEXARRAY(3G) manual page. mwah πŸŽ€

πŸ“¦ where this page comes from