16 #ifndef __EGL_COMMON_H 17 #define __EGL_COMMON_H 24 #include <EGL/eglext.h> 29 #include "../video_driver.h" 31 #ifndef EGL_CONTEXT_FLAGS_KHR 32 #define EGL_CONTEXT_FLAGS_KHR 0x30FC 35 #ifndef EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 36 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001 100 const EGLint *attrib_ptr,
int interval
Definition: egl_common.h:61
#define RETRO_BEGIN_DECLS
Definition: retro_common_api.h:41
unsigned g_egl_minor
Definition: egl_common.c:35
gfx_ctx_proc_t egl_get_proc_address(const char *symbol)
Definition: egl_common.c:103
void egl_set_swap_interval(egl_ctx_data_t *egl, int interval)
Definition: egl_common.c:174
void egl_destroy(egl_ctx_data_t *egl)
Definition: egl_common.c:108
void(* gfx_ctx_proc_t)(void)
Definition: video_driver.h:330
GLboolean enable
Definition: glext.h:12027
EGLContext ctx
Definition: egl_common.h:56
EGLSurface surf
Definition: egl_common.h:58
bool use_hw_ctx
Definition: egl_common.h:67
unsigned major
Definition: egl_common.h:63
EGLDisplay dpy
Definition: egl_common.h:59
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
bool egl_create_surface(egl_ctx_data_t *egl, void *native_window)
Definition: egl_common.c:420
EGLContext hw_ctx
Definition: egl_common.h:57
bool egl_create_context(egl_ctx_data_t *egl, const EGLint *egl_attribs)
Definition: egl_common.c:396
void egl_bind_hw_render(egl_ctx_data_t *egl, bool enable)
Definition: egl_common.c:149
void egl_report_error(void)
Definition: egl_common.c:37
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)
Definition: egl_common.c:329
Definition: deflate.c:120
#define RETRO_END_DECLS
Definition: retro_common_api.h:42
unsigned minor
Definition: egl_common.h:64
EGLConfig config
Definition: egl_common.h:60
void egl_get_video_size(egl_ctx_data_t *egl, unsigned *width, unsigned *height)
Definition: egl_common.c:195
GLint GLint GLsizei width
Definition: glext.h:6293
GLsizei const GLfloat * value
Definition: glext.h:6709
Definition: egl_common.h:54
bool egl_default_accept_config_cb(void *display_data, EGLDisplay dpy, EGLConfig config)
Definition: egl_common.c:312
bool egl_has_config(egl_ctx_data_t *egl)
Definition: egl_common.c:448
void egl_swap_buffers(void *data)
Definition: egl_common.c:163
GLdouble n
Definition: glext.h:8396
unsigned g_egl_major
Definition: egl_common.c:34
bool egl_get_native_visual_id(egl_ctx_data_t *egl, EGLint *value)
Definition: egl_common.c:436
bool(* egl_accept_config_cb_t)(void *display_data, EGLDisplay dpy, EGLConfig config)
Definition: egl_common.h:91
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293
bool g_egl_inited
Definition: egl_common.c:32