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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 { 'return_type': 'void', | 209 { 'return_type': 'void', |
210 'names': ['glDisableVertexAttribArray'], | 210 'names': ['glDisableVertexAttribArray'], |
211 'arguments': 'GLuint index', }, | 211 'arguments': 'GLuint index', }, |
212 { 'return_type': 'void', | 212 { 'return_type': 'void', |
213 'names': ['glDrawArrays'], | 213 'names': ['glDrawArrays'], |
214 'arguments': 'GLenum mode, GLint first, GLsizei count', }, | 214 'arguments': 'GLenum mode, GLint first, GLsizei count', }, |
215 { 'return_type': 'void', | 215 { 'return_type': 'void', |
216 'names': ['glDrawBuffer'], | 216 'names': ['glDrawBuffer'], |
217 'arguments': 'GLenum mode', }, | 217 'arguments': 'GLenum mode', }, |
218 { 'return_type': 'void', | 218 { 'return_type': 'void', |
219 'names': ['glDrawBuffersARB', 'glDrawBuffersEXT'], | 219 'names': ['glDrawBuffersARB', 'glDrawBuffersEXT', 'glDrawBuffers'], |
220 'arguments': 'GLsizei n, const GLenum* bufs', }, | 220 'arguments': 'GLsizei n, const GLenum* bufs', }, |
221 { 'return_type': 'void', | 221 { 'return_type': 'void', |
222 'names': ['glDrawElements'], | 222 'names': ['glDrawElements'], |
223 'arguments': | 223 'arguments': |
224 'GLenum mode, GLsizei count, GLenum type, const void* indices', }, | 224 'GLenum mode, GLsizei count, GLenum type, const void* indices', }, |
225 { 'return_type': 'void', | 225 { 'return_type': 'void', |
226 'names': ['glEGLImageTargetTexture2DOES'], | 226 'names': ['glEGLImageTargetTexture2DOES'], |
227 'arguments': 'GLenum target, GLeglImageOES image', }, | 227 'arguments': 'GLenum target, GLeglImageOES image', }, |
228 { 'return_type': 'void', | 228 { 'return_type': 'void', |
229 'names': ['glEGLImageTargetRenderbufferStorageOES'], | 229 'names': ['glEGLImageTargetRenderbufferStorageOES'], |
(...skipping 1849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2079 | 2079 |
2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), | 2080 source_file = open(os.path.join(directory, 'gl_bindings_autogen_mock.cc'), |
2081 'wb') | 2081 'wb') |
2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) | 2082 GenerateMockBindingsSource(source_file, GL_FUNCTIONS) |
2083 source_file.close() | 2083 source_file.close() |
2084 return 0 | 2084 return 0 |
2085 | 2085 |
2086 | 2086 |
2087 if __name__ == '__main__': | 2087 if __name__ == '__main__': |
2088 sys.exit(main(sys.argv[1:])) | 2088 sys.exit(main(sys.argv[1:])) |
OLD | NEW |