src/video/SDL_glesfuncs.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 07 Dec 2008 22:37:40 +0000
changeset 2853 6258fa7cd300
parent 2753 0969758c8809
child 2949 4eabc35fbb4a
permissions -rw-r--r--
Fixed picking blit function when RLE fails
     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_UNUSED(void, glColorPointer,
    90                 (GLint size, GLenum type, GLsizei stride,
    91                  const GLvoid * pointer))
    92 SDL_PROC_UNUSED(void, glCompressedTexImage2D,
    93                 (GLenum target, GLint level, GLenum internalformat,
    94                  GLsizei width, GLsizei height, GLint border,
    95                  GLsizei imageSize, const GLvoid * data))
    96 SDL_PROC_UNUSED(void, glCompressedTexSubImage2D,
    97                 (GLenum target, GLint level, GLint xoffset, GLint yoffset,
    98                  GLsizei width, GLsizei height, GLenum format,
    99                  GLsizei imageSize, const GLvoid * data))
   100 SDL_PROC_UNUSED(void, glCopyTexImage2D,
   101                 (GLenum target, GLint level, GLenum internalformat, GLint x,
   102                  GLint y, GLsizei width, GLsizei height, GLint border))
   103 SDL_PROC_UNUSED(void, glCopyTexSubImage2D,
   104                 (GLenum target, GLint level, GLint xoffset, GLint yoffset,
   105                  GLint x, GLint y, GLsizei width, GLsizei height))
   106 SDL_PROC_UNUSED(void, glCullFace, (GLenum mode))
   107 SDL_PROC_UNUSED(void, glDeleteBuffers, (GLsizei n, const GLuint * buffers))
   108 SDL_PROC_UNUSED(void, glDeleteTextures, (GLsizei n, const GLuint * textures))
   109 SDL_PROC_UNUSED(void, glDepthFunc, (GLenum func))
   110 SDL_PROC_UNUSED(void, glDepthMask, (GLboolean flag))
   111 SDL_PROC_UNUSED(void, glDepthRangex, (GLclampx zNear, GLclampx zFar))
   112 SDL_PROC(void, glDisable, (GLenum cap))
   113 SDL_PROC_UNUSED(void, glDisableClientState, (GLenum array))
   114 SDL_PROC(void, glDrawArrays, (GLenum mode, GLint first, GLsizei count))
   115 SDL_PROC_UNUSED(void, glDrawElements,
   116                 (GLenum mode, GLsizei count, GLenum type,
   117                  const GLvoid * indices))
   118 SDL_PROC(void, glEnable, (GLenum cap))
   119 SDL_PROC(void, glEnableClientState, (GLenum array))
   120 SDL_PROC_UNUSED(void, glFinish, (void))
   121 SDL_PROC_UNUSED(void, glFlush, (void))
   122 SDL_PROC_UNUSED(void, glFogx, (GLenum pname, GLfixed param))
   123 SDL_PROC_UNUSED(void, glFogxv, (GLenum pname, const GLfixed * params))
   124 SDL_PROC_UNUSED(void, glFrontFace, (GLenum mode))
   125 SDL_PROC_UNUSED(void, glFrustumx,
   126                 (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
   127                  GLfixed zNear, GLfixed zFar))
   128 SDL_PROC_UNUSED(void, glGetBooleanv, (GLenum pname, GLboolean * params))
   129 SDL_PROC_UNUSED(void, glGetBufferParameteriv,
   130                 (GLenum target, GLenum pname, GLint * params))
   131 SDL_PROC_UNUSED(void, glGetClipPlanex, (GLenum pname, GLfixed eqn[4]))
   132 SDL_PROC_UNUSED(void, glGenBuffers, (GLsizei n, GLuint * buffers))
   133 SDL_PROC(void, glGenTextures, (GLsizei n, GLuint * textures))
   134 SDL_PROC(GLenum, glGetError, (void))
   135 SDL_PROC_UNUSED(void, glGetFixedv, (GLenum pname, GLfixed * params))
   136 SDL_PROC(void, glGetIntegerv, (GLenum pname, GLint * params))
   137 SDL_PROC_UNUSED(void, glGetLightxv,
   138                 (GLenum light, GLenum pname, GLfixed * params))
   139 SDL_PROC_UNUSED(void, glGetMaterialxv,
   140                 (GLenum face, GLenum pname, GLfixed * params))
   141 SDL_PROC_UNUSED(void, glGetPointerv, (GLenum pname, void **params))
   142 SDL_PROC_UNUSED(const GLubyte *, glGetString, (GLenum name))
   143 SDL_PROC_UNUSED(void, glGetTexEnviv,
   144                 (GLenum env, GLenum pname, GLint * params))
   145 SDL_PROC_UNUSED(void, glGetTexEnvxv,
   146                 (GLenum env, GLenum pname, GLfixed * params))
   147 SDL_PROC_UNUSED(void, glGetTexParameteriv,
   148                 (GLenum target, GLenum pname, GLint * params))
   149 SDL_PROC_UNUSED(void, glGetTexParameterxv,
   150                 (GLenum target, GLenum pname, GLfixed * params))
   151 SDL_PROC_UNUSED(void, glHint, (GLenum target, GLenum mode))
   152 SDL_PROC_UNUSED(GLboolean, glIsBuffer, (GLuint buffer))
   153 SDL_PROC_UNUSED(GLboolean, glIsEnabled, (GLenum cap))
   154 SDL_PROC_UNUSED(GLboolean, glIsTexture, (GLuint texture))
   155 SDL_PROC_UNUSED(void, glLightModelx, (GLenum pname, GLfixed param))
   156 SDL_PROC_UNUSED(void, glLightModelxv, (GLenum pname, const GLfixed * params))
   157 SDL_PROC_UNUSED(void, glLightx, (GLenum light, GLenum pname, GLfixed param))
   158 SDL_PROC_UNUSED(void, glLightxv,
   159                 (GLenum light, GLenum pname, const GLfixed * params))
   160 SDL_PROC_UNUSED(void, glLineWidthx, (GLfixed width))
   161 SDL_PROC(void, glLoadIdentity, (void))
   162 SDL_PROC_UNUSED(void, glLoadMatrixx, (const GLfixed * m))
   163 SDL_PROC_UNUSED(void, glLogicOp, (GLenum opcode))
   164 SDL_PROC_UNUSED(void, glMaterialx, (GLenum face, GLenum pname, GLfixed param))
   165 SDL_PROC_UNUSED(void, glMaterialxv,
   166                 (GLenum face, GLenum pname, const GLfixed * params))
   167 SDL_PROC(void, glMatrixMode, (GLenum mode))
   168 SDL_PROC_UNUSED(void, glMultMatrixx, (const GLfixed * m))
   169 SDL_PROC_UNUSED(void, glMultiTexCoord4x,
   170                 (GLenum target, GLfixed s, GLfixed t, GLfixed r, GLfixed q))
   171 SDL_PROC_UNUSED(void, glNormal3x, (GLfixed nx, GLfixed ny, GLfixed nz))
   172 SDL_PROC_UNUSED(void, glNormalPointer,
   173                 (GLenum type, GLsizei stride, const GLvoid * pointer))
   174 SDL_PROC_UNUSED(void, glOrthox,
   175                 (GLfixed left, GLfixed right, GLfixed bottom, GLfixed top,
   176                  GLfixed zNear, GLfixed zFar))
   177 SDL_PROC(void, glPixelStorei, (GLenum pname, GLint param))
   178 SDL_PROC_UNUSED(void, glPointParameterx, (GLenum pname, GLfixed param))
   179 SDL_PROC_UNUSED(void, glPointParameterxv,
   180                 (GLenum pname, const GLfixed * params))
   181 SDL_PROC_UNUSED(void, glPointSizex, (GLfixed size))
   182 SDL_PROC_UNUSED(void, glPolygonOffsetx, (GLfixed factor, GLfixed units))
   183 SDL_PROC_UNUSED(void, glPopMatrix, (void))
   184 SDL_PROC_UNUSED(void, glPushMatrix, (void))
   185 SDL_PROC_UNUSED(void, glReadPixels,
   186                 (GLint x, GLint y, GLsizei width, GLsizei height,
   187                  GLenum format, GLenum type, GLvoid * pixels))
   188 SDL_PROC_UNUSED(void, glRotatex,
   189                 (GLfixed angle, GLfixed x, GLfixed y, GLfixed z))
   190 SDL_PROC_UNUSED(void, glSampleCoverage, (GLclampf value, GLboolean invert))
   191 SDL_PROC_UNUSED(void, glSampleCoveragex, (GLclampx value, GLboolean invert))
   192 SDL_PROC_UNUSED(void, glScalex, (GLfixed x, GLfixed y, GLfixed z))
   193 SDL_PROC(void, glScissor, (GLint x, GLint y, GLsizei width, GLsizei height))
   194 SDL_PROC_UNUSED(void, glShadeModel, (GLenum mode))
   195 SDL_PROC_UNUSED(void, glStencilFunc, (GLenum func, GLint ref, GLuint mask))
   196 SDL_PROC_UNUSED(void, glStencilMask, (GLuint mask))
   197 SDL_PROC_UNUSED(void, glStencilOp, (GLenum fail, GLenum zfail, GLenum zpass))
   198 SDL_PROC(void, glTexCoordPointer,
   199          (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
   200 SDL_PROC_UNUSED(void, glTexEnvi, (GLenum target, GLenum pname, GLint param))
   201 SDL_PROC_UNUSED(void, glTexEnvx, (GLenum target, GLenum pname, GLfixed param))
   202 SDL_PROC_UNUSED(void, glTexEnviv,
   203                 (GLenum target, GLenum pname, const GLint * params))
   204 SDL_PROC_UNUSED(void, glTexEnvxv,
   205                 (GLenum target, GLenum pname, const GLfixed * params))
   206 SDL_PROC(void, glTexImage2D,
   207          (GLenum target, GLint level, GLint internalformat, GLsizei width,
   208           GLsizei height, GLint border, GLenum format, GLenum type,
   209           const GLvoid * pixels))
   210 SDL_PROC(void, glTexParameteri, (GLenum target, GLenum pname, GLint param))
   211 SDL_PROC_UNUSED(void, glTexParameterx,
   212                 (GLenum target, GLenum pname, GLfixed param))
   213 SDL_PROC(void, glTexParameteriv,
   214          (GLenum target, GLenum pname, const GLint * params))
   215 SDL_PROC_UNUSED(void, glTexParameterxv,
   216                 (GLenum target, GLenum pname, const GLfixed * params))
   217 SDL_PROC(void, glTexSubImage2D,
   218          (GLenum target, GLint level, GLint xoffset, GLint yoffset,
   219           GLsizei width, GLsizei height, GLenum format, GLenum type,
   220           const GLvoid * pixels))
   221 SDL_PROC_UNUSED(void, glTranslatex, (GLfixed x, GLfixed y, GLfixed z))
   222 SDL_PROC(void, glVertexPointer,
   223          (GLint size, GLenum type, GLsizei stride, const GLvoid * pointer))
   224 SDL_PROC(void, glViewport, (GLint x, GLint y, GLsizei width, GLsizei height))
   225 
   226 /* extension functions used */
   227 SDL_PROC(void, glDrawTexiOES,
   228          (GLint x, GLint y, GLint z, GLint width, GLint height))
   229 
   230 /* vi: set ts=4 sw=4 expandtab: */