mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
(GLSM) Extend GLSM
This commit is contained in:
parent
9e9584c42d
commit
3f9afce2cd
@ -201,6 +201,16 @@ void rglClear(GLbitfield mask)
|
||||
glClear(mask);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 2.0
|
||||
*/
|
||||
void rglValidateProgram(GLuint program)
|
||||
{
|
||||
glValidateProgram(program);
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Core in:
|
||||
@ -1306,6 +1316,37 @@ void rglUniform1f(GLint location, GLfloat v0)
|
||||
glUniform1f(location, v0);
|
||||
}
|
||||
|
||||
/*
|
||||
* Category: Shaders
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 2.0
|
||||
*/
|
||||
void rglUniform1fv(GLint location, GLsizei count, const GLfloat *value)
|
||||
{
|
||||
glUniform1fv(location, count, value);
|
||||
}
|
||||
|
||||
/*
|
||||
* Category: Shaders
|
||||
*
|
||||
* Core in:
|
||||
* OpenGL : 2.0
|
||||
*/
|
||||
void rglUniform1iv(GLint location, GLsizei count, const GLint *value)
|
||||
{
|
||||
glUniform1iv(location, count, value);
|
||||
}
|
||||
|
||||
void rglRenderbufferStorageMultisample( GLenum target,
|
||||
GLsizei samples,
|
||||
GLenum internalformat,
|
||||
GLsizei width,
|
||||
GLsizei height)
|
||||
{
|
||||
glRenderbufferStorageMultisample(target, samples, internalFormat, width, height);
|
||||
}
|
||||
|
||||
/*
|
||||
* Category: Shaders
|
||||
*
|
||||
|
@ -150,7 +150,19 @@ RETRO_BEGIN_DECLS
|
||||
#define glProgramParameteri rglProgramParameteri
|
||||
#define glTexSubImage2D rglTexSubImage2D
|
||||
#define glDeleteVertexArrays rglDeleteVertexArrays
|
||||
#define glRenderbufferStorageMultisample rglRenderbufferStorageMultisample
|
||||
#define glUniform1iv rglUniform1iv
|
||||
#define glUniform1fv rglUniform1fv
|
||||
#define glValidateProgram rglValidateProgram
|
||||
|
||||
void rglValidateProgram(GLuint program);
|
||||
void rglRenderbufferStorageMultisample( GLenum target,
|
||||
GLsizei samples,
|
||||
GLenum internalformat,
|
||||
GLsizei width,
|
||||
GLsizei height);
|
||||
void rglUniform1iv(GLint location, GLsizei count, const GLint *value);
|
||||
void rglUniform1fv(GLint location, GLsizei count, const GLfloat *value);
|
||||
void rglProgramParameteri( GLuint program,
|
||||
GLenum pname,
|
||||
GLint value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user