mesa: Standardize names of OpenGL functions.
[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" static_dispatch="false"
22 es1="1.0" desktop="false" offset="assign">
23 <param name="func" type="GLenum"/>
24 <param name="ref" type="GLclampx"/>
25 </function>
26
27 <function name="ClearColorx" static_dispatch="false"
28 es1="1.0" desktop="false" offset="assign">
29 <param name="red" type="GLclampx"/>
30 <param name="green" type="GLclampx"/>
31 <param name="blue" type="GLclampx"/>
32 <param name="alpha" type="GLclampx"/>
33 </function>
34
35 <function name="ClearDepthx" static_dispatch="false"
36 es1="1.0" desktop="false" offset="assign">
37 <param name="depth" type="GLclampx"/>
38 </function>
39
40 <function name="Color4x" static_dispatch="false"
41 es1="1.0" desktop="false" offset="assign">
42 <param name="red" type="GLfixed"/>
43 <param name="green" type="GLfixed"/>
44 <param name="blue" type="GLfixed"/>
45 <param name="alpha" type="GLfixed"/>
46 </function>
47
48 <function name="DepthRangex" static_dispatch="false"
49 es1="1.0" desktop="false" offset="assign">
50 <param name="zNear" type="GLclampx"/>
51 <param name="zFar" type="GLclampx"/>
52 </function>
53
54 <function name="Fogx" static_dispatch="false" es1="1.0"
55 desktop="false" offset="assign">
56 <param name="pname" type="GLenum"/>
57 <param name="param" type="GLfixed"/>
58 </function>
59
60 <function name="Fogxv" static_dispatch="false" es1="1.0"
61 desktop="false" offset="assign">
62 <param name="pname" type="GLenum"/>
63 <param name="params" type="const GLfixed *" variable_param="pname"/>
64 </function>
65
66 <function name="Frustumx" static_dispatch="false"
67 es1="1.0" desktop="false" offset="assign">
68 <param name="left" type="GLfixed"/>
69 <param name="right" type="GLfixed"/>
70 <param name="bottom" type="GLfixed"/>
71 <param name="top" type="GLfixed"/>
72 <param name="zNear" type="GLfixed"/>
73 <param name="zFar" type="GLfixed"/>
74 </function>
75
76 <function name="LightModelx" static_dispatch="false"
77 es1="1.0" desktop="false" offset="assign">
78 <param name="pname" type="GLenum"/>
79 <param name="param" type="GLfixed"/>
80 </function>
81
82 <function name="LightModelxv"
83 static_dispatch="false" es1="1.0" desktop="false" offset="assign">
84 <param name="pname" type="GLenum"/>
85 <param name="params" type="const GLfixed *" variable_param="pname"/>
86 </function>
87
88 <function name="Lightx" static_dispatch="false"
89 es1="1.0" desktop="false" offset="assign">
90 <param name="light" type="GLenum"/>
91 <param name="pname" type="GLenum"/>
92 <param name="param" type="GLfixed"/>
93 </function>
94
95 <function name="Lightxv" static_dispatch="false"
96 es1="1.0" desktop="false" offset="assign">
97 <param name="light" type="GLenum"/>
98 <param name="pname" type="GLenum"/>
99 <param name="params" type="const GLfixed *" variable_param="pname"/>
100 </function>
101
102 <function name="LineWidthx" static_dispatch="false"
103 es1="1.0" desktop="false" offset="assign">
104 <param name="width" type="GLfixed"/>
105 </function>
106
107 <function name="LoadMatrixx" static_dispatch="false"
108 es1="1.0" desktop="false" offset="assign">
109 <param name="m" type="const GLfixed *" count="16"/>
110 </function>
111
112 <function name="Materialx" static_dispatch="false"
113 es1="1.0" desktop="false" offset="assign">
114 <param name="face" type="GLenum"/>
115 <param name="pname" type="GLenum"/>
116 <param name="param" type="GLfixed"/>
117 </function>
118
119 <function name="Materialxv" static_dispatch="false"
120 es1="1.0" desktop="false" offset="assign">
121 <param name="face" type="GLenum"/>
122 <param name="pname" type="GLenum"/>
123 <param name="params" type="const GLfixed *" variable_param="pname"/>
124 </function>
125
126 <function name="MultMatrixx" static_dispatch="false"
127 es1="1.0" desktop="false" offset="assign">
128 <param name="m" type="const GLfixed *" count="16"/>
129 </function>
130
131 <function name="MultiTexCoord4x"
132 static_dispatch="false" es1="1.0" desktop="false" offset="assign">
133 <param name="target" type="GLenum"/>
134 <param name="s" type="GLfixed"/>
135 <param name="t" type="GLfixed"/>
136 <param name="r" type="GLfixed"/>
137 <param name="q" type="GLfixed"/>
138 </function>
139
140 <function name="Normal3x" static_dispatch="false"
141 es1="1.0" desktop="false" offset="assign">
142 <param name="nx" type="GLfixed"/>
143 <param name="ny" type="GLfixed"/>
144 <param name="nz" type="GLfixed"/>
145 </function>
146
147 <function name="Orthox" static_dispatch="false"
148 es1="1.0" desktop="false" offset="assign">
149 <param name="left" type="GLfixed"/>
150 <param name="right" type="GLfixed"/>
151 <param name="bottom" type="GLfixed"/>
152 <param name="top" type="GLfixed"/>
153 <param name="zNear" type="GLfixed"/>
154 <param name="zFar" type="GLfixed"/>
155 </function>
156
157 <function name="PointSizex" static_dispatch="false"
158 es1="1.0" desktop="false" offset="assign">
159 <param name="size" type="GLfixed"/>
160 </function>
161
162 <function name="PolygonOffsetx"
163 static_dispatch="false" es1="1.0" desktop="false" offset="assign">
164 <param name="factor" type="GLfixed"/>
165 <param name="units" type="GLfixed"/>
166 </function>
167
168 <function name="Rotatex" static_dispatch="false"
169 es1="1.0" desktop="false" offset="assign">
170 <param name="angle" type="GLfixed"/>
171 <param name="x" type="GLfixed"/>
172 <param name="y" type="GLfixed"/>
173 <param name="z" type="GLfixed"/>
174 </function>
175
176 <function name="SampleCoveragex"
177 static_dispatch="false" es1="1.0" desktop="false" offset="assign">
178 <param name="value" type="GLclampx"/>
179 <param name="invert" type="GLboolean"/>
180 </function>
181
182 <function name="Scalex" static_dispatch="false"
183 es1="1.0" desktop="false" offset="assign">
184 <param name="x" type="GLfixed"/>
185 <param name="y" type="GLfixed"/>
186 <param name="z" type="GLfixed"/>
187 </function>
188
189 <function name="TexEnvx" static_dispatch="false"
190 es1="1.0" desktop="false" offset="assign">
191 <param name="target" type="GLenum"/>
192 <param name="pname" type="GLenum"/>
193 <param name="param" type="GLfixed"/>
194 </function>
195
196 <function name="TexEnvxv" static_dispatch="false"
197 es1="1.0" desktop="false" offset="assign">
198 <param name="target" type="GLenum"/>
199 <param name="pname" type="GLenum"/>
200 <param name="params" type="const GLfixed *" variable_param="pname"/>
201 </function>
202
203 <function name="TexParameterx"
204 static_dispatch="false" es1="1.0" desktop="false" offset="assign">
205 <param name="target" type="GLenum"/>
206 <param name="pname" type="GLenum"/>
207 <param name="param" type="GLfixed"/>
208 </function>
209
210 <function name="Translatex" static_dispatch="false"
211 es1="1.0" desktop="false" offset="assign">
212 <param name="x" type="GLfixed"/>
213 <param name="y" type="GLfixed"/>
214 <param name="z" type="GLfixed"/>
215 </function>
216
217 <!-- from GL_OES_single_precision -->
218 <function name="Frustumf" static_dispatch="false"
219 es1="1.0" desktop="false" offset="assign">
220 <param name="left" type="GLfloat"/>
221 <param name="right" type="GLfloat"/>
222 <param name="bottom" type="GLfloat"/>
223 <param name="top" type="GLfloat"/>
224 <param name="zNear" type="GLfloat"/>
225 <param name="zFar" type="GLfloat"/>
226 </function>
227
228 <function name="Orthof" static_dispatch="false"
229 es1="1.0" desktop="false" offset="assign">
230 <param name="left" type="GLfloat"/>
231 <param name="right" type="GLfloat"/>
232 <param name="bottom" type="GLfloat"/>
233 <param name="top" type="GLfloat"/>
234 <param name="zNear" type="GLfloat"/>
235 <param name="zFar" type="GLfloat"/>
236 </function>
237 </category>
238
239 <category name="es1.1">
240 <!-- from GL_OES_fixed_point -->
241 <function name="ClipPlanex" static_dispatch="false"
242 es1="1.1" desktop="false" offset="assign">
243 <param name="plane" type="GLenum"/>
244 <param name="equation" type="const GLfixed *" count="4"/>
245 </function>
246
247 <function name="GetClipPlanex"
248 static_dispatch="false" es1="1.1" offset="assign">
249 <param name="plane" type="GLenum"/>
250 <param name="equation" type="GLfixed *" output="true" count="4"/>
251 </function>
252
253 <function name="GetFixedv" static_dispatch="false"
254 es1="1.1" desktop="false" offset="assign">
255 <param name="pname" type="GLenum"/>
256 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
257 </function>
258
259 <function name="GetLightxv" static_dispatch="false"
260 es1="1.1" desktop="false" offset="assign">
261 <param name="light" type="GLenum"/>
262 <param name="pname" type="GLenum"/>
263 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
264 </function>
265
266 <function name="GetMaterialxv"
267 static_dispatch="false" es1="1.1" desktop="false" offset="assign">
268 <param name="face" type="GLenum"/>
269 <param name="pname" type="GLenum"/>
270 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
271 </function>
272
273 <function name="GetTexEnvxv" static_dispatch="false"
274 es1="1.1" desktop="false" offset="assign">
275 <param name="target" type="GLenum"/>
276 <param name="pname" type="GLenum"/>
277 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
278 </function>
279
280 <function name="GetTexParameterxv"
281 static_dispatch="false" es1="1.1" desktop="false" offset="assign">
282 <param name="target" type="GLenum"/>
283 <param name="pname" type="GLenum"/>
284 <param name="params" type="GLfixed *" output="true" variable_param="pname"/>
285 </function>
286
287 <function name="PointParameterx"
288 static_dispatch="false" es1="1.1" desktop="false" offset="assign">
289 <param name="pname" type="GLenum"/>
290 <param name="param" type="GLfixed"/>
291 </function>
292
293 <function name="PointParameterxv"
294 static_dispatch="false" es1="1.1" desktop="false" offset="assign">
295 <param name="pname" type="GLenum"/>
296 <param name="params" type="const GLfixed *"/>
297 </function>
298
299 <function name="TexParameterxv"
300 static_dispatch="false" es1="1.1" desktop="false" offset="assign">
301 <param name="target" type="GLenum"/>
302 <param name="pname" type="GLenum"/>
303 <param name="params" type="const GLfixed *" variable_param="pname"/>
304 </function>
305
306 <!-- from GL_OES_single_precision -->
307 <function name="ClipPlanef" static_dispatch="false"
308 es1="1.1" desktop="false" offset="assign">
309 <param name="plane" type="GLenum"/>
310 <param name="equation" type="const GLfloat *" count="4"/>
311 </function>
312
313 <function name="GetClipPlanef"
314 static_dispatch="false" es1="1.1" offset="assign">
315 <param name="plane" type="GLenum"/>
316 <param name="equation" type="GLfloat *" output="true" count="4"/>
317 </function>
318 </category>
319
320 <category name="es2.0">
321 <!-- enums missing from GL_ARB_framebuffer_object and GL_EXT_framebuffer_object -->
322 <enum name="FRAMEBUFFER_INCOMPLETE_DIMENSIONS" value="0x8CD9"/>
323 <enum name="RGB565" value="0x8D62"/>
324 </category>
325
326 <xi:include href="es_EXT.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
327
328 </OpenGLAPI>