summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-10-11 16:09:52 +0800
committerChia-I Wu <olvaffe@gmail.com>2011-08-21 02:01:48 +0800
commitb0945c14dff96eb894c4a8b52a4c1374a05e2f6c (patch)
tree51a1aad951cbf348adc2eac3d29cdc46812c207b /include
parent504f92c739ffc916084ed821cb9f437276213057 (diff)
egl: add _EGL_PLATFORM_ANDROID
This is Android Gingerbread platform. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Chad Versace <chad@chad-versace.us>
Diffstat (limited to 'include')
-rw-r--r--include/EGL/eglplatform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index fbfdce32ef..8d3f72f24b 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -90,6 +90,15 @@ typedef struct gbm_device *EGLNativeDisplayType;
typedef struct gbm_bo *EGLNativePixmapType;
typedef void *EGLNativeWindowType;
+#elif defined(ANDROID) /* Android */
+
+struct ANativeWindow;
+struct egl_native_pixmap_t;
+
+typedef struct ANativeWindow *EGLNativeWindowType;
+typedef struct egl_native_pixmap_t *EGLNativePixmapType;
+typedef void *EGLNativeDisplayType;
+
#elif defined(__unix__) || defined(__unix)
#ifdef MESA_EGL_NO_X11_HEADERS