'\" t .\" Title: glInvalidateFramebuffer .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/03/2018 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLINVALIDATEFRAMEBUF" "3G" "01/03/2018" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glInvalidateFramebuffer, glInvalidateNamedFramebufferData \- invalidate the content of some or all of a framebuffer\*(Aqs attachments .SH "C SPECIFICATION" .HP \w'void\ glInvalidateFramebuffer('u .BI "void glInvalidateFramebuffer(GLenum\ " "target" ", GLsizei\ " "numAttachments" ", const\ GLenum\ *\ " "attachments" ");" .HP \w'void\ glInvalidateNamedFramebufferData('u .BI "void glInvalidateNamedFramebufferData(GLuint\ " "framebuffer" ", GLsizei\ " "numAttachments" ", const\ GLenum\ *" "attachments" ");" .SH "PARAMETERS" .PP \fItarget\fR .RS 4 Specifies the target to which the framebuffer object is attached for \fBglInvalidateFramebuffer\fR\&. .RE .PP \fIframebuffer\fR .RS 4 Specifies the name of the framebuffer object for \fBglInvalidateNamedFramebufferData\fR\&. .RE .PP \fInumAttachments\fR .RS 4 Specifies the number of entries in the \fIattachments\fR array\&. .RE .PP \fIattachments\fR .RS 4 Specifies a pointer to an array identifying the attachments to be invalidated\&. .RE .SH "DESCRIPTION" .PP \fBglInvalidateFramebuffer\fR and \fBglInvalidateNamedFramebufferData\fR invalidate the entire contents of a specified set of attachments of a framebuffer\&. .PP For \fBglInvalidateFramebuffer\fR, the framebuffer object is that bound to \fItarget\fR\&. \fItarget\fR must be \fBGL_FRAMEBUFFER\fR, \fBGL_READ_FRAMEBUFFER\fR or \fBGL_DRAW_FRAMEBUFFER\fR\&. \fBGL_FRAMEBUFFER\fR is equivalent to \fBGL_DRAW_FRAMEBUFFER\fR\&. Default framebuffers may also be invalidated if bound to \fItarget\fR\&. .PP For \fBglInvalidateNamedFramebufferData\fR, \fIframebuffer\fR is the name of the framebuffer object\&. If \fIframebuffer\fR is zero, the default draw framebuffer is affected\&. .PP The set of attachments whose contents are to be invalidated are specified in the \fIattachments\fR array, which contains \fInumAttachments\fR elements\&. .PP If the specified framebuffer is a framebuffer object, each element of \fIattachments\fR must be one of \fBGL_DEPTH_ATTACHMENT\fR, \fBGL_STENCIL_ATTACHMENT\fR \fBGL_DEPTH_STENCIL_ATTACHMENT\fR, or \fBGL_COLOR_ATTACHMENT\fR\fIi\fR, where \fIi\fR is between zero and the value of \fBGL_MAX_FRAMEBUFFER_ATTACHMENTS\fR minus one\&. .PP If the specified framebuffer is a default framebuffer, each element of \fIattachments\fR must be one of \fBGL_FRONT_LEFT\fR, \fBGL_FRONT_RIGHT\fR, \fBGL_BACK_LEFT\fR, \fBGL_BACK_RIGHT\fR, \fBGL_AUX\fR\fIi\fR, \fBGL_ACCUM\fR, \fBGL_COLOR\fR, \fBGL_DEPTH\fR, or \fBGL_STENCIL\fR\&. \fBGL_COLOR\fR, is treated as \fBGL_BACK_LEFT\fR for a double\-buffered context and \fBGL_FRONT_LEFT\fR 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 \fBglInvalidateFramebuffer\fR or \fBglInvalidateNamedFramebufferData\fR\&. .PP If the framebuffer object is not complete, \fBglInvalidateFramebuffer\fR and \fBglInvalidateNamedFramebufferData\fR may be ignored\&. This is not an error\&. .SH "ERRORS" .PP \fBGL_INVALID_ENUM\fR is generated by \fBglInvalidateFramebuffer\fR if \fItarget\fR is not one of the accepted framebuffer targets\&. .PP \fBGL_INVALID_OPERATION\fR is generated by \fBglInvalidateNamedFramebufferData\fR if \fIframebuffer\fR is not zero or the name of an existing framebuffer object\&. .PP \fBGL_INVALID_VALUE\fR is generated if \fInumAttachments\fR is negative\&. .PP \fBGL_INVALID_ENUM\fR is generated if any element of \fIattachments\fR is not one of the accepted framebuffer attachment points, as described above\&. .PP \fBGL_INVALID_OPERATION\fR is generated if element of \fIattachments\fR is \fBGL_COLOR_ATTACHMENT\fR\fIm\fR where \fIm\fR is greater than or equal to the value of \fBGL_MAX_COLOR_ATTACHMENTS\fR\&. .SH "ASSOCIATED GETS" .PP \fBglGet\fR() with argument \fBGL_MAX_COLOR_ATTACHMENTS\fR .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Version\fR T} T{ \fBFunction / Feature Name\fR T}:T{ \fB2\&.0\fR T}:T{ \fB2\&.1\fR T}:T{ \fB3\&.0\fR T}:T{ \fB3\&.1\fR T}:T{ \fB3\&.2\fR T}:T{ \fB3\&.3\fR T}:T{ \fB4\&.0\fR T}:T{ \fB4\&.1\fR T}:T{ \fB4\&.2\fR T}:T{ \fB4\&.3\fR T}:T{ \fB4\&.4\fR T}:T{ \fB4\&.5\fR T} .T& l c c c c c c c c c c c c l c c c c c c c c c c c c. T{ \fBglInvalidateFramebuffer\fR 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{ \fBglInvalidateNamedFramebufferData\fR 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} .TE .sp 1 .SH "SEE ALSO" .PP \fBglInvalidateTexSubImage\fR(), \fBglInvalidateTexImage\fR(), \fBglInvalidateBufferSubData\fR(), \fBglInvalidateBufferData\fR(), \fBglInvalidateSubFramebuffer\fR()\&. .SH "COPYRIGHT" .PP Copyright \(co 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\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2014 Khronos Group .br