RetroArch
Classes | Typedefs | Functions | Variables
sdl_gfx.c File Reference
#include <stdlib.h>
#include <string.h>
#include <retro_assert.h>
#include <gfx/scaler/scaler.h>
#include <gfx/video_frame.h>
#include "../../verbosity.h"
#include "SDL.h"
#include "SDL_syswm.h"
#include "../font_driver.h"
#include "../video_driver.h"
#include "../../configuration.h"
Include dependency graph for sdl_gfx.c:

Classes

struct  sdl_menu_frame
 
struct  sdl_video
 

Typedefs

typedef struct sdl_menu_frame sdl_menu_frame_t
 
typedef struct sdl_video sdl_video_t
 

Functions

static void sdl_gfx_free (void *data)
 
static void sdl_init_font (sdl_video_t *vid, const char *font_path, unsigned font_size)
 
static void sdl_render_msg (sdl_video_t *vid, SDL_Surface *buffer, const char *msg, unsigned width, unsigned height, const SDL_PixelFormat *fmt)
 
static void sdl_gfx_set_handles (void)
 
static voidsdl_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static void sdl_gfx_check_window (sdl_video_t *vid)
 
static bool sdl_gfx_frame (void *data, const void *frame, unsigned width, unsigned height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
 
static void sdl_gfx_set_nonblock_state (void *data, bool state)
 
static bool sdl_gfx_alive (void *data)
 
static bool sdl_gfx_focus (void *data)
 
static bool sdl_gfx_suppress_screensaver (void *data, bool enable)
 
static bool sdl_gfx_has_windowed (void *data)
 
static void sdl_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static void sdl_set_filtering (void *data, unsigned index, bool smooth)
 
static void sdl_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
 
static void sdl_apply_state_changes (void *data)
 
static void sdl_set_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void sdl_set_texture_enable (void *data, bool state, bool full_screen)
 
static void sdl_show_mouse (void *data, bool state)
 
static void sdl_grab_mouse_toggle (void *data)
 
static void sdl_get_poke_interface (void *data, const video_poke_interface_t **iface)
 
static bool sdl_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void sdl_gfx_set_rotation (void *data, unsigned rotation)
 
static bool sdl_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 

Variables

static const video_poke_interface_t sdl_poke_interface
 
video_driver_t video_sdl
 

Typedef Documentation

◆ sdl_menu_frame_t

◆ sdl_video_t

typedef struct sdl_video sdl_video_t

Function Documentation

◆ sdl_apply_state_changes()

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

◆ sdl_get_poke_interface()

static void sdl_get_poke_interface ( void data,
const video_poke_interface_t **  iface 
)
static
Here is the call graph for this function:

◆ sdl_gfx_alive()

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

◆ sdl_gfx_check_window()

static void sdl_gfx_check_window ( sdl_video_t vid)
static
Here is the caller graph for this function:

◆ sdl_gfx_focus()

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

◆ sdl_gfx_frame()

static bool sdl_gfx_frame ( void data,
const void frame,
unsigned  width,
unsigned  height,
uint64_t  frame_count,
unsigned  pitch,
const char *  msg,
video_frame_info_t video_info 
)
static
Here is the call graph for this function:

◆ sdl_gfx_free()

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

◆ sdl_gfx_has_windowed()

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

◆ sdl_gfx_init()

static void* sdl_gfx_init ( const video_info_t video,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ sdl_gfx_read_viewport()

static bool sdl_gfx_read_viewport ( void data,
uint8_t buffer,
bool  is_idle 
)
static
Here is the call graph for this function:

◆ sdl_gfx_set_handles()

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

◆ sdl_gfx_set_nonblock_state()

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

◆ sdl_gfx_set_rotation()

static void sdl_gfx_set_rotation ( void data,
unsigned  rotation 
)
static
Here is the call graph for this function:

◆ sdl_gfx_set_shader()

static bool sdl_gfx_set_shader ( void data,
enum rarch_shader_type  type,
const char *  path 
)
static
Here is the call graph for this function:

◆ sdl_gfx_suppress_screensaver()

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

◆ sdl_gfx_viewport_info()

static void sdl_gfx_viewport_info ( void data,
struct video_viewport vp 
)
static

◆ sdl_grab_mouse_toggle()

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

◆ sdl_init_font()

static void sdl_init_font ( sdl_video_t vid,
const char *  font_path,
unsigned  font_size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_render_msg()

static void sdl_render_msg ( sdl_video_t vid,
SDL_Surface *  buffer,
const char *  msg,
unsigned  width,
unsigned  height,
const SDL_PixelFormat *  fmt 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_set_aspect_ratio()

static void sdl_set_aspect_ratio ( void data,
unsigned  aspect_ratio_idx 
)
static
Here is the call graph for this function:

◆ sdl_set_filtering()

static void sdl_set_filtering ( void data,
unsigned  index,
bool  smooth 
)
static

◆ sdl_set_texture_enable()

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

◆ sdl_set_texture_frame()

static void sdl_set_texture_frame ( void data,
const void frame,
bool  rgb32,
unsigned  width,
unsigned  height,
float  alpha 
)
static
Here is the call graph for this function:

◆ sdl_show_mouse()

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

Variable Documentation

◆ sdl_poke_interface

const video_poke_interface_t sdl_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void sdl_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
Definition: sdl_gfx.c:443
static void sdl_apply_state_changes(void *data)
Definition: sdl_gfx.c:466
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void sdl_set_filtering(void *data, unsigned index, bool smooth)
Definition: sdl_gfx.c:437
static void sdl_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: sdl_gfx.c:471
static void sdl_set_texture_enable(void *data, bool state, bool full_screen)
Definition: sdl_gfx.c:494
static void sdl_show_mouse(void *data, bool state)
Definition: sdl_gfx.c:504
static void sdl_grab_mouse_toggle(void *data)
Definition: sdl_gfx.c:511

◆ video_sdl

video_driver_t video_sdl
Initial value:
= {
"sdl",
NULL,
}
static bool sdl_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: sdl_gfx.c:569
static void sdl_gfx_set_nonblock_state(void *data, bool state)
Definition: sdl_gfx.c:387
static void * sdl_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: sdl_gfx.c:230
static void sdl_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: sdl_gfx.c:429
static bool sdl_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: sdl_gfx.c:553
static bool sdl_gfx_focus(void *data)
Definition: sdl_gfx.c:400
static void sdl_gfx_free(void *data)
Definition: sdl_gfx.c:71
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void sdl_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: sdl_gfx.c:546
static bool sdl_gfx_frame(void *data, const void *frame, unsigned width, unsigned height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
Definition: sdl_gfx.c:336
static bool sdl_gfx_alive(void *data)
Definition: sdl_gfx.c:393
static void sdl_gfx_set_rotation(void *data, unsigned rotation)
Definition: sdl_gfx.c:563
static bool sdl_gfx_has_windowed(void *data)
Definition: sdl_gfx.c:421
static bool sdl_gfx_suppress_screensaver(void *data, bool enable)
Definition: sdl_gfx.c:406