<?xml version="1.0"?>
<!DOCTYPE OpenGLAPI SYSTEM "../gen/gl_API.dtd">

<!-- OpenGL ES extensions -->

<OpenGLAPI>

<category name="GL_OES_compressed_paletted_texture" number="6">
    <enum name="PALETTE4_RGB8_OES"                        value="0x8B90"/>
    <enum name="PALETTE4_RGBA8_OES"                       value="0x8B91"/>
    <enum name="PALETTE4_R5_G6_B5_OES"                    value="0x8B92"/>
    <enum name="PALETTE4_RGBA4_OES"                       value="0x8B93"/>
    <enum name="PALETTE4_RGB5_A1_OES"                     value="0x8B94"/>
    <enum name="PALETTE8_RGB8_OES"                        value="0x8B95"/>
    <enum name="PALETTE8_RGBA8_OES"                       value="0x8B96"/>
    <enum name="PALETTE8_R5_G6_B5_OES"                    value="0x8B97"/>
    <enum name="PALETTE8_RGBA4_OES"                       value="0x8B98"/>
    <enum name="PALETTE8_RGB5_A1_OES"                     value="0x8B99"/>
</category>

<!-- 23. GL_OES_EGL_image -->
<xi:include href="../gen/OES_EGL_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>

<category name="GL_OES_depth24" number="24">
    <enum name="DEPTH_COMPONENT24_OES"                    value="0x81A6"/>
</category>

<category name="GL_OES_depth32" number="25">
    <enum name="DEPTH_COMPONENT32_OES"                    value="0x81A7"/>
</category>

<category name="GL_OES_element_index_uint" number="26">
    <!-- No new functions, types, enums. -->
</category>

<category name="GL_OES_fbo_render_mipmap" number="27">
    <!-- No new functions, types, enums. -->
</category>

<category name="GL_OES_mapbuffer" number="29">
    <enum name="WRITE_ONLY_OES"                           value="0x88B9"/>
    <enum name="BUFFER_ACCESS_OES"                        value="0x88BB"/>
    <enum name="BUFFER_MAPPED_OES"                        value="0x88BC"/>
    <enum name="BUFFER_MAP_POINTER_OES"                   value="0x88BD"/>

    <function name="GetBufferPointervOES" offset="assign">
        <param name="target" type="GLenum"/>
        <param name="pname" type="GLenum"/>
        <param name="params" type="GLvoid **"/>
    </function>

    <function name="MapBufferOES" offset="assign">
        <param name="target" type="GLenum"/>
        <param name="access" type="GLenum"/>
	<return type="GLvoid *"/>
    </function>

    <function name="UnmapBufferOES" offset="assign">
        <param name="target" type="GLenum"/>
	<return type="GLboolean"/>
    </function>
</category>

<category name="GL_OES_rgb8_rgba8" number="30">
    <enum name="RGB8_OES"                                 value="0x8051"/>
    <enum name="RGBA8_OES"                                value="0x8058"/>
</category>

<category name="GL_OES_stencil1" number="31">
    <enum name="STENCIL_INDEX1_OES"                       value="0x8D46"/>
</category>

<category name="GL_OES_stencil4" number="32">
    <enum name="STENCIL_INDEX4_OES"                       value="0x8D47"/>
</category>

<category name="GL_OES_stencil8" number="33">
    <enum name="STENCIL_INDEX8_OES"                       value="0x8D48"/>
</category>

<category name="GL_EXT_texture_filter_anisotropic" number="41">
    <enum name="TEXTURE_MAX_ANISOTROPY_EXT"               value="0x84FE"/>
    <enum name="MAX_TEXTURE_MAX_ANISOTROPY_EXT"           value="0x84FF"/>
</category>

<category name="GL_EXT_texture_compression_dxt1" number="49">
    <enum name="COMPRESSED_RGB_S3TC_DXT1_EXT"             value="0x83F0"/>
    <enum name="COMPRESSED_RGBA_S3TC_DXT1_EXT"            value="0x83F1"/>
</category>

<category name="GL_EXT_texture_format_BGRA8888" number="51">
    <enum name="BGRA_EXT"                              value="0x80E1"/>
</category>

<category name="GL_EXT_blend_minmax" number="65">
    <enum name="MIN_EXT"                               value="0x8007"/>
    <enum name="MAX_EXT"                               value="0x8008"/>
</category>

<category name="GL_EXT_read_format_bgra" number="66">
    <enum name="BGRA_EXT"                              value="0x80E1"/>
    <enum name="UNSIGNED_SHORT_4_4_4_4_REV_EXT"        value="0x8365"/>
    <enum name="UNSIGNED_SHORT_1_5_5_5_REV_EXT"        value="0x8366"/>
</category>

<category name="GL_EXT_multi_draw_arrays" number="69">
    <function name="MultiDrawArraysEXT" offset="assign">
        <param name="mode" type="GLenum"/>
        <param name="first" type="const GLint *"/>
        <param name="count" type="const GLsizei *"/>
        <param name="primcount" type="GLsizei"/>
        <glx handcode="true"/>
    </function>

    <function name="MultiDrawElementsEXT" offset="assign">
        <param name="mode" type="GLenum"/>
        <param name="count" type="const GLsizei *"/>
        <param name="type" type="GLenum"/>
        <param name="indices" type="const GLvoid **"/>
        <param name="primcount" type="GLsizei"/>
        <glx handcode="true"/>
    </function>
</category>

</OpenGLAPI>
