2015-06-21 17:33:46 +02:00
|
|
|
/*
|
|
|
|
Simple DirectMedia Layer
|
2020-01-17 05:49:25 +01:00
|
|
|
Copyright (C) 1997-2020 Sam Lantinga <slouken@libsdl.org>
|
2015-06-21 17:33:46 +02:00
|
|
|
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
|
|
warranty. In no event will the authors be held liable for any damages
|
|
|
|
arising from the use of this software.
|
|
|
|
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
|
|
including commercial applications, and to alter it and redistribute it
|
|
|
|
freely, subject to the following restrictions:
|
|
|
|
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
|
|
claim that you wrote the original software. If you use this software
|
|
|
|
in a product, an acknowledgment in the product documentation would be
|
|
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
SDL_PROC(void, glBindTexture, (GLenum, GLuint))
|
|
|
|
SDL_PROC(void, glBlendFunc, (GLenum, GLenum))
|
Implemented more flexible blending modes for accelerated renderers
This fixes bug 2594 - Propose new blend mode, SDL_BLENDMODE_BLEND_DSTA
blendMode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_SRC_ALPHA,
SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,
SDL_BLENDOPERATION_ADD,
SDL_BLENDFACTOR_ZERO,
SDL_BLENDFACTOR_ONE,
SDL_BLENDOPERATION_ADD);
This fixes bug 2828 - Subtractive Blending
blendMode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_SRC_ALPHA,
SDL_BLENDFACTOR_ONE,
SDL_BLENDOPERATION_SUBTRACT,
SDL_BLENDFACTOR_ZERO,
SDL_BLENDFACTOR_ONE,
SDL_BLENDOPERATION_SUBTRACT);
This goes partway to fixing bug 3684 - Add support for a pre-multiplied alpha blending mode
blendMode = SDL_ComposeCustomBlendMode(SDL_BLENDFACTOR_ONE,
SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,
SDL_BLENDOPERATION_ADD,
SDL_BLENDFACTOR_ONE,
SDL_BLENDFACTOR_ONE_MINUS_SRC_ALPHA,
SDL_BLENDOPERATION_ADD);
2017-08-14 14:51:44 +02:00
|
|
|
SDL_PROC_OES(void, glBlendEquationOES, (GLenum))
|
|
|
|
SDL_PROC_OES(void, glBlendEquationSeparateOES, (GLenum, GLenum))
|
2015-06-21 17:33:46 +02:00
|
|
|
SDL_PROC_OES(void, glBlendFuncSeparateOES, (GLenum, GLenum, GLenum, GLenum))
|
|
|
|
SDL_PROC(void, glClear, (GLbitfield))
|
|
|
|
SDL_PROC(void, glClearColor, (GLclampf, GLclampf, GLclampf, GLclampf))
|
|
|
|
SDL_PROC(void, glColor4f, (GLfloat, GLfloat, GLfloat, GLfloat))
|
|
|
|
SDL_PROC(void, glDeleteTextures, (GLsizei, const GLuint *))
|
|
|
|
SDL_PROC(void, glDisable, (GLenum))
|
|
|
|
SDL_PROC(void, glDisableClientState, (GLenum array))
|
|
|
|
SDL_PROC(void, glDrawArrays, (GLenum, GLint, GLsizei))
|
|
|
|
SDL_PROC_OES(void, glDrawTexfOES, (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat))
|
|
|
|
SDL_PROC(void, glEnable, (GLenum))
|
|
|
|
SDL_PROC(void, glEnableClientState, (GLenum))
|
|
|
|
SDL_PROC(void, glFinish, (void))
|
|
|
|
SDL_PROC_OES(void, glGenFramebuffersOES, (GLsizei, GLuint *))
|
|
|
|
SDL_PROC(void, glGenTextures, (GLsizei, GLuint *))
|
|
|
|
SDL_PROC(GLenum, glGetError, (void))
|
|
|
|
SDL_PROC(void, glGetIntegerv, (GLenum, GLint *))
|
|
|
|
SDL_PROC(void, glLoadIdentity, (void))
|
|
|
|
SDL_PROC(void, glMatrixMode, (GLenum))
|
|
|
|
SDL_PROC(void, glOrthof, (GLfloat, GLfloat, GLfloat, GLfloat, GLfloat, GLfloat))
|
|
|
|
SDL_PROC(void, glPixelStorei, (GLenum, GLint))
|
|
|
|
SDL_PROC(void, glReadPixels, (GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLvoid*))
|
|
|
|
SDL_PROC(void, glScissor, (GLint, GLint, GLsizei, GLsizei))
|
|
|
|
SDL_PROC(void, glTexCoordPointer, (GLint, GLenum, GLsizei, const GLvoid *))
|
|
|
|
SDL_PROC(void, glTexEnvf, (GLenum, GLenum, GLfloat))
|
|
|
|
SDL_PROC(void, glTexImage2D, (GLenum, GLint, GLint, GLsizei, GLsizei, GLint, GLenum, GLenum, const GLvoid *))
|
|
|
|
SDL_PROC(void, glTexParameteri, (GLenum, GLenum, GLint))
|
|
|
|
SDL_PROC(void, glTexParameteriv, (GLenum, GLenum, const GLint *))
|
|
|
|
SDL_PROC(void, glTexSubImage2D, (GLenum, GLint, GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, const GLvoid *))
|
|
|
|
SDL_PROC(void, glVertexPointer, (GLint, GLenum, GLsizei, const GLvoid *))
|
|
|
|
SDL_PROC(void, glViewport, (GLint, GLint, GLsizei, GLsizei))
|
|
|
|
SDL_PROC_OES(void, glBindFramebufferOES, (GLenum, GLuint))
|
|
|
|
SDL_PROC_OES(void, glFramebufferTexture2DOES, (GLenum, GLenum, GLenum, GLuint, GLint))
|
|
|
|
SDL_PROC_OES(GLenum, glCheckFramebufferStatusOES, (GLenum))
|
|
|
|
SDL_PROC(void, glPushMatrix, (void))
|
|
|
|
SDL_PROC(void, glTranslatef, (GLfloat, GLfloat, GLfloat))
|
|
|
|
SDL_PROC(void, glRotatef, (GLfloat, GLfloat, GLfloat, GLfloat))
|
|
|
|
SDL_PROC(void, glPopMatrix, (void))
|
|
|
|
SDL_PROC_OES(void, glDeleteFramebuffersOES, (GLsizei, const GLuint*))
|
|
|
|
|
|
|
|
/* vi: set ts=4 sw=4 expandtab: */
|