GLGENBUFFERS(3G)

πŸ’– GLGENBUFFERS β€” generate buffer object names πŸ’–

okay so bestie, this is the GLGENBUFFERS(3G) page β€” manual name 3G β€” and it is literally about generating buffer object names. that's the whole main character energy. πŸ¦‹

🌸 NAME 🌸

glGenBuffers β€” generate buffer object names. yes, that's it, that's the name. slay. ✨

🧚 C SPECIFICATION 🧚

void glGenBuffers(GLsizei n, GLuint * buffers);

πŸŽ€ PARAMETERS πŸŽ€

  • n β€” specifies the number of buffer object names to be generated.
  • buffers β€” specifies an array in which the generated buffer object names are stored.

πŸ¦‹ DESCRIPTION πŸ¦‹

glGenBuffers returns n buffer object names in buffers. and listen, bestie: there is no guarantee that the names form a contiguous set of integers. however β€” and this is the important part β€” it is guaranteed that none of the returned names was in use immediately before the call to glGenBuffers. periodt. πŸ’…

Buffer object names returned by a call to glGenBuffers are not returned by subsequent calls, unless they are first deleted with glDeleteBuffers(). that's the rule, no cap. 🫢

No buffer objects are associated with the returned buffer object names until they are first bound by calling glBindBuffer(). so the name is just a name until that first bind, iykyk. 🌈

πŸ’€ ERRORS πŸ’€

GL_INVALID_VALUE is generated if n is negative. that's the error condition, fr fr. ⚠️

πŸ”₯ ASSOCIATED GETS πŸ”₯

glIsBuffer() β€” the associated get, aka the buffer-name vibe check. πŸ‘‘

⭐ VERSION SUPPORT ⭐

version support check for the function/feature name glGenBuffers, because we love a compatibility slay. it's βœ” in every listed OpenGL version:

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

🌸 SEE ALSO 🌸

glBindBuffer(), glDeleteBuffers(), glGet() β€” go read those too, bestie. πŸŽ€

Copyright Β© 2005 Addison-Wesley. 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 Β© 2005 Sams Publishing Copyright Β© 2010-2014 Khronos Group


okay that's the whole page, bestie. source/version tea: [FIXME: source], dated 08/09/2021, and the page footer is GLGENBUFFERS(3G). byeee πŸ’…πŸ«Ά

πŸ“¦ where this page comes from