mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-25 20:25:42 +00:00
(GLSM) Add new wrapper functions
This commit is contained in:
parent
5d5ad0548a
commit
dd36a3792c
@ -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
|
||||
*
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user