23 #ifndef LIBRETRO_SDK_GLSM_H 24 #define LIBRETRO_SDK_GLSM_H 39 #if defined(HAVE_OPENGLES2) 40 #define RARCH_GL_RENDERBUFFER GL_RENDERBUFFER 41 #define RARCH_GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_OES 42 #define RARCH_GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT 43 #define RARCH_GL_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT 44 #elif (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) 45 #define RARCH_GL_RENDERBUFFER GL_RENDERBUFFER_EXT 46 #define RARCH_GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_EXT 47 #define RARCH_GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT_EXT 48 #define RARCH_GL_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT_EXT 49 #elif defined(HAVE_PSGL) 50 #define RARCH_GL_RENDERBUFFER GL_RENDERBUFFER_OES 51 #define RARCH_GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8_SCE 52 #define RARCH_GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT_OES 53 #define RARCH_GL_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT_OES 55 #define RARCH_GL_RENDERBUFFER GL_RENDERBUFFER 56 #define RARCH_GL_DEPTH24_STENCIL8 GL_DEPTH24_STENCIL8 57 #define RARCH_GL_DEPTH_ATTACHMENT GL_DEPTH_ATTACHMENT 58 #define RARCH_GL_STENCIL_ATTACHMENT GL_STENCIL_ATTACHMENT 61 #if defined(HAVE_PSGL) 62 #define RARCH_GL_FRAMEBUFFER GL_FRAMEBUFFER_OES 63 #define RARCH_GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_OES 64 #define RARCH_GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0_EXT 65 #elif (defined(__MACH__) && (defined(__ppc__) || defined(__ppc64__))) 66 #define RARCH_GL_FRAMEBUFFER GL_FRAMEBUFFER_EXT 67 #define RARCH_GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_EXT 68 #define RARCH_GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0_EXT 70 #define RARCH_GL_FRAMEBUFFER GL_FRAMEBUFFER 71 #define RARCH_GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE 72 #define RARCH_GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0 80 #define GL_ALPHA_TEST 0x0BC0 83 #ifndef GL_CLIP_DISTANCE0 84 #define GL_CLIP_DISTANCE0 0x3000 99 #if !defined(HAVE_OPENGLES) 106 #ifndef HAVE_OPENGLES retro_hw_context_reset_t context_reset
Definition: glsm.h:143
retro_hw_context_type
Definition: libretro.h:1935
unsigned minor
Definition: glsm.h:148
double GLdouble
Definition: nx_gl.h:52
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
glsm_state_ctl
Definition: glsm.h:112
bool glsm_ctl(enum glsm_state_ctl state, void *data)
Definition: glsm.c:2860
unsigned int GLuint
Definition: nx_gl.h:48
bool(RETRO_CALLCONV * retro_environment_t)(unsigned cmd, void *data)
Definition: libretro.h:2325
bool(* glsm_imm_vbo_draw)(void *)
Definition: glsm.h:129
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
glsm_imm_vbo_disable imm_vbo_disable
Definition: glsm.h:142
struct glsm_ctx_proc_address glsm_ctx_proc_address_t
bool stencil
Definition: glsm.h:146
float GLclampf
Definition: nx_gl.h:51
unsigned major
Definition: glsm.h:147
bool(* glsm_framebuffer_lock)(void *)
Definition: glsm.h:131
retro_proc_address_t(RETRO_CALLCONV * retro_get_proc_address_t)(const char *sym)
Definition: libretro.h:1557
float GLfloat
Definition: nx_gl.h:50
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
enum retro_hw_context_type context_type
Definition: glsm.h:149
retro_environment_t environ_cb
Definition: glsm.h:145
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
retro_hw_context_reset_t context_destroy
Definition: glsm.h:144
retro_get_proc_address_t addr
Definition: glsm.h:135
double GLclampd
Definition: nx_gl.h:53
glsm_imm_vbo_draw imm_vbo_draw
Definition: glsm.h:141
struct glsm_ctx_params glsm_ctx_params_t
glsm_framebuffer_lock framebuffer_lock
Definition: glsm.h:140
bool(* glsm_imm_vbo_disable)(void *)
Definition: glsm.h:130
GLuint glsm_get_current_framebuffer(void)
Definition: glsm.c:2855
void(RETRO_CALLCONV * retro_hw_context_reset_t)(void)
Definition: libretro.h:1925