9 ** Copyright (c) 2013-2014 The Khronos Group Inc.
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:
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
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.
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/
36 ** Khronos $Revision: 27930 $ on $Date: 2014-09-03 21:17:58 -0700 (Wed, 03 Sep 2014) $
39 #include <EGL/eglplatform.h>
41 #define EGL_EGLEXT_VERSION 20140903
43 /* Generated C header for:
45 * Versions considered: .*
46 * Versions emitted: _nomatch_^
47 * Default extensions included: egl
48 * Additional extensions included: _nomatch_^
49 * Extensions removed: _nomatch_^
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 */
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);
67 #endif /* EGL_KHR_cl_event2 */
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 */
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 */
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 */
97 #ifndef EGL_KHR_fence_sync
98 #define EGL_KHR_fence_sync 1
99 #ifdef KHRONOS_SUPPORT_INT64
100 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
101 #define EGL_SYNC_CONDITION_KHR 0x30F8
102 #define EGL_SYNC_FENCE_KHR 0x30F9
103 #endif /* KHRONOS_SUPPORT_INT64 */
104 #endif /* EGL_KHR_fence_sync */
106 #ifndef EGL_KHR_get_all_proc_addresses
107 #define EGL_KHR_get_all_proc_addresses 1
108 #endif /* EGL_KHR_get_all_proc_addresses */
110 #ifndef EGL_KHR_gl_colorspace
111 #define EGL_KHR_gl_colorspace 1
112 #define EGL_GL_COLORSPACE_KHR 0x309D
113 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
114 #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
115 #endif /* EGL_KHR_gl_colorspace */
117 #ifndef EGL_KHR_gl_renderbuffer_image
118 #define EGL_KHR_gl_renderbuffer_image 1
119 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
120 #endif /* EGL_KHR_gl_renderbuffer_image */
122 #ifndef EGL_KHR_gl_texture_2D_image
123 #define EGL_KHR_gl_texture_2D_image 1
124 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
125 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
126 #endif /* EGL_KHR_gl_texture_2D_image */
128 #ifndef EGL_KHR_gl_texture_3D_image
129 #define EGL_KHR_gl_texture_3D_image 1
130 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
131 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
132 #endif /* EGL_KHR_gl_texture_3D_image */
134 #ifndef EGL_KHR_gl_texture_cubemap_image
135 #define EGL_KHR_gl_texture_cubemap_image 1
136 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
137 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
138 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
139 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
140 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
141 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
142 #endif /* EGL_KHR_gl_texture_cubemap_image */
144 #ifndef EGL_KHR_image
145 #define EGL_KHR_image 1
146 typedef void *EGLImageKHR;
147 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
148 #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
149 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
150 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
151 #ifdef EGL_EGLEXT_PROTOTYPES
152 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
153 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
155 #endif /* EGL_KHR_image */
157 #ifndef EGL_KHR_image_base
158 #define EGL_KHR_image_base 1
159 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
160 #endif /* EGL_KHR_image_base */
162 #ifndef EGL_KHR_image_pixmap
163 #define EGL_KHR_image_pixmap 1
164 #endif /* EGL_KHR_image_pixmap */
166 #ifndef EGL_KHR_lock_surface
167 #define EGL_KHR_lock_surface 1
168 #define EGL_READ_SURFACE_BIT_KHR 0x0001
169 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
170 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
171 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
172 #define EGL_MATCH_FORMAT_KHR 0x3043
173 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
174 #define EGL_FORMAT_RGB_565_KHR 0x30C1
175 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
176 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
177 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
178 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
179 #define EGL_BITMAP_POINTER_KHR 0x30C6
180 #define EGL_BITMAP_PITCH_KHR 0x30C7
181 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
182 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
183 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
184 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
185 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
186 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
187 #define EGL_LOWER_LEFT_KHR 0x30CE
188 #define EGL_UPPER_LEFT_KHR 0x30CF
189 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
190 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
191 #ifdef EGL_EGLEXT_PROTOTYPES
192 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
193 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
195 #endif /* EGL_KHR_lock_surface */
197 #ifndef EGL_KHR_lock_surface2
198 #define EGL_KHR_lock_surface2 1
199 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
200 #endif /* EGL_KHR_lock_surface2 */
202 #ifndef EGL_KHR_lock_surface3
203 #define EGL_KHR_lock_surface3 1
204 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
205 #ifdef EGL_EGLEXT_PROTOTYPES
206 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
208 #endif /* EGL_KHR_lock_surface3 */
210 #ifndef EGL_KHR_platform_android
211 #define EGL_KHR_platform_android 1
212 #define EGL_PLATFORM_ANDROID_KHR 0x3141
213 #endif /* EGL_KHR_platform_android */
215 #ifndef EGL_KHR_platform_gbm
216 #define EGL_KHR_platform_gbm 1
217 #define EGL_PLATFORM_GBM_KHR 0x31D7
218 #endif /* EGL_KHR_platform_gbm */
220 #ifndef EGL_KHR_platform_wayland
221 #define EGL_KHR_platform_wayland 1
222 #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
223 #endif /* EGL_KHR_platform_wayland */
225 #ifndef EGL_KHR_platform_x11
226 #define EGL_KHR_platform_x11 1
227 #define EGL_PLATFORM_X11_KHR 0x31D5
228 #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
229 #endif /* EGL_KHR_platform_x11 */
231 #ifndef EGL_KHR_reusable_sync
232 #define EGL_KHR_reusable_sync 1
233 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
234 #ifdef KHRONOS_SUPPORT_INT64
235 #define EGL_SYNC_STATUS_KHR 0x30F1
236 #define EGL_SIGNALED_KHR 0x30F2
237 #define EGL_UNSIGNALED_KHR 0x30F3
238 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
239 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
240 #define EGL_SYNC_TYPE_KHR 0x30F7
241 #define EGL_SYNC_REUSABLE_KHR 0x30FA
242 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
243 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
244 #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
245 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
246 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
247 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
248 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
249 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
250 #ifdef EGL_EGLEXT_PROTOTYPES
251 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
252 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
253 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
254 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
255 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
257 #endif /* KHRONOS_SUPPORT_INT64 */
258 #endif /* EGL_KHR_reusable_sync */
260 #ifndef EGL_KHR_stream
261 #define EGL_KHR_stream 1
262 typedef void *EGLStreamKHR;
263 typedef khronos_uint64_t EGLuint64KHR;
264 #ifdef KHRONOS_SUPPORT_INT64
265 #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0)
266 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
267 #define EGL_PRODUCER_FRAME_KHR 0x3212
268 #define EGL_CONSUMER_FRAME_KHR 0x3213
269 #define EGL_STREAM_STATE_KHR 0x3214
270 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
271 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
272 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
273 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
274 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
275 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
276 #define EGL_BAD_STREAM_KHR 0x321B
277 #define EGL_BAD_STATE_KHR 0x321C
278 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
279 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
280 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
281 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
282 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
283 #ifdef EGL_EGLEXT_PROTOTYPES
284 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
285 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
286 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
287 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
288 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
290 #endif /* KHRONOS_SUPPORT_INT64 */
291 #endif /* EGL_KHR_stream */
293 #ifndef EGL_KHR_stream_consumer_gltexture
294 #define EGL_KHR_stream_consumer_gltexture 1
295 #ifdef EGL_KHR_stream
296 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
297 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
298 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
299 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
300 #ifdef EGL_EGLEXT_PROTOTYPES
301 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
302 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
303 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
305 #endif /* EGL_KHR_stream */
306 #endif /* EGL_KHR_stream_consumer_gltexture */
308 #ifndef EGL_KHR_stream_cross_process_fd
309 #define EGL_KHR_stream_cross_process_fd 1
310 typedef int EGLNativeFileDescriptorKHR;
311 #ifdef EGL_KHR_stream
312 #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1))
313 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
314 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
315 #ifdef EGL_EGLEXT_PROTOTYPES
316 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
317 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
319 #endif /* EGL_KHR_stream */
320 #endif /* EGL_KHR_stream_cross_process_fd */
322 #ifndef EGL_KHR_stream_fifo
323 #define EGL_KHR_stream_fifo 1
324 #ifdef EGL_KHR_stream
325 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
326 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
327 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
328 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
329 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
330 #ifdef EGL_EGLEXT_PROTOTYPES
331 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
333 #endif /* EGL_KHR_stream */
334 #endif /* EGL_KHR_stream_fifo */
336 #ifndef EGL_KHR_stream_producer_aldatalocator
337 #define EGL_KHR_stream_producer_aldatalocator 1
338 #ifdef EGL_KHR_stream
339 #endif /* EGL_KHR_stream */
340 #endif /* EGL_KHR_stream_producer_aldatalocator */
342 #ifndef EGL_KHR_stream_producer_eglsurface
343 #define EGL_KHR_stream_producer_eglsurface 1
344 #ifdef EGL_KHR_stream
345 #define EGL_STREAM_BIT_KHR 0x0800
346 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
347 #ifdef EGL_EGLEXT_PROTOTYPES
348 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
350 #endif /* EGL_KHR_stream */
351 #endif /* EGL_KHR_stream_producer_eglsurface */
353 #ifndef EGL_KHR_surfaceless_context
354 #define EGL_KHR_surfaceless_context 1
355 #endif /* EGL_KHR_surfaceless_context */
357 #ifndef EGL_KHR_vg_parent_image
358 #define EGL_KHR_vg_parent_image 1
359 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
360 #endif /* EGL_KHR_vg_parent_image */
362 #ifndef EGL_KHR_wait_sync
363 #define EGL_KHR_wait_sync 1
364 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
365 #ifdef EGL_EGLEXT_PROTOTYPES
366 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
368 #endif /* EGL_KHR_wait_sync */
370 #ifndef EGL_ANDROID_blob_cache
371 #define EGL_ANDROID_blob_cache 1
372 typedef khronos_ssize_t EGLsizeiANDROID;
373 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
374 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
375 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
376 #ifdef EGL_EGLEXT_PROTOTYPES
377 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
379 #endif /* EGL_ANDROID_blob_cache */
381 #ifndef EGL_ANDROID_framebuffer_target
382 #define EGL_ANDROID_framebuffer_target 1
383 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
384 #endif /* EGL_ANDROID_framebuffer_target */
386 #ifndef EGL_ANDROID_image_native_buffer
387 #define EGL_ANDROID_image_native_buffer 1
388 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
389 #endif /* EGL_ANDROID_image_native_buffer */
391 #ifndef EGL_ANDROID_native_fence_sync
392 #define EGL_ANDROID_native_fence_sync 1
393 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
394 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
395 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
396 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
397 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
398 #ifdef EGL_EGLEXT_PROTOTYPES
399 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
401 #endif /* EGL_ANDROID_native_fence_sync */
403 #ifndef EGL_ANDROID_recordable
404 #define EGL_ANDROID_recordable 1
405 #define EGL_RECORDABLE_ANDROID 0x3142
406 #endif /* EGL_ANDROID_recordable */
408 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
409 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
410 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
411 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
413 #ifndef EGL_ANGLE_query_surface_pointer
414 #define EGL_ANGLE_query_surface_pointer 1
415 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
416 #ifdef EGL_EGLEXT_PROTOTYPES
417 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
419 #endif /* EGL_ANGLE_query_surface_pointer */
421 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
422 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
423 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
425 #ifndef EGL_ARM_pixmap_multisample_discard
426 #define EGL_ARM_pixmap_multisample_discard 1
427 #define EGL_DISCARD_SAMPLES_ARM 0x3286
428 #endif /* EGL_ARM_pixmap_multisample_discard */
430 #ifndef EGL_EXT_buffer_age
431 #define EGL_EXT_buffer_age 1
432 #define EGL_BUFFER_AGE_EXT 0x313D
433 #endif /* EGL_EXT_buffer_age */
435 #ifndef EGL_EXT_client_extensions
436 #define EGL_EXT_client_extensions 1
437 #endif /* EGL_EXT_client_extensions */
439 #ifndef EGL_EXT_create_context_robustness
440 #define EGL_EXT_create_context_robustness 1
441 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
442 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
443 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
444 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
445 #endif /* EGL_EXT_create_context_robustness */
447 #ifndef EGL_EXT_device_base
448 #define EGL_EXT_device_base 1
449 typedef void *EGLDeviceEXT;
450 #define EGL_NO_DEVICE_EXT ((EGLDeviceEXT)(0))
451 #define EGL_BAD_DEVICE_EXT 0x322B
452 #define EGL_DEVICE_EXT 0x322C
453 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
454 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
455 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
456 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
457 #ifdef EGL_EGLEXT_PROTOTYPES
458 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
459 EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
460 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
461 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
463 #endif /* EGL_EXT_device_base */
465 #ifndef EGL_EXT_device_drm
466 #define EGL_EXT_device_drm 1
467 #define EGL_DRM_DEVICE_FILE_EXT 0x3233
468 #endif /* EGL_EXT_device_drm */
470 #ifndef EGL_EXT_device_openwf
471 #define EGL_EXT_device_openwf 1
472 #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
473 #endif /* EGL_EXT_device_openwf */
475 #ifndef EGL_EXT_image_dma_buf_import
476 #define EGL_EXT_image_dma_buf_import 1
477 #define EGL_LINUX_DMA_BUF_EXT 0x3270
478 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
479 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
480 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
481 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
482 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
483 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
484 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
485 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
486 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
487 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
488 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
489 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
490 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
491 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
492 #define EGL_ITU_REC601_EXT 0x327F
493 #define EGL_ITU_REC709_EXT 0x3280
494 #define EGL_ITU_REC2020_EXT 0x3281
495 #define EGL_YUV_FULL_RANGE_EXT 0x3282
496 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
497 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
498 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
499 #endif /* EGL_EXT_image_dma_buf_import */
501 #ifndef EGL_EXT_multiview_window
502 #define EGL_EXT_multiview_window 1
503 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
504 #endif /* EGL_EXT_multiview_window */
506 #ifndef EGL_EXT_output_base
507 #define EGL_EXT_output_base 1
508 typedef void *EGLOutputLayerEXT;
509 typedef void *EGLOutputPortEXT;
510 #define EGL_NO_OUTPUT_LAYER_EXT ((EGLOutputLayerEXT)0)
511 #define EGL_NO_OUTPUT_PORT_EXT ((EGLOutputPortEXT)0)
512 #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
513 #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
514 #define EGL_SWAP_INTERVAL_EXT 0x322F
515 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
516 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
517 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
518 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
519 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
520 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
521 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
522 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
523 #ifdef EGL_EGLEXT_PROTOTYPES
524 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
525 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
526 EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
527 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
528 EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
529 EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
530 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
531 EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
533 #endif /* EGL_EXT_output_base */
535 #ifndef EGL_EXT_output_drm
536 #define EGL_EXT_output_drm 1
537 #define EGL_DRM_CRTC_EXT 0x3234
538 #define EGL_DRM_PLANE_EXT 0x3235
539 #define EGL_DRM_CONNECTOR_EXT 0x3236
540 #endif /* EGL_EXT_output_drm */
542 #ifndef EGL_EXT_output_openwf
543 #define EGL_EXT_output_openwf 1
544 #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
545 #define EGL_OPENWF_PORT_ID_EXT 0x3239
546 #endif /* EGL_EXT_output_openwf */
548 #ifndef EGL_EXT_platform_base
549 #define EGL_EXT_platform_base 1
550 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
551 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
552 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
553 #ifdef EGL_EGLEXT_PROTOTYPES
554 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
555 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
556 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
558 #endif /* EGL_EXT_platform_base */
560 #ifndef EGL_EXT_platform_device
561 #define EGL_EXT_platform_device 1
562 #define EGL_PLATFORM_DEVICE_EXT 0x313F
563 #endif /* EGL_EXT_platform_device */
565 #ifndef EGL_EXT_platform_wayland
566 #define EGL_EXT_platform_wayland 1
567 #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
568 #endif /* EGL_EXT_platform_wayland */
570 #ifndef EGL_EXT_platform_x11
571 #define EGL_EXT_platform_x11 1
572 #define EGL_PLATFORM_X11_EXT 0x31D5
573 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
574 #endif /* EGL_EXT_platform_x11 */
576 #ifndef EGL_EXT_protected_surface
577 #define EGL_EXT_protected_surface 1
578 #define EGL_PROTECTED_CONTENT_EXT 0x32C0
579 #endif /* EGL_EXT_protected_surface */
581 #ifndef EGL_EXT_stream_consumer_egloutput
582 #define EGL_EXT_stream_consumer_egloutput 1
583 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
584 #ifdef EGL_EGLEXT_PROTOTYPES
585 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
587 #endif /* EGL_EXT_stream_consumer_egloutput */
589 #ifndef EGL_EXT_swap_buffers_with_damage
590 #define EGL_EXT_swap_buffers_with_damage 1
591 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
592 #ifdef EGL_EGLEXT_PROTOTYPES
593 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
595 #endif /* EGL_EXT_swap_buffers_with_damage */
597 #ifndef EGL_HI_clientpixmap
598 #define EGL_HI_clientpixmap 1
599 struct EGLClientPixmapHI {
605 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
606 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
607 #ifdef EGL_EGLEXT_PROTOTYPES
608 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
610 #endif /* EGL_HI_clientpixmap */
612 #ifndef EGL_HI_colorformats
613 #define EGL_HI_colorformats 1
614 #define EGL_COLOR_FORMAT_HI 0x8F70
615 #define EGL_COLOR_RGB_HI 0x8F71
616 #define EGL_COLOR_RGBA_HI 0x8F72
617 #define EGL_COLOR_ARGB_HI 0x8F73
618 #endif /* EGL_HI_colorformats */
620 #ifndef EGL_IMG_context_priority
621 #define EGL_IMG_context_priority 1
622 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
623 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
624 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
625 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
626 #endif /* EGL_IMG_context_priority */
628 #ifndef EGL_MESA_drm_image
629 #define EGL_MESA_drm_image 1
630 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
631 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
632 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
633 #define EGL_DRM_BUFFER_MESA 0x31D3
634 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
635 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
636 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
637 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
638 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
639 #ifdef EGL_EGLEXT_PROTOTYPES
640 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
641 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
643 #endif /* EGL_MESA_drm_image */
645 #ifndef EGL_MESA_platform_gbm
646 #define EGL_MESA_platform_gbm 1
647 #define EGL_PLATFORM_GBM_MESA 0x31D7
648 #endif /* EGL_MESA_platform_gbm */
650 #ifndef EGL_NOK_swap_region
651 #define EGL_NOK_swap_region 1
652 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
653 #ifdef EGL_EGLEXT_PROTOTYPES
654 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
656 #endif /* EGL_NOK_swap_region */
658 #ifndef EGL_NOK_swap_region2
659 #define EGL_NOK_swap_region2 1
660 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
661 #ifdef EGL_EGLEXT_PROTOTYPES
662 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
664 #endif /* EGL_NOK_swap_region2 */
666 #ifndef EGL_NOK_texture_from_pixmap
667 #define EGL_NOK_texture_from_pixmap 1
668 #define EGL_Y_INVERTED_NOK 0x307F
669 #endif /* EGL_NOK_texture_from_pixmap */
671 #ifndef EGL_NV_3dvision_surface
672 #define EGL_NV_3dvision_surface 1
673 #define EGL_AUTO_STEREO_NV 0x3136
674 #endif /* EGL_NV_3dvision_surface */
676 #ifndef EGL_NV_coverage_sample
677 #define EGL_NV_coverage_sample 1
678 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
679 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
680 #endif /* EGL_NV_coverage_sample */
682 #ifndef EGL_NV_coverage_sample_resolve
683 #define EGL_NV_coverage_sample_resolve 1
684 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
685 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
686 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
687 #endif /* EGL_NV_coverage_sample_resolve */
689 #ifndef EGL_NV_cuda_event
690 #define EGL_NV_cuda_event 1
691 #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
692 #define EGL_SYNC_CUDA_EVENT_NV 0x323C
693 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
694 #endif /* EGL_NV_cuda_event */
696 #ifndef EGL_NV_depth_nonlinear
697 #define EGL_NV_depth_nonlinear 1
698 #define EGL_DEPTH_ENCODING_NV 0x30E2
699 #define EGL_DEPTH_ENCODING_NONE_NV 0
700 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
701 #endif /* EGL_NV_depth_nonlinear */
703 #ifndef EGL_NV_device_cuda
704 #define EGL_NV_device_cuda 1
705 #define EGL_CUDA_DEVICE_NV 0x323A
706 #endif /* EGL_NV_device_cuda */
708 #ifndef EGL_NV_native_query
709 #define EGL_NV_native_query 1
710 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
711 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
712 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
713 #ifdef EGL_EGLEXT_PROTOTYPES
714 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
715 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
716 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
718 #endif /* EGL_NV_native_query */
720 #ifndef EGL_NV_post_convert_rounding
721 #define EGL_NV_post_convert_rounding 1
722 #endif /* EGL_NV_post_convert_rounding */
724 #ifndef EGL_NV_post_sub_buffer
725 #define EGL_NV_post_sub_buffer 1
726 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
727 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
728 #ifdef EGL_EGLEXT_PROTOTYPES
729 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
731 #endif /* EGL_NV_post_sub_buffer */
733 #ifndef EGL_NV_stream_sync
734 #define EGL_NV_stream_sync 1
735 #define EGL_SYNC_NEW_FRAME_NV 0x321F
736 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
737 #ifdef EGL_EGLEXT_PROTOTYPES
738 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
740 #endif /* EGL_NV_stream_sync */
743 #define EGL_NV_sync 1
744 typedef void *EGLSyncNV;
745 typedef khronos_utime_nanoseconds_t EGLTimeNV;
746 #ifdef KHRONOS_SUPPORT_INT64
747 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
748 #define EGL_SYNC_STATUS_NV 0x30E7
749 #define EGL_SIGNALED_NV 0x30E8
750 #define EGL_UNSIGNALED_NV 0x30E9
751 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
752 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
753 #define EGL_ALREADY_SIGNALED_NV 0x30EA
754 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
755 #define EGL_CONDITION_SATISFIED_NV 0x30EC
756 #define EGL_SYNC_TYPE_NV 0x30ED
757 #define EGL_SYNC_CONDITION_NV 0x30EE
758 #define EGL_SYNC_FENCE_NV 0x30EF
759 #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
760 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
761 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
762 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
763 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
764 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
765 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
766 #ifdef EGL_EGLEXT_PROTOTYPES
767 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
768 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
769 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
770 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
771 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
772 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
774 #endif /* KHRONOS_SUPPORT_INT64 */
775 #endif /* EGL_NV_sync */
777 #ifndef EGL_NV_system_time
778 #define EGL_NV_system_time 1
779 typedef khronos_utime_nanoseconds_t EGLuint64NV;
780 #ifdef KHRONOS_SUPPORT_INT64
781 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
782 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
783 #ifdef EGL_EGLEXT_PROTOTYPES
784 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
785 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
787 #endif /* KHRONOS_SUPPORT_INT64 */
788 #endif /* EGL_NV_system_time */
790 #ifndef EGL_TIZEN_image_native_buffer
791 #define EGL_TIZEN_image_native_buffer 1
792 #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
793 #endif /* EGL_TIZEN_image_native_buffer */
795 #ifndef EGL_TIZEN_image_native_surface
796 #define EGL_TIZEN_image_native_surface 1
797 #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
798 #endif /* EGL_TIZEN_image_native_surface */
800 /******************************************************************************/
801 /* 20140709-sw815.ha: SEC proprietary specs */
802 #ifndef EGL_SEC_client_pixmap
803 #define EGL_SEC_client_pixmap 1
804 #define EGL_CLINET_MEM_PIXMAP_SEC 0x3200 /* eglCreateClientPixmapFromClientBufferSEC buftype */
805 #define EGL_CLIENT_PIXMAP_SEC 0x3210 /* eglCreateImageKHR target */
806 #define EGL_CLIENT_PIXMAP_HEIGHT_SEC 0x3211 /* eglCreateImageKHR attribute */
807 #define EGL_CLIENT_PIXMAP_WIDTH_SEC 0x3212 /* eglCreateImageKHR attribute */
809 #ifdef EGL_EGLEXT_PROTOTYPES
810 EGLAPI EGLSurface eglCreateClientPixmapFromClientBufferSEC (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
811 #endif /* EGL_EGLEXT_PROTOTYPES */
812 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATECLIENTPIXMAPFROMCLIENTBUFFERSECPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
815 #ifndef EGL_SEC_image_map
816 #define EGL_SEC_image_map 1
817 #define EGL_MAP_GL_TEXTURE_2D_SEC 0x3201 /* eglCreateImageKHR target */
818 #define EGL_MAP_GL_TEXTURE_HEIGHT_SEC 0x3202 /* eglCreateImageKHR attribute */
819 #define EGL_MAP_GL_TEXTURE_WIDTH_SEC 0x3203 /* eglCreateImageKHR attribute */
820 #define EGL_MAP_GL_TEXTURE_FORMAT_SEC 0x3204 /* eglCreateImageKHR attribute, Specifies the number of color components in the mapped texture. */
821 #define EGL_MAP_GL_TEXTURE_RGB_SEC 0x3205 /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
822 #define EGL_MAP_GL_TEXTURE_RGBA_SEC 0x3206 /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
823 #define EGL_MAP_GL_TEXTURE_BGRA_SEC 0x3207 /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
824 #define EGL_MAP_GL_TEXTURE_LUMINANCE_SEC 0x3208 /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
825 #define EGL_MAP_GL_TEXTURE_LUMINANCE_ALPHA_SEC 0x3209 /* More config attribute value, for EGL_MAP_GL_TEXTURE_FORMAT_SEC */
826 #define EGL_MAP_GL_TEXTURE_PIXEL_TYPE_SEC 0x320a /* eglCreateImageKHR attribute, Specifies the data type of the pixel data. */
827 #define EGL_MAP_GL_TEXTURE_UNSIGNED_BYTE_SEC 0x320b /* More config attribute value, for EGL_MAP_GL_TEXTURE_PIXEL_TYPE_SEC */
828 #define EGL_MAP_GL_TEXTURE_STRIDE_IN_BYTES_SEC 0x320c /* GetImageAttribSEC target */
829 #ifdef EGL_EGLEXT_PROTOTYPES
830 EGLAPI void * EGLAPIENTRY eglMapImageSEC (EGLDisplay dpy, EGLImageKHR image);
831 EGLAPI EGLBoolean EGLAPIENTRY eglUnmapImageSEC (EGLDisplay dpy, EGLImageKHR image);
832 EGLAPI EGLBoolean EGLAPIENTRY eglGetImageAttribSEC (EGLDisplay dpy, EGLImageKHR image, EGLint attribute, EGLint *value);
833 #endif /* EGL_EGLEXT_PROTOTYPES */
834 #endif /* EGL_SEC_image_map */
836 #ifndef EGL_ANDROID_PIXMAP_image
837 #define EGL_ANDROID_PIXMAP_image 1
838 #define EGL_IMAGE_ANDROID_PIXMAP_IMAGE_KHR 0x3301 /* eglCreateImageKHR attribute */
839 #endif /*EGL_ANDROID_PIXMAP_image */
841 #ifndef EGL_EXT_native_surface_tizen
842 #define EGL_EXT_native_surface_tizen 1
843 #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
846 /******************************************************************************/