Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: app/gfx/gl/generate_bindings.py

Issue 3146002: Fixed build problems on Mac OS X when using GLContext from Chromium's... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | app/gfx/gl/gl_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # 2 #
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """code generator for GL/GLES extension wrangler.""" 7 """code generator for GL/GLES extension wrangler."""
8 8
9 import os 9 import os
10 import re 10 import re
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 ['void', ['glGetUniformiv'], 'GLuint program, GLint location, GLint* params'], 136 ['void', ['glGetUniformiv'], 'GLuint program, GLint location, GLint* params'],
137 ['GLint', ['glGetUniformLocation'], 'GLuint program, const char* name'], 137 ['GLint', ['glGetUniformLocation'], 'GLuint program, const char* name'],
138 ['void', ['glGetVertexAttribfv'], 138 ['void', ['glGetVertexAttribfv'],
139 'GLuint index, GLenum pname, GLfloat* params'], 139 'GLuint index, GLenum pname, GLfloat* params'],
140 ['void', ['glGetVertexAttribiv'], 'GLuint index, GLenum pname, GLint* params'], 140 ['void', ['glGetVertexAttribiv'], 'GLuint index, GLenum pname, GLint* params'],
141 ['void', ['glGetVertexAttribPointerv'], 141 ['void', ['glGetVertexAttribPointerv'],
142 'GLuint index, GLenum pname, void** pointer'], 142 'GLuint index, GLenum pname, void** pointer'],
143 ['void', ['glHint'], 'GLenum target, GLenum mode'], 143 ['void', ['glHint'], 'GLenum target, GLenum mode'],
144 ['GLboolean', ['glIsBuffer'], 'GLuint buffer'], 144 ['GLboolean', ['glIsBuffer'], 'GLuint buffer'],
145 ['GLboolean', ['glIsEnabled'], 'GLenum cap'], 145 ['GLboolean', ['glIsEnabled'], 'GLenum cap'],
146 ['GLboolean', ['glIsFramebuffer'], 'GLuint framebuffer'], 146 ['GLboolean', ['glIsFramebufferEXT', 'glIsFramebuffer'],
147 'GLuint framebuffer'],
147 ['GLboolean', ['glIsProgram'], 'GLuint program'], 148 ['GLboolean', ['glIsProgram'], 'GLuint program'],
148 ['GLboolean', ['glIsRenderbuffer'], 'GLuint renderbuffer'], 149 ['GLboolean', ['glIsRenderbufferEXT', 'glIsRenderbuffer'],
150 'GLuint renderbuffer'],
149 ['GLboolean', ['glIsShader'], 'GLuint shader'], 151 ['GLboolean', ['glIsShader'], 'GLuint shader'],
150 ['GLboolean', ['glIsTexture'], 'GLuint texture'], 152 ['GLboolean', ['glIsTexture'], 'GLuint texture'],
151 ['void', ['glLineWidth'], 'GLfloat width'], 153 ['void', ['glLineWidth'], 'GLfloat width'],
152 ['void', ['glLinkProgram'], 'GLuint program'], 154 ['void', ['glLinkProgram'], 'GLuint program'],
153 ['void', ['glPixelStorei'], 'GLenum pname, GLint param'], 155 ['void', ['glPixelStorei'], 'GLenum pname, GLint param'],
154 ['void', ['glPolygonOffset'], 'GLfloat factor, GLfloat units'], 156 ['void', ['glPolygonOffset'], 'GLfloat factor, GLfloat units'],
155 ['void', ['glReadPixels'], 157 ['void', ['glReadPixels'],
156 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, ' 158 'GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, '
157 'GLenum type, void* pixels'], 159 'GLenum type, void* pixels'],
158 ['void', ['glReleaseShaderCompiler'], 'void'], 160 ['void', ['glReleaseShaderCompiler'], 'void'],
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 os.path.join(dir, 'gl_bindings_autogen_%s.cc' % setName), 'wb') 551 os.path.join(dir, 'gl_bindings_autogen_%s.cc' % setName), 'wb')
550 GenerateSource(sourceFile, functions, setName) 552 GenerateSource(sourceFile, functions, setName)
551 sourceFile.close() 553 sourceFile.close()
552 554
553 sourceFile = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb') 555 sourceFile = open(os.path.join(dir, 'gl_bindings_autogen_mock.cc'), 'wb')
554 GenerateMockSource(sourceFile, GL_FUNCTIONS) 556 GenerateMockSource(sourceFile, GL_FUNCTIONS)
555 sourceFile.close() 557 sourceFile.close()
556 558
557 if __name__ == '__main__': 559 if __name__ == '__main__':
558 main(sys.argv[1:]) 560 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « no previous file | app/gfx/gl/gl_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698