diff --git a/include/GL/eglew.h b/include/GL/eglew.h index dc3a02f..e9e5a0b 100644 --- a/include/GL/eglew.h +++ b/include/GL/eglew.h @@ -701,6 +701,18 @@ typedef EGLBoolean ( * PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLS #endif /* EGL_ANGLE_window_fixed_size */ +/* -------------------------- EGL_ARM_image_format ------------------------- */ + +#ifndef EGL_ARM_image_format +#define EGL_ARM_image_format 1 + +#define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287 +#define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288 + +#define EGLEW_ARM_image_format EGLEW_GET_VAR(__EGLEW_ARM_image_format) + +#endif /* EGL_ARM_image_format */ + /* --------------------- EGL_ARM_implicit_external_sync -------------------- */ #ifndef EGL_ARM_implicit_external_sync @@ -1247,7 +1259,7 @@ typedef EGLBoolean ( * PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLSt #ifndef EGL_EXT_swap_buffers_with_damage #define EGL_EXT_swap_buffers_with_damage 1 -typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint* rects, EGLint n_rects); +typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint* rects, EGLint n_rects); #define eglSwapBuffersWithDamageEXT EGLEW_GET_FUN(__eglewSwapBuffersWithDamageEXT) @@ -1973,7 +1985,7 @@ typedef EGLSurface ( * PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy #ifndef EGL_KHR_swap_buffers_with_damage #define EGL_KHR_swap_buffers_with_damage 1 -typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint* rects, EGLint n_rects); +typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint* rects, EGLint n_rects); #define eglSwapBuffersWithDamageKHR EGLEW_GET_FUN(__eglewSwapBuffersWithDamageKHR) @@ -2889,6 +2901,7 @@ EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_device_d3d; EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_query_surface_pointer; EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_surface_d3d_texture_2d_share_handle; EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_window_fixed_size; +EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_image_format; EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_implicit_external_sync; EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_pixmap_multisample_discard; EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_bind_to_front; diff --git a/src/glew.c b/src/glew.c index 86557b5..9e88871 100644 --- a/src/glew.c +++ b/src/glew.c @@ -19573,6 +19573,7 @@ GLboolean __EGLEW_ANGLE_device_d3d = GL_FALSE; GLboolean __EGLEW_ANGLE_query_surface_pointer = GL_FALSE; GLboolean __EGLEW_ANGLE_surface_d3d_texture_2d_share_handle = GL_FALSE; GLboolean __EGLEW_ANGLE_window_fixed_size = GL_FALSE; +GLboolean __EGLEW_ARM_image_format = GL_FALSE; GLboolean __EGLEW_ARM_implicit_external_sync = GL_FALSE; GLboolean __EGLEW_ARM_pixmap_multisample_discard = GL_FALSE; GLboolean __EGLEW_EXT_bind_to_front = GL_FALSE; @@ -20629,6 +20630,9 @@ GLenum eglewInit (EGLDisplay display) #ifdef EGL_ANGLE_window_fixed_size EGLEW_ANGLE_window_fixed_size = _glewSearchExtension("EGL_ANGLE_window_fixed_size", extStart, extEnd); #endif /* EGL_ANGLE_window_fixed_size */ +#ifdef EGL_ARM_image_format + EGLEW_ARM_image_format = _glewSearchExtension("EGL_ARM_image_format", extStart, extEnd); +#endif /* EGL_ARM_image_format */ #ifdef EGL_ARM_implicit_external_sync EGLEW_ARM_implicit_external_sync = _glewSearchExtension("EGL_ARM_implicit_external_sync", extStart, extEnd); #endif /* EGL_ARM_implicit_external_sync */ @@ -31055,6 +31059,13 @@ GLboolean eglewIsSupported (const char* name) } if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARM_", 4)) { +#ifdef EGL_ARM_image_format + if (_glewStrSame3(&pos, &len, (const GLubyte*)"image_format", 12)) + { + ret = EGLEW_ARM_image_format; + continue; + } +#endif #ifdef EGL_ARM_implicit_external_sync if (_glewStrSame3(&pos, &len, (const GLubyte*)"implicit_external_sync", 22)) { diff --git a/src/glewinfo.c b/src/glewinfo.c index 544c465..d830cc7 100644 --- a/src/glewinfo.c +++ b/src/glewinfo.c @@ -11958,6 +11958,15 @@ static void _glewInfo_EGL_ANGLE_window_fixed_size (void) #endif /* EGL_ANGLE_window_fixed_size */ +#ifdef EGL_ARM_image_format + +static void _glewInfo_EGL_ARM_image_format (void) +{ + glewPrintExt("EGL_ARM_image_format", EGLEW_ARM_image_format, eglewIsSupported("EGL_ARM_image_format"), eglewGetExtension("EGL_ARM_image_format")); +} + +#endif /* EGL_ARM_image_format */ + #ifdef EGL_ARM_implicit_external_sync static void _glewInfo_EGL_ARM_implicit_external_sync (void) @@ -18062,6 +18071,9 @@ static void eglewInfo () #ifdef EGL_ANGLE_window_fixed_size _glewInfo_EGL_ANGLE_window_fixed_size(); #endif /* EGL_ANGLE_window_fixed_size */ +#ifdef EGL_ARM_image_format + _glewInfo_EGL_ARM_image_format(); +#endif /* EGL_ARM_image_format */ #ifdef EGL_ARM_implicit_external_sync _glewInfo_EGL_ARM_implicit_external_sync(); #endif /* EGL_ARM_implicit_external_sync */