| 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 { 'return_type': 'void', |
| 299 'names': ['glGetProgramiv'], | 303 'names': ['glGetProgramiv'], |
| 300 'arguments': 'GLuint program, GLenum pname, GLint* params', }, | 304 'arguments': 'GLuint program, GLenum pname, GLint* params', }, |
| 301 { 'return_type': 'void', | 305 { 'return_type': 'void', |
| 302 'names': ['glGetProgramInfoLog'], | 306 'names': ['glGetProgramInfoLog'], |
| 303 'arguments': | 307 'arguments': |
| 304 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', }, | 308 'GLuint program, GLsizei bufsize, GLsizei* length, char* infolog', }, |
| 305 { 'return_type': 'void', | 309 { 'return_type': 'void', |
| 306 'names': ['glGetQueryiv'], | 310 'names': ['glGetQueryiv'], |
| 307 'arguments': 'GLenum target, GLenum pname, GLint* params', }, | 311 'arguments': 'GLenum target, GLenum pname, GLint* params', }, |
| 308 { 'return_type': 'void', | 312 { 'return_type': 'void', |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 { 'return_type': 'void*', | 418 { 'return_type': 'void*', |
| 415 'names': ['glMapBuffer', 'glMapBufferOES'], | 419 'names': ['glMapBuffer', 'glMapBufferOES'], |
| 416 'arguments': 'GLenum target, GLenum access', }, | 420 'arguments': 'GLenum target, GLenum access', }, |
| 417 { 'return_type': 'void', | 421 { 'return_type': 'void', |
| 418 'names': ['glPixelStorei'], | 422 'names': ['glPixelStorei'], |
| 419 'arguments': 'GLenum pname, GLint param', }, | 423 'arguments': 'GLenum pname, GLint param', }, |
| 420 { 'return_type': 'void', | 424 { 'return_type': 'void', |
| 421 'names': ['glPolygonOffset'], | 425 'names': ['glPolygonOffset'], |
| 422 'arguments': 'GLfloat factor, GLfloat units', }, | 426 'arguments': 'GLfloat factor, GLfloat units', }, |
| 423 { 'return_type': 'void', | 427 { 'return_type': 'void', |
| 428 'names': ['glProgramBinary', 'glProgramBinaryOES'], |
| 429 'arguments': 'GLuint program, GLenum binaryFormat, ' |
| 430 'const GLvoid* binary, GLsizei length', }, |
| 431 { 'return_type': 'void', |
| 424 'names': ['glQueryCounter'], | 432 'names': ['glQueryCounter'], |
| 425 'arguments': 'GLuint id, GLenum target', }, | 433 'arguments': 'GLuint id, GLenum target', }, |
| 426 { 'return_type': 'void', | 434 { 'return_type': 'void', |
| 427 'names': ['glReadBuffer'], | 435 'names': ['glReadBuffer'], |
| 428 'arguments': 'GLenum src', }, | 436 'arguments': 'GLenum src', }, |
| 429 { 'return_type': 'void', | 437 { 'return_type': 'void', |
| 430 'names': ['glReadPixels'], | 438 'names': ['glReadPixels'], |
| 431 'arguments': | 439 'arguments': |
| 432 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' | 440 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' |
| 433 'GLenum type, void* pixels', }, | 441 'GLenum type, void* pixels', }, |
| (...skipping 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1526 source_file.close() | 1534 source_file.close() |
| 1527 | 1535 |
| 1528 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1536 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
| 1529 GenerateMockSource(source_file, GL_FUNCTIONS) | 1537 GenerateMockSource(source_file, GL_FUNCTIONS) |
| 1530 source_file.close() | 1538 source_file.close() |
| 1531 return 0 | 1539 return 0 |
| 1532 | 1540 |
| 1533 | 1541 |
| 1534 if __name__ == '__main__': | 1542 if __name__ == '__main__': |
| 1535 sys.exit(main(sys.argv[1:])) | 1543 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |