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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 { 'return_type': 'void', | 322 { 'return_type': 'void', |
323 'names': ['glGetFloatv'], | 323 'names': ['glGetFloatv'], |
324 'arguments': 'GLenum pname, GLfloat* params', }, | 324 'arguments': 'GLenum pname, GLfloat* params', }, |
325 { 'return_type': 'void', | 325 { 'return_type': 'void', |
326 'names': ['glGetFramebufferAttachmentParameterivEXT', | 326 'names': ['glGetFramebufferAttachmentParameterivEXT', |
327 'glGetFramebufferAttachmentParameteriv'], | 327 'glGetFramebufferAttachmentParameteriv'], |
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 'glGetGraphicsResetStatusKHR', |
| 333 'glGetGraphicsResetStatusEXT', |
| 334 'glGetGraphicsResetStatus'], |
333 'arguments': 'void', }, | 335 'arguments': 'void', }, |
334 { 'return_type': 'void', | 336 { 'return_type': 'void', |
335 'names': ['glGetIntegerv'], | 337 'names': ['glGetIntegerv'], |
336 'arguments': 'GLenum pname, GLint* params', }, | 338 'arguments': 'GLenum pname, GLint* params', }, |
337 { 'return_type': 'void', | 339 { 'return_type': 'void', |
338 'names': ['glGetInteger64v'], | 340 'names': ['glGetInteger64v'], |
339 'arguments': 'GLenum pname, GLint64* params', }, | 341 'arguments': 'GLenum pname, GLint64* params', }, |
340 { 'return_type': 'void', | 342 { 'return_type': 'void', |
341 'known_as': 'glGetProgramBinary', | 343 'known_as': 'glGetProgramBinary', |
342 'versions': [{ 'name': 'glGetProgramBinaryOES' }, | 344 'versions': [{ 'name': 'glGetProgramBinaryOES' }, |
(...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2087 | 2089 |
2088 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2090 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
2089 'wb') | 2091 'wb') |
2090 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2092 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
2091 source_file.close() | 2093 source_file.close() |
2092 return 0 | 2094 return 0 |
2093 | 2095 |
2094 | 2096 |
2095 if __name__ == '__main__': | 2097 if __name__ == '__main__': |
2096 sys.exit(main(sys.argv[1:])) | 2098 sys.exit(main(sys.argv[1:])) |
OLD | NEW |