| 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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 833 'arguments': 'GLuint array' }, | 833 'arguments': 'GLuint array' }, |
| 834 { 'return_type': 'void', | 834 { 'return_type': 'void', |
| 835 'known_as': 'glDiscardFramebufferEXT', | 835 'known_as': 'glDiscardFramebufferEXT', |
| 836 'versions': [{ 'name': 'glInvalidateFramebuffer', | 836 'versions': [{ 'name': 'glInvalidateFramebuffer', |
| 837 'gl_versions': ['es3'], | 837 'gl_versions': ['es3'], |
| 838 'extensions': [] }, | 838 'extensions': [] }, |
| 839 { 'name': 'glDiscardFramebufferEXT', | 839 { 'name': 'glDiscardFramebufferEXT', |
| 840 'gl_versions': ['es1', 'es2'] }], | 840 'gl_versions': ['es1', 'es2'] }], |
| 841 'arguments': 'GLenum target, GLsizei numAttachments, ' | 841 'arguments': 'GLenum target, GLsizei numAttachments, ' |
| 842 'const GLenum* attachments' }, | 842 'const GLenum* attachments' }, |
| 843 { 'return_type': 'void', |
| 844 'known_as': 'glMatrixLoadfEXT', |
| 845 'versions': [{ 'name': 'glMatrixLoadfEXT', |
| 846 'gl_versions': ['gl4'], |
| 847 'extensions': ['GL_EXT_direct_state_access'] }, |
| 848 { 'name': 'glMatrixLoadfEXT', |
| 849 'gl_versions': ['es3'], |
| 850 'extensions': ['GL_NV_path_rendering'] }], |
| 851 'arguments': 'GLenum matrixMode, const GLfloat* m' }, |
| 852 { 'return_type': 'void', |
| 853 'known_as': 'glMatrixLoadIdentityEXT', |
| 854 'versions': [{ 'name': 'glMatrixLoadIdentityEXT', |
| 855 'gl_versions': ['gl4'], |
| 856 'extensions': ['GL_EXT_direct_state_access'] }, |
| 857 { 'name': 'glMatrixLoadIdentityEXT', |
| 858 'gl_versions': ['es3'], |
| 859 'extensions': ['GL_NV_path_rendering'] }], |
| 860 'arguments': 'GLenum matrixMode' }, |
| 843 ] | 861 ] |
| 844 | 862 |
| 845 OSMESA_FUNCTIONS = [ | 863 OSMESA_FUNCTIONS = [ |
| 846 { 'return_type': 'OSMesaContext', | 864 { 'return_type': 'OSMesaContext', |
| 847 'names': ['OSMesaCreateContext'], | 865 'names': ['OSMesaCreateContext'], |
| 848 'arguments': 'GLenum format, OSMesaContext sharelist', }, | 866 'arguments': 'GLenum format, OSMesaContext sharelist', }, |
| 849 { 'return_type': 'OSMesaContext', | 867 { 'return_type': 'OSMesaContext', |
| 850 'names': ['OSMesaCreateContextExt'], | 868 'names': ['OSMesaCreateContextExt'], |
| 851 'arguments': | 869 'arguments': |
| 852 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' | 870 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2045 | 2063 |
| 2046 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2064 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
| 2047 'wb') | 2065 'wb') |
| 2048 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2066 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
| 2049 source_file.close() | 2067 source_file.close() |
| 2050 return 0 | 2068 return 0 |
| 2051 | 2069 |
| 2052 | 2070 |
| 2053 if __name__ == '__main__': | 2071 if __name__ == '__main__': |
| 2054 sys.exit(main(sys.argv[1:])) | 2072 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |