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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 """, }, | 283 """, }, |
284 { 'return_type': 'void', | 284 { 'return_type': 'void', |
285 'names': ['glGetFloatv'], | 285 'names': ['glGetFloatv'], |
286 'arguments': 'GLenum pname, GLfloat* params', }, | 286 'arguments': 'GLenum pname, GLfloat* params', }, |
287 { 'return_type': 'void', | 287 { 'return_type': 'void', |
288 'names': ['glGetFramebufferAttachmentParameterivEXT', | 288 'names': ['glGetFramebufferAttachmentParameterivEXT', |
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 'glGetGraphicsResetStatusEXT'], |
294 'arguments': 'void', }, | 295 'arguments': 'void', }, |
295 { 'return_type': 'void', | 296 { 'return_type': 'void', |
296 'names': ['glGetIntegerv'], | 297 'names': ['glGetIntegerv'], |
297 'arguments': 'GLenum pname, GLint* params', }, | 298 'arguments': 'GLenum pname, GLint* params', }, |
298 { 'return_type': 'void', | 299 { 'return_type': 'void', |
299 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], | 300 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], |
300 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' | 301 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' |
301 'GLenum* binaryFormat, GLvoid* binary', | 302 'GLenum* binaryFormat, GLvoid* binary', |
302 'other_extensions': ['ARB_get_program_binary', | 303 'other_extensions': ['ARB_get_program_binary', |
303 'OES_get_program_binary'] }, | 304 'OES_get_program_binary'] }, |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1545 source_file.close() | 1546 source_file.close() |
1546 | 1547 |
1547 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1548 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1548 GenerateMockSource(source_file, GL_FUNCTIONS) | 1549 GenerateMockSource(source_file, GL_FUNCTIONS) |
1549 source_file.close() | 1550 source_file.close() |
1550 return 0 | 1551 return 0 |
1551 | 1552 |
1552 | 1553 |
1553 if __name__ == '__main__': | 1554 if __name__ == '__main__': |
1554 sys.exit(main(sys.argv[1:])) | 1555 sys.exit(main(sys.argv[1:])) |
OLD | NEW |