summaryrefslogtreecommitdiffstats
path: root/include/EGL
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-02-09 10:18:07 -0500
committerKristian Høgsberg <krh@bitplanet.net>2011-02-09 10:58:20 -0500
commit04c5cc5b8bec1f34f2405b08fd0d9ed6bd70ea61 (patch)
treec01e5dc8e3e628aa92ef72559f6bb33a17e564b3 /include/EGL
parentb6e3130a3b6e40308ddb5d11638d509fe69eb912 (diff)
downloadexternal_mesa3d-04c5cc5b8bec1f34f2405b08fd0d9ed6bd70ea61.zip
external_mesa3d-04c5cc5b8bec1f34f2405b08fd0d9ed6bd70ea61.tar.gz
external_mesa3d-04c5cc5b8bec1f34f2405b08fd0d9ed6bd70ea61.tar.bz2
eglplatform.h: Define Wayland native platform types
This is conditional on WL_EGL_PLATFORM being #defined, so application must make sure to include wayland-egl.h before including any egl header.
Diffstat (limited to 'include/EGL')
-rw-r--r--include/EGL/eglplatform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 33a3e5f..005b294 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -78,6 +78,12 @@ typedef int EGLNativeDisplayType;
typedef void *EGLNativeWindowType;
typedef void *EGLNativePixmapType;
+#elif defined(WL_EGL_PLATFORM)
+
+typedef struct wl_egl_display *EGLNativeDisplayType;
+typedef struct wl_egl_pixmap *EGLNativePixmapType;
+typedef struct wl_egl_window *EGLNativeWindowType;
+
#elif defined(__unix__) || defined(__unix)
#ifdef MESA_EGL_NO_X11_HEADERS