1<?xml version="1.0"?>
2<!DOCTYPE OpenGLAPI SYSTEM "../gen/gl_API.dtd">
3
4<!-- OpenGL ES specific extensions -->
5
6<OpenGLAPI>
7
8<!-- part of es1.1 extension pack -->
9<category name="GL_OES_blend_equation_separate" number="1">
10    <enum name="BLEND_EQUATION_RGB_OES"                   value="0x8009"/>
11    <enum name="BLEND_EQUATION_ALPHA_OES"                 value="0x883D"/>
12
13    <function name="BlendEquationSeparateOES" alias="BlendEquationSeparateEXT" static_dispatch="false">
14        <param name="modeRGB" type="GLenum"/>
15        <param name="modeA" type="GLenum"/>
16    </function>
17</category>
18
19<!-- part of es1.1 extension pack -->
20<category name="GL_OES_blend_func_separate" number="2">
21    <enum name="BLEND_DST_RGB_OES"                        value="0x80C8"/>
22    <enum name="BLEND_SRC_RGB_OES"                        value="0x80C9"/>
23    <enum name="BLEND_DST_ALPHA_OES"                      value="0x80CA"/>
24    <enum name="BLEND_SRC_ALPHA_OES"                      value="0x80CB"/>
25
26    <function name="BlendFuncSeparateOES" alias="BlendFuncSeparateEXT" static_dispatch="false">
27        <param name="sfactorRGB" type="GLenum"/>
28        <param name="dfactorRGB" type="GLenum"/>
29        <param name="sfactorAlpha" type="GLenum"/>
30        <param name="dfactorAlpha" type="GLenum"/>
31    </function>
32</category>
33
34<!-- part of es1.1 extension pack -->
35<category name="GL_OES_blend_subtract" number="3">
36    <enum name="FUNC_ADD_OES"                             value="0x8006"/>
37    <enum name="BLEND_EQUATION_OES"                       value="0x8009"/>
38    <enum name="FUNC_SUBTRACT_OES"                        value="0x800A"/>
39    <enum name="FUNC_REVERSE_SUBTRACT_OES"                value="0x800B"/>
40
41    <function name="BlendEquationOES" alias="BlendEquation" static_dispatch="false">
42        <param name="mode" type="GLenum"/>
43    </function>
44</category>
45
46<!-- core addition to es1.0 and later -->
47<category name="GL_OES_byte_coordinates" number="4">
48    <enum name="BYTE"                                     value="0x1400"/>
49</category>
50
51<category name="GL_OES_compressed_ETC1_RGB8_texture" number="5">
52    <enum name="ETC1_RGB8_OES"                            value="0x8D64"/>
53</category>
54
55<category name="GL_OES_compressed_paletted_texture" number="6">
56    <enum name="PALETTE4_RGB8_OES"                        value="0x8B90"/>
57    <enum name="PALETTE4_RGBA8_OES"                       value="0x8B91"/>
58    <enum name="PALETTE4_R5_G6_B5_OES"                    value="0x8B92"/>
59    <enum name="PALETTE4_RGBA4_OES"                       value="0x8B93"/>
60    <enum name="PALETTE4_RGB5_A1_OES"                     value="0x8B94"/>
61    <enum name="PALETTE8_RGB8_OES"                        value="0x8B95"/>
62    <enum name="PALETTE8_RGBA8_OES"                       value="0x8B96"/>
63    <enum name="PALETTE8_R5_G6_B5_OES"                    value="0x8B97"/>
64    <enum name="PALETTE8_RGBA4_OES"                       value="0x8B98"/>
65    <enum name="PALETTE8_RGB5_A1_OES"                     value="0x8B99"/>
66</category>
67
68<!-- optional for es1.1 -->
69<category name="GL_OES_draw_texture" number="7">
70    <enum name="TEXTURE_CROP_RECT_OES"                    value="0x8B9D"/>
71
72    <function name="DrawTexiOES" offset="assign" static_dispatch="false">
73        <param name="x" type="GLint"/>
74        <param name="y" type="GLint"/>
75        <param name="z" type="GLint"/>
76        <param name="width" type="GLint"/>
77        <param name="height" type="GLint"/>
78    </function>
79
80    <function name="DrawTexivOES" offset="assign" static_dispatch="false">
81        <param name="coords" type="const GLint *" count="5"/>
82    </function>
83
84    <function name="DrawTexfOES" offset="assign" static_dispatch="false">
85        <param name="x" type="GLfloat"/>
86        <param name="y" type="GLfloat"/>
87        <param name="z" type="GLfloat"/>
88        <param name="width" type="GLfloat"/>
89        <param name="height" type="GLfloat"/>
90    </function>
91
92    <function name="DrawTexfvOES" offset="assign" static_dispatch="false">
93        <param name="coords" type="const GLfloat *" count="5"/>
94    </function>
95
96    <function name="DrawTexsOES" offset="assign" static_dispatch="false">
97        <param name="x" type="GLshort"/>
98        <param name="y" type="GLshort"/>
99        <param name="z" type="GLshort"/>
100        <param name="width" type="GLshort"/>
101        <param name="height" type="GLshort"/>
102    </function>
103
104    <function name="DrawTexsvOES" offset="assign" static_dispatch="false">
105        <param name="coords" type="const GLshort *" count="5"/>
106    </function>
107
108    <function name="DrawTexxOES" offset="assign" static_dispatch="false">
109        <param name="x" type="GLfixed"/>
110        <param name="y" type="GLfixed"/>
111        <param name="z" type="GLfixed"/>
112        <param name="width" type="GLfixed"/>
113        <param name="height" type="GLfixed"/>
114    </function>
115
116    <function name="DrawTexxvOES" offset="assign" static_dispatch="false">
117        <param name="coords" type="const GLfixed *" count="5"/>
118    </function>
119
120    <!-- TexParameter{ifx}v is skipped here -->
121</category>
122
123<!-- core addition to es1.0 and later -->
124<!-- 9. GL_OES_fixed_point -->
125
126<!-- part of es1.1 extension pack -->
127<category name="GL_OES_framebuffer_object" number="10">
128    <enum name="NONE_OES"                                 value="0"/>
129    <enum name="INVALID_FRAMEBUFFER_OPERATION_OES"        value="0x0506"/>
130    <enum name="RGBA4_OES"                                value="0x8056"/>
131    <enum name="RGB5_A1_OES"                              value="0x8057"/>
132    <enum name="DEPTH_COMPONENT16_OES"                    value="0x81A5"/>
133
134    <enum name="MAX_RENDERBUFFER_SIZE_OES"                value="0x84E8"/>
135    <enum name="FRAMEBUFFER_BINDING_OES"                  value="0x8CA6"/>
136    <enum name="RENDERBUFFER_BINDING_OES"                 value="0x8CA7"/>
137    <enum name="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE_OES"   value="0x8CD0"/>
138    <enum name="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME_OES"   value="0x8CD1"/>
139    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL_OES" value="0x8CD2"/>
140    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE_OES" value="0x8CD3"/>
141    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES" value="0x8CD4"/>
142    <enum name="FRAMEBUFFER_COMPLETE_OES"                 value="0x8CD5"/>
143    <enum name="FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES"    value="0x8CD6"/>
144    <enum name="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT_OES" value="0x8CD7"/>
145    <enum name="FRAMEBUFFER_INCOMPLETE_DIMENSIONS_OES"    value="0x8CD9"/>
146    <enum name="FRAMEBUFFER_INCOMPLETE_FORMATS_OES"       value="0x8CDA"/>
147    <enum name="FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER_OES"   value="0x8CDB"/>
148    <enum name="FRAMEBUFFER_INCOMPLETE_READ_BUFFER_OES"   value="0x8CDC"/>
149    <enum name="FRAMEBUFFER_UNSUPPORTED_OES"              value="0x8CDD"/>
150    <enum name="COLOR_ATTACHMENT0_OES"                    value="0x8CE0"/>
151    <enum name="DEPTH_ATTACHMENT_OES"                     value="0x8D00"/>
152    <enum name="STENCIL_ATTACHMENT_OES"                   value="0x8D20"/>
153    <enum name="FRAMEBUFFER_OES"                          value="0x8D40"/>
154    <enum name="RENDERBUFFER_OES"                         value="0x8D41"/>
155    <enum name="RENDERBUFFER_WIDTH_OES"                   value="0x8D42"/>
156    <enum name="RENDERBUFFER_HEIGHT_OES"                  value="0x8D43"/>
157    <enum name="RENDERBUFFER_INTERNAL_FORMAT_OES"         value="0x8D44"/>
158    <enum name="STENCIL_INDEX1_OES"                       value="0x8D46"/>
159    <enum name="STENCIL_INDEX4_OES"                       value="0x8D47"/>
160    <enum name="STENCIL_INDEX8_OES"                       value="0x8D48"/>
161    <enum name="RENDERBUFFER_RED_SIZE_OES"                value="0x8D50"/>
162    <enum name="RENDERBUFFER_GREEN_SIZE_OES"              value="0x8D51"/>
163    <enum name="RENDERBUFFER_BLUE_SIZE_OES"               value="0x8D52"/>
164    <enum name="RENDERBUFFER_ALPHA_SIZE_OES"              value="0x8D53"/>
165    <enum name="RENDERBUFFER_DEPTH_SIZE_OES"              value="0x8D54"/>
166    <enum name="RENDERBUFFER_STENCIL_SIZE_OES"            value="0x8D55"/>
167    <enum name="RGB565_OES"                               value="0x8D62"/>
168
169    <function name="BindFramebufferOES" alias="BindFramebufferEXT" static_dispatch="false">
170        <param name="target" type="GLenum"/>
171        <param name="framebuffer" type="GLuint"/>
172    </function>
173
174    <function name="BindRenderbufferOES" alias="BindRenderbufferEXT" static_dispatch="false">
175        <param name="target" type="GLenum"/>
176        <param name="renderbuffer" type="GLuint"/>
177    </function>
178
179    <function name="CheckFramebufferStatusOES" alias="CheckFramebufferStatusEXT" static_dispatch="false">
180        <param name="target" type="GLenum"/>
181	<return type="GLenum"/>
182    </function>
183
184    <function name="DeleteFramebuffersOES" alias="DeleteFramebuffersEXT" static_dispatch="false">
185        <param name="n" type="GLsizei" counter="true"/>
186        <param name="framebuffers" type="const GLuint *" count="n"/>
187    </function>
188
189    <function name="DeleteRenderbuffersOES" alias="DeleteRenderbuffersEXT" static_dispatch="false">
190        <param name="n" type="GLsizei" counter="true"/>
191        <param name="renderbuffers" type="const GLuint *" count="n"/>
192    </function>
193
194    <function name="FramebufferRenderbufferOES" alias="FramebufferRenderbufferEXT" static_dispatch="false">
195        <param name="target" type="GLenum"/>
196        <param name="attachment" type="GLenum"/>
197        <param name="renderbuffertarget" type="GLenum"/>
198        <param name="renderbuffer" type="GLuint"/>
199    </function>
200
201    <function name="FramebufferTexture2DOES" alias="FramebufferTexture2DEXT" static_dispatch="false">
202        <param name="target" type="GLenum"/>
203        <param name="attachment" type="GLenum"/>
204        <param name="textarget" type="GLenum"/>
205        <param name="texture" type="GLuint"/>
206        <param name="level" type="GLint"/>
207    </function>
208
209    <function name="GenerateMipmapOES" alias="GenerateMipmapEXT" static_dispatch="false">
210        <param name="target" type="GLenum"/>
211    </function>
212
213    <function name="GenFramebuffersOES" alias="GenFramebuffersEXT" static_dispatch="false">
214        <param name="n" type="GLsizei" counter="true"/>
215        <param name="framebuffers" type="GLuint *" count="n" output="true"/>
216    </function>
217
218    <function name="GenRenderbuffersOES" alias="GenRenderbuffersEXT" static_dispatch="false">
219        <param name="n" type="GLsizei" counter="true"/>
220        <param name="renderbuffers" type="GLuint *" count="n" output="true"/>
221    </function>
222
223    <function name="GetFramebufferAttachmentParameterivOES" alias="GetFramebufferAttachmentParameterivEXT" static_dispatch="false">
224        <param name="target" type="GLenum"/>
225        <param name="attachment" type="GLenum"/>
226        <param name="pname" type="GLenum"/>
227        <param name="params" type="GLint *" output="true"/>
228    </function>
229
230    <function name="GetRenderbufferParameterivOES" alias="GetRenderbufferParameterivEXT" static_dispatch="false">
231        <param name="target" type="GLenum"/>
232        <param name="pname" type="GLenum"/>
233        <param name="params" type="GLint *" output="true"/>
234    </function>
235
236    <function name="IsFramebufferOES" alias="IsFramebufferEXT" static_dispatch="false">
237        <param name="framebuffer" type="GLuint"/>
238	<return type="GLboolean"/>
239    </function>
240
241    <function name="IsRenderbufferOES" alias="IsRenderbufferEXT" static_dispatch="false">
242        <param name="renderbuffer" type="GLuint"/>
243	<return type="GLboolean"/>
244    </function>
245
246    <function name="RenderbufferStorageOES" alias="RenderbufferStorageEXT" static_dispatch="false">
247        <param name="target" type="GLenum"/>
248        <param name="internalformat" type="GLenum"/>
249        <param name="width" type="GLsizei"/>
250        <param name="height" type="GLsizei"/>
251    </function>
252</category>
253
254<!-- core addition to es1.1 -->
255<category name="GL_OES_matrix_get" number="11">
256    <enum name="MODELVIEW_MATRIX_FLOAT_AS_INT_BITS_OES"   value="0x898D"/>
257    <enum name="PROJECTION_MATRIX_FLOAT_AS_INT_BITS_OES"  value="0x898E"/>
258    <enum name="TEXTURE_MATRIX_FLOAT_AS_INT_BITS_OES"	  value="0x898F"/>
259</category>
260
261<!-- optional for es1.1 -->
262<category name="GL_OES_matrix_palette" number="12">
263    <enum name="MAX_VERTEX_UNITS_OES"                     value="0x86A4"/>
264    <enum name="WEIGHT_ARRAY_TYPE_OES"                    value="0x86A9"/>
265    <enum name="WEIGHT_ARRAY_STRIDE_OES"                  value="0x86AA"/>
266    <enum name="WEIGHT_ARRAY_SIZE_OES"                    value="0x86AB"/>
267    <enum name="WEIGHT_ARRAY_POINTER_OES"                 value="0x86AC"/>
268    <enum name="WEIGHT_ARRAY_OES"                         value="0x86AD"/>
269    <enum name="MATRIX_PALETTE_OES"                       value="0x8840"/>
270    <enum name="MAX_PALETTE_MATRICES_OES"                 value="0x8842"/>
271    <enum name="CURRENT_PALETTE_MATRIX_OES"               value="0x8843"/>
272    <enum name="MATRIX_INDEX_ARRAY_OES"                   value="0x8844"/>
273    <enum name="MATRIX_INDEX_ARRAY_SIZE_OES"              value="0x8846"/>
274    <enum name="MATRIX_INDEX_ARRAY_TYPE_OES"              value="0x8847"/>
275    <enum name="MATRIX_INDEX_ARRAY_STRIDE_OES"            value="0x8848"/>
276    <enum name="MATRIX_INDEX_ARRAY_POINTER_OES"           value="0x8849"/>
277    <enum name="WEIGHT_ARRAY_BUFFER_BINDING_OES"          value="0x889E"/>
278    <enum name="MATRIX_INDEX_ARRAY_BUFFER_BINDING_OES"    value="0x8B9E"/>
279
280    <function name="CurrentPaletteMatrixOES" alias="CurrentPaletteMatrixARB" static_dispatch="false">
281        <param name="matrixpaletteindex" type="GLuint"/>
282    </function>
283
284    <!-- no offset -->
285    <function name="LoadPaletteFromModelViewMatrixOES" static_dispatch="false">
286    </function>
287
288    <function name="MatrixIndexPointerOES" alias="MatrixIndexPointerARB" static_dispatch="false">
289        <param name="size" type="GLint"/>
290        <param name="type" type="GLenum"/>
291        <param name="stride" type="GLsizei"/>
292        <param name="pointer" type="const GLvoid *"/>
293    </function>
294
295    <function name="WeightPointerOES" alias="WeightPointerARB" static_dispatch="false">
296        <param name="size" type="GLint"/>
297        <param name="type" type="GLenum"/>
298        <param name="stride" type="GLsizei"/>
299        <param name="pointer" type="const GLvoid *"/>
300    </function>
301</category>
302
303<!-- required for es1.1 -->
304<category name="GL_OES_point_size_array" number="14">
305    <enum name="POINT_SIZE_ARRAY_TYPE_OES"                value="0x898A"/>
306    <enum name="POINT_SIZE_ARRAY_STRIDE_OES"	          value="0x898B"/>
307    <enum name="POINT_SIZE_ARRAY_POINTER_OES"	          value="0x898C"/>
308    <enum name="POINT_SIZE_ARRAY_OES"                     value="0x8B9C"/>
309    <enum name="POINT_SIZE_ARRAY_BUFFER_BINDING_OES"	  value="0x8B9F"/>
310
311    <function name="PointSizePointerOES" offset="assign" static_dispatch="false">
312        <param name="type" type="GLenum"/>
313        <param name="stride" type="GLsizei"/>
314        <param name="pointer" type="const GLvoid *"/>
315    </function>
316</category>
317
318<!-- required for es1.1 -->
319<category name="GL_OES_point_sprite" number="15">
320    <enum name="POINT_SPRITE_OES"                         value="0x8861"/>
321    <enum name="COORD_REPLACE_OES"	                  value="0x8862"/>
322</category>
323
324<!-- optional for es1.0 -->
325<category name="GL_OES_query_matrix" number="16">
326    <function name="QueryMatrixxOES" offset="assign" static_dispatch="false">
327        <param name="mantissa" type="GLfixed *" count="16" />
328        <param name="exponent" type="GLint *" count="16" />
329	<return type="GLbitfield"/>
330    </function>
331</category>
332
333<!-- required for es1.0 and later -->
334<!-- 17. GL_OES_read_format -->
335
336<!-- core addition to es1.0 and later -->
337<!-- 18. GL_OES_single_precision -->
338
339<!-- part of es1.1 extension pack -->
340<category name="GL_OES_texture_cube_map" number="20">
341    <enum name="TEXTURE_GEN_MODE_OES"                     value="0x2500"/>
342    <enum name="NORMAL_MAP_OES"                           value="0x8511"/>
343    <enum name="REFLECTION_MAP_OES"                       value="0x8512"/>
344    <enum name="TEXTURE_CUBE_MAP_OES"                     value="0x8513"/>
345    <enum name="TEXTURE_BINDING_CUBE_MAP_OES"             value="0x8514"/>
346    <enum name="TEXTURE_CUBE_MAP_POSITIVE_X_OES"          value="0x8515"/>
347    <enum name="TEXTURE_CUBE_MAP_NEGATIVE_X_OES"          value="0x8516"/>
348    <enum name="TEXTURE_CUBE_MAP_POSITIVE_Y_OES"          value="0x8517"/>
349    <enum name="TEXTURE_CUBE_MAP_NEGATIVE_Y_OES"          value="0x8518"/>
350    <enum name="TEXTURE_CUBE_MAP_POSITIVE_Z_OES"          value="0x8519"/>
351    <enum name="TEXTURE_CUBE_MAP_NEGATIVE_Z_OES"          value="0x851A"/>
352    <enum name="MAX_CUBE_MAP_TEXTURE_SIZE_OES"            value="0x851C"/>
353    <enum name="TEXTURE_GEN_STR_OES"                      value="0x8D60"/>
354
355    <function name="GetTexGenfvOES" alias="GetTexGenfv" static_dispatch="false">
356        <param name="coord" type="GLenum"/>
357        <param name="pname" type="GLenum"/>
358        <param name="params" type="GLfloat *" output="true" variable_param="pname"/>
359    </function>
360
361    <function name="GetTexGenivOES" alias="GetTexGeniv" static_dispatch="false">
362        <param name="coord" type="GLenum"/>
363        <param name="pname" type="GLenum"/>
364        <param name="params" type="GLint *" output="true" variable_param="pname"/>
365    </function>
366
367    <function name="TexGenfOES" alias="TexGenf" static_dispatch="false">
368        <param name="coord" type="GLenum"/>
369        <param name="pname" type="GLenum"/>
370        <param name="param" type="GLfloat"/>
371    </function>
372
373    <function name="TexGenfvOES" alias="TexGenfv" static_dispatch="false">
374        <param name="coord" type="GLenum"/>
375        <param name="pname" type="GLenum"/>
376        <param name="params" type="const GLfloat *" variable_param="pname"/>
377    </function>
378
379    <function name="TexGeniOES" alias="TexGeni" static_dispatch="false">
380        <param name="coord" type="GLenum"/>
381        <param name="pname" type="GLenum"/>
382        <param name="param" type="GLint"/>
383    </function>
384
385    <function name="TexGenivOES" alias="TexGeniv" static_dispatch="false">
386        <param name="coord" type="GLenum"/>
387        <param name="pname" type="GLenum"/>
388        <param name="params" type="const GLint *" variable_param="pname"/>
389    </function>
390</category>
391
392<category name="GL_OES_texture_env_crossbar" number="21">
393    <!-- No new functions, types, enums. -->
394</category>
395
396<category name="GL_OES_texture_mirrored_repeat" number="22">
397    <!-- No new functions, types, enums. -->
398</category>
399
400<!-- 23. GL_OES_EGL_image -->
401
402<category name="GL_OES_depth24" number="24">
403    <enum name="DEPTH_COMPONENT24_OES"                    value="0x81A6"/>
404</category>
405
406<category name="GL_OES_depth32" number="25">
407    <enum name="DEPTH_COMPONENT32_OES"                    value="0x81A7"/>
408</category>
409
410<!-- 26. GL_OES_element_index_uint -->
411
412<!-- 27. GL_OES_fbo_render_mipmap -->
413
414<category name="GL_OES_mapbuffer" number="29">
415    <enum name="WRITE_ONLY_OES"                           value="0x88B9"/>
416    <enum name="BUFFER_ACCESS_OES"                        value="0x88BB"/>
417    <enum name="BUFFER_MAPPED_OES"                        value="0x88BC"/>
418    <enum name="BUFFER_MAP_POINTER_OES"                   value="0x88BD"/>
419
420    <function name="GetBufferPointervOES" alias="GetBufferPointervARB" static_dispatch="false">
421        <param name="target" type="GLenum"/>
422        <param name="pname" type="GLenum"/>
423        <param name="params" type="GLvoid **"/>
424    </function>
425
426    <function name="MapBufferOES" alias="MapBufferARB" static_dispatch="false">
427        <param name="target" type="GLenum"/>
428        <param name="access" type="GLenum"/>
429	<return type="GLvoid *"/>
430    </function>
431
432    <function name="UnmapBufferOES" alias="UnmapBufferARB" static_dispatch="false">
433        <param name="target" type="GLenum"/>
434	<return type="GLboolean"/>
435    </function>
436</category>
437
438<category name="GL_OES_rgb8_rgba8" number="30">
439    <enum name="RGB8_OES"                                 value="0x8051"/>
440    <enum name="RGBA8_OES"                                value="0x8058"/>
441</category>
442
443<category name="GL_OES_stencil1" number="31">
444    <enum name="STENCIL_INDEX1_OES"                       value="0x8D46"/>
445</category>
446
447<category name="GL_OES_stencil4" number="32">
448    <enum name="STENCIL_INDEX4_OES"                       value="0x8D47"/>
449</category>
450
451<category name="GL_OES_stencil8" number="33">
452    <enum name="STENCIL_INDEX8_OES"                       value="0x8D48"/>
453</category>
454
455<category name="GL_OES_texture_3D" number="34">
456    <enum name="TEXTURE_BINDING_3D_OES"                   value="0x806A"/>
457    <enum name="TEXTURE_3D_OES"                           value="0x806F"/>
458    <enum name="TEXTURE_WRAP_R_OES"                       value="0x8072"/>
459    <enum name="MAX_3D_TEXTURE_SIZE_OES"                  value="0x8073"/>
460    <enum name="SAMPLER_3D_OES"                           value="0x8B5F"/>
461    <enum name="FRAMEBUFFER_ATTACHMENT_TEXTURE_3D_ZOFFSET_OES" value="0x8CD4"/>
462
463    <function name="CompressedTexImage3DOES" alias="CompressedTexImage3DARB" static_dispatch="false">
464        <param name="target" type="GLenum"/>
465        <param name="level" type="GLint"/>
466        <param name="internalformat" type="GLenum"/>
467        <param name="width" type="GLsizei"/>
468        <param name="height" type="GLsizei"/>
469        <param name="depth" type="GLsizei"/>
470        <param name="border" type="GLint"/>
471        <param name="imageSize" type="GLsizei" counter="true"/>
472        <param name="data" type="const GLvoid *" count="imageSize"/>
473    </function>
474
475    <function name="CompressedTexSubImage3DOES" alias="CompressedTexSubImage3DARB" static_dispatch="false">
476        <param name="target" type="GLenum"/>
477        <param name="level" type="GLint"/>
478        <param name="xoffset" type="GLint"/>
479        <param name="yoffset" type="GLint"/>
480        <param name="zoffset" type="GLint"/>
481        <param name="width" type="GLsizei"/>
482        <param name="height" type="GLsizei"/>
483        <param name="depth" type="GLsizei"/>
484        <param name="format" type="GLenum"/>
485        <param name="imageSize" type="GLsizei" counter="true"/>
486        <param name="data" type="const GLvoid *" count="imageSize"/>
487    </function>
488
489    <function name="CopyTexSubImage3DOES" alias="CopyTexSubImage3D" static_dispatch="false">
490        <param name="target" type="GLenum"/>
491        <param name="level" type="GLint"/>
492        <param name="xoffset" type="GLint"/>
493        <param name="yoffset" type="GLint"/>
494        <param name="zoffset" type="GLint"/>
495        <param name="x" type="GLint"/>
496        <param name="y" type="GLint"/>
497        <param name="width" type="GLsizei"/>
498        <param name="height" type="GLsizei"/>
499    </function>
500
501    <function name="FramebufferTexture3DOES" alias="FramebufferTexture3DEXT" static_dispatch="false">
502        <param name="target" type="GLenum"/>
503        <param name="attachment" type="GLenum"/>
504        <param name="textarget" type="GLenum"/>
505        <param name="texture" type="GLuint"/>
506        <param name="level" type="GLint"/>
507        <param name="zoffset" type="GLint"/>
508    </function>
509
510    <function name="TexImage3DOES" alias="TexImage3D" static_dispatch="false">
511        <param name="target" type="GLenum"/>
512        <param name="level" type="GLint"/>
513        <param name="internalformat" type="GLenum"/>
514        <param name="width" type="GLsizei"/>
515        <param name="height" type="GLsizei"/>
516        <param name="depth" type="GLsizei"/>
517        <param name="border" type="GLint"/>
518        <param name="format" type="GLenum"/>
519        <param name="type" type="GLenum"/>
520        <param name="pixels" type="const GLvoid *" img_width="width" img_height="height" img_depth="depth" img_format="format" img_type="type" img_target="target" img_null_flag="true" img_pad_dimensions="true"/>
521    </function>
522
523    <function name="TexSubImage3DOES" alias="TexSubImage3D" static_dispatch="false">
524        <param name="target" type="GLenum"/>
525        <param name="level" type="GLint"/>
526        <param name="xoffset" type="GLint"/>
527        <param name="yoffset" type="GLint"/>
528        <param name="zoffset" type="GLint"/>
529        <param name="width" type="GLsizei"/>
530        <param name="height" type="GLsizei"/>
531        <param name="depth" type="GLsizei"/>
532        <param name="format" type="GLenum"/>
533        <param name="type" type="GLenum"/>
534        <param name="UNUSED" type="GLuint" padding="true"/>
535        <param name="pixels" type="const GLvoid *" img_width="width" img_height="height" img_depth="depth" img_xoff="xoffset" img_yoff="yoffset" img_zoff="zoffset" img_format="format" img_type="type" img_target="target" img_pad_dimensions="true"/>
536    </function>
537</category>
538
539<!-- the other name is OES_texture_float_linear -->
540<!-- 35. GL_OES_texture_half_float_linear -->
541
542<!-- the other name is OES_texture_float -->
543<category name="GL_OES_texture_half_float" number="36">
544    <enum name="HALF_FLOAT_OES"                           value="0x8D61"/>
545</category>
546
547<!-- 37. GL_OES_texture_npot -->
548
549<category name="GL_OES_vertex_half_float" number="38">
550    <enum name="HALF_FLOAT_OES"                           value="0x8D61"/>
551</category>
552
553<!-- 41. GL_EXT_texture_filter_anisotropic -->
554
555<category name="GL_EXT_texture_type_2_10_10_10_REV" number="42">
556    <enum name="UNSIGNED_INT_2_10_10_10_REV_EXT"          value="0x8368"/>
557</category>
558
559<category name="GL_OES_packed_depth_stencil" number="43">
560    <enum name="DEPTH_STENCIL_OES"                        value="0x84F9"/>
561    <enum name="UNSIGNED_INT_24_8_OES"                    value="0x84FA"/>
562    <enum name="DEPTH24_STENCIL8_OES"                     value="0x88F0"/>
563</category>
564
565<!-- 44. GL_OES_depth_texture -->
566
567<category name="GL_OES_standard_derivatives" number="45">
568    <enum name="FRAGMENT_SHADER_DERIVATIVE_HINT_OES"      value="0x8B8B"/>
569</category>
570
571<category name="GL_OES_vertex_type_10_10_10_2" number="46">
572    <enum name="UNSIGNED_INT_10_10_10_2_OES"              value="0x8DF6"/>
573    <enum name="INT_10_10_10_2_OES"                       value="0x8DF7"/>
574</category>
575
576<category name="GL_OES_get_program_binary" number="47">
577    <enum name="PROGRAM_BINARY_LENGTH_OES"                value="0x8741"/>
578    <enum name="NUM_PROGRAM_BINARY_FORMATS_OES"           value="0x87FE"/>
579    <enum name="PROGRAM_BINARY_FORMATS_OES"               value="0x87FF"/>
580
581    <function name="GetProgramBinaryOES" alias="GetProgramBinary" static_dispatch="false">
582        <param name="program" type="GLuint"/>
583        <param name="bufSize" type="GLsizei"/>
584        <param name="length" type="GLsizei *"/>
585        <param name="binaryFormat" type="GLenum *"/>
586        <param name="binary" type="GLvoid *"/>
587    </function>
588
589    <function name="ProgramBinaryOES" alias="ProgramBinary" static_dispatch="false">
590        <param name="program" type="GLuint"/>
591        <param name="binaryFormat" type="GLenum"/>
592        <param name="binary" type="const GLvoid *"/>
593        <param name="length" type="GLint"/>
594    </function>
595</category>
596
597<category name="GL_EXT_texture_compression_dxt1" number="49">
598    <enum name="COMPRESSED_RGB_S3TC_DXT1_EXT"             value="0x83F0"/>
599    <enum name="COMPRESSED_RGBA_S3TC_DXT1_EXT"            value="0x83F1"/>
600</category>
601
602<category name="GL_EXT_texture_format_BGRA8888" number="51">
603    <enum name="BGRA_EXT"                                 value="0x80E1"/>
604</category>
605
606<category name="GL_EXT_texture_lod_bias" number="60">
607    <enum name="TEXTURE_FILTER_CONTROL_EXT"               value="0x8500"/>
608    <enum name="TEXTURE_LOD_BIAS_EXT"                     value="0x8501"/>
609    <enum name="MAX_TEXTURE_LOD_BIAS_EXT"                 value="0x84FD"/>
610</category>
611
612<!-- 65. GL_EXT_blend_minmax -->
613
614<category name="GL_EXT_read_format_bgra" number="66">
615    <enum name="BGRA_EXT"                                 value="0x80E1"/>
616    <enum name="UNSIGNED_SHORT_4_4_4_4_REV_EXT"           value="0x8365"/>
617    <enum name="UNSIGNED_SHORT_1_5_5_5_REV_EXT"           value="0x8366"/>
618</category>
619
620<!-- 69. GL_EXT_multi_draw_arrays -->
621
622<!-- 71. GL_OES_vertex_array_object -->
623<category name="GL_OES_vertex_array_object" number="71">
624    <function name="BindVertexArrayOES" alias="BindVertexArray">
625        <param name="array" type="GLuint"/>
626    </function>
627
628    <function name="DeleteVertexArraysOES" alias="DeleteVertexArraysAPPLE">
629        <param name="n" type="GLsizei"/>
630        <param name="arrays" type="const GLuint *" count="n"/>
631    </function>
632
633    <function name="GenVertexArraysOES" alias="GenVertexArrays">
634        <param name="n" type="GLsizei"/>
635        <param name="arrays" type="GLuint *" output="true" count="n"/>
636    </function>
637
638    <function name="IsVertexArrayOES" alias="IsVertexArrayAPPLE">
639        <param name="array" type="GLuint"/>
640        <return type="GLboolean"/>
641    </function>
642
643    <enum name="VERTEX_ARRAY_BINDING_OES"      count="1"  value="0x85B5">
644        <size name="Get" mode="get"/>
645    </enum>
646</category>
647
648<!-- 87. GL_OES_EGL_image_external -->
649<category name="GL_OES_EGL_image_external" number="87">
650    <enum name="TEXTURE_EXTERNAL_OES"                     value="0x8D65"/>
651    <enum name="SAMPLER_EXTERNAL_OES"                     value="0x8D66"/>
652    <enum name="TEXTURE_BINDING_EXTERNAL_OES"             value="0x8D67"/>
653    <enum name="REQUIRED_TEXTURE_IMAGE_UNITS_OES"         value="0x8D68"/>
654</category>
655
656<!--
657    This extension serves a similar purpose to ARB_draw_buffers except
658    that this is for OpenGL ES 2.0.
659-->
660<category name="GL_NV_draw_buffers" number="91">
661    <enum name="MAX_DRAW_BUFFERS_NV"           count="1"  value="0x8824">
662        <size name="Get" mode="get"/>
663    </enum>
664    <enum name="DRAW_BUFFER0_NV"               count="1"  value="0x8825">
665        <size name="Get" mode="get"/>
666    </enum>
667    <enum name="DRAW_BUFFER1_NV"               count="1"  value="0x8826">
668        <size name="Get" mode="get"/>
669    </enum>
670    <enum name="DRAW_BUFFER2_NV"               count="1"  value="0x8827">
671        <size name="Get" mode="get"/>
672    </enum>
673    <enum name="DRAW_BUFFER3_NV"               count="1"  value="0x8828">
674        <size name="Get" mode="get"/>
675    </enum>
676    <enum name="DRAW_BUFFER4_NV"               count="1"  value="0x8829">
677        <size name="Get" mode="get"/>
678    </enum>
679    <enum name="DRAW_BUFFER5_NV"               count="1"  value="0x882A">
680        <size name="Get" mode="get"/>
681    </enum>
682    <enum name="DRAW_BUFFER6_NV"               count="1"  value="0x882B">
683        <size name="Get" mode="get"/>
684    </enum>
685    <enum name="DRAW_BUFFER7_NV"               count="1"  value="0x882C">
686        <size name="Get" mode="get"/>
687    </enum>
688    <enum name="DRAW_BUFFER8_NV"               count="1"  value="0x882D">
689        <size name="Get" mode="get"/>
690    </enum>
691    <enum name="DRAW_BUFFER9_NV"               count="1"  value="0x882E">
692        <size name="Get" mode="get"/>
693    </enum>
694    <enum name="DRAW_BUFFER10_NV"              count="1"  value="0x882F">
695        <size name="Get" mode="get"/>
696    </enum>
697    <enum name="DRAW_BUFFER11_NV"              count="1"  value="0x8830">
698        <size name="Get" mode="get"/>
699    </enum>
700    <enum name="DRAW_BUFFER12_NV"              count="1"  value="0x8831">
701        <size name="Get" mode="get"/>
702    </enum>
703    <enum name="DRAW_BUFFER13_NV"              count="1"  value="0x8832">
704        <size name="Get" mode="get"/>
705    </enum>
706    <enum name="DRAW_BUFFER14_NV"              count="1"  value="0x8833">
707        <size name="Get" mode="get"/>
708    </enum>
709    <enum name="DRAW_BUFFER15_NV"              count="1"  value="0x8834">
710        <size name="Get" mode="get"/>
711    </enum>
712
713    <function name="DrawBuffersNV" alias="DrawBuffersARB">
714        <param name="n" type="GLsizei" counter="true"/>
715        <param name="bufs" type="const GLenum *" count="n"/>
716    </function>
717</category>
718
719<!-- 93. GL_NV_read_buffer -->
720<category name="NV_read_buffer">
721    <function name="ReadBufferNV" alias="ReadBuffer">
722        <param name="mode" type="GLenum"/>
723    </function>
724</category>
725
726<!-- 103. GL_EXT_texture_rg -->
727<category name="GL_EXT_texture_rg" number="103">
728    <enum name="RED_EXT"                                  value="0x1903"/>
729    <enum name="RG_EXT"                                   value="0x8227"/>
730    <enum name="R8_EXT"                                   value="0x8229"/>
731    <enum name="RG8_EXT"                                  value="0x822B"/>
732</category>
733
734</OpenGLAPI>
735