1 // Auto-generated with: android/scripts/gen-entries.py --mode=funcargs stream-servers/gl/OpenGLESDispatch/gles_common.entries --output=include/OpenGLESDispatch/gles_common_functions.h
2 // DO NOT EDIT THIS FILE
3 
4 #ifndef GLES_COMMON_FUNCTIONS_H
5 #define GLES_COMMON_FUNCTIONS_H
6 
7 #include <GLES/gl.h>
8 // Return types must be single words, see GLDispatch.cpp
9 typedef const GLubyte* GLconstubyteptr;
10 #define LIST_GLES_COMMON_FUNCTIONS(X) \
11   X(void, glActiveTexture, (GLenum texture), (texture)) \
12   X(void, glBindBuffer, (GLenum target, GLuint buffer), (target, buffer)) \
13   X(void, glBindTexture, (GLenum target, GLuint texture), (target, texture)) \
14   X(void, glBlendFunc, (GLenum sfactor, GLenum dfactor), (sfactor, dfactor)) \
15   X(void, glBlendEquation, (GLenum mode), (mode)) \
16   X(void, glBlendEquationSeparate, (GLenum modeRGB, GLenum modeAlpha), (modeRGB, modeAlpha)) \
17   X(void, glBlendFuncSeparate, (GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha), (srcRGB, dstRGB, srcAlpha, dstAlpha)) \
18   X(void, glBufferData, (GLenum target, GLsizeiptr size, const GLvoid * data, GLenum usage), (target, size, data, usage)) \
19   X(void, glBufferSubData, (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid * data), (target, offset, size, data)) \
20   X(void, glClear, (GLbitfield mask), (mask)) \
21   X(void, glClearColor, (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha), (red, green, blue, alpha)) \
22   X(void, glClearDepth, (GLclampd depth), (depth)) \
23   X(void, glClearDepthf, (GLclampf depth), (depth)) \
24   X(void, glClearStencil, (GLint s), (s)) \
25   X(void, glColorMask, (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha), (red, green, blue, alpha)) \
26   X(void, glCompressedTexImage2D, (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid * data), (target, level, internalformat, width, height, border, imageSize, data)) \
27   X(void, glCompressedTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid * data), (target, level, xoffset, yoffset, width, height, format, imageSize, data)) \
28   X(void, glCopyTexImage2D, (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border), (target, level, internalFormat, x, y, width, height, border)) \
29   X(void, glCopyTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height), (target, level, xoffset, yoffset, x, y, width, height)) \
30   X(void, glCullFace, (GLenum mode), (mode)) \
31   X(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers), (n, buffers)) \
32   X(void, glDeleteTextures, (GLsizei n, const GLuint * textures), (n, textures)) \
33   X(void, glDepthFunc, (GLenum func), (func)) \
34   X(void, glDepthMask, (GLboolean flag), (flag)) \
35   X(void, glDepthRange, (GLclampd zNear, GLclampd zFar), (zNear, zFar)) \
36   X(void, glDepthRangef, (GLclampf zNear, GLclampf zFar), (zNear, zFar)) \
37   X(void, glDisable, (GLenum cap), (cap)) \
38   X(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count), (mode, first, count)) \
39   X(void, glDrawElements, (GLenum mode, GLsizei count, GLenum type, const GLvoid * indices), (mode, count, type, indices)) \
40   X(void, glEnable, (GLenum cap), (cap)) \
41   X(void, glFinish, (), ()) \
42   X(void, glFlush, (), ()) \
43   X(void, glFrontFace, (GLenum mode), (mode)) \
44   X(void, glGenBuffers, (GLsizei n, GLuint * buffers), (n, buffers)) \
45   X(void, glGenTextures, (GLsizei n, GLuint * textures), (n, textures)) \
46   X(void, glGetBooleanv, (GLenum pname, GLboolean * params), (pname, params)) \
47   X(void, glGetBufferParameteriv, (GLenum buffer, GLenum parameter, GLint * value), (buffer, parameter, value)) \
48   X(GLenum, glGetError, (), ()) \
49   X(void, glGetFloatv, (GLenum pname, GLfloat * params), (pname, params)) \
50   X(void, glGetIntegerv, (GLenum pname, GLint * params), (pname, params)) \
51   X(GLconstubyteptr, glGetString, (GLenum name), (name)) \
52   X(void, glTexParameterf, (GLenum target, GLenum pname, GLfloat param), (target, pname, param)) \
53   X(void, glTexParameterfv, (GLenum target, GLenum pname, const GLfloat * params), (target, pname, params)) \
54   X(void, glGetTexImage, (GLenum target, GLint level, GLenum format, GLenum type, GLvoid * pixels), (target, level, format, type, pixels)) \
55   X(void, glGetTexParameterfv, (GLenum target, GLenum pname, GLfloat * params), (target, pname, params)) \
56   X(void, glGetTexParameteriv, (GLenum target, GLenum pname, GLint * params), (target, pname, params)) \
57   X(void, glGetTexLevelParameteriv, (GLenum target, GLint level, GLenum pname, GLint * params), (target, level, pname, params)) \
58   X(void, glGetTexLevelParameterfv, (GLenum target, GLint level, GLenum pname, GLfloat * params), (target, level, pname, params)) \
59   X(void, glHint, (GLenum target, GLenum mode), (target, mode)) \
60   X(GLboolean, glIsBuffer, (GLuint buffer), (buffer)) \
61   X(GLboolean, glIsEnabled, (GLenum cap), (cap)) \
62   X(GLboolean, glIsTexture, (GLuint texture), (texture)) \
63   X(void, glLineWidth, (GLfloat width), (width)) \
64   X(void, glPolygonOffset, (GLfloat factor, GLfloat units), (factor, units)) \
65   X(void, glPixelStorei, (GLenum pname, GLint param), (pname, param)) \
66   X(void, glReadPixels, (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid * pixels), (x, y, width, height, format, type, pixels)) \
67   X(void, glRenderbufferStorageMultisample, (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height), (target, samples, internalformat, width, height)) \
68   X(void, glSampleCoverage, (GLclampf value, GLboolean invert), (value, invert)) \
69   X(void, glScissor, (GLint x, GLint y, GLsizei width, GLsizei height), (x, y, width, height)) \
70   X(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask), (func, ref, mask)) \
71   X(void, glStencilMask, (GLuint mask), (mask)) \
72   X(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass), (fail, zfail, zpass)) \
73   X(void, glTexImage2D, (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid * pixels), (target, level, internalformat, width, height, border, format, type, pixels)) \
74   X(void, glTexParameteri, (GLenum target, GLenum pname, GLint param), (target, pname, param)) \
75   X(void, glTexParameteriv, (GLenum target, GLenum pname, const GLint * params), (target, pname, params)) \
76   X(void, glTexSubImage2D, (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid * pixels), (target, level, xoffset, yoffset, width, height, format, type, pixels)) \
77   X(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height), (x, y, width, height)) \
78   X(void, glPushAttrib, (GLbitfield mask), (mask)) \
79   X(void, glPushClientAttrib, (GLbitfield mask), (mask)) \
80   X(void, glPopAttrib, (), ()) \
81   X(void, glPopClientAttrib, (), ()) \
82 
83 
84 #endif  // GLES_COMMON_FUNCTIONS_H
85