OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """code generator for GL/GLES extension wrangler.""" | 6 """code generator for GL/GLES extension wrangler.""" |
7 | 7 |
8 import os | 8 import os |
9 import collections | 9 import collections |
10 import re | 10 import re |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 'glGetFramebufferAttachmentParameteriv'], | 289 'glGetFramebufferAttachmentParameteriv'], |
290 'arguments': 'GLenum target, ' | 290 'arguments': 'GLenum target, ' |
291 'GLenum attachment, GLenum pname, GLint* params', }, | 291 'GLenum attachment, GLenum pname, GLint* params', }, |
292 { 'return_type': 'GLenum', | 292 { 'return_type': 'GLenum', |
293 'names': ['glGetGraphicsResetStatusARB'], | 293 'names': ['glGetGraphicsResetStatusARB'], |
294 'arguments': 'void', }, | 294 'arguments': 'void', }, |
295 { 'return_type': 'void', | 295 { 'return_type': 'void', |
296 'names': ['glGetIntegerv'], | 296 'names': ['glGetIntegerv'], |
297 'arguments': 'GLenum pname, GLint* params', }, | 297 'arguments': 'GLenum pname, GLint* params', }, |
298 { 'return_type': 'void', | 298 { 'return_type': 'void', |
| 299 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], |
| 300 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' |
| 301 'GLenum* binaryFormat, GLvoid* binary', |
| 302 'other_extensions': ['ARB_get_program_binary', |
| 303 'OES_get_program_binary'] }, |
| 304 { 'return_type': 'void', |
299 'names': ['glGetProgramiv'], | 305 'names': ['glGetProgramiv'], |
300 'arguments': 'GLuint program, GLenum pname, GLint* params', }, | 306 'arguments': 'GLuint program, GLenum pname, GLint* params', }, |
301 { 'return_type': 'void', | 307 { 'return_type': 'void', |
302 'names': ['glGetProgramInfoLog'], | 308 'names': ['glGetProgramInfoLog'], |
303 'arguments': | 309 'arguments': |
304 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', }, | 310 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', }, |
305 { 'return_type': 'void', | 311 { 'return_type': 'void', |
306 'names': ['glGetQueryiv'], | 312 'names': ['glGetQueryiv'], |
307 'arguments': 'GLenum target, GLenum pname, GLint* params', }, | 313 'arguments': 'GLenum target, GLenum pname, GLint* params', }, |
308 { 'return_type': 'void', | 314 { 'return_type': 'void', |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 { 'return_type': 'void', | 423 { 'return_type': 'void', |
418 'names': ['glPixelStorei'], | 424 'names': ['glPixelStorei'], |
419 'arguments': 'GLenum pname, GLint param', }, | 425 'arguments': 'GLenum pname, GLint param', }, |
420 { 'return_type': 'void', | 426 { 'return_type': 'void', |
421 'names': ['glPointParameteri'], | 427 'names': ['glPointParameteri'], |
422 'arguments': 'GLenum pname, GLint param', }, | 428 'arguments': 'GLenum pname, GLint param', }, |
423 { 'return_type': 'void', | 429 { 'return_type': 'void', |
424 'names': ['glPolygonOffset'], | 430 'names': ['glPolygonOffset'], |
425 'arguments': 'GLfloat factor, GLfloat units', }, | 431 'arguments': 'GLfloat factor, GLfloat units', }, |
426 { 'return_type': 'void', | 432 { 'return_type': 'void', |
| 433 'names': ['glProgramBinary', 'glProgramBinaryOES'], |
| 434 'arguments': 'GLuint program, GLenum binaryFormat, ' |
| 435 'const GLvoid* binary, GLsizei length', |
| 436 'other_extensions': ['ARB_get_program_binary', |
| 437 'OES_get_program_binary'] }, |
| 438 { 'return_type': 'void', |
| 439 'names': ['glProgramParameteri'], |
| 440 'arguments': 'GLuint program, GLenum pname, GLint value', |
| 441 'other_extensions': ['ARB_get_program_binary'] }, |
| 442 { 'return_type': 'void', |
427 'names': ['glQueryCounter'], | 443 'names': ['glQueryCounter'], |
428 'arguments': 'GLuint id, GLenum target', }, | 444 'arguments': 'GLuint id, GLenum target', }, |
429 { 'return_type': 'void', | 445 { 'return_type': 'void', |
430 'names': ['glReadBuffer'], | 446 'names': ['glReadBuffer'], |
431 'arguments': 'GLenum src', }, | 447 'arguments': 'GLenum src', }, |
432 { 'return_type': 'void', | 448 { 'return_type': 'void', |
433 'names': ['glReadPixels'], | 449 'names': ['glReadPixels'], |
434 'arguments': | 450 'arguments': |
435 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' | 451 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' |
436 'GLenum type, void* pixels', }, | 452 'GLenum type, void* pixels', }, |
(...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 source_file.close() | 1545 source_file.close() |
1530 | 1546 |
1531 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1547 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1532 GenerateMockSource(source_file, GL_FUNCTIONS) | 1548 GenerateMockSource(source_file, GL_FUNCTIONS) |
1533 source_file.close() | 1549 source_file.close() |
1534 return 0 | 1550 return 0 |
1535 | 1551 |
1536 | 1552 |
1537 if __name__ == '__main__': | 1553 if __name__ == '__main__': |
1538 sys.exit(main(sys.argv[1:])) | 1554 sys.exit(main(sys.argv[1:])) |
OLD | NEW |