glthread: sync in glFlush for multiple contexts
[mesa.git] / src / mapi / glapi / gen / gl_and_es_API.xml
1 <?xml version="1.0"?>
2 <!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
3
4 <!-- OpenGL + OpenGL ES -->
5
6 <OpenGLAPI>
7
8 <xi:include href="gl_API.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
9
10 <!-- these can be moved to gl_API.xml -->
11 <xi:include href="OES_fixed_point.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
12 <xi:include href="OES_single_precision.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
13
14 <category name="es1.0">
15 <!-- from GL_OES_fixed_point -->
16 <enum name="FIXED" value="0x140C"/>
17
18 <type name="fixed" size="4" />
19 <type name="clampx" size="4" />
20
21 <function name="AlphaFuncx" es1="1.0" desktop="false">
22 <param name="func" type="GLenum"/>
23 <param name="ref" type="GLclampx"/>
24 </function>
25
26 <function name="ClearColorx" es1="1.0" desktop="false">
27 <param name="red" type="GLclampx"/>
28 <param name="green" type="GLclampx"/>
29 <param name="blue" type="GLclampx"/>
30 <param name="alpha" type="GLclampx"/>
31 </function>
32
33 <function name="ClearDepthx" es1="1.0" desktop="false">
34 <param name="depth" type="GLclampx"/>
35 </function>
36
37 <function name="Color4x" es1="1.0" desktop="false">
38 <param name="red" type="GLfixed"/>
39 <param name="green" type="GLfixed"/>
40 <param name="blue" type="GLfixed"/>
41 <param name="alpha" type="GLfixed"/>
42 </function>
43
44 <function name="DepthRangex" es1="1.0" desktop="false">
45 <param name="zNear" type="GLclampx"/>
46 <param name="zFar" type="GLclampx"/>
47 </function>
48
49 <function name="Fogx" es1="1.0" desktop="false">
50 <param name="pname" type="GLenum"/>
51 <param name="param" type="GLfixed"/>
52 </function>
53
54 <function name="Fogxv" es1="1.0" desktop="false">
55 <param name="pname" type="GLenum"/>
56 <param name="params" type="const GLfixed *" variable_param="pname"
57 marshal_count="_mesa_fog_enum_to_count(pname)"/>
58 </function>
59
60 <function name="Frustumx" es1="1.0" desktop="false">
61 <param name="left" type="GLfixed"/>
62 <param name="right" type="GLfixed"/>
63 <param name="bottom" type="GLfixed"/>
64 <param name="top" type="GLfixed"/>
65 <param name="zNear" type="GLfixed"/>
66 <param name="zFar" type="GLfixed"/>
67 </function>
68
69 <function name="LightModelx" es1="1.0" desktop="false">
70 <param name="pname" type="GLenum"/>
71 <param name="param" type="GLfixed"/>
72 </function>
73
74 <function name="LightModelxv" es1="1.0" desktop="false">
75 <param name="pname" type="GLenum"/>
76 <param name="params" type="const GLfixed *" variable_param="pname"
77 marshal_count="_mesa_light_model_enum_to_count(pname)"/>
78 </function>
79
80 <function name="Lightx" es1="1.0" desktop="false">
81 <param name="light" type="GLenum"/>
82 <param name="pname" type="GLenum"/>
83 <param name="param" type="GLfixed"/>
84 </function>
85
86 <function name="Lightxv" es1="1.0" desktop="false">
87 <param name="light" type="GLenum"/>
88 <param name="pname" type="GLenum"/>
89 <param name="params" type="const GLfixed *" variable_param="pname"
90 marshal_count="_mesa_light_enum_to_count(pname)"/>
91 </function>
92
93 <function name="LineWidthx" es1="1.0" desktop="false">
94 <param name="width" type="GLfixed"/>
95 </function>
96
97 <function name="LoadMatrixx" es1="1.0" desktop="false">
98 <param name="m" type="const GLfixed *" count="16"/>
99 </function>
100
101 <function name="Materialx" es1="1.0" desktop="false">
102 <param name="face" type="GLenum"/>
103 <param name="pname" type="GLenum"/>
104 <param name="param" type="GLfixed"/>
105 </function>
106
107 <function name="Materialxv" es1="1.0" desktop="false">
108 <param name="face" type="GLenum"/>
109 <param name="pname" type="GLenum"/>
110 <param name="params" type="const GLfixed *" variable_param="pname"
111 marshal_count="_mesa_material_enum_to_count(pname)"/>
112 </function>
113
114 <function name="MultMatrixx" es1="1.0" desktop="false">
115 <param name="m" type="const GLfixed *" count="16"/>
116 </function>
117
118 <function name="MultiTexCoord4x" es1="1.0" desktop="false">
119 <param name="target" type="GLenum"/>
120 <param name="s" type="GLfixed"/>
121 <param name="t" type="GLfixed"/>
122 <param name="r" type="GLfixed"/>
123 <param name="q" type="GLfixed"/>
124 </function>
125
126 <function name="Normal3x" es1="1.0" desktop="false">
127 <param name="nx" type="GLfixed"/>
128 <param name="ny" type="GLfixed"/>
129 <param name="nz" type="GLfixed"/>
130 </function>
131
132 <function name="Orthox" es1="1.0" desktop="false">
133 <param name="left" type="GLfixed"/>
134 <param name="right" type="GLfixed"/>
135 <param name="bottom" type="GLfixed"/>
136 <param name="top" type="GLfixed"/>
137 <param name="zNear" type="GLfixed"/>
138 <param name="zFar" type="GLfixed"/>
139 </function>
140
141 <function name="PointSizex" es1="1.0" desktop="false">
142 <param name="size" type="GLfixed"/>
143 </function>
144
145 <function name="PolygonOffsetx" es1="1.0" desktop="false">
146 <param name="factor" type="GLfixed"/>
147 <param name="units" type="GLfixed"/>
148 </function>
149
150 <function name="Rotatex" es1="1.0" desktop="false">
151 <param name="angle" type="GLfixed"/>
152 <param name="x" type="GLfixed"/>
153 <param name="y" type="GLfixed"/>
154 <param name="z" type="GLfixed"/>
155 </function>
156
157 <function name="SampleCoveragex" es1="1.0" desktop="false">
158 <param name="value" type="GLclampx"/>
159 <param name="invert" type="GLboolean"/>
160 </function>
161
162 <function name="Scalex" es1="1.0" desktop="false">
163 <param name="x" type="GLfixed"/>
164 <param name="y" type="GLfixed"/>
165 <param name="z" type="GLfixed"/>
166 </function>
167
168 <function name="TexEnvx" es1="1.0" desktop="false">
169 <param name="target" type="GLenum"/>
170 <param name="pname" type="GLenum"/>
171 <param name="param" type="GLfixed"/>
172 </function>
173
174 <function name="TexEnvxv" es1="1.0" desktop="false">
175 <param name="target" type="GLenum"/>
176 <param name="pname" type="GLenum"/>
177 <param name="params" type="const GLfixed *" variable_param="pname"
178 marshal_count="_mesa_texenv_enum_to_count(pname)"/>
179 </function>
180
181 <function name="TexParameterx" es1="1.0" desktop="false">
182 <param name="target" type="GLenum"/>
183 <param name="pname" type="GLenum"/>
184 <param name="param" type="GLfixed"/>
185 </function>
186
187 <function name="Translatex" es1="1.0" desktop="false">
188 <param name="x" type="GLfixed"/>
189 <param name="y" type="GLfixed"/>
190 <param name="z" type="GLfixed"/>
191 </function>
192
193 <!-- from GL_OES_single_precision -->
194 <function name="Frustumf" es1="1.0" desktop="false">
195 <param name="left" type="GLfloat"/>
196 <param name="right" type="GLfloat"/>
197 <param name="bottom" type="GLfloat"/>
198 <param name="top" type="GLfloat"/>
199 <param name="zNear" type="GLfloat"/>
200 <param name="zFar" type="GLfloat"/>
201 </function>
202
203 <function name="Orthof" es1="1.0" desktop="false">
204 <param name="left" type="GLfloat"/>
205 <param name="right" type="GLfloat"/>
206 <param name="bottom" type="GLfloat"/>
207 <param name="top" type="GLfloat"/>
208 <param name="zNear" type="GLfloat"/>
209 <param name="zFar" type="GLfloat"/>
210 </function>
211 </category>
212
213 <category name="es1.1">
214 <!-- from GL_OES_fixed_point -->
215 <function name="ClipPlanex" es1="1.1" desktop="false">
216 <param name="plane" type="GLenum"/>
217 <param name="equation" type="const GLfixed *" count="4"/>
218 </function>
219
220 <function name="GetClipPlanex" es1="1.1">
221 <param name="plane" type="GLenum"/>
222 <param name="equation" type="GLfixed *" output="true" count="4"/>
223 </function>
224
225 <function name="GetFixedv" es1="1.1" desktop="false">
226 <param name="pname" type="GLenum"/>
227 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
228 </function>
229
230 <function name="GetLightxv" es1="1.1" desktop="false">
231 <param name="light" type="GLenum"/>
232 <param name="pname" type="GLenum"/>
233 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
234 </function>
235
236 <function name="GetMaterialxv" es1="1.1" desktop="false">
237 <param name="face" type="GLenum"/>
238 <param name="pname" type="GLenum"/>
239 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
240 </function>
241
242 <function name="GetTexEnvxv" es1="1.1" desktop="false">
243 <param name="target" type="GLenum"/>
244 <param name="pname" type="GLenum"/>
245 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
246 </function>
247
248 <function name="GetTexParameterxv" es1="1.1" desktop="false">
249 <param name="target" type="GLenum"/>
250 <param name="pname" type="GLenum"/>
251 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
252 </function>
253
254 <function name="PointParameterx" es1="1.1" desktop="false">
255 <param name="pname" type="GLenum"/>
256 <param name="param" type="GLfixed"/>
257 </function>
258
259 <function name="PointParameterxv" es1="1.1" desktop="false">
260 <param name="pname" type="GLenum"/>
261 <param name="params" type="const GLfixed *"
262 count="_mesa_point_param_enum_to_count(pname)"/>
263 </function>
264
265 <function name="TexParameterxv" es1="1.1" desktop="false">
266 <param name="target" type="GLenum"/>
267 <param name="pname" type="GLenum"/>
268 <param name="params" type="const GLfixed *" variable_param="pname"
269 marshal_count="_mesa_tex_param_enum_to_count(pname)"/>
270 </function>
271
272 <!-- from GL_OES_single_precision -->
273 <function name="ClipPlanef" es1="1.1" desktop="false">
274 <param name="plane" type="GLenum"/>
275 <param name="equation" type="const GLfloat *" count="4"/>
276 </function>
277
278 <function name="GetClipPlanef" es1="1.1">
279 <param name="plane" type="GLenum"/>
280 <param name="equation" type="GLfloat *" output="true" count="4"/>
281 </function>
282 </category>
283
284 <category name="es2.0">
285 <!-- enums missing from GL_ARB_framebuffer_object and GL_EXT_framebuffer_object -->
286 <enum name="FRAMEBUFFER_INCOMPLETE_DIMENSIONS" value="0x8CD9"/>
287 <enum name="RGB565" value="0x8D62"/>
288 </category>
289
290 <xi:include href="es_EXT.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
291
292 </OpenGLAPI>