GLBINDFRAMEBUFFER(3G)

    .SH "NAME" glBindFramebuffer - bind a framebuffer to a framebuffer target
    .SH "C SPECIFICATION"

            .HP u void glBindFramebuffer(GLenum target, GLuint framebuffer);

    .SH "PARAMETERS"

        .PP target

                    Specifies the framebuffer target of the binding operation.

            .RE
            .PP framebuffer

                        Specifies the name of the framebuffer object to bind.

                .RE

            .SH "DESCRIPTION"
                .PP 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.
                .PP glGenFramebuffers() may be used to generate a set of unused framebuffer object names.
                .PP The storage, dimensions, allocation, and format of the images attached to the default framebuffer are managed entirely by the window system. In order that access to the default framebuffer is not lost, it is treated as a framebuffer object with the name of zero. The default framebuffer is therefore rendered to and read from while zero is bound to the corresponding targets.

            .SH "ERRORS"
                .PP GL_INVALID_ENUM is generated if target is not GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER.

            .SH "API VERSION SUPPORT"

                .TS allbox tab(:); l l l l l. T{ glBindFramebuffer T}:T{ T}:T{ T}:T{ T}:T{ T}

            .SH "SEE ALSO"
                .PP glGenFramebuffers(), glDeleteFramebuffers(), glFramebufferRenderbuffer(), glFramebufferTexture2D(), glFramebufferTextureLayer(), glIsFramebuffer()

            .SH "COPYRIGHT"
                .PP Copyright © 2010-2015 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-2015 Khronos Group