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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 'arguments': 'GLsync sync', }, | 748 'arguments': 'GLsync sync', }, |
749 { 'return_type': 'void', | 749 { 'return_type': 'void', |
750 'names': ['glGetSynciv'], | 750 'names': ['glGetSynciv'], |
751 'arguments': | 751 'arguments': |
752 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' | 752 'GLsync sync, GLenum pname, GLsizei bufSize, GLsizei* length,' |
753 'GLint* values', }, | 753 'GLint* values', }, |
754 { 'return_type': 'GLenum', | 754 { 'return_type': 'GLenum', |
755 'names': ['glClientWaitSync'], | 755 'names': ['glClientWaitSync'], |
756 'arguments': | 756 'arguments': |
757 'GLsync sync, GLbitfield flags, GLuint64 timeout', }, | 757 'GLsync sync, GLbitfield flags, GLuint64 timeout', }, |
| 758 { 'return_type': 'GLenum', |
| 759 'names': ['glWaitSync'], |
| 760 'arguments': |
| 761 'GLsync sync, GLbitfield flags, GLuint64 timeout', }, |
758 { 'return_type': 'void', | 762 { 'return_type': 'void', |
759 'known_as': 'glDrawArraysInstancedANGLE', | 763 'known_as': 'glDrawArraysInstancedANGLE', |
760 'names': ['glDrawArraysInstancedARB', 'glDrawArraysInstancedANGLE'], | 764 'names': ['glDrawArraysInstancedARB', 'glDrawArraysInstancedANGLE'], |
761 'arguments': 'GLenum mode, GLint first, GLsizei count, GLsizei primcount', }, | 765 'arguments': 'GLenum mode, GLint first, GLsizei count, GLsizei primcount', }, |
762 { 'return_type': 'void', | 766 { 'return_type': 'void', |
763 'known_as': 'glDrawElementsInstancedANGLE', | 767 'known_as': 'glDrawElementsInstancedANGLE', |
764 'names': ['glDrawElementsInstancedARB', 'glDrawElementsInstancedANGLE'], | 768 'names': ['glDrawElementsInstancedARB', 'glDrawElementsInstancedANGLE'], |
765 'arguments': | 769 'arguments': |
766 'GLenum mode, GLsizei count, GLenum type, const void* indices, ' | 770 'GLenum mode, GLsizei count, GLenum type, const void* indices, ' |
767 'GLsizei primcount', }, | 771 'GLsizei primcount', }, |
(...skipping 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2000 | 2004 |
2001 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2005 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
2002 'wb') | 2006 'wb') |
2003 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2007 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
2004 source_file.close() | 2008 source_file.close() |
2005 return 0 | 2009 return 0 |
2006 | 2010 |
2007 | 2011 |
2008 if __name__ == '__main__': | 2012 if __name__ == '__main__': |
2009 sys.exit(main(sys.argv[1:])) | 2013 sys.exit(main(sys.argv[1:])) |
OLD | NEW |