| 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 optparse | 8 import optparse |
| 9 import os | 9 import os |
| 10 import collections | 10 import collections |
| (...skipping 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 'names': ['glGetShaderPrecisionFormat'], | 614 'names': ['glGetShaderPrecisionFormat'], |
| 615 'arguments': 'GLenum shadertype, GLenum precisiontype, ' | 615 'arguments': 'GLenum shadertype, GLenum precisiontype, ' |
| 616 'GLint* range, GLint* precision', }, | 616 'GLint* range, GLint* precision', }, |
| 617 { 'return_type': 'void', | 617 { 'return_type': 'void', |
| 618 'names': ['glGetShaderSource'], | 618 'names': ['glGetShaderSource'], |
| 619 'arguments': | 619 'arguments': |
| 620 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', }, | 620 'GLuint shader, GLsizei bufsize, GLsizei* length, char* source', }, |
| 621 { 'return_type': 'const GLubyte*', | 621 { 'return_type': 'const GLubyte*', |
| 622 'names': ['glGetString'], | 622 'names': ['glGetString'], |
| 623 'arguments': 'GLenum name', }, | 623 'arguments': 'GLenum name', }, |
| 624 { 'return_type': 'const GLubyte*', |
| 625 'names': ['glGetStringi'], |
| 626 'arguments': 'GLenum name, GLuint index', }, |
| 624 { 'return_type': 'void', | 627 { 'return_type': 'void', |
| 625 'versions': [{ 'name': 'glGetSynciv', | 628 'versions': [{ 'name': 'glGetSynciv', |
| 626 'extensions': ['GL_ARB_sync'] }], | 629 'extensions': ['GL_ARB_sync'] }], |
| 627 'arguments': | 630 'arguments': |
| 628 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' | 631 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' |
| 629 'GLint* values', }, | 632 'GLint* values', }, |
| 630 { 'return_type': 'void', | 633 { 'return_type': 'void', |
| 631 'names': ['glGetTexLevelParameterfv'], | 634 'names': ['glGetTexLevelParameterfv'], |
| 632 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', }, | 635 'arguments': 'GLenum target, GLint level, GLenum pname, GLfloat* params', }, |
| 633 { 'return_type': 'void', | 636 { 'return_type': 'void', |
| (...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2550 'gl_enums_implementation_autogen.h'), | 2553 'gl_enums_implementation_autogen.h'), |
| 2551 'wb') | 2554 'wb') |
| 2552 GenerateEnumUtils(header_file, enum_header_filenames) | 2555 GenerateEnumUtils(header_file, enum_header_filenames) |
| 2553 header_file.close() | 2556 header_file.close() |
| 2554 ClangFormat(header_file.name) | 2557 ClangFormat(header_file.name) |
| 2555 return 0 | 2558 return 0 |
| 2556 | 2559 |
| 2557 | 2560 |
| 2558 if __name__ == '__main__': | 2561 if __name__ == '__main__': |
| 2559 sys.exit(main(sys.argv[1:])) | 2562 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |