eglplatform.h: Define Wayland native platform types
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 9 Feb 2011 15:18:07 +0000 (10:18 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 9 Feb 2011 15:58:20 +0000 (10:58 -0500)
This is conditional on WL_EGL_PLATFORM being #defined, so application
must make sure to include wayland-egl.h before including any egl header.

include/EGL/eglplatform.h

index 33a3e5f889135bd83558e516c2e8c0b21e6cb7c7..005b29444048edd32a2a134919ffc8c45f0c8597 100644 (file)
@@ -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