From 53660e4c4ed315d4b2fe5d921861fbfebf2bbe42 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 26 Aug 2020 19:01:53 +0100 Subject: Add EGL xcb platform This enables GL applications to be written without any involvement of Xlib. EGL X11 platform is actually already xcb-only underneath, so this commit just add the necessary interface changes so eglDisplay can be created from a xcb_connection_t. Reviewed-by: Adam Jackson Signed-off-by: Yuxuan Shui Part-of: --- include/EGL/eglext.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h index a1e5e946899..a911e40c933 100644 --- a/include/EGL/eglext.h +++ b/include/EGL/eglext.h @@ -883,6 +883,12 @@ EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6 #endif /* EGL_EXT_platform_x11 */ +#ifndef EGL_MESA_platform_xcb +#define EGL_MESA_platform_xcb 1 +#define EGL_PLATFORM_XCB_EXT 0x31DC +#define EGL_PLATFORM_XCB_SCREEN_EXT 0x31DE +#endif /* EGL_MESA_platform_xcb */ + #ifndef EGL_EXT_protected_content #define EGL_EXT_protected_content 1 #define EGL_PROTECTED_CONTENT_EXT 0x32C0 -- cgit v1.2.3