Add coding style guide.
[platform/core/uifw/coregl.git] / include_KHR / EGL / eglext.h
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: 27930 $ on $Date: 2014-09-03 21:17:58 -0700 (Wed, 03 Sep 2014) $
37 */
38
39 #include <EGL/eglplatform.h>
40
41 #define EGL_EGLEXT_VERSION 20140903
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,
64                 EGLenum type, const EGLAttribKHR *attrib_list);
65 #ifdef EGL_EGLEXT_PROTOTYPES
66 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type,
67                 const EGLAttribKHR *attrib_list);
68 #endif
69 #endif /* EGL_KHR_cl_event2 */
70
71 #ifndef EGL_KHR_client_get_all_proc_addresses
72 #define EGL_KHR_client_get_all_proc_addresses 1
73 #endif /* EGL_KHR_client_get_all_proc_addresses */
74
75 #ifndef EGL_KHR_config_attribs
76 #define EGL_KHR_config_attribs 1
77 #define EGL_CONFORMANT_KHR                0x3042
78 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR  0x0020
79 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR   0x0040
80 #endif /* EGL_KHR_config_attribs */
81
82 #ifndef EGL_KHR_create_context
83 #define EGL_KHR_create_context 1
84 #define EGL_CONTEXT_MAJOR_VERSION_KHR     0x3098
85 #define EGL_CONTEXT_MINOR_VERSION_KHR     0x30FB
86 #define EGL_CONTEXT_FLAGS_KHR             0x30FC
87 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
88 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
89 #define EGL_NO_RESET_NOTIFICATION_KHR     0x31BE
90 #define EGL_LOSE_CONTEXT_ON_RESET_KHR     0x31BF
91 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR  0x00000001
92 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
93 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
94 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
95 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
96 #define EGL_OPENGL_ES3_BIT_KHR            0x00000040
97 #endif /* EGL_KHR_create_context */
98
99 #ifndef EGL_KHR_fence_sync
100 #define EGL_KHR_fence_sync 1
101 #ifdef KHRONOS_SUPPORT_INT64
102 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
103 #define EGL_SYNC_CONDITION_KHR            0x30F8
104 #define EGL_SYNC_FENCE_KHR                0x30F9
105 #endif /* KHRONOS_SUPPORT_INT64 */
106 #endif /* EGL_KHR_fence_sync */
107
108 #ifndef EGL_KHR_get_all_proc_addresses
109 #define EGL_KHR_get_all_proc_addresses 1
110 #endif /* EGL_KHR_get_all_proc_addresses */
111
112 #ifndef EGL_KHR_gl_colorspace
113 #define EGL_KHR_gl_colorspace 1
114 #define EGL_GL_COLORSPACE_KHR             0x309D
115 #define EGL_GL_COLORSPACE_SRGB_KHR        0x3089
116 #define EGL_GL_COLORSPACE_LINEAR_KHR      0x308A
117 #endif /* EGL_KHR_gl_colorspace */
118
119 #ifndef EGL_KHR_gl_renderbuffer_image
120 #define EGL_KHR_gl_renderbuffer_image 1
121 #define EGL_GL_RENDERBUFFER_KHR           0x30B9
122 #endif /* EGL_KHR_gl_renderbuffer_image */
123
124 #ifndef EGL_KHR_gl_texture_2D_image
125 #define EGL_KHR_gl_texture_2D_image 1
126 #define EGL_GL_TEXTURE_2D_KHR             0x30B1
127 #define EGL_GL_TEXTURE_LEVEL_KHR          0x30BC
128 #endif /* EGL_KHR_gl_texture_2D_image */
129
130 #ifndef EGL_KHR_gl_texture_3D_image
131 #define EGL_KHR_gl_texture_3D_image 1
132 #define EGL_GL_TEXTURE_3D_KHR             0x30B2
133 #define EGL_GL_TEXTURE_ZOFFSET_KHR        0x30BD
134 #endif /* EGL_KHR_gl_texture_3D_image */
135
136 #ifndef EGL_KHR_gl_texture_cubemap_image
137 #define EGL_KHR_gl_texture_cubemap_image 1
138 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
139 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
140 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
141 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
142 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
143 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
144 #endif /* EGL_KHR_gl_texture_cubemap_image */
145
146 #ifndef EGL_KHR_image
147 #define EGL_KHR_image 1
148 typedef void *EGLImageKHR;
149 #define EGL_NATIVE_PIXMAP_KHR             0x30B0
150 #define EGL_NO_IMAGE_KHR                  ((EGLImageKHR)0)
151 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy,
152                 EGLContext ctx, EGLenum target, EGLClientBuffer buffer,
153                 const EGLint *attrib_list);
154 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy,
155                 EGLImageKHR image);
156 #ifdef EGL_EGLEXT_PROTOTYPES
157 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy,
158                 EGLContext ctx, EGLenum target, EGLClientBuffer buffer,
159                 const EGLint *attrib_list);
160 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy,
161                 EGLImageKHR image);
162 #endif
163 #endif /* EGL_KHR_image */
164
165 #ifndef EGL_KHR_image_base
166 #define EGL_KHR_image_base 1
167 #define EGL_IMAGE_PRESERVED_KHR           0x30D2
168 #endif /* EGL_KHR_image_base */
169
170 #ifndef EGL_KHR_image_pixmap
171 #define EGL_KHR_image_pixmap 1
172 #endif /* EGL_KHR_image_pixmap */
173
174 #ifndef EGL_KHR_lock_surface
175 #define EGL_KHR_lock_surface 1
176 #define EGL_READ_SURFACE_BIT_KHR          0x0001
177 #define EGL_WRITE_SURFACE_BIT_KHR         0x0002
178 #define EGL_LOCK_SURFACE_BIT_KHR          0x0080
179 #define EGL_OPTIMAL_FORMAT_BIT_KHR        0x0100
180 #define EGL_MATCH_FORMAT_KHR              0x3043
181 #define EGL_FORMAT_RGB_565_EXACT_KHR      0x30C0
182 #define EGL_FORMAT_RGB_565_KHR            0x30C1
183 #define EGL_FORMAT_RGBA_8888_EXACT_KHR    0x30C2
184 #define EGL_FORMAT_RGBA_8888_KHR          0x30C3
185 #define EGL_MAP_PRESERVE_PIXELS_KHR       0x30C4
186 #define EGL_LOCK_USAGE_HINT_KHR           0x30C5
187 #define EGL_BITMAP_POINTER_KHR            0x30C6
188 #define EGL_BITMAP_PITCH_KHR              0x30C7
189 #define EGL_BITMAP_ORIGIN_KHR             0x30C8
190 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR   0x30C9
191 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
192 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR  0x30CB
193 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
194 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
195 #define EGL_LOWER_LEFT_KHR                0x30CE
196 #define EGL_UPPER_LEFT_KHR                0x30CF
197 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy,
198                 EGLSurface surface, const EGLint *attrib_list);
199 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy,
200                 EGLSurface surface);
201 #ifdef EGL_EGLEXT_PROTOTYPES
202 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy,
203                 EGLSurface surface, const EGLint *attrib_list);
204 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy,
205                 EGLSurface surface);
206 #endif
207 #endif /* EGL_KHR_lock_surface */
208
209 #ifndef EGL_KHR_lock_surface2
210 #define EGL_KHR_lock_surface2 1
211 #define EGL_BITMAP_PIXEL_SIZE_KHR         0x3110
212 #endif /* EGL_KHR_lock_surface2 */
213
214 #ifndef EGL_KHR_lock_surface3
215 #define EGL_KHR_lock_surface3 1
216 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy,
217                 EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
218 #ifdef EGL_EGLEXT_PROTOTYPES
219 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy,
220                 EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
221 #endif
222 #endif /* EGL_KHR_lock_surface3 */
223
224 #ifndef EGL_KHR_platform_android
225 #define EGL_KHR_platform_android 1
226 #define EGL_PLATFORM_ANDROID_KHR          0x3141
227 #endif /* EGL_KHR_platform_android */
228
229 #ifndef EGL_KHR_platform_gbm
230 #define EGL_KHR_platform_gbm 1
231 #define EGL_PLATFORM_GBM_KHR              0x31D7
232 #endif /* EGL_KHR_platform_gbm */
233
234 #ifndef EGL_KHR_platform_wayland
235 #define EGL_KHR_platform_wayland 1
236 #define EGL_PLATFORM_WAYLAND_KHR          0x31D8
237 #endif /* EGL_KHR_platform_wayland */
238
239 #ifndef EGL_KHR_platform_x11
240 #define EGL_KHR_platform_x11 1
241 #define EGL_PLATFORM_X11_KHR              0x31D5
242 #define EGL_PLATFORM_X11_SCREEN_KHR       0x31D6
243 #endif /* EGL_KHR_platform_x11 */
244
245 #ifndef EGL_KHR_reusable_sync
246 #define EGL_KHR_reusable_sync 1
247 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
248 #ifdef KHRONOS_SUPPORT_INT64
249 #define EGL_SYNC_STATUS_KHR               0x30F1
250 #define EGL_SIGNALED_KHR                  0x30F2
251 #define EGL_UNSIGNALED_KHR                0x30F3
252 #define EGL_TIMEOUT_EXPIRED_KHR           0x30F5
253 #define EGL_CONDITION_SATISFIED_KHR       0x30F6
254 #define EGL_SYNC_TYPE_KHR                 0x30F7
255 #define EGL_SYNC_REUSABLE_KHR             0x30FA
256 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR   0x0001
257 #define EGL_FOREVER_KHR                   0xFFFFFFFFFFFFFFFFull
258 #define EGL_NO_SYNC_KHR                   ((EGLSyncKHR)0)
259 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy,
260                 EGLenum type, const EGLint *attrib_list);
261 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy,
262                 EGLSyncKHR sync);
263 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy,
264                 EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
265 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy,
266                 EGLSyncKHR sync, EGLenum mode);
267 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy,
268                 EGLSyncKHR sync, EGLint attribute, EGLint *value);
269 #ifdef EGL_EGLEXT_PROTOTYPES
270 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type,
271                 const EGLint *attrib_list);
272 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy,
273                 EGLSyncKHR sync);
274 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync,
275                 EGLint flags, EGLTimeKHR timeout);
276 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync,
277                 EGLenum mode);
278 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy,
279                 EGLSyncKHR sync, EGLint attribute, EGLint *value);
280 #endif
281 #endif /* KHRONOS_SUPPORT_INT64 */
282 #endif /* EGL_KHR_reusable_sync */
283
284 #ifndef EGL_KHR_stream
285 #define EGL_KHR_stream 1
286 typedef void *EGLStreamKHR;
287 typedef khronos_uint64_t EGLuint64KHR;
288 #ifdef KHRONOS_SUPPORT_INT64
289 #define EGL_NO_STREAM_KHR                 ((EGLStreamKHR)0)
290 #define EGL_CONSUMER_LATENCY_USEC_KHR     0x3210
291 #define EGL_PRODUCER_FRAME_KHR            0x3212
292 #define EGL_CONSUMER_FRAME_KHR            0x3213
293 #define EGL_STREAM_STATE_KHR              0x3214
294 #define EGL_STREAM_STATE_CREATED_KHR      0x3215
295 #define EGL_STREAM_STATE_CONNECTING_KHR   0x3216
296 #define EGL_STREAM_STATE_EMPTY_KHR        0x3217
297 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
298 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
299 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
300 #define EGL_BAD_STREAM_KHR                0x321B
301 #define EGL_BAD_STATE_KHR                 0x321C
302 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy,
303                 const EGLint *attrib_list);
304 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy,
305                 EGLStreamKHR stream);
306 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy,
307                 EGLStreamKHR stream, EGLenum attribute, EGLint value);
308 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy,
309                 EGLStreamKHR stream, EGLenum attribute, EGLint *value);
310 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy,
311                 EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
312 #ifdef EGL_EGLEXT_PROTOTYPES
313 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy,
314                 const EGLint *attrib_list);
315 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy,
316                 EGLStreamKHR stream);
317 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy,
318                 EGLStreamKHR stream, EGLenum attribute, EGLint value);
319 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy,
320                 EGLStreamKHR stream, EGLenum attribute, EGLint *value);
321 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy,
322                 EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
323 #endif
324 #endif /* KHRONOS_SUPPORT_INT64 */
325 #endif /* EGL_KHR_stream */
326
327 #ifndef EGL_KHR_stream_consumer_gltexture
328 #define EGL_KHR_stream_consumer_gltexture 1
329 #ifdef EGL_KHR_stream
330 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
331 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (
332         EGLDisplay dpy, EGLStreamKHR stream);
333 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (
334         EGLDisplay dpy, EGLStreamKHR stream);
335 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (
336         EGLDisplay dpy, EGLStreamKHR stream);
337 #ifdef EGL_EGLEXT_PROTOTYPES
338 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (
339         EGLDisplay dpy, EGLStreamKHR stream);
340 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy,
341                 EGLStreamKHR stream);
342 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy,
343                 EGLStreamKHR stream);
344 #endif
345 #endif /* EGL_KHR_stream */
346 #endif /* EGL_KHR_stream_consumer_gltexture */
347
348 #ifndef EGL_KHR_stream_cross_process_fd
349 #define EGL_KHR_stream_cross_process_fd 1
350 typedef int EGLNativeFileDescriptorKHR;
351 #ifdef EGL_KHR_stream
352 #define EGL_NO_FILE_DESCRIPTOR_KHR        ((EGLNativeFileDescriptorKHR)(-1))
353 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP
354                                     PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
355 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC)
356 (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
357 #ifdef EGL_EGLEXT_PROTOTYPES
358 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (
359         EGLDisplay dpy, EGLStreamKHR stream);
360 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (
361         EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
362 #endif
363 #endif /* EGL_KHR_stream */
364 #endif /* EGL_KHR_stream_cross_process_fd */
365
366 #ifndef EGL_KHR_stream_fifo
367 #define EGL_KHR_stream_fifo 1
368 #ifdef EGL_KHR_stream
369 #define EGL_STREAM_FIFO_LENGTH_KHR        0x31FC
370 #define EGL_STREAM_TIME_NOW_KHR           0x31FD
371 #define EGL_STREAM_TIME_CONSUMER_KHR      0x31FE
372 #define EGL_STREAM_TIME_PRODUCER_KHR      0x31FF
373 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy,
374                 EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
375 #ifdef EGL_EGLEXT_PROTOTYPES
376 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy,
377                 EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
378 #endif
379 #endif /* EGL_KHR_stream */
380 #endif /* EGL_KHR_stream_fifo */
381
382 #ifndef EGL_KHR_stream_producer_aldatalocator
383 #define EGL_KHR_stream_producer_aldatalocator 1
384 #ifdef EGL_KHR_stream
385 #endif /* EGL_KHR_stream */
386 #endif /* EGL_KHR_stream_producer_aldatalocator */
387
388 #ifndef EGL_KHR_stream_producer_eglsurface
389 #define EGL_KHR_stream_producer_eglsurface 1
390 #ifdef EGL_KHR_stream
391 #define EGL_STREAM_BIT_KHR                0x0800
392 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (
393         EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream,
394         const EGLint *attrib_list);
395 #ifdef EGL_EGLEXT_PROTOTYPES
396 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy,
397                 EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
398 #endif
399 #endif /* EGL_KHR_stream */
400 #endif /* EGL_KHR_stream_producer_eglsurface */
401
402 #ifndef EGL_KHR_surfaceless_context
403 #define EGL_KHR_surfaceless_context 1
404 #endif /* EGL_KHR_surfaceless_context */
405
406 #ifndef EGL_KHR_vg_parent_image
407 #define EGL_KHR_vg_parent_image 1
408 #define EGL_VG_PARENT_IMAGE_KHR           0x30BA
409 #endif /* EGL_KHR_vg_parent_image */
410
411 #ifndef EGL_KHR_wait_sync
412 #define EGL_KHR_wait_sync 1
413 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy,
414                 EGLSyncKHR sync, EGLint flags);
415 #ifdef EGL_EGLEXT_PROTOTYPES
416 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync,
417                 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,
425                                        const void *value, EGLsizeiANDROID valueSize);
426 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key,
427                 EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
428 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy,
429                 EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
430 #ifdef EGL_EGLEXT_PROTOTYPES
431 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy,
432                 EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
433 #endif
434 #endif /* EGL_ANDROID_blob_cache */
435
436 #ifndef EGL_ANDROID_framebuffer_target
437 #define EGL_ANDROID_framebuffer_target 1
438 #define EGL_FRAMEBUFFER_TARGET_ANDROID    0x3147
439 #endif /* EGL_ANDROID_framebuffer_target */
440
441 #ifndef EGL_ANDROID_image_native_buffer
442 #define EGL_ANDROID_image_native_buffer 1
443 #define EGL_NATIVE_BUFFER_ANDROID         0x3140
444 #endif /* EGL_ANDROID_image_native_buffer */
445
446 #ifndef EGL_ANDROID_native_fence_sync
447 #define EGL_ANDROID_native_fence_sync 1
448 #define EGL_SYNC_NATIVE_FENCE_ANDROID     0x3144
449 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID  0x3145
450 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
451 #define EGL_NO_NATIVE_FENCE_FD_ANDROID    -1
452 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy,
453                 EGLSyncKHR sync);
454 #ifdef EGL_EGLEXT_PROTOTYPES
455 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy,
456                 EGLSyncKHR sync);
457 #endif
458 #endif /* EGL_ANDROID_native_fence_sync */
459
460 #ifndef EGL_ANDROID_recordable
461 #define EGL_ANDROID_recordable 1
462 #define EGL_RECORDABLE_ANDROID            0x3142
463 #endif /* EGL_ANDROID_recordable */
464
465 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
466 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
467 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
468 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
469
470 #ifndef EGL_ANGLE_query_surface_pointer
471 #define EGL_ANGLE_query_surface_pointer 1
472 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (
473         EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
474 #ifdef EGL_EGLEXT_PROTOTYPES
475 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy,
476                 EGLSurface surface, EGLint attribute, void **value);
477 #endif
478 #endif /* EGL_ANGLE_query_surface_pointer */
479
480 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
481 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
482 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
483
484 #ifndef EGL_ARM_pixmap_multisample_discard
485 #define EGL_ARM_pixmap_multisample_discard 1
486 #define EGL_DISCARD_SAMPLES_ARM           0x3286
487 #endif /* EGL_ARM_pixmap_multisample_discard */
488
489 #ifndef EGL_EXT_buffer_age
490 #define EGL_EXT_buffer_age 1
491 #define EGL_BUFFER_AGE_EXT                0x313D
492 #endif /* EGL_EXT_buffer_age */
493
494 #ifndef EGL_EXT_client_extensions
495 #define EGL_EXT_client_extensions 1
496 #endif /* EGL_EXT_client_extensions */
497
498 #ifndef EGL_EXT_create_context_robustness
499 #define EGL_EXT_create_context_robustness 1
500 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
501 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
502 #define EGL_NO_RESET_NOTIFICATION_EXT     0x31BE
503 #define EGL_LOSE_CONTEXT_ON_RESET_EXT     0x31BF
504 #endif /* EGL_EXT_create_context_robustness */
505
506 #ifndef EGL_EXT_device_base
507 #define EGL_EXT_device_base 1
508 typedef void *EGLDeviceEXT;
509 #define EGL_NO_DEVICE_EXT                 ((EGLDeviceEXT)(0))
510 #define EGL_BAD_DEVICE_EXT                0x322B
511 #define EGL_DEVICE_EXT                    0x322C
512 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (
513         EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
514 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (
515         EGLDeviceEXT device, EGLint name);
516 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices,
517                 EGLDeviceEXT *devices, EGLint *num_devices);
518 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (
519         EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
520 #ifdef EGL_EGLEXT_PROTOTYPES
521 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device,
522                 EGLint attribute, EGLAttrib *value);
523 EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device,
524                 EGLint name);
525 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices,
526                 EGLDeviceEXT *devices, EGLint *num_devices);
527 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy,
528                 EGLint attribute, EGLAttrib *value);
529 #endif
530 #endif /* EGL_EXT_device_base */
531
532 #ifndef EGL_EXT_device_drm
533 #define EGL_EXT_device_drm 1
534 #define EGL_DRM_DEVICE_FILE_EXT           0x3233
535 #endif /* EGL_EXT_device_drm */
536
537 #ifndef EGL_EXT_device_openwf
538 #define EGL_EXT_device_openwf 1
539 #define EGL_OPENWF_DEVICE_ID_EXT          0x3237
540 #endif /* EGL_EXT_device_openwf */
541
542 #ifndef EGL_EXT_image_dma_buf_import
543 #define EGL_EXT_image_dma_buf_import 1
544 #define EGL_LINUX_DMA_BUF_EXT             0x3270
545 #define EGL_LINUX_DRM_FOURCC_EXT          0x3271
546 #define EGL_DMA_BUF_PLANE0_FD_EXT         0x3272
547 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT     0x3273
548 #define EGL_DMA_BUF_PLANE0_PITCH_EXT      0x3274
549 #define EGL_DMA_BUF_PLANE1_FD_EXT         0x3275
550 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT     0x3276
551 #define EGL_DMA_BUF_PLANE1_PITCH_EXT      0x3277
552 #define EGL_DMA_BUF_PLANE2_FD_EXT         0x3278
553 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT     0x3279
554 #define EGL_DMA_BUF_PLANE2_PITCH_EXT      0x327A
555 #define EGL_YUV_COLOR_SPACE_HINT_EXT      0x327B
556 #define EGL_SAMPLE_RANGE_HINT_EXT         0x327C
557 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
558 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
559 #define EGL_ITU_REC601_EXT                0x327F
560 #define EGL_ITU_REC709_EXT                0x3280
561 #define EGL_ITU_REC2020_EXT               0x3281
562 #define EGL_YUV_FULL_RANGE_EXT            0x3282
563 #define EGL_YUV_NARROW_RANGE_EXT          0x3283
564 #define EGL_YUV_CHROMA_SITING_0_EXT       0x3284
565 #define EGL_YUV_CHROMA_SITING_0_5_EXT     0x3285
566 #endif /* EGL_EXT_image_dma_buf_import */
567
568 #ifndef EGL_EXT_multiview_window
569 #define EGL_EXT_multiview_window 1
570 #define EGL_MULTIVIEW_VIEW_COUNT_EXT      0x3134
571 #endif /* EGL_EXT_multiview_window */
572
573 #ifndef EGL_EXT_output_base
574 #define EGL_EXT_output_base 1
575 typedef void *EGLOutputLayerEXT;
576 typedef void *EGLOutputPortEXT;
577 #define EGL_NO_OUTPUT_LAYER_EXT           ((EGLOutputLayerEXT)0)
578 #define EGL_NO_OUTPUT_PORT_EXT            ((EGLOutputPortEXT)0)
579 #define EGL_BAD_OUTPUT_LAYER_EXT          0x322D
580 #define EGL_BAD_OUTPUT_PORT_EXT           0x322E
581 #define EGL_SWAP_INTERVAL_EXT             0x322F
582 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy,
583                 const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers,
584                 EGLint *num_layers);
585 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy,
586                 const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports,
587                 EGLint *num_ports);
588 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (
589         EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
590 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (
591         EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
592 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (
593         EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
594 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy,
595                 EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
596 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (
597         EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
598 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (
599         EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
600 #ifdef EGL_EGLEXT_PROTOTYPES
601 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy,
602                 const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers,
603                 EGLint *num_layers);
604 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy,
605                 const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports,
606                 EGLint *num_ports);
607 EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy,
608                 EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
609 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy,
610                 EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
611 EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy,
612                 EGLOutputLayerEXT layer, EGLint name);
613 EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy,
614                 EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
615 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy,
616                 EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
617 EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy,
618                 EGLOutputPortEXT port, EGLint name);
619 #endif
620 #endif /* EGL_EXT_output_base */
621
622 #ifndef EGL_EXT_output_drm
623 #define EGL_EXT_output_drm 1
624 #define EGL_DRM_CRTC_EXT                  0x3234
625 #define EGL_DRM_PLANE_EXT                 0x3235
626 #define EGL_DRM_CONNECTOR_EXT             0x3236
627 #endif /* EGL_EXT_output_drm */
628
629 #ifndef EGL_EXT_output_openwf
630 #define EGL_EXT_output_openwf 1
631 #define EGL_OPENWF_PIPELINE_ID_EXT        0x3238
632 #define EGL_OPENWF_PORT_ID_EXT            0x3239
633 #endif /* EGL_EXT_output_openwf */
634
635 #ifndef EGL_EXT_platform_base
636 #define EGL_EXT_platform_base 1
637 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (
638         EGLenum platform, void *native_display, const EGLint *attrib_list);
639 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (
640         EGLDisplay dpy, EGLConfig config, void *native_window,
641         const EGLint *attrib_list);
642 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (
643         EGLDisplay dpy, EGLConfig config, void *native_pixmap,
644         const EGLint *attrib_list);
645 #ifdef EGL_EGLEXT_PROTOTYPES
646 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform,
647                 void *native_display, const EGLint *attrib_list);
648 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy,
649                 EGLConfig config, void *native_window, const EGLint *attrib_list);
650 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy,
651                 EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
652 #endif
653 #endif /* EGL_EXT_platform_base */
654
655 #ifndef EGL_EXT_platform_device
656 #define EGL_EXT_platform_device 1
657 #define EGL_PLATFORM_DEVICE_EXT           0x313F
658 #endif /* EGL_EXT_platform_device */
659
660 #ifndef EGL_EXT_platform_wayland
661 #define EGL_EXT_platform_wayland 1
662 #define EGL_PLATFORM_WAYLAND_EXT          0x31D8
663 #endif /* EGL_EXT_platform_wayland */
664
665 #ifndef EGL_EXT_platform_tbm
666 #define EGL_EXT_platform_tbm 1
667 #define EGL_PLATFORM_TBM_EXT          0x31D9
668 #endif /* EGL_EXT_platform_tbm */
669
670 #ifndef EGL_EXT_platform_x11
671 #define EGL_EXT_platform_x11 1
672 #define EGL_PLATFORM_X11_EXT              0x31D5
673 #define EGL_PLATFORM_X11_SCREEN_EXT       0x31D6
674 #endif /* EGL_EXT_platform_x11 */
675
676 #ifndef EGL_EXT_protected_surface
677 #define EGL_EXT_protected_surface 1
678 #define EGL_PROTECTED_CONTENT_EXT         0x32C0
679 #endif /* EGL_EXT_protected_surface */
680
681 #ifndef EGL_EXT_stream_consumer_egloutput
682 #define EGL_EXT_stream_consumer_egloutput 1
683 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (
684         EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
685 #ifdef EGL_EGLEXT_PROTOTYPES
686 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy,
687                 EGLStreamKHR stream, EGLOutputLayerEXT layer);
688 #endif
689 #endif /* EGL_EXT_stream_consumer_egloutput */
690
691 #ifndef EGL_EXT_swap_buffers_with_damage
692 #define EGL_EXT_swap_buffers_with_damage 1
693 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (
694         EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
695 #ifdef EGL_EGLEXT_PROTOTYPES
696 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy,
697                 EGLSurface surface, EGLint *rects, EGLint n_rects);
698 #endif
699 #endif /* EGL_EXT_swap_buffers_with_damage */
700
701 #ifndef EGL_HI_clientpixmap
702 #define EGL_HI_clientpixmap 1
703 struct EGLClientPixmapHI {
704         void  *pData;
705         EGLint iWidth;
706         EGLint iHeight;
707         EGLint iStride;
708 };
709 #define EGL_CLIENT_PIXMAP_POINTER_HI      0x8F74
710 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (
711         EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
712 #ifdef EGL_EGLEXT_PROTOTYPES
713 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy,
714                 EGLConfig config, struct EGLClientPixmapHI *pixmap);
715 #endif
716 #endif /* EGL_HI_clientpixmap */
717
718 #ifndef EGL_HI_colorformats
719 #define EGL_HI_colorformats 1
720 #define EGL_COLOR_FORMAT_HI               0x8F70
721 #define EGL_COLOR_RGB_HI                  0x8F71
722 #define EGL_COLOR_RGBA_HI                 0x8F72
723 #define EGL_COLOR_ARGB_HI                 0x8F73
724 #endif /* EGL_HI_colorformats */
725
726 #ifndef EGL_IMG_context_priority
727 #define EGL_IMG_context_priority 1
728 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG    0x3100
729 #define EGL_CONTEXT_PRIORITY_HIGH_IMG     0x3101
730 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG   0x3102
731 #define EGL_CONTEXT_PRIORITY_LOW_IMG      0x3103
732 #endif /* EGL_IMG_context_priority */
733
734 #ifndef EGL_MESA_drm_image
735 #define EGL_MESA_drm_image 1
736 #define EGL_DRM_BUFFER_FORMAT_MESA        0x31D0
737 #define EGL_DRM_BUFFER_USE_MESA           0x31D1
738 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
739 #define EGL_DRM_BUFFER_MESA               0x31D3
740 #define EGL_DRM_BUFFER_STRIDE_MESA        0x31D4
741 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA   0x00000001
742 #define EGL_DRM_BUFFER_USE_SHARE_MESA     0x00000002
743 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy,
744                 const EGLint *attrib_list);
745 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy,
746                 EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
747 #ifdef EGL_EGLEXT_PROTOTYPES
748 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy,
749                 const EGLint *attrib_list);
750 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy,
751                 EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
752 #endif
753 #endif /* EGL_MESA_drm_image */
754
755 #ifndef EGL_MESA_platform_gbm
756 #define EGL_MESA_platform_gbm 1
757 #define EGL_PLATFORM_GBM_MESA             0x31D7
758 #endif /* EGL_MESA_platform_gbm */
759
760 #ifndef EGL_NOK_swap_region
761 #define EGL_NOK_swap_region 1
762 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (
763         EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
764 #ifdef EGL_EGLEXT_PROTOTYPES
765 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy,
766                 EGLSurface surface, EGLint numRects, const EGLint *rects);
767 #endif
768 #endif /* EGL_NOK_swap_region */
769
770 #ifndef EGL_NOK_swap_region2
771 #define EGL_NOK_swap_region2 1
772 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (
773         EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
774 #ifdef EGL_EGLEXT_PROTOTYPES
775 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy,
776                 EGLSurface surface, EGLint numRects, const EGLint *rects);
777 #endif
778 #endif /* EGL_NOK_swap_region2 */
779
780 #ifndef EGL_NOK_texture_from_pixmap
781 #define EGL_NOK_texture_from_pixmap 1
782 #define EGL_Y_INVERTED_NOK                0x307F
783 #endif /* EGL_NOK_texture_from_pixmap */
784
785 #ifndef EGL_NV_3dvision_surface
786 #define EGL_NV_3dvision_surface 1
787 #define EGL_AUTO_STEREO_NV                0x3136
788 #endif /* EGL_NV_3dvision_surface */
789
790 #ifndef EGL_NV_coverage_sample
791 #define EGL_NV_coverage_sample 1
792 #define EGL_COVERAGE_BUFFERS_NV           0x30E0
793 #define EGL_COVERAGE_SAMPLES_NV           0x30E1
794 #endif /* EGL_NV_coverage_sample */
795
796 #ifndef EGL_NV_coverage_sample_resolve
797 #define EGL_NV_coverage_sample_resolve 1
798 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV    0x3131
799 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
800 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
801 #endif /* EGL_NV_coverage_sample_resolve */
802
803 #ifndef EGL_NV_cuda_event
804 #define EGL_NV_cuda_event 1
805 #define EGL_CUDA_EVENT_HANDLE_NV          0x323B
806 #define EGL_SYNC_CUDA_EVENT_NV            0x323C
807 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV   0x323D
808 #endif /* EGL_NV_cuda_event */
809
810 #ifndef EGL_NV_depth_nonlinear
811 #define EGL_NV_depth_nonlinear 1
812 #define EGL_DEPTH_ENCODING_NV             0x30E2
813 #define EGL_DEPTH_ENCODING_NONE_NV        0
814 #define EGL_DEPTH_ENCODING_NONLINEAR_NV   0x30E3
815 #endif /* EGL_NV_depth_nonlinear */
816
817 #ifndef EGL_NV_device_cuda
818 #define EGL_NV_device_cuda 1
819 #define EGL_CUDA_DEVICE_NV                0x323A
820 #endif /* EGL_NV_device_cuda */
821
822 #ifndef EGL_NV_native_query
823 #define EGL_NV_native_query 1
824 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (
825         EGLDisplay dpy, EGLNativeDisplayType *display_id);
826 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy,
827                 EGLSurface surf, EGLNativeWindowType *window);
828 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy,
829                 EGLSurface surf, EGLNativePixmapType *pixmap);
830 #ifdef EGL_EGLEXT_PROTOTYPES
831 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy,
832                 EGLNativeDisplayType *display_id);
833 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy,
834                 EGLSurface surf, EGLNativeWindowType *window);
835 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy,
836                 EGLSurface surf, EGLNativePixmapType *pixmap);
837 #endif
838 #endif /* EGL_NV_native_query */
839
840 #ifndef EGL_NV_post_convert_rounding
841 #define EGL_NV_post_convert_rounding 1
842 #endif /* EGL_NV_post_convert_rounding */
843
844 #ifndef EGL_NV_post_sub_buffer
845 #define EGL_NV_post_sub_buffer 1
846 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV  0x30BE
847 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy,
848                 EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
849 #ifdef EGL_EGLEXT_PROTOTYPES
850 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy,
851                 EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
852 #endif
853 #endif /* EGL_NV_post_sub_buffer */
854
855 #ifndef EGL_NV_stream_sync
856 #define EGL_NV_stream_sync 1
857 #define EGL_SYNC_NEW_FRAME_NV             0x321F
858 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy,
859                 EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
860 #ifdef EGL_EGLEXT_PROTOTYPES
861 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy,
862                 EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
863 #endif
864 #endif /* EGL_NV_stream_sync */
865
866 #ifndef EGL_NV_sync
867 #define EGL_NV_sync 1
868 typedef void *EGLSyncNV;
869 typedef khronos_utime_nanoseconds_t EGLTimeNV;
870 #ifdef KHRONOS_SUPPORT_INT64
871 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
872 #define EGL_SYNC_STATUS_NV                0x30E7
873 #define EGL_SIGNALED_NV                   0x30E8
874 #define EGL_UNSIGNALED_NV                 0x30E9
875 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV    0x0001
876 #define EGL_FOREVER_NV                    0xFFFFFFFFFFFFFFFFull
877 #define EGL_ALREADY_SIGNALED_NV           0x30EA
878 #define EGL_TIMEOUT_EXPIRED_NV            0x30EB
879 #define EGL_CONDITION_SATISFIED_NV        0x30EC
880 #define EGL_SYNC_TYPE_NV                  0x30ED
881 #define EGL_SYNC_CONDITION_NV             0x30EE
882 #define EGL_SYNC_FENCE_NV                 0x30EF
883 #define EGL_NO_SYNC_NV                    ((EGLSyncNV)0)
884 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy,
885                 EGLenum condition, const EGLint *attrib_list);
886 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
887 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
888 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync,
889                 EGLint flags, EGLTimeNV timeout);
890 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync,
891                 EGLenum mode);
892 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync,
893                 EGLint attribute, EGLint *value);
894 #ifdef EGL_EGLEXT_PROTOTYPES
895 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy,
896                 EGLenum condition, const EGLint *attrib_list);
897 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
898 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
899 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags,
900                 EGLTimeNV timeout);
901 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
902 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync,
903                 EGLint attribute, EGLint *value);
904 #endif
905 #endif /* KHRONOS_SUPPORT_INT64 */
906 #endif /* EGL_NV_sync */
907
908 #ifndef EGL_NV_system_time
909 #define EGL_NV_system_time 1
910 typedef khronos_utime_nanoseconds_t EGLuint64NV;
911 #ifdef KHRONOS_SUPPORT_INT64
912 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
913 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
914 #ifdef EGL_EGLEXT_PROTOTYPES
915 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
916 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
917 #endif
918 #endif /* KHRONOS_SUPPORT_INT64 */
919 #endif /* EGL_NV_system_time */
920
921 #ifndef EGL_TIZEN_image_native_buffer
922 #define EGL_TIZEN_image_native_buffer 1
923 #define EGL_NATIVE_BUFFER_TIZEN           0x32A0
924 #endif /* EGL_TIZEN_image_native_buffer */
925
926 #ifndef EGL_TIZEN_image_native_surface
927 #define EGL_TIZEN_image_native_surface 1
928 #define EGL_NATIVE_SURFACE_TIZEN          0x32A1
929 #endif /* EGL_TIZEN_image_native_surface */
930
931 /******************************************************************************/
932 /*                   SEC proprietary specs                                    */
933 #ifndef EGL_SEC_client_pixmap
934 #define EGL_SEC_client_pixmap 1
935 #define EGL_CLINET_MEM_PIXMAP_SEC               0x3200 /* eglCreateClientPixmapFromClientBufferSEC buftype */
936 #define EGL_CLIENT_PIXMAP_SEC                   0x3210 /* eglCreateImageKHR target */
937 #define EGL_CLIENT_PIXMAP_HEIGHT_SEC            0x3211 /* eglCreateImageKHR attribute */
938 #define EGL_CLIENT_PIXMAP_WIDTH_SEC             0x3212 /* eglCreateImageKHR attribute */
939
940 #ifdef EGL_EGLEXT_PROTOTYPES
941 EGLAPI EGLSurface eglCreateClientPixmapFromClientBufferSEC (EGLDisplay dpy,
942                 EGLenum buftype, EGLClientBuffer buffer, EGLConfig config,
943                 const EGLint *attrib_list);
944 #endif /* EGL_EGLEXT_PROTOTYPES */
945 typedef EGLSurface (EGLAPIENTRYP
946                     PFNEGLCREATECLIENTPIXMAPFROMCLIENTBUFFERSECPROC) (EGLDisplay dpy,
947                                     EGLenum buftype, EGLClientBuffer buffer, EGLConfig config,
948                                     const EGLint *attrib_list);
949 #endif
950
951 #ifndef EGL_SEC_image_map
952 #define EGL_SEC_image_map 1
953 #define EGL_MAP_GL_TEXTURE_2D_SEC               0x3201  /* eglCreateImageKHR target */
954 #define EGL_MAP_GL_TEXTURE_HEIGHT_SEC           0x3202  /* eglCreateImageKHR attribute */
955 #define EGL_MAP_GL_TEXTURE_WIDTH_SEC            0x3203  /* eglCreateImageKHR attribute */
956 #define EGL_MAP_GL_TEXTURE_FORMAT_SEC           0x3204  /* eglCreateImageKHR attribute, Specifies the number of color components in the mapped texture. */
957 #define EGL_MAP_GL_TEXTURE_RGB_SEC              0x3205  /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
958 #define EGL_MAP_GL_TEXTURE_RGBA_SEC             0x3206  /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
959 #define EGL_MAP_GL_TEXTURE_BGRA_SEC             0x3207  /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
960 #define EGL_MAP_GL_TEXTURE_LUMINANCE_SEC        0x3208  /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
961 #define EGL_MAP_GL_TEXTURE_LUMINANCE_ALPHA_SEC  0x3209  /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
962 #define EGL_MAP_GL_TEXTURE_PIXEL_TYPE_SEC       0x320a  /* eglCreateImageKHR attribute, Specifies the data type of the pixel data. */
963 #define EGL_MAP_GL_TEXTURE_UNSIGNED_BYTE_SEC    0x320b  /* More config attribute value, for EGL_MAP_GL_TEXTURE_PIXEL_TYPE_SEC */
964 #define EGL_MAP_GL_TEXTURE_STRIDE_IN_BYTES_SEC  0x320c  /* GetImageAttribSEC target */
965 #ifdef EGL_EGLEXT_PROTOTYPES
966 EGLAPI void *EGLAPIENTRY eglMapImageSEC (EGLDisplay dpy, EGLImageKHR image);
967 EGLAPI EGLBoolean EGLAPIENTRY eglUnmapImageSEC (EGLDisplay dpy,
968                 EGLImageKHR image);
969 EGLAPI EGLBoolean EGLAPIENTRY eglGetImageAttribSEC (EGLDisplay dpy,
970                 EGLImageKHR image, EGLint attribute, EGLint *value);
971 #endif /* EGL_EGLEXT_PROTOTYPES */
972 #endif /* EGL_SEC_image_map */
973
974 #ifndef EGL_ANDROID_PIXMAP_image
975 #define EGL_ANDROID_PIXMAP_image 1
976 #define EGL_IMAGE_ANDROID_PIXMAP_IMAGE_KHR      0x3301 /* eglCreateImageKHR attribute */
977 #endif /*EGL_ANDROID_PIXMAP_image
978 /******************************************************************************/
979
980 /******************************************************************************/
981 /*                            WAYLAND specs                                   */
982 #ifndef EGL_WL_bind_wayland_display
983 #define EGL_WL_bind_wayland_display 1
984
985 #define EGL_WAYLAND_BUFFER_WL           0x31D5 /* eglCreateImageKHR target */
986 #define EGL_WAYLAND_PLANE_WL            0x31D6 /* eglCreateImageKHR target */
987
988 #define EGL_WAYLAND_Y_INVERTED_WL       0x31DB /* eglQueryWaylandBufferWL attribute */
989
990 #define EGL_TEXTURE_Y_U_V_WL            0x31D7
991 #define EGL_TEXTURE_Y_UV_WL             0x31D8
992 #define EGL_TEXTURE_Y_XUXV_WL           0x31D9
993
994 struct wl_display;
995 struct wl_resource;
996 #ifdef EGL_EGLEXT_PROTOTYPES
997 EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL(EGLDisplay dpy,
998                 struct wl_display *display);
999 EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL(EGLDisplay dpy,
1000                 struct wl_display *display);
1001 EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL(EGLDisplay dpy,
1002                 struct wl_resource *buffer, EGLint attribute, EGLint *value);
1003 #endif
1004 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWL) (EGLDisplay dpy,
1005                 struct wl_display *display);
1006 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWL) (EGLDisplay dpy,
1007                 struct wl_display *display);
1008 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWL) (EGLDisplay dpy,
1009                 struct wl_resource *buffer, EGLint attribute, EGLint *value);
1010
1011 #endif
1012
1013 #ifndef EGL_WL_create_wayland_buffer_from_image
1014 #define EGL_WL_create_wayland_buffer_from_image 1
1015
1016 #ifdef EGL_EGLEXT_PROTOTYPES
1017 EGLAPI struct wl_buffer *EGLAPIENTRY eglCreateWaylandBufferFromImageWL(
1018         EGLDisplay dpy, EGLImageKHR image);
1019 #endif
1020 typedef struct wl_buffer *(EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL) (
1021         EGLDisplay dpy, EGLImageKHR image);
1022
1023 #endif
1024 /******************************************************************************/
1025
1026 #ifdef __cplusplus
1027 }
1028 #endif
1029
1030 #endif