Hash :
95ac7b7c
Author :
Date :
2019-06-13T11:29:06
Autogen gles2+ declarations Added autogeneration of method declarations for GLES2+ and extensions Bug: angleproject:3526 Change-Id: I9c7263452146098512d9584deae8ea3f15f62c46 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1660949 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Jonah Ryan-Davis <jonahr@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
// GENERATED FILE - DO NOT EDIT.
// Generated by generate_entry_points.py using data from gl.xml.
//
// Copyright 2019 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Context_gles_2_0_autogen.h: Creates a macro for interfaces in Context.
#ifndef ANGLE_CONTEXT_GLES_2_0_AUTOGEN_H_
#define ANGLE_CONTEXT_GLES_2_0_AUTOGEN_H_
#define ANGLE_GLES_2_0_CONTEXT_API \
void activeTexture(GLenum texture); \
void attachShader(GLuint program, GLuint shader); \
void bindAttribLocation(GLuint program, GLuint index, const GLchar *name); \
void bindBuffer(BufferBinding targetPacked, GLuint buffer); \
void bindFramebuffer(GLenum target, GLuint framebuffer); \
void bindRenderbuffer(GLenum target, GLuint renderbuffer); \
void bindTexture(TextureType targetPacked, GLuint texture); \
void blendColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); \
void blendEquation(GLenum mode); \
void blendEquationSeparate(GLenum modeRGB, GLenum modeAlpha); \
void blendFunc(GLenum sfactor, GLenum dfactor); \
void blendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, \
GLenum dfactorAlpha); \
void bufferData(BufferBinding targetPacked, GLsizeiptr size, const void *data, \
BufferUsage usagePacked); \
void bufferSubData(BufferBinding targetPacked, GLintptr offset, GLsizeiptr size, \
const void *data); \
GLenum checkFramebufferStatus(GLenum target); \
void clear(GLbitfield mask); \
void clearColor(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); \
void clearDepthf(GLfloat d); \
void clearStencil(GLint s); \
void colorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); \
void compileShader(GLuint shader); \
void compressedTexImage2D(TextureTarget targetPacked, GLint level, GLenum internalformat, \
GLsizei width, GLsizei height, GLint border, GLsizei imageSize, \
const void *data); \
void compressedTexSubImage2D(TextureTarget targetPacked, GLint level, GLint xoffset, \
GLint yoffset, GLsizei width, GLsizei height, GLenum format, \
GLsizei imageSize, const void *data); \
void copyTexImage2D(TextureTarget targetPacked, GLint level, GLenum internalformat, GLint x, \
GLint y, GLsizei width, GLsizei height, GLint border); \
void copyTexSubImage2D(TextureTarget targetPacked, GLint level, GLint xoffset, GLint yoffset, \
GLint x, GLint y, GLsizei width, GLsizei height); \
GLuint createProgram(); \
GLuint createShader(ShaderType typePacked); \
void cullFace(CullFaceMode modePacked); \
void deleteBuffers(GLsizei n, const GLuint *buffers); \
void deleteFramebuffers(GLsizei n, const GLuint *framebuffers); \
void deleteProgram(GLuint program); \
void deleteRenderbuffers(GLsizei n, const GLuint *renderbuffers); \
void deleteShader(GLuint shader); \
void deleteTextures(GLsizei n, const GLuint *textures); \
void depthFunc(GLenum func); \
void depthMask(GLboolean flag); \
void depthRangef(GLfloat n, GLfloat f); \
void detachShader(GLuint program, GLuint shader); \
void disable(GLenum cap); \
void disableVertexAttribArray(GLuint index); \
void drawArrays(PrimitiveMode modePacked, GLint first, GLsizei count); \
void drawElements(PrimitiveMode modePacked, GLsizei count, DrawElementsType typePacked, \
const void *indices); \
void enable(GLenum cap); \
void enableVertexAttribArray(GLuint index); \
void finish(); \
void flush(); \
void framebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, \
GLuint renderbuffer); \
void framebufferTexture2D(GLenum target, GLenum attachment, TextureTarget textargetPacked, \
GLuint texture, GLint level); \
void frontFace(GLenum mode); \
void genBuffers(GLsizei n, GLuint *buffers); \
void genFramebuffers(GLsizei n, GLuint *framebuffers); \
void genRenderbuffers(GLsizei n, GLuint *renderbuffers); \
void genTextures(GLsizei n, GLuint *textures); \
void generateMipmap(TextureType targetPacked); \
void getActiveAttrib(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, \
GLint *size, GLenum *type, GLchar *name); \
void getActiveUniform(GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, \
GLint *size, GLenum *type, GLchar *name); \
void getAttachedShaders(GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders); \
GLint getAttribLocation(GLuint program, const GLchar *name); \
void getBooleanv(GLenum pname, GLboolean *data); \
void getBufferParameteriv(BufferBinding targetPacked, GLenum pname, GLint *params); \
GLenum getError(); \
void getFloatv(GLenum pname, GLfloat *data); \
void getFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, \
GLint *params); \
void getIntegerv(GLenum pname, GLint *data); \
void getProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog); \
void getProgramiv(GLuint program, GLenum pname, GLint *params); \
void getRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params); \
void getShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog); \
void getShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, GLint *range, \
GLint *precision); \
void getShaderSource(GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source); \
void getShaderiv(GLuint shader, GLenum pname, GLint *params); \
const GLubyte *getString(GLenum name); \
void getTexParameterfv(TextureType targetPacked, GLenum pname, GLfloat *params); \
void getTexParameteriv(TextureType targetPacked, GLenum pname, GLint *params); \
GLint getUniformLocation(GLuint program, const GLchar *name); \
void getUniformfv(GLuint program, GLint location, GLfloat *params); \
void getUniformiv(GLuint program, GLint location, GLint *params); \
void getVertexAttribPointerv(GLuint index, GLenum pname, void **pointer); \
void getVertexAttribfv(GLuint index, GLenum pname, GLfloat *params); \
void getVertexAttribiv(GLuint index, GLenum pname, GLint *params); \
void hint(GLenum target, GLenum mode); \
GLboolean isBuffer(GLuint buffer); \
GLboolean isEnabled(GLenum cap); \
GLboolean isFramebuffer(GLuint framebuffer); \
GLboolean isProgram(GLuint program); \
GLboolean isRenderbuffer(GLuint renderbuffer); \
GLboolean isShader(GLuint shader); \
GLboolean isTexture(GLuint texture); \
void lineWidth(GLfloat width); \
void linkProgram(GLuint program); \
void pixelStorei(GLenum pname, GLint param); \
void polygonOffset(GLfloat factor, GLfloat units); \
void readPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, \
void *pixels); \
void releaseShaderCompiler(); \
void renderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height); \
void sampleCoverage(GLfloat value, GLboolean invert); \
void scissor(GLint x, GLint y, GLsizei width, GLsizei height); \
void shaderBinary(GLsizei count, const GLuint *shaders, GLenum binaryformat, \
const void *binary, GLsizei length); \
void shaderSource(GLuint shader, GLsizei count, const GLchar *const *string, \
const GLint *length); \
void stencilFunc(GLenum func, GLint ref, GLuint mask); \
void stencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask); \
void stencilMask(GLuint mask); \
void stencilMaskSeparate(GLenum face, GLuint mask); \
void stencilOp(GLenum fail, GLenum zfail, GLenum zpass); \
void stencilOpSeparate(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass); \
void texImage2D(TextureTarget targetPacked, GLint level, GLint internalformat, GLsizei width, \
GLsizei height, GLint border, GLenum format, GLenum type, const void *pixels); \
void texParameterf(TextureType targetPacked, GLenum pname, GLfloat param); \
void texParameterfv(TextureType targetPacked, GLenum pname, const GLfloat *params); \
void texParameteri(TextureType targetPacked, GLenum pname, GLint param); \
void texParameteriv(TextureType targetPacked, GLenum pname, const GLint *params); \
void texSubImage2D(TextureTarget targetPacked, GLint level, GLint xoffset, GLint yoffset, \
GLsizei width, GLsizei height, GLenum format, GLenum type, \
const void *pixels); \
void uniform1f(GLint location, GLfloat v0); \
void uniform1fv(GLint location, GLsizei count, const GLfloat *value); \
void uniform1i(GLint location, GLint v0); \
void uniform1iv(GLint location, GLsizei count, const GLint *value); \
void uniform2f(GLint location, GLfloat v0, GLfloat v1); \
void uniform2fv(GLint location, GLsizei count, const GLfloat *value); \
void uniform2i(GLint location, GLint v0, GLint v1); \
void uniform2iv(GLint location, GLsizei count, const GLint *value); \
void uniform3f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2); \
void uniform3fv(GLint location, GLsizei count, const GLfloat *value); \
void uniform3i(GLint location, GLint v0, GLint v1, GLint v2); \
void uniform3iv(GLint location, GLsizei count, const GLint *value); \
void uniform4f(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3); \
void uniform4fv(GLint location, GLsizei count, const GLfloat *value); \
void uniform4i(GLint location, GLint v0, GLint v1, GLint v2, GLint v3); \
void uniform4iv(GLint location, GLsizei count, const GLint *value); \
void uniformMatrix2fv(GLint location, GLsizei count, GLboolean transpose, \
const GLfloat *value); \
void uniformMatrix3fv(GLint location, GLsizei count, GLboolean transpose, \
const GLfloat *value); \
void uniformMatrix4fv(GLint location, GLsizei count, GLboolean transpose, \
const GLfloat *value); \
void useProgram(GLuint program); \
void validateProgram(GLuint program); \
void vertexAttrib1f(GLuint index, GLfloat x); \
void vertexAttrib1fv(GLuint index, const GLfloat *v); \
void vertexAttrib2f(GLuint index, GLfloat x, GLfloat y); \
void vertexAttrib2fv(GLuint index, const GLfloat *v); \
void vertexAttrib3f(GLuint index, GLfloat x, GLfloat y, GLfloat z); \
void vertexAttrib3fv(GLuint index, const GLfloat *v); \
void vertexAttrib4f(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); \
void vertexAttrib4fv(GLuint index, const GLfloat *v); \
void vertexAttribPointer(GLuint index, GLint size, VertexAttribType typePacked, \
GLboolean normalized, GLsizei stride, const void *pointer); \
void viewport(GLint x, GLint y, GLsizei width, GLsizei height);
#endif // ANGLE_CONTEXT_API_2_0_AUTOGEN_H_