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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 'arguments': 'void', }, | 294 'arguments': 'void', }, |
295 { 'return_type': 'GLenum', | |
296 'names': ['glGetGraphicsResetStatusEXT'], | |
apatrick_chromium
2012/07/26 22:12:38
...here, just like glGetFramebufferAttachmentParam
| |
297 'arguments': 'void', }, | |
295 { 'return_type': 'void', | 298 { 'return_type': 'void', |
296 'names': ['glGetIntegerv'], | 299 'names': ['glGetIntegerv'], |
297 'arguments': 'GLenum pname, GLint* params', }, | 300 'arguments': 'GLenum pname, GLint* params', }, |
298 { 'return_type': 'void', | 301 { 'return_type': 'void', |
299 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], | 302 'names': ['glGetProgramBinary', 'glGetProgramBinaryOES'], |
300 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' | 303 'arguments': 'GLuint program, GLsizei bufSize, GLsizei* length, ' |
301 'GLenum* binaryFormat, GLvoid* binary', | 304 'GLenum* binaryFormat, GLvoid* binary', |
302 'other_extensions': ['ARB_get_program_binary', | 305 'other_extensions': ['ARB_get_program_binary', |
303 'OES_get_program_binary'] }, | 306 'OES_get_program_binary'] }, |
304 { 'return_type': 'void', | 307 { 'return_type': 'void', |
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1545 source_file.close() | 1548 source_file.close() |
1546 | 1549 |
1547 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1550 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1548 GenerateMockSource(source_file, GL_FUNCTIONS) | 1551 GenerateMockSource(source_file, GL_FUNCTIONS) |
1549 source_file.close() | 1552 source_file.close() |
1550 return 0 | 1553 return 0 |
1551 | 1554 |
1552 | 1555 |
1553 if __name__ == '__main__': | 1556 if __name__ == '__main__': |
1554 sys.exit(main(sys.argv[1:])) | 1557 sys.exit(main(sys.argv[1:])) |
OLD | NEW |