OLD | NEW |
1 #!/usr/bin/python | 1 #!/usr/bin/python |
2 # | 2 # |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 GLES2 command buffers.""" | 7 """code generator for GLES2 command buffers.""" |
8 | 8 |
9 import os | 9 import os |
10 import os.path | 10 import os.path |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLidTexture texture); | 148 GL_APICALL GLboolean GL_APIENTRY glIsTexture (GLidTexture texture); |
149 GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width); | 149 GL_APICALL void GL_APIENTRY glLineWidth (GLfloat width); |
150 GL_APICALL void GL_APIENTRY glLinkProgram (GLidProgram program); | 150 GL_APICALL void GL_APIENTRY glLinkProgram (GLidProgram program); |
151 GL_APICALL void GL_APIENTRY glPixelStorei (GLenumPixelStore pname, GLint
PixelStoreAlignment param); | 151 GL_APICALL void GL_APIENTRY glPixelStorei (GLenumPixelStore pname, GLint
PixelStoreAlignment param); |
152 GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat uni
ts); | 152 GL_APICALL void GL_APIENTRY glPolygonOffset (GLfloat factor, GLfloat uni
ts); |
153 GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei widt
h, GLsizei height, GLenumReadPixelFormat format, GLenumPixelType type, void* pix
els); | 153 GL_APICALL void GL_APIENTRY glReadPixels (GLint x, GLint y, GLsizei widt
h, GLsizei height, GLenumReadPixelFormat format, GLenumPixelType type, void* pix
els); |
154 GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void); | 154 GL_APICALL void GL_APIENTRY glReleaseShaderCompiler (void); |
155 GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenumRenderBufferTar
get target, GLenumRenderBufferFormat internalformat, GLsizei width, GLsizei heig
ht); | 155 GL_APICALL void GL_APIENTRY glRenderbufferStorage (GLenumRenderBufferTar
get target, GLenumRenderBufferFormat internalformat, GLsizei width, GLsizei heig
ht); |
156 GL_APICALL void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean
invert); | 156 GL_APICALL void GL_APIENTRY glSampleCoverage (GLclampf value, GLboolean
invert); |
157 GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width,
GLsizei height); | 157 GL_APICALL void GL_APIENTRY glScissor (GLint x, GLint y, GLsizei width,
GLsizei height); |
158 GL_APICALL void GL_APIENTRY glShaderBinary (GLsizeiNotNegative n, const
GLuint* shaders, GLenum binaryformat, const void* binary, GLsizeiNotNegative len
gth); | 158 GL_APICALL void GL_APIENTRY glShaderBinary (GLsizeiNotNegative n, const
GLuint* shaders, GLenumShaderBinaryFormat binaryformat, const void* binary, GLsi
zeiNotNegative length); |
159 GL_APICALL void GL_APIENTRY glShaderSource (GLidShader shader, GLsizeiNo
tNegative count, const char** str, const GLint* length); | 159 GL_APICALL void GL_APIENTRY glShaderSource (GLidShader shader, GLsizeiNo
tNegative count, const char** str, const GLint* length); |
160 GL_APICALL void GL_APIENTRY glStencilFunc (GLenumCmpFunction func, GLint
ref, GLuint mask); | 160 GL_APICALL void GL_APIENTRY glStencilFunc (GLenumCmpFunction func, GLint
ref, GLuint mask); |
161 GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenumFaceType face,
GLenumCmpFunction func, GLint ref, GLuint mask); | 161 GL_APICALL void GL_APIENTRY glStencilFuncSeparate (GLenumFaceType face,
GLenumCmpFunction func, GLint ref, GLuint mask); |
162 GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask); | 162 GL_APICALL void GL_APIENTRY glStencilMask (GLuint mask); |
163 GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenumFaceType face,
GLuint mask); | 163 GL_APICALL void GL_APIENTRY glStencilMaskSeparate (GLenumFaceType face,
GLuint mask); |
164 GL_APICALL void GL_APIENTRY glStencilOp (GLenumStencilOp fail, GLenumSte
ncilOp zfail, GLenumStencilOp zpass); | 164 GL_APICALL void GL_APIENTRY glStencilOp (GLenumStencilOp fail, GLenumSte
ncilOp zfail, GLenumStencilOp zpass); |
165 GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenumFaceType face, GL
enumStencilOp fail, GLenumStencilOp zfail, GLenumStencilOp zpass); | 165 GL_APICALL void GL_APIENTRY glStencilOpSeparate (GLenumFaceType face, GL
enumStencilOp fail, GLenumStencilOp zfail, GLenumStencilOp zpass); |
166 GL_APICALL void GL_APIENTRY glTexImage2D (GLenumTextureTarget target, GL
int level, GLintTextureInternalFormat internalformat, GLsizei width, GLsizei hei
ght, GLintTextureBorder border, GLenumTextureFormat format, GLenumPixelType type
, const void* pixels); | 166 GL_APICALL void GL_APIENTRY glTexImage2D (GLenumTextureTarget target, GL
int level, GLintTextureInternalFormat internalformat, GLsizei width, GLsizei hei
ght, GLintTextureBorder border, GLenumTextureFormat format, GLenumPixelType type
, const void* pixels); |
167 GL_APICALL void GL_APIENTRY glTexParameterf (GLenumTextureBindTarget tar
get, GLenumTextureParameter pname, GLfloat param); | 167 GL_APICALL void GL_APIENTRY glTexParameterf (GLenumTextureBindTarget tar
get, GLenumTextureParameter pname, GLfloat param); |
168 GL_APICALL void GL_APIENTRY glTexParameterfv (GLenumTextureBindTarget ta
rget, GLenumTextureParameter pname, const GLfloat* params); | 168 GL_APICALL void GL_APIENTRY glTexParameterfv (GLenumTextureBindTarget ta
rget, GLenumTextureParameter pname, const GLfloat* params); |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 'RenderBufferFormat': { | 960 'RenderBufferFormat': { |
961 'type': 'GLenum', | 961 'type': 'GLenum', |
962 'valid': [ | 962 'valid': [ |
963 'GL_RGBA4', | 963 'GL_RGBA4', |
964 'GL_RGB565', | 964 'GL_RGB565', |
965 'GL_RGB5_A1', | 965 'GL_RGB5_A1', |
966 'GL_DEPTH_COMPONENT16', | 966 'GL_DEPTH_COMPONENT16', |
967 'GL_STENCIL_INDEX8', | 967 'GL_STENCIL_INDEX8', |
968 ], | 968 ], |
969 }, | 969 }, |
| 970 'ShaderBinaryFormat': { |
| 971 'type': 'GLenum', |
| 972 'valid': [ |
| 973 ], |
| 974 }, |
970 'StencilOp': { | 975 'StencilOp': { |
971 'type': 'GLenum', | 976 'type': 'GLenum', |
972 'valid': [ | 977 'valid': [ |
973 'GL_KEEP', | 978 'GL_KEEP', |
974 'GL_ZERO', | 979 'GL_ZERO', |
975 'GL_REPLACE', | 980 'GL_REPLACE', |
976 'GL_INCR', | 981 'GL_INCR', |
977 'GL_INCR_WRAP', | 982 'GL_INCR_WRAP', |
978 'GL_DECR', | 983 'GL_DECR', |
979 'GL_DECR_WRAP', | 984 'GL_DECR_WRAP', |
(...skipping 5038 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6018 | 6023 |
6019 if options.generate_docs: | 6024 if options.generate_docs: |
6020 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") | 6025 gen.WriteDocs("docs/gles2_cmd_format_docs_autogen.h") |
6021 | 6026 |
6022 if gen.errors > 0: | 6027 if gen.errors > 0: |
6023 print "%d errors" % gen.errors | 6028 print "%d errors" % gen.errors |
6024 sys.exit(1) | 6029 sys.exit(1) |
6025 | 6030 |
6026 if __name__ == '__main__': | 6031 if __name__ == '__main__': |
6027 main(sys.argv[1:]) | 6032 main(sys.argv[1:]) |
OLD | NEW |