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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 'arguments': 'GLboolean enable', }, | 909 'arguments': 'GLboolean enable', }, |
910 ] | 910 ] |
911 | 911 |
912 EGL_FUNCTIONS = [ | 912 EGL_FUNCTIONS = [ |
913 { 'return_type': 'EGLint', | 913 { 'return_type': 'EGLint', |
914 'names': ['eglGetError'], | 914 'names': ['eglGetError'], |
915 'arguments': 'void', }, | 915 'arguments': 'void', }, |
916 { 'return_type': 'EGLDisplay', | 916 { 'return_type': 'EGLDisplay', |
917 'names': ['eglGetDisplay'], | 917 'names': ['eglGetDisplay'], |
918 'arguments': 'EGLNativeDisplayType display_id', }, | 918 'arguments': 'EGLNativeDisplayType display_id', }, |
| 919 { 'return_type': 'EGLDisplay', |
| 920 'known_as': 'eglGetPlatformDisplayEXT', |
| 921 'versions': [{ 'name': 'eglGetPlatformDisplayEXT', |
| 922 'extensions': ['EGL_ANGLE_platform_angle'] }], |
| 923 'arguments': 'EGLenum platform, void* native_display, ' |
| 924 'const EGLint* attrib_list', }, |
919 { 'return_type': 'EGLBoolean', | 925 { 'return_type': 'EGLBoolean', |
920 'names': ['eglInitialize'], | 926 'names': ['eglInitialize'], |
921 'arguments': 'EGLDisplay dpy, EGLint* major, EGLint* minor', }, | 927 'arguments': 'EGLDisplay dpy, EGLint* major, EGLint* minor', }, |
922 { 'return_type': 'EGLBoolean', | 928 { 'return_type': 'EGLBoolean', |
923 'names': ['eglTerminate'], | 929 'names': ['eglTerminate'], |
924 'arguments': 'EGLDisplay dpy', }, | 930 'arguments': 'EGLDisplay dpy', }, |
925 { 'return_type': 'const char*', | 931 { 'return_type': 'const char*', |
926 'names': ['eglQueryString'], | 932 'names': ['eglQueryString'], |
927 'arguments': 'EGLDisplay dpy, EGLint name', }, | 933 'arguments': 'EGLDisplay dpy, EGLint name', }, |
928 { 'return_type': 'EGLBoolean', | 934 { 'return_type': 'EGLBoolean', |
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2070 | 2076 |
2071 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2077 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
2072 'wb') | 2078 'wb') |
2073 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2079 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
2074 source_file.close() | 2080 source_file.close() |
2075 return 0 | 2081 return 0 |
2076 | 2082 |
2077 | 2083 |
2078 if __name__ == '__main__': | 2084 if __name__ == '__main__': |
2079 sys.exit(main(sys.argv[1:])) | 2085 sys.exit(main(sys.argv[1:])) |
OLD | NEW |