GLDELETEFRAMEBUFFERS(3G)
π GLDELETEFRAMEBUFFERS
okay bestie so this one is glDeleteFramebuffers from the OpenGL manual pages, section 3G β yes the 3G is the manual name, we're fancy like that β¨
πΈ NAME πΈ
glDeleteFramebuffers β delete framebuffer objects. it's giving cleanup era, it's giving "we're done with you, FBO" π
π C SPECIFICATION π
void glDeleteFramebuffers(GLsizei n, GLuint *framebuffers);
literally just two things, no cap:
β¨ PARAMETERS β¨
nβ how many framebuffer objects you're yeeting today. the count, the number, the quantity ποΈframebuffersβ a pointer to an array holding thosenframebuffer objects you want deleted. so like, a lil list of names, and this points at it π«Ά
π DESCRIPTION π
glDeleteFramebuffers deletes the n framebuffer objects whose names are stored in the array addressed by framebuffers. just vibes, just deleting π
the name zero is reserved by the GL and is silently ignored should it occur in framebuffers β same energy as other unused names, also silently ignored. no drama, no error, just ignored π
once a framebuffer object is deleted, its name is again unused and it has no attachments. like, the name goes back in the pool and the object is fully un-decorated. icon behavior β¨
and here's the spicy part π β if a framebuffer that is currently bound to one or more of the targets GL_DRAW_FRAMEBUFFER or GL_READ_FRAMEBUFFER gets deleted, it is as though glBindFramebuffer() had been executed with the corresponding target and framebuffer zero. so the binding lowkey resets itself to zero. main character cleanup energy, fr fr π
π¦ ERRORS π¦
GL_INVALID_VALUEis generated ifnis negative. bestie. you cannot delete a negative number of framebuffers. that's not a thing π negative counts are not slay, they're an error π
β VERSION SUPPORT β
the vibe check across OpenGL versions for glDeleteFramebuffers:
- OpenGL 2.0 β
-(nope, not here π ) - OpenGL 2.1 β
-(still a no π ) - OpenGL 3.0 β β
- OpenGL 3.1 β β
- OpenGL 3.2 β β
- OpenGL 3.3 β β
- OpenGL 4.0 β β
- OpenGL 4.1 β β
- OpenGL 4.2 β β
- OpenGL 4.3 β β
- OpenGL 4.4 β β
- OpenGL 4.5 β β
so basically: not in 2.0 or 2.1, and then present and accounted for all the way from 3.0 through 4.5. ate and left zero crumbs π₯
π SEE ALSO π
glGenFramebuffers()β the makerglBindFramebuffer()β the binderglCheckFramebufferStatus()β the wellness check π©Ί
iykyk, they're all in the same friend group π«Ά
π COPYRIGHT π
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
π okay that's the whole page, bestie β and one tiny housekeeping note: the source line on this one is literally [FIXME: source] and the date is 08/09/2021, so the version info is still a work in progress, ngl π but everything else? slayed. bye babe πβ¨
π¦ 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