b59ef62de64b353b610f942ec9c9aae99884ab74
2 <!DOCTYPE OpenGLAPI SYSTEM
"../gen/gl_API.dtd">
4 <!-- OpenGL and OpenGL ES 2.x APIs -->
8 <xi:include href=
"base1_API.xml" xmlns:
xi=
"http://www.w3.org/2001/XInclude"/>
10 <!-- base subset of OpenGL 2.0 -->
11 <category name=
"base2.0">
12 <enum name=
"BLEND_EQUATION_RGB" count=
"1" value=
"0x8009"> <!-- same as BLEND_EQUATION -->
13 <size name=
"Get" mode=
"get"/>
15 <enum name=
"VERTEX_ATTRIB_ARRAY_ENABLED" count=
"1" value=
"0x8622">
16 <size name=
"GetVertexAttribdv" mode=
"get"/>
17 <size name=
"GetVertexAttribfv" mode=
"get"/>
18 <size name=
"GetVertexAttribiv" mode=
"get"/>
20 <enum name=
"VERTEX_ATTRIB_ARRAY_SIZE" count=
"1" value=
"0x8623">
21 <size name=
"GetVertexAttribdv" mode=
"get"/>
22 <size name=
"GetVertexAttribfv" mode=
"get"/>
23 <size name=
"GetVertexAttribiv" mode=
"get"/>
25 <enum name=
"VERTEX_ATTRIB_ARRAY_STRIDE" count=
"1" value=
"0x8624">
26 <size name=
"GetVertexAttribdv" mode=
"get"/>
27 <size name=
"GetVertexAttribfv" mode=
"get"/>
28 <size name=
"GetVertexAttribiv" mode=
"get"/>
30 <enum name=
"VERTEX_ATTRIB_ARRAY_TYPE" count=
"1" value=
"0x8625">
31 <size name=
"GetVertexAttribdv" mode=
"get"/>
32 <size name=
"GetVertexAttribfv" mode=
"get"/>
33 <size name=
"GetVertexAttribiv" mode=
"get"/>
35 <enum name=
"CURRENT_VERTEX_ATTRIB" count=
"1" value=
"0x8626">
36 <size name=
"GetVertexAttribdv" mode=
"get"/>
37 <size name=
"GetVertexAttribfv" mode=
"get"/>
38 <size name=
"GetVertexAttribiv" mode=
"get"/>
40 <enum name=
"VERTEX_ATTRIB_ARRAY_POINTER" value=
"0x8645"/>
41 <enum name=
"STENCIL_BACK_FUNC" count=
"1" value=
"0x8800">
42 <size name=
"Get" mode=
"get"/>
44 <enum name=
"STENCIL_BACK_FAIL" count=
"1" value=
"0x8801">
45 <size name=
"Get" mode=
"get"/>
47 <enum name=
"STENCIL_BACK_PASS_DEPTH_FAIL" count=
"1" value=
"0x8802">
48 <size name=
"Get" mode=
"get"/>
50 <enum name=
"STENCIL_BACK_PASS_DEPTH_PASS" count=
"1" value=
"0x8803">
51 <size name=
"Get" mode=
"get"/>
53 <enum name=
"BLEND_EQUATION_ALPHA" count=
"1" value=
"0x883D">
54 <size name=
"Get" mode=
"get"/>
56 <enum name=
"MAX_VERTEX_ATTRIBS" count=
"1" value=
"0x8869">
57 <size name=
"Get" mode=
"get"/>
59 <enum name=
"VERTEX_ATTRIB_ARRAY_NORMALIZED" value=
"0x886A"/>
60 <enum name=
"MAX_TEXTURE_IMAGE_UNITS" count=
"1" value=
"0x8872">
61 <size name=
"Get" mode=
"get"/>
63 <enum name=
"FRAGMENT_SHADER" value=
"0x8B30"/>
64 <enum name=
"VERTEX_SHADER" value=
"0x8B31"/>
65 <enum name=
"MAX_VERTEX_TEXTURE_IMAGE_UNITS" value=
"0x8B4C"/>
66 <enum name=
"MAX_COMBINED_TEXTURE_IMAGE_UNITS" value=
"0x8B4D"/>
67 <enum name=
"SHADER_TYPE" value=
"0x8B4F"/>
68 <enum name=
"FLOAT_VEC2" value=
"0x8B50"/>
69 <enum name=
"FLOAT_VEC3" value=
"0x8B51"/>
70 <enum name=
"FLOAT_VEC4" value=
"0x8B52"/>
71 <enum name=
"INT_VEC2" value=
"0x8B53"/>
72 <enum name=
"INT_VEC3" value=
"0x8B54"/>
73 <enum name=
"INT_VEC4" value=
"0x8B55"/>
74 <enum name=
"BOOL" value=
"0x8B56"/>
75 <enum name=
"BOOL_VEC2" value=
"0x8B57"/>
76 <enum name=
"BOOL_VEC3" value=
"0x8B58"/>
77 <enum name=
"BOOL_VEC4" value=
"0x8B59"/>
78 <enum name=
"FLOAT_MAT2" value=
"0x8B5A"/>
79 <enum name=
"FLOAT_MAT3" value=
"0x8B5B"/>
80 <enum name=
"FLOAT_MAT4" value=
"0x8B5C"/>
81 <enum name=
"SAMPLER_2D" value=
"0x8B5E"/>
82 <enum name=
"SAMPLER_CUBE" value=
"0x8B60"/>
83 <enum name=
"DELETE_STATUS" value=
"0x8B80"/>
84 <enum name=
"COMPILE_STATUS" value=
"0x8B81"/>
85 <enum name=
"LINK_STATUS" value=
"0x8B82"/>
86 <enum name=
"VALIDATE_STATUS" value=
"0x8B83"/>
87 <enum name=
"INFO_LOG_LENGTH" value=
"0x8B84"/>
88 <enum name=
"ATTACHED_SHADERS" value=
"0x8B85"/>
89 <enum name=
"ACTIVE_UNIFORMS" value=
"0x8B86"/>
90 <enum name=
"ACTIVE_UNIFORM_MAX_LENGTH" value=
"0x8B87"/>
91 <enum name=
"SHADER_SOURCE_LENGTH" value=
"0x8B88"/>
92 <enum name=
"ACTIVE_ATTRIBUTES" value=
"0x8B89"/>
93 <enum name=
"ACTIVE_ATTRIBUTE_MAX_LENGTH" value=
"0x8B8A"/>
94 <enum name=
"SHADING_LANGUAGE_VERSION" value=
"0x8B8C"/>
95 <enum name=
"CURRENT_PROGRAM" value=
"0x8B8D"/>
96 <enum name=
"STENCIL_BACK_REF" value=
"0x8CA3"/>
97 <enum name=
"STENCIL_BACK_VALUE_MASK" value=
"0x8CA4"/>
98 <enum name=
"STENCIL_BACK_WRITEMASK" value=
"0x8CA5"/>
100 <type name=
"char" size=
"1" glx_name=
"CARD8"/>
102 <function name=
"AttachShader" offset=
"assign">
103 <param name=
"program" type=
"GLuint"/>
104 <param name=
"shader" type=
"GLuint"/>
108 <function name=
"BindAttribLocation" offset=
"assign">
109 <param name=
"program" type=
"GLuint"/>
110 <param name=
"index" type=
"GLuint"/>
111 <param name=
"name" type=
"const GLchar *"/>
115 <function name=
"BlendEquationSeparate" offset=
"assign">
116 <param name=
"modeRGB" type=
"GLenum"/>
117 <param name=
"modeA" type=
"GLenum"/>
121 <function name=
"CompileShader" offset=
"assign">
122 <param name=
"shader" type=
"GLuint"/>
126 <function name=
"CreateProgram" offset=
"assign">
127 <return type=
"GLuint"/>
131 <function name=
"CreateShader" offset=
"assign">
132 <param name=
"type" type=
"GLenum"/>
133 <return type=
"GLuint"/>
137 <function name=
"DeleteProgram" offset=
"assign">
138 <param name=
"program" type=
"GLuint"/>
142 <function name=
"DeleteShader" offset=
"assign">
143 <param name=
"program" type=
"GLuint"/>
147 <function name=
"DetachShader" offset=
"assign">
148 <param name=
"program" type=
"GLuint"/>
149 <param name=
"shader" type=
"GLuint"/>
153 <function name=
"DisableVertexAttribArray" offset=
"assign">
154 <param name=
"index" type=
"GLuint"/>
158 <function name=
"EnableVertexAttribArray" offset=
"assign">
159 <param name=
"index" type=
"GLuint"/>
163 <function name=
"GetActiveAttrib" offset=
"assign">
164 <param name=
"program" type=
"GLuint"/>
165 <param name=
"index" type=
"GLuint"/>
166 <param name=
"bufSize" type=
"GLsizei "/>
167 <param name=
"length" type=
"GLsizei *" output=
"true"/>
168 <param name=
"size" type=
"GLint *" output=
"true"/>
169 <param name=
"type" type=
"GLenum *" output=
"true"/>
170 <param name=
"name" type=
"GLchar *" output=
"true"/>
174 <function name=
"GetActiveUniform" offset=
"assign">
175 <param name=
"program" type=
"GLuint"/>
176 <param name=
"index" type=
"GLuint"/>
177 <param name=
"bufSize" type=
"GLsizei"/>
178 <param name=
"length" type=
"GLsizei *" output=
"true"/>
179 <param name=
"size" type=
"GLint *" output=
"true"/>
180 <param name=
"type" type=
"GLenum *" output=
"true"/>
181 <param name=
"name" type=
"GLchar *" output=
"true"/>
185 <function name=
"GetAttachedShaders" offset=
"assign">
186 <param name=
"program" type=
"GLuint"/>
187 <param name=
"maxCount" type=
"GLsizei"/>
188 <param name=
"count" type=
"GLsizei *" output=
"true"/>
189 <param name=
"obj" type=
"GLuint *" output=
"true"/>
193 <function name=
"GetAttribLocation" offset=
"assign">
194 <param name=
"program" type=
"GLuint"/>
195 <param name=
"name" type=
"const GLchar *"/>
196 <return type=
"GLint"/>
200 <function name=
"GetProgramiv" offset=
"assign">
201 <param name=
"program" type=
"GLuint"/>
202 <param name=
"pname" type=
"GLenum"/>
203 <param name=
"params" type=
"GLint *"/>
207 <function name=
"GetProgramInfoLog" offset=
"assign">
208 <param name=
"program" type=
"GLuint"/>
209 <param name=
"bufSize" type=
"GLsizei"/>
210 <param name=
"length" type=
"GLsizei *"/>
211 <param name=
"infoLog" type=
"GLchar *"/>
215 <function name=
"GetShaderiv" offset=
"assign">
216 <param name=
"shader" type=
"GLuint"/>
217 <param name=
"pname" type=
"GLenum"/>
218 <param name=
"params" type=
"GLint *"/>
222 <function name=
"GetShaderInfoLog" offset=
"assign">
223 <param name=
"shader" type=
"GLuint"/>
224 <param name=
"bufSize" type=
"GLsizei"/>
225 <param name=
"length" type=
"GLsizei *"/>
226 <param name=
"infoLog" type=
"GLchar *"/>
230 <function name=
"GetShaderSource" offset=
"assign">
231 <param name=
"shader" type=
"GLuint"/>
232 <param name=
"bufSize" type=
"GLsizei"/>
233 <param name=
"length" type=
"GLsizei *" output=
"true"/>
234 <param name=
"source" type=
"GLchar *" output=
"true"/>
238 <function name=
"GetUniformfv" offset=
"assign">
239 <param name=
"program" type=
"GLuint"/>
240 <param name=
"location" type=
"GLint"/>
241 <param name=
"params" type=
"GLfloat *" output=
"true"/>
245 <function name=
"GetUniformiv" offset=
"assign">
246 <param name=
"program" type=
"GLuint"/>
247 <param name=
"location" type=
"GLint"/>
248 <param name=
"params" type=
"GLint *"/>
252 <function name=
"GetUniformLocation" offset=
"assign">
253 <param name=
"program" type=
"GLuint"/>
254 <param name=
"name" type=
"const GLchar *"/>
255 <return type=
"GLint"/>
259 <function name=
"GetVertexAttribfv" offset=
"assign">
260 <param name=
"index" type=
"GLuint"/>
261 <param name=
"pname" type=
"GLenum"/>
262 <param name=
"params" type=
"GLfloat *" output=
"true" variable_param=
"pname"/>
266 <function name=
"GetVertexAttribiv" offset=
"assign">
267 <param name=
"index" type=
"GLuint"/>
268 <param name=
"pname" type=
"GLenum"/>
269 <param name=
"params" type=
"GLint *" output=
"true" variable_param=
"pname"/>
273 <function name=
"GetVertexAttribPointerv" offset=
"assign">
274 <param name=
"index" type=
"GLuint"/>
275 <param name=
"pname" type=
"GLenum"/>
276 <param name=
"pointer" type=
"GLvoid **" output=
"true"/>
280 <function name=
"IsProgram" offset=
"assign">
281 <param name=
"program" type=
"GLuint"/>
282 <return type=
"GLboolean"/>
286 <function name=
"IsShader" offset=
"assign">
287 <param name=
"shader" type=
"GLuint"/>
288 <return type=
"GLboolean"/>
292 <function name=
"LinkProgram" offset=
"assign">
293 <param name=
"program" type=
"GLuint"/>
297 <function name=
"ShaderSource" offset=
"assign">
298 <param name=
"shader" type=
"GLuint"/>
299 <param name=
"count" type=
"GLsizei"/>
300 <param name=
"string" type=
"const GLchar **"/>
301 <param name=
"length" type=
"const GLint *"/>
305 <function name=
"StencilFuncSeparate" offset=
"assign">
306 <param name=
"face" type=
"GLenum"/>
307 <param name=
"func" type=
"GLenum"/>
308 <param name=
"ref" type=
"GLint"/>
309 <param name=
"mask" type=
"GLuint"/>
313 <function name=
"StencilOpSeparate" offset=
"assign">
314 <param name=
"face" type=
"GLenum"/>
315 <param name=
"sfail" type=
"GLenum"/>
316 <param name=
"zfail" type=
"GLenum"/>
317 <param name=
"zpass" type=
"GLenum"/>
321 <function name=
"StencilMaskSeparate" offset=
"assign">
322 <param name=
"face" type=
"GLenum"/>
323 <param name=
"mask" type=
"GLuint"/>
327 <function name=
"Uniform1f" offset=
"assign">
328 <param name=
"location" type=
"GLint"/>
329 <param name=
"v0" type=
"GLfloat"/>
333 <function name=
"Uniform1fv" offset=
"assign">
334 <param name=
"location" type=
"GLint"/>
335 <param name=
"count" type=
"GLsizei"/>
336 <param name=
"value" type=
"const GLfloat *"/>
340 <function name=
"Uniform1i" offset=
"assign">
341 <param name=
"location" type=
"GLint"/>
342 <param name=
"v0" type=
"GLint"/>
346 <function name=
"Uniform1iv" offset=
"assign">
347 <param name=
"location" type=
"GLint"/>
348 <param name=
"count" type=
"GLsizei"/>
349 <param name=
"value" type=
"const GLint *"/>
353 <function name=
"Uniform2f" offset=
"assign">
354 <param name=
"location" type=
"GLint"/>
355 <param name=
"v0" type=
"GLfloat"/>
356 <param name=
"v1" type=
"GLfloat"/>
360 <function name=
"Uniform2fv" offset=
"assign">
361 <param name=
"location" type=
"GLint"/>
362 <param name=
"count" type=
"GLsizei"/>
363 <param name=
"value" type=
"const GLfloat *"/>
367 <function name=
"Uniform2i" offset=
"assign">
368 <param name=
"location" type=
"GLint"/>
369 <param name=
"v0" type=
"GLint"/>
370 <param name=
"v1" type=
"GLint"/>
374 <function name=
"Uniform2iv" offset=
"assign">
375 <param name=
"location" type=
"GLint"/>
376 <param name=
"count" type=
"GLsizei"/>
377 <param name=
"value" type=
"const GLint *"/>
381 <function name=
"Uniform3f" offset=
"assign">
382 <param name=
"location" type=
"GLint"/>
383 <param name=
"v0" type=
"GLfloat"/>
384 <param name=
"v1" type=
"GLfloat"/>
385 <param name=
"v2" type=
"GLfloat"/>
389 <function name=
"Uniform3fv" offset=
"assign">
390 <param name=
"location" type=
"GLint"/>
391 <param name=
"count" type=
"GLsizei"/>
392 <param name=
"value" type=
"const GLfloat *"/>
396 <function name=
"Uniform3i" offset=
"assign">
397 <param name=
"location" type=
"GLint"/>
398 <param name=
"v0" type=
"GLint"/>
399 <param name=
"v1" type=
"GLint"/>
400 <param name=
"v2" type=
"GLint"/>
404 <function name=
"Uniform3iv" offset=
"assign">
405 <param name=
"location" type=
"GLint"/>
406 <param name=
"count" type=
"GLsizei"/>
407 <param name=
"value" type=
"const GLint *"/>
411 <function name=
"Uniform4f" offset=
"assign">
412 <param name=
"location" type=
"GLint"/>
413 <param name=
"v0" type=
"GLfloat"/>
414 <param name=
"v1" type=
"GLfloat"/>
415 <param name=
"v2" type=
"GLfloat"/>
416 <param name=
"v3" type=
"GLfloat"/>
420 <function name=
"Uniform4fv" offset=
"assign">
421 <param name=
"location" type=
"GLint"/>
422 <param name=
"count" type=
"GLsizei"/>
423 <param name=
"value" type=
"const GLfloat *"/>
427 <function name=
"Uniform4i" offset=
"assign">
428 <param name=
"location" type=
"GLint"/>
429 <param name=
"v0" type=
"GLint"/>
430 <param name=
"v1" type=
"GLint"/>
431 <param name=
"v2" type=
"GLint"/>
432 <param name=
"v3" type=
"GLint"/>
436 <function name=
"Uniform4iv" offset=
"assign">
437 <param name=
"location" type=
"GLint"/>
438 <param name=
"count" type=
"GLsizei"/>
439 <param name=
"value" type=
"const GLint *"/>
443 <function name=
"UniformMatrix2fv" offset=
"assign">
444 <param name=
"location" type=
"GLint"/>
445 <param name=
"count" type=
"GLsizei"/>
446 <param name=
"transpose" type=
"GLboolean"/>
447 <param name=
"value" type=
"const GLfloat *"/>
451 <function name=
"UniformMatrix3fv" offset=
"assign">
452 <param name=
"location" type=
"GLint"/>
453 <param name=
"count" type=
"GLsizei"/>
454 <param name=
"transpose" type=
"GLboolean"/>
455 <param name=
"value" type=
"const GLfloat *"/>
459 <function name=
"UniformMatrix4fv" offset=
"assign">
460 <param name=
"location" type=
"GLint"/>
461 <param name=
"count" type=
"GLsizei"/>
462 <param name=
"transpose" type=
"GLboolean"/>
463 <param name=
"value" type=
"const GLfloat *"/>
467 <function name=
"UseProgram" offset=
"assign">
468 <param name=
"program" type=
"GLuint"/>
472 <function name=
"ValidateProgram" offset=
"assign">
473 <param name=
"program" type=
"GLuint"/>
477 <function name=
"VertexAttrib1f" offset=
"assign">
478 <param name=
"index" type=
"GLuint"/>
479 <param name=
"x" type=
"GLfloat"/>
482 <function name=
"VertexAttrib1fv" offset=
"assign">
483 <param name=
"index" type=
"GLuint"/>
484 <param name=
"v" type=
"const GLfloat *"/>
487 <function name=
"VertexAttrib2f" offset=
"assign">
488 <param name=
"index" type=
"GLuint"/>
489 <param name=
"x" type=
"GLfloat"/>
490 <param name=
"y" type=
"GLfloat"/>
493 <function name=
"VertexAttrib2fv" offset=
"assign">
494 <param name=
"index" type=
"GLuint"/>
495 <param name=
"v" type=
"const GLfloat *"/>
498 <function name=
"VertexAttrib3f" offset=
"assign">
499 <param name=
"index" type=
"GLuint"/>
500 <param name=
"x" type=
"GLfloat"/>
501 <param name=
"y" type=
"GLfloat"/>
502 <param name=
"z" type=
"GLfloat"/>
505 <function name=
"VertexAttrib3fv" offset=
"assign">
506 <param name=
"index" type=
"GLuint"/>
507 <param name=
"v" type=
"const GLfloat *"/>
510 <function name=
"VertexAttrib4f" offset=
"assign">
511 <param name=
"index" type=
"GLuint"/>
512 <param name=
"x" type=
"GLfloat"/>
513 <param name=
"y" type=
"GLfloat"/>
514 <param name=
"z" type=
"GLfloat"/>
515 <param name=
"w" type=
"GLfloat"/>
518 <function name=
"VertexAttrib4fv" offset=
"assign">
519 <param name=
"index" type=
"GLuint"/>
520 <param name=
"v" type=
"const GLfloat *"/>
523 <function name=
"VertexAttribPointer" offset=
"assign">
524 <param name=
"index" type=
"GLuint"/>
525 <param name=
"size" type=
"GLint"/>
526 <param name=
"type" type=
"GLenum"/>
527 <param name=
"normalized" type=
"GLboolean"/>
528 <param name=
"stride" type=
"GLsizei"/>
529 <param name=
"pointer" type=
"const GLvoid *"/>