[Mesa-dev] [PATCH 4/6] egl: directfb: new DirectFB native EGL types

Ilyes Gouta ilyes.gouta at gmail.com
Sun Apr 14 10:50:47 PDT 2013


Defining EGLNativeWindowType as a pointer on a IDirectFBSurface
enables for configuring EGL to render into a double-buffered
surface which could be offscreen but also primary (visible).

Signed-off-by: Ilyes Gouta <ilyes.gouta at gmail.com>
---
 include/EGL/eglplatform.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 17fdc61..a5469ad 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -104,6 +104,12 @@ typedef struct ANativeWindow        *EGLNativeWindowType;
 typedef struct egl_native_pixmap_t  *EGLNativePixmapType;
 typedef void                        *EGLNativeDisplayType;
 
+#elif defined(DIRECTFB_API)
+
+typedef void               *EGLNativeDisplayType;
+typedef IDirectFBSurface   *EGLNativePixmapType;
+typedef IDirectFBSurface   *EGLNativeWindowType;
+
 #elif defined(__unix__)
 
 #ifdef MESA_EGL_NO_X11_HEADERS
-- 
1.8.1.4



More information about the mesa-dev mailing list