GLINVALIDATEFRAMEBUF(3G)

    .SH "NAME" glInvalidateFramebuffer, glInvalidateNamedFramebufferData - invalidate the content of some or all of a framebuffer's attachments
    .SH "C SPECIFICATION"

            .HP u void glInvalidateFramebuffer(GLenum target, GLsizei numAttachments, const GLenum * attachments);
            .HP u void glInvalidateNamedFramebufferData(GLuint framebuffer, GLsizei numAttachments, const GLenum *attachments);

    .SH "PARAMETERS"

        .PP target

                    Specifies the target to which the framebuffer object is attached for glInvalidateFramebuffer.

            .RE
            .PP framebuffer

                        Specifies the name of the framebuffer object for glInvalidateNamedFramebufferData.

                .RE
                .PP numAttachments

                            Specifies the number of entries in the attachments array.

                    .RE
                    .PP attachments

                                Specifies a pointer to an array identifying the attachments to be invalidated.

                        .RE

                    .SH "DESCRIPTION"
                        .PP glInvalidateFramebuffer and glInvalidateNamedFramebufferData invalidate the entire contents of a specified set of attachments of a framebuffer.
                        .PP For glInvalidateFramebuffer, the framebuffer object is that bound to target. target must be GL_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_DRAW_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. Default framebuffers may also be invalidated if bound to target.
                        .PP For glInvalidateNamedFramebufferData, framebuffer is the name of the framebuffer object. If framebuffer is zero, the default draw framebuffer is affected.
                        .PP The set of attachments whose contents are to be invalidated are specified in the attachments array, which contains numAttachments elements.
                        .PP If the specified framebuffer is a framebuffer object, each element of attachments must be one of GL_DEPTH_ATTACHMENT, GL_STENCIL_ATTACHMENT GL_DEPTH_STENCIL_ATTACHMENT, or GL_COLOR_ATTACHMENTi, where i is between zero and the value of GL_MAX_FRAMEBUFFER_ATTACHMENTS minus one.
                        .PP If the specified framebuffer is a default framebuffer, each element of attachments must be one of GL_FRONT_LEFT, GL_FRONT_RIGHT, GL_BACK_LEFT, GL_BACK_RIGHT, GL_AUXi, GL_ACCUM, GL_COLOR, GL_DEPTH, or GL_STENCIL. GL_COLOR, is treated as GL_BACK_LEFT for a double-buffered context and GL_FRONT_LEFT for a single-buffered context. The other attachments identify the corresponding specific buffer.
                        .PP The entire contents of each specified attachment become undefined after execution of glInvalidateFramebuffer or glInvalidateNamedFramebufferData.
                        .PP If the framebuffer object is not complete, glInvalidateFramebuffer and glInvalidateNamedFramebufferData may be ignored. This is not an error.

                    .SH "ERRORS"
                        .PP GL_INVALID_ENUM is generated by glInvalidateFramebuffer if target is not one of the accepted framebuffer targets.
                        .PP GL_INVALID_OPERATION is generated by glInvalidateNamedFramebufferData if framebuffer is not zero or the name of an existing framebuffer object.
                        .PP GL_INVALID_VALUE is generated if numAttachments is negative.
                        .PP GL_INVALID_ENUM is generated if any element of attachments is not one of the accepted framebuffer attachment points, as described above.
                        .PP GL_INVALID_OPERATION is generated if element of attachments is GL_COLOR_ATTACHMENTm where m is greater than or equal to the value of GL_MAX_COLOR_ATTACHMENTS.

                    .SH "ASSOCIATED GETS"
                        .PP glGet() with argument GL_MAX_COLOR_ATTACHMENTS

                    .SH "VERSION SUPPORT"
                        .TS allbox tab(:); l l l l l l l l l l l l l l l l l l l l l l l l l l. T{ glInvalidateFramebuffer T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T} T{ glInvalidateNamedFramebufferData T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}:T{ T}

                    .SH "SEE ALSO"
                        .PP glInvalidateTexSubImage(), glInvalidateTexImage(), glInvalidateBufferSubData(), glInvalidateBufferData(), glInvalidateSubFramebuffer().

                    .SH "COPYRIGHT"
                        .PP 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/.

COPYRIGHT
Copyright © 2014 Khronos Group