RetroArch
Classes | Macros | Typedefs | Functions | Variables
egl_common.h File Reference
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <boolean.h>
#include <retro_common_api.h>
#include "../video_driver.h"
Include dependency graph for egl_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  egl_ctx_data_t
 

Macros

#define EGL_CONTEXT_FLAGS_KHR   0x30FC
 
#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR   0x00000001
 

Typedefs

typedef bool(* egl_accept_config_cb_t) (void *display_data, EGLDisplay dpy, EGLConfig config)
 

Functions

void egl_report_error (void)
 
void egl_destroy (egl_ctx_data_t *egl)
 
gfx_ctx_proc_t egl_get_proc_address (const char *symbol)
 
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 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
 
unsigned g_egl_major
 
unsigned g_egl_minor
 

Macro Definition Documentation

◆ EGL_CONTEXT_FLAGS_KHR

#define EGL_CONTEXT_FLAGS_KHR   0x30FC

◆ EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR

#define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR   0x00000001

Typedef Documentation

◆ egl_accept_config_cb_t

typedef bool(* egl_accept_config_cb_t) (void *display_data, EGLDisplay dpy, EGLConfig config)

Function Documentation

◆ 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:

Variable Documentation

◆ g_egl_inited

bool g_egl_inited

◆ g_egl_major

unsigned g_egl_major

◆ g_egl_minor

unsigned g_egl_minor