GLVERTEXARRAYELEMENT(3G)

πŸ’– NAME πŸ’–

okay so bestie, this is glVertexArrayElementBuffer, and it lives in manual section 3G β€” yes, the 3G is part of the whole vibe. It configures the element array buffer binding of a vertex array object. Lowkey a tiny function, highkey important. ✨

✨ C SPECIFICATION ✨

void glVertexArrayElementBuffer(GLuint vaobj, GLuint buffer);

πŸŽ€ PARAMETERS πŸŽ€

  • vaobj β€” specifies the name of the vertex array object. This is the VAO bestie whose element array buffer binding we're messing with. 🫢
  • buffer β€” specifies the name of the buffer object to use for the element array buffer binding. This is the buffer that's about to get attached. πŸ’…

🌸 DESCRIPTION 🌸

glVertexArrayElementBuffer binds a buffer object with id buffer to the element array buffer bind point of a vertex array object with id vaobj.

If buffer is zero, any existing element array buffer binding to vaobj is removed. Not me deleting the binding β€” yes, exactly that. 😭

πŸ¦‹ ASSOCIATED GETS πŸ¦‹

  • glGet() with argument GL_ELEMENT_ARRAY_BUFFER_BINDING.
  • glGetVertexArrayiv() with argument GL_ELEMENT_ARRAY_BUFFER_BINDING.

πŸ’€ ERRORS πŸ’€

  • A GL_INVALID_OPERATION error is generated if vaobj is not the name of an existing vertex array object.
  • A GL_INVALID_OPERATION error is generated if buffer is not zero or the name of an existing buffer object.
bestie, those are GL_INVALID_OPERATION situations β€” not a drill, okay? πŸ‘€

πŸ‘‘ VERSION SUPPORT πŸ‘‘

The table is giving "OpenGL Version" energy. The Function / Feature Name column is glVertexArrayElementBuffer, and here is the whole row in list form so nobody has to squint at box-drawing characters:

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

periodt. only 4.5 is marked βœ” in this row, bestie. πŸ’…

🌈 SEE ALSO 🌈

  • glGet()
  • glGetVertexArrayiv()

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 entire page, bestie β€” brought to you by [FIXME: source], dated 08/09/2021, and filed under GLVERTEXARRAYELEMENT(3G). πŸ’…βœ¨

πŸ“¦ where this page comes from