'\" t .\" Title: glCheckFramebufferStatus .\" 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 "GLCHECKFRAMEBUFFERST" "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" glCheckFramebufferStatus, glCheckNamedFramebufferStatus \- check the completeness status of a framebuffer .SH "C SPECIFICATION" .HP \w'GLenum\ glCheckFramebufferStatus('u .BI "GLenum glCheckFramebufferStatus(GLenum\ " "target" ");" .HP \w'GLenum\ glCheckNamedFramebufferStatus('u .BI "GLenum glCheckNamedFramebufferStatus(GLuint\ " "framebuffer" ", GLenum\ " "target" ");" .SH "PARAMETERS" .PP \fItarget\fR .RS 4 Specify the target to which the framebuffer is bound for \fBglCheckFramebufferStatus\fR, and the target against which framebuffer completeness of \fIframebuffer\fR is checked for \fBglCheckNamedFramebufferStatus\fR\&. .RE .PP \fIframebuffer\fR .RS 4 Specifies the name of the framebuffer object for \fBglCheckNamedFramebufferStatus\fR .RE .SH "DESCRIPTION" .PP \fBglCheckFramebufferStatus\fR and \fBglCheckNamedFramebufferStatus\fR return the completeness status of a framebuffer object when treated as a read or draw framebuffer, depending on the value of \fItarget\fR\&. .PP For \fBglCheckFramebufferStatus\fR, the framebuffer checked is that bound to \fItarget\fR, which must be \fBGL_DRAW_FRAMEBUFFER\fR, \fBGL_READ_FRAMEBUFFER\fR or \fBGL_FRAMEBUFFER\fR\&. \fBGL_FRAMEBUFFER\fR is equivalent to \fBGL_DRAW_FRAMEBUFFER\fR\&. .PP For \fBglCheckNamedFramebufferStatus\fR, \fIframebuffer\fR is zero or the name of the framebuffer object to check\&. If \fIframebuffer\fR is zero, then the status of the default read or draw framebuffer, as determined by \fItarget\fR, is returned\&. .PP The return value is \fBGL_FRAMEBUFFER_COMPLETE\fR if the specified framebuffer is complete\&. Otherwise, the return value is determined as follows: .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_UNDEFINED\fR is returned if the specified framebuffer is the default read or draw framebuffer, but the default framebuffer does not exist\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT\fR is returned if any of the framebuffer attachment points are framebuffer incomplete\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT\fR is returned if the framebuffer does not have at least one image attached to it\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER\fR is returned if the value of \fBGL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\fR is \fBGL_NONE\fR for any color attachment point(s) named by \fBGL_DRAW_BUFFERi\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER\fR is returned if \fBGL_READ_BUFFER\fR is not \fBGL_NONE\fR and the value of \fBGL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE\fR is \fBGL_NONE\fR for the color attachment point named by \fBGL_READ_BUFFER\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_UNSUPPORTED\fR is returned if the combination of internal formats of the attached images violates an implementation\-dependent set of restrictions\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\fR is returned if the value of \fBGL_RENDERBUFFER_SAMPLES\fR is not the same for all attached renderbuffers; if the value of \fBGL_TEXTURE_SAMPLES\fR is the not same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of \fBGL_RENDERBUFFER_SAMPLES\fR does not match the value of \fBGL_TEXTURE_SAMPLES\fR\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE\fR is also returned if the value of \fBGL_TEXTURE_FIXED_SAMPLE_LOCATIONS\fR is not the same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of \fBGL_TEXTURE_FIXED_SAMPLE_LOCATIONS\fR is not \fBGL_TRUE\fR for all attached textures\&. .RE .sp .RS 4 .ie n \{\ \h'-04'\(bu\h'+03'\c .\} .el \{\ .sp -1 .IP \(bu 2.3 .\} \fBGL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS\fR is returned if any framebuffer attachment is layered, and any populated attachment is not layered, or if all populated color attachments are not from textures of the same target\&. .RE .PP Additionally, if an error occurs, zero is returned\&. .SH "ERRORS" .PP \fBGL_INVALID_ENUM\fR is generated if \fItarget\fR is not \fBGL_DRAW_FRAMEBUFFER\fR, \fBGL_READ_FRAMEBUFFER\fR or \fBGL_FRAMEBUFFER\fR\&. .PP \fBGL_INVALID_OPERATION\fR is generated by \fBglCheckNamedFramebufferStatus\fR if \fIframebuffer\fR is not zero or the name of an existing framebuffer object\&. .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{ \fBglCheckFramebufferStatus\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{ \fBglCheckNamedFramebufferStatus\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 \fBglGenFramebuffers\fR(), \fBglDeleteFramebuffers\fR() \fBglBindFramebuffer\fR() .SH "COPYRIGHT" .PP Copyright \(co 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\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2010-2014 Khronos Group .br