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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 'ARB_vertex_array_object'] }, | 740 'ARB_vertex_array_object'] }, |
741 { 'return_type': 'GLboolean', | 741 { 'return_type': 'GLboolean', |
742 'names': ['glIsVertexArrayOES', | 742 'names': ['glIsVertexArrayOES', |
743 'glIsVertexArrayAPPLE', | 743 'glIsVertexArrayAPPLE', |
744 'glIsVertexArray'], | 744 'glIsVertexArray'], |
745 'arguments': 'GLuint array', | 745 'arguments': 'GLuint array', |
746 'other_extensions': ['OES_vertex_array_object', | 746 'other_extensions': ['OES_vertex_array_object', |
747 'APPLE_vertex_array_object', | 747 'APPLE_vertex_array_object', |
748 'ARB_vertex_array_object'] }, | 748 'ARB_vertex_array_object'] }, |
749 { 'return_type': 'void', | 749 { 'return_type': 'void', |
750 'names': ['glDiscardFramebufferEXT'], | 750 'names': ['glDiscardFramebufferEXT', 'glInvalidateFramebuffer'], |
751 'arguments': 'GLenum target, GLsizei numAttachments, ' | 751 'arguments': 'GLenum target, GLsizei numAttachments, ' |
752 'const GLenum* attachments' }, | 752 'const GLenum* attachments' }, |
753 ] | 753 ] |
754 | 754 |
755 OSMESA_FUNCTIONS = [ | 755 OSMESA_FUNCTIONS = [ |
756 { 'return_type': 'OSMesaContext', | 756 { 'return_type': 'OSMesaContext', |
757 'names': ['OSMesaCreateContext'], | 757 'names': ['OSMesaCreateContext'], |
758 'arguments': 'GLenum format, OSMesaContext sharelist', }, | 758 'arguments': 'GLenum format, OSMesaContext sharelist', }, |
759 { 'return_type': 'OSMesaContext', | 759 { 'return_type': 'OSMesaContext', |
760 'names': ['OSMesaCreateContextExt'], | 760 'names': ['OSMesaCreateContextExt'], |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1828 header_file.close() | 1828 header_file.close() |
1829 | 1829 |
1830 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') | 1830 source_file = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') |
1831 GenerateMockSource(source_file, GL_FUNCTIONS) | 1831 GenerateMockSource(source_file, GL_FUNCTIONS) |
1832 source_file.close() | 1832 source_file.close() |
1833 return 0 | 1833 return 0 |
1834 | 1834 |
1835 | 1835 |
1836 if __name__ == '__main__': | 1836 if __name__ == '__main__': |
1837 sys.exit(main(sys.argv[1:])) | 1837 sys.exit(main(sys.argv[1:])) |
OLD | NEW |