update upstream sources
[clinton/guile-figl.git] / upstream-doc / man3 / glCheckFramebufferStatus.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="glCheckFramebufferStatus">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2010</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glCheckFramebufferStatus</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glCheckFramebufferStatus</refname>\r
17 <refpurpose>check the completeness status of a framebuffer</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>GLenum <function>glCheckFramebufferStatus</function></funcdef>\r
23 <paramdef>GLenum <parameter>target</parameter></paramdef>\r
24 </funcprototype>\r
25 </funcsynopsis>\r
26 </refsynopsisdiv>\r
27 <refsect1 id="parameters"><title>Parameters</title>\r
28 <variablelist>\r
29 <varlistentry>\r
30 <term><parameter>target</parameter></term>\r
31 <listitem>\r
32 <para>\r
33 Specify the target of the framebuffer completeness check.\r
34 </para>\r
35 </listitem>\r
36 </varlistentry>\r
37 </variablelist>\r
38 </refsect1>\r
39 <refsect1 id="description"><title>Description</title>\r
40 <para>\r
41 <function>glCheckFramebufferStatus</function> queries the completeness status of the framebuffer object currently bound to <parameter>target</parameter>.\r
42 <parameter>target</parameter> must be <constant>GL_DRAW_FRAMEBUFFER</constant>, <constant>GL_READ_FRAMEBUFFER</constant> or <constant>GL_FRAMEBUFFER</constant>.\r
43 <constant>GL_FRAMEBUFFER</constant> is equivalent to <constant>GL_DRAW_FRAMEBUFFER</constant>.\r
44 </para>\r
45 <para>\r
46 The return value is <constant>GL_FRAMEBUFFER_COMPLETE</constant> if the framebuffer bound to <parameter>target</parameter> is complete. Otherwise,\r
47 the return value is determined as follows:\r
48 <itemizedlist>\r
49 <listitem>\r
50 <para>\r
51 <constant>GL_FRAMEBUFFER_UNDEFINED</constant> is returned if <parameter>target</parameter> is the default framebuffer, but the default framebuffer does not exist.\r
52 </para>\r
53 </listitem>\r
54 <listitem>\r
55 <para>\r
56 <constant>GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT</constant> is returned if any of the framebuffer attachment points are framebuffer incomplete.\r
57 </para>\r
58 </listitem>\r
59 <listitem>\r
60 <para>\r
61 <constant>GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT</constant> is returned if the framebuffer does not have at least one image attached to it.\r
62 </para>\r
63 </listitem>\r
64 <listitem>\r
65 <para>\r
66 <constant>GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER</constant> is returned if the value of <constant>GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE</constant>\r
c7b31271 67 is <constant>GL_NONE</constant> for any color attachment point(s) named by <constant>GL_DRAW_BUFFERi</constant>.\r
7faf1d71
AW
68 </para>\r
69 </listitem>\r
70 <listitem>\r
71 <para>\r
72 <constant>GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER</constant> is returned if <constant>GL_READ_BUFFER</constant> is not <constant>GL_NONE</constant>\r
73 and the value of <constant>GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE</constant> is <constant>GL_NONE</constant> for the color attachment point named\r
74 by <constant>GL_READ_BUFFER</constant>.\r
75 </para>\r
76 </listitem>\r
77 <listitem>\r
78 <para>\r
79 <constant>GL_FRAMEBUFFER_UNSUPPORTED</constant> is returned if the combination of internal formats of the attached images violates\r
80 an implementation-dependent set of restrictions.\r
81 </para>\r
82 </listitem>\r
83 <listitem>\r
84 <para>\r
85 <constant>GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE</constant> is returned if the value of <constant>GL_RENDERBUFFER_SAMPLES</constant> is not the same\r
86 for all attached renderbuffers; if the value of <constant>GL_TEXTURE_SAMPLES</constant> is the not same for all attached textures; or, if the attached\r
87 images are a mix of renderbuffers and textures, the value of <constant>GL_RENDERBUFFER_SAMPLES</constant> does not match the value of\r
88 <constant>GL_TEXTURE_SAMPLES</constant>.\r
89 </para>\r
90 </listitem>\r
91 <listitem>\r
92 <para>\r
93 <constant>GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE</constant> is also returned if the value of <constant>GL_TEXTURE_FIXED_SAMPLE_LOCATIONS</constant> is\r
94 not the same for all attached textures; or, if the attached images are a mix of renderbuffers and textures, the value of <constant>GL_TEXTURE_FIXED_SAMPLE_LOCATIONS</constant>\r
95 is not <constant>GL_TRUE</constant> for all attached textures.\r
96 </para>\r
97 </listitem>\r
98 <listitem>\r
99 <para>\r
100 <constant>GL_FRAMEBUFFER_INCOMPLETE_LAYER_TARGETS</constant> is returned if any framebuffer attachment is layered, and any populated attachment is not layered,\r
101 or if all populated color attachments are not from textures of the same target.\r
102 </para>\r
103 </listitem>\r
104 </itemizedlist>\r
105 </para>\r
106 <para>\r
107 Additionally, if an error occurs, zero is returned.\r
108 </para>\r
109 </refsect1>\r
110 <refsect1 id="errors"><title>Errors</title>\r
111 <para>\r
112 <constant>GL_INVALID_ENUM</constant> is generated if <parameter>target</parameter> is not <constant>GL_DRAW_FRAMEBUFFER</constant>,\r
113 <constant>GL_READ_FRAMEBUFFER</constant> or <constant>GL_FRAMEBUFFER</constant>.\r
114 </para>\r
115 </refsect1>\r
116 <refsect1 id="seealso"><title>See Also</title>\r
117 <para>\r
118 <citerefentry><refentrytitle>glGenFramebuffers</refentrytitle></citerefentry>,\r
119 <citerefentry><refentrytitle>glDeleteFramebuffers</refentrytitle></citerefentry>\r
120 <citerefentry><refentrytitle>glBindFramebuffer</refentrytitle></citerefentry>\r
121 </para>\r
122 </refsect1>\r
123 <refsect1 id="Copyright"><title>Copyright</title>\r
124 <para>\r
125 Copyright <trademark class="copyright"></trademark> 2010 Khronos Group.\r
126 This material may be distributed subject to the terms and conditions set forth in\r
127 the Open Publication License, v 1.0, 8 June 1999.\r
128 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
129 </para>\r
130 </refsect1>\r
131</refentry>\r