GLCREATEBUFFERS(3G)
π GLCREATEBUFFERS π
okay so bestie, quick vibe check: this is a page from the 3G manual (yes, that's the OpenGL one, we're being fancy today β¨), and it's literally all about glCreateBuffers β the glow-up function that just makes you brand new buffer objects. no cap.
β¨ NAME β¨
glCreateBuffers β create buffer objects π«Ά
πΈ C SPECIFICATION πΈ
void glCreateBuffers(GLsizei n, GLuint *buffers);
that's the whole signature, bestie. short, sweet, iconic. π
π PARAMETERS π
nβ how many buffer objects you want to create. that's it, that's the number. the size of your little buffer squad πbuffersβ an array where the names of your shiny new buffer objects get stored. so you hand over the array, and it gets filled in. like a gift bag but for buffer names π
π¦ DESCRIPTION π¦
so glCreateBuffers returns n previously unused buffer names in buffers, and each one represents a brand new buffer object. β¨
the way that each of these new objects is initialized is: exactly as if it had been bound to an unspecified target. not me explaining that in one breath, but that's literally the spec, so. unspecified target, no notes. π
π ERRORS π
GL_INVALID_VALUEis generated ifnis negative. so like, don't do that. π negativen? not the move. it's giving error code energy and not the cute kind.
π₯ VERSION SUPPORT π₯
so the original page had this whole big table (a whole grid, very extra) showing which OpenGL versions support this function. we're gonna do it in list form because tables in terminals are lowkey a crime. here's the tea:
the columns were 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 was the Function / Feature Name, glCreateBuffers.
glCreateBuffersβ2.0:-glCreateBuffersβ2.1:-glCreateBuffersβ3.0:-glCreateBuffersβ3.1:-glCreateBuffersβ3.2:-glCreateBuffersβ3.3:-glCreateBuffersβ4.0:-glCreateBuffersβ4.1:-glCreateBuffersβ4.2:-glCreateBuffersβ4.3:-glCreateBuffersβ4.4:-glCreateBuffersβ4.5:β
so yeah. every single one of those is a - except 4.5, which is a big fat β. she's a 4.5-only girly. main character energy, honestly. πβ
π SEE ALSO π
go read these too, bestie, they're the whole friend group:
glGenBuffers()glBindBufferBase()glBindBufferRange()glMapBuffer()glUnmapBuffer()glDeleteBuffers()glGet()glIsBuffer()
π 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 Β© 2014 Khronos Group
okay so that's the legal bit twice, because the original page says it twice and we do not skip details around here. π
and that's the page, bestie!! ππ§
cute little sign-off: the original footer said [FIXME: source] (yes, it literally says FIXME, the docs team said "we'll get to it" and then didn't π) and it was dated 08/09/2021. so this whole thing is brought to you by a FIXME and a 2021 timestamp. iconic in a chaotic way. π
β¨
π¦ 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