From 706e689f479a9b17055e724a4eba1f9e1a4b5e6f Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 4 Jul 2016 15:34:22 +0100 Subject: [PATCH] weston-egl-ext.h: add EGL platform definitions Will allow us to consolidate the multiple definitions through the tree. Signed-off-by: Emil Velikov Reviewed-by: Daniel Stone --- libweston/weston-egl-ext.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/libweston/weston-egl-ext.h b/libweston/weston-egl-ext.h index 6b34c222..6e369960 100644 --- a/libweston/weston-egl-ext.h +++ b/libweston/weston-egl-ext.h @@ -133,5 +133,24 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay #define EGL_NO_CONFIG_MESA ((EGLConfig)0) #endif +#ifndef EGL_EXT_platform_base +#define EGL_EXT_platform_base 1 +typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list); +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list); +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list); +#endif /* EGL_EXT_platform_base */ + +#ifndef EGL_PLATFORM_GBM_KHR +#define EGL_PLATFORM_GBM_KHR 0x31D7 +#endif + +#ifndef EGL_PLATFORM_WAYLAND_KHR +#define EGL_PLATFORM_WAYLAND_KHR 0x31D8 +#endif + +#ifndef EGL_PLATFORM_X11_KHR +#define EGL_PLATFORM_X11_KHR 0x31D5 +#endif + #endif