RetroArch
Classes | Typedefs | Functions | Variables
x_ctx.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <signal.h>
#include <string/stdstring.h>
#include <X11/Xatom.h>
#include "../../configuration.h"
#include "../../frontend/frontend_driver.h"
#include "../common/gl_common.h"
#include "../common/x11_common.h"
Include dependency graph for x_ctx.c:

Classes

struct  gfx_ctx_x_data
 
struct  Hints
 

Typedefs

typedef struct gfx_ctx_x_data gfx_ctx_x_data_t
 
typedef struct Hints Hints
 

Functions

static int x_nul_handler (Display *dpy, XErrorEvent *event)
 
static void gfx_ctx_x_destroy_resources (gfx_ctx_x_data_t *x)
 
static void gfx_ctx_x_destroy (void *data)
 
static void gfx_ctx_x_swap_interval (void *data, int interval)
 
static void gfx_ctx_x_swap_buffers (void *data, void *data2)
 
static void gfx_ctx_x_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static bool gfx_ctx_x_set_resize (void *data, unsigned width, unsigned height)
 
static voidgfx_ctx_x_init (video_frame_info_t *video_info, void *data)
 
static bool gfx_ctx_x_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void gfx_ctx_x_input_driver (void *data, const char *joypad_name, const input_driver_t **input, void **input_data)
 
static bool gfx_ctx_x_suppress_screensaver (void *data, bool enable)
 
static bool gfx_ctx_x_has_windowed (void *data)
 
static gfx_ctx_proc_t gfx_ctx_x_get_proc_address (const char *symbol)
 
static enum gfx_ctx_api gfx_ctx_x_get_api (void *data)
 
static bool gfx_ctx_x_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void gfx_ctx_x_show_mouse (void *data, bool state)
 
static void gfx_ctx_x_bind_hw_render (void *data, bool enable)
 
static uint32_t gfx_ctx_x_get_flags (void *data)
 
static void gfx_ctx_x_set_flags (void *data, uint32_t flags)
 
static void gfx_ctx_x_make_current (bool release)
 

Variables

static bool x_adaptive_vsync = false
 
static bool x_enable_msaa = false
 
static unsigned g_major = 0
 
static unsigned g_minor = 0
 
static enum gfx_ctx_api x_api = GFX_CTX_NONE
 
static gfx_ctx_x_data_tcurrent_context_data = NULL
 
static const unsigned long retroarch_icon_data []
 
const gfx_ctx_driver_t gfx_ctx_x
 

Typedef Documentation

◆ gfx_ctx_x_data_t

◆ Hints

typedef struct Hints Hints

Function Documentation

◆ gfx_ctx_x_bind_api()

static bool gfx_ctx_x_bind_api ( void data,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor 
)
static
Here is the call graph for this function:

◆ gfx_ctx_x_bind_hw_render()

static void gfx_ctx_x_bind_hw_render ( void data,
bool  enable 
)
static

◆ gfx_ctx_x_check_window()

static void gfx_ctx_x_check_window ( void data,
bool quit,
bool resize,
unsigned *  width,
unsigned *  height,
bool  is_shutdown 
)
static
Here is the call graph for this function:

◆ gfx_ctx_x_destroy()

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

◆ gfx_ctx_x_destroy_resources()

static void gfx_ctx_x_destroy_resources ( gfx_ctx_x_data_t x)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gfx_ctx_x_get_api()

static enum gfx_ctx_api gfx_ctx_x_get_api ( void data)
static

◆ gfx_ctx_x_get_flags()

static uint32_t gfx_ctx_x_get_flags ( void data)
static

◆ gfx_ctx_x_get_proc_address()

static gfx_ctx_proc_t gfx_ctx_x_get_proc_address ( const char *  symbol)
static

◆ gfx_ctx_x_has_windowed()

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

◆ gfx_ctx_x_init()

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

◆ gfx_ctx_x_input_driver()

static void gfx_ctx_x_input_driver ( void data,
const char *  joypad_name,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ gfx_ctx_x_make_current()

static void gfx_ctx_x_make_current ( bool  release)
static

◆ gfx_ctx_x_set_flags()

static void gfx_ctx_x_set_flags ( void data,
uint32_t  flags 
)
static

◆ gfx_ctx_x_set_resize()

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

◆ gfx_ctx_x_set_video_mode()

static bool gfx_ctx_x_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:

◆ gfx_ctx_x_show_mouse()

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

◆ gfx_ctx_x_suppress_screensaver()

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

◆ gfx_ctx_x_swap_buffers()

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

◆ gfx_ctx_x_swap_interval()

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

◆ x_nul_handler()

static int x_nul_handler ( Display *  dpy,
XErrorEvent *  event 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ current_context_data

gfx_ctx_x_data_t* current_context_data = NULL
static

◆ g_major

unsigned g_major = 0
static

◆ g_minor

unsigned g_minor = 0
static

◆ gfx_ctx_x

◆ retroarch_icon_data

const unsigned long retroarch_icon_data[]
static
Initial value:
= {
16, 16,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xfff2f2f2,0xff333333,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xff333333,0xfff2f2f2,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xff333333,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xff333333,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xfff2f2f2,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xfff2f2f2,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,
0x00000000,0x00000000,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0xff333333,0x00000000,0x00000000,0x00000000,
0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000,0x00000000
}

◆ x_adaptive_vsync

bool x_adaptive_vsync = false
static

◆ x_api

enum gfx_ctx_api x_api = GFX_CTX_NONE
static

◆ x_enable_msaa

bool x_enable_msaa = false
static