Chromium Code Reviews| 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 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 825 'arguments': 'GLuint array' }, | 825 'arguments': 'GLuint array' }, |
| 826 { 'return_type': 'void', | 826 { 'return_type': 'void', |
| 827 'known_as': 'glDiscardFramebufferEXT', | 827 'known_as': 'glDiscardFramebufferEXT', |
| 828 'versions': [{ 'name': 'glInvalidateFramebuffer', | 828 'versions': [{ 'name': 'glInvalidateFramebuffer', |
| 829 'gl_versions': ['es3'], | 829 'gl_versions': ['es3'], |
| 830 'extensions': [] }, | 830 'extensions': [] }, |
| 831 { 'name': 'glDiscardFramebufferEXT', | 831 { 'name': 'glDiscardFramebufferEXT', |
| 832 'gl_versions': ['es1', 'es2'] }], | 832 'gl_versions': ['es1', 'es2'] }], |
| 833 'arguments': 'GLenum target, GLsizei numAttachments, ' | 833 'arguments': 'GLenum target, GLsizei numAttachments, ' |
| 834 'const GLenum* attachments' }, | 834 'const GLenum* attachments' }, |
| 835 { 'return_type': 'void', | |
| 836 'names': ['glMatrixMode'], | |
| 837 'arguments': 'GLenum mode' }, | |
|
piman
2014/04/11 22:19:27
please tag on gl_versions 'gl2', 'gl3', 'gl4'
(sam
Kimmo Kinnunen
2014/04/15 16:16:58
Done.
Tagged as 'gl4'.
| |
| 838 { 'return_type': 'void', | |
| 839 'names': ['glLoadMatrixf'], | |
| 840 'arguments': 'const GLfloat* m' }, | |
| 841 { 'return_type': 'void', | |
| 842 'names': ['glLoadIdentity'], | |
| 843 'arguments': 'void' }, | |
| 835 ] | 844 ] |
| 836 | 845 |
| 837 OSMESA_FUNCTIONS = [ | 846 OSMESA_FUNCTIONS = [ |
| 838 { 'return_type': 'OSMesaContext', | 847 { 'return_type': 'OSMesaContext', |
| 839 'names': ['OSMesaCreateContext'], | 848 'names': ['OSMesaCreateContext'], |
| 840 'arguments': 'GLenum format, OSMesaContext sharelist', }, | 849 'arguments': 'GLenum format, OSMesaContext sharelist', }, |
| 841 { 'return_type': 'OSMesaContext', | 850 { 'return_type': 'OSMesaContext', |
| 842 'names': ['OSMesaCreateContextExt'], | 851 'names': ['OSMesaCreateContextExt'], |
| 843 'arguments': | 852 'arguments': |
| 844 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' | 853 'GLenum format, GLint depthBits, GLint stencilBits, GLint accumBits, ' |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2044 | 2053 |
| 2045 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2054 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
| 2046 'wb') | 2055 'wb') |
| 2047 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2056 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
| 2048 source_file.close() | 2057 source_file.close() |
| 2049 return 0 | 2058 return 0 |
| 2050 | 2059 |
| 2051 | 2060 |
| 2052 if __name__ == '__main__': | 2061 if __name__ == '__main__': |
| 2053 sys.exit(main(sys.argv[1:])) | 2062 sys.exit(main(sys.argv[1:])) |
| OLD | NEW |