diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-10-01 15:27:42 -0400 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2011-03-16 20:18:39 +0800 |
commit | f2d8241f014ea0f7f0a82cda9992986c93ed7962 (patch) | |
tree | 165987b4058d725c1fd88d0743ae5952b010ca70 /include | |
parent | f9172081caa67d1894af91220c776648f88ddbd2 (diff) |
android: Add Android EGL extensions.
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 fa523a51d6..44bae42e08 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 } |