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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 extension string is not modified. | 42 extension string is not modified. |
43 By default, the function gets its name from the first name in its names or | 43 By default, the function gets its name from the first name in its names or |
44 versions array. This can be overridden by supplying a 'known_as' key. | 44 versions array. This can be overridden by supplying a 'known_as' key. |
45 | 45 |
46 """ | 46 """ |
47 GL_FUNCTIONS = [ | 47 GL_FUNCTIONS = [ |
48 { 'return_type': 'void', | 48 { 'return_type': 'void', |
49 'names': ['glActiveTexture'], | 49 'names': ['glActiveTexture'], |
50 'arguments': 'GLenum texture', }, | 50 'arguments': 'GLenum texture', }, |
51 { 'return_type': 'void', | 51 { 'return_type': 'void', |
| 52 'known_as': 'glApplyFramebufferAttachmentCMAAINTEL', |
| 53 'versions': [{ 'name': 'glApplyFramebufferAttachmentCMAAINTEL', |
| 54 'extensions': ['GL_INTEL_framebuffer_CMAA'] }], |
| 55 'arguments': 'void', }, |
| 56 { 'return_type': 'void', |
52 'names': ['glAttachShader'], | 57 'names': ['glAttachShader'], |
53 'arguments': 'GLuint program, GLuint shader', }, | 58 'arguments': 'GLuint program, GLuint shader', }, |
54 { 'return_type': 'void', | 59 { 'return_type': 'void', |
55 'versions': [{ 'name': 'glBeginQuery' }, | 60 'versions': [{ 'name': 'glBeginQuery' }, |
56 { 'name': 'glBeginQueryARB' }, | 61 { 'name': 'glBeginQueryARB' }, |
57 { 'name': 'glBeginQueryEXT', | 62 { 'name': 'glBeginQueryEXT', |
58 'extensions': ['GL_EXT_occlusion_query_boolean'] }], | 63 'extensions': ['GL_EXT_occlusion_query_boolean'] }], |
59 'arguments': 'GLenum target, GLuint id', }, | 64 'arguments': 'GLenum target, GLuint id', }, |
60 { 'return_type': 'void', | 65 { 'return_type': 'void', |
61 'versions': [{ 'name': 'glBeginTransformFeedback' }], | 66 'versions': [{ 'name': 'glBeginTransformFeedback' }], |
(...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2679 'gl_enums_implementation_autogen.h'), | 2684 'gl_enums_implementation_autogen.h'), |
2680 'wb') | 2685 'wb') |
2681 GenerateEnumUtils(header_file, enum_header_filenames) | 2686 GenerateEnumUtils(header_file, enum_header_filenames) |
2682 header_file.close() | 2687 header_file.close() |
2683 ClangFormat(header_file.name) | 2688 ClangFormat(header_file.name) |
2684 return 0 | 2689 return 0 |
2685 | 2690 |
2686 | 2691 |
2687 if __name__ == '__main__': | 2692 if __name__ == '__main__': |
2688 sys.exit(main(sys.argv[1:])) | 2693 sys.exit(main(sys.argv[1:])) |
OLD | NEW |