src/video/SDL_glesfuncs.h
author Sam Lantinga <slouken@libsdl.org>
Tue, 15 Dec 2009 08:11:06 +0000
changeset 3565 f43c8f688f77
parent 2964 0faae272a372
permissions -rw-r--r--
Fixed bug #906

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