Home | History | Annotate | Download | only in EGL
      1 #ifndef __eglext_h_
      2 #define __eglext_h_ 1
      3 
      4 #ifdef __cplusplus
      5 extern "C" {
      6 #endif
      7 
      8 /*
      9 ** Copyright (c) 2013-2014 The Khronos Group Inc.
     10 **
     11 ** Permission is hereby granted, free of charge, to any person obtaining a
     12 ** copy of this software and/or associated documentation files (the
     13 ** "Materials"), to deal in the Materials without restriction, including
     14 ** without limitation the rights to use, copy, modify, merge, publish,
     15 ** distribute, sublicense, and/or sell copies of the Materials, and to
     16 ** permit persons to whom the Materials are furnished to do so, subject to
     17 ** the following conditions:
     18 **
     19 ** The above copyright notice and this permission notice shall be included
     20 ** in all copies or substantial portions of the Materials.
     21 **
     22 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     23 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     24 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     25 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
     26 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
     27 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
     28 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
     29 */
     30 /*
     31 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
     32 ** API Registry. The current version of the Registry, generator scripts
     33 ** used to make the header, and the header can be found at
     34 **   http://www.opengl.org/registry/
     35 **
     36 ** Khronos $Revision: 27018 $ on $Date: 2014-06-10 08:06:12 -0700 (Tue, 10 Jun 2014) $
     37 */
     38 
     39 #include <EGL/eglplatform.h>
     40 
     41 #define EGL_EGLEXT_VERSION 20140610
     42 
     43 /* Generated C header for:
     44  * API: egl
     45  * Versions considered: .*
     46  * Versions emitted: _nomatch_^
     47  * Default extensions included: egl
     48  * Additional extensions included: _nomatch_^
     49  * Extensions removed: _nomatch_^
     50  */
     51 
     52 #ifndef EGL_KHR_cl_event
     53 #define EGL_KHR_cl_event 1
     54 #define EGL_CL_EVENT_HANDLE_KHR           0x309C
     55 #define EGL_SYNC_CL_EVENT_KHR             0x30FE
     56 #define EGL_SYNC_CL_EVENT_COMPLETE_KHR    0x30FF
     57 #endif /* EGL_KHR_cl_event */
     58 
     59 #ifndef EGL_KHR_cl_event2
     60 #define EGL_KHR_cl_event2 1
     61 typedef void *EGLSyncKHR;
     62 typedef intptr_t EGLAttribKHR;
     63 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
     64 #ifdef EGL_EGLEXT_PROTOTYPES
     65 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
     66 #endif
     67 #endif /* EGL_KHR_cl_event2 */
     68 
     69 #ifndef EGL_KHR_client_get_all_proc_addresses
     70 #define EGL_KHR_client_get_all_proc_addresses 1
     71 #endif /* EGL_KHR_client_get_all_proc_addresses */
     72 
     73 #ifndef EGL_KHR_config_attribs
     74 #define EGL_KHR_config_attribs 1
     75 #define EGL_CONFORMANT_KHR                0x3042
     76 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR  0x0020
     77 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR   0x0040
     78 #endif /* EGL_KHR_config_attribs */
     79 
     80 #ifndef EGL_KHR_create_context
     81 #define EGL_KHR_create_context 1
     82 #define EGL_CONTEXT_MAJOR_VERSION_KHR     0x3098
     83 #define EGL_CONTEXT_MINOR_VERSION_KHR     0x30FB
     84 #define EGL_CONTEXT_FLAGS_KHR             0x30FC
     85 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
     86 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
     87 #define EGL_NO_RESET_NOTIFICATION_KHR     0x31BE
     88 #define EGL_LOSE_CONTEXT_ON_RESET_KHR     0x31BF
     89 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR  0x00000001
     90 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
     91 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
     92 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
     93 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
     94 #define EGL_OPENGL_ES3_BIT_KHR            0x00000040
     95 #endif /* EGL_KHR_create_context */
     96 
     97 #ifndef EGL_KHR_fence_sync
     98 #define EGL_KHR_fence_sync 1
     99 #ifdef KHRONOS_SUPPORT_INT64
    100 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
    101 #define EGL_SYNC_CONDITION_KHR            0x30F8
    102 #define EGL_SYNC_FENCE_KHR                0x30F9
    103 #endif /* KHRONOS_SUPPORT_INT64 */
    104 #endif /* EGL_KHR_fence_sync */
    105 
    106 #ifndef EGL_KHR_get_all_proc_addresses
    107 #define EGL_KHR_get_all_proc_addresses 1
    108 #endif /* EGL_KHR_get_all_proc_addresses */
    109 
    110 #ifndef EGL_KHR_gl_colorspace
    111 #define EGL_KHR_gl_colorspace 1
    112 #define EGL_GL_COLORSPACE_KHR             0x309D
    113 #define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
    114 #define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
    115 #endif /* EGL_KHR_gl_colorspace */
    116 
    117 #ifndef EGL_KHR_gl_renderbuffer_image
    118 #define EGL_KHR_gl_renderbuffer_image 1
    119 #define EGL_GL_RENDERBUFFER_KHR           0x30B9
    120 #endif /* EGL_KHR_gl_renderbuffer_image */
    121 
    122 #ifndef EGL_KHR_gl_texture_2D_image
    123 #define EGL_KHR_gl_texture_2D_image 1
    124 #define EGL_GL_TEXTURE_2D_KHR             0x30B1
    125 #define EGL_GL_TEXTURE_LEVEL_KHR          0x30BC
    126 #endif /* EGL_KHR_gl_texture_2D_image */
    127 
    128 #ifndef EGL_KHR_gl_texture_3D_image
    129 #define EGL_KHR_gl_texture_3D_image 1
    130 #define EGL_GL_TEXTURE_3D_KHR             0x30B2
    131 #define EGL_GL_TEXTURE_ZOFFSET_KHR        0x30BD
    132 #endif /* EGL_KHR_gl_texture_3D_image */
    133 
    134 #ifndef EGL_KHR_gl_texture_cubemap_image
    135 #define EGL_KHR_gl_texture_cubemap_image 1
    136 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
    137 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
    138 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
    139 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
    140 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
    141 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
    142 #endif /* EGL_KHR_gl_texture_cubemap_image */
    143 
    144 #ifndef EGL_KHR_image
    145 #define EGL_KHR_image 1
    146 typedef void *EGLImageKHR;
    147 #define EGL_NATIVE_PIXMAP_KHR             0x30B0
    148 #define EGL_NO_IMAGE_KHR                  ((EGLImageKHR)0)
    149 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
    150 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
    151 #ifdef EGL_EGLEXT_PROTOTYPES
    152 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
    153 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
    154 #endif
    155 #endif /* EGL_KHR_image */
    156 
    157 #ifndef EGL_KHR_image_base
    158 #define EGL_KHR_image_base 1
    159 #define EGL_IMAGE_PRESERVED_KHR           0x30D2
    160 #endif /* EGL_KHR_image_base */
    161 
    162 #ifndef EGL_KHR_image_pixmap
    163 #define EGL_KHR_image_pixmap 1
    164 #endif /* EGL_KHR_image_pixmap */
    165 
    166 #ifndef EGL_KHR_lock_surface
    167 #define EGL_KHR_lock_surface 1
    168 #define EGL_READ_SURFACE_BIT_KHR          0x0001
    169 #define EGL_WRITE_SURFACE_BIT_KHR         0x0002
    170 #define EGL_LOCK_SURFACE_BIT_KHR          0x0080
    171 #define EGL_OPTIMAL_FORMAT_BIT_KHR        0x0100
    172 #define EGL_MATCH_FORMAT_KHR              0x3043
    173 #define EGL_FORMAT_RGB_565_EXACT_KHR      0x30C0
    174 #define EGL_FORMAT_RGB_565_KHR            0x30C1
    175 #define EGL_FORMAT_RGBA_8888_EXACT_KHR    0x30C2
    176 #define EGL_FORMAT_RGBA_8888_KHR          0x30C3
    177 #define EGL_MAP_PRESERVE_PIXELS_KHR       0x30C4
    178 #define EGL_LOCK_USAGE_HINT_KHR           0x30C5
    179 #define EGL_BITMAP_POINTER_KHR            0x30C6
    180 #define EGL_BITMAP_PITCH_KHR              0x30C7
    181 #define EGL_BITMAP_ORIGIN_KHR             0x30C8
    182 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR   0x30C9
    183 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
    184 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR  0x30CB
    185 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
    186 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
    187 #define EGL_LOWER_LEFT_KHR                0x30CE
    188 #define EGL_UPPER_LEFT_KHR                0x30CF
    189 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
    190 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
    191 #ifdef EGL_EGLEXT_PROTOTYPES
    192 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
    193 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
    194 #endif
    195 #endif /* EGL_KHR_lock_surface */
    196 
    197 #ifndef EGL_KHR_lock_surface2
    198 #define EGL_KHR_lock_surface2 1
    199 #define EGL_BITMAP_PIXEL_SIZE_KHR         0x3110
    200 #endif /* EGL_KHR_lock_surface2 */
    201 
    202 #ifndef EGL_KHR_lock_surface3
    203 #define EGL_KHR_lock_surface3 1
    204 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
    205 #ifdef EGL_EGLEXT_PROTOTYPES
    206 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
    207 #endif
    208 #endif /* EGL_KHR_lock_surface3 */
    209 
    210 #ifndef EGL_KHR_platform_android
    211 #define EGL_KHR_platform_android 1
    212 #define EGL_PLATFORM_ANDROID_KHR          0x3141
    213 #endif /* EGL_KHR_platform_android */
    214 
    215 #ifndef EGL_KHR_platform_gbm
    216 #define EGL_KHR_platform_gbm 1
    217 #define EGL_PLATFORM_GBM_KHR              0x31D7
    218 #endif /* EGL_KHR_platform_gbm */
    219 
    220 #ifndef EGL_KHR_platform_wayland
    221 #define EGL_KHR_platform_wayland 1
    222 #define EGL_PLATFORM_WAYLAND_KHR          0x31D8
    223 #endif /* EGL_KHR_platform_wayland */
    224 
    225 #ifndef EGL_KHR_platform_x11
    226 #define EGL_KHR_platform_x11 1
    227 #define EGL_PLATFORM_X11_KHR              0x31D5
    228 #define EGL_PLATFORM_X11_SCREEN_KHR       0x31D6
    229 #endif /* EGL_KHR_platform_x11 */
    230 
    231 #ifndef EGL_KHR_reusable_sync
    232 #define EGL_KHR_reusable_sync 1
    233 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
    234 #ifdef KHRONOS_SUPPORT_INT64
    235 #define EGL_SYNC_STATUS_KHR               0x30F1
    236 #define EGL_SIGNALED_KHR                  0x30F2
    237 #define EGL_UNSIGNALED_KHR                0x30F3
    238 #define EGL_TIMEOUT_EXPIRED_KHR           0x30F5
    239 #define EGL_CONDITION_SATISFIED_KHR       0x30F6
    240 #define EGL_SYNC_TYPE_KHR                 0x30F7
    241 #define EGL_SYNC_REUSABLE_KHR             0x30FA
    242 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR   0x0001
    243 #define EGL_FOREVER_KHR                   0xFFFFFFFFFFFFFFFFull
    244 #define EGL_NO_SYNC_KHR                   ((EGLSyncKHR)0)
    245 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
    246 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
    247 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
    248 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
    249 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
    250 #ifdef EGL_EGLEXT_PROTOTYPES
    251 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
    252 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
    253 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
    254 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
    255 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
    256 #endif
    257 #endif /* KHRONOS_SUPPORT_INT64 */
    258 #endif /* EGL_KHR_reusable_sync */
    259 
    260 #ifndef EGL_KHR_stream
    261 #define EGL_KHR_stream 1
    262 typedef void *EGLStreamKHR;
    263 typedef khronos_uint64_t EGLuint64KHR;
    264 #ifdef KHRONOS_SUPPORT_INT64
    265 #define EGL_NO_STREAM_KHR                 ((EGLStreamKHR)0)
    266 #define EGL_CONSUMER_LATENCY_USEC_KHR     0x3210
    267 #define EGL_PRODUCER_FRAME_KHR            0x3212
    268 #define EGL_CONSUMER_FRAME_KHR            0x3213
    269 #define EGL_STREAM_STATE_KHR              0x3214
    270 #define EGL_STREAM_STATE_CREATED_KHR      0x3215
    271 #define EGL_STREAM_STATE_CONNECTING_KHR   0x3216
    272 #define EGL_STREAM_STATE_EMPTY_KHR        0x3217
    273 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
    274 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
    275 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
    276 #define EGL_BAD_STREAM_KHR                0x321B
    277 #define EGL_BAD_STATE_KHR                 0x321C
    278 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
    279 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    280 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
    281 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
    282 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
    283 #ifdef EGL_EGLEXT_PROTOTYPES
    284 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
    285 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
    286 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
    287 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
    288 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
    289 #endif
    290 #endif /* KHRONOS_SUPPORT_INT64 */
    291 #endif /* EGL_KHR_stream */
    292 
    293 #ifndef EGL_KHR_stream_consumer_gltexture
    294 #define EGL_KHR_stream_consumer_gltexture 1
    295 #ifdef EGL_KHR_stream
    296 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
    297 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    298 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    299 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    300 #ifdef EGL_EGLEXT_PROTOTYPES
    301 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
    302 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
    303 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
    304 #endif
    305 #endif /* EGL_KHR_stream */
    306 #endif /* EGL_KHR_stream_consumer_gltexture */
    307 
    308 #ifndef EGL_KHR_stream_cross_process_fd
    309 #define EGL_KHR_stream_cross_process_fd 1
    310 typedef int EGLNativeFileDescriptorKHR;
    311 #ifdef EGL_KHR_stream
    312 #define EGL_NO_FILE_DESCRIPTOR_KHR        ((EGLNativeFileDescriptorKHR)(-1))
    313 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    314 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
    315 #ifdef EGL_EGLEXT_PROTOTYPES
    316 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
    317 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
    318 #endif
    319 #endif /* EGL_KHR_stream */
    320 #endif /* EGL_KHR_stream_cross_process_fd */
    321 
    322 #ifndef EGL_KHR_stream_fifo
    323 #define EGL_KHR_stream_fifo 1
    324 #ifdef EGL_KHR_stream
    325 #define EGL_STREAM_FIFO_LENGTH_KHR        0x31FC
    326 #define EGL_STREAM_TIME_NOW_KHR           0x31FD
    327 #define EGL_STREAM_TIME_CONSUMER_KHR      0x31FE
    328 #define EGL_STREAM_TIME_PRODUCER_KHR      0x31FF
    329 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
    330 #ifdef EGL_EGLEXT_PROTOTYPES
    331 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
    332 #endif
    333 #endif /* EGL_KHR_stream */
    334 #endif /* EGL_KHR_stream_fifo */
    335 
    336 #ifndef EGL_KHR_stream_producer_aldatalocator
    337 #define EGL_KHR_stream_producer_aldatalocator 1
    338 #ifdef EGL_KHR_stream
    339 #endif /* EGL_KHR_stream */
    340 #endif /* EGL_KHR_stream_producer_aldatalocator */
    341 
    342 #ifndef EGL_KHR_stream_producer_eglsurface
    343 #define EGL_KHR_stream_producer_eglsurface 1
    344 #ifdef EGL_KHR_stream
    345 #define EGL_STREAM_BIT_KHR                0x0800
    346 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
    347 #ifdef EGL_EGLEXT_PROTOTYPES
    348 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
    349 #endif
    350 #endif /* EGL_KHR_stream */
    351 #endif /* EGL_KHR_stream_producer_eglsurface */
    352 
    353 #ifndef EGL_KHR_surfaceless_context
    354 #define EGL_KHR_surfaceless_context 1
    355 #endif /* EGL_KHR_surfaceless_context */
    356 
    357 #ifndef EGL_KHR_vg_parent_image
    358 #define EGL_KHR_vg_parent_image 1
    359 #define EGL_VG_PARENT_IMAGE_KHR           0x30BA
    360 #endif /* EGL_KHR_vg_parent_image */
    361 
    362 #ifndef EGL_KHR_wait_sync
    363 #define EGL_KHR_wait_sync 1
    364 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
    365 #ifdef EGL_EGLEXT_PROTOTYPES
    366 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
    367 #endif
    368 #endif /* EGL_KHR_wait_sync */
    369 
    370 #ifndef EGL_ANDROID_blob_cache
    371 #define EGL_ANDROID_blob_cache 1
    372 typedef khronos_ssize_t EGLsizeiANDROID;
    373 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
    374 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
    375 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
    376 #ifdef EGL_EGLEXT_PROTOTYPES
    377 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
    378 #endif
    379 #endif /* EGL_ANDROID_blob_cache */
    380 
    381 #ifndef EGL_ANDROID_framebuffer_target
    382 #define EGL_ANDROID_framebuffer_target 1
    383 #define EGL_FRAMEBUFFER_TARGET_ANDROID    0x3147
    384 #endif /* EGL_ANDROID_framebuffer_target */
    385 
    386 #ifndef EGL_ANDROID_image_native_buffer
    387 #define EGL_ANDROID_image_native_buffer 1
    388 #define EGL_NATIVE_BUFFER_ANDROID         0x3140
    389 #endif /* EGL_ANDROID_image_native_buffer */
    390 
    391 #ifndef EGL_ANDROID_native_fence_sync
    392 #define EGL_ANDROID_native_fence_sync 1
    393 #define EGL_SYNC_NATIVE_FENCE_ANDROID     0x3144
    394 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID  0x3145
    395 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
    396 #define EGL_NO_NATIVE_FENCE_FD_ANDROID    -1
    397 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
    398 #ifdef EGL_EGLEXT_PROTOTYPES
    399 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
    400 #endif
    401 #endif /* EGL_ANDROID_native_fence_sync */
    402 
    403 #ifndef EGL_ANDROID_recordable
    404 #define EGL_ANDROID_recordable 1
    405 #define EGL_RECORDABLE_ANDROID            0x3142
    406 #endif /* EGL_ANDROID_recordable */
    407 
    408 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
    409 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
    410 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
    411 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
    412 
    413 #ifndef EGL_ANGLE_window_fixed_size
    414 #define EGL_ANGLE_window_fixed_size 1
    415 #define EGL_FIXED_SIZE_ANGLE        0x3201
    416 #endif /* EGL_ANGLE_window_fixed_size */
    417 
    418 #ifndef EGL_ANGLE_query_surface_pointer
    419 #define EGL_ANGLE_query_surface_pointer 1
    420 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
    421 #ifdef EGL_EGLEXT_PROTOTYPES
    422 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
    423 #endif
    424 #endif /* EGL_ANGLE_query_surface_pointer */
    425 
    426 #ifndef EGL_ANGLE_software_display
    427 #define EGL_ANGLE_software_display 1
    428 #define EGL_SOFTWARE_DISPLAY_ANGLE ((EGLNativeDisplayType)-1)
    429 #endif /* EGL_ANGLE_software_display */
    430 
    431 #ifndef EGL_ANGLE_direct3d_display
    432 #define EGL_ANGLE_direct3d_display 1
    433 #define EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE ((EGLNativeDisplayType)-2)
    434 #define EGL_D3D11_ONLY_DISPLAY_ANGLE ((EGLNativeDisplayType)-3)
    435 #endif /* EGL_ANGLE_direct3d_display */
    436 
    437 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
    438 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
    439 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
    440 
    441 #ifndef EGL_ANGLE_platform_angle
    442 #define EGL_ANGLE_platform_angle 1
    443 #define EGL_PLATFORM_ANGLE_ANGLE          0x3201
    444 #define EGL_PLATFORM_ANGLE_TYPE_ANGLE     0x3202
    445 #define EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE 0x3203
    446 #endif /* EGL_ANGLE_platform_angle */
    447 
    448 #ifndef EGL_ANGLE_platform_angle_d3d
    449 #define EGL_ANGLE_platform_angle_d3d 1
    450 #define EGL_PLATFORM_ANGLE_TYPE_D3D9_ANGLE 0x3204
    451 #define EGL_PLATFORM_ANGLE_TYPE_D3D11_ANGLE 0x3205
    452 #define EGL_PLATFORM_ANGLE_TYPE_D3D11_WARP_ANGLE 0x3206
    453 #endif /* EGL_ANGLE_platform_angle_d3d */
    454 
    455 #ifndef EGL_ANGLE_platform_angle_opengl
    456 #define EGL_ANGLE_platform_angle_opengl 1
    457 #define EGL_PLATFORM_ANGLE_TYPE_OPENGL_ANGLE 0x3207
    458 #define EGL_PLATFORM_ANGLE_TYPE_OPENGLES_ANGLE 0x3208
    459 #endif /* EGL_ANGLE_platform_angle_opengl */
    460 
    461 #ifndef EGL_ARM_pixmap_multisample_discard
    462 #define EGL_ARM_pixmap_multisample_discard 1
    463 #define EGL_DISCARD_SAMPLES_ARM           0x3286
    464 #endif /* EGL_ARM_pixmap_multisample_discard */
    465 
    466 #ifndef EGL_EXT_buffer_age
    467 #define EGL_EXT_buffer_age 1
    468 #define EGL_BUFFER_AGE_EXT                0x313D
    469 #endif /* EGL_EXT_buffer_age */
    470 
    471 #ifndef EGL_EXT_client_extensions
    472 #define EGL_EXT_client_extensions 1
    473 #endif /* EGL_EXT_client_extensions */
    474 
    475 #ifndef EGL_EXT_create_context_robustness
    476 #define EGL_EXT_create_context_robustness 1
    477 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
    478 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
    479 #define EGL_NO_RESET_NOTIFICATION_EXT     0x31BE
    480 #define EGL_LOSE_CONTEXT_ON_RESET_EXT     0x31BF
    481 #endif /* EGL_EXT_create_context_robustness */
    482 
    483 #ifndef EGL_EXT_device_base
    484 #define EGL_EXT_device_base 1
    485 typedef void *EGLDeviceEXT;
    486 #define EGL_NO_DEVICE_EXT                 ((EGLDeviceEXT)(0))
    487 #define EGL_BAD_DEVICE_EXT                0x322B
    488 #define EGL_DEVICE_EXT                    0x322C
    489 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
    490 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
    491 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
    492 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
    493 #ifdef EGL_EGLEXT_PROTOTYPES
    494 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
    495 EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
    496 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
    497 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
    498 #endif
    499 #endif /* EGL_EXT_device_base */
    500 
    501 #ifndef EGL_EXT_image_dma_buf_import
    502 #define EGL_EXT_image_dma_buf_import 1
    503 #define EGL_LINUX_DMA_BUF_EXT             0x3270
    504 #define EGL_LINUX_DRM_FOURCC_EXT          0x3271
    505 #define EGL_DMA_BUF_PLANE0_FD_EXT         0x3272
    506 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT     0x3273
    507 #define EGL_DMA_BUF_PLANE0_PITCH_EXT      0x3274
    508 #define EGL_DMA_BUF_PLANE1_FD_EXT         0x3275
    509 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT     0x3276
    510 #define EGL_DMA_BUF_PLANE1_PITCH_EXT      0x3277
    511 #define EGL_DMA_BUF_PLANE2_FD_EXT         0x3278
    512 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT     0x3279
    513 #define EGL_DMA_BUF_PLANE2_PITCH_EXT      0x327A
    514 #define EGL_YUV_COLOR_SPACE_HINT_EXT      0x327B
    515 #define EGL_SAMPLE_RANGE_HINT_EXT         0x327C
    516 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
    517 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
    518 #define EGL_ITU_REC601_EXT                0x327F
    519 #define EGL_ITU_REC709_EXT                0x3280
    520 #define EGL_ITU_REC2020_EXT               0x3281
    521 #define EGL_YUV_FULL_RANGE_EXT            0x3282
    522 #define EGL_YUV_NARROW_RANGE_EXT          0x3283
    523 #define EGL_YUV_CHROMA_SITING_0_EXT       0x3284
    524 #define EGL_YUV_CHROMA_SITING_0_5_EXT     0x3285
    525 #endif /* EGL_EXT_image_dma_buf_import */
    526 
    527 #ifndef EGL_EXT_multiview_window
    528 #define EGL_EXT_multiview_window 1
    529 #define EGL_MULTIVIEW_VIEW_COUNT_EXT      0x3134
    530 #endif /* EGL_EXT_multiview_window */
    531 
    532 #ifndef EGL_EXT_platform_base
    533 #define EGL_EXT_platform_base 1
    534 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
    535 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
    536 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
    537 #ifdef EGL_EGLEXT_PROTOTYPES
    538 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
    539 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
    540 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
    541 #endif
    542 #endif /* EGL_EXT_platform_base */
    543 
    544 #ifndef EGL_EXT_platform_device
    545 #define EGL_EXT_platform_device 1
    546 #define EGL_PLATFORM_DEVICE_EXT           0x313F
    547 #endif /* EGL_EXT_platform_device */
    548 
    549 #ifndef EGL_EXT_platform_wayland
    550 #define EGL_EXT_platform_wayland 1
    551 #define EGL_PLATFORM_WAYLAND_EXT          0x31D8
    552 #endif /* EGL_EXT_platform_wayland */
    553 
    554 #ifndef EGL_EXT_platform_x11
    555 #define EGL_EXT_platform_x11 1
    556 #define EGL_PLATFORM_X11_EXT              0x31D5
    557 #define EGL_PLATFORM_X11_SCREEN_EXT       0x31D6
    558 #endif /* EGL_EXT_platform_x11 */
    559 
    560 #ifndef EGL_EXT_protected_surface
    561 #define EGL_EXT_protected_surface 1
    562 #define EGL_PROTECTED_CONTENT_EXT         0x32C0
    563 #endif /* EGL_EXT_protected_surface */
    564 
    565 #ifndef EGL_EXT_swap_buffers_with_damage
    566 #define EGL_EXT_swap_buffers_with_damage 1
    567 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    568 #ifdef EGL_EGLEXT_PROTOTYPES
    569 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    570 #endif
    571 #endif /* EGL_EXT_swap_buffers_with_damage */
    572 
    573 #ifndef EGL_HI_clientpixmap
    574 #define EGL_HI_clientpixmap 1
    575 struct EGLClientPixmapHI {
    576     void  *pData;
    577     EGLint iWidth;
    578     EGLint iHeight;
    579     EGLint iStride;
    580 };
    581 #define EGL_CLIENT_PIXMAP_POINTER_HI      0x8F74
    582 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
    583 #ifdef EGL_EGLEXT_PROTOTYPES
    584 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
    585 #endif
    586 #endif /* EGL_HI_clientpixmap */
    587 
    588 #ifndef EGL_HI_colorformats
    589 #define EGL_HI_colorformats 1
    590 #define EGL_COLOR_FORMAT_HI               0x8F70
    591 #define EGL_COLOR_RGB_HI                  0x8F71
    592 #define EGL_COLOR_RGBA_HI                 0x8F72
    593 #define EGL_COLOR_ARGB_HI                 0x8F73
    594 #endif /* EGL_HI_colorformats */
    595 
    596 #ifndef EGL_IMG_context_priority
    597 #define EGL_IMG_context_priority 1
    598 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG    0x3100
    599 #define EGL_CONTEXT_PRIORITY_HIGH_IMG     0x3101
    600 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG   0x3102
    601 #define EGL_CONTEXT_PRIORITY_LOW_IMG      0x3103
    602 #endif /* EGL_IMG_context_priority */
    603 
    604 #ifndef EGL_MESA_drm_image
    605 #define EGL_MESA_drm_image 1
    606 #define EGL_DRM_BUFFER_FORMAT_MESA        0x31D0
    607 #define EGL_DRM_BUFFER_USE_MESA           0x31D1
    608 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
    609 #define EGL_DRM_BUFFER_MESA               0x31D3
    610 #define EGL_DRM_BUFFER_STRIDE_MESA        0x31D4
    611 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA   0x00000001
    612 #define EGL_DRM_BUFFER_USE_SHARE_MESA     0x00000002
    613 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
    614 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
    615 #ifdef EGL_EGLEXT_PROTOTYPES
    616 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
    617 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
    618 #endif
    619 #endif /* EGL_MESA_drm_image */
    620 
    621 #ifndef EGL_MESA_platform_gbm
    622 #define EGL_MESA_platform_gbm 1
    623 #define EGL_PLATFORM_GBM_MESA             0x31D7
    624 #endif /* EGL_MESA_platform_gbm */
    625 
    626 #ifndef EGL_NOK_swap_region
    627 #define EGL_NOK_swap_region 1
    628 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    629 #ifdef EGL_EGLEXT_PROTOTYPES
    630 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    631 #endif
    632 #endif /* EGL_NOK_swap_region */
    633 
    634 #ifndef EGL_NOK_swap_region2
    635 #define EGL_NOK_swap_region2 1
    636 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    637 #ifdef EGL_EGLEXT_PROTOTYPES
    638 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    639 #endif
    640 #endif /* EGL_NOK_swap_region2 */
    641 
    642 #ifndef EGL_NOK_texture_from_pixmap
    643 #define EGL_NOK_texture_from_pixmap 1
    644 #define EGL_Y_INVERTED_NOK                0x307F
    645 #endif /* EGL_NOK_texture_from_pixmap */
    646 
    647 #ifndef EGL_NV_3dvision_surface
    648 #define EGL_NV_3dvision_surface 1
    649 #define EGL_AUTO_STEREO_NV                0x3136
    650 #endif /* EGL_NV_3dvision_surface */
    651 
    652 #ifndef EGL_NV_coverage_sample
    653 #define EGL_NV_coverage_sample 1
    654 #define EGL_COVERAGE_BUFFERS_NV           0x30E0
    655 #define EGL_COVERAGE_SAMPLES_NV           0x30E1
    656 #endif /* EGL_NV_coverage_sample */
    657 
    658 #ifndef EGL_NV_coverage_sample_resolve
    659 #define EGL_NV_coverage_sample_resolve 1
    660 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV    0x3131
    661 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
    662 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
    663 #endif /* EGL_NV_coverage_sample_resolve */
    664 
    665 #ifndef EGL_NV_depth_nonlinear
    666 #define EGL_NV_depth_nonlinear 1
    667 #define EGL_DEPTH_ENCODING_NV             0x30E2
    668 #define EGL_DEPTH_ENCODING_NONE_NV        0
    669 #define EGL_DEPTH_ENCODING_NONLINEAR_NV   0x30E3
    670 #endif /* EGL_NV_depth_nonlinear */
    671 
    672 #ifndef EGL_NV_native_query
    673 #define EGL_NV_native_query 1
    674 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
    675 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
    676 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
    677 #ifdef EGL_EGLEXT_PROTOTYPES
    678 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
    679 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
    680 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
    681 #endif
    682 #endif /* EGL_NV_native_query */
    683 
    684 #ifndef EGL_NV_post_convert_rounding
    685 #define EGL_NV_post_convert_rounding 1
    686 #endif /* EGL_NV_post_convert_rounding */
    687 
    688 #ifndef EGL_NV_post_sub_buffer
    689 #define EGL_NV_post_sub_buffer 1
    690 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV  0x30BE
    691 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
    692 #ifdef EGL_EGLEXT_PROTOTYPES
    693 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
    694 #endif
    695 #endif /* EGL_NV_post_sub_buffer */
    696 
    697 #ifndef EGL_NV_stream_sync
    698 #define EGL_NV_stream_sync 1
    699 #define EGL_SYNC_NEW_FRAME_NV             0x321F
    700 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
    701 #ifdef EGL_EGLEXT_PROTOTYPES
    702 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
    703 #endif
    704 #endif /* EGL_NV_stream_sync */
    705 
    706 #ifndef EGL_NV_sync
    707 #define EGL_NV_sync 1
    708 typedef void *EGLSyncNV;
    709 typedef khronos_utime_nanoseconds_t EGLTimeNV;
    710 #ifdef KHRONOS_SUPPORT_INT64
    711 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
    712 #define EGL_SYNC_STATUS_NV                0x30E7
    713 #define EGL_SIGNALED_NV                   0x30E8
    714 #define EGL_UNSIGNALED_NV                 0x30E9
    715 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV    0x0001
    716 #define EGL_FOREVER_NV                    0xFFFFFFFFFFFFFFFFull
    717 #define EGL_ALREADY_SIGNALED_NV           0x30EA
    718 #define EGL_TIMEOUT_EXPIRED_NV            0x30EB
    719 #define EGL_CONDITION_SATISFIED_NV        0x30EC
    720 #define EGL_SYNC_TYPE_NV                  0x30ED
    721 #define EGL_SYNC_CONDITION_NV             0x30EE
    722 #define EGL_SYNC_FENCE_NV                 0x30EF
    723 #define EGL_NO_SYNC_NV                    ((EGLSyncNV)0)
    724 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
    725 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
    726 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
    727 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
    728 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
    729 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
    730 #ifdef EGL_EGLEXT_PROTOTYPES
    731 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
    732 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
    733 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
    734 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
    735 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
    736 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
    737 #endif
    738 #endif /* KHRONOS_SUPPORT_INT64 */
    739 #endif /* EGL_NV_sync */
    740 
    741 #ifndef EGL_NV_system_time
    742 #define EGL_NV_system_time 1
    743 typedef khronos_utime_nanoseconds_t EGLuint64NV;
    744 #ifdef KHRONOS_SUPPORT_INT64
    745 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
    746 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
    747 #ifdef EGL_EGLEXT_PROTOTYPES
    748 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
    749 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
    750 #endif
    751 #endif /* KHRONOS_SUPPORT_INT64 */
    752 #endif /* EGL_NV_system_time */
    753 
    754 #ifdef __cplusplus
    755 }
    756 #endif
    757 
    758 #endif
    759