mesa/es: Enable GL_EXT_map_buffer_range
[mesa.git] / src / mapi / glapi / gen / gles_api.py
1 #!/usr/bin/env python
2
3 # Mesa 3-D graphics library
4 # Version: 7.12
5 #
6 # Copyright (C) 2011 LunarG Inc.
7 #
8 # Permission is hereby granted, free of charge, to any person obtaining a
9 # copy of this software and associated documentation files (the "Software"),
10 # to deal in the Software without restriction, including without limitation
11 # the rights to use, copy, modify, merge, publish, distribute, sublicense,
12 # and/or sell copies of the Software, and to permit persons to whom the
13 # Software is furnished to do so, subject to the following conditions:
14 #
15 # The above copyright notice and this permission notice shall be included
16 # in all copies or substantial portions of the Software.
17 #
18 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21 # THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
24 # DEALINGS IN THE SOFTWARE.
25 #
26 # Authors:
27 # Chia-I Wu <olv@lunarg.com>
28
29 # These info should be part of GLAPI XML. Until that is possible, scripts have
30 # to use tables here to filter gl_api.
31
32 es1_core = (
33 # OpenGL ES 1.1
34 'ActiveTexture',
35 'AlphaFunc',
36 'AlphaFuncx',
37 'BindBuffer',
38 'BindTexture',
39 'BlendFunc',
40 'BufferData',
41 'BufferSubData',
42 'Clear',
43 'ClearColor',
44 'ClearColorx',
45 'ClearDepthf',
46 'ClearDepthx',
47 'ClearStencil',
48 'ClientActiveTexture',
49 'ClipPlanef',
50 'ClipPlanex',
51 'Color4f',
52 'Color4ub',
53 'Color4x',
54 'ColorMask',
55 'ColorPointer',
56 'CompressedTexImage2D',
57 'CompressedTexSubImage2D',
58 'CopyTexImage2D',
59 'CopyTexSubImage2D',
60 'CullFace',
61 'DeleteBuffers',
62 'DeleteTextures',
63 'DepthFunc',
64 'DepthMask',
65 'DepthRangef',
66 'DepthRangex',
67 'Disable',
68 'DisableClientState',
69 'DrawArrays',
70 'DrawElements',
71 'Enable',
72 'EnableClientState',
73 'Finish',
74 'Flush',
75 'Fogf',
76 'Fogfv',
77 'Fogx',
78 'Fogxv',
79 'FrontFace',
80 'Frustumf',
81 'Frustumx',
82 'GenBuffers',
83 'GenTextures',
84 'GetBooleanv',
85 'GetBufferParameteriv',
86 'GetClipPlanef',
87 'GetClipPlanex',
88 'GetError',
89 'GetFixedv',
90 'GetFloatv',
91 'GetIntegerv',
92 'GetLightfv',
93 'GetLightxv',
94 'GetMaterialfv',
95 'GetMaterialxv',
96 'GetPointerv',
97 'GetString',
98 'GetTexEnvfv',
99 'GetTexEnviv',
100 'GetTexEnvxv',
101 'GetTexParameterfv',
102 'GetTexParameteriv',
103 'GetTexParameterxv',
104 'Hint',
105 'IsBuffer',
106 'IsEnabled',
107 'IsTexture',
108 'Lightf',
109 'Lightfv',
110 'LightModelf',
111 'LightModelfv',
112 'LightModelx',
113 'LightModelxv',
114 'Lightx',
115 'Lightxv',
116 'LineWidth',
117 'LineWidthx',
118 'LoadIdentity',
119 'LoadMatrixf',
120 'LoadMatrixx',
121 'LogicOp',
122 'Materialf',
123 'Materialfv',
124 'Materialx',
125 'Materialxv',
126 'MatrixMode',
127 'MultiTexCoord4f',
128 'MultiTexCoord4x',
129 'MultMatrixf',
130 'MultMatrixx',
131 'Normal3f',
132 'Normal3x',
133 'NormalPointer',
134 'Orthof',
135 'Orthox',
136 'PixelStorei',
137 'PointParameterf',
138 'PointParameterfv',
139 'PointParameterx',
140 'PointParameterxv',
141 'PointSize',
142 'PointSizex',
143 'PolygonOffset',
144 'PolygonOffsetx',
145 'PopMatrix',
146 'PushMatrix',
147 'ReadPixels',
148 'Rotatef',
149 'Rotatex',
150 'SampleCoverage',
151 'SampleCoveragex',
152 'Scalef',
153 'Scalex',
154 'Scissor',
155 'ShadeModel',
156 'StencilFunc',
157 'StencilMask',
158 'StencilOp',
159 'TexCoordPointer',
160 'TexEnvf',
161 'TexEnvfv',
162 'TexEnvi',
163 'TexEnviv',
164 'TexEnvx',
165 'TexEnvxv',
166 'TexImage2D',
167 'TexParameterf',
168 'TexParameterfv',
169 'TexParameteri',
170 'TexParameteriv',
171 'TexParameterx',
172 'TexParameterxv',
173 'TexSubImage2D',
174 'Translatef',
175 'Translatex',
176 'VertexPointer',
177 'Viewport',
178 )
179
180 es1_api = es1_core + (
181 # GL_OES_EGL_image
182 'EGLImageTargetTexture2DOES',
183 'EGLImageTargetRenderbufferStorageOES',
184 # GL_OES_mapbuffer
185 'GetBufferPointervOES',
186 'MapBufferOES',
187 'UnmapBufferOES',
188 # GL_EXT_map_buffer_range
189 'MapBufferRangeEXT',
190 'FlushMappedBufferRangeEXT',
191 # GL_EXT_multi_draw_arrays
192 'MultiDrawArraysEXT',
193 'MultiDrawElementsEXT',
194 # GL_OES_blend_equation_separate
195 'BlendEquationSeparateOES',
196 # GL_OES_blend_func_separate
197 'BlendFuncSeparateOES',
198 # GL_OES_blend_subtract
199 'BlendEquationOES',
200 # GL_OES_draw_texture
201 'DrawTexiOES',
202 'DrawTexivOES',
203 'DrawTexfOES',
204 'DrawTexfvOES',
205 'DrawTexsOES',
206 'DrawTexsvOES',
207 'DrawTexxOES',
208 'DrawTexxvOES',
209 # GL_OES_fixed_point
210 'AlphaFuncxOES',
211 'ClearColorxOES',
212 'ClearDepthxOES',
213 'Color4xOES',
214 'DepthRangexOES',
215 'FogxOES',
216 'FogxvOES',
217 'FrustumxOES',
218 'LightModelxOES',
219 'LightModelxvOES',
220 'LightxOES',
221 'LightxvOES',
222 'LineWidthxOES',
223 'LoadMatrixxOES',
224 'MaterialxOES',
225 'MaterialxvOES',
226 'MultiTexCoord4xOES',
227 'MultMatrixxOES',
228 'Normal3xOES',
229 'OrthoxOES',
230 'PointSizexOES',
231 'PolygonOffsetxOES',
232 'RotatexOES',
233 'SampleCoveragexOES',
234 'ScalexOES',
235 'TexEnvxOES',
236 'TexEnvxvOES',
237 'TexParameterxOES',
238 'TranslatexOES',
239 'ClipPlanexOES',
240 'GetClipPlanexOES',
241 'GetFixedvOES',
242 'GetLightxvOES',
243 'GetMaterialxvOES',
244 'GetTexEnvxvOES',
245 'GetTexParameterxvOES',
246 'PointParameterxOES',
247 'PointParameterxvOES',
248 'TexParameterxvOES',
249 # GL_OES_framebuffer_object
250 'BindFramebufferOES',
251 'BindRenderbufferOES',
252 'CheckFramebufferStatusOES',
253 'DeleteFramebuffersOES',
254 'DeleteRenderbuffersOES',
255 'FramebufferRenderbufferOES',
256 'FramebufferTexture2DOES',
257 'GenerateMipmapOES',
258 'GenFramebuffersOES',
259 'GenRenderbuffersOES',
260 'GetFramebufferAttachmentParameterivOES',
261 'GetRenderbufferParameterivOES',
262 'IsFramebufferOES',
263 'IsRenderbufferOES',
264 'RenderbufferStorageOES',
265 # GL_OES_point_size_array
266 'PointSizePointerOES',
267 # GL_OES_query_matrix
268 'QueryMatrixxOES',
269 # GL_OES_single_precision
270 'ClearDepthfOES',
271 'DepthRangefOES',
272 'FrustumfOES',
273 'OrthofOES',
274 'ClipPlanefOES',
275 'GetClipPlanefOES',
276 # GL_OES_texture_cube_map
277 'GetTexGenfvOES',
278 'GetTexGenivOES',
279 'GetTexGenxvOES',
280 'TexGenfOES',
281 'TexGenfvOES',
282 'TexGeniOES',
283 'TexGenivOES',
284 'TexGenxOES',
285 'TexGenxvOES',
286 )
287
288 es2_core = (
289 # OpenGL ES 2.0
290 "ActiveTexture",
291 "AttachShader",
292 "BindAttribLocation",
293 "BindBuffer",
294 "BindFramebuffer",
295 "BindRenderbuffer",
296 "BindTexture",
297 "BlendColor",
298 "BlendEquation",
299 "BlendEquationSeparate",
300 "BlendFunc",
301 "BlendFuncSeparate",
302 "BufferData",
303 "BufferSubData",
304 "CheckFramebufferStatus",
305 "Clear",
306 "ClearColor",
307 "ClearDepthf",
308 "ClearStencil",
309 "ColorMask",
310 "CompileShader",
311 "CompressedTexImage2D",
312 "CompressedTexSubImage2D",
313 "CopyTexImage2D",
314 "CopyTexSubImage2D",
315 "CreateProgram",
316 "CreateShader",
317 "CullFace",
318 "DeleteBuffers",
319 "DeleteFramebuffers",
320 "DeleteProgram",
321 "DeleteRenderbuffers",
322 "DeleteShader",
323 "DeleteTextures",
324 "DepthFunc",
325 "DepthMask",
326 "DepthRangef",
327 "DetachShader",
328 "Disable",
329 "DisableVertexAttribArray",
330 "DrawArrays",
331 "DrawElements",
332 "Enable",
333 "EnableVertexAttribArray",
334 "Finish",
335 "Flush",
336 "FramebufferRenderbuffer",
337 "FramebufferTexture2D",
338 "FrontFace",
339 "GenBuffers",
340 "GenerateMipmap",
341 "GenFramebuffers",
342 "GenRenderbuffers",
343 "GenTextures",
344 "GetActiveAttrib",
345 "GetActiveUniform",
346 "GetAttachedShaders",
347 "GetAttribLocation",
348 "GetBooleanv",
349 "GetBufferParameteriv",
350 "GetError",
351 "GetFloatv",
352 "GetFramebufferAttachmentParameteriv",
353 "GetIntegerv",
354 "GetProgramInfoLog",
355 "GetProgramiv",
356 "GetRenderbufferParameteriv",
357 "GetShaderInfoLog",
358 "GetShaderiv",
359 "GetShaderPrecisionFormat",
360 "GetShaderSource",
361 "GetString",
362 "GetTexParameterfv",
363 "GetTexParameteriv",
364 "GetUniformfv",
365 "GetUniformiv",
366 "GetUniformLocation",
367 "GetVertexAttribfv",
368 "GetVertexAttribiv",
369 "GetVertexAttribPointerv",
370 "Hint",
371 "IsBuffer",
372 "IsEnabled",
373 "IsFramebuffer",
374 "IsProgram",
375 "IsRenderbuffer",
376 "IsShader",
377 "IsTexture",
378 "LineWidth",
379 "LinkProgram",
380 "PixelStorei",
381 "PolygonOffset",
382 "ReadPixels",
383 "ReleaseShaderCompiler",
384 "RenderbufferStorage",
385 "SampleCoverage",
386 "Scissor",
387 "ShaderBinary",
388 "ShaderSource",
389 "StencilFunc",
390 "StencilFuncSeparate",
391 "StencilMask",
392 "StencilMaskSeparate",
393 "StencilOp",
394 "StencilOpSeparate",
395 "TexImage2D",
396 "TexParameterf",
397 "TexParameterfv",
398 "TexParameteri",
399 "TexParameteriv",
400 "TexSubImage2D",
401 "Uniform1f",
402 "Uniform1fv",
403 "Uniform1i",
404 "Uniform1iv",
405 "Uniform2f",
406 "Uniform2fv",
407 "Uniform2i",
408 "Uniform2iv",
409 "Uniform3f",
410 "Uniform3fv",
411 "Uniform3i",
412 "Uniform3iv",
413 "Uniform4f",
414 "Uniform4fv",
415 "Uniform4i",
416 "Uniform4iv",
417 "UniformMatrix2fv",
418 "UniformMatrix3fv",
419 "UniformMatrix4fv",
420 "UseProgram",
421 "ValidateProgram",
422 "VertexAttrib1f",
423 "VertexAttrib1fv",
424 "VertexAttrib2f",
425 "VertexAttrib2fv",
426 "VertexAttrib3f",
427 "VertexAttrib3fv",
428 "VertexAttrib4f",
429 "VertexAttrib4fv",
430 "VertexAttribPointer",
431 "Viewport",
432 )
433
434 es2_api = es2_core + (
435 # GL_OES_EGL_image
436 'EGLImageTargetTexture2DOES',
437 'EGLImageTargetRenderbufferStorageOES',
438 # GL_OES_mapbuffer
439 'GetBufferPointervOES',
440 'MapBufferOES',
441 'UnmapBufferOES',
442 # GL_EXT_map_buffer_range
443 'MapBufferRangeEXT',
444 'FlushMappedBufferRangeEXT',
445 # GL_EXT_multi_draw_arrays
446 'MultiDrawArraysEXT',
447 'MultiDrawElementsEXT',
448 # GL_OES_texture_3D
449 'CompressedTexImage3DOES',
450 'CompressedTexSubImage3DOES',
451 'CopyTexSubImage3DOES',
452 'FramebufferTexture3DOES',
453 'TexImage3DOES',
454 'TexSubImage3DOES',
455 # GL_OES_get_program_binary
456 'GetProgramBinaryOES',
457 'ProgramBinaryOES',
458 # GL_OES_vertex_array_object
459 'BindVertexArrayOES',
460 'DeleteVertexArraysOES',
461 'GenVertexArraysOES',
462 'IsVertexArrayOES',
463 # GL_NV_draw_buffers
464 'DrawBuffersNV',
465 # GL_NV_read_buffer
466 'ReadBufferNV',
467 )