RetroArch
Classes | Macros | Functions | Variables
xegl_ctx.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include "../../frontend/frontend_driver.h"
#include "../../configuration.h"
#include "../common/egl_common.h"
#include "../common/gl_common.h"
#include "../common/x11_common.h"
Include dependency graph for xegl_ctx.c:

Classes

struct  xegl_ctx_data_t
 

Macros

#define EGL_OPENGL_ES3_BIT_KHR   0x0040
 
#define EGL_PLATFORM_X11_KHR   0x31D5
 
#define XEGL_ATTRIBS_BASE
 

Functions

static int x_nul_handler (Display *dpy, XErrorEvent *event)
 
static void gfx_ctx_xegl_destroy (void *data)
 
static voidgfx_ctx_xegl_init (video_frame_info_t *video_info, void *video_driver)
 
static EGLint * xegl_fill_attribs (xegl_ctx_data_t *xegl, EGLint *attr)
 
static void gfx_ctx_xegl_set_swap_interval (void *data, int swap_interval)
 
static bool gfx_ctx_xegl_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void gfx_ctx_xegl_input_driver (void *data, const char *joypad_name, const input_driver_t **input, void **input_data)
 
static bool gfx_ctx_xegl_suppress_screensaver (void *data, bool enable)
 
static bool gfx_ctx_xegl_has_windowed (void *data)
 
static enum gfx_ctx_api gfx_ctx_xegl_get_api (void *data)
 
static bool gfx_ctx_xegl_bind_api (void *video_driver, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void gfx_ctx_xegl_show_mouse (void *data, bool state)
 
static void gfx_ctx_xegl_swap_buffers (void *data, void *data2)
 
static void gfx_ctx_xegl_bind_hw_render (void *data, bool enable)
 
static gfx_ctx_proc_t gfx_ctx_xegl_get_proc_address (const char *symbol)
 
static uint32_t gfx_ctx_xegl_get_flags (void *data)
 
static void gfx_ctx_xegl_set_flags (void *data, uint32_t flags)
 

Variables

static enum gfx_ctx_api xegl_api = GFX_CTX_NONE
 
const gfx_ctx_driver_t gfx_ctx_x_egl
 

Macro Definition Documentation

◆ EGL_OPENGL_ES3_BIT_KHR

#define EGL_OPENGL_ES3_BIT_KHR   0x0040

◆ EGL_PLATFORM_X11_KHR

#define EGL_PLATFORM_X11_KHR   0x31D5

◆ XEGL_ATTRIBS_BASE

#define XEGL_ATTRIBS_BASE
Value:
EGL_SURFACE_TYPE, EGL_WINDOW_BIT, \
EGL_RED_SIZE, 1, \
EGL_GREEN_SIZE, 1, \
EGL_BLUE_SIZE, 1, \
EGL_ALPHA_SIZE, 0, \
EGL_DEPTH_SIZE, 0

Function Documentation

◆ gfx_ctx_xegl_bind_api()

static bool gfx_ctx_xegl_bind_api ( void video_driver,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor 
)
static

◆ gfx_ctx_xegl_bind_hw_render()

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

◆ gfx_ctx_xegl_destroy()

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

◆ gfx_ctx_xegl_get_api()

static enum gfx_ctx_api gfx_ctx_xegl_get_api ( void data)
static

◆ gfx_ctx_xegl_get_flags()

static uint32_t gfx_ctx_xegl_get_flags ( void data)
static

◆ gfx_ctx_xegl_get_proc_address()

static gfx_ctx_proc_t gfx_ctx_xegl_get_proc_address ( const char *  symbol)
static
Here is the call graph for this function:

◆ gfx_ctx_xegl_has_windowed()

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

◆ gfx_ctx_xegl_init()

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

◆ gfx_ctx_xegl_input_driver()

static void gfx_ctx_xegl_input_driver ( void data,
const char *  joypad_name,
const input_driver_t **  input,
void **  input_data 
)
static

◆ gfx_ctx_xegl_set_flags()

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

◆ gfx_ctx_xegl_set_swap_interval()

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

◆ gfx_ctx_xegl_set_video_mode()

static bool gfx_ctx_xegl_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_xegl_show_mouse()

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

◆ gfx_ctx_xegl_suppress_screensaver()

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

◆ gfx_ctx_xegl_swap_buffers()

static void gfx_ctx_xegl_swap_buffers ( void data,
void data2 
)
static
Here is the call 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:

◆ xegl_fill_attribs()

static EGLint* xegl_fill_attribs ( xegl_ctx_data_t xegl,
EGLint *  attr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ gfx_ctx_x_egl

const gfx_ctx_driver_t gfx_ctx_x_egl

◆ xegl_api

enum gfx_ctx_api xegl_api = GFX_CTX_NONE
static