src/render/opengles/SDL_glesfuncs.h
author Sam Lantinga <slouken@libsdl.org>
Sun, 08 Jan 2012 13:31:22 -0500
changeset 6190 519380462400
parent 6188 e82023802002
child 6232 37e8d0736366
permissions -rw-r--r--
X11 OpenGL ES minor corrections

Scott Percival 2012-01-08 04:21:22 PST

I tested the new build on my two ARM machines, and fixed a few bugs:
- if SDL_VIDEO_DRIVER_UIKIT, SDL_VIDEO_DRIVER_ANDROID or
SDL_VIDEO_DRIVER_PANDORA are specified, function pointers are grabbed from the
compile-linked library instead of through SDL_GL_GetProcAddress. (not sure if
this is the best way to go about it)
- removing "/usr/lib/" from all the library names (hey, with multiarch you
can't be too sure anymore)
- added glFinish to glesfuncs.h
- changed the eglGetProcAddress arg type to "const char *" as per the EGL spec
- filled in the stubs for X11_GLES_SetSwapInterval and X11_GLES_GetSwapInterval
slouken@6188
     1
SDL_PROC(void, glBindTexture, (GLenum, GLuint))
slouken@6188
     2
SDL_PROC(void, glBlendFunc, (GLenum, GLenum))
slouken@6188
     3
SDL_PROC(void, glClear, (GLbitfield))
slouken@6188
     4
SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
slouken@6188
     5
SDL_PROC(void, glColor4f, (GLfloat, GLfloat, GLfloat, GLfloat))
slouken@6188
     6
SDL_PROC(void, glDeleteTextures, (GLsizei, const GLuint *))
slouken@6188
     7
SDL_PROC(void, glDisable, (GLenum))
slouken@6188
     8
SDL_PROC(void, glDisableClientState, (GLenum array))
slouken@6188
     9
SDL_PROC(void, glDrawArrays, (GLenum, GLint, GLsizei))
slouken@6188
    10
SDL_PROC(void, glDrawTexiOES, (GLint, GLint, GLint, GLint, GLint))
slouken@6188
    11
SDL_PROC(void, glEnable, (GLenum))
slouken@6188
    12
SDL_PROC(void, glEnableClientState, (GLenum))
slouken@6190
    13
SDL_PROC(void, glFinish, (void))
slouken@6188
    14
SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
slouken@6188
    15
SDL_PROC(GLenum, glGetError, (void))
slouken@6188
    16
SDL_PROC(void, glGetIntegerv, (GLenum, GLint *))
slouken@6188
    17
SDL_PROC(void, glLoadIdentity, (void))
slouken@6188
    18
SDL_PROC(void, glMatrixMode, (GLenum))
slouken@6188
    19
SDL_PROC(void, glOrthof, (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat))
slouken@6188
    20
SDL_PROC(void, glPixelStorei, (GLenum, GLint))
slouken@6188
    21
SDL_PROC(void, glReadPixels, (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*))
slouken@6188
    22
SDL_PROC(void, glTexCoordPointer, (GLint, GLenum, GLsizei, const GLvoid *))
slouken@6188
    23
SDL_PROC(void, glTexEnvf, (GLenum, GLenum, GLfloat))
slouken@6188
    24
SDL_PROC(void, glTexImage2D, (GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
slouken@6188
    25
SDL_PROC(void, glTexParameteri, (GLenum, GLenum, GLint))
slouken@6188
    26
SDL_PROC(void, glTexParameteriv, (GLenum, GLenum, const GLint *))
slouken@6188
    27
SDL_PROC(void, glTexSubImage2D, (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
slouken@6188
    28
SDL_PROC(void, glVertexPointer, (GLint, GLenum, GLsizei, const GLvoid *))
slouken@6188
    29
SDL_PROC(void, glViewport, (GLint, GLint, GLsizei, GLsizei))
slouken@6188
    30
slouken@6188
    31
/* vi: set ts=4 sw=4 expandtab: */