]> git.cworth.org Git - apitrace/blobdiff - thirdparty/khronos/EGL/eglplatform.h
Modify eglplatform.h to support Android
[apitrace] / thirdparty / khronos / EGL / eglplatform.h
index 6d34ab55db9fda679e8839b754dad4adffe375c9..5f30ef1c22ee7889edf4c2f9e25ca2908e3bd45b 100644 (file)
@@ -83,6 +83,16 @@ typedef int   EGLNativeDisplayType;
 typedef void *EGLNativeWindowType;
 typedef void *EGLNativePixmapType;
 
+#elif defined(__ANDROID__) || defined(ANDROID)
+
+#include <android/native_window.h>
+
+struct egl_native_pixmap_t;
+
+typedef struct ANativeWindow*           EGLNativeWindowType;
+typedef struct egl_native_pixmap_t*     EGLNativePixmapType;
+typedef void*                           EGLNativeDisplayType;
+
 #elif defined(__unix__)
 
 /* X11 (tentative)  */