(libretro-common) Update GLSM

This commit is contained in:
twinaphex 2016-05-04 21:12:34 +02:00
parent 9465a00d4b
commit 5889489ff7
2 changed files with 48 additions and 0 deletions

View File

@ -649,6 +649,42 @@ void rglGetProgramiv(GLuint shader, GLenum pname, GLint *params)
glGetProgramiv(shader, pname, params);
}
/*
*
* Core in:
* OpenGL : 2.0
*/
void rglGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize,
GLsizei *length, GLint *size, GLenum *type, GLchar *name)
{
glGetActiveUniform(program, index, bufsize, length, size, type, name);
}
/*
*
* Core in:
* OpenGL : 2.0
*/
void rglUniform1ui(GLint location, GLuint v)
{
glUniform1ui(location ,v);
}
void rglUniform2ui(GLint location, GLuint v0, GLuint v1)
{
glUniform2ui(location, v0, v1);
}
void rglUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2)
{
glUniform3ui(location, v0, v1, v2);
}
void rglUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
{
glUniform4ui(location, v0, v1, v2, v3);
}
/*
*
* Core in:

View File

@ -95,6 +95,11 @@ RETRO_BEGIN_DECLS
#define glUniform3fv rglUniform3fv
#define glUniform4f rglUniform4f
#define glUniform4fv rglUniform4fv
#define glUniform1ui rglUniform1ui
#define glUniform2ui rglUniform2ui
#define glUniform3ui rglUniform3ui
#define glUniform4ui rglUniform4ui
#define glGetActiveUniform rglGetActiveUniform
#define glBlendFunc rglBlendFunc
#define glBlendFuncSeparate rglBlendFuncSeparate
#define glDepthFunc rglDepthFunc
@ -231,6 +236,13 @@ GLint rglGetAttribLocation(GLuint program, const GLchar *name);
void rglDrawBuffers(GLsizei n, const GLenum *bufs);
void rglBindVertexArray(GLuint array);
void rglGetActiveUniform(GLuint program, GLuint index, GLsizei bufsize,
GLsizei *length, GLint *size, GLenum *type, GLchar *name);
void rglUniform1ui(GLint location, GLuint v);
void rglUniform2ui(GLint location, GLuint v0, GLuint v1);
void rglUniform3ui(GLint location, GLuint v0, GLuint v1, GLuint v2);
void rglUniform4ui(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
RETRO_END_DECLS
#endif