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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 'arguments': 'GLenum condition, GLbitfield flags', }, | 671 'arguments': 'GLenum condition, GLbitfield flags', }, |
672 { 'return_type': 'void', | 672 { 'return_type': 'void', |
673 'names': ['glDeleteSync'], | 673 'names': ['glDeleteSync'], |
674 'arguments': 'GLsync sync', }, | 674 'arguments': 'GLsync sync', }, |
675 { 'return_type': 'void', | 675 { 'return_type': 'void', |
676 'names': ['glGetSynciv'], | 676 'names': ['glGetSynciv'], |
677 'arguments': | 677 'arguments': |
678 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' | 678 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' |
679 'GLint* values', }, | 679 'GLint* values', }, |
680 { 'return_type': 'void', | 680 { 'return_type': 'void', |
| 681 'names': ['glClientWaitSync'], |
| 682 'arguments': |
| 683 'GLsync sync, GLbitfield flags, GLuint64 timeout', }, |
| 684 { 'return_type': 'void', |
681 'names': ['glDrawArraysInstancedANGLE', 'glDrawArraysInstancedARB'], | 685 'names': ['glDrawArraysInstancedANGLE', 'glDrawArraysInstancedARB'], |
682 'arguments': 'GLenum mode, GLint first, GLsizei count, GLsizei primcount', }, | 686 'arguments': 'GLenum mode, GLint first, GLsizei count, GLsizei primcount', }, |
683 { 'return_type': 'void', | 687 { 'return_type': 'void', |
684 'names': ['glDrawElementsInstancedANGLE', 'glDrawElementsInstancedARB'], | 688 'names': ['glDrawElementsInstancedANGLE', 'glDrawElementsInstancedARB'], |
685 'arguments': | 689 'arguments': |
686 'GLenum mode, GLsizei count, GLenum type, const void* indices, ' | 690 'GLenum mode, GLsizei count, GLenum type, const void* indices, ' |
687 'GLsizei primcount', }, | 691 'GLsizei primcount', }, |
688 { 'return_type': 'void', | 692 { 'return_type': 'void', |
689 'names': ['glVertexAttribDivisorANGLE', 'glVertexAttribDivisorARB'], | 693 'names': ['glVertexAttribDivisorANGLE', 'glVertexAttribDivisorARB'], |
690 'arguments': | 694 'arguments': |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1803 header_file.close() | 1807 header_file.close() |
1804 | 1808 |
1805 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1809 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1806 GenerateMockSource(source_file, GL_FUNCTIONS) | 1810 GenerateMockSource(source_file, GL_FUNCTIONS) |
1807 source_file.close() | 1811 source_file.close() |
1808 return 0 | 1812 return 0 |
1809 | 1813 |
1810 | 1814 |
1811 if __name__ == '__main__': | 1815 if __name__ == '__main__': |
1812 sys.exit(main(sys.argv[1:])) | 1816 sys.exit(main(sys.argv[1:])) |
OLD | NEW |