src/render/opengles2/SDL_gles2funcs.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 21 Jun 2014 12:45:54 -0700
changeset 8892 2c4d3823fdbb
parent 8833 ae720d61d14d
child 9278 8900afb78a19
permissions -rw-r--r--
Fixed compiler warning with new OpenGL ES header files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8616
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     1
/*
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     2
  Simple DirectMedia Layer
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     3
  Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     4
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     5
  This software is provided 'as-is', without any express or implied
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     6
  warranty.  In no event will the authors be held liable for any damages
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     7
  arising from the use of this software.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     8
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
     9
  Permission is granted to anyone to use this software for any purpose,
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    10
  including commercial applications, and to alter it and redistribute it
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    11
  freely, subject to the following restrictions:
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    12
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    13
  1. The origin of this software must not be misrepresented; you must not
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    14
     claim that you wrote the original software. If you use this software
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    15
     in a product, an acknowledgment in the product documentation would be
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    16
     appreciated but is not required.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    17
  2. Altered source versions must be plainly marked as such, and must not be
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    18
     misrepresented as being the original software.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    19
  3. This notice may not be removed or altered from any source distribution.
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    20
*/
ec011c16e2fd Added missing copyright notices
Sam Lantinga <slouken@libsdl.org>
parents: 8021
diff changeset
    21
6188
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    22
SDL_PROC(void, glActiveTexture, (GLenum))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    23
SDL_PROC(void, glAttachShader, (GLuint, GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    24
SDL_PROC(void, glBindAttribLocation, (GLuint, GLuint, const char *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    25
SDL_PROC(void, glBindTexture, (GLenum, GLuint))
7502
6ff02ff3cf06 Updated blend semantics so blending uses the following formula:
Sam Lantinga <slouken@libsdl.org>
parents: 7160
diff changeset
    26
SDL_PROC(void, glBlendFuncSeparate, (GLenum, GLenum, GLenum, GLenum))
6188
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    27
SDL_PROC(void, glClear, (GLbitfield))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    28
SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    29
SDL_PROC(void, glCompileShader, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    30
SDL_PROC(GLuint, glCreateProgram, (void))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    31
SDL_PROC(GLuint, glCreateShader, (GLenum))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    32
SDL_PROC(void, glDeleteProgram, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    33
SDL_PROC(void, glDeleteShader, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    34
SDL_PROC(void, glDeleteTextures, (GLsizei, const GLuint *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    35
SDL_PROC(void, glDisable, (GLenum))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    36
SDL_PROC(void, glDisableVertexAttribArray, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    37
SDL_PROC(void, glDrawArrays, (GLenum, GLint, GLsizei))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    38
SDL_PROC(void, glEnable, (GLenum))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    39
SDL_PROC(void, glEnableVertexAttribArray, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    40
SDL_PROC(void, glFinish, (void))
6269
07e08cb58696 Added glGenFramebuffers() to the function pointer list
Sam Lantinga <slouken@libsdl.org>
parents: 6232
diff changeset
    41
SDL_PROC(void, glGenFramebuffers, (GLsizei, GLuint *))
6188
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    42
SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    43
SDL_PROC(void, glGetBooleanv, (GLenum, GLboolean *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    44
SDL_PROC(const GLubyte *, glGetString, (GLenum))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    45
SDL_PROC(GLenum, glGetError, (void))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    46
SDL_PROC(void, glGetIntegerv, (GLenum, GLint *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    47
SDL_PROC(void, glGetProgramiv, (GLuint, GLenum, GLint *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    48
SDL_PROC(void, glGetShaderInfoLog, (GLuint, GLsizei, GLsizei *, char *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    49
SDL_PROC(void, glGetShaderiv, (GLuint, GLenum, GLint *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    50
SDL_PROC(GLint, glGetUniformLocation, (GLuint, const char *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    51
SDL_PROC(void, glLinkProgram, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    52
SDL_PROC(void, glPixelStorei, (GLenum, GLint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    53
SDL_PROC(void, glReadPixels, (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*))
7160
bfb5f8f4f006 Fixes OpenGL* Clip Rect functions (by Emmanuel Gil Peyrot)
Gabriel Jacobo <gabomdq@gmail.com>
parents: 6269
diff changeset
    54
SDL_PROC(void, glScissor, (GLint, GLint, GLsizei, GLsizei))
6188
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    55
SDL_PROC(void, glShaderBinary, (GLsizei, const GLuint *, GLenum, const void *, GLsizei))
8892
2c4d3823fdbb Fixed compiler warning with new OpenGL ES header files
Sam Lantinga <slouken@libsdl.org>
parents: 8833
diff changeset
    56
SDL_PROC(void, glShaderSource, (GLuint, GLsizei, const GLchar* const*, const GLint *))
6188
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    57
SDL_PROC(void, glTexImage2D, (GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const void *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    58
SDL_PROC(void, glTexParameteri, (GLenum, GLenum, GLint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    59
SDL_PROC(void, glTexSubImage2D, (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    60
SDL_PROC(void, glUniform1i, (GLint, GLint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    61
SDL_PROC(void, glUniform4f, (GLint, GLfloat, GLfloat, GLfloat, GLfloat))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    62
SDL_PROC(void, glUniformMatrix4fv, (GLint, GLsizei, GLboolean, const GLfloat *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    63
SDL_PROC(void, glUseProgram, (GLuint))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    64
SDL_PROC(void, glVertexAttribPointer, (GLuint, GLint, GLenum, GLboolean, GLsizei, const void *))
e82023802002 Fixed bug 1242 - PATCH: Improve support for OpenGL ES under X11
Sam Lantinga <slouken@libsdl.org>
parents:
diff changeset
    65
SDL_PROC(void, glViewport, (GLint, GLint, GLsizei, GLsizei))
6232
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6188
diff changeset
    66
SDL_PROC(void, glBindFramebuffer, (GLenum, GLuint))
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6188
diff changeset
    67
SDL_PROC(void, glFramebufferTexture2D, (GLenum, GLenum, GLenum, GLuint, GLint))
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6188
diff changeset
    68
SDL_PROC(GLenum, glCheckFramebufferStatus, (GLenum))
37e8d0736366 Implementation of render targets, by Mason Wheeler and Gabriel Jacobo
Sam Lantinga <slouken@libsdl.org>
parents: 6188
diff changeset
    69
SDL_PROC(void, glDeleteFramebuffers, (GLsizei, const GLuint *))
8021
f96e12e0ade9 OpenGL ES support for Windows
Gabriel Jacobo <gabomdq@gmail.com>
parents: 7502
diff changeset
    70
SDL_PROC(GLint, glGetAttribLocation, (GLuint, const GLchar *))
8833
ae720d61d14d Chrome's Native Client backend implementation
Gabriel Jacobo <gabomdq@gmail.com>
parents: 8616
diff changeset
    71
SDL_PROC(void, glGetProgramInfoLog, (GLuint, GLsizei, GLsizei*, GLchar*))