src/video/SDL_glesfuncs.h
author Sam Lantinga
Sat, 19 Sep 2009 13:29:40 +0000
changeset 3280 00cace2d9080
parent 2964 0faae272a372
permissions -rw-r--r--
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
     1 /* list of OpenGL ES functions sorted alphabetically
     2    If you need to use a GLES function from the SDL video subsystem,
     3    change it's entry from SDL_PROC_UNUSED to SDL_PROC and rebuild.
     4 */
     5 #define SDL_PROC_UNUSED(ret,func,params)
     6 
     7 SDL_PROC_UNUSED(void, glAlphaFunc, (GLenum func, GLclampf ref))
     8 SDL_PROC(void, glClearColor,
     9          (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha))
    10 SDL_PROC_UNUSED(void, glClearDepthf, (GLclampf depth))
    11 SDL_PROC_UNUSED(void, glClipPlanef, (GLenum plane, const GLfloat * equation))
    12 SDL_PROC(void, glColor4f,
    13          (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha))
    14 SDL_PROC_UNUSED(void, glDepthRangef, (GLclampf zNear, GLclampf zFar))
    15 SDL_PROC_UNUSED(void, glFogf, (GLenum pname, GLfloat param))
    16 SDL_PROC_UNUSED(void, glFogfv, (GLenum pname, const GLfloat * params))
    17 SDL_PROC_UNUSED(void, glFrustumf,
    18                 (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
    19                  GLfloat zNear, GLfloat zFar))
    20 SDL_PROC_UNUSED(void, glGetClipPlanef, (GLenum pname, GLfloat eqn[4]))
    21 SDL_PROC(void, glGetFloatv, (GLenum pname, GLfloat * params))
    22 SDL_PROC_UNUSED(void, glGetLightfv,
    23                 (GLenum light, GLenum pname, GLfloat * params))
    24 SDL_PROC_UNUSED(void, glGetMaterialfv,
    25                 (GLenum face, GLenum pname, GLfloat * params))
    26 SDL_PROC_UNUSED(void, glGetTexEnvfv,
    27                 (GLenum env, GLenum pname, GLfloat * params))
    28 SDL_PROC_UNUSED(void, glGetTexParameterfv,
    29                 (GLenum target, GLenum pname, GLfloat * params))
    30 SDL_PROC_UNUSED(void, glLightModelf, (GLenum pname, GLfloat param))
    31 SDL_PROC_UNUSED(void, glLightModelfv, (GLenum pname, const GLfloat * params))
    32 SDL_PROC_UNUSED(void, glLightf, (GLenum light, GLenum pname, GLfloat param))
    33 SDL_PROC_UNUSED(void, glLightfv,
    34                 (GLenum light, GLenum pname, const GLfloat * params))
    35 SDL_PROC_UNUSED(void, glLineWidth, (GLfloat width))
    36 SDL_PROC_UNUSED(void, glLoadMatrixf, (const GLfloat * m))
    37 SDL_PROC_UNUSED(void, glMaterialf, (GLenum face, GLenum pname, GLfloat param))
    38 SDL_PROC_UNUSED(void, glMaterialfv,
    39                 (GLenum face, GLenum pname, const GLfloat * params))
    40 SDL_PROC_UNUSED(void, glMultMatrixf, (const GLfloat * m))
    41 SDL_PROC_UNUSED(void, glMultiTexCoord4f,
    42                 (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q))
    43 SDL_PROC_UNUSED(void, glNormal3f, (GLfloat nx, GLfloat ny, GLfloat nz))
    44 SDL_PROC(void, glOrthof,
    45          (GLfloat left, GLfloat right, GLfloat bottom, GLfloat top,
    46           GLfloat zNear, GLfloat zFar))
    47 SDL_PROC_UNUSED(void, glPointParameterf, (GLenum pname, GLfloat param))
    48 SDL_PROC_UNUSED(void, glPointParameterfv,
    49                 (GLenum pname, const GLfloat * params))
    50 SDL_PROC_UNUSED(void, glPointSize, (GLfloat size))
    51 SDL_PROC_UNUSED(void, glPolygonOffset, (GLfloat factor, GLfloat units))
    52 SDL_PROC_UNUSED(void, glRotatef,
    53                 (GLfloat angle, GLfloat x, GLfloat y, GLfloat z))
    54 SDL_PROC_UNUSED(void, glScalef, (GLfloat x, GLfloat y, GLfloat z))
    55 SDL_PROC(void, glTexEnvf, (GLenum target, GLenum pname, GLfloat param))
    56 SDL_PROC_UNUSED(void, glTexEnvfv,
    57                 (GLenum target, GLenum pname, const GLfloat * params))
    58 SDL_PROC(void, glTexParameterf, (GLenum target, GLenum pname, GLfloat param))
    59 SDL_PROC_UNUSED(void, glTexParameterfv,
    60                 (GLenum target, GLenum pname, const GLfloat * params))
    61 SDL_PROC_UNUSED(void, glTranslatef, (GLfloat x, GLfloat y, GLfloat z))
    62 
    63 /* Available in both Common and Common-Lite profiles */
    64 SDL_PROC_UNUSED(void, glActiveTexture, (GLenum texture))
    65 SDL_PROC_UNUSED(void, glAlphaFuncx, (GLenum func, GLclampx ref))
    66 SDL_PROC_UNUSED(void, glBindBuffer, (GLenum target, GLuint buffer))
    67 SDL_PROC(void, glBindTexture, (GLenum target, GLuint texture))
    68 SDL_PROC(void, glBlendFunc, (GLenum sfactor, GLenum dfactor))
    69 SDL_PROC_UNUSED(void, glBufferData,
    70                 (GLenum target, GLsizeiptr size, const GLvoid * data,
    71                  GLenum usage))
    72 SDL_PROC_UNUSED(void, glBufferSubData,
    73                 (GLenum target, GLintptr offset, GLsizeiptr size,
    74                  const GLvoid * data))
    75 SDL_PROC(void, glClear, (GLbitfield mask))
    76 SDL_PROC_UNUSED(void, glClearColorx,
    77                 (GLclampx red, GLclampx green, GLclampx blue, GLclampx alpha))
    78 SDL_PROC_UNUSED(void, glClearDepthx, (GLclampx depth))
    79 SDL_PROC_UNUSED(void, glClearStencil, (GLint s))
    80 SDL_PROC_UNUSED(void, glClientActiveTexture, (GLenum texture))
    81 SDL_PROC_UNUSED(void, glClipPlanex, (GLenum plane, const GLfixed * equation))
    82 SDL_PROC_UNUSED(void, glColor4ub,
    83                 (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha))
    84 SDL_PROC_UNUSED(void, glColor4x,
    85                 (GLfixed red, GLfixed green, GLfixed blue, GLfixed alpha))
    86 SDL_PROC_UNUSED(void, glColorMask,
    87                 (GLboolean red, GLboolean green, GLboolean blue,
    88                  GLboolean alpha))
    89 SDL_PROC(void, glColorPointer,
    90          (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
    91 SDL_PROC_UNUSED(void, glCompressedTexImage2D,
    92                 (GLenum target, GLint level, GLenum internalformat,
    93                  GLsizei width, GLsizei height, GLint border,
    94                  GLsizei imageSize, const GLvoid * data))
    95 SDL_PROC_UNUSED(void, glCompressedTexSubImage2D,
    96                 (GLenum target, GLint level, GLint xoffset, GLint yoffset,
    97                  GLsizei width, GLsizei height, GLenum format,
    98                  GLsizei imageSize, const GLvoid * data))
    99 SDL_PROC_UNUSED(void, glCopyTexImage2D,
   100                 (GLenum target, GLint level, GLenum internalformat, GLint x,
   101                  GLint y, GLsizei width, GLsizei height, GLint border))
   102 SDL_PROC_UNUSED(void, glCopyTexSubImage2D,
   103                 (GLenum target, GLint level, GLint xoffset, GLint yoffset,
   104                  GLint x, GLint y, GLsizei width, GLsizei height))
   105 SDL_PROC_UNUSED(void, glCullFace, (GLenum mode))
   106 SDL_PROC_UNUSED(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers))
   107 SDL_PROC_UNUSED(void, glDeleteTextures, (GLsizei n, const GLuint * textures))
   108 SDL_PROC_UNUSED(void, glDepthFunc, (GLenum func))
   109 SDL_PROC_UNUSED(void, glDepthMask, (GLboolean flag))
   110 SDL_PROC_UNUSED(void, glDepthRangex, (GLclampx zNear, GLclampx zFar))
   111 SDL_PROC(void, glDisable, (GLenum cap))
   112 SDL_PROC(void, glDisableClientState, (GLenum array))
   113 SDL_PROC(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count))
   114 SDL_PROC_UNUSED(void, glDrawElements,
   115                 (GLenum mode, GLsizei count, GLenum type,
   116                  const GLvoid * indices))
   117 SDL_PROC(void, glEnable, (GLenum cap))
   118 SDL_PROC(void, glEnableClientState, (GLenum array))
   119 SDL_PROC_UNUSED(void, glFinish, (void))
   120 SDL_PROC_UNUSED(void, glFlush, (void))
   121 SDL_PROC_UNUSED(void, glFogx, (GLenum pname, GLfixed param))
   122 SDL_PROC_UNUSED(void, glFogxv, (GLenum pname, const GLfixed * params))
   123 SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode))
   124 SDL_PROC_UNUSED(void, glFrustumx,
   125                 (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
   126                  GLfixed zNear, GLfixed zFar))
   127 SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params))
   128 SDL_PROC_UNUSED(void, glGetBufferParameteriv,
   129                 (GLenum target, GLenum pname, GLint * params))
   130 SDL_PROC_UNUSED(void, glGetClipPlanex, (GLenum pname, GLfixed eqn[4]))
   131 SDL_PROC_UNUSED(void, glGenBuffers, (GLsizei n, GLuint * buffers))
   132 SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures))
   133 SDL_PROC(GLenum, glGetError, (void))
   134 SDL_PROC_UNUSED(void, glGetFixedv, (GLenum pname, GLfixed * params))
   135 SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params))
   136 SDL_PROC_UNUSED(void, glGetLightxv,
   137                 (GLenum light, GLenum pname, GLfixed * params))
   138 SDL_PROC_UNUSED(void, glGetMaterialxv,
   139                 (GLenum face, GLenum pname, GLfixed * params))
   140 SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, void **params))
   141 SDL_PROC_UNUSED(const GLubyte *, glGetString, (GLenum name))
   142 SDL_PROC_UNUSED(void, glGetTexEnviv,
   143                 (GLenum env, GLenum pname, GLint * params))
   144 SDL_PROC_UNUSED(void, glGetTexEnvxv,
   145                 (GLenum env, GLenum pname, GLfixed * params))
   146 SDL_PROC_UNUSED(void, glGetTexParameteriv,
   147                 (GLenum target, GLenum pname, GLint * params))
   148 SDL_PROC_UNUSED(void, glGetTexParameterxv,
   149                 (GLenum target, GLenum pname, GLfixed * params))
   150 SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode))
   151 SDL_PROC_UNUSED(GLboolean, glIsBuffer, (GLuint buffer))
   152 SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap))
   153 SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture))
   154 SDL_PROC_UNUSED(void, glLightModelx, (GLenum pname, GLfixed param))
   155 SDL_PROC_UNUSED(void, glLightModelxv, (GLenum pname, const GLfixed * params))
   156 SDL_PROC_UNUSED(void, glLightx, (GLenum light, GLenum pname, GLfixed param))
   157 SDL_PROC_UNUSED(void, glLightxv,
   158                 (GLenum light, GLenum pname, const GLfixed * params))
   159 SDL_PROC_UNUSED(void, glLineWidthx, (GLfixed width))
   160 SDL_PROC(void, glLoadIdentity, (void))
   161 SDL_PROC_UNUSED(void, glLoadMatrixx, (const GLfixed * m))
   162 SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode))
   163 SDL_PROC_UNUSED(void, glMaterialx, (GLenum face, GLenum pname, GLfixed param))
   164 SDL_PROC_UNUSED(void, glMaterialxv,
   165                 (GLenum face, GLenum pname, const GLfixed * params))
   166 SDL_PROC(void, glMatrixMode, (GLenum mode))
   167 SDL_PROC_UNUSED(void, glMultMatrixx, (const GLfixed * m))
   168 SDL_PROC_UNUSED(void, glMultiTexCoord4x,
   169                 (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q))
   170 SDL_PROC_UNUSED(void, glNormal3x, (GLfixed nx, GLfixed ny, GLfixed nz))
   171 SDL_PROC_UNUSED(void, glNormalPointer,
   172                 (GLenum type, GLsizei stride, const GLvoid * pointer))
   173 SDL_PROC_UNUSED(void, glOrthox,
   174                 (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
   175                  GLfixed zNear, GLfixed zFar))
   176 SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param))
   177 SDL_PROC_UNUSED(void, glPointParameterx, (GLenum pname, GLfixed param))
   178 SDL_PROC_UNUSED(void, glPointParameterxv,
   179                 (GLenum pname, const GLfixed * params))
   180 SDL_PROC_UNUSED(void, glPointSizex, (GLfixed size))
   181 SDL_PROC_UNUSED(void, glPolygonOffsetx, (GLfixed factor, GLfixed units))
   182 SDL_PROC_UNUSED(void, glPopMatrix, (void))
   183 SDL_PROC_UNUSED(void, glPushMatrix, (void))
   184 SDL_PROC_UNUSED(void, glReadPixels,
   185                 (GLint x, GLint y, GLsizei width, GLsizei height,
   186                  GLenum format, GLenum type, GLvoid * pixels))
   187 SDL_PROC_UNUSED(void, glRotatex,
   188                 (GLfixed angle, GLfixed x, GLfixed y, GLfixed z))
   189 SDL_PROC_UNUSED(void, glSampleCoverage, (GLclampf value, GLboolean invert))
   190 SDL_PROC_UNUSED(void, glSampleCoveragex, (GLclampx value, GLboolean invert))
   191 SDL_PROC_UNUSED(void, glScalex, (GLfixed x, GLfixed y, GLfixed z))
   192 SDL_PROC(void, glScissor, (GLint x, GLint y, GLsizei width, GLsizei height))
   193 SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode))
   194 SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask))
   195 SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask))
   196 SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
   197 SDL_PROC(void, glTexCoordPointer,
   198          (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
   199 SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param))
   200 SDL_PROC_UNUSED(void, glTexEnvx, (GLenum target, GLenum pname, GLfixed param))
   201 SDL_PROC_UNUSED(void, glTexEnviv,
   202                 (GLenum target, GLenum pname, const GLint * params))
   203 SDL_PROC_UNUSED(void, glTexEnvxv,
   204                 (GLenum target, GLenum pname, const GLfixed * params))
   205 SDL_PROC(void, glTexImage2D,
   206          (GLenum target, GLint level, GLint internalformat, GLsizei width,
   207           GLsizei height, GLint border, GLenum format, GLenum type,
   208           const GLvoid * pixels))
   209 SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param))
   210 SDL_PROC_UNUSED(void, glTexParameterx,
   211                 (GLenum target, GLenum pname, GLfixed param))
   212 SDL_PROC(void, glTexParameteriv,
   213          (GLenum target, GLenum pname, const GLint * params))
   214 SDL_PROC_UNUSED(void, glTexParameterxv,
   215                 (GLenum target, GLenum pname, const GLfixed * params))
   216 SDL_PROC(void, glTexSubImage2D,
   217          (GLenum target, GLint level, GLint xoffset, GLint yoffset,
   218           GLsizei width, GLsizei height, GLenum format, GLenum type,
   219           const GLvoid * pixels))
   220 SDL_PROC_UNUSED(void, glTranslatex, (GLfixed x, GLfixed y, GLfixed z))
   221 SDL_PROC(void, glVertexPointer,
   222          (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
   223 SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
   224 
   225 /* extension functions used */
   226 SDL_PROC(void, glDrawTexiOES,
   227          (GLint x, GLint y, GLint z, GLint width, GLint height))
   228 
   229 /* vi: set ts=4 sw=4 expandtab: */