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-2015 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: 32040 $ on $Date: 2015-09-22 15:57:58 -0700 (Tue, 22 Sep 2015) $
     37 */
     38 
     39 #include <EGL/eglplatform.h>
     40 
     41 #define EGL_EGLEXT_VERSION 20150922
     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_create_context_no_error
     98 #define EGL_KHR_create_context_no_error 1
     99 #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR   0x31B3
    100 #endif /* EGL_KHR_create_context_no_error */
    101 
    102 #ifndef EGL_KHR_debug
    103 #define EGL_KHR_debug 1
    104 typedef void *EGLLabelKHR;
    105 typedef void *EGLObjectKHR;
    106 typedef void (EGLAPIENTRY  *EGLDEBUGPROC)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
    107 #define EGL_OBJECT_THREAD_KHR             0x33B0
    108 #define EGL_OBJECT_DISPLAY_KHR            0x33B1
    109 #define EGL_OBJECT_CONTEXT_KHR            0x33B2
    110 #define EGL_OBJECT_SURFACE_KHR            0x33B3
    111 #define EGL_OBJECT_IMAGE_KHR              0x33B4
    112 #define EGL_OBJECT_SYNC_KHR               0x33B5
    113 #define EGL_OBJECT_STREAM_KHR             0x33B6
    114 #define EGL_DEBUG_MSG_CRITICAL_KHR        0x33B9
    115 #define EGL_DEBUG_MSG_ERROR_KHR           0x33BA
    116 #define EGL_DEBUG_MSG_WARN_KHR            0x33BB
    117 #define EGL_DEBUG_MSG_INFO_KHR            0x33BC
    118 #define EGL_DEBUG_CALLBACK_KHR            0x33B8
    119 typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROC callback, const EGLAttrib *attrib_list);
    120 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
    121 typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
    122 #ifdef EGL_EGLEXT_PROTOTYPES
    123 EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROC callback, const EGLAttrib *attrib_list);
    124 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
    125 EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
    126 #endif
    127 #endif /* EGL_KHR_debug */
    128 
    129 #ifndef EGL_KHR_fence_sync
    130 #define EGL_KHR_fence_sync 1
    131 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
    132 #ifdef KHRONOS_SUPPORT_INT64
    133 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
    134 #define EGL_SYNC_CONDITION_KHR            0x30F8
    135 #define EGL_SYNC_FENCE_KHR                0x30F9
    136 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
    137 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
    138 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
    139 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
    140 #ifdef EGL_EGLEXT_PROTOTYPES
    141 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
    142 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
    143 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
    144 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
    145 #endif
    146 #endif /* KHRONOS_SUPPORT_INT64 */
    147 #endif /* EGL_KHR_fence_sync */
    148 
    149 #ifndef EGL_KHR_get_all_proc_addresses
    150 #define EGL_KHR_get_all_proc_addresses 1
    151 #endif /* EGL_KHR_get_all_proc_addresses */
    152 
    153 #ifndef EGL_KHR_gl_colorspace
    154 #define EGL_KHR_gl_colorspace 1
    155 #define EGL_GL_COLORSPACE_KHR             0x309D
    156 #define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
    157 #define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
    158 #endif /* EGL_KHR_gl_colorspace */
    159 
    160 #ifndef EGL_KHR_gl_renderbuffer_image
    161 #define EGL_KHR_gl_renderbuffer_image 1
    162 #define EGL_GL_RENDERBUFFER_KHR           0x30B9
    163 #endif /* EGL_KHR_gl_renderbuffer_image */
    164 
    165 #ifndef EGL_KHR_gl_texture_2D_image
    166 #define EGL_KHR_gl_texture_2D_image 1
    167 #define EGL_GL_TEXTURE_2D_KHR             0x30B1
    168 #define EGL_GL_TEXTURE_LEVEL_KHR          0x30BC
    169 #endif /* EGL_KHR_gl_texture_2D_image */
    170 
    171 #ifndef EGL_KHR_gl_texture_3D_image
    172 #define EGL_KHR_gl_texture_3D_image 1
    173 #define EGL_GL_TEXTURE_3D_KHR             0x30B2
    174 #define EGL_GL_TEXTURE_ZOFFSET_KHR        0x30BD
    175 #endif /* EGL_KHR_gl_texture_3D_image */
    176 
    177 #ifndef EGL_KHR_gl_texture_cubemap_image
    178 #define EGL_KHR_gl_texture_cubemap_image 1
    179 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
    180 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
    181 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
    182 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
    183 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
    184 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
    185 #endif /* EGL_KHR_gl_texture_cubemap_image */
    186 
    187 #ifndef EGL_KHR_image
    188 #define EGL_KHR_image 1
    189 typedef void *EGLImageKHR;
    190 #define EGL_NATIVE_PIXMAP_KHR             0x30B0
    191 #define EGL_NO_IMAGE_KHR                  ((EGLImageKHR)0)
    192 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
    193 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
    194 #ifdef EGL_EGLEXT_PROTOTYPES
    195 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
    196 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
    197 #endif
    198 #endif /* EGL_KHR_image */
    199 
    200 #ifndef EGL_KHR_image_base
    201 #define EGL_KHR_image_base 1
    202 #define EGL_IMAGE_PRESERVED_KHR           0x30D2
    203 #endif /* EGL_KHR_image_base */
    204 
    205 #ifndef EGL_KHR_image_pixmap
    206 #define EGL_KHR_image_pixmap 1
    207 #endif /* EGL_KHR_image_pixmap */
    208 
    209 #ifndef EGL_KHR_lock_surface
    210 #define EGL_KHR_lock_surface 1
    211 #define EGL_READ_SURFACE_BIT_KHR          0x0001
    212 #define EGL_WRITE_SURFACE_BIT_KHR         0x0002
    213 #define EGL_LOCK_SURFACE_BIT_KHR          0x0080
    214 #define EGL_OPTIMAL_FORMAT_BIT_KHR        0x0100
    215 #define EGL_MATCH_FORMAT_KHR              0x3043
    216 #define EGL_FORMAT_RGB_565_EXACT_KHR      0x30C0
    217 #define EGL_FORMAT_RGB_565_KHR            0x30C1
    218 #define EGL_FORMAT_RGBA_8888_EXACT_KHR    0x30C2
    219 #define EGL_FORMAT_RGBA_8888_KHR          0x30C3
    220 #define EGL_MAP_PRESERVE_PIXELS_KHR       0x30C4
    221 #define EGL_LOCK_USAGE_HINT_KHR           0x30C5
    222 #define EGL_BITMAP_POINTER_KHR            0x30C6
    223 #define EGL_BITMAP_PITCH_KHR              0x30C7
    224 #define EGL_BITMAP_ORIGIN_KHR             0x30C8
    225 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR   0x30C9
    226 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
    227 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR  0x30CB
    228 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
    229 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
    230 #define EGL_LOWER_LEFT_KHR                0x30CE
    231 #define EGL_UPPER_LEFT_KHR                0x30CF
    232 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
    233 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
    234 #ifdef EGL_EGLEXT_PROTOTYPES
    235 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
    236 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
    237 #endif
    238 #endif /* EGL_KHR_lock_surface */
    239 
    240 #ifndef EGL_KHR_lock_surface2
    241 #define EGL_KHR_lock_surface2 1
    242 #define EGL_BITMAP_PIXEL_SIZE_KHR         0x3110
    243 #endif /* EGL_KHR_lock_surface2 */
    244 
    245 #ifndef EGL_KHR_lock_surface3
    246 #define EGL_KHR_lock_surface3 1
    247 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
    248 #ifdef EGL_EGLEXT_PROTOTYPES
    249 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
    250 #endif
    251 #endif /* EGL_KHR_lock_surface3 */
    252 
    253 #ifndef EGL_KHR_partial_update
    254 #define EGL_KHR_partial_update 1
    255 #define EGL_BUFFER_AGE_KHR                0x313D
    256 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    257 #ifdef EGL_EGLEXT_PROTOTYPES
    258 EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    259 #endif
    260 #endif /* EGL_KHR_partial_update */
    261 
    262 #ifndef EGL_KHR_platform_android
    263 #define EGL_KHR_platform_android 1
    264 #define EGL_PLATFORM_ANDROID_KHR          0x3141
    265 #endif /* EGL_KHR_platform_android */
    266 
    267 #ifndef EGL_KHR_platform_gbm
    268 #define EGL_KHR_platform_gbm 1
    269 #define EGL_PLATFORM_GBM_KHR              0x31D7
    270 #endif /* EGL_KHR_platform_gbm */
    271 
    272 #ifndef EGL_KHR_platform_wayland
    273 #define EGL_KHR_platform_wayland 1
    274 #define EGL_PLATFORM_WAYLAND_KHR          0x31D8
    275 #endif /* EGL_KHR_platform_wayland */
    276 
    277 #ifndef EGL_KHR_platform_x11
    278 #define EGL_KHR_platform_x11 1
    279 #define EGL_PLATFORM_X11_KHR              0x31D5
    280 #define EGL_PLATFORM_X11_SCREEN_KHR       0x31D6
    281 #endif /* EGL_KHR_platform_x11 */
    282 
    283 #ifndef EGL_KHR_reusable_sync
    284 #define EGL_KHR_reusable_sync 1
    285 #ifdef KHRONOS_SUPPORT_INT64
    286 #define EGL_SYNC_STATUS_KHR               0x30F1
    287 #define EGL_SIGNALED_KHR                  0x30F2
    288 #define EGL_UNSIGNALED_KHR                0x30F3
    289 #define EGL_TIMEOUT_EXPIRED_KHR           0x30F5
    290 #define EGL_CONDITION_SATISFIED_KHR       0x30F6
    291 #define EGL_SYNC_TYPE_KHR                 0x30F7
    292 #define EGL_SYNC_REUSABLE_KHR             0x30FA
    293 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR   0x0001
    294 #define EGL_FOREVER_KHR                   0xFFFFFFFFFFFFFFFFull
    295 #define EGL_NO_SYNC_KHR                   ((EGLSyncKHR)0)
    296 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
    297 #ifdef EGL_EGLEXT_PROTOTYPES
    298 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
    299 #endif
    300 #endif /* KHRONOS_SUPPORT_INT64 */
    301 #endif /* EGL_KHR_reusable_sync */
    302 
    303 #ifndef EGL_KHR_stream
    304 #define EGL_KHR_stream 1
    305 typedef void *EGLStreamKHR;
    306 typedef khronos_uint64_t EGLuint64KHR;
    307 #ifdef KHRONOS_SUPPORT_INT64
    308 #define EGL_NO_STREAM_KHR                 ((EGLStreamKHR)0)
    309 #define EGL_CONSUMER_LATENCY_USEC_KHR     0x3210
    310 #define EGL_PRODUCER_FRAME_KHR            0x3212
    311 #define EGL_CONSUMER_FRAME_KHR            0x3213
    312 #define EGL_STREAM_STATE_KHR              0x3214
    313 #define EGL_STREAM_STATE_CREATED_KHR      0x3215
    314 #define EGL_STREAM_STATE_CONNECTING_KHR   0x3216
    315 #define EGL_STREAM_STATE_EMPTY_KHR        0x3217
    316 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
    317 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
    318 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
    319 #define EGL_BAD_STREAM_KHR                0x321B
    320 #define EGL_BAD_STATE_KHR                 0x321C
    321 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
    322 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    323 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
    324 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
    325 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
    326 #ifdef EGL_EGLEXT_PROTOTYPES
    327 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
    328 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
    329 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
    330 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
    331 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
    332 #endif
    333 #endif /* KHRONOS_SUPPORT_INT64 */
    334 #endif /* EGL_KHR_stream */
    335 
    336 #ifndef EGL_KHR_stream_consumer_gltexture
    337 #define EGL_KHR_stream_consumer_gltexture 1
    338 #ifdef EGL_KHR_stream
    339 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
    340 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    341 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    342 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    343 #ifdef EGL_EGLEXT_PROTOTYPES
    344 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
    345 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
    346 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
    347 #endif
    348 #endif /* EGL_KHR_stream */
    349 #endif /* EGL_KHR_stream_consumer_gltexture */
    350 
    351 #ifndef EGL_KHR_stream_cross_process_fd
    352 #define EGL_KHR_stream_cross_process_fd 1
    353 typedef int EGLNativeFileDescriptorKHR;
    354 #ifdef EGL_KHR_stream
    355 #define EGL_NO_FILE_DESCRIPTOR_KHR        ((EGLNativeFileDescriptorKHR)(-1))
    356 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
    357 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
    358 #ifdef EGL_EGLEXT_PROTOTYPES
    359 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
    360 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
    361 #endif
    362 #endif /* EGL_KHR_stream */
    363 #endif /* EGL_KHR_stream_cross_process_fd */
    364 
    365 #ifndef EGL_KHR_stream_fifo
    366 #define EGL_KHR_stream_fifo 1
    367 #ifdef EGL_KHR_stream
    368 #define EGL_STREAM_FIFO_LENGTH_KHR        0x31FC
    369 #define EGL_STREAM_TIME_NOW_KHR           0x31FD
    370 #define EGL_STREAM_TIME_CONSUMER_KHR      0x31FE
    371 #define EGL_STREAM_TIME_PRODUCER_KHR      0x31FF
    372 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
    373 #ifdef EGL_EGLEXT_PROTOTYPES
    374 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
    375 #endif
    376 #endif /* EGL_KHR_stream */
    377 #endif /* EGL_KHR_stream_fifo */
    378 
    379 #ifndef EGL_KHR_stream_producer_aldatalocator
    380 #define EGL_KHR_stream_producer_aldatalocator 1
    381 #ifdef EGL_KHR_stream
    382 #endif /* EGL_KHR_stream */
    383 #endif /* EGL_KHR_stream_producer_aldatalocator */
    384 
    385 #ifndef EGL_KHR_stream_producer_eglsurface
    386 #define EGL_KHR_stream_producer_eglsurface 1
    387 #ifdef EGL_KHR_stream
    388 #define EGL_STREAM_BIT_KHR                0x0800
    389 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
    390 #ifdef EGL_EGLEXT_PROTOTYPES
    391 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
    392 #endif
    393 #endif /* EGL_KHR_stream */
    394 #endif /* EGL_KHR_stream_producer_eglsurface */
    395 
    396 #ifndef EGL_KHR_surfaceless_context
    397 #define EGL_KHR_surfaceless_context 1
    398 #endif /* EGL_KHR_surfaceless_context */
    399 
    400 #ifndef EGL_KHR_swap_buffers_with_damage
    401 #define EGL_KHR_swap_buffers_with_damage 1
    402 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    403 #ifdef EGL_EGLEXT_PROTOTYPES
    404 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    405 #endif
    406 #endif /* EGL_KHR_swap_buffers_with_damage */
    407 
    408 #ifndef EGL_KHR_vg_parent_image
    409 #define EGL_KHR_vg_parent_image 1
    410 #define EGL_VG_PARENT_IMAGE_KHR           0x30BA
    411 #endif /* EGL_KHR_vg_parent_image */
    412 
    413 #ifndef EGL_KHR_wait_sync
    414 #define EGL_KHR_wait_sync 1
    415 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
    416 #ifdef EGL_EGLEXT_PROTOTYPES
    417 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
    418 #endif
    419 #endif /* EGL_KHR_wait_sync */
    420 
    421 #ifndef EGL_ANDROID_blob_cache
    422 #define EGL_ANDROID_blob_cache 1
    423 typedef khronos_ssize_t EGLsizeiANDROID;
    424 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
    425 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
    426 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
    427 #ifdef EGL_EGLEXT_PROTOTYPES
    428 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
    429 #endif
    430 #endif /* EGL_ANDROID_blob_cache */
    431 
    432 #ifndef EGL_ANDROID_framebuffer_target
    433 #define EGL_ANDROID_framebuffer_target 1
    434 #define EGL_FRAMEBUFFER_TARGET_ANDROID    0x3147
    435 #endif /* EGL_ANDROID_framebuffer_target */
    436 
    437 #ifndef EGL_ANDROID_image_native_buffer
    438 #define EGL_ANDROID_image_native_buffer 1
    439 #define EGL_NATIVE_BUFFER_ANDROID         0x3140
    440 #endif /* EGL_ANDROID_image_native_buffer */
    441 
    442 #ifndef EGL_ANDROID_native_fence_sync
    443 #define EGL_ANDROID_native_fence_sync 1
    444 #define EGL_SYNC_NATIVE_FENCE_ANDROID     0x3144
    445 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID  0x3145
    446 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
    447 #define EGL_NO_NATIVE_FENCE_FD_ANDROID    -1
    448 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
    449 #ifdef EGL_EGLEXT_PROTOTYPES
    450 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
    451 #endif
    452 #endif /* EGL_ANDROID_native_fence_sync */
    453 
    454 #ifndef EGL_ANDROID_recordable
    455 #define EGL_ANDROID_recordable 1
    456 #define EGL_RECORDABLE_ANDROID            0x3142
    457 #endif /* EGL_ANDROID_recordable */
    458 
    459 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
    460 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
    461 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
    462 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
    463 
    464 #ifndef EGL_ANGLE_device_d3d
    465 #define EGL_ANGLE_device_d3d 1
    466 #define EGL_D3D9_DEVICE_ANGLE             0x33A0
    467 #define EGL_D3D11_DEVICE_ANGLE            0x33A1
    468 #endif /* EGL_ANGLE_device_d3d */
    469 
    470 #ifndef EGL_ANGLE_query_surface_pointer
    471 #define EGL_ANGLE_query_surface_pointer 1
    472 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
    473 #ifdef EGL_EGLEXT_PROTOTYPES
    474 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
    475 #endif
    476 #endif /* EGL_ANGLE_query_surface_pointer */
    477 
    478 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
    479 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
    480 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
    481 
    482 #ifndef EGL_ANGLE_window_fixed_size
    483 #define EGL_ANGLE_window_fixed_size 1
    484 #define EGL_FIXED_SIZE_ANGLE              0x3201
    485 #endif /* EGL_ANGLE_window_fixed_size */
    486 
    487 #ifndef EGL_ARM_pixmap_multisample_discard
    488 #define EGL_ARM_pixmap_multisample_discard 1
    489 #define EGL_DISCARD_SAMPLES_ARM           0x3286
    490 #endif /* EGL_ARM_pixmap_multisample_discard */
    491 
    492 #ifndef EGL_EXT_buffer_age
    493 #define EGL_EXT_buffer_age 1
    494 #define EGL_BUFFER_AGE_EXT                0x313D
    495 #endif /* EGL_EXT_buffer_age */
    496 
    497 #ifndef EGL_EXT_client_extensions
    498 #define EGL_EXT_client_extensions 1
    499 #endif /* EGL_EXT_client_extensions */
    500 
    501 #ifndef EGL_EXT_create_context_robustness
    502 #define EGL_EXT_create_context_robustness 1
    503 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
    504 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
    505 #define EGL_NO_RESET_NOTIFICATION_EXT     0x31BE
    506 #define EGL_LOSE_CONTEXT_ON_RESET_EXT     0x31BF
    507 #endif /* EGL_EXT_create_context_robustness */
    508 
    509 #ifndef EGL_EXT_device_base
    510 #define EGL_EXT_device_base 1
    511 typedef void *EGLDeviceEXT;
    512 #define EGL_NO_DEVICE_EXT                 ((EGLDeviceEXT)(0))
    513 #define EGL_BAD_DEVICE_EXT                0x322B
    514 #define EGL_DEVICE_EXT                    0x322C
    515 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
    516 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
    517 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
    518 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
    519 #ifdef EGL_EGLEXT_PROTOTYPES
    520 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
    521 EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
    522 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
    523 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
    524 #endif
    525 #endif /* EGL_EXT_device_base */
    526 
    527 #ifndef EGL_EXT_device_drm
    528 #define EGL_EXT_device_drm 1
    529 #define EGL_DRM_DEVICE_FILE_EXT           0x3233
    530 #endif /* EGL_EXT_device_drm */
    531 
    532 #ifndef EGL_EXT_device_enumeration
    533 #define EGL_EXT_device_enumeration 1
    534 #endif /* EGL_EXT_device_enumeration */
    535 
    536 #ifndef EGL_EXT_device_openwf
    537 #define EGL_EXT_device_openwf 1
    538 #define EGL_OPENWF_DEVICE_ID_EXT          0x3237
    539 #endif /* EGL_EXT_device_openwf */
    540 
    541 #ifndef EGL_EXT_device_query
    542 #define EGL_EXT_device_query 1
    543 #endif /* EGL_EXT_device_query */
    544 
    545 #ifndef EGL_EXT_image_dma_buf_import
    546 #define EGL_EXT_image_dma_buf_import 1
    547 #define EGL_LINUX_DMA_BUF_EXT             0x3270
    548 #define EGL_LINUX_DRM_FOURCC_EXT          0x3271
    549 #define EGL_DMA_BUF_PLANE0_FD_EXT         0x3272
    550 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT     0x3273
    551 #define EGL_DMA_BUF_PLANE0_PITCH_EXT      0x3274
    552 #define EGL_DMA_BUF_PLANE1_FD_EXT         0x3275
    553 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT     0x3276
    554 #define EGL_DMA_BUF_PLANE1_PITCH_EXT      0x3277
    555 #define EGL_DMA_BUF_PLANE2_FD_EXT         0x3278
    556 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT     0x3279
    557 #define EGL_DMA_BUF_PLANE2_PITCH_EXT      0x327A
    558 #define EGL_YUV_COLOR_SPACE_HINT_EXT      0x327B
    559 #define EGL_SAMPLE_RANGE_HINT_EXT         0x327C
    560 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
    561 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
    562 #define EGL_ITU_REC601_EXT                0x327F
    563 #define EGL_ITU_REC709_EXT                0x3280
    564 #define EGL_ITU_REC2020_EXT               0x3281
    565 #define EGL_YUV_FULL_RANGE_EXT            0x3282
    566 #define EGL_YUV_NARROW_RANGE_EXT          0x3283
    567 #define EGL_YUV_CHROMA_SITING_0_EXT       0x3284
    568 #define EGL_YUV_CHROMA_SITING_0_5_EXT     0x3285
    569 #endif /* EGL_EXT_image_dma_buf_import */
    570 
    571 #ifndef EGL_EXT_multiview_window
    572 #define EGL_EXT_multiview_window 1
    573 #define EGL_MULTIVIEW_VIEW_COUNT_EXT      0x3134
    574 #endif /* EGL_EXT_multiview_window */
    575 
    576 #ifndef EGL_EXT_output_base
    577 #define EGL_EXT_output_base 1
    578 typedef void *EGLOutputLayerEXT;
    579 typedef void *EGLOutputPortEXT;
    580 #define EGL_NO_OUTPUT_LAYER_EXT           ((EGLOutputLayerEXT)0)
    581 #define EGL_NO_OUTPUT_PORT_EXT            ((EGLOutputPortEXT)0)
    582 #define EGL_BAD_OUTPUT_LAYER_EXT          0x322D
    583 #define EGL_BAD_OUTPUT_PORT_EXT           0x322E
    584 #define EGL_SWAP_INTERVAL_EXT             0x322F
    585 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
    586 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
    587 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
    588 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
    589 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
    590 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
    591 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
    592 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
    593 #ifdef EGL_EGLEXT_PROTOTYPES
    594 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
    595 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
    596 EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
    597 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
    598 EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
    599 EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
    600 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
    601 EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
    602 #endif
    603 #endif /* EGL_EXT_output_base */
    604 
    605 #ifndef EGL_EXT_output_drm
    606 #define EGL_EXT_output_drm 1
    607 #define EGL_DRM_CRTC_EXT                  0x3234
    608 #define EGL_DRM_PLANE_EXT                 0x3235
    609 #define EGL_DRM_CONNECTOR_EXT             0x3236
    610 #endif /* EGL_EXT_output_drm */
    611 
    612 #ifndef EGL_EXT_output_openwf
    613 #define EGL_EXT_output_openwf 1
    614 #define EGL_OPENWF_PIPELINE_ID_EXT        0x3238
    615 #define EGL_OPENWF_PORT_ID_EXT            0x3239
    616 #endif /* EGL_EXT_output_openwf */
    617 
    618 #ifndef EGL_EXT_platform_base
    619 #define EGL_EXT_platform_base 1
    620 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
    621 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
    622 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
    623 #ifdef EGL_EGLEXT_PROTOTYPES
    624 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
    625 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
    626 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
    627 #endif
    628 #endif /* EGL_EXT_platform_base */
    629 
    630 #ifndef EGL_EXT_platform_device
    631 #define EGL_EXT_platform_device 1
    632 #define EGL_PLATFORM_DEVICE_EXT           0x313F
    633 #endif /* EGL_EXT_platform_device */
    634 
    635 #ifndef EGL_EXT_platform_wayland
    636 #define EGL_EXT_platform_wayland 1
    637 #define EGL_PLATFORM_WAYLAND_EXT          0x31D8
    638 #endif /* EGL_EXT_platform_wayland */
    639 
    640 #ifndef EGL_EXT_platform_x11
    641 #define EGL_EXT_platform_x11 1
    642 #define EGL_PLATFORM_X11_EXT              0x31D5
    643 #define EGL_PLATFORM_X11_SCREEN_EXT       0x31D6
    644 #endif /* EGL_EXT_platform_x11 */
    645 
    646 #ifndef EGL_EXT_protected_surface
    647 #define EGL_EXT_protected_surface 1
    648 #define EGL_PROTECTED_CONTENT_EXT         0x32C0
    649 #endif /* EGL_EXT_protected_surface */
    650 
    651 #ifndef EGL_EXT_stream_consumer_egloutput
    652 #define EGL_EXT_stream_consumer_egloutput 1
    653 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
    654 #ifdef EGL_EGLEXT_PROTOTYPES
    655 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
    656 #endif
    657 #endif /* EGL_EXT_stream_consumer_egloutput */
    658 
    659 #ifndef EGL_EXT_swap_buffers_with_damage
    660 #define EGL_EXT_swap_buffers_with_damage 1
    661 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    662 #ifdef EGL_EGLEXT_PROTOTYPES
    663 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
    664 #endif
    665 #endif /* EGL_EXT_swap_buffers_with_damage */
    666 
    667 #ifndef EGL_EXT_yuv_surface
    668 #define EGL_EXT_yuv_surface 1
    669 #define EGL_YUV_ORDER_EXT                 0x3301
    670 #define EGL_YUV_NUMBER_OF_PLANES_EXT      0x3311
    671 #define EGL_YUV_SUBSAMPLE_EXT             0x3312
    672 #define EGL_YUV_DEPTH_RANGE_EXT           0x3317
    673 #define EGL_YUV_CSC_STANDARD_EXT          0x330A
    674 #define EGL_YUV_PLANE_BPP_EXT             0x331A
    675 #define EGL_YUV_BUFFER_EXT                0x3300
    676 #define EGL_YUV_ORDER_YUV_EXT             0x3302
    677 #define EGL_YUV_ORDER_YVU_EXT             0x3303
    678 #define EGL_YUV_ORDER_YUYV_EXT            0x3304
    679 #define EGL_YUV_ORDER_UYVY_EXT            0x3305
    680 #define EGL_YUV_ORDER_YVYU_EXT            0x3306
    681 #define EGL_YUV_ORDER_VYUY_EXT            0x3307
    682 #define EGL_YUV_ORDER_AYUV_EXT            0x3308
    683 #define EGL_YUV_SUBSAMPLE_4_2_0_EXT       0x3313
    684 #define EGL_YUV_SUBSAMPLE_4_2_2_EXT       0x3314
    685 #define EGL_YUV_SUBSAMPLE_4_4_4_EXT       0x3315
    686 #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT   0x3318
    687 #define EGL_YUV_DEPTH_RANGE_FULL_EXT      0x3319
    688 #define EGL_YUV_CSC_STANDARD_601_EXT      0x330B
    689 #define EGL_YUV_CSC_STANDARD_709_EXT      0x330C
    690 #define EGL_YUV_CSC_STANDARD_2020_EXT     0x330D
    691 #define EGL_YUV_PLANE_BPP_0_EXT           0x331B
    692 #define EGL_YUV_PLANE_BPP_8_EXT           0x331C
    693 #define EGL_YUV_PLANE_BPP_10_EXT          0x331D
    694 #endif /* EGL_EXT_yuv_surface */
    695 
    696 #ifndef EGL_HI_clientpixmap
    697 #define EGL_HI_clientpixmap 1
    698 struct EGLClientPixmapHI {
    699     void  *pData;
    700     EGLint iWidth;
    701     EGLint iHeight;
    702     EGLint iStride;
    703 };
    704 #define EGL_CLIENT_PIXMAP_POINTER_HI      0x8F74
    705 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
    706 #ifdef EGL_EGLEXT_PROTOTYPES
    707 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
    708 #endif
    709 #endif /* EGL_HI_clientpixmap */
    710 
    711 #ifndef EGL_HI_colorformats
    712 #define EGL_HI_colorformats 1
    713 #define EGL_COLOR_FORMAT_HI               0x8F70
    714 #define EGL_COLOR_RGB_HI                  0x8F71
    715 #define EGL_COLOR_RGBA_HI                 0x8F72
    716 #define EGL_COLOR_ARGB_HI                 0x8F73
    717 #endif /* EGL_HI_colorformats */
    718 
    719 #ifndef EGL_IMG_context_priority
    720 #define EGL_IMG_context_priority 1
    721 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG    0x3100
    722 #define EGL_CONTEXT_PRIORITY_HIGH_IMG     0x3101
    723 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG   0x3102
    724 #define EGL_CONTEXT_PRIORITY_LOW_IMG      0x3103
    725 #endif /* EGL_IMG_context_priority */
    726 
    727 #ifndef EGL_MESA_drm_image
    728 #define EGL_MESA_drm_image 1
    729 #define EGL_DRM_BUFFER_FORMAT_MESA        0x31D0
    730 #define EGL_DRM_BUFFER_USE_MESA           0x31D1
    731 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
    732 #define EGL_DRM_BUFFER_MESA               0x31D3
    733 #define EGL_DRM_BUFFER_STRIDE_MESA        0x31D4
    734 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA   0x00000001
    735 #define EGL_DRM_BUFFER_USE_SHARE_MESA     0x00000002
    736 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
    737 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
    738 #ifdef EGL_EGLEXT_PROTOTYPES
    739 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
    740 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
    741 #endif
    742 #endif /* EGL_MESA_drm_image */
    743 
    744 #ifndef EGL_MESA_image_dma_buf_export
    745 #define EGL_MESA_image_dma_buf_export 1
    746 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
    747 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
    748 #ifdef EGL_EGLEXT_PROTOTYPES
    749 EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
    750 EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
    751 #endif
    752 #endif /* EGL_MESA_image_dma_buf_export */
    753 
    754 #ifndef EGL_MESA_platform_gbm
    755 #define EGL_MESA_platform_gbm 1
    756 #define EGL_PLATFORM_GBM_MESA             0x31D7
    757 #endif /* EGL_MESA_platform_gbm */
    758 
    759 #ifndef EGL_NOK_swap_region
    760 #define EGL_NOK_swap_region 1
    761 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    762 #ifdef EGL_EGLEXT_PROTOTYPES
    763 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    764 #endif
    765 #endif /* EGL_NOK_swap_region */
    766 
    767 #ifndef EGL_NOK_swap_region2
    768 #define EGL_NOK_swap_region2 1
    769 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    770 #ifdef EGL_EGLEXT_PROTOTYPES
    771 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
    772 #endif
    773 #endif /* EGL_NOK_swap_region2 */
    774 
    775 #ifndef EGL_NOK_texture_from_pixmap
    776 #define EGL_NOK_texture_from_pixmap 1
    777 #define EGL_Y_INVERTED_NOK                0x307F
    778 #endif /* EGL_NOK_texture_from_pixmap */
    779 
    780 #ifndef EGL_NV_3dvision_surface
    781 #define EGL_NV_3dvision_surface 1
    782 #define EGL_AUTO_STEREO_NV                0x3136
    783 #endif /* EGL_NV_3dvision_surface */
    784 
    785 #ifndef EGL_NV_coverage_sample
    786 #define EGL_NV_coverage_sample 1
    787 #define EGL_COVERAGE_BUFFERS_NV           0x30E0
    788 #define EGL_COVERAGE_SAMPLES_NV           0x30E1
    789 #endif /* EGL_NV_coverage_sample */
    790 
    791 #ifndef EGL_NV_coverage_sample_resolve
    792 #define EGL_NV_coverage_sample_resolve 1
    793 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV    0x3131
    794 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
    795 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
    796 #endif /* EGL_NV_coverage_sample_resolve */
    797 
    798 #ifndef EGL_NV_cuda_event
    799 #define EGL_NV_cuda_event 1
    800 #define EGL_CUDA_EVENT_HANDLE_NV          0x323B
    801 #define EGL_SYNC_CUDA_EVENT_NV            0x323C
    802 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV   0x323D
    803 #endif /* EGL_NV_cuda_event */
    804 
    805 #ifndef EGL_NV_depth_nonlinear
    806 #define EGL_NV_depth_nonlinear 1
    807 #define EGL_DEPTH_ENCODING_NV             0x30E2
    808 #define EGL_DEPTH_ENCODING_NONE_NV        0
    809 #define EGL_DEPTH_ENCODING_NONLINEAR_NV   0x30E3
    810 #endif /* EGL_NV_depth_nonlinear */
    811 
    812 #ifndef EGL_NV_device_cuda
    813 #define EGL_NV_device_cuda 1
    814 #define EGL_CUDA_DEVICE_NV                0x323A
    815 #endif /* EGL_NV_device_cuda */
    816 
    817 #ifndef EGL_NV_native_query
    818 #define EGL_NV_native_query 1
    819 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
    820 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
    821 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
    822 #ifdef EGL_EGLEXT_PROTOTYPES
    823 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
    824 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
    825 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
    826 #endif
    827 #endif /* EGL_NV_native_query */
    828 
    829 #ifndef EGL_NV_post_convert_rounding
    830 #define EGL_NV_post_convert_rounding 1
    831 #endif /* EGL_NV_post_convert_rounding */
    832 
    833 #ifndef EGL_NV_post_sub_buffer
    834 #define EGL_NV_post_sub_buffer 1
    835 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV  0x30BE
    836 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
    837 #ifdef EGL_EGLEXT_PROTOTYPES
    838 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
    839 #endif
    840 #endif /* EGL_NV_post_sub_buffer */
    841 
    842 #ifndef EGL_NV_stream_sync
    843 #define EGL_NV_stream_sync 1
    844 #define EGL_SYNC_NEW_FRAME_NV             0x321F
    845 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
    846 #ifdef EGL_EGLEXT_PROTOTYPES
    847 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
    848 #endif
    849 #endif /* EGL_NV_stream_sync */
    850 
    851 #ifndef EGL_NV_sync
    852 #define EGL_NV_sync 1
    853 typedef void *EGLSyncNV;
    854 typedef khronos_utime_nanoseconds_t EGLTimeNV;
    855 #ifdef KHRONOS_SUPPORT_INT64
    856 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
    857 #define EGL_SYNC_STATUS_NV                0x30E7
    858 #define EGL_SIGNALED_NV                   0x30E8
    859 #define EGL_UNSIGNALED_NV                 0x30E9
    860 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV    0x0001
    861 #define EGL_FOREVER_NV                    0xFFFFFFFFFFFFFFFFull
    862 #define EGL_ALREADY_SIGNALED_NV           0x30EA
    863 #define EGL_TIMEOUT_EXPIRED_NV            0x30EB
    864 #define EGL_CONDITION_SATISFIED_NV        0x30EC
    865 #define EGL_SYNC_TYPE_NV                  0x30ED
    866 #define EGL_SYNC_CONDITION_NV             0x30EE
    867 #define EGL_SYNC_FENCE_NV                 0x30EF
    868 #define EGL_NO_SYNC_NV                    ((EGLSyncNV)0)
    869 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
    870 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
    871 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
    872 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
    873 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
    874 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
    875 #ifdef EGL_EGLEXT_PROTOTYPES
    876 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
    877 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
    878 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
    879 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
    880 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
    881 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
    882 #endif
    883 #endif /* KHRONOS_SUPPORT_INT64 */
    884 #endif /* EGL_NV_sync */
    885 
    886 #ifndef EGL_NV_system_time
    887 #define EGL_NV_system_time 1
    888 typedef khronos_utime_nanoseconds_t EGLuint64NV;
    889 #ifdef KHRONOS_SUPPORT_INT64
    890 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
    891 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
    892 #ifdef EGL_EGLEXT_PROTOTYPES
    893 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
    894 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
    895 #endif
    896 #endif /* KHRONOS_SUPPORT_INT64 */
    897 #endif /* EGL_NV_system_time */
    898 
    899 #ifndef EGL_TIZEN_image_native_buffer
    900 #define EGL_TIZEN_image_native_buffer 1
    901 #define EGL_NATIVE_BUFFER_TIZEN           0x32A0
    902 #endif /* EGL_TIZEN_image_native_buffer */
    903 
    904 #ifndef EGL_TIZEN_image_native_surface
    905 #define EGL_TIZEN_image_native_surface 1
    906 #define EGL_NATIVE_SURFACE_TIZEN          0x32A1
    907 #endif /* EGL_TIZEN_image_native_surface */
    908 
    909 #ifdef __cplusplus
    910 }
    911 #endif
    912 
    913 #endif
    914