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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 'arguments': 'GLenum target, ' | 328 'arguments': 'GLenum target, ' |
329 'GLenum attachment, GLenum pname, GLint* params', }, | 329 'GLenum attachment, GLenum pname, GLint* params', }, |
330 { 'return_type': 'GLenum', | 330 { 'return_type': 'GLenum', |
331 'names': ['glGetGraphicsResetStatusARB', | 331 'names': ['glGetGraphicsResetStatusARB', |
332 'glGetGraphicsResetStatusEXT'], | 332 'glGetGraphicsResetStatusEXT'], |
333 'arguments': 'void', }, | 333 'arguments': 'void', }, |
334 { 'return_type': 'void', | 334 { 'return_type': 'void', |
335 'names': ['glGetIntegerv'], | 335 'names': ['glGetIntegerv'], |
336 'arguments': 'GLenum pname, GLint* params', }, | 336 'arguments': 'GLenum pname, GLint* params', }, |
337 { 'return_type': 'void', | 337 { 'return_type': 'void', |
| 338 'names': ['glGetInteger64v'], |
| 339 'arguments': 'GLenum pname, GLint64* params', }, |
| 340 { 'return_type': 'void', |
338 'known_as': 'glGetProgramBinary', | 341 'known_as': 'glGetProgramBinary', |
339 'versions': [{ 'name': 'glGetProgramBinaryOES' }, | 342 'versions': [{ 'name': 'glGetProgramBinaryOES' }, |
340 { 'name': 'glGetProgramBinary', | 343 { 'name': 'glGetProgramBinary', |
341 'extensions': ['GL_ARB_get_program_binary'] }, | 344 'extensions': ['GL_ARB_get_program_binary'] }, |
342 { 'name': 'glGetProgramBinary' }], | 345 { 'name': 'glGetProgramBinary' }], |
343 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' | 346 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' |
344 'GLenum* binaryFormat, GLvoid* binary' }, | 347 'GLenum* binaryFormat, GLvoid* binary' }, |
345 { 'return_type': 'void', | 348 { 'return_type': 'void', |
346 'names': ['glGetProgramiv'], | 349 'names': ['glGetProgramiv'], |
347 'arguments': 'GLuint program, GLenum pname, GLint* params', }, | 350 'arguments': 'GLuint program, GLenum pname, GLint* params', }, |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2076 | 2079 |
2077 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
2078 'wb') | 2081 'wb') |
2079 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
2080 source_file.close() | 2083 source_file.close() |
2081 return 0 | 2084 return 0 |
2082 | 2085 |
2083 | 2086 |
2084 if __name__ == '__main__': | 2087 if __name__ == '__main__': |
2085 sys.exit(main(sys.argv[1:])) | 2088 sys.exit(main(sys.argv[1:])) |
OLD | NEW |