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