RetroArch
Classes | Macros | Functions | Variables
glsm.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <glsym/glsym.h>
#include <glsm/glsm.h>
Include dependency graph for glsm.c:

Classes

struct  gl_cached_state
 

Macros

#define GL_DEPTH_CLAMP   0x864F
 
#define GL_RASTERIZER_DISCARD   0x8C89
 
#define GL_SAMPLE_MASK   0x8E51
 
#define GL_WAIT_FAILED   0x911D
 

Functions

GLenum rglGetError (void)
 
void rglProvokingVertex (GLenum provokeMode)
 
void rglGetInteger64v (GLenum pname, int64_t *data)
 
void rglSamplerParameteri (GLuint sampler, GLenum pname, GLint param)
 
void rglGenSamplers (GLsizei n, GLuint *samplers)
 
void rglBindSampler (GLuint unit, GLuint sampler)
 
void rglClear (GLbitfield mask)
 
void rglValidateProgram (GLuint program)
 
void rglPolygonMode (GLenum face, GLenum mode)
 
void rglTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
 
void rglGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data)
 
void rglLineWidth (GLfloat width)
 
void rglBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter)
 
void rglReadBuffer (GLenum mode)
 
void rglClearDepth (GLdouble depth)
 
void rglPixelStorei (GLenum pname, GLint param)
 
void rglDepthRange (GLclampd zNear, GLclampd zFar)
 
void rglFrontFace (GLenum mode)
 
void rglDepthFunc (GLenum func)
 
void rglColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
 
void rglCullFace (GLenum mode)
 
void rglStencilOp (GLenum sfail, GLenum dpfail, GLenum dppass)
 
void rglStencilFunc (GLenum func, GLint ref, GLuint mask)
 
GLboolean rglIsEnabled (GLenum cap)
 
void rglClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
 
void rglScissor (GLint x, GLint y, GLsizei width, GLsizei height)
 
void rglViewport (GLint x, GLint y, GLsizei width, GLsizei height)
 
void rglBlendFunc (GLenum sfactor, GLenum dfactor)
 
void rglBlendFuncSeparate (GLenum sfactor, GLenum dfactor)
 
void rglActiveTexture (GLenum texture)
 
void rglBindTexture (GLenum target, GLuint texture)
 
void rglDisable (GLenum cap)
 
void rglEnable (GLenum cap)
 
void rglUseProgram (GLuint program)
 
void rglDepthMask (GLboolean flag)
 
void rglStencilMask (GLenum mask)
 
void rglBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage)
 
void rglBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data)
 
void rglBindBuffer (GLenum target, GLuint buffer)
 
void rglLinkProgram (GLuint program)
 
void rglFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
 
void rglFramebufferTexture (GLenum target, GLenum attachment, GLuint texture, GLint level)
 
void rglDrawArrays (GLenum mode, GLint first, GLsizei count)
 
void rglDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices)
 
void rglCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
 
void rglDeleteFramebuffers (GLsizei n, const GLuint *framebuffers)
 
void rglDeleteTextures (GLsizei n, const GLuint *textures)
 
void rglRenderbufferStorage (GLenum target, GLenum internalFormat, GLsizei width, GLsizei height)
 
void rglBindRenderbuffer (GLenum target, GLuint renderbuffer)
 
void rglDeleteRenderbuffers (GLsizei n, GLuint *renderbuffers)
 
void rglGenRenderbuffers (GLsizei n, GLuint *renderbuffers)
 
void rglGenerateMipmap (GLenum target)
 
GLenum rglCheckFramebufferStatus (GLenum target)
 
void rglFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer)
 
void rglBindFragDataLocation (GLuint program, GLuint colorNumber, const char *name)
 
void rglGetProgramiv (GLuint shader, GLenum pname, GLint *params)
 
void rglProgramParameteri (GLuint program, GLenum pname, GLint value)
 
void rglGetActiveUniform (GLuint program, GLuint index, GLsizei bufsize, GLsizei *length, GLint *size, GLenum *type, GLchar *name)
 
void rglGenQueries (GLsizei n, GLuint *ids)
 
void rglGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params)
 
void rglDeleteQueries (GLsizei n, const GLuint *ids)
 
void rglBeginQuery (GLenum target, GLuint id)
 
void rglEndQuery (GLenum target)
 
void rglGetActiveUniformBlockiv (GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint *params)
 
void rglGetActiveUniformsiv (GLuint program, GLsizei uniformCount, const GLuint *uniformIndices, GLenum pname, GLint *params)
 
void rglGetUniformIndices (GLuint program, GLsizei uniformCount, const GLchar **uniformNames, GLuint *uniformIndices)
 
void rglBindBufferBase (GLenum target, GLuint index, GLuint buffer)
 
GLuint rglGetUniformBlockIndex (GLuint program, const GLchar *uniformBlockName)
 
void rglUniformBlockBinding (GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding)
 
void rglUniform1ui (GLint location, GLuint v)
 
void rglUniform2ui (GLint location, GLuint v0, GLuint v1)
 
void rglUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2)
 
void rglUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3)
 
void rglUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value)
 
void rglDetachShader (GLuint program, GLuint shader)
 
void rglGetShaderiv (GLuint shader, GLenum pname, GLint *params)
 
void rglAttachShader (GLuint program, GLuint shader)
 
GLint rglGetAttribLocation (GLuint program, const GLchar *name)
 
void rglShaderSource (GLuint shader, GLsizei count, const GLchar **string, const GLint *length)
 
void rglCompileShader (GLuint shader)
 
GLuint rglCreateProgram (void)
 
void rglGenTextures (GLsizei n, GLuint *textures)
 
void rglGetShaderInfoLog (GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
 
void rglGetProgramInfoLog (GLuint shader, GLsizei maxLength, GLsizei *length, GLchar *infoLog)
 
GLboolean rglIsProgram (GLuint program)
 
void rglTexCoord2f (GLfloat s, GLfloat t)
 
void rglDisableVertexAttribArray (GLuint index)
 
void rglEnableVertexAttribArray (GLuint index)
 
void rglVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 
void rglVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
 
void rglVertexAttribPointer (GLuint name, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer)
 
void rglBindAttribLocation (GLuint program, GLuint index, const GLchar *name)
 
void rglVertexAttrib4f (GLuint name, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
 
void rglVertexAttrib4fv (GLuint name, GLfloat *v)
 
GLuint rglCreateShader (GLenum shaderType)
 
void rglDeleteProgram (GLuint program)
 
void rglDeleteShader (GLuint shader)
 
GLint rglGetUniformLocation (GLuint program, const GLchar *name)
 
void rglDeleteBuffers (GLsizei n, const GLuint *buffers)
 
void rglGenBuffers (GLsizei n, GLuint *buffers)
 
void rglUniform1f (GLint location, GLfloat v0)
 
void rglUniform1fv (GLint location, GLsizei count, const GLfloat *value)
 
void rglUniform1iv (GLint location, GLsizei count, const GLint *value)
 
void rglClearBufferfv (GLenum buffer, GLint drawBuffer, const GLfloat *value)
 
void rglTexBuffer (GLenum target, GLenum internalFormat, GLuint buffer)
 
const GLubyterglGetStringi (GLenum name, GLuint index)
 
void rglClearBufferfi (GLenum buffer, GLint drawBuffer, GLfloat depth, GLint stencil)
 
void rglRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height)
 
void rglUniform1i (GLint location, GLint v0)
 
void rglUniform2f (GLint location, GLfloat v0, GLfloat v1)
 
void rglUniform2i (GLint location, GLint v0, GLint v1)
 
void rglUniform2fv (GLint location, GLsizei count, const GLfloat *value)
 
void rglUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2)
 
void rglUniform3fv (GLint location, GLsizei count, const GLfloat *value)
 
void rglUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3)
 
void rglUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3)
 
void rglUniform4fv (GLint location, GLsizei count, const GLfloat *value)
 
void rglPolygonOffset (GLfloat factor, GLfloat units)
 
void rglGenFramebuffers (GLsizei n, GLuint *ids)
 
void rglBindFramebuffer (GLenum target, GLuint framebuffer)
 
void rglDrawBuffers (GLsizei n, const GLenum *bufs)
 
voidrglMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access)
 
void rglTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
 
void rglTexStorage2D (GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height)
 
void rglDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, GLvoid *indices, GLint basevertex)
 
void rglMemoryBarrier (GLbitfield barriers)
 
void rglBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format)
 
void rglGetProgramBinary (GLuint program, GLsizei bufsize, GLsizei *length, GLenum *binaryFormat, void *binary)
 
void rglProgramBinary (GLuint program, GLenum binaryFormat, const void *binary, GLsizei length)
 
void rglTexImage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations)
 
void rglTexImage3D (GLenum target, GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *data)
 
voidrglMapBuffer (GLenum target, GLenum access)
 
GLboolean rglUnmapBuffer (GLenum target)
 
void rglBlendEquation (GLenum mode)
 
void rglBlendColor (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha)
 
void rglBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha)
 
void rglCopyImageSubData (GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei srcWidth, GLsizei srcHeight, GLsizei srcDepth)
 
void rglBindVertexArray (GLuint array)
 
void rglGenVertexArrays (GLsizei n, GLuint *arrays)
 
void rglDeleteVertexArrays (GLsizei n, const GLuint *arrays)
 
voidrglFenceSync (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 rglUniform2iv (GLint location, GLsizei count, const GLint *value)
 
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 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)
 
static void glsm_state_setup (void)
 
static void glsm_state_bind (void)
 
static void glsm_state_unbind (void)
 
static bool glsm_state_ctx_destroy (void *data)
 
static bool glsm_state_ctx_init (glsm_ctx_params_t *params)
 
GLuint glsm_get_current_framebuffer (void)
 
bool glsm_ctl (enum glsm_state_ctl state, void *data)
 

Variables

static GLuint default_framebuffer
 
static GLint glsm_max_textures
 
struct retro_hw_render_callback hw_render
 
static struct gl_cached_state gl_state
 

Macro Definition Documentation

◆ GL_DEPTH_CLAMP

#define GL_DEPTH_CLAMP   0x864F

◆ GL_RASTERIZER_DISCARD

#define GL_RASTERIZER_DISCARD   0x8C89

◆ GL_SAMPLE_MASK

#define GL_SAMPLE_MASK   0x8E51

◆ GL_WAIT_FAILED

#define GL_WAIT_FAILED   0x911D

Function Documentation

◆ glsm_ctl()

bool glsm_ctl ( enum glsm_state_ctl  state,
void data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ glsm_get_current_framebuffer()

GLuint glsm_get_current_framebuffer ( void  )
Here is the caller graph for this function:

◆ glsm_state_bind()

static void glsm_state_bind ( void  )
static
Here is the caller graph for this function:

◆ glsm_state_ctx_destroy()

static bool glsm_state_ctx_destroy ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ glsm_state_ctx_init()

static bool glsm_state_ctx_init ( glsm_ctx_params_t params)
static
Here is the caller graph for this function:

◆ glsm_state_setup()

static void glsm_state_setup ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ glsm_state_unbind()

static void glsm_state_unbind ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rglActiveTexture()

void rglActiveTexture ( GLenum  texture)
Here is the call graph for this function:

◆ rglAttachShader()

void rglAttachShader ( GLuint  program,
GLuint  shader 
)

◆ rglBeginQuery()

void rglBeginQuery ( GLenum  target,
GLuint  id 
)

◆ rglBindAttribLocation()

void rglBindAttribLocation ( GLuint  program,
GLuint  index,
const GLchar name 
)

◆ rglBindBuffer()

void rglBindBuffer ( GLenum  target,
GLuint  buffer 
)
Here is the call graph for this function:

◆ rglBindBufferBase()

void rglBindBufferBase ( GLenum  target,
GLuint  index,
GLuint  buffer 
)

◆ rglBindFragDataLocation()

void rglBindFragDataLocation ( GLuint  program,
GLuint  colorNumber,
const char *  name 
)

◆ rglBindFramebuffer()

void rglBindFramebuffer ( GLenum  target,
GLuint  framebuffer 
)
Here is the call graph for this function:

◆ rglBindImageTexture()

void rglBindImageTexture ( GLuint  unit,
GLuint  texture,
GLint  level,
GLboolean  layered,
GLint  layer,
GLenum  access,
GLenum  format 
)

◆ rglBindRenderbuffer()

void rglBindRenderbuffer ( GLenum  target,
GLuint  renderbuffer 
)

◆ rglBindSampler()

void rglBindSampler ( GLuint  unit,
GLuint  sampler 
)

◆ rglBindTexture()

void rglBindTexture ( GLenum  target,
GLuint  texture 
)
Here is the call graph for this function:

◆ rglBindVertexArray()

void rglBindVertexArray ( GLuint  array)

◆ rglBlendColor()

void rglBlendColor ( GLfloat  red,
GLfloat  green,
GLfloat  blue,
GLfloat  alpha 
)

◆ rglBlendEquation()

void rglBlendEquation ( GLenum  mode)

◆ rglBlendEquationSeparate()

void rglBlendEquationSeparate ( GLenum  modeRGB,
GLenum  modeAlpha 
)

◆ rglBlendFunc()

void rglBlendFunc ( GLenum  sfactor,
GLenum  dfactor 
)
Here is the call graph for this function:

◆ rglBlendFuncSeparate()

void rglBlendFuncSeparate ( GLenum  sfactor,
GLenum  dfactor 
)
Here is the call graph for this function:

◆ rglBlitFramebuffer()

void rglBlitFramebuffer ( GLint  srcX0,
GLint  srcY0,
GLint  srcX1,
GLint  srcY1,
GLint  dstX0,
GLint  dstY0,
GLint  dstX1,
GLint  dstY1,
GLbitfield  mask,
GLenum  filter 
)

◆ rglBufferData()

void rglBufferData ( GLenum  target,
GLsizeiptr  size,
const GLvoid data,
GLenum  usage 
)

◆ rglBufferStorage()

void rglBufferStorage ( GLenum  target,
GLsizeiptr  size,
const GLvoid data,
GLbitfield  flags 
)

◆ rglBufferSubData()

void rglBufferSubData ( GLenum  target,
GLintptr  offset,
GLsizeiptr  size,
const GLvoid data 
)

◆ rglCheckFramebufferStatus()

GLenum rglCheckFramebufferStatus ( GLenum  target)

◆ rglClear()

void rglClear ( GLbitfield  mask)

◆ rglClearBufferfi()

void rglClearBufferfi ( GLenum  buffer,
GLint  drawBuffer,
GLfloat  depth,
GLint  stencil 
)

◆ rglClearBufferfv()

void rglClearBufferfv ( GLenum  buffer,
GLint  drawBuffer,
const GLfloat value 
)

◆ rglClearColor()

void rglClearColor ( GLclampf  red,
GLclampf  green,
GLclampf  blue,
GLclampf  alpha 
)
Here is the call graph for this function:

◆ rglClearDepth()

void rglClearDepth ( GLdouble  depth)
Here is the call graph for this function:

◆ rglClientWaitSync()

GLenum rglClientWaitSync ( void sync,
GLbitfield  flags,
uint64_t  timeout 
)

◆ rglColorMask()

void rglColorMask ( GLboolean  red,
GLboolean  green,
GLboolean  blue,
GLboolean  alpha 
)
Here is the call graph for this function:

◆ rglCompileShader()

void rglCompileShader ( GLuint  shader)

◆ rglCompressedTexImage2D()

void rglCompressedTexImage2D ( GLenum  target,
GLint  level,
GLenum  internalformat,
GLsizei  width,
GLsizei  height,
GLint  border,
GLsizei  imageSize,
const GLvoid data 
)

◆ rglCopyImageSubData()

void rglCopyImageSubData ( GLuint  srcName,
GLenum  srcTarget,
GLint  srcLevel,
GLint  srcX,
GLint  srcY,
GLint  srcZ,
GLuint  dstName,
GLenum  dstTarget,
GLint  dstLevel,
GLint  dstX,
GLint  dstY,
GLint  dstZ,
GLsizei  srcWidth,
GLsizei  srcHeight,
GLsizei  srcDepth 
)

◆ rglCreateProgram()

GLuint rglCreateProgram ( void  )

◆ rglCreateShader()

GLuint rglCreateShader ( GLenum  shaderType)

◆ rglCullFace()

void rglCullFace ( GLenum  mode)
Here is the call graph for this function:

◆ rglDeleteBuffers()

void rglDeleteBuffers ( GLsizei  n,
const GLuint buffers 
)

◆ rglDeleteFramebuffers()

void rglDeleteFramebuffers ( GLsizei  n,
const GLuint framebuffers 
)

◆ rglDeleteProgram()

void rglDeleteProgram ( GLuint  program)

◆ rglDeleteQueries()

void rglDeleteQueries ( GLsizei  n,
const GLuint ids 
)

◆ rglDeleteRenderbuffers()

void rglDeleteRenderbuffers ( GLsizei  n,
GLuint renderbuffers 
)

◆ rglDeleteShader()

void rglDeleteShader ( GLuint  shader)

◆ rglDeleteSync()

void rglDeleteSync ( void sync)

◆ rglDeleteTextures()

void rglDeleteTextures ( GLsizei  n,
const GLuint textures 
)

◆ rglDeleteVertexArrays()

void rglDeleteVertexArrays ( GLsizei  n,
const GLuint arrays 
)

◆ rglDepthFunc()

void rglDepthFunc ( GLenum  func)
Here is the call graph for this function:

◆ rglDepthMask()

void rglDepthMask ( GLboolean  flag)
Here is the call graph for this function:

◆ rglDepthRange()

void rglDepthRange ( GLclampd  zNear,
GLclampd  zFar 
)
Here is the caller graph for this function:

◆ rglDetachShader()

void rglDetachShader ( GLuint  program,
GLuint  shader 
)

◆ rglDisable()

void rglDisable ( GLenum  cap)
Here is the call graph for this function:

◆ rglDisableVertexAttribArray()

void rglDisableVertexAttribArray ( GLuint  index)

◆ rglDrawArrays()

void rglDrawArrays ( GLenum  mode,
GLint  first,
GLsizei  count 
)

◆ rglDrawBuffers()

void rglDrawBuffers ( GLsizei  n,
const GLenum bufs 
)

◆ rglDrawElements()

void rglDrawElements ( GLenum  mode,
GLsizei  count,
GLenum  type,
const GLvoid indices 
)

◆ rglDrawElementsBaseVertex()

void rglDrawElementsBaseVertex ( GLenum  mode,
GLsizei  count,
GLenum  type,
GLvoid indices,
GLint  basevertex 
)

◆ rglDrawRangeElementsBaseVertex()

void rglDrawRangeElementsBaseVertex ( GLenum  mode,
GLuint  start,
GLuint  end,
GLsizei  count,
GLenum  type,
GLvoid indices,
GLint  basevertex 
)

◆ rglEnable()

void rglEnable ( GLenum  cap)
Here is the call graph for this function:

◆ rglEnableVertexAttribArray()

void rglEnableVertexAttribArray ( GLuint  index)
Here is the call graph for this function:

◆ rglEndQuery()

void rglEndQuery ( GLenum  target)

◆ rglFenceSync()

void* rglFenceSync ( GLenum  condition,
GLbitfield  flags 
)

◆ rglFlushMappedBufferRange()

void rglFlushMappedBufferRange ( GLenum  target,
GLintptr  offset,
GLsizeiptr  length 
)

◆ rglFramebufferRenderbuffer()

void rglFramebufferRenderbuffer ( GLenum  target,
GLenum  attachment,
GLenum  renderbuffertarget,
GLuint  renderbuffer 
)

◆ rglFramebufferTexture()

void rglFramebufferTexture ( GLenum  target,
GLenum  attachment,
GLuint  texture,
GLint  level 
)

◆ rglFramebufferTexture2D()

void rglFramebufferTexture2D ( GLenum  target,
GLenum  attachment,
GLenum  textarget,
GLuint  texture,
GLint  level 
)

◆ rglFrontFace()

void rglFrontFace ( GLenum  mode)
Here is the call graph for this function:

◆ rglGenBuffers()

void rglGenBuffers ( GLsizei  n,
GLuint buffers 
)

◆ rglGenerateMipmap()

void rglGenerateMipmap ( GLenum  target)

◆ rglGenFramebuffers()

void rglGenFramebuffers ( GLsizei  n,
GLuint ids 
)

◆ rglGenQueries()

void rglGenQueries ( GLsizei  n,
GLuint ids 
)

◆ rglGenRenderbuffers()

void rglGenRenderbuffers ( GLsizei  n,
GLuint renderbuffers 
)

◆ rglGenSamplers()

void rglGenSamplers ( GLsizei  n,
GLuint samplers 
)

◆ rglGenTextures()

void rglGenTextures ( GLsizei  n,
GLuint textures 
)

◆ rglGenVertexArrays()

void rglGenVertexArrays ( GLsizei  n,
GLuint arrays 
)

◆ rglGetActiveUniform()

void rglGetActiveUniform ( GLuint  program,
GLuint  index,
GLsizei  bufsize,
GLsizei length,
GLint size,
GLenum type,
GLchar name 
)

◆ rglGetActiveUniformBlockiv()

void rglGetActiveUniformBlockiv ( GLuint  program,
GLuint  uniformBlockIndex,
GLenum  pname,
GLint params 
)

◆ rglGetActiveUniformsiv()

void rglGetActiveUniformsiv ( GLuint  program,
GLsizei  uniformCount,
const GLuint uniformIndices,
GLenum  pname,
GLint params 
)

◆ rglGetAttribLocation()

GLint rglGetAttribLocation ( GLuint  program,
const GLchar name 
)

◆ rglGetBufferSubData()

void rglGetBufferSubData ( GLenum  target,
GLintptr  offset,
GLsizeiptr  size,
GLvoid data 
)

◆ rglGetError()

GLenum rglGetError ( void  )

◆ rglGetInteger64v()

void rglGetInteger64v ( GLenum  pname,
int64_t data 
)

◆ rglGetProgramBinary()

void rglGetProgramBinary ( GLuint  program,
GLsizei  bufsize,
GLsizei length,
GLenum binaryFormat,
void binary 
)

◆ rglGetProgramInfoLog()

void rglGetProgramInfoLog ( GLuint  shader,
GLsizei  maxLength,
GLsizei length,
GLchar infoLog 
)

◆ rglGetProgramiv()

void rglGetProgramiv ( GLuint  shader,
GLenum  pname,
GLint params 
)

◆ rglGetQueryObjectuiv()

void rglGetQueryObjectuiv ( GLuint  id,
GLenum  pname,
GLuint params 
)

◆ rglGetShaderInfoLog()

void rglGetShaderInfoLog ( GLuint  shader,
GLsizei  maxLength,
GLsizei length,
GLchar infoLog 
)

◆ rglGetShaderiv()

void rglGetShaderiv ( GLuint  shader,
GLenum  pname,
GLint params 
)

◆ rglGetStringi()

const GLubyte* rglGetStringi ( GLenum  name,
GLuint  index 
)

◆ rglGetUniformBlockIndex()

GLuint rglGetUniformBlockIndex ( GLuint  program,
const GLchar uniformBlockName 
)

◆ rglGetUniformIndices()

void rglGetUniformIndices ( GLuint  program,
GLsizei  uniformCount,
const GLchar **  uniformNames,
GLuint uniformIndices 
)

◆ rglGetUniformLocation()

GLint rglGetUniformLocation ( GLuint  program,
const GLchar name 
)

◆ rglIsEnabled()

GLboolean rglIsEnabled ( GLenum  cap)

◆ rglIsProgram()

GLboolean rglIsProgram ( GLuint  program)

◆ rglLineWidth()

void rglLineWidth ( GLfloat  width)

◆ rglLinkProgram()

void rglLinkProgram ( GLuint  program)

◆ rglMapBuffer()

void* rglMapBuffer ( GLenum  target,
GLenum  access 
)

◆ rglMapBufferRange()

void* rglMapBufferRange ( GLenum  target,
GLintptr  offset,
GLsizeiptr  length,
GLbitfield  access 
)

◆ rglMemoryBarrier()

void rglMemoryBarrier ( GLbitfield  barriers)

◆ rglPixelStorei()

void rglPixelStorei ( GLenum  pname,
GLint  param 
)

◆ rglPolygonMode()

void rglPolygonMode ( GLenum  face,
GLenum  mode 
)

◆ rglPolygonOffset()

void rglPolygonOffset ( GLfloat  factor,
GLfloat  units 
)
Here is the call graph for this function:

◆ rglProgramBinary()

void rglProgramBinary ( GLuint  program,
GLenum  binaryFormat,
const void binary,
GLsizei  length 
)

◆ rglProgramParameteri()

void rglProgramParameteri ( GLuint  program,
GLenum  pname,
GLint  value 
)

◆ rglProvokingVertex()

void rglProvokingVertex ( GLenum  provokeMode)

◆ rglReadBuffer()

void rglReadBuffer ( GLenum  mode)

◆ rglRenderbufferStorage()

void rglRenderbufferStorage ( GLenum  target,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height 
)

◆ rglRenderbufferStorageMultisample()

void rglRenderbufferStorageMultisample ( GLenum  target,
GLsizei  samples,
GLenum  internalformat,
GLsizei  width,
GLsizei  height 
)

◆ rglSamplerParameteri()

void rglSamplerParameteri ( GLuint  sampler,
GLenum  pname,
GLint  param 
)

◆ rglScissor()

void rglScissor ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
Here is the call graph for this function:

◆ rglShaderSource()

void rglShaderSource ( GLuint  shader,
GLsizei  count,
const GLchar **  string,
const GLint length 
)

◆ rglStencilFunc()

void rglStencilFunc ( GLenum  func,
GLint  ref,
GLuint  mask 
)

◆ rglStencilMask()

void rglStencilMask ( GLenum  mask)

◆ rglStencilOp()

void rglStencilOp ( GLenum  sfail,
GLenum  dpfail,
GLenum  dppass 
)

◆ rglTexBuffer()

void rglTexBuffer ( GLenum  target,
GLenum  internalFormat,
GLuint  buffer 
)

◆ rglTexCoord2f()

void rglTexCoord2f ( GLfloat  s,
GLfloat  t 
)

◆ rglTexImage2DMultisample()

void rglTexImage2DMultisample ( GLenum  target,
GLsizei  samples,
GLenum  internalformat,
GLsizei  width,
GLsizei  height,
GLboolean  fixedsamplelocations 
)

◆ rglTexImage3D()

void rglTexImage3D ( GLenum  target,
GLint  level,
GLint  internalFormat,
GLsizei  width,
GLsizei  height,
GLsizei  depth,
GLint  border,
GLenum  format,
GLenum  type,
const GLvoid data 
)

◆ rglTexStorage2D()

void rglTexStorage2D ( GLenum  target,
GLsizei  levels,
GLenum  internalFormat,
GLsizei  width,
GLsizei  height 
)

◆ rglTexStorage2DMultisample()

void rglTexStorage2DMultisample ( GLenum  target,
GLsizei  samples,
GLenum  internalformat,
GLsizei  width,
GLsizei  height,
GLboolean  fixedsamplelocations 
)

◆ rglTexSubImage2D()

void rglTexSubImage2D ( GLenum  target,
GLint  level,
GLint  xoffset,
GLint  yoffset,
GLsizei  width,
GLsizei  height,
GLenum  format,
GLenum  type,
const GLvoid pixels 
)

◆ rglTextureView()

void rglTextureView ( GLuint  texture,
GLenum  target,
GLuint  origtexture,
GLenum  internalformat,
GLuint  minlevel,
GLuint  numlevels,
GLuint  minlayer,
GLuint  numlayers 
)

◆ rglUniform1f()

void rglUniform1f ( GLint  location,
GLfloat  v0 
)

◆ rglUniform1fv()

void rglUniform1fv ( GLint  location,
GLsizei  count,
const GLfloat value 
)

◆ rglUniform1i()

void rglUniform1i ( GLint  location,
GLint  v0 
)

◆ rglUniform1iv()

void rglUniform1iv ( GLint  location,
GLsizei  count,
const GLint value 
)

◆ rglUniform1ui()

void rglUniform1ui ( GLint  location,
GLuint  v 
)

◆ rglUniform2f()

void rglUniform2f ( GLint  location,
GLfloat  v0,
GLfloat  v1 
)

◆ rglUniform2fv()

void rglUniform2fv ( GLint  location,
GLsizei  count,
const GLfloat value 
)

◆ rglUniform2i()

void rglUniform2i ( GLint  location,
GLint  v0,
GLint  v1 
)

◆ rglUniform2iv()

void rglUniform2iv ( GLint  location,
GLsizei  count,
const GLint value 
)

◆ rglUniform2ui()

void rglUniform2ui ( GLint  location,
GLuint  v0,
GLuint  v1 
)

◆ rglUniform2uiv()

void rglUniform2uiv ( GLint  location,
GLsizei  count,
const GLuint value 
)

◆ rglUniform3f()

void rglUniform3f ( GLint  location,
GLfloat  v0,
GLfloat  v1,
GLfloat  v2 
)

◆ rglUniform3fv()

void rglUniform3fv ( GLint  location,
GLsizei  count,
const GLfloat value 
)

◆ rglUniform3ui()

void rglUniform3ui ( GLint  location,
GLuint  v0,
GLuint  v1,
GLuint  v2 
)

◆ rglUniform4f()

void rglUniform4f ( GLint  location,
GLfloat  v0,
GLfloat  v1,
GLfloat  v2,
GLfloat  v3 
)

◆ rglUniform4fv()

void rglUniform4fv ( GLint  location,
GLsizei  count,
const GLfloat value 
)

◆ rglUniform4i()

void rglUniform4i ( GLint  location,
GLint  v0,
GLint  v1,
GLint  v2,
GLint  v3 
)

◆ rglUniform4ui()

void rglUniform4ui ( GLint  location,
GLuint  v0,
GLuint  v1,
GLuint  v2,
GLuint  v3 
)

◆ rglUniformBlockBinding()

void rglUniformBlockBinding ( GLuint  program,
GLuint  uniformBlockIndex,
GLuint  uniformBlockBinding 
)

◆ rglUniformMatrix4fv()

void rglUniformMatrix4fv ( GLint  location,
GLsizei  count,
GLboolean  transpose,
const GLfloat value 
)

◆ rglUnmapBuffer()

GLboolean rglUnmapBuffer ( GLenum  target)

◆ rglUseProgram()

void rglUseProgram ( GLuint  program)
Here is the call graph for this function:

◆ rglValidateProgram()

void rglValidateProgram ( GLuint  program)

◆ rglVertexAttrib4f()

void rglVertexAttrib4f ( GLuint  name,
GLfloat  x,
GLfloat  y,
GLfloat  z,
GLfloat  w 
)

◆ rglVertexAttrib4fv()

void rglVertexAttrib4fv ( GLuint  name,
GLfloat v 
)

◆ rglVertexAttribIPointer()

void rglVertexAttribIPointer ( GLuint  index,
GLint  size,
GLenum  type,
GLsizei  stride,
const GLvoid pointer 
)

◆ rglVertexAttribLPointer()

void rglVertexAttribLPointer ( GLuint  index,
GLint  size,
GLenum  type,
GLsizei  stride,
const GLvoid pointer 
)

◆ rglVertexAttribPointer()

void rglVertexAttribPointer ( GLuint  name,
GLint  size,
GLenum  type,
GLboolean  normalized,
GLsizei  stride,
const GLvoid pointer 
)

◆ rglViewport()

void rglViewport ( GLint  x,
GLint  y,
GLsizei  width,
GLsizei  height 
)
Here is the call graph for this function:

◆ rglWaitSync()

void rglWaitSync ( void sync,
GLbitfield  flags,
uint64_t  timeout 
)

Variable Documentation

◆ default_framebuffer

GLuint default_framebuffer
static

◆ gl_state

struct gl_cached_state gl_state
static

◆ glsm_max_textures

GLint glsm_max_textures
static

◆ hw_render

struct retro_hw_render_callback hw_render