glBindFramebuffer.3G - Man Page
bind a framebuffer to a framebuffer target
C Specification
void glBindFramebuffer(GLenum target, GLuint framebuffer);
Parameters
- target
Specifies the framebuffer target of the binding operation.
- framebuffer
Specifies the name of the framebuffer object to bind.
Description
glBindFramebuffer binds the framebuffer object with name framebuffer to the framebuffer target specified by target. target must be either GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. If a framebuffer object is bound to GL_DRAW_FRAMEBUFFER or GL_READ_FRAMEBUFFER, it becomes the target for rendering or readback operations, respectively, until it is deleted or another framebuffer is bound to the corresponding bind point. Calling glBindFramebuffer with target set to GL_FRAMEBUFFER binds framebuffer to both the read and draw framebuffer targets. 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.
Errors
GL_INVALID_ENUM is generated if target is not GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER.
GL_INVALID_OPERATION is generated if framebuffer is not zero or the name of a framebuffer previously returned from a call to glGenFramebuffers().
Version Support
OpenGL Version | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Function / Feature Name | 2.0 | 2.1 | 3.0 | 3.1 | 3.2 | 3.3 | 4.0 | 4.1 | 4.2 | 4.3 | 4.4 | 4.5 |
glBindFramebuffer | - | - | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
See Also
glGenFramebuffers(), glFramebufferRenderbuffer(), glFramebufferTexture(),
glFramebufferTexture1D,
glFramebufferTexture2D,
glFramebufferTexture3D, glFramebufferTextureLayer(), 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
Referenced By
glBlitFramebuffer.3G(3), glCheckFramebufferStatus.3G(3), glCreateFramebuffers.3G(3), glDeleteFramebuffers.3G(3), glFramebufferParameteri.3G(3), glFramebufferRenderbuffer.3G(3), glFramebufferTexture.3G(3), glFramebufferTextureLayer.3G(3), glGenFramebuffers.3G(3), glGetFramebufferAttachmentParameteriv.3G(3), glGetMultisamplefv.3G(3), glIsFramebuffer.3G(3).