1<?xml version="1.0"?>
2<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
3
4<!-- Note: no GLX protocol info yet. -->
5
6
7<OpenGLAPI>
8<category name="GL_ARB_framebuffer_object" number="45">
9    <enum name="FRAMEBUFFER"                              value="0x8D40"/>
10    <enum name="READ_FRAMEBUFFER"                         value="0x8CA8"/>
11    <enum name="DRAW_FRAMEBUFFER"                         value="0x8CA9"/>
12
13    <enum name="RENDERBUFFER"                             value="0x8D41"/>
14
15    <enum name="STENCIL_INDEX1"                           value="0x8D46"/>
16    <enum name="STENCIL_INDEX4"                           value="0x8D47"/>
17    <enum name="STENCIL_INDEX8"                           value="0x8D48"/>
18    <enum name="STENCIL_INDEX16"                          value="0x8D49"/>
19
20    <enum name="RENDERBUFFER_WIDTH"              value="0x8D42"/>
21    <enum name="RENDERBUFFER_HEIGHT"             value="0x8D43"/>
22    <enum name="RENDERBUFFER_INTERNAL_FORMAT"    value="0x8D44"/>
23    <enum name="RENDERBUFFER_RED_SIZE"           value="0x8D50"/>
24    <enum name="RENDERBUFFER_GREEN_SIZE"         value="0x8D51"/>
25    <enum name="RENDERBUFFER_BLUE_SIZE"          value="0x8D52"/>
26    <enum name="RENDERBUFFER_ALPHA_SIZE"         value="0x8D53"/>
27    <enum name="RENDERBUFFER_DEPTH_SIZE"         value="0x8D54"/>
28    <enum name="RENDERBUFFER_STENCIL_SIZE"       value="0x8D55"/>
29    <enum name="RENDERBUFFER_SAMPLES"            value="0x8CAB"/>
30
31    <enum name="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE" count="1" value="0x8CD0">
32        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
33    </enum>
34    <enum name="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME" count="1" value="0x8CD1">
35        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
36    </enum>
37    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL" count="1" value="0x8CD2">
38        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
39    </enum>
40    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE" count="1" value="0x8CD3">
41        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
42    </enum>
43    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER" count="1" value="0x8CD4">
44        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
45    </enum>
46    <enum name="FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING" count="1" value="0x8210">
47        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
48    </enum>
49    <enum name="FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE" count="1" value="0x8211">
50        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
51    </enum>
52    <enum name="FRAMEBUFFER_ATTACHMENT_RED_SIZE" count="1" value="0x8212">
53        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
54    </enum>
55    <enum name="FRAMEBUFFER_ATTACHMENT_GREEN_SIZE" count="1" value="0x8213">
56        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
57    </enum>
58    <enum name="FRAMEBUFFER_ATTACHMENT_BLUE_SIZE" count="1" value="0x8214">
59        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
60    </enum>
61    <enum name="FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE" count="1" value="0x8215">
62        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
63    </enum>
64    <enum name="FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE" count="1" value="0x8216">
65        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
66    </enum>
67    <enum name="FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE" count="1" value="0x8217">
68        <size name="GetFramebufferAttachmentParameteriv" mode="get"/>
69    </enum>
70
71    <enum name="SRGB"                                      value="0x8C40"/>
72    <enum name="UNSIGNED_NORMALIZED"                       value="0x8C17"/>
73    <enum name="FRAMEBUFFER_DEFAULT"                       value="0x8218"/>
74    <enum name="INDEX"                                     value="0x8222"/>
75
76    <enum name="COLOR_ATTACHMENT0"                         value="0x8CE0"/>
77    <enum name="COLOR_ATTACHMENT1"                         value="0x8CE1"/>
78    <enum name="COLOR_ATTACHMENT2"                         value="0x8CE2"/>
79    <enum name="COLOR_ATTACHMENT3"                         value="0x8CE3"/>
80    <enum name="COLOR_ATTACHMENT4"                         value="0x8CE4"/>
81    <enum name="COLOR_ATTACHMENT5"                         value="0x8CE5"/>
82    <enum name="COLOR_ATTACHMENT6"                         value="0x8CE6"/>
83    <enum name="COLOR_ATTACHMENT7"                         value="0x8CE7"/>
84    <enum name="COLOR_ATTACHMENT8"                         value="0x8CE8"/>
85    <enum name="COLOR_ATTACHMENT9"                         value="0x8CE9"/>
86    <enum name="COLOR_ATTACHMENT10"                        value="0x8CEA"/>
87    <enum name="COLOR_ATTACHMENT11"                        value="0x8CEB"/>
88    <enum name="COLOR_ATTACHMENT12"                        value="0x8CEC"/>
89    <enum name="COLOR_ATTACHMENT13"                        value="0x8CED"/>
90    <enum name="COLOR_ATTACHMENT14"                        value="0x8CEE"/>
91    <enum name="COLOR_ATTACHMENT15"                        value="0x8CEF"/>
92    <enum name="DEPTH_ATTACHMENT"                          value="0x8D00"/>
93    <enum name="STENCIL_ATTACHMENT"                        value="0x8D20"/>
94    <enum name="DEPTH_STENCIL_ATTACHMENT"                  value="0x821A"/>
95
96    <enum name="MAX_SAMPLES"                     count="1" value="0x8D57">
97        <size name="Get" mode="get"/>
98    </enum>
99
100    <enum name="FRAMEBUFFER_COMPLETE"                      value="0x8CD5"/>
101    <enum name="FRAMEBUFFER_INCOMPLETE_ATTACHMENT"         value="0x8CD6"/>
102    <enum name="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT" value="0x8CD7"/>
103    <enum name="FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER"        value="0x8CDB"/>
104    <enum name="FRAMEBUFFER_INCOMPLETE_READ_BUFFER"        value="0x8CDC"/>
105    <enum name="FRAMEBUFFER_UNSUPPORTED"                   value="0x8CDD"/>
106    <enum name="FRAMEBUFFER_INCOMPLETE_MULTISAMPLE"        value="0x8D56"/>
107    <enum name="FRAMEBUFFER_UNDEFINED"                     value="0x8219"/>
108
109    <enum name="FRAMEBUFFER_BINDING"             count="1" value="0x8CA6">
110        <size name="Get" mode="get"/>
111    </enum>
112    <enum name="DRAW_FRAMEBUFFER_BINDING"        count="1" value="0x8CA6">
113        <size name="Get" mode="get"/>
114    </enum>
115    <enum name="READ_FRAMEBUFFER_BINDING"        count="1" value="0x8CAA">
116        <size name="Get" mode="get"/>
117    </enum>
118    <enum name="RENDERBUFFER_BINDING"            count="1" value="0x8CA7">
119        <size name="Get" mode="get"/>
120    </enum>
121    <enum name="MAX_COLOR_ATTACHMENTS"           count="1" value="0x8CDF">
122        <size name="Get" mode="get"/>
123    </enum>
124    <enum name="MAX_RENDERBUFFER_SIZE"           count="1" value="0x84E8">
125        <size name="Get" mode="get"/>
126    </enum>
127
128    <enum name="INVALID_FRAMEBUFFER_OPERATION"            value="0x0506"/>
129
130    <enum name="DEPTH_STENCIL"                            value="0x84F9"/>
131
132    <enum name="UNSIGNED_INT_24_8"                        value="0x84FA"/>
133
134    <enum name="DEPTH24_STENCIL8"                         value="0x88F0"/>
135
136    <enum name="TEXTURE_STENCIL_SIZE"          count="1"  value="0x88F1">
137        <size name="GetTexLevelParameterfv" mode="get"/>
138        <size name="GetTexLevelParameteriv" mode="get"/>
139    </enum>
140
141
142
143    <function name="IsRenderbuffer" alias="IsRenderbufferEXT">
144        <param name="renderbuffer" type="GLuint"/>
145	<return type="GLboolean"/>
146    </function>
147
148    <function name="BindRenderbuffer" alias="BindRenderbufferEXT">
149        <param name="target" type="GLenum"/>
150        <param name="renderbuffer" type="GLuint"/>
151    </function>
152
153    <function name="DeleteRenderbuffers" alias="DeleteRenderbuffersEXT">
154        <param name="n" type="GLsizei" counter="true"/>
155        <param name="renderbuffers" type="const GLuint *" count="n"/>
156    </function>
157
158    <function name="GenRenderbuffers" alias="GenRenderbuffersEXT">
159        <param name="n" type="GLsizei" counter="true"/>
160        <param name="renderbuffers" type="GLuint *" count="n" output="true"/>
161    </function>
162
163    <function name="RenderbufferStorage" alias="RenderbufferStorageEXT">
164        <param name="target" type="GLenum"/>
165        <param name="internalformat" type="GLenum"/>
166        <param name="width" type="GLsizei"/>
167        <param name="height" type="GLsizei"/>
168    </function>
169
170    <function name="RenderbufferStorageMultisample" offset="assign">
171        <param name="target" type="GLenum"/>
172        <param name="samples" type="GLsizei"/>
173        <param name="internalformat" type="GLenum"/>
174        <param name="width" type="GLsizei"/>
175        <param name="height" type="GLsizei"/>
176        <glx rop="4331"/>
177    </function>
178
179    <function name="GetRenderbufferParameteriv" alias="GetRenderbufferParameterivEXT">
180        <param name="target" type="GLenum"/>
181        <param name="pname" type="GLenum"/>
182        <param name="params" type="GLint *" output="true"/>
183    </function>
184
185    <function name="IsFramebuffer" alias="IsFramebufferEXT">
186        <param name="framebuffer" type="GLuint"/>
187	<return type="GLboolean"/>
188    </function>
189
190    <function name="BindFramebuffer" alias="BindFramebufferEXT">
191        <param name="target" type="GLenum"/>
192        <param name="framebuffer" type="GLuint"/>
193    </function>
194
195    <function name="DeleteFramebuffers" alias="DeleteFramebuffersEXT">
196        <param name="n" type="GLsizei" counter="true"/>
197        <param name="framebuffers" type="const GLuint *" count="n"/>
198    </function>
199
200    <function name="GenFramebuffers" alias="GenFramebuffersEXT">
201        <param name="n" type="GLsizei" counter="true"/>
202        <param name="framebuffers" type="GLuint *" count="n" output="true"/>
203    </function>
204
205    <function name="CheckFramebufferStatus" alias="CheckFramebufferStatusEXT">
206        <param name="target" type="GLenum"/>
207	<return type="GLenum"/>
208    </function>
209
210    <function name="FramebufferTexture1D" alias="FramebufferTexture1DEXT">
211        <param name="target" type="GLenum"/>
212        <param name="attachment" type="GLenum"/>
213        <param name="textarget" type="GLenum"/>
214        <param name="texture" type="GLuint"/>
215        <param name="level" type="GLint"/>
216    </function>
217
218    <function name="FramebufferTexture2D" alias="FramebufferTexture2DEXT">
219        <param name="target" type="GLenum"/>
220        <param name="attachment" type="GLenum"/>
221        <param name="textarget" type="GLenum"/>
222        <param name="texture" type="GLuint"/>
223        <param name="level" type="GLint"/>
224    </function>
225
226    <function name="FramebufferTexture3D" alias="FramebufferTexture3DEXT">
227        <param name="target" type="GLenum"/>
228        <param name="attachment" type="GLenum"/>
229        <param name="textarget" type="GLenum"/>
230        <param name="texture" type="GLuint"/>
231        <param name="level" type="GLint"/>
232        <param name="zoffset" type="GLint"/>
233    </function>
234
235    <function name="FramebufferTextureLayer" alias="FramebufferTextureLayerEXT">
236        <param name="target" type="GLenum"/>
237        <param name="attachment" type="GLenum"/>
238        <param name="texture" type="GLuint"/>
239        <param name="level" type="GLint"/>
240        <param name="layer" type="GLint"/>
241    </function>
242
243    <function name="FramebufferRenderbuffer" alias="FramebufferRenderbufferEXT">
244        <param name="target" type="GLenum"/>
245        <param name="attachment" type="GLenum"/>
246        <param name="renderbuffertarget" type="GLenum"/>
247        <param name="renderbuffer" type="GLuint"/>
248    </function>
249
250    <function name="GetFramebufferAttachmentParameteriv" alias="GetFramebufferAttachmentParameterivEXT">
251        <param name="target" type="GLenum"/>
252        <param name="attachment" type="GLenum"/>
253        <param name="pname" type="GLenum"/>
254        <param name="params" type="GLint *" output="true"/>
255    </function>
256
257    <function name="BlitFramebuffer" alias="BlitFramebufferEXT">
258        <param name="srcX0" type="GLint"/>
259        <param name="srcY0" type="GLint"/>
260        <param name="srcX1" type="GLint"/>
261        <param name="srcY1" type="GLint"/>
262        <param name="dstX0" type="GLint"/>
263        <param name="dstY0" type="GLint"/>
264        <param name="dstX1" type="GLint"/>
265        <param name="dstY1" type="GLint"/>
266        <param name="mask" type="GLbitfield"/>
267        <param name="filter" type="GLenum"/>
268    </function>
269
270    <function name="GenerateMipmap" alias="GenerateMipmapEXT">
271        <param name="target" type="GLenum"/>
272    </function>
273</category>
274
275</OpenGLAPI>
276