RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
glsm.h File Reference
#include <retro_common_api.h>
#include <boolean.h>
#include <libretro.h>
#include <glsym/rglgen_headers.h>
Include dependency graph for glsm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  glsm_ctx_proc_address
 
struct  glsm_ctx_params
 

Macros

#define RARCH_GL_RENDERBUFFER   GL_RENDERBUFFER
 
#define RARCH_GL_DEPTH24_STENCIL8   GL_DEPTH24_STENCIL8
 
#define RARCH_GL_DEPTH_ATTACHMENT   GL_DEPTH_ATTACHMENT
 
#define RARCH_GL_STENCIL_ATTACHMENT   GL_STENCIL_ATTACHMENT
 
#define RARCH_GL_FRAMEBUFFER   GL_FRAMEBUFFER
 
#define RARCH_GL_FRAMEBUFFER_COMPLETE   GL_FRAMEBUFFER_COMPLETE
 
#define RARCH_GL_COLOR_ATTACHMENT0   GL_COLOR_ATTACHMENT0
 
#define GL_FOG   0x0B60
 
#define GL_ALPHA_TEST   0x0BC0
 
#define GL_CLIP_DISTANCE0   0x3000
 
#define MAX_ATTRIB   8
 

Typedefs

typedef bool(* glsm_imm_vbo_draw) (void *)
 
typedef bool(* glsm_imm_vbo_disable) (void *)
 
typedef bool(* glsm_framebuffer_lock) (void *)
 
typedef struct glsm_ctx_proc_address glsm_ctx_proc_address_t
 
typedef struct glsm_ctx_params glsm_ctx_params_t
 

Enumerations

enum  {
  SGL_DEPTH_TEST = 0, SGL_BLEND, SGL_POLYGON_OFFSET_FILL, SGL_FOG,
  SGL_CULL_FACE, SGL_ALPHA_TEST, SGL_SCISSOR_TEST, SGL_STENCIL_TEST,
  SGL_DEPTH_CLAMP, SGL_CLIP_DISTANCE0, SGL_DITHER, SGL_SAMPLE_ALPHA_TO_COVERAGE,
  SGL_SAMPLE_COVERAGE, SGL_COLOR_LOGIC_OP, SGL_CAP_MAX
}
 
enum  glsm_state_ctl {
  GLSM_CTL_NONE = 0, GLSM_CTL_STATE_SETUP, GLSM_CTL_STATE_BIND, GLSM_CTL_STATE_UNBIND,
  GLSM_CTL_STATE_CONTEXT_RESET, GLSM_CTL_STATE_CONTEXT_DESTROY, GLSM_CTL_STATE_CONTEXT_INIT, GLSM_CTL_IS_IMM_VBO,
  GLSM_CTL_SET_IMM_VBO, GLSM_CTL_UNSET_IMM_VBO, GLSM_CTL_IMM_VBO_DISABLE, GLSM_CTL_IMM_VBO_DRAW,
  GLSM_CTL_PROC_ADDRESS_GET
}
 

Functions

GLuint glsm_get_current_framebuffer (void)
 
bool glsm_ctl (enum glsm_state_ctl state, void *data)
 

Macro Definition Documentation

◆ GL_ALPHA_TEST

#define GL_ALPHA_TEST   0x0BC0

◆ GL_CLIP_DISTANCE0

#define GL_CLIP_DISTANCE0   0x3000

◆ GL_FOG

#define GL_FOG   0x0B60

◆ MAX_ATTRIB

#define MAX_ATTRIB   8

◆ RARCH_GL_COLOR_ATTACHMENT0

#define RARCH_GL_COLOR_ATTACHMENT0   GL_COLOR_ATTACHMENT0

◆ RARCH_GL_DEPTH24_STENCIL8

#define RARCH_GL_DEPTH24_STENCIL8   GL_DEPTH24_STENCIL8

◆ RARCH_GL_DEPTH_ATTACHMENT

#define RARCH_GL_DEPTH_ATTACHMENT   GL_DEPTH_ATTACHMENT

◆ RARCH_GL_FRAMEBUFFER

#define RARCH_GL_FRAMEBUFFER   GL_FRAMEBUFFER

◆ RARCH_GL_FRAMEBUFFER_COMPLETE

#define RARCH_GL_FRAMEBUFFER_COMPLETE   GL_FRAMEBUFFER_COMPLETE

◆ RARCH_GL_RENDERBUFFER

#define RARCH_GL_RENDERBUFFER   GL_RENDERBUFFER

◆ RARCH_GL_STENCIL_ATTACHMENT

#define RARCH_GL_STENCIL_ATTACHMENT   GL_STENCIL_ATTACHMENT

Typedef Documentation

◆ glsm_ctx_params_t

◆ glsm_ctx_proc_address_t

◆ glsm_framebuffer_lock

typedef bool(* glsm_framebuffer_lock) (void *)

◆ glsm_imm_vbo_disable

typedef bool(* glsm_imm_vbo_disable) (void *)

◆ glsm_imm_vbo_draw

typedef bool(* glsm_imm_vbo_draw) (void *)

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SGL_DEPTH_TEST 
SGL_BLEND 
SGL_POLYGON_OFFSET_FILL 
SGL_FOG 
SGL_CULL_FACE 
SGL_ALPHA_TEST 
SGL_SCISSOR_TEST 
SGL_STENCIL_TEST 
SGL_DEPTH_CLAMP 
SGL_CLIP_DISTANCE0 
SGL_DITHER 
SGL_SAMPLE_ALPHA_TO_COVERAGE 
SGL_SAMPLE_COVERAGE 
SGL_COLOR_LOGIC_OP 
SGL_CAP_MAX 

◆ glsm_state_ctl

Enumerator
GLSM_CTL_NONE 
GLSM_CTL_STATE_SETUP 
GLSM_CTL_STATE_BIND 
GLSM_CTL_STATE_UNBIND 
GLSM_CTL_STATE_CONTEXT_RESET 
GLSM_CTL_STATE_CONTEXT_DESTROY 
GLSM_CTL_STATE_CONTEXT_INIT 
GLSM_CTL_IS_IMM_VBO 
GLSM_CTL_SET_IMM_VBO 
GLSM_CTL_UNSET_IMM_VBO 
GLSM_CTL_IMM_VBO_DISABLE 
GLSM_CTL_IMM_VBO_DRAW 
GLSM_CTL_PROC_ADDRESS_GET 

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: