RetroArch
Classes | Typedefs | Functions | Variables
sdl_gl_ctx.c File Reference
#include "../../configuration.h"
#include "../common/gl_common.h"
#include "SDL.h"
Include dependency graph for sdl_gl_ctx.c:

Classes

struct  gfx_ctx_sdl_data
 

Typedefs

typedef struct gfx_ctx_sdl_data gfx_ctx_sdl_data_t
 

Functions

static void sdl_ctx_destroy_resources (gfx_ctx_sdl_data_t *sdl)
 
static voidsdl_ctx_init (video_frame_info_t *video_info, void *video_driver)
 
static void sdl_ctx_destroy (void *data)
 
static enum gfx_ctx_api sdl_ctx_get_api (void *data)
 
static bool sdl_ctx_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void sdl_ctx_swap_interval (void *data, int interval)
 
static bool sdl_ctx_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void sdl_ctx_get_video_size (void *data, unsigned *width, unsigned *height)
 
static void sdl_ctx_update_title (void *data, void *data2)
 
static void sdl_ctx_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static bool sdl_ctx_has_focus (void *data)
 
static bool sdl_ctx_suppress_screensaver (void *data, bool enable)
 
static bool sdl_ctx_has_windowed (void *data)
 
static void sdl_ctx_swap_buffers (void *data, void *data2)
 
static void sdl_ctx_input_driver (void *data, const char *name, const input_driver_t **input, void **input_data)
 
static gfx_ctx_proc_t sdl_ctx_get_proc_address (const char *name)
 
static void sdl_ctx_show_mouse (void *data, bool state)
 
static uint32_t sdl_ctx_get_flags (void *data)
 
static void sdl_ctx_set_flags (void *data, uint32_t flags)
 

Variables

static enum gfx_ctx_api sdl_api = GFX_CTX_OPENGL_API
 
static unsigned g_major = 2
 
static unsigned g_minor = 1
 
const gfx_ctx_driver_t gfx_ctx_sdl_gl
 

Typedef Documentation

◆ gfx_ctx_sdl_data_t

Function Documentation

◆ sdl_ctx_bind_api()

static bool sdl_ctx_bind_api ( void data,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor 
)
static

◆ sdl_ctx_check_window()

static void sdl_ctx_check_window ( void data,
bool quit,
bool resize,
unsigned *  width,
unsigned *  height,
bool  is_shutdown 
)
static

◆ sdl_ctx_destroy()

static void sdl_ctx_destroy ( void data)
static
Here is the call graph for this function:

◆ sdl_ctx_destroy_resources()

static void sdl_ctx_destroy_resources ( gfx_ctx_sdl_data_t sdl)
static
Here is the caller graph for this function:

◆ sdl_ctx_get_api()

static enum gfx_ctx_api sdl_ctx_get_api ( void data)
static

◆ sdl_ctx_get_flags()

static uint32_t sdl_ctx_get_flags ( void data)
static

◆ sdl_ctx_get_proc_address()

static gfx_ctx_proc_t sdl_ctx_get_proc_address ( const char *  name)
static

◆ sdl_ctx_get_video_size()

static void sdl_ctx_get_video_size ( void data,
unsigned *  width,
unsigned *  height 
)
static
Here is the call graph for this function:

◆ sdl_ctx_has_focus()

static bool sdl_ctx_has_focus ( void data)
static

◆ sdl_ctx_has_windowed()

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

◆ sdl_ctx_init()

static void* sdl_ctx_init ( video_frame_info_t video_info,
void video_driver 
)
static
Here is the call graph for this function:

◆ sdl_ctx_input_driver()

static void sdl_ctx_input_driver ( void data,
const char *  name,
const input_driver_t **  input,
void **  input_data 
)
static

◆ sdl_ctx_set_flags()

static void sdl_ctx_set_flags ( void data,
uint32_t  flags 
)
static
Here is the call graph for this function:

◆ sdl_ctx_set_video_mode()

static bool sdl_ctx_set_video_mode ( void data,
video_frame_info_t video_info,
unsigned  width,
unsigned  height,
bool  fullscreen 
)
static
Here is the call graph for this function:

◆ sdl_ctx_show_mouse()

static void sdl_ctx_show_mouse ( void data,
bool  state 
)
static
Here is the call graph for this function:

◆ sdl_ctx_suppress_screensaver()

static bool sdl_ctx_suppress_screensaver ( void data,
bool  enable 
)
static
Here is the call graph for this function:

◆ sdl_ctx_swap_buffers()

static void sdl_ctx_swap_buffers ( void data,
void data2 
)
static

◆ sdl_ctx_swap_interval()

static void sdl_ctx_swap_interval ( void data,
int  interval 
)
static
Here is the call graph for this function:

◆ sdl_ctx_update_title()

static void sdl_ctx_update_title ( void data,
void data2 
)
static
Here is the call graph for this function:

Variable Documentation

◆ g_major

unsigned g_major = 2
static

◆ g_minor

unsigned g_minor = 1
static

◆ gfx_ctx_sdl_gl

const gfx_ctx_driver_t gfx_ctx_sdl_gl

◆ sdl_api

enum gfx_ctx_api sdl_api = GFX_CTX_OPENGL_API
static