| 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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 { 'return_type': 'void', | 613 { 'return_type': 'void', |
| 614 'names': ['glTexParameterfv'], | 614 'names': ['glTexParameterfv'], |
| 615 'arguments': 'GLenum target, GLenum pname, const GLfloat* params', }, | 615 'arguments': 'GLenum target, GLenum pname, const GLfloat* params', }, |
| 616 { 'return_type': 'void', | 616 { 'return_type': 'void', |
| 617 'names': ['glTexParameteri'], | 617 'names': ['glTexParameteri'], |
| 618 'arguments': 'GLenum target, GLenum pname, GLint param', }, | 618 'arguments': 'GLenum target, GLenum pname, GLint param', }, |
| 619 { 'return_type': 'void', | 619 { 'return_type': 'void', |
| 620 'names': ['glTexParameteriv'], | 620 'names': ['glTexParameteriv'], |
| 621 'arguments': 'GLenum target, GLenum pname, const GLint* params', }, | 621 'arguments': 'GLenum target, GLenum pname, const GLint* params', }, |
| 622 { 'return_type': 'void', | 622 { 'return_type': 'void', |
| 623 'names': ['glTexStorage2DEXT'], | 623 'names': ['glTexStorage2DEXT', 'glTexStorage2D'], |
| 624 'arguments': 'GLenum target, GLsizei levels, GLenum internalformat, ' | 624 'arguments': 'GLenum target, GLsizei levels, GLenum internalformat, ' |
| 625 'GLsizei width, GLsizei height', }, | 625 'GLsizei width, GLsizei height', }, |
| 626 { 'return_type': 'void', | 626 { 'return_type': 'void', |
| 627 'names': ['glTexSubImage2D'], | 627 'names': ['glTexSubImage2D'], |
| 628 'arguments': | 628 'arguments': |
| 629 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' | 629 'GLenum target, GLint level, GLint xoffset, GLint yoffset, ' |
| 630 'GLsizei width, GLsizei height, GLenum format, GLenum type, ' | 630 'GLsizei width, GLsizei height, GLenum format, GLenum type, ' |
| 631 'const void* pixels', }, | 631 'const void* pixels', }, |
| 632 { 'return_type': 'void', | 632 { 'return_type': 'void', |
| 633 'names': ['glUniform1f'], | 633 'names': ['glUniform1f'], |
| (...skipping 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 | 2045 |
| 2046 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2046 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
| 2047 'wb') | 2047 'wb') |
| 2048 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2048 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
| 2049 source_file.close() | 2049 source_file.close() |
| 2050 return 0 | 2050 return 0 |
| 2051 | 2051 |
| 2052 | 2052 |
| 2053 if __name__ == '__main__': | 2053 if __name__ == '__main__': |
| 2054 sys.exit(main(sys.argv[1:])) | 2054 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |