(GLSM) Expand GLSM

This commit is contained in:
twinaphex 2016-05-16 20:07:29 +02:00
parent 3f9afce2cd
commit 2fa1c5abb2
2 changed files with 49 additions and 0 deletions

View File

@ -1338,6 +1338,42 @@ void rglUniform1iv(GLint location, GLsizei count, const GLint *value)
glUniform1iv(location, count, value);
}
void rglClearBufferfv( GLenum buffer,
GLint drawBuffer,
const GLfloat * value)
{
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES_3)
glClearBufferfv(buffer, drawBuffer, value);
#endif
}
void rglTexBuffer(GLenum target, GLenum internalFormat, GLuint buffer)
{
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES_3_2)
glTexBuffer(target, internalFormat, buffer);
#endif
}
const GLubyte* rglGetStringi(GLenum name, GLuint index)
{
glGetStringi(name, index);
}
void rglClearBufferfi( GLenum buffer,
GLint drawBuffer,
GLfloat depth,
GLint stencil)
{
#if defined(HAVE_OPENGL) || defined(HAVE_OPENGLES) && defined(HAVE_OPENGLES_3)
glClearBufferfi(buffer, drawBuffer, value);
#endif
}
/*
*
* Core in:
* OpenGL : 3.0
*/
void rglRenderbufferStorageMultisample( GLenum target,
GLsizei samples,
GLenum internalformat,

View File

@ -154,7 +154,20 @@ RETRO_BEGIN_DECLS
#define glUniform1iv rglUniform1iv
#define glUniform1fv rglUniform1fv
#define glValidateProgram rglValidateProgram
#define glGetStringi rglGetStringi
#define glTexBuffer rglTexBuffer
#define glClearBufferfv rglClearBufferfv
#define glClearBufferfi rglClearBufferfi
const GLubyte* rglGetStringi(GLenum name, GLuint index);
void rglTexBuffer(GLenum target, GLenum internalFormat, GLuint buffer);
void rglClearBufferfv( GLenum buffer,
GLint drawBuffer,
const GLfloat * value);
void rglClearBufferfi( GLenum buffer,
GLint drawBuffer,
GLfloat depth,
GLint stencil);
void rglValidateProgram(GLuint program);
void rglRenderbufferStorageMultisample( GLenum target,
GLsizei samples,