diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-10-01 15:27:42 -0400 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2011-08-21 02:01:48 +0800 |
commit | 00b365bc78c131bfd1c19bb22ac55e36f4e8f3c5 (patch) | |
tree | 5432ba46cdcbea6ea332c6d1c7c351095865a8e2 /include | |
parent | b0945c14dff96eb894c4a8b52a4c1374a05e2f6c (diff) | |
download | external_mesa3d-00b365bc78c131bfd1c19bb22ac55e36f4e8f3c5.zip external_mesa3d-00b365bc78c131bfd1c19bb22ac55e36f4e8f3c5.tar.gz external_mesa3d-00b365bc78c131bfd1c19bb22ac55e36f4e8f3c5.tar.bz2 |
egl: add Android-specific extensions
Add EGL_ANDROID_image_native_buffer and EGL_ANDROID_swap_rectangle.
There is no spec for them though.
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Chad Versace <chad@chad-versace.us>
Diffstat (limited to 'include')
-rw-r--r-- | include/EGL/eglext.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h index 9915b8c..0449ae2 100644 --- a/include/EGL/eglext.h +++ b/include/EGL/eglext.h @@ -390,6 +390,20 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EG #define EGL_Y_INVERTED_NOK 0x307F #endif /* EGL_NOK_texture_from_pixmap */ +#ifndef EGL_ANDROID_image_native_buffer +#define EGL_ANDROID_image_native_buffer 1 +struct android_native_buffer_t; +#define EGL_NATIVE_BUFFER_ANDROID 0x3140 /* eglCreateImageKHR target */ +#endif + +#ifndef EGL_ANDROID_swap_rectangle +#define EGL_ANDROID_swap_rectangle 1 +#ifdef EGL_EGLEXT_PROTOTYPES +EGLAPI EGLBoolean EGLAPIENTRY eglSetSwapRectangleANDROID (EGLDisplay dpy, EGLSurface draw, EGLint left, EGLint top, EGLint width, EGLint height); +#endif /* EGL_EGLEXT_PROTOTYPES */ +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSWAPRECTANGLEANDROIDPROC) (EGLDisplay dpy, EGLSurface draw, EGLint left, EGLint top, EGLint width, EGLint height); +#endif + #ifdef __cplusplus } |