1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/include/EGL/eglext.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,354 @@ 1.4 +#ifndef __eglext_h_ 1.5 +#define __eglext_h_ 1.6 + 1.7 +#ifdef __cplusplus 1.8 +extern "C" { 1.9 +#endif 1.10 + 1.11 +/* 1.12 +** Copyright (c) 2007-2012 The Khronos Group Inc. 1.13 +** 1.14 +** Permission is hereby granted, free of charge, to any person obtaining a 1.15 +** copy of this software and/or associated documentation files (the 1.16 +** "Materials"), to deal in the Materials without restriction, including 1.17 +** without limitation the rights to use, copy, modify, merge, publish, 1.18 +** distribute, sublicense, and/or sell copies of the Materials, and to 1.19 +** permit persons to whom the Materials are furnished to do so, subject to 1.20 +** the following conditions: 1.21 +** 1.22 +** The above copyright notice and this permission notice shall be included 1.23 +** in all copies or substantial portions of the Materials. 1.24 +** 1.25 +** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 1.26 +** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 1.27 +** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 1.28 +** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 1.29 +** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 1.30 +** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 1.31 +** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. 1.32 +*/ 1.33 + 1.34 +#include <EGL/eglplatform.h> 1.35 + 1.36 +/*************************************************************/ 1.37 + 1.38 +/* Header file version number */ 1.39 +/* Current version at http://www.khronos.org/registry/egl/ */ 1.40 +/* $Revision: 16473 $ on $Date: 2012-01-04 02:20:48 -0800 (Wed, 04 Jan 2012) $ */ 1.41 +#define EGL_EGLEXT_VERSION 11 1.42 + 1.43 +#ifndef EGL_KHR_config_attribs 1.44 +#define EGL_KHR_config_attribs 1 1.45 +#define EGL_CONFORMANT_KHR 0x3042 /* EGLConfig attribute */ 1.46 +#define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020 /* EGL_SURFACE_TYPE bitfield */ 1.47 +#define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040 /* EGL_SURFACE_TYPE bitfield */ 1.48 +#endif 1.49 + 1.50 +#ifndef EGL_KHR_lock_surface 1.51 +#define EGL_KHR_lock_surface 1 1.52 +#define EGL_READ_SURFACE_BIT_KHR 0x0001 /* EGL_LOCK_USAGE_HINT_KHR bitfield */ 1.53 +#define EGL_WRITE_SURFACE_BIT_KHR 0x0002 /* EGL_LOCK_USAGE_HINT_KHR bitfield */ 1.54 +#define EGL_LOCK_SURFACE_BIT_KHR 0x0080 /* EGL_SURFACE_TYPE bitfield */ 1.55 +#define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100 /* EGL_SURFACE_TYPE bitfield */ 1.56 +#define EGL_MATCH_FORMAT_KHR 0x3043 /* EGLConfig attribute */ 1.57 +#define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0 /* EGL_MATCH_FORMAT_KHR value */ 1.58 +#define EGL_FORMAT_RGB_565_KHR 0x30C1 /* EGL_MATCH_FORMAT_KHR value */ 1.59 +#define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2 /* EGL_MATCH_FORMAT_KHR value */ 1.60 +#define EGL_FORMAT_RGBA_8888_KHR 0x30C3 /* EGL_MATCH_FORMAT_KHR value */ 1.61 +#define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4 /* eglLockSurfaceKHR attribute */ 1.62 +#define EGL_LOCK_USAGE_HINT_KHR 0x30C5 /* eglLockSurfaceKHR attribute */ 1.63 +#define EGL_BITMAP_POINTER_KHR 0x30C6 /* eglQuerySurface attribute */ 1.64 +#define EGL_BITMAP_PITCH_KHR 0x30C7 /* eglQuerySurface attribute */ 1.65 +#define EGL_BITMAP_ORIGIN_KHR 0x30C8 /* eglQuerySurface attribute */ 1.66 +#define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9 /* eglQuerySurface attribute */ 1.67 +#define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA /* eglQuerySurface attribute */ 1.68 +#define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB /* eglQuerySurface attribute */ 1.69 +#define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC /* eglQuerySurface attribute */ 1.70 +#define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD /* eglQuerySurface attribute */ 1.71 +#define EGL_LOWER_LEFT_KHR 0x30CE /* EGL_BITMAP_ORIGIN_KHR value */ 1.72 +#define EGL_UPPER_LEFT_KHR 0x30CF /* EGL_BITMAP_ORIGIN_KHR value */ 1.73 +#ifdef EGL_EGLEXT_PROTOTYPES 1.74 +EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); 1.75 +EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay display, EGLSurface surface); 1.76 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.77 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface, const EGLint *attrib_list); 1.78 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay display, EGLSurface surface); 1.79 +#endif 1.80 + 1.81 +#ifndef EGL_KHR_image 1.82 +#define EGL_KHR_image 1 1.83 +#define EGL_NATIVE_PIXMAP_KHR 0x30B0 /* eglCreateImageKHR target */ 1.84 +typedef void *EGLImageKHR; 1.85 +#define EGL_NO_IMAGE_KHR ((EGLImageKHR)0) 1.86 +#ifdef EGL_EGLEXT_PROTOTYPES 1.87 +EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 1.88 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image); 1.89 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.90 +typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list); 1.91 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image); 1.92 +#endif 1.93 + 1.94 +#ifndef EGL_KHR_vg_parent_image 1.95 +#define EGL_KHR_vg_parent_image 1 1.96 +#define EGL_VG_PARENT_IMAGE_KHR 0x30BA /* eglCreateImageKHR target */ 1.97 +#endif 1.98 + 1.99 +#ifndef EGL_KHR_gl_texture_2D_image 1.100 +#define EGL_KHR_gl_texture_2D_image 1 1.101 +#define EGL_GL_TEXTURE_2D_KHR 0x30B1 /* eglCreateImageKHR target */ 1.102 +#define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC /* eglCreateImageKHR attribute */ 1.103 +#endif 1.104 + 1.105 +#ifndef EGL_KHR_gl_texture_cubemap_image 1.106 +#define EGL_KHR_gl_texture_cubemap_image 1 1.107 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3 /* eglCreateImageKHR target */ 1.108 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4 /* eglCreateImageKHR target */ 1.109 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5 /* eglCreateImageKHR target */ 1.110 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6 /* eglCreateImageKHR target */ 1.111 +#define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7 /* eglCreateImageKHR target */ 1.112 +#define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8 /* eglCreateImageKHR target */ 1.113 +#endif 1.114 + 1.115 +#ifndef EGL_KHR_gl_texture_3D_image 1.116 +#define EGL_KHR_gl_texture_3D_image 1 1.117 +#define EGL_GL_TEXTURE_3D_KHR 0x30B2 /* eglCreateImageKHR target */ 1.118 +#define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD /* eglCreateImageKHR attribute */ 1.119 +#endif 1.120 + 1.121 +#ifndef EGL_KHR_gl_renderbuffer_image 1.122 +#define EGL_KHR_gl_renderbuffer_image 1 1.123 +#define EGL_GL_RENDERBUFFER_KHR 0x30B9 /* eglCreateImageKHR target */ 1.124 +#endif 1.125 + 1.126 +#if KHRONOS_SUPPORT_INT64 /* EGLTimeKHR requires 64-bit uint support */ 1.127 +#ifndef EGL_KHR_reusable_sync 1.128 +#define EGL_KHR_reusable_sync 1 1.129 + 1.130 +typedef void* EGLSyncKHR; 1.131 +typedef khronos_utime_nanoseconds_t EGLTimeKHR; 1.132 + 1.133 +#define EGL_SYNC_STATUS_KHR 0x30F1 1.134 +#define EGL_SIGNALED_KHR 0x30F2 1.135 +#define EGL_UNSIGNALED_KHR 0x30F3 1.136 +#define EGL_TIMEOUT_EXPIRED_KHR 0x30F5 1.137 +#define EGL_CONDITION_SATISFIED_KHR 0x30F6 1.138 +#define EGL_SYNC_TYPE_KHR 0x30F7 1.139 +#define EGL_SYNC_REUSABLE_KHR 0x30FA 1.140 +#define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001 /* eglClientWaitSyncKHR <flags> bitfield */ 1.141 +#define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull 1.142 +#define EGL_NO_SYNC_KHR ((EGLSyncKHR)0) 1.143 +#ifdef EGL_EGLEXT_PROTOTYPES 1.144 +EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR(EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); 1.145 +EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR(EGLDisplay dpy, EGLSyncKHR sync); 1.146 +EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); 1.147 +EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 1.148 +EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR(EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); 1.149 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.150 +typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list); 1.151 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync); 1.152 +typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout); 1.153 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode); 1.154 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value); 1.155 +#endif 1.156 +#endif 1.157 + 1.158 +#ifndef EGL_KHR_image_base 1.159 +#define EGL_KHR_image_base 1 1.160 +/* Most interfaces defined by EGL_KHR_image_pixmap above */ 1.161 +#define EGL_IMAGE_PRESERVED_KHR 0x30D2 /* eglCreateImageKHR attribute */ 1.162 +#endif 1.163 + 1.164 +#ifndef EGL_KHR_image_pixmap 1.165 +#define EGL_KHR_image_pixmap 1 1.166 +/* Interfaces defined by EGL_KHR_image above */ 1.167 +#endif 1.168 + 1.169 +#ifndef EGL_IMG_context_priority 1.170 +#define EGL_IMG_context_priority 1 1.171 +#define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100 1.172 +#define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101 1.173 +#define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102 1.174 +#define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103 1.175 +#endif 1.176 + 1.177 +#ifndef EGL_KHR_lock_surface2 1.178 +#define EGL_KHR_lock_surface2 1 1.179 +#define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110 1.180 +#endif 1.181 + 1.182 +#ifndef EGL_NV_coverage_sample 1.183 +#define EGL_NV_coverage_sample 1 1.184 +#define EGL_COVERAGE_BUFFERS_NV 0x30E0 1.185 +#define EGL_COVERAGE_SAMPLES_NV 0x30E1 1.186 +#endif 1.187 + 1.188 +#ifndef EGL_NV_depth_nonlinear 1.189 +#define EGL_NV_depth_nonlinear 1 1.190 +#define EGL_DEPTH_ENCODING_NV 0x30E2 1.191 +#define EGL_DEPTH_ENCODING_NONE_NV 0 1.192 +#define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3 1.193 +#endif 1.194 + 1.195 +#if KHRONOS_SUPPORT_INT64 /* EGLTimeNV requires 64-bit uint support */ 1.196 +#ifndef EGL_NV_sync 1.197 +#define EGL_NV_sync 1 1.198 +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6 1.199 +#define EGL_SYNC_STATUS_NV 0x30E7 1.200 +#define EGL_SIGNALED_NV 0x30E8 1.201 +#define EGL_UNSIGNALED_NV 0x30E9 1.202 +#define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001 1.203 +#define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull 1.204 +#define EGL_ALREADY_SIGNALED_NV 0x30EA 1.205 +#define EGL_TIMEOUT_EXPIRED_NV 0x30EB 1.206 +#define EGL_CONDITION_SATISFIED_NV 0x30EC 1.207 +#define EGL_SYNC_TYPE_NV 0x30ED 1.208 +#define EGL_SYNC_CONDITION_NV 0x30EE 1.209 +#define EGL_SYNC_FENCE_NV 0x30EF 1.210 +#define EGL_NO_SYNC_NV ((EGLSyncNV)0) 1.211 +typedef void* EGLSyncNV; 1.212 +typedef khronos_utime_nanoseconds_t EGLTimeNV; 1.213 +#ifdef EGL_EGLEXT_PROTOTYPES 1.214 +EGLSyncNV eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); 1.215 +EGLBoolean eglDestroySyncNV (EGLSyncNV sync); 1.216 +EGLBoolean eglFenceNV (EGLSyncNV sync); 1.217 +EGLint eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); 1.218 +EGLBoolean eglSignalSyncNV (EGLSyncNV sync, EGLenum mode); 1.219 +EGLBoolean eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value); 1.220 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.221 +typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list); 1.222 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync); 1.223 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync); 1.224 +typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout); 1.225 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode); 1.226 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value); 1.227 +#endif 1.228 +#endif 1.229 + 1.230 +#if KHRONOS_SUPPORT_INT64 /* Dependent on EGL_KHR_reusable_sync which requires 64-bit uint support */ 1.231 +#ifndef EGL_KHR_fence_sync 1.232 +#define EGL_KHR_fence_sync 1 1.233 +/* Reuses most tokens and entry points from EGL_KHR_reusable_sync */ 1.234 +#define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0 1.235 +#define EGL_SYNC_CONDITION_KHR 0x30F8 1.236 +#define EGL_SYNC_FENCE_KHR 0x30F9 1.237 +#endif 1.238 +#endif 1.239 + 1.240 +#ifndef EGL_HI_clientpixmap 1.241 +#define EGL_HI_clientpixmap 1 1.242 + 1.243 +/* Surface Attribute */ 1.244 +#define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74 1.245 +/* 1.246 + * Structure representing a client pixmap 1.247 + * (pixmap's data is in client-space memory). 1.248 + */ 1.249 +struct EGLClientPixmapHI 1.250 +{ 1.251 + void* pData; 1.252 + EGLint iWidth; 1.253 + EGLint iHeight; 1.254 + EGLint iStride; 1.255 +}; 1.256 + 1.257 +#ifdef EGL_EGLEXT_PROTOTYPES 1.258 +EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI(EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap); 1.259 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.260 +typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap); 1.261 +#endif /* EGL_HI_clientpixmap */ 1.262 + 1.263 +#ifndef EGL_HI_colorformats 1.264 +#define EGL_HI_colorformats 1 1.265 +/* Config Attribute */ 1.266 +#define EGL_COLOR_FORMAT_HI 0x8F70 1.267 +/* Color Formats */ 1.268 +#define EGL_COLOR_RGB_HI 0x8F71 1.269 +#define EGL_COLOR_RGBA_HI 0x8F72 1.270 +#define EGL_COLOR_ARGB_HI 0x8F73 1.271 +#endif /* EGL_HI_colorformats */ 1.272 + 1.273 +#ifndef EGL_MESA_drm_image 1.274 +#define EGL_MESA_drm_image 1 1.275 +#define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0 /* CreateDRMImageMESA attribute */ 1.276 +#define EGL_DRM_BUFFER_USE_MESA 0x31D1 /* CreateDRMImageMESA attribute */ 1.277 +#define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2 /* EGL_IMAGE_FORMAT_MESA attribute value */ 1.278 +#define EGL_DRM_BUFFER_MESA 0x31D3 /* eglCreateImageKHR target */ 1.279 +#define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4 1.280 +#define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001 /* EGL_DRM_BUFFER_USE_MESA bits */ 1.281 +#define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002 /* EGL_DRM_BUFFER_USE_MESA bits */ 1.282 +#ifdef EGL_EGLEXT_PROTOTYPES 1.283 +EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list); 1.284 +EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); 1.285 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.286 +typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list); 1.287 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride); 1.288 +#endif 1.289 + 1.290 +#ifndef EGL_NV_post_sub_buffer 1.291 +#define EGL_NV_post_sub_buffer 1 1.292 +#define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE 1.293 +#ifdef EGL_EGLEXT_PROTOTYPES 1.294 +EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); 1.295 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.296 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height); 1.297 +#endif 1.298 + 1.299 +#ifndef EGL_ANGLE_query_surface_pointer 1.300 +#define EGL_ANGLE_query_surface_pointer 1 1.301 +#ifdef EGL_EGLEXT_PROTOTYPES 1.302 +EGLAPI EGLBoolean eglQuerySurfacePointerANGLE(EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); 1.303 +#endif 1.304 +typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value); 1.305 +#endif 1.306 + 1.307 +#ifndef EGL_ANGLE_software_display 1.308 +#define EGL_ANGLE_software_display 1 1.309 +#define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1) 1.310 +#endif 1.311 + 1.312 +#ifndef EGL_ANGLE_direct3d_display 1.313 +#define EGL_ANGLE_direct3d_display 1 1.314 +#define EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE ((EGLNativeDisplayType)-2) 1.315 +#define EGL_D3D11_ONLY_DISPLAY_ANGLE ((EGLNativeDisplayType)-3) 1.316 +#endif 1.317 + 1.318 +#ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle 1.319 +#define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1 1.320 +#define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200 1.321 +#endif 1.322 + 1.323 +#ifndef EGL_NV_coverage_sample_resolve 1.324 +#define EGL_NV_coverage_sample_resolve 1 1.325 +#define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131 1.326 +#define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132 1.327 +#define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133 1.328 +#endif 1.329 + 1.330 +#if KHRONOS_SUPPORT_INT64 /* EGLTimeKHR requires 64-bit uint support */ 1.331 +#ifndef EGL_NV_system_time 1.332 +#define EGL_NV_system_time 1 1.333 + 1.334 +typedef khronos_utime_nanoseconds_t EGLuint64NV; 1.335 + 1.336 +#ifdef EGL_EGLEXT_PROTOTYPES 1.337 +EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV(void); 1.338 +EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV(void); 1.339 +#endif /* EGL_EGLEXT_PROTOTYPES */ 1.340 +typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void); 1.341 +typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void); 1.342 +#endif 1.343 +#endif 1.344 + 1.345 +#ifndef EGL_EXT_create_context_robustness 1.346 +#define EGL_EXT_create_context_robustness 1 1.347 +#define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF 1.348 +#define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 1.349 +#define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE 1.350 +#define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF 1.351 +#endif 1.352 + 1.353 +#ifdef __cplusplus 1.354 +} 1.355 +#endif 1.356 + 1.357 +#endif