RetroArch
Functions | Variables
egl_common.c File Reference
#include <stdlib.h>
#include <retro_assert.h>
#include "egl_common.h"
#include "../../verbosity.h"
#include "../../frontend/frontend_driver.h"
Include dependency graph for egl_common.c:

Functions

void egl_report_error (void)
 
gfx_ctx_proc_t egl_get_proc_address (const char *symbol)
 
void egl_destroy (egl_ctx_data_t *egl)
 
void egl_bind_hw_render (egl_ctx_data_t *egl, bool enable)
 
void egl_swap_buffers (void *data)
 
void egl_set_swap_interval (egl_ctx_data_t *egl, int interval)
 
void egl_get_video_size (egl_ctx_data_t *egl, unsigned *width, unsigned *height)
 
bool check_egl_version (int minMajorVersion, int minMinorVersion)
 
bool check_egl_client_extension (const char *name)
 
static EGLDisplay get_egl_display (EGLenum platform, void *native)
 
bool egl_default_accept_config_cb (void *display_data, EGLDisplay dpy, EGLConfig config)
 
bool egl_init_context (egl_ctx_data_t *egl, EGLenum platform, void *display_data, EGLint *major, EGLint *minor, EGLint *n, const EGLint *attrib_ptr, egl_accept_config_cb_t cb)
 
bool egl_create_context (egl_ctx_data_t *egl, const EGLint *egl_attribs)
 
bool egl_create_surface (egl_ctx_data_t *egl, void *native_window)
 
bool egl_get_native_visual_id (egl_ctx_data_t *egl, EGLint *value)
 
bool egl_has_config (egl_ctx_data_t *egl)
 

Variables

bool g_egl_inited = false
 
unsigned g_egl_major = 0
 
unsigned g_egl_minor = 0
 

Function Documentation

◆ check_egl_client_extension()

bool check_egl_client_extension ( const char *  name)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_egl_version()

bool check_egl_version ( int  minMajorVersion,
int  minMinorVersion 
)
Here is the caller graph for this function:

◆ egl_bind_hw_render()

void egl_bind_hw_render ( egl_ctx_data_t egl,
bool  enable 
)
Here is the caller graph for this function:

◆ egl_create_context()

bool egl_create_context ( egl_ctx_data_t egl,
const EGLint *  egl_attribs 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_create_surface()

bool egl_create_surface ( egl_ctx_data_t egl,
void native_window 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_default_accept_config_cb()

bool egl_default_accept_config_cb ( void display_data,
EGLDisplay  dpy,
EGLConfig  config 
)
Here is the caller graph for this function:

◆ egl_destroy()

void egl_destroy ( egl_ctx_data_t egl)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_get_native_visual_id()

bool egl_get_native_visual_id ( egl_ctx_data_t egl,
EGLint *  value 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_get_proc_address()

gfx_ctx_proc_t egl_get_proc_address ( const char *  symbol)
Here is the caller graph for this function:

◆ egl_get_video_size()

void egl_get_video_size ( egl_ctx_data_t egl,
unsigned *  width,
unsigned *  height 
)
Here is the caller graph for this function:

◆ egl_has_config()

bool egl_has_config ( egl_ctx_data_t egl)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_init_context()

bool egl_init_context ( egl_ctx_data_t egl,
EGLenum  platform,
void display_data,
EGLint *  major,
EGLint *  minor,
EGLint *  n,
const EGLint *  attrib_ptr,
egl_accept_config_cb_t  cb 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_report_error()

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

◆ egl_set_swap_interval()

void egl_set_swap_interval ( egl_ctx_data_t egl,
int  interval 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ egl_swap_buffers()

void egl_swap_buffers ( void data)
Here is the caller graph for this function:

◆ get_egl_display()

static EGLDisplay get_egl_display ( EGLenum  platform,
void native 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_egl_inited

bool g_egl_inited = false

◆ g_egl_major

unsigned g_egl_major = 0

◆ g_egl_minor

unsigned g_egl_minor = 0