Commit 74b3a6dc authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Update GLSM

parent 581fb425
This diff is collapsed.
/* Copyright (C) 2010-2016 The RetroArch team
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this libretro SDK code part (glsm.h).
......@@ -146,6 +146,7 @@ typedef struct glsm_ctx_params
bool stencil;
unsigned major;
unsigned minor;
enum retro_hw_context_type context_type;
} glsm_ctx_params_t;
GLuint glsm_get_current_framebuffer(void);
......
/* Copyright (C) 2010-2016 The RetroArch team
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this libretro SDK code part (glsmsym.h).
......@@ -33,6 +33,20 @@ RETRO_BEGIN_DECLS
#define glTexCoord2f rglTexCoord2f
/* more forward-compatible GL subset symbols */
#define glProvokingVertex rglProvokingVertex
#define glGetInteger64v rglGetInteger64v
#define glGenSamplers rglGenSamplers
#define glBindSampler rglBindSampler
#define glSamplerParameteri rglSamplerParameteri
#define glGetBufferSubData rglGetBufferSubData
#define glUniform2iv rglUniform2iv
#define glUniform2uiv rglUniform2uiv
#define glTextureView rglTextureView
#define glGetQueryObjectuiv rglGetQueryObjectuiv
#define glGenQueries rglGenQueries
#define glDeleteQueries rglDeleteQueries
#define glBeginQuery rglBeginQuery
#define glEndQuery rglEndQuery
#define glBlitFramebuffer rglBlitFramebuffer
#define glVertexAttrib4f rglVertexAttrib4f
#define glVertexAttrib4fv rglVertexAttrib4fv
......@@ -142,6 +156,7 @@ RETRO_BEGIN_DECLS
#define glClear rglClear
#define glPolygonMode rglPolygonMode
#define glLineWidth rglLineWidth
#define glTexImage3D rglTexImage3D
#define glTexImage2DMultisample rglTexImage2DMultisample
#define glTexStorage2DMultisample rglTexStorage2DMultisample
#define glMemoryBarrier rglMemoryBarrier
......@@ -161,6 +176,7 @@ RETRO_BEGIN_DECLS
#define glClearBufferfi rglClearBufferfi
#define glWaitSync rglWaitSync
#define glFenceSync rglFenceSync
#define glDeleteSync rglDeleteSync
#define glBufferStorage rglBufferStorage
#define glFlushMappedBufferRange rglFlushMappedBufferRange
#define glClientWaitSync rglClientWaitSync
......@@ -328,6 +344,27 @@ void rglVertexAttrib4f(GLuint name, GLfloat x, GLfloat y,
void rglVertexAttrib4fv(GLuint name, GLfloat* v);
void rglDeleteProgram(GLuint program);
void rglDeleteBuffers(GLsizei n, const GLuint *buffers);
void rglUniform2uiv( GLint location,
GLsizei count,
const GLuint *value);
void rglTextureView( GLuint texture,
GLenum target,
GLuint origtexture,
GLenum internalformat,
GLuint minlevel,
GLuint numlevels,
GLuint minlayer,
GLuint numlayers);
void rglGenQueries( GLsizei n,
GLuint * ids);
void rglDeleteQueries( GLsizei n,
const GLuint * ids);
void rglBeginQuery( GLenum target,
GLuint id);
void rglEndQuery( GLenum target);
void rglGetQueryObjectuiv( GLuint id,
GLenum pname,
GLuint * params);
void rglBlitFramebuffer(
GLint srcX0, GLint srcY0,
GLint srcX1, GLint srcY1,
......@@ -382,6 +419,16 @@ GLenum rglGetError(void);
void rglClear(GLbitfield mask);
void rglPolygonMode(GLenum face, GLenum mode);
void rglLineWidth(GLfloat width);
void rglTexImage3D( GLenum target,
GLint level,
GLint internalFormat,
GLsizei width,
GLsizei height,
GLsizei depth,
GLint border,
GLenum format,
GLenum type,
const GLvoid * data);
void rglTexImage2DMultisample( GLenum target,
GLsizei samples,
GLenum internalformat,
......@@ -400,12 +447,30 @@ void rglTexSubImage2D( GLenum target,
const GLvoid * pixels);
void rglDeleteVertexArrays(GLsizei n, const GLuint *arrays);
void *rglFenceSync(GLenum condition, GLbitfield flags);
void rglDeleteSync(void *sync);
void rglWaitSync(void *sync, GLbitfield flags, uint64_t timeout);
void rglBufferStorage(GLenum target, GLsizeiptr size, const GLvoid *data, GLbitfield flags);
void rglFlushMappedBufferRange(GLenum target, GLintptr offset, GLsizeiptr length);
GLenum rglClientWaitSync(void *sync, GLbitfield flags, uint64_t timeout);
void rglDrawElementsBaseVertex(GLenum mode, GLsizei count, GLenum type,
GLvoid *indices, GLint basevertex);
void rglGetBufferSubData( GLenum target,
GLintptr offset,
GLsizeiptr size,
GLvoid * data);
void rglSamplerParameteri( GLuint sampler,
GLenum pname,
GLint param);
void rglBindSampler( GLuint unit,
GLuint sampler);
void rglGenSamplers( GLsizei n,
GLuint *samplers);
void rglGetInteger64v( GLenum pname,
int64_t * data);
void rglUniform2iv( GLint location,
GLsizei count,
const GLint *value);
void rglProvokingVertex( GLenum provokeMode);
RETRO_END_DECLS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment