(GLSM) Add new wrapper functions

This commit is contained in:
twinaphex 2016-05-06 22:20:03 +02:00
parent 5d5ad0548a
commit dd36a3792c
2 changed files with 48 additions and 0 deletions

View File

@ -184,6 +184,46 @@ static struct gl_cached_state gl_state;
/* GL wrapper-side */
/*
*
* Core in:
* OpenGL : 1.0
*/
GLenum GLenum rglGetError(void)
{
return glGetError();
}
/*
*
* Core in:
* OpenGL : 1.0
*/
void rglClear(GLbitfield mask)
{
glClear(mask);
}
/*
*
* Core in:
* OpenGL : 1.0
*/
void rglPolygonMode(GLenum face, GLenum mode)
{
glPolygonMode(face, mode);
}
/*
*
* Core in:
* OpenGL : 1.0
*/
void rglLineWidth(GLfloat width)
{
glLineWidth(width);
}
/*
* Category: FBO
*

View File

@ -137,6 +137,10 @@ RETRO_BEGIN_DECLS
#define glBindBufferBase rglBindBufferBase
#define glGetUniformIndices rglGetUniformIndices
#define glGetActiveUniformsiv rglGetActiveUniformsiv
#define glGetError rglGetError
#define glClear rglClear
#define glPolygonMode rglPolygonMode
#define glLineWidth rglLineWidth
void rglGetActiveUniformsiv( GLuint program,
GLsizei uniformCount,
@ -310,6 +314,10 @@ void rglVertexAttribLPointer(
void rglUniformBlockBinding( GLuint program,
GLuint uniformBlockIndex,
GLuint uniformBlockBinding);
GLenum rglGetError(void);
void rglClear(GLbitfield mask);
void rglPolygonMode(GLenum face, GLenum mode);
void rglLineWidth(GLfloat width);
RETRO_END_DECLS