GLCREATEFRAMEBUFFERS(3G)
π GLCREATEFRAMEBUFFERS(3G) β the "make me some framebuffers" page
okay bestie so this is GLCREATEFRAMEBUFFERS(3G), and it lives in the [FIXME: manual] manual (yes the manual name is literally [FIXME: manual], we don't ask questions, we just vibe). This is your girl explaining how to birth brand-new framebuffer objects into the world. β¨
πΈ NAME πΈ
glCreateFramebuffers β create framebuffer objects. that's it. that's the whole name. iconic of it honestly.
π C SPECIFICATION π
like, the literal signature, don't touch it:
void glCreateFramebuffers(GLsizei n, GLuint *framebuffers);
π¦ PARAMETERS π¦
nβ how many framebuffer objects you want to create. the count. the amount. the number of little guys you're bringing into existence πframebuffersβ an array where the names of your shiny new framebuffer objects get stored. it's giving "output goes here," main character energy.
β¨ DESCRIPTION β¨
okay so here's the tea π: glCreateFramebuffers hands you back n previously unused framebuffer names, dropped straight into framebuffers, and each one represents a brand-new framebuffer object that's initialized to the default state. fresh out the box. no cap. π«Ά
π ERRORS π
GL_INVALID_VALUEis generated ifnis negative.
like bestie. you cannot make a negative number of framebuffers. that's not a thing. don't do that. π
π VERSION SUPPORT π
listen, I know manpages love a table, but we're doing this cute instead. here's the vibe check across every OpenGL version, 2.0 all the way to 4.5:
- 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ββ(yes bestie, this one's the moment π₯)
so for the function glCreateFramebuffers, it's a 4.5-only situation. everything before that? not invited to the party. periodt. π
π SEE ALSO π
go read these next, iykyk:
glGenFramebuffers()glBindFramebuffer()glFramebufferRenderbuffer()glFramebufferTexture()glFramebufferTexture1DglFramebufferTexture2DglFramebufferTexture3DglFramebufferTextureLayer()glDeleteFramebuffers()glIsFramebuffer()
π§ COPYRIGHT π§
gotta give credit where it's due, no plagiarism here:
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/.
and again, because they really meant it:
Copyright Β© 2014 Khronos Group
aaaand that's the whole page bestie π mwah. this was [FIXME: source], dated 08/09/2021, and you've been reading GLCREATEFRAMEBUFFERS(3G) β go forth and glCreateFramebuffers responsibly, ily ππ¦
π¦ 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