mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-20 11:18:11 +02:00
Currently, the set of functions which exist in GLES1 or GLES2 is determined by hardcoded lists of function names in gles_api.py. This patch encodes that information into the XML files using new attributes, es1 and es2. The es1 attribute denotes the first version of GLES 1 in which the function exists (e.g. es1="1.1" means the function exists in GLES 1.1 but not GLES 1.0). "none" (the default) means the function is not available in any version of GLES 1. The es2 attribute denotes the first version of GLES 2/3 in which the function exists (e.g. es2="2.0" means the function exists in both GLES 2.0 and GLES 3.0). "none" (the default) means the function is not available in any version of GLES 2 or GLES 3. Note that since GLES 3 is a strict superset of GLES 2, there is no need for a separate attribute for it; instead, 'es2="3.0"' should be used to denote functions that are present in GLES 3 but not GLES 2. This patch only adds information about GLES versions 1.0, 1.1, and 2.0. Later patches will modify the python code generation scripts to use this information rather than the hardcoded lists in gles_api.py. Tested-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
300 lines
11 KiB
XML
300 lines
11 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
|
|
|
|
<!-- This is included by gl_and_es_API.xml. Could be moved to gl_API.xml. -->
|
|
<!-- this extension is incomplete -->
|
|
|
|
<OpenGLAPI>
|
|
|
|
<category name="GL_OES_fixed_point" number="292">
|
|
<enum name="FIXED_OES" value="0x140C"/>
|
|
|
|
<type name="fixed" size="4" />
|
|
<type name="clampx" size="4" />
|
|
|
|
<!-- OpenGL ES 1.0 -->
|
|
<function name="AlphaFuncxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="func" type="GLenum"/>
|
|
<param name="ref" type="GLclampx"/>
|
|
</function>
|
|
|
|
<function name="ClearColorxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="red" type="GLclampx"/>
|
|
<param name="green" type="GLclampx"/>
|
|
<param name="blue" type="GLclampx"/>
|
|
<param name="alpha" type="GLclampx"/>
|
|
</function>
|
|
|
|
<function name="ClearDepthxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="depth" type="GLclampx"/>
|
|
</function>
|
|
|
|
<function name="Color4xOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="red" type="GLfixed"/>
|
|
<param name="green" type="GLfixed"/>
|
|
<param name="blue" type="GLfixed"/>
|
|
<param name="alpha" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="DepthRangexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="zNear" type="GLclampx"/>
|
|
<param name="zFar" type="GLclampx"/>
|
|
</function>
|
|
|
|
<function name="FogxOES" offset="assign" static_dispatch="false" es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="FogxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="FrustumxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="left" type="GLfixed"/>
|
|
<param name="right" type="GLfixed"/>
|
|
<param name="bottom" type="GLfixed"/>
|
|
<param name="top" type="GLfixed"/>
|
|
<param name="zNear" type="GLfixed"/>
|
|
<param name="zFar" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="LightModelxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="LightModelxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="LightxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="light" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="LightxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="light" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="LineWidthxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="width" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="LoadMatrixxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="m" type="const GLfixed *" count="16"/>
|
|
</function>
|
|
|
|
<function name="MaterialxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="face" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="MaterialxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="face" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="MultMatrixxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="m" type="const GLfixed *" count="16"/>
|
|
</function>
|
|
|
|
<function name="MultiTexCoord4xOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="s" type="GLfixed"/>
|
|
<param name="t" type="GLfixed"/>
|
|
<param name="r" type="GLfixed"/>
|
|
<param name="q" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="Normal3xOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="nx" type="GLfixed"/>
|
|
<param name="ny" type="GLfixed"/>
|
|
<param name="nz" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="OrthoxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="left" type="GLfixed"/>
|
|
<param name="right" type="GLfixed"/>
|
|
<param name="bottom" type="GLfixed"/>
|
|
<param name="top" type="GLfixed"/>
|
|
<param name="zNear" type="GLfixed"/>
|
|
<param name="zFar" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="PointSizexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="size" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="PolygonOffsetxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="factor" type="GLfixed"/>
|
|
<param name="units" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="RotatexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="angle" type="GLfixed"/>
|
|
<param name="x" type="GLfixed"/>
|
|
<param name="y" type="GLfixed"/>
|
|
<param name="z" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="SampleCoveragexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="value" type="GLclampx"/>
|
|
<param name="invert" type="GLboolean"/>
|
|
</function>
|
|
|
|
<function name="ScalexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="x" type="GLfixed"/>
|
|
<param name="y" type="GLfixed"/>
|
|
<param name="z" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="TexEnvxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="TexEnvxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="TexParameterxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="TranslatexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="x" type="GLfixed"/>
|
|
<param name="y" type="GLfixed"/>
|
|
<param name="z" type="GLfixed"/>
|
|
</function>
|
|
|
|
<!-- OpenGL ES 1.1 -->
|
|
<function name="ClipPlanexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="plane" type="GLenum"/>
|
|
<param name="equation" type="const GLfixed *" count="4"/>
|
|
</function>
|
|
|
|
<function name="GetClipPlanexOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="plane" type="GLenum"/>
|
|
<param name="equation" type="GLfixed *" output="true" count="4"/>
|
|
</function>
|
|
|
|
<function name="GetFixedvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="GLfixed *" output="true" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="GetLightxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="light" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="GLfixed *" output="true" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="GetMaterialxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="face" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="GLfixed *" output="true" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="GetTexEnvxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="GLfixed *" output="true" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="GetTexParameterxvOES" offset="assign"
|
|
static_dispatch="false" es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="GLfixed *" output="true" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="PointParameterxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLfixed"/>
|
|
</function>
|
|
|
|
<function name="PointParameterxvOES" offset="assign"
|
|
static_dispatch="false" es1="1.0">
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *"/>
|
|
</function>
|
|
|
|
<function name="TexParameterxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="target" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
|
|
<!-- texgen -->
|
|
<function name="GetTexGenxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="coord" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="GLfixed *" output="true" variable_param="pname"/>
|
|
</function>
|
|
|
|
<function name="TexGenxOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="coord" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="param" type="GLint"/>
|
|
</function>
|
|
|
|
<function name="TexGenxvOES" offset="assign" static_dispatch="false"
|
|
es1="1.0">
|
|
<param name="coord" type="GLenum"/>
|
|
<param name="pname" type="GLenum"/>
|
|
<param name="params" type="const GLfixed *" variable_param="pname"/>
|
|
</function>
|
|
</category>
|
|
|
|
</OpenGLAPI>
|