GLBINDFRAMEBUFFER(3G)
π GLBINDFRAMEBUFFER(3G) π
okay bestie, so this is the 3G page from the OpenGL manual and it's literally about gluing a framebuffer object to a framebuffer target. that's the whole vibe. let's go β¨
πΈ NAME πΈ
glBindFramebuffer β bind a framebuffer to a framebuffer target π
π¦ C SPECIFICATION π¦
void glBindFramebuffer(GLenum target, GLuint framebuffer);
π PARAMETERS π
targetβ says which framebuffer target the binding operation happens on. that's it, that's the job πframebufferβ the name of the framebuffer object you wanna bind. the name, not the object itself, iykyk π«Ά
π DESCRIPTION π
so here's the tea β β glBindFramebuffer binds the framebuffer object with name framebuffer to the framebuffer target specified by target.
and target must be either GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. no third options, no vibes-based guessing, fr fr.
if a framebuffer object is bound to GL_DRAW_FRAMEBUFFER or GL_READ_FRAMEBUFFER, it becomes the target for rendering or readback operations, respectively π€ β and it stays that way until it is deleted or another framebuffer is bound to the corresponding bind point. main character until evicted, basically.
calling glBindFramebuffer with target set to GL_FRAMEBUFFER binds framebuffer to both the read and draw framebuffer targets. two for one, iconic π
and framebuffer is the name of a framebuffer object previously returned from a call to glGenFramebuffers(), or zero to break the existing binding of a framebuffer object to target. zero = the breakup arc π₯
π ERRORS π
GL_INVALID_ENUMis generated iftargetis notGL_DRAW_FRAMEBUFFER,GL_READ_FRAMEBUFFERorGL_FRAMEBUFFER. wrong target, girlie, not cute πGL_INVALID_OPERATIONis generated ifframebufferis not zero or the name of a framebuffer previously returned from a call toglGenFramebuffers(). don't make up names, it never ends well π
π VERSION SUPPORT π
the vibe check by OpenGL version β this one's a late bloomer, she does not exist before 3.0:
2.0β nope,-2.1β still nope,-3.0ββslay, she's here3.1ββ3.2ββ3.3ββ4.0ββ4.1ββ4.2ββ4.3ββ4.4ββ4.5ββ
glBindFramebuffer: supported in every version from 3.0 all the way to 4.5, ate and left no crumbs π
π§ SEE ALSO π§
go read these next, bestie, they're all in the same friend group:
glGenFramebuffers()glFramebufferRenderbuffer()glFramebufferTexture()glFramebufferTexture1DglFramebufferTexture2DglFramebufferTexture3DglFramebufferTextureLayer()glDeleteFramebuffers()glIsFramebuffer()
π 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 πΈ
Copyright Β© 2010-2014 Khronos Group
okay that's the whole page!! π«Ά this cutie came from [FIXME: source], dated 08/09/2021, and she's GLBINDFRAMEBUFFER(3G) forever and always π go bind some framebuffers responsibly, mwah β¨
π¦ 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