Debian Codegraph @

include/SDL2/SDL_egl.h

raw symbols SCIP
1 /*
2 Simple DirectMedia Layer
3 Copyright (C) 1997-2026 Sam Lantinga <[email protected]>
4
5 This software is provided 'as-is', without any express or implied
6 warranty. In no event will the authors be held liable for any damages
7 arising from the use of this software.
8
9 Permission is granted to anyone to use this software for any purpose,
10 including commercial applications, and to alter it and redistribute it
11 freely, subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not
14 claim that you wrote the original software. If you use this software
15 in a product, an acknowledgment in the product documentation would be
16 appreciated but is not required.
17 2. Altered source versions must be plainly marked as such, and must not be
18 misrepresented as being the original software.
19 3. This notice may not be removed or altered from any source distribution.
20 */
21
22 /*
23 * This is a simple file to encapsulate the EGL API headers.
24 */
25
26 #if !defined(_MSC_VER) && !defined(__ANDROID__) && !defined(SDL_USE_BUILTIN_OPENGL_DEFINITIONS)
27
28 #if defined(__vita__) || defined(__psp2__)
29 #include <psp2/types.h>
30 #endif
31
32 #include <EGL/egl.h>
33 #include <EGL/eglext.h>
34
35 #else /* _MSC_VER */
36
37 /* EGL headers for Visual Studio */
38
39 #ifndef __khrplatform_h_
40 #define __khrplatform_h_
41
42 /*
43 ** Copyright (c) 2008-2018 The Khronos Group Inc.
44 **
45 ** Permission is hereby granted, free of charge, to any person obtaining a
46 ** copy of this software and/or associated documentation files (the
47 ** "Materials"), to deal in the Materials without restriction, including
48 ** without limitation the rights to use, copy, modify, merge, publish,
49 ** distribute, sublicense, and/or sell copies of the Materials, and to
50 ** permit persons to whom the Materials are furnished to do so, subject to
51 ** the following conditions:
52 **
53 ** The above copyright notice and this permission notice shall be included
54 ** in all copies or substantial portions of the Materials.
55 **
56 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
57 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
58 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
59 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
60 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
61 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
62 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
63 */
64
65 /* Khronos platform-specific types and definitions.
66 *
67 * The master copy of khrplatform.h is maintained in the Khronos EGL
68 * Registry repository at https://github.com/KhronosGroup/EGL-Registry
69 * The last semantic modification to khrplatform.h was at commit ID:
70 * 67a3e0864c2d75ea5287b9f3d2eb74a745936692
71 *
72 * Adopters may modify this file to suit their platform. Adopters are
73 * encouraged to submit platform specific modifications to the Khronos
74 * group so that they can be included in future versions of this file.
75 * Please submit changes by filing pull requests or issues on
76 * the EGL Registry repository linked above.
77 *
78 *
79 * See the Implementer's Guidelines for information about where this file
80 * should be located on your system and for more details of its use:
81 * http://www.khronos.org/registry/implementers_guide.pdf
82 *
83 * This file should be included as
84 * #include <KHR/khrplatform.h>
85 * by Khronos client API header files that use its types and defines.
86 *
87 * The types in khrplatform.h should only be used to define API-specific types.
88 *
89 * Types defined in khrplatform.h:
90 * khronos_int8_t signed 8 bit
91 * khronos_uint8_t unsigned 8 bit
92 * khronos_int16_t signed 16 bit
93 * khronos_uint16_t unsigned 16 bit
94 * khronos_int32_t signed 32 bit
95 * khronos_uint32_t unsigned 32 bit
96 * khronos_int64_t signed 64 bit
97 * khronos_uint64_t unsigned 64 bit
98 * khronos_intptr_t signed same number of bits as a pointer
99 * khronos_uintptr_t unsigned same number of bits as a pointer
100 * khronos_ssize_t signed size
101 * khronos_usize_t unsigned size
102 * khronos_float_t signed 32 bit floating point
103 * khronos_time_ns_t unsigned 64 bit time in nanoseconds
104 * khronos_utime_nanoseconds_t unsigned time interval or absolute time in
105 * nanoseconds
106 * khronos_stime_nanoseconds_t signed time interval in nanoseconds
107 * khronos_boolean_enum_t enumerated boolean type. This should
108 * only be used as a base type when a client API's boolean type is
109 * an enum. Client APIs which use an integer or other type for
110 * booleans cannot use this as the base type for their boolean.
111 *
112 * Tokens defined in khrplatform.h:
113 *
114 * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
115 *
116 * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
117 * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
118 *
119 * Calling convention macros defined in this file:
120 * KHRONOS_APICALL
121 * KHRONOS_APIENTRY
122 * KHRONOS_APIATTRIBUTES
123 *
124 * These may be used in function prototypes as:
125 *
126 * KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
127 * int arg1,
128 * int arg2) KHRONOS_APIATTRIBUTES;
129 */
130
131 #if defined(__SCITECH_SNAP__) && !defined(KHRONOS_STATIC)
132 # define KHRONOS_STATIC 1
133 #endif
134
135 /*-------------------------------------------------------------------------
136 * Definition of KHRONOS_APICALL
137 *-------------------------------------------------------------------------
138 * This precedes the return type of the function in the function prototype.
139 */
140 #if defined(KHRONOS_STATIC)
141 /* If the preprocessor constant KHRONOS_STATIC is defined, make the
142 * header compatible with static linking. */
143 # define KHRONOS_APICALL
144 #elif defined(_WIN32)
145 # define KHRONOS_APICALL __declspec(dllimport)
146 #elif defined (__SYMBIAN32__)
147 # define KHRONOS_APICALL IMPORT_C
148 #elif defined(__ANDROID__)
149 # define KHRONOS_APICALL __attribute__((visibility("default")))
150 #else
151 # define KHRONOS_APICALL
152 #endif
153
154 /*-------------------------------------------------------------------------
155 * Definition of KHRONOS_APIENTRY
156 *-------------------------------------------------------------------------
157 * This follows the return type of the function and precedes the function
158 * name in the function prototype.
159 */
160 #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
161 /* Win32 but not WinCE */
162 # define KHRONOS_APIENTRY __stdcall
163 #else
164 # define KHRONOS_APIENTRY
165 #endif
166
167 /*-------------------------------------------------------------------------
168 * Definition of KHRONOS_APIATTRIBUTES
169 *-------------------------------------------------------------------------
170 * This follows the closing parenthesis of the function prototype arguments.
171 */
172 #if defined (__ARMCC_2__)
173 #define KHRONOS_APIATTRIBUTES __softfp
174 #else
175 #define KHRONOS_APIATTRIBUTES
176 #endif
177
178 /*-------------------------------------------------------------------------
179 * basic type definitions
180 *-----------------------------------------------------------------------*/
181 #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
182
183
184 /*
185 * Using <stdint.h>
186 */
187 #include <stdint.h>
188 typedef int32_t khronos_int32_t;
189 typedef uint32_t khronos_uint32_t;
190 typedef int64_t khronos_int64_t;
191 typedef uint64_t khronos_uint64_t;
192 #define KHRONOS_SUPPORT_INT64 1
193 #define KHRONOS_SUPPORT_FLOAT 1
194 /*
195 * To support platform where unsigned long cannot be used interchangeably with
196 * inptr_t (e.g. CHERI-extended ISAs), we can use the stdint.h intptr_t.
197 * Ideally, we could just use (u)intptr_t everywhere, but this could result in
198 * ABI breakage if khronos_uintptr_t is changed from unsigned long to
199 * unsigned long long or similar (this results in different C++ name mangling).
200 * To avoid changes for existing platforms, we restrict usage of intptr_t to
201 * platforms where the size of a pointer is larger than the size of long.
202 */
203 #if defined(__SIZEOF_LONG__) && defined(__SIZEOF_POINTER__)
204 #if __SIZEOF_POINTER__ > __SIZEOF_LONG__
205 #define KHRONOS_USE_INTPTR_T
206 #endif
207 #endif
208
209 #elif defined(__VMS ) || defined(__sgi)
210
211 /*
212 * Using <inttypes.h>
213 */
214 #include <inttypes.h>
215 typedef int32_t khronos_int32_t;
216 typedef uint32_t khronos_uint32_t;
217 typedef int64_t khronos_int64_t;
218 typedef uint64_t khronos_uint64_t;
219 #define KHRONOS_SUPPORT_INT64 1
220 #define KHRONOS_SUPPORT_FLOAT 1
221
222 #elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
223
224 /*
225 * Win32
226 */
227 typedef __int32 khronos_int32_t;
228 typedef unsigned __int32 khronos_uint32_t;
229 typedef __int64 khronos_int64_t;
230 typedef unsigned __int64 khronos_uint64_t;
231 #define KHRONOS_SUPPORT_INT64 1
232 #define KHRONOS_SUPPORT_FLOAT 1
233
234 #elif defined(__sun__) || defined(__digital__)
235
236 /*
237 * Sun or Digital
238 */
239 typedef int khronos_int32_t;
240 typedef unsigned int khronos_uint32_t;
241 #if defined(__arch64__) || defined(_LP64)
242 typedef long int khronos_int64_t;
243 typedef unsigned long int khronos_uint64_t;
244 #else
245 typedef long long int khronos_int64_t;
246 typedef unsigned long long int khronos_uint64_t;
247 #endif /* __arch64__ */
248 #define KHRONOS_SUPPORT_INT64 1
249 #define KHRONOS_SUPPORT_FLOAT 1
250
251 #elif 0
252
253 /*
254 * Hypothetical platform with no float or int64 support
255 */
256 typedef int khronos_int32_t;
257 typedef unsigned int khronos_uint32_t;
258 #define KHRONOS_SUPPORT_INT64 0
259 #define KHRONOS_SUPPORT_FLOAT 0
260
261 #else
262
263 /*
264 * Generic fallback
265 */
266 #include <stdint.h>
267 typedef int32_t khronos_int32_t;
268 typedef uint32_t khronos_uint32_t;
269 typedef int64_t khronos_int64_t;
270 typedef uint64_t khronos_uint64_t;
271 #define KHRONOS_SUPPORT_INT64 1
272 #define KHRONOS_SUPPORT_FLOAT 1
273
274 #endif
275
276
277 /*
278 * Types that are (so far) the same on all platforms
279 */
280 typedef signed char khronos_int8_t;
281 typedef unsigned char khronos_uint8_t;
282 typedef signed short int khronos_int16_t;
283 typedef unsigned short int khronos_uint16_t;
284
285 /*
286 * Types that differ between LLP64 and LP64 architectures - in LLP64,
287 * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
288 * to be the only LLP64 architecture in current use.
289 */
290 #ifdef KHRONOS_USE_INTPTR_T
291 typedef intptr_t khronos_intptr_t;
292 typedef uintptr_t khronos_uintptr_t;
293 #elif defined(_WIN64)
294 typedef signed long long int khronos_intptr_t;
295 typedef unsigned long long int khronos_uintptr_t;
296 #else
297 typedef signed long int khronos_intptr_t;
298 typedef unsigned long int khronos_uintptr_t;
299 #endif
300
301 #if defined(_WIN64)
302 typedef signed long long int khronos_ssize_t;
303 typedef unsigned long long int khronos_usize_t;
304 #else
305 typedef signed long int khronos_ssize_t;
306 typedef unsigned long int khronos_usize_t;
307 #endif
308
309 #if KHRONOS_SUPPORT_FLOAT
310 /*
311 * Float type
312 */
313 typedef float khronos_float_t;
314 #endif
315
316 #if KHRONOS_SUPPORT_INT64
317 /* Time types
318 *
319 * These types can be used to represent a time interval in nanoseconds or
320 * an absolute Unadjusted System Time. Unadjusted System Time is the number
321 * of nanoseconds since some arbitrary system event (e.g. since the last
322 * time the system booted). The Unadjusted System Time is an unsigned
323 * 64 bit value that wraps back to 0 every 584 years. Time intervals
324 * may be either signed or unsigned.
325 */
326 typedef khronos_uint64_t khronos_utime_nanoseconds_t;
327 typedef khronos_int64_t khronos_stime_nanoseconds_t;
328 #endif
329
330 /*
331 * Dummy value used to pad enum types to 32 bits.
332 */
333 #ifndef KHRONOS_MAX_ENUM
334 #define KHRONOS_MAX_ENUM 0x7FFFFFFF
335 #endif
336
337 /*
338 * Enumerated boolean type
339 *
340 * Values other than zero should be considered to be true. Therefore
341 * comparisons should not be made against KHRONOS_TRUE.
342 */
343 typedef enum {
344 KHRONOS_FALSE = 0,
345 KHRONOS_TRUE = 1,
346 KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
347 } khronos_boolean_enum_t;
348
349 #endif /* __khrplatform_h_ */
350
351
352 #ifndef __eglplatform_h_
353 #define __eglplatform_h_
354
355 /*
356 ** Copyright 2007-2020 The Khronos Group Inc.
357 ** SPDX-License-Identifier: Apache-2.0
358 */
359
360 /* Platform-specific types and definitions for egl.h
361 *
362 * Adopters may modify khrplatform.h and this file to suit their platform.
363 * You are encouraged to submit all modifications to the Khronos group so that
364 * they can be included in future versions of this file. Please submit changes
365 * by filing an issue or pull request on the public Khronos EGL Registry, at
366 * https://www.github.com/KhronosGroup/EGL-Registry/
367 */
368
369 /*#include <KHR/khrplatform.h>*/
370
371 /* Macros used in EGL function prototype declarations.
372 *
373 * EGL functions should be prototyped as:
374 *
375 * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
376 * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
377 *
378 * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
379 */
380
381 #ifndef EGLAPI
382 #define EGLAPI KHRONOS_APICALL
383 #endif
384
385 #ifndef EGLAPIENTRY
386 #define EGLAPIENTRY KHRONOS_APIENTRY
387 #endif
388 #define EGLAPIENTRYP EGLAPIENTRY*
389
390 /* The types NativeDisplayType, NativeWindowType, and NativePixmapType
391 * are aliases of window-system-dependent types, such as X Display * or
392 * Windows Device Context. They must be defined in platform-specific
393 * code below. The EGL-prefixed versions of Native*Type are the same
394 * types, renamed in EGL 1.3 so all types in the API start with "EGL".
395 *
396 * Khronos STRONGLY RECOMMENDS that you use the default definitions
397 * provided below, since these changes affect both binary and source
398 * portability of applications using EGL running on different EGL
399 * implementations.
400 */
401
402 #if defined(EGL_NO_PLATFORM_SPECIFIC_TYPES)
403
404 typedef void *EGLNativeDisplayType;
405 typedef void *EGLNativePixmapType;
406 typedef void *EGLNativeWindowType;
407
408 #elif defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
409 #ifndef WIN32_LEAN_AND_MEAN
410 #define WIN32_LEAN_AND_MEAN 1
411 #endif
412 #include <windows.h>
413
414 typedef HDC EGLNativeDisplayType;
415 typedef HBITMAP EGLNativePixmapType;
416 typedef HWND EGLNativeWindowType;
417
418 #elif defined(__EMSCRIPTEN__)
419
420 typedef int EGLNativeDisplayType;
421 typedef int EGLNativePixmapType;
422 typedef int EGLNativeWindowType;
423
424 #elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
425
426 typedef int EGLNativeDisplayType;
427 typedef void *EGLNativePixmapType;
428 typedef void *EGLNativeWindowType;
429
430 #elif defined(WL_EGL_PLATFORM)
431
432 typedef struct wl_display *EGLNativeDisplayType;
433 typedef struct wl_egl_pixmap *EGLNativePixmapType;
434 typedef struct wl_egl_window *EGLNativeWindowType;
435
436 #elif defined(__GBM__)
437
438 typedef struct gbm_device *EGLNativeDisplayType;
439 typedef struct gbm_bo *EGLNativePixmapType;
440 typedef void *EGLNativeWindowType;
441
442 #elif defined(__ANDROID__) || defined(ANDROID)
443
444 struct ANativeWindow;
445 struct egl_native_pixmap_t;
446
447 typedef void* EGLNativeDisplayType;
448 typedef struct egl_native_pixmap_t* EGLNativePixmapType;
449 typedef struct ANativeWindow* EGLNativeWindowType;
450
451 #elif defined(USE_OZONE)
452
453 typedef intptr_t EGLNativeDisplayType;
454 typedef intptr_t EGLNativePixmapType;
455 typedef intptr_t EGLNativeWindowType;
456
457 #elif defined(USE_X11)
458
459 /* X11 (tentative) */
460 #include <X11/Xlib.h>
461 #include <X11/Xutil.h>
462
463 typedef Display *EGLNativeDisplayType;
464 typedef Pixmap EGLNativePixmapType;
465 typedef Window EGLNativeWindowType;
466
467 #elif defined(__unix__)
468
469 typedef void *EGLNativeDisplayType;
470 typedef khronos_uintptr_t EGLNativePixmapType;
471 typedef khronos_uintptr_t EGLNativeWindowType;
472
473 #elif defined(__APPLE__)
474
475 typedef int EGLNativeDisplayType;
476 typedef void *EGLNativePixmapType;
477 typedef void *EGLNativeWindowType;
478
479 #elif defined(__HAIKU__)
480
481 #include <kernel/image.h>
482
483 typedef void *EGLNativeDisplayType;
484 typedef khronos_uintptr_t EGLNativePixmapType;
485 typedef khronos_uintptr_t EGLNativeWindowType;
486
487 #elif defined(__Fuchsia__)
488
489 typedef void *EGLNativeDisplayType;
490 typedef khronos_uintptr_t EGLNativePixmapType;
491 typedef khronos_uintptr_t EGLNativeWindowType;
492
493 #else
494 #error "Platform not recognized"
495 #endif
496
497 /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
498 typedef EGLNativeDisplayType NativeDisplayType;
499 typedef EGLNativePixmapType NativePixmapType;
500 typedef EGLNativeWindowType NativeWindowType;
501
502
503 /* Define EGLint. This must be a signed integral type large enough to contain
504 * all legal attribute names and values passed into and out of EGL, whether
505 * their type is boolean, bitmask, enumerant (symbolic constant), integer,
506 * handle, or other. While in general a 32-bit integer will suffice, if
507 * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
508 * integer type.
509 */
510 typedef khronos_int32_t EGLint;
511
512
513 /* C++ / C typecast macros for special EGL handle values */
514 #if defined(__cplusplus)
515 #define EGL_CAST(type, value) (static_cast<type>(value))
516 #else
517 #define EGL_CAST(type, value) ((type) (value))
518 #endif
519
520 #endif /* __eglplatform_h */
521
522
523 #ifndef __egl_h_
524 #define __egl_h_ 1
525
526 #ifdef __cplusplus
527 extern "C" {
528 #endif
529
530 /*
531 ** Copyright 2013-2020 The Khronos Group Inc.
532 ** SPDX-License-Identifier: Apache-2.0
533 **
534 ** This header is generated from the Khronos EGL XML API Registry.
535 ** The current version of the Registry, generator scripts
536 ** used to make the header, and the header can be found at
537 ** http://www.khronos.org/registry/egl
538 **
539 ** Khronos $Git commit SHA1: 6fb1daea15 $ on $Git commit date: 2022-05-25 09:41:13 -0600 $
540 */
541
542 /*#include <EGL/eglplatform.h>*/
543
544 #ifndef EGL_EGL_PROTOTYPES
545 #define EGL_EGL_PROTOTYPES 1
546 #endif
547
548 /* Generated on date 20220525 */
549
550 /* Generated C header for:
551 * API: egl
552 * Versions considered: .*
553 * Versions emitted: .*
554 * Default extensions included: None
555 * Additional extensions included: _nomatch_^
556 * Extensions removed: _nomatch_^
557 */
558
559 #ifndef EGL_VERSION_1_0
560 #define EGL_VERSION_1_0 1
561 typedef unsigned int EGLBoolean;
562 typedef void *EGLDisplay;
563 /*#include <KHR/khrplatform.h>*/
564 /*#include <EGL/eglplatform.h>*/
565 typedef void *EGLConfig;
566 typedef void *EGLSurface;
567 typedef void *EGLContext;
568 typedef void (*__eglMustCastToProperFunctionPointerType)(void);
569 #define EGL_ALPHA_SIZE 0x3021
570 #define EGL_BAD_ACCESS 0x3002
571 #define EGL_BAD_ALLOC 0x3003
572 #define EGL_BAD_ATTRIBUTE 0x3004
573 #define EGL_BAD_CONFIG 0x3005
574 #define EGL_BAD_CONTEXT 0x3006
575 #define EGL_BAD_CURRENT_SURFACE 0x3007
576 #define EGL_BAD_DISPLAY 0x3008
577 #define EGL_BAD_MATCH 0x3009
578 #define EGL_BAD_NATIVE_PIXMAP 0x300A
579 #define EGL_BAD_NATIVE_WINDOW 0x300B
580 #define EGL_BAD_PARAMETER 0x300C
581 #define EGL_BAD_SURFACE 0x300D
582 #define EGL_BLUE_SIZE 0x3022
583 #define EGL_BUFFER_SIZE 0x3020
584 #define EGL_CONFIG_CAVEAT 0x3027
585 #define EGL_CONFIG_ID 0x3028
586 #define EGL_CORE_NATIVE_ENGINE 0x305B
587 #define EGL_DEPTH_SIZE 0x3025
588 #define EGL_DONT_CARE EGL_CAST(EGLint,-1)
589 #define EGL_DRAW 0x3059
590 #define EGL_EXTENSIONS 0x3055
591 #define EGL_FALSE 0
592 #define EGL_GREEN_SIZE 0x3023
593 #define EGL_HEIGHT 0x3056
594 #define EGL_LARGEST_PBUFFER 0x3058
595 #define EGL_LEVEL 0x3029
596 #define EGL_MAX_PBUFFER_HEIGHT 0x302A
597 #define EGL_MAX_PBUFFER_PIXELS 0x302B
598 #define EGL_MAX_PBUFFER_WIDTH 0x302C
599 #define EGL_NATIVE_RENDERABLE 0x302D
600 #define EGL_NATIVE_VISUAL_ID 0x302E
601 #define EGL_NATIVE_VISUAL_TYPE 0x302F
602 #define EGL_NONE 0x3038
603 #define EGL_NON_CONFORMANT_CONFIG 0x3051
604 #define EGL_NOT_INITIALIZED 0x3001
605 #define EGL_NO_CONTEXT EGL_CAST(EGLContext,0)
606 #define EGL_NO_DISPLAY EGL_CAST(EGLDisplay,0)
607 #define EGL_NO_SURFACE EGL_CAST(EGLSurface,0)
608 #define EGL_PBUFFER_BIT 0x0001
609 #define EGL_PIXMAP_BIT 0x0002
610 #define EGL_READ 0x305A
611 #define EGL_RED_SIZE 0x3024
612 #define EGL_SAMPLES 0x3031
613 #define EGL_SAMPLE_BUFFERS 0x3032
614 #define EGL_SLOW_CONFIG 0x3050
615 #define EGL_STENCIL_SIZE 0x3026
616 #define EGL_SUCCESS 0x3000
617 #define EGL_SURFACE_TYPE 0x3033
618 #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
619 #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
620 #define EGL_TRANSPARENT_RED_VALUE 0x3037
621 #define EGL_TRANSPARENT_RGB 0x3052
622 #define EGL_TRANSPARENT_TYPE 0x3034
623 #define EGL_TRUE 1
624 #define EGL_VENDOR 0x3053
625 #define EGL_VERSION 0x3054
626 #define EGL_WIDTH 0x3057
627 #define EGL_WINDOW_BIT 0x0004
628 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCHOOSECONFIGPROC) (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
629 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOPYBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
630 typedef EGLContext (EGLAPIENTRYP PFNEGLCREATECONTEXTPROC) (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
631 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERSURFACEPROC) (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
632 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
633 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
634 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx);
635 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface);
636 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCONFIGATTRIBPROC) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
637 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCONFIGSPROC) (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
638 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETCURRENTDISPLAYPROC) (void);
639 typedef EGLSurface (EGLAPIENTRYP PFNEGLGETCURRENTSURFACEPROC) (EGLint readdraw);
640 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETDISPLAYPROC) (EGLNativeDisplayType display_id);
641 typedef EGLint (EGLAPIENTRYP PFNEGLGETERRORPROC) (void);
642 typedef __eglMustCastToProperFunctionPointerType (EGLAPIENTRYP PFNEGLGETPROCADDRESSPROC) (const char *procname);
643 typedef EGLBoolean (EGLAPIENTRYP PFNEGLINITIALIZEPROC) (EGLDisplay dpy, EGLint *major, EGLint *minor);
644 typedef EGLBoolean (EGLAPIENTRYP PFNEGLMAKECURRENTPROC) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
645 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
646 typedef const char *(EGLAPIENTRYP PFNEGLQUERYSTRINGPROC) (EGLDisplay dpy, EGLint name);
647 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
648 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface);
649 typedef EGLBoolean (EGLAPIENTRYP PFNEGLTERMINATEPROC) (EGLDisplay dpy);
650 typedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITGLPROC) (void);
651 typedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITNATIVEPROC) (EGLint engine);
652 #if EGL_EGL_PROTOTYPES
653 EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
654 EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
655 EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
656 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
657 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
658 EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
659 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
660 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
661 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
662 EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
663 EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
664 EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
665 EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
666 EGLAPI EGLint EGLAPIENTRY eglGetError (void);
667 EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
668 EGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
669 EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
670 EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
671 EGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
672 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
673 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
674 EGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
675 EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
676 EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
677 #endif
678 #endif /* EGL_VERSION_1_0 */
679
680 #ifndef EGL_VERSION_1_1
681 #define EGL_VERSION_1_1 1
682 #define EGL_BACK_BUFFER 0x3084
683 #define EGL_BIND_TO_TEXTURE_RGB 0x3039
684 #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
685 #define EGL_CONTEXT_LOST 0x300E
686 #define EGL_MIN_SWAP_INTERVAL 0x303B
687 #define EGL_MAX_SWAP_INTERVAL 0x303C
688 #define EGL_MIPMAP_TEXTURE 0x3082
689 #define EGL_MIPMAP_LEVEL 0x3083
690 #define EGL_NO_TEXTURE 0x305C
691 #define EGL_TEXTURE_2D 0x305F
692 #define EGL_TEXTURE_FORMAT 0x3080
693 #define EGL_TEXTURE_RGB 0x305D
694 #define EGL_TEXTURE_RGBA 0x305E
695 #define EGL_TEXTURE_TARGET 0x3081
696 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
697 typedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
698 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSURFACEATTRIBPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
699 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPINTERVALPROC) (EGLDisplay dpy, EGLint interval);
700 #if EGL_EGL_PROTOTYPES
701 EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
702 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
703 EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
704 EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
705 #endif
706 #endif /* EGL_VERSION_1_1 */
707
708 #ifndef EGL_VERSION_1_2
709 #define EGL_VERSION_1_2 1
710 typedef unsigned int EGLenum;
711 typedef void *EGLClientBuffer;
712 #define EGL_ALPHA_FORMAT 0x3088
713 #define EGL_ALPHA_FORMAT_NONPRE 0x308B
714 #define EGL_ALPHA_FORMAT_PRE 0x308C
715 #define EGL_ALPHA_MASK_SIZE 0x303E
716 #define EGL_BUFFER_PRESERVED 0x3094
717 #define EGL_BUFFER_DESTROYED 0x3095
718 #define EGL_CLIENT_APIS 0x308D
719 #define EGL_COLORSPACE 0x3087
720 #define EGL_COLORSPACE_sRGB 0x3089
721 #define EGL_COLORSPACE_LINEAR 0x308A
722 #define EGL_COLOR_BUFFER_TYPE 0x303F
723 #define EGL_CONTEXT_CLIENT_TYPE 0x3097
724 #define EGL_DISPLAY_SCALING 10000
725 #define EGL_HORIZONTAL_RESOLUTION 0x3090
726 #define EGL_LUMINANCE_BUFFER 0x308F
727 #define EGL_LUMINANCE_SIZE 0x303D
728 #define EGL_OPENGL_ES_BIT 0x0001
729 #define EGL_OPENVG_BIT 0x0002
730 #define EGL_OPENGL_ES_API 0x30A0
731 #define EGL_OPENVG_API 0x30A1
732 #define EGL_OPENVG_IMAGE 0x3096
733 #define EGL_PIXEL_ASPECT_RATIO 0x3092
734 #define EGL_RENDERABLE_TYPE 0x3040
735 #define EGL_RENDER_BUFFER 0x3086
736 #define EGL_RGB_BUFFER 0x308E
737 #define EGL_SINGLE_BUFFER 0x3085
738 #define EGL_SWAP_BEHAVIOR 0x3093
739 #define EGL_UNKNOWN EGL_CAST(EGLint,-1)
740 #define EGL_VERTICAL_RESOLUTION 0x3091
741 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDAPIPROC) (EGLenum api);
742 typedef EGLenum (EGLAPIENTRYP PFNEGLQUERYAPIPROC) (void);
743 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
744 typedef EGLBoolean (EGLAPIENTRYP PFNEGLRELEASETHREADPROC) (void);
745 typedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITCLIENTPROC) (void);
746 #if EGL_EGL_PROTOTYPES
747 EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
748 EGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
749 EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
750 EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
751 EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
752 #endif
753 #endif /* EGL_VERSION_1_2 */
754
755 #ifndef EGL_VERSION_1_3
756 #define EGL_VERSION_1_3 1
757 #define EGL_CONFORMANT 0x3042
758 #define EGL_CONTEXT_CLIENT_VERSION 0x3098
759 #define EGL_MATCH_NATIVE_PIXMAP 0x3041
760 #define EGL_OPENGL_ES2_BIT 0x0004
761 #define EGL_VG_ALPHA_FORMAT 0x3088
762 #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
763 #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
764 #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
765 #define EGL_VG_COLORSPACE 0x3087
766 #define EGL_VG_COLORSPACE_sRGB 0x3089
767 #define EGL_VG_COLORSPACE_LINEAR 0x308A
768 #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
769 #endif /* EGL_VERSION_1_3 */
770
771 #ifndef EGL_VERSION_1_4
772 #define EGL_VERSION_1_4 1
773 #define EGL_DEFAULT_DISPLAY EGL_CAST(EGLNativeDisplayType,0)
774 #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
775 #define EGL_MULTISAMPLE_RESOLVE 0x3099
776 #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
777 #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
778 #define EGL_OPENGL_API 0x30A2
779 #define EGL_OPENGL_BIT 0x0008
780 #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
781 typedef EGLContext (EGLAPIENTRYP PFNEGLGETCURRENTCONTEXTPROC) (void);
782 #if EGL_EGL_PROTOTYPES
783 EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
784 #endif
785 #endif /* EGL_VERSION_1_4 */
786
787 #ifndef EGL_VERSION_1_5
788 #define EGL_VERSION_1_5 1
789 typedef void *EGLSync;
790 typedef intptr_t EGLAttrib;
791 typedef khronos_utime_nanoseconds_t EGLTime;
792 typedef void *EGLImage;
793 #define EGL_CONTEXT_MAJOR_VERSION 0x3098
794 #define EGL_CONTEXT_MINOR_VERSION 0x30FB
795 #define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
796 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
797 #define EGL_NO_RESET_NOTIFICATION 0x31BE
798 #define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
799 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
800 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
801 #define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
802 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
803 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
804 #define EGL_OPENGL_ES3_BIT 0x00000040
805 #define EGL_CL_EVENT_HANDLE 0x309C
806 #define EGL_SYNC_CL_EVENT 0x30FE
807 #define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
808 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
809 #define EGL_SYNC_TYPE 0x30F7
810 #define EGL_SYNC_STATUS 0x30F1
811 #define EGL_SYNC_CONDITION 0x30F8
812 #define EGL_SIGNALED 0x30F2
813 #define EGL_UNSIGNALED 0x30F3
814 #define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
815 #define EGL_FOREVER 0xFFFFFFFFFFFFFFFFull
816 #define EGL_TIMEOUT_EXPIRED 0x30F5
817 #define EGL_CONDITION_SATISFIED 0x30F6
818 #define EGL_NO_SYNC EGL_CAST(EGLSync,0)
819 #define EGL_SYNC_FENCE 0x30F9
820 #define EGL_GL_COLORSPACE 0x309D
821 #define EGL_GL_COLORSPACE_SRGB 0x3089
822 #define EGL_GL_COLORSPACE_LINEAR 0x308A
823 #define EGL_GL_RENDERBUFFER 0x30B9
824 #define EGL_GL_TEXTURE_2D 0x30B1
825 #define EGL_GL_TEXTURE_LEVEL 0x30BC
826 #define EGL_GL_TEXTURE_3D 0x30B2
827 #define EGL_GL_TEXTURE_ZOFFSET 0x30BD
828 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
829 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
830 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
831 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
832 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
833 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
834 #define EGL_IMAGE_PRESERVED 0x30D2
835 #define EGL_NO_IMAGE EGL_CAST(EGLImage,0)
836 typedef EGLSync (EGLAPIENTRYP PFNEGLCREATESYNCPROC) (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
837 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCPROC) (EGLDisplay dpy, EGLSync sync);
838 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
839 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBPROC) (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
840 typedef EGLImage (EGLAPIENTRYP PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
841 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEPROC) (EGLDisplay dpy, EGLImage image);
842 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
843 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
844 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
845 typedef EGLBoolean (EGLAPIENTRYP PFNEGLWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags);
846 #if EGL_EGL_PROTOTYPES
847 EGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
848 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
849 EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
850 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
851 EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
852 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
853 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
854 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
855 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
856 EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
857 #endif
858 #endif /* EGL_VERSION_1_5 */
859
860 #ifdef __cplusplus
861 }
862 #endif
863
864 #endif /* __egl_h_ */
865
866
867 #ifndef __eglext_h_
868 #define __eglext_h_ 1
869
870 #ifdef __cplusplus
871 extern "C" {
872 #endif
873
874 /*
875 ** Copyright 2013-2020 The Khronos Group Inc.
876 ** SPDX-License-Identifier: Apache-2.0
877 **
878 ** This header is generated from the Khronos EGL XML API Registry.
879 ** The current version of the Registry, generator scripts
880 ** used to make the header, and the header can be found at
881 ** http://www.khronos.org/registry/egl
882 **
883 ** Khronos $Git commit SHA1: 6fb1daea15 $ on $Git commit date: 2022-05-25 09:41:13 -0600 $
884 */
885
886 /*#include <EGL/eglplatform.h>*/
887
888 #define EGL_EGLEXT_VERSION 20220525
889
890 /* Generated C header for:
891 * API: egl
892 * Versions considered: .*
893 * Versions emitted: _nomatch_^
894 * Default extensions included: egl
895 * Additional extensions included: _nomatch_^
896 * Extensions removed: _nomatch_^
897 */
898
899 #ifndef EGL_KHR_cl_event
900 #define EGL_KHR_cl_event 1
901 #define EGL_CL_EVENT_HANDLE_KHR 0x309C
902 #define EGL_SYNC_CL_EVENT_KHR 0x30FE
903 #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
904 #endif /* EGL_KHR_cl_event */
905
906 #ifndef EGL_KHR_cl_event2
907 #define EGL_KHR_cl_event2 1
908 typedef void *EGLSyncKHR;
909 typedef intptr_t EGLAttribKHR;
910 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
911 #ifdef EGL_EGLEXT_PROTOTYPES
912 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
913 #endif
914 #endif /* EGL_KHR_cl_event2 */
915
916 #ifndef EGL_KHR_client_get_all_proc_addresses
917 #define EGL_KHR_client_get_all_proc_addresses 1
918 #endif /* EGL_KHR_client_get_all_proc_addresses */
919
920 #ifndef EGL_KHR_config_attribs
921 #define EGL_KHR_config_attribs 1
922 #define EGL_CONFORMANT_KHR 0x3042
923 #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
924 #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
925 #endif /* EGL_KHR_config_attribs */
926
927 #ifndef EGL_KHR_context_flush_control
928 #define EGL_KHR_context_flush_control 1
929 #define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
930 #define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097
931 #define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
932 #endif /* EGL_KHR_context_flush_control */
933
934 #ifndef EGL_KHR_create_context
935 #define EGL_KHR_create_context 1
936 #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
937 #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
938 #define EGL_CONTEXT_FLAGS_KHR 0x30FC
939 #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
940 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
941 #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
942 #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
943 #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
944 #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
945 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
946 #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
947 #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
948 #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
949 #endif /* EGL_KHR_create_context */
950
951 #ifndef EGL_KHR_create_context_no_error
952 #define EGL_KHR_create_context_no_error 1
953 #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
954 #endif /* EGL_KHR_create_context_no_error */
955
956 #ifndef EGL_KHR_debug
957 #define EGL_KHR_debug 1
958 typedef void *EGLLabelKHR;
959 typedef void *EGLObjectKHR;
960 typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
961 #define EGL_OBJECT_THREAD_KHR 0x33B0
962 #define EGL_OBJECT_DISPLAY_KHR 0x33B1
963 #define EGL_OBJECT_CONTEXT_KHR 0x33B2
964 #define EGL_OBJECT_SURFACE_KHR 0x33B3
965 #define EGL_OBJECT_IMAGE_KHR 0x33B4
966 #define EGL_OBJECT_SYNC_KHR 0x33B5
967 #define EGL_OBJECT_STREAM_KHR 0x33B6
968 #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
969 #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
970 #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
971 #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
972 #define EGL_DEBUG_CALLBACK_KHR 0x33B8
973 typedef EGLint (EGLAPIENTRYP PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
974 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib *value);
975 typedef EGLint (EGLAPIENTRYP PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
976 #ifdef EGL_EGLEXT_PROTOTYPES
977 EGLAPI EGLint EGLAPIENTRY eglDebugMessageControlKHR (EGLDEBUGPROCKHR callback, const EGLAttrib *attrib_list);
978 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDebugKHR (EGLint attribute, EGLAttrib *value);
979 EGLAPI EGLint EGLAPIENTRY eglLabelObjectKHR (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
980 #endif
981 #endif /* EGL_KHR_debug */
982
983 #ifndef EGL_KHR_display_reference
984 #define EGL_KHR_display_reference 1
985 #define EGL_TRACK_REFERENCES_KHR 0x3352
986 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib *value);
987 #ifdef EGL_EGLEXT_PROTOTYPES
988 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribKHR (EGLDisplay dpy, EGLint name, EGLAttrib *value);
989 #endif
990 #endif /* EGL_KHR_display_reference */
991
992 #ifndef EGL_KHR_fence_sync
993 #define EGL_KHR_fence_sync 1
994 typedef khronos_utime_nanoseconds_t EGLTimeKHR;
995 #ifdef KHRONOS_SUPPORT_INT64
996 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
997 #define EGL_SYNC_CONDITION_KHR 0x30F8
998 #define EGL_SYNC_FENCE_KHR 0x30F9
999 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
1000 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
1001 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
1002 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
1003 #ifdef EGL_EGLEXT_PROTOTYPES
1004 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
1005 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
1006 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
1007 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
1008 #endif
1009 #endif /* KHRONOS_SUPPORT_INT64 */
1010 #endif /* EGL_KHR_fence_sync */
1011
1012 #ifndef EGL_KHR_get_all_proc_addresses
1013 #define EGL_KHR_get_all_proc_addresses 1
1014 #endif /* EGL_KHR_get_all_proc_addresses */
1015
1016 #ifndef EGL_KHR_gl_colorspace
1017 #define EGL_KHR_gl_colorspace 1
1018 #define EGL_GL_COLORSPACE_KHR 0x309D
1019 #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
1020 #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
1021 #endif /* EGL_KHR_gl_colorspace */
1022
1023 #ifndef EGL_KHR_gl_renderbuffer_image
1024 #define EGL_KHR_gl_renderbuffer_image 1
1025 #define EGL_GL_RENDERBUFFER_KHR 0x30B9
1026 #endif /* EGL_KHR_gl_renderbuffer_image */
1027
1028 #ifndef EGL_KHR_gl_texture_2D_image
1029 #define EGL_KHR_gl_texture_2D_image 1
1030 #define EGL_GL_TEXTURE_2D_KHR 0x30B1
1031 #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
1032 #endif /* EGL_KHR_gl_texture_2D_image */
1033
1034 #ifndef EGL_KHR_gl_texture_3D_image
1035 #define EGL_KHR_gl_texture_3D_image 1
1036 #define EGL_GL_TEXTURE_3D_KHR 0x30B2
1037 #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
1038 #endif /* EGL_KHR_gl_texture_3D_image */
1039
1040 #ifndef EGL_KHR_gl_texture_cubemap_image
1041 #define EGL_KHR_gl_texture_cubemap_image 1
1042 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
1043 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
1044 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
1045 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
1046 #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
1047 #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
1048 #endif /* EGL_KHR_gl_texture_cubemap_image */
1049
1050 #ifndef EGL_KHR_image
1051 #define EGL_KHR_image 1
1052 typedef void *EGLImageKHR;
1053 #define EGL_NATIVE_PIXMAP_KHR 0x30B0
1054 #define EGL_NO_IMAGE_KHR EGL_CAST(EGLImageKHR,0)
1055 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
1056 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
1057 #ifdef EGL_EGLEXT_PROTOTYPES
1058 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
1059 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
1060 #endif
1061 #endif /* EGL_KHR_image */
1062
1063 #ifndef EGL_KHR_image_base
1064 #define EGL_KHR_image_base 1
1065 #define EGL_IMAGE_PRESERVED_KHR 0x30D2
1066 #endif /* EGL_KHR_image_base */
1067
1068 #ifndef EGL_KHR_image_pixmap
1069 #define EGL_KHR_image_pixmap 1
1070 #endif /* EGL_KHR_image_pixmap */
1071
1072 #ifndef EGL_KHR_lock_surface
1073 #define EGL_KHR_lock_surface 1
1074 #define EGL_READ_SURFACE_BIT_KHR 0x0001
1075 #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
1076 #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
1077 #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
1078 #define EGL_MATCH_FORMAT_KHR 0x3043
1079 #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
1080 #define EGL_FORMAT_RGB_565_KHR 0x30C1
1081 #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
1082 #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
1083 #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
1084 #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
1085 #define EGL_BITMAP_POINTER_KHR 0x30C6
1086 #define EGL_BITMAP_PITCH_KHR 0x30C7
1087 #define EGL_BITMAP_ORIGIN_KHR 0x30C8
1088 #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
1089 #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
1090 #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
1091 #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
1092 #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
1093 #define EGL_LOWER_LEFT_KHR 0x30CE
1094 #define EGL_UPPER_LEFT_KHR 0x30CF
1095 typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
1096 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
1097 #ifdef EGL_EGLEXT_PROTOTYPES
1098 EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
1099 EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
1100 #endif
1101 #endif /* EGL_KHR_lock_surface */
1102
1103 #ifndef EGL_KHR_lock_surface2
1104 #define EGL_KHR_lock_surface2 1
1105 #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
1106 #endif /* EGL_KHR_lock_surface2 */
1107
1108 #ifndef EGL_KHR_lock_surface3
1109 #define EGL_KHR_lock_surface3 1
1110 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
1111 #ifdef EGL_EGLEXT_PROTOTYPES
1112 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
1113 #endif
1114 #endif /* EGL_KHR_lock_surface3 */
1115
1116 #ifndef EGL_KHR_mutable_render_buffer
1117 #define EGL_KHR_mutable_render_buffer 1
1118 #define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
1119 #endif /* EGL_KHR_mutable_render_buffer */
1120
1121 #ifndef EGL_KHR_no_config_context
1122 #define EGL_KHR_no_config_context 1
1123 #define EGL_NO_CONFIG_KHR EGL_CAST(EGLConfig,0)
1124 #endif /* EGL_KHR_no_config_context */
1125
1126 #ifndef EGL_KHR_partial_update
1127 #define EGL_KHR_partial_update 1
1128 #define EGL_BUFFER_AGE_KHR 0x313D
1129 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
1130 #ifdef EGL_EGLEXT_PROTOTYPES
1131 EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
1132 #endif
1133 #endif /* EGL_KHR_partial_update */
1134
1135 #ifndef EGL_KHR_platform_android
1136 #define EGL_KHR_platform_android 1
1137 #define EGL_PLATFORM_ANDROID_KHR 0x3141
1138 #endif /* EGL_KHR_platform_android */
1139
1140 #ifndef EGL_KHR_platform_gbm
1141 #define EGL_KHR_platform_gbm 1
1142 #define EGL_PLATFORM_GBM_KHR 0x31D7
1143 #endif /* EGL_KHR_platform_gbm */
1144
1145 #ifndef EGL_KHR_platform_wayland
1146 #define EGL_KHR_platform_wayland 1
1147 #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
1148 #endif /* EGL_KHR_platform_wayland */
1149
1150 #ifndef EGL_KHR_platform_x11
1151 #define EGL_KHR_platform_x11 1
1152 #define EGL_PLATFORM_X11_KHR 0x31D5
1153 #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
1154 #endif /* EGL_KHR_platform_x11 */
1155
1156 #ifndef EGL_KHR_reusable_sync
1157 #define EGL_KHR_reusable_sync 1
1158 #ifdef KHRONOS_SUPPORT_INT64
1159 #define EGL_SYNC_STATUS_KHR 0x30F1
1160 #define EGL_SIGNALED_KHR 0x30F2
1161 #define EGL_UNSIGNALED_KHR 0x30F3
1162 #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
1163 #define EGL_CONDITION_SATISFIED_KHR 0x30F6
1164 #define EGL_SYNC_TYPE_KHR 0x30F7
1165 #define EGL_SYNC_REUSABLE_KHR 0x30FA
1166 #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
1167 #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
1168 #define EGL_NO_SYNC_KHR EGL_CAST(EGLSyncKHR,0)
1169 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
1170 #ifdef EGL_EGLEXT_PROTOTYPES
1171 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
1172 #endif
1173 #endif /* KHRONOS_SUPPORT_INT64 */
1174 #endif /* EGL_KHR_reusable_sync */
1175
1176 #ifndef EGL_KHR_stream
1177 #define EGL_KHR_stream 1
1178 typedef void *EGLStreamKHR;
1179 typedef khronos_uint64_t EGLuint64KHR;
1180 #ifdef KHRONOS_SUPPORT_INT64
1181 #define EGL_NO_STREAM_KHR EGL_CAST(EGLStreamKHR,0)
1182 #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
1183 #define EGL_PRODUCER_FRAME_KHR 0x3212
1184 #define EGL_CONSUMER_FRAME_KHR 0x3213
1185 #define EGL_STREAM_STATE_KHR 0x3214
1186 #define EGL_STREAM_STATE_CREATED_KHR 0x3215
1187 #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
1188 #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
1189 #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
1190 #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
1191 #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
1192 #define EGL_BAD_STREAM_KHR 0x321B
1193 #define EGL_BAD_STATE_KHR 0x321C
1194 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
1195 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1196 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
1197 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
1198 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
1199 #ifdef EGL_EGLEXT_PROTOTYPES
1200 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
1201 EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
1202 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
1203 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
1204 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
1205 #endif
1206 #endif /* KHRONOS_SUPPORT_INT64 */
1207 #endif /* EGL_KHR_stream */
1208
1209 #ifndef EGL_KHR_stream_attrib
1210 #define EGL_KHR_stream_attrib 1
1211 #ifdef KHRONOS_SUPPORT_INT64
1212 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list);
1213 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
1214 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
1215 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
1216 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
1217 #ifdef EGL_EGLEXT_PROTOTYPES
1218 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamAttribKHR (EGLDisplay dpy, const EGLAttrib *attrib_list);
1219 EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
1220 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib *value);
1221 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
1222 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
1223 #endif
1224 #endif /* KHRONOS_SUPPORT_INT64 */
1225 #endif /* EGL_KHR_stream_attrib */
1226
1227 #ifndef EGL_KHR_stream_consumer_gltexture
1228 #define EGL_KHR_stream_consumer_gltexture 1
1229 #ifdef EGL_KHR_stream
1230 #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
1231 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1232 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1233 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1234 #ifdef EGL_EGLEXT_PROTOTYPES
1235 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
1236 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
1237 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
1238 #endif
1239 #endif /* EGL_KHR_stream */
1240 #endif /* EGL_KHR_stream_consumer_gltexture */
1241
1242 #ifndef EGL_KHR_stream_cross_process_fd
1243 #define EGL_KHR_stream_cross_process_fd 1
1244 typedef int EGLNativeFileDescriptorKHR;
1245 #ifdef EGL_KHR_stream
1246 #define EGL_NO_FILE_DESCRIPTOR_KHR EGL_CAST(EGLNativeFileDescriptorKHR,-1)
1247 typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
1248 typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
1249 #ifdef EGL_EGLEXT_PROTOTYPES
1250 EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
1251 EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
1252 #endif
1253 #endif /* EGL_KHR_stream */
1254 #endif /* EGL_KHR_stream_cross_process_fd */
1255
1256 #ifndef EGL_KHR_stream_fifo
1257 #define EGL_KHR_stream_fifo 1
1258 #ifdef EGL_KHR_stream
1259 #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
1260 #define EGL_STREAM_TIME_NOW_KHR 0x31FD
1261 #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
1262 #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
1263 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
1264 #ifdef EGL_EGLEXT_PROTOTYPES
1265 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
1266 #endif
1267 #endif /* EGL_KHR_stream */
1268 #endif /* EGL_KHR_stream_fifo */
1269
1270 #ifndef EGL_KHR_stream_producer_aldatalocator
1271 #define EGL_KHR_stream_producer_aldatalocator 1
1272 #ifdef EGL_KHR_stream
1273 #endif /* EGL_KHR_stream */
1274 #endif /* EGL_KHR_stream_producer_aldatalocator */
1275
1276 #ifndef EGL_KHR_stream_producer_eglsurface
1277 #define EGL_KHR_stream_producer_eglsurface 1
1278 #ifdef EGL_KHR_stream
1279 #define EGL_STREAM_BIT_KHR 0x0800
1280 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
1281 #ifdef EGL_EGLEXT_PROTOTYPES
1282 EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
1283 #endif
1284 #endif /* EGL_KHR_stream */
1285 #endif /* EGL_KHR_stream_producer_eglsurface */
1286
1287 #ifndef EGL_KHR_surfaceless_context
1288 #define EGL_KHR_surfaceless_context 1
1289 #endif /* EGL_KHR_surfaceless_context */
1290
1291 #ifndef EGL_KHR_swap_buffers_with_damage
1292 #define EGL_KHR_swap_buffers_with_damage 1
1293 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
1294 #ifdef EGL_EGLEXT_PROTOTYPES
1295 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
1296 #endif
1297 #endif /* EGL_KHR_swap_buffers_with_damage */
1298
1299 #ifndef EGL_KHR_vg_parent_image
1300 #define EGL_KHR_vg_parent_image 1
1301 #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
1302 #endif /* EGL_KHR_vg_parent_image */
1303
1304 #ifndef EGL_KHR_wait_sync
1305 #define EGL_KHR_wait_sync 1
1306 typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
1307 #ifdef EGL_EGLEXT_PROTOTYPES
1308 EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
1309 #endif
1310 #endif /* EGL_KHR_wait_sync */
1311
1312 #ifndef EGL_ANDROID_GLES_layers
1313 #define EGL_ANDROID_GLES_layers 1
1314 #endif /* EGL_ANDROID_GLES_layers */
1315
1316 #ifndef EGL_ANDROID_blob_cache
1317 #define EGL_ANDROID_blob_cache 1
1318 typedef khronos_ssize_t EGLsizeiANDROID;
1319 typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
1320 typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
1321 typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
1322 #ifdef EGL_EGLEXT_PROTOTYPES
1323 EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
1324 #endif
1325 #endif /* EGL_ANDROID_blob_cache */
1326
1327 #ifndef EGL_ANDROID_create_native_client_buffer
1328 #define EGL_ANDROID_create_native_client_buffer 1
1329 #define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
1330 #define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
1331 #define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
1332 #define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
1333 typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint *attrib_list);
1334 #ifdef EGL_EGLEXT_PROTOTYPES
1335 EGLAPI EGLClientBuffer EGLAPIENTRY eglCreateNativeClientBufferANDROID (const EGLint *attrib_list);
1336 #endif
1337 #endif /* EGL_ANDROID_create_native_client_buffer */
1338
1339 #ifndef EGL_ANDROID_framebuffer_target
1340 #define EGL_ANDROID_framebuffer_target 1
1341 #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
1342 #endif /* EGL_ANDROID_framebuffer_target */
1343
1344 #ifndef EGL_ANDROID_front_buffer_auto_refresh
1345 #define EGL_ANDROID_front_buffer_auto_refresh 1
1346 #define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
1347 #endif /* EGL_ANDROID_front_buffer_auto_refresh */
1348
1349 #ifndef EGL_ANDROID_get_frame_timestamps
1350 #define EGL_ANDROID_get_frame_timestamps 1
1351 typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
1352 #define EGL_TIMESTAMP_PENDING_ANDROID EGL_CAST(EGLnsecsANDROID,-2)
1353 #define EGL_TIMESTAMP_INVALID_ANDROID EGL_CAST(EGLnsecsANDROID,-1)
1354 #define EGL_TIMESTAMPS_ANDROID 0x3430
1355 #define EGL_COMPOSITE_DEADLINE_ANDROID 0x3431
1356 #define EGL_COMPOSITE_INTERVAL_ANDROID 0x3432
1357 #define EGL_COMPOSITE_TO_PRESENT_LATENCY_ANDROID 0x3433
1358 #define EGL_REQUESTED_PRESENT_TIME_ANDROID 0x3434
1359 #define EGL_RENDERING_COMPLETE_TIME_ANDROID 0x3435
1360 #define EGL_COMPOSITION_LATCH_TIME_ANDROID 0x3436
1361 #define EGL_FIRST_COMPOSITION_START_TIME_ANDROID 0x3437
1362 #define EGL_LAST_COMPOSITION_START_TIME_ANDROID 0x3438
1363 #define EGL_FIRST_COMPOSITION_GPU_FINISHED_TIME_ANDROID 0x3439
1364 #define EGL_DISPLAY_PRESENT_TIME_ANDROID 0x343A
1365 #define EGL_DEQUEUE_READY_TIME_ANDROID 0x343B
1366 #define EGL_READS_DONE_TIME_ANDROID 0x343C
1367 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint name);
1368 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETCOMPOSITORTIMINGANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values);
1369 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETNEXTFRAMEIDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId);
1370 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint timestamp);
1371 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETFRAMETIMESTAMPSANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values);
1372 #ifdef EGL_EGLEXT_PROTOTYPES
1373 EGLAPI EGLBoolean EGLAPIENTRY eglGetCompositorTimingSupportedANDROID (EGLDisplay dpy, EGLSurface surface, EGLint name);
1374 EGLAPI EGLBoolean EGLAPIENTRY eglGetCompositorTimingANDROID (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint *names, EGLnsecsANDROID *values);
1375 EGLAPI EGLBoolean EGLAPIENTRY eglGetNextFrameIdANDROID (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR *frameId);
1376 EGLAPI EGLBoolean EGLAPIENTRY eglGetFrameTimestampSupportedANDROID (EGLDisplay dpy, EGLSurface surface, EGLint timestamp);
1377 EGLAPI EGLBoolean EGLAPIENTRY eglGetFrameTimestampsANDROID (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint *timestamps, EGLnsecsANDROID *values);
1378 #endif
1379 #endif /* EGL_ANDROID_get_frame_timestamps */
1380
1381 #ifndef EGL_ANDROID_get_native_client_buffer
1382 #define EGL_ANDROID_get_native_client_buffer 1
1383 struct AHardwareBuffer;
1384 typedef EGLClientBuffer (EGLAPIENTRYP PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC) (const struct AHardwareBuffer *buffer);
1385 #ifdef EGL_EGLEXT_PROTOTYPES
1386 EGLAPI EGLClientBuffer EGLAPIENTRY eglGetNativeClientBufferANDROID (const struct AHardwareBuffer *buffer);
1387 #endif
1388 #endif /* EGL_ANDROID_get_native_client_buffer */
1389
1390 #ifndef EGL_ANDROID_image_native_buffer
1391 #define EGL_ANDROID_image_native_buffer 1
1392 #define EGL_NATIVE_BUFFER_ANDROID 0x3140
1393 #endif /* EGL_ANDROID_image_native_buffer */
1394
1395 #ifndef EGL_ANDROID_native_fence_sync
1396 #define EGL_ANDROID_native_fence_sync 1
1397 #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
1398 #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
1399 #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
1400 #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
1401 typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
1402 #ifdef EGL_EGLEXT_PROTOTYPES
1403 EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
1404 #endif
1405 #endif /* EGL_ANDROID_native_fence_sync */
1406
1407 #ifndef EGL_ANDROID_presentation_time
1408 #define EGL_ANDROID_presentation_time 1
1409 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
1410 #ifdef EGL_EGLEXT_PROTOTYPES
1411 EGLAPI EGLBoolean EGLAPIENTRY eglPresentationTimeANDROID (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
1412 #endif
1413 #endif /* EGL_ANDROID_presentation_time */
1414
1415 #ifndef EGL_ANDROID_recordable
1416 #define EGL_ANDROID_recordable 1
1417 #define EGL_RECORDABLE_ANDROID 0x3142
1418 #endif /* EGL_ANDROID_recordable */
1419
1420 #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
1421 #define EGL_ANGLE_d3d_share_handle_client_buffer 1
1422 #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
1423 #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
1424
1425 #ifndef EGL_ANGLE_device_d3d
1426 #define EGL_ANGLE_device_d3d 1
1427 #define EGL_D3D9_DEVICE_ANGLE 0x33A0
1428 #define EGL_D3D11_DEVICE_ANGLE 0x33A1
1429 #endif /* EGL_ANGLE_device_d3d */
1430
1431 #ifndef EGL_ANGLE_query_surface_pointer
1432 #define EGL_ANGLE_query_surface_pointer 1
1433 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
1434 #ifdef EGL_EGLEXT_PROTOTYPES
1435 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
1436 #endif
1437 #endif /* EGL_ANGLE_query_surface_pointer */
1438
1439 #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
1440 #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
1441 #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
1442
1443 #ifndef EGL_ANGLE_sync_control_rate
1444 #define EGL_ANGLE_sync_control_rate 1
1445 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETMSCRATEANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
1446 #ifdef EGL_EGLEXT_PROTOTYPES
1447 EGLAPI EGLBoolean EGLAPIENTRY eglGetMscRateANGLE (EGLDisplay dpy, EGLSurface surface, EGLint *numerator, EGLint *denominator);
1448 #endif
1449 #endif /* EGL_ANGLE_sync_control_rate */
1450
1451 #ifndef EGL_ANGLE_window_fixed_size
1452 #define EGL_ANGLE_window_fixed_size 1
1453 #define EGL_FIXED_SIZE_ANGLE 0x3201
1454 #endif /* EGL_ANGLE_window_fixed_size */
1455
1456 #ifndef EGL_ARM_image_format
1457 #define EGL_ARM_image_format 1
1458 #define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287
1459 #define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288
1460 #endif /* EGL_ARM_image_format */
1461
1462 #ifndef EGL_ARM_implicit_external_sync
1463 #define EGL_ARM_implicit_external_sync 1
1464 #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
1465 #endif /* EGL_ARM_implicit_external_sync */
1466
1467 #ifndef EGL_ARM_pixmap_multisample_discard
1468 #define EGL_ARM_pixmap_multisample_discard 1
1469 #define EGL_DISCARD_SAMPLES_ARM 0x3286
1470 #endif /* EGL_ARM_pixmap_multisample_discard */
1471
1472 #ifndef EGL_EXT_bind_to_front
1473 #define EGL_EXT_bind_to_front 1
1474 #define EGL_FRONT_BUFFER_EXT 0x3464
1475 #endif /* EGL_EXT_bind_to_front */
1476
1477 #ifndef EGL_EXT_buffer_age
1478 #define EGL_EXT_buffer_age 1
1479 #define EGL_BUFFER_AGE_EXT 0x313D
1480 #endif /* EGL_EXT_buffer_age */
1481
1482 #ifndef EGL_EXT_client_extensions
1483 #define EGL_EXT_client_extensions 1
1484 #endif /* EGL_EXT_client_extensions */
1485
1486 #ifndef EGL_EXT_client_sync
1487 #define EGL_EXT_client_sync 1
1488 #define EGL_SYNC_CLIENT_EXT 0x3364
1489 #define EGL_SYNC_CLIENT_SIGNAL_EXT 0x3365
1490 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCLIENTSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
1491 #ifdef EGL_EGLEXT_PROTOTYPES
1492 EGLAPI EGLBoolean EGLAPIENTRY eglClientSignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
1493 #endif
1494 #endif /* EGL_EXT_client_sync */
1495
1496 #ifndef EGL_EXT_compositor
1497 #define EGL_EXT_compositor 1
1498 #define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
1499 #define EGL_EXTERNAL_REF_ID_EXT 0x3461
1500 #define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
1501 #define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
1502 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint *external_ref_ids, EGLint num_entries);
1503 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
1504 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
1505 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
1506 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id);
1507 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height);
1508 typedef EGLBoolean (EGLAPIENTRYP PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy);
1509 #ifdef EGL_EGLEXT_PROTOTYPES
1510 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextListEXT (const EGLint *external_ref_ids, EGLint num_entries);
1511 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetContextAttributesEXT (EGLint external_ref_id, const EGLint *context_attributes, EGLint num_entries);
1512 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowListEXT (EGLint external_ref_id, const EGLint *external_win_ids, EGLint num_entries);
1513 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetWindowAttributesEXT (EGLint external_win_id, const EGLint *window_attributes, EGLint num_entries);
1514 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorBindTexWindowEXT (EGLint external_win_id);
1515 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSetSizeEXT (EGLint external_win_id, EGLint width, EGLint height);
1516 EGLAPI EGLBoolean EGLAPIENTRY eglCompositorSwapPolicyEXT (EGLint external_win_id, EGLint policy);
1517 #endif
1518 #endif /* EGL_EXT_compositor */
1519
1520 #ifndef EGL_EXT_config_select_group
1521 #define EGL_EXT_config_select_group 1
1522 #define EGL_CONFIG_SELECT_GROUP_EXT 0x34C0
1523 #endif /* EGL_EXT_config_select_group */
1524
1525 #ifndef EGL_EXT_create_context_robustness
1526 #define EGL_EXT_create_context_robustness 1
1527 #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
1528 #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
1529 #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
1530 #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
1531 #endif /* EGL_EXT_create_context_robustness */
1532
1533 #ifndef EGL_EXT_device_base
1534 #define EGL_EXT_device_base 1
1535 typedef void *EGLDeviceEXT;
1536 #define EGL_NO_DEVICE_EXT EGL_CAST(EGLDeviceEXT,0)
1537 #define EGL_BAD_DEVICE_EXT 0x322B
1538 #define EGL_DEVICE_EXT 0x322C
1539 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
1540 typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
1541 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
1542 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
1543 #ifdef EGL_EGLEXT_PROTOTYPES
1544 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
1545 EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
1546 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
1547 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
1548 #endif
1549 #endif /* EGL_EXT_device_base */
1550
1551 #ifndef EGL_EXT_device_drm
1552 #define EGL_EXT_device_drm 1
1553 #define EGL_DRM_DEVICE_FILE_EXT 0x3233
1554 #define EGL_DRM_MASTER_FD_EXT 0x333C
1555 #endif /* EGL_EXT_device_drm */
1556
1557 #ifndef EGL_EXT_device_drm_render_node
1558 #define EGL_EXT_device_drm_render_node 1
1559 #define EGL_DRM_RENDER_NODE_FILE_EXT 0x3377
1560 #endif /* EGL_EXT_device_drm_render_node */
1561
1562 #ifndef EGL_EXT_device_enumeration
1563 #define EGL_EXT_device_enumeration 1
1564 #endif /* EGL_EXT_device_enumeration */
1565
1566 #ifndef EGL_EXT_device_openwf
1567 #define EGL_EXT_device_openwf 1
1568 #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
1569 #define EGL_OPENWF_DEVICE_EXT 0x333D
1570 #endif /* EGL_EXT_device_openwf */
1571
1572 #ifndef EGL_EXT_device_persistent_id
1573 #define EGL_EXT_device_persistent_id 1
1574 #define EGL_DEVICE_UUID_EXT 0x335C
1575 #define EGL_DRIVER_UUID_EXT 0x335D
1576 #define EGL_DRIVER_NAME_EXT 0x335E
1577 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEBINARYEXTPROC) (EGLDeviceEXT device, EGLint name, EGLint max_size, void *value, EGLint *size);
1578 #ifdef EGL_EGLEXT_PROTOTYPES
1579 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceBinaryEXT (EGLDeviceEXT device, EGLint name, EGLint max_size, void *value, EGLint *size);
1580 #endif
1581 #endif /* EGL_EXT_device_persistent_id */
1582
1583 #ifndef EGL_EXT_device_query
1584 #define EGL_EXT_device_query 1
1585 #endif /* EGL_EXT_device_query */
1586
1587 #ifndef EGL_EXT_device_query_name
1588 #define EGL_EXT_device_query_name 1
1589 #define EGL_RENDERER_EXT 0x335F
1590 #endif /* EGL_EXT_device_query_name */
1591
1592 #ifndef EGL_EXT_explicit_device
1593 #define EGL_EXT_explicit_device 1
1594 #endif /* EGL_EXT_explicit_device */
1595
1596 #ifndef EGL_EXT_gl_colorspace_bt2020_linear
1597 #define EGL_EXT_gl_colorspace_bt2020_linear 1
1598 #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
1599 #endif /* EGL_EXT_gl_colorspace_bt2020_linear */
1600
1601 #ifndef EGL_EXT_gl_colorspace_bt2020_pq
1602 #define EGL_EXT_gl_colorspace_bt2020_pq 1
1603 #define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
1604 #endif /* EGL_EXT_gl_colorspace_bt2020_pq */
1605
1606 #ifndef EGL_EXT_gl_colorspace_display_p3
1607 #define EGL_EXT_gl_colorspace_display_p3 1
1608 #define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363
1609 #endif /* EGL_EXT_gl_colorspace_display_p3 */
1610
1611 #ifndef EGL_EXT_gl_colorspace_display_p3_linear
1612 #define EGL_EXT_gl_colorspace_display_p3_linear 1
1613 #define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362
1614 #endif /* EGL_EXT_gl_colorspace_display_p3_linear */
1615
1616 #ifndef EGL_EXT_gl_colorspace_display_p3_passthrough
1617 #define EGL_EXT_gl_colorspace_display_p3_passthrough 1
1618 #define EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT 0x3490
1619 #endif /* EGL_EXT_gl_colorspace_display_p3_passthrough */
1620
1621 #ifndef EGL_EXT_gl_colorspace_scrgb
1622 #define EGL_EXT_gl_colorspace_scrgb 1
1623 #define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351
1624 #endif /* EGL_EXT_gl_colorspace_scrgb */
1625
1626 #ifndef EGL_EXT_gl_colorspace_scrgb_linear
1627 #define EGL_EXT_gl_colorspace_scrgb_linear 1
1628 #define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
1629 #endif /* EGL_EXT_gl_colorspace_scrgb_linear */
1630
1631 #ifndef EGL_EXT_image_dma_buf_import
1632 #define EGL_EXT_image_dma_buf_import 1
1633 #define EGL_LINUX_DMA_BUF_EXT 0x3270
1634 #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
1635 #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
1636 #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
1637 #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
1638 #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
1639 #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
1640 #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
1641 #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
1642 #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
1643 #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
1644 #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
1645 #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
1646 #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
1647 #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
1648 #define EGL_ITU_REC601_EXT 0x327F
1649 #define EGL_ITU_REC709_EXT 0x3280
1650 #define EGL_ITU_REC2020_EXT 0x3281
1651 #define EGL_YUV_FULL_RANGE_EXT 0x3282
1652 #define EGL_YUV_NARROW_RANGE_EXT 0x3283
1653 #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
1654 #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
1655 #endif /* EGL_EXT_image_dma_buf_import */
1656
1657 #ifndef EGL_EXT_image_dma_buf_import_modifiers
1658 #define EGL_EXT_image_dma_buf_import_modifiers 1
1659 #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
1660 #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
1661 #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
1662 #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
1663 #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
1664 #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
1665 #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
1666 #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
1667 #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
1668 #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
1669 #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
1670 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
1671 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
1672 #ifdef EGL_EGLEXT_PROTOTYPES
1673 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufFormatsEXT (EGLDisplay dpy, EGLint max_formats, EGLint *formats, EGLint *num_formats);
1674 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDmaBufModifiersEXT (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR *modifiers, EGLBoolean *external_only, EGLint *num_modifiers);
1675 #endif
1676 #endif /* EGL_EXT_image_dma_buf_import_modifiers */
1677
1678 #ifndef EGL_EXT_image_gl_colorspace
1679 #define EGL_EXT_image_gl_colorspace 1
1680 #define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D
1681 #endif /* EGL_EXT_image_gl_colorspace */
1682
1683 #ifndef EGL_EXT_image_implicit_sync_control
1684 #define EGL_EXT_image_implicit_sync_control 1
1685 #define EGL_IMPORT_SYNC_TYPE_EXT 0x3470
1686 #define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471
1687 #define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472
1688 #endif /* EGL_EXT_image_implicit_sync_control */
1689
1690 #ifndef EGL_EXT_multiview_window
1691 #define EGL_EXT_multiview_window 1
1692 #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
1693 #endif /* EGL_EXT_multiview_window */
1694
1695 #ifndef EGL_EXT_output_base
1696 #define EGL_EXT_output_base 1
1697 typedef void *EGLOutputLayerEXT;
1698 typedef void *EGLOutputPortEXT;
1699 #define EGL_NO_OUTPUT_LAYER_EXT EGL_CAST(EGLOutputLayerEXT,0)
1700 #define EGL_NO_OUTPUT_PORT_EXT EGL_CAST(EGLOutputPortEXT,0)
1701 #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
1702 #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
1703 #define EGL_SWAP_INTERVAL_EXT 0x322F
1704 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
1705 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
1706 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
1707 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
1708 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
1709 typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
1710 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
1711 typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
1712 #ifdef EGL_EGLEXT_PROTOTYPES
1713 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
1714 EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
1715 EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
1716 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
1717 EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
1718 EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
1719 EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
1720 EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
1721 #endif
1722 #endif /* EGL_EXT_output_base */
1723
1724 #ifndef EGL_EXT_output_drm
1725 #define EGL_EXT_output_drm 1
1726 #define EGL_DRM_CRTC_EXT 0x3234
1727 #define EGL_DRM_PLANE_EXT 0x3235
1728 #define EGL_DRM_CONNECTOR_EXT 0x3236
1729 #endif /* EGL_EXT_output_drm */
1730
1731 #ifndef EGL_EXT_output_openwf
1732 #define EGL_EXT_output_openwf 1
1733 #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
1734 #define EGL_OPENWF_PORT_ID_EXT 0x3239
1735 #endif /* EGL_EXT_output_openwf */
1736
1737 #ifndef EGL_EXT_pixel_format_float
1738 #define EGL_EXT_pixel_format_float 1
1739 #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
1740 #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
1741 #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
1742 #endif /* EGL_EXT_pixel_format_float */
1743
1744 #ifndef EGL_EXT_platform_base
1745 #define EGL_EXT_platform_base 1
1746 typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
1747 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
1748 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
1749 #ifdef EGL_EGLEXT_PROTOTYPES
1750 EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
1751 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
1752 EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
1753 #endif
1754 #endif /* EGL_EXT_platform_base */
1755
1756 #ifndef EGL_EXT_platform_device
1757 #define EGL_EXT_platform_device 1
1758 #define EGL_PLATFORM_DEVICE_EXT 0x313F
1759 #endif /* EGL_EXT_platform_device */
1760
1761 #ifndef EGL_EXT_platform_wayland
1762 #define EGL_EXT_platform_wayland 1
1763 #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
1764 #endif /* EGL_EXT_platform_wayland */
1765
1766 #ifndef EGL_EXT_platform_x11
1767 #define EGL_EXT_platform_x11 1
1768 #define EGL_PLATFORM_X11_EXT 0x31D5
1769 #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
1770 #endif /* EGL_EXT_platform_x11 */
1771
1772 #ifndef EGL_EXT_platform_xcb
1773 #define EGL_EXT_platform_xcb 1
1774 #define EGL_PLATFORM_XCB_EXT 0x31DC
1775 #define EGL_PLATFORM_XCB_SCREEN_EXT 0x31DE
1776 #endif /* EGL_EXT_platform_xcb */
1777
1778 #ifndef EGL_EXT_present_opaque
1779 #define EGL_EXT_present_opaque 1
1780 #define EGL_PRESENT_OPAQUE_EXT 0x31DF
1781 #endif /* EGL_EXT_present_opaque */
1782
1783 #ifndef EGL_EXT_protected_content
1784 #define EGL_EXT_protected_content 1
1785 #define EGL_PROTECTED_CONTENT_EXT 0x32C0
1786 #endif /* EGL_EXT_protected_content */
1787
1788 #ifndef EGL_EXT_protected_surface
1789 #define EGL_EXT_protected_surface 1
1790 #endif /* EGL_EXT_protected_surface */
1791
1792 #ifndef EGL_EXT_stream_consumer_egloutput
1793 #define EGL_EXT_stream_consumer_egloutput 1
1794 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
1795 #ifdef EGL_EGLEXT_PROTOTYPES
1796 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
1797 #endif
1798 #endif /* EGL_EXT_stream_consumer_egloutput */
1799
1800 #ifndef EGL_EXT_surface_CTA861_3_metadata
1801 #define EGL_EXT_surface_CTA861_3_metadata 1
1802 #define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
1803 #define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
1804 #endif /* EGL_EXT_surface_CTA861_3_metadata */
1805
1806 #ifndef EGL_EXT_surface_SMPTE2086_metadata
1807 #define EGL_EXT_surface_SMPTE2086_metadata 1
1808 #define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
1809 #define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
1810 #define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
1811 #define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
1812 #define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
1813 #define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
1814 #define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
1815 #define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
1816 #define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
1817 #define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
1818 #define EGL_METADATA_SCALING_EXT 50000
1819 #endif /* EGL_EXT_surface_SMPTE2086_metadata */
1820
1821 #ifndef EGL_EXT_surface_compression
1822 #define EGL_EXT_surface_compression 1
1823 #define EGL_SURFACE_COMPRESSION_EXT 0x34B0
1824 #define EGL_SURFACE_COMPRESSION_PLANE1_EXT 0x328E
1825 #define EGL_SURFACE_COMPRESSION_PLANE2_EXT 0x328F
1826 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_NONE_EXT 0x34B1
1827 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_DEFAULT_EXT 0x34B2
1828 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_1BPC_EXT 0x34B4
1829 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_2BPC_EXT 0x34B5
1830 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_3BPC_EXT 0x34B6
1831 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_4BPC_EXT 0x34B7
1832 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_5BPC_EXT 0x34B8
1833 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_6BPC_EXT 0x34B9
1834 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_7BPC_EXT 0x34BA
1835 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_8BPC_EXT 0x34BB
1836 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_9BPC_EXT 0x34BC
1837 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_10BPC_EXT 0x34BD
1838 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_11BPC_EXT 0x34BE
1839 #define EGL_SURFACE_COMPRESSION_FIXED_RATE_12BPC_EXT 0x34BF
1840 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSUPPORTEDCOMPRESSIONRATESEXTPROC) (EGLDisplay dpy, EGLConfig config, const EGLAttrib *attrib_list, EGLint *rates, EGLint rate_size, EGLint *num_rates);
1841 #ifdef EGL_EGLEXT_PROTOTYPES
1842 EGLAPI EGLBoolean EGLAPIENTRY eglQuerySupportedCompressionRatesEXT (EGLDisplay dpy, EGLConfig config, const EGLAttrib *attrib_list, EGLint *rates, EGLint rate_size, EGLint *num_rates);
1843 #endif
1844 #endif /* EGL_EXT_surface_compression */
1845
1846 #ifndef EGL_EXT_swap_buffers_with_damage
1847 #define EGL_EXT_swap_buffers_with_damage 1
1848 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
1849 #ifdef EGL_EGLEXT_PROTOTYPES
1850 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, const EGLint *rects, EGLint n_rects);
1851 #endif
1852 #endif /* EGL_EXT_swap_buffers_with_damage */
1853
1854 #ifndef EGL_EXT_sync_reuse
1855 #define EGL_EXT_sync_reuse 1
1856 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
1857 #ifdef EGL_EGLEXT_PROTOTYPES
1858 EGLAPI EGLBoolean EGLAPIENTRY eglUnsignalSyncEXT (EGLDisplay dpy, EGLSync sync, const EGLAttrib *attrib_list);
1859 #endif
1860 #endif /* EGL_EXT_sync_reuse */
1861
1862 #ifndef EGL_EXT_yuv_surface
1863 #define EGL_EXT_yuv_surface 1
1864 #define EGL_YUV_ORDER_EXT 0x3301
1865 #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
1866 #define EGL_YUV_SUBSAMPLE_EXT 0x3312
1867 #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
1868 #define EGL_YUV_CSC_STANDARD_EXT 0x330A
1869 #define EGL_YUV_PLANE_BPP_EXT 0x331A
1870 #define EGL_YUV_BUFFER_EXT 0x3300
1871 #define EGL_YUV_ORDER_YUV_EXT 0x3302
1872 #define EGL_YUV_ORDER_YVU_EXT 0x3303
1873 #define EGL_YUV_ORDER_YUYV_EXT 0x3304
1874 #define EGL_YUV_ORDER_UYVY_EXT 0x3305
1875 #define EGL_YUV_ORDER_YVYU_EXT 0x3306
1876 #define EGL_YUV_ORDER_VYUY_EXT 0x3307
1877 #define EGL_YUV_ORDER_AYUV_EXT 0x3308
1878 #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
1879 #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
1880 #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
1881 #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
1882 #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
1883 #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
1884 #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
1885 #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
1886 #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
1887 #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
1888 #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
1889 #endif /* EGL_EXT_yuv_surface */
1890
1891 #ifndef EGL_HI_clientpixmap
1892 #define EGL_HI_clientpixmap 1
1893 struct EGLClientPixmapHI {
1894 void *pData;
1895 EGLint iWidth;
1896 EGLint iHeight;
1897 EGLint iStride;
1898 };
1899 #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
1900 typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
1901 #ifdef EGL_EGLEXT_PROTOTYPES
1902 EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
1903 #endif
1904 #endif /* EGL_HI_clientpixmap */
1905
1906 #ifndef EGL_HI_colorformats
1907 #define EGL_HI_colorformats 1
1908 #define EGL_COLOR_FORMAT_HI 0x8F70
1909 #define EGL_COLOR_RGB_HI 0x8F71
1910 #define EGL_COLOR_RGBA_HI 0x8F72
1911 #define EGL_COLOR_ARGB_HI 0x8F73
1912 #endif /* EGL_HI_colorformats */
1913
1914 #ifndef EGL_IMG_context_priority
1915 #define EGL_IMG_context_priority 1
1916 #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
1917 #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
1918 #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
1919 #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
1920 #endif /* EGL_IMG_context_priority */
1921
1922 #ifndef EGL_IMG_image_plane_attribs
1923 #define EGL_IMG_image_plane_attribs 1
1924 #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
1925 #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
1926 #endif /* EGL_IMG_image_plane_attribs */
1927
1928 #ifndef EGL_MESA_drm_image
1929 #define EGL_MESA_drm_image 1
1930 #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
1931 #define EGL_DRM_BUFFER_USE_MESA 0x31D1
1932 #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
1933 #define EGL_DRM_BUFFER_MESA 0x31D3
1934 #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
1935 #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
1936 #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
1937 #define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x00000004
1938 typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
1939 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
1940 #ifdef EGL_EGLEXT_PROTOTYPES
1941 EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
1942 EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
1943 #endif
1944 #endif /* EGL_MESA_drm_image */
1945
1946 #ifndef EGL_MESA_image_dma_buf_export
1947 #define EGL_MESA_image_dma_buf_export 1
1948 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
1949 typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
1950 #ifdef EGL_EGLEXT_PROTOTYPES
1951 EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
1952 EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
1953 #endif
1954 #endif /* EGL_MESA_image_dma_buf_export */
1955
1956 #ifndef EGL_MESA_platform_gbm
1957 #define EGL_MESA_platform_gbm 1
1958 #define EGL_PLATFORM_GBM_MESA 0x31D7
1959 #endif /* EGL_MESA_platform_gbm */
1960
1961 #ifndef EGL_MESA_platform_surfaceless
1962 #define EGL_MESA_platform_surfaceless 1
1963 #define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
1964 #endif /* EGL_MESA_platform_surfaceless */
1965
1966 #ifndef EGL_MESA_query_driver
1967 #define EGL_MESA_query_driver 1
1968 typedef char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERCONFIGPROC) (EGLDisplay dpy);
1969 typedef const char *(EGLAPIENTRYP PFNEGLGETDISPLAYDRIVERNAMEPROC) (EGLDisplay dpy);
1970 #ifdef EGL_EGLEXT_PROTOTYPES
1971 EGLAPI char *EGLAPIENTRY eglGetDisplayDriverConfig (EGLDisplay dpy);
1972 EGLAPI const char *EGLAPIENTRY eglGetDisplayDriverName (EGLDisplay dpy);
1973 #endif
1974 #endif /* EGL_MESA_query_driver */
1975
1976 #ifndef EGL_NOK_swap_region
1977 #define EGL_NOK_swap_region 1
1978 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1979 #ifdef EGL_EGLEXT_PROTOTYPES
1980 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1981 #endif
1982 #endif /* EGL_NOK_swap_region */
1983
1984 #ifndef EGL_NOK_swap_region2
1985 #define EGL_NOK_swap_region2 1
1986 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1987 #ifdef EGL_EGLEXT_PROTOTYPES
1988 EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
1989 #endif
1990 #endif /* EGL_NOK_swap_region2 */
1991
1992 #ifndef EGL_NOK_texture_from_pixmap
1993 #define EGL_NOK_texture_from_pixmap 1
1994 #define EGL_Y_INVERTED_NOK 0x307F
1995 #endif /* EGL_NOK_texture_from_pixmap */
1996
1997 #ifndef EGL_NV_3dvision_surface
1998 #define EGL_NV_3dvision_surface 1
1999 #define EGL_AUTO_STEREO_NV 0x3136
2000 #endif /* EGL_NV_3dvision_surface */
2001
2002 #ifndef EGL_NV_context_priority_realtime
2003 #define EGL_NV_context_priority_realtime 1
2004 #define EGL_CONTEXT_PRIORITY_REALTIME_NV 0x3357
2005 #endif /* EGL_NV_context_priority_realtime */
2006
2007 #ifndef EGL_NV_coverage_sample
2008 #define EGL_NV_coverage_sample 1
2009 #define EGL_COVERAGE_BUFFERS_NV 0x30E0
2010 #define EGL_COVERAGE_SAMPLES_NV 0x30E1
2011 #endif /* EGL_NV_coverage_sample */
2012
2013 #ifndef EGL_NV_coverage_sample_resolve
2014 #define EGL_NV_coverage_sample_resolve 1
2015 #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
2016 #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
2017 #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
2018 #endif /* EGL_NV_coverage_sample_resolve */
2019
2020 #ifndef EGL_NV_cuda_event
2021 #define EGL_NV_cuda_event 1
2022 #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
2023 #define EGL_SYNC_CUDA_EVENT_NV 0x323C
2024 #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
2025 #endif /* EGL_NV_cuda_event */
2026
2027 #ifndef EGL_NV_depth_nonlinear
2028 #define EGL_NV_depth_nonlinear 1
2029 #define EGL_DEPTH_ENCODING_NV 0x30E2
2030 #define EGL_DEPTH_ENCODING_NONE_NV 0
2031 #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
2032 #endif /* EGL_NV_depth_nonlinear */
2033
2034 #ifndef EGL_NV_device_cuda
2035 #define EGL_NV_device_cuda 1
2036 #define EGL_CUDA_DEVICE_NV 0x323A
2037 #endif /* EGL_NV_device_cuda */
2038
2039 #ifndef EGL_NV_native_query
2040 #define EGL_NV_native_query 1
2041 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
2042 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
2043 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
2044 #ifdef EGL_EGLEXT_PROTOTYPES
2045 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
2046 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
2047 EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
2048 #endif
2049 #endif /* EGL_NV_native_query */
2050
2051 #ifndef EGL_NV_post_convert_rounding
2052 #define EGL_NV_post_convert_rounding 1
2053 #endif /* EGL_NV_post_convert_rounding */
2054
2055 #ifndef EGL_NV_post_sub_buffer
2056 #define EGL_NV_post_sub_buffer 1
2057 #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
2058 typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
2059 #ifdef EGL_EGLEXT_PROTOTYPES
2060 EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
2061 #endif
2062 #endif /* EGL_NV_post_sub_buffer */
2063
2064 #ifndef EGL_NV_quadruple_buffer
2065 #define EGL_NV_quadruple_buffer 1
2066 #define EGL_QUADRUPLE_BUFFER_NV 0x3231
2067 #endif /* EGL_NV_quadruple_buffer */
2068
2069 #ifndef EGL_NV_robustness_video_memory_purge
2070 #define EGL_NV_robustness_video_memory_purge 1
2071 #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
2072 #endif /* EGL_NV_robustness_video_memory_purge */
2073
2074 #ifndef EGL_NV_stream_consumer_eglimage
2075 #define EGL_NV_stream_consumer_eglimage 1
2076 #define EGL_STREAM_CONSUMER_IMAGE_NV 0x3373
2077 #define EGL_STREAM_IMAGE_ADD_NV 0x3374
2078 #define EGL_STREAM_IMAGE_REMOVE_NV 0x3375
2079 #define EGL_STREAM_IMAGE_AVAILABLE_NV 0x3376
2080 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMIMAGECONSUMERCONNECTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, const EGLuint64KHR *modifiers, const EGLAttrib *attrib_list);
2081 typedef EGLint (EGLAPIENTRYP PFNEGLQUERYSTREAMCONSUMEREVENTNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
2082 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMACQUIREIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
2083 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMRELEASEIMAGENVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
2084 #ifdef EGL_EGLEXT_PROTOTYPES
2085 EGLAPI EGLBoolean EGLAPIENTRY eglStreamImageConsumerConnectNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint num_modifiers, const EGLuint64KHR *modifiers, const EGLAttrib *attrib_list);
2086 EGLAPI EGLint EGLAPIENTRY eglQueryStreamConsumerEventNV (EGLDisplay dpy, EGLStreamKHR stream, EGLTime timeout, EGLenum *event, EGLAttrib *aux);
2087 EGLAPI EGLBoolean EGLAPIENTRY eglStreamAcquireImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage *pImage, EGLSync sync);
2088 EGLAPI EGLBoolean EGLAPIENTRY eglStreamReleaseImageNV (EGLDisplay dpy, EGLStreamKHR stream, EGLImage image, EGLSync sync);
2089 #endif
2090 #endif /* EGL_NV_stream_consumer_eglimage */
2091
2092 #ifndef EGL_NV_stream_consumer_gltexture_yuv
2093 #define EGL_NV_stream_consumer_gltexture_yuv 1
2094 #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
2095 #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
2096 #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
2097 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
2098 #ifdef EGL_EGLEXT_PROTOTYPES
2099 EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalAttribsNV (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib *attrib_list);
2100 #endif
2101 #endif /* EGL_NV_stream_consumer_gltexture_yuv */
2102
2103 #ifndef EGL_NV_stream_cross_display
2104 #define EGL_NV_stream_cross_display 1
2105 #define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
2106 #endif /* EGL_NV_stream_cross_display */
2107
2108 #ifndef EGL_NV_stream_cross_object
2109 #define EGL_NV_stream_cross_object 1
2110 #define EGL_STREAM_CROSS_OBJECT_NV 0x334D
2111 #endif /* EGL_NV_stream_cross_object */
2112
2113 #ifndef EGL_NV_stream_cross_partition
2114 #define EGL_NV_stream_cross_partition 1
2115 #define EGL_STREAM_CROSS_PARTITION_NV 0x323F
2116 #endif /* EGL_NV_stream_cross_partition */
2117
2118 #ifndef EGL_NV_stream_cross_process
2119 #define EGL_NV_stream_cross_process 1
2120 #define EGL_STREAM_CROSS_PROCESS_NV 0x3245
2121 #endif /* EGL_NV_stream_cross_process */
2122
2123 #ifndef EGL_NV_stream_cross_system
2124 #define EGL_NV_stream_cross_system 1
2125 #define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
2126 #endif /* EGL_NV_stream_cross_system */
2127
2128 #ifndef EGL_NV_stream_dma
2129 #define EGL_NV_stream_dma 1
2130 #define EGL_STREAM_DMA_NV 0x3371
2131 #define EGL_STREAM_DMA_SERVER_NV 0x3372
2132 #endif /* EGL_NV_stream_dma */
2133
2134 #ifndef EGL_NV_stream_fifo_next
2135 #define EGL_NV_stream_fifo_next 1
2136 #define EGL_PENDING_FRAME_NV 0x3329
2137 #define EGL_STREAM_TIME_PENDING_NV 0x332A
2138 #endif /* EGL_NV_stream_fifo_next */
2139
2140 #ifndef EGL_NV_stream_fifo_synchronous
2141 #define EGL_NV_stream_fifo_synchronous 1
2142 #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
2143 #endif /* EGL_NV_stream_fifo_synchronous */
2144
2145 #ifndef EGL_NV_stream_flush
2146 #define EGL_NV_stream_flush 1
2147 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMFLUSHNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
2148 #ifdef EGL_EGLEXT_PROTOTYPES
2149 EGLAPI EGLBoolean EGLAPIENTRY eglStreamFlushNV (EGLDisplay dpy, EGLStreamKHR stream);
2150 #endif
2151 #endif /* EGL_NV_stream_flush */
2152
2153 #ifndef EGL_NV_stream_frame_limits
2154 #define EGL_NV_stream_frame_limits 1
2155 #define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
2156 #define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
2157 #endif /* EGL_NV_stream_frame_limits */
2158
2159 #ifndef EGL_NV_stream_metadata
2160 #define EGL_NV_stream_metadata 1
2161 #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
2162 #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
2163 #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
2164 #define EGL_PRODUCER_METADATA_NV 0x3253
2165 #define EGL_CONSUMER_METADATA_NV 0x3254
2166 #define EGL_PENDING_METADATA_NV 0x3328
2167 #define EGL_METADATA0_SIZE_NV 0x3255
2168 #define EGL_METADATA1_SIZE_NV 0x3256
2169 #define EGL_METADATA2_SIZE_NV 0x3257
2170 #define EGL_METADATA3_SIZE_NV 0x3258
2171 #define EGL_METADATA0_TYPE_NV 0x3259
2172 #define EGL_METADATA1_TYPE_NV 0x325A
2173 #define EGL_METADATA2_TYPE_NV 0x325B
2174 #define EGL_METADATA3_TYPE_NV 0x325C
2175 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
2176 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
2177 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
2178 #ifdef EGL_EGLEXT_PROTOTYPES
2179 EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribNV (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
2180 EGLAPI EGLBoolean EGLAPIENTRY eglSetStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void *data);
2181 EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamMetadataNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void *data);
2182 #endif
2183 #endif /* EGL_NV_stream_metadata */
2184
2185 #ifndef EGL_NV_stream_origin
2186 #define EGL_NV_stream_origin 1
2187 #define EGL_STREAM_FRAME_ORIGIN_X_NV 0x3366
2188 #define EGL_STREAM_FRAME_ORIGIN_Y_NV 0x3367
2189 #define EGL_STREAM_FRAME_MAJOR_AXIS_NV 0x3368
2190 #define EGL_CONSUMER_AUTO_ORIENTATION_NV 0x3369
2191 #define EGL_PRODUCER_AUTO_ORIENTATION_NV 0x336A
2192 #define EGL_LEFT_NV 0x336B
2193 #define EGL_RIGHT_NV 0x336C
2194 #define EGL_TOP_NV 0x336D
2195 #define EGL_BOTTOM_NV 0x336E
2196 #define EGL_X_AXIS_NV 0x336F
2197 #define EGL_Y_AXIS_NV 0x3370
2198 #endif /* EGL_NV_stream_origin */
2199
2200 #ifndef EGL_NV_stream_remote
2201 #define EGL_NV_stream_remote 1
2202 #define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
2203 #define EGL_STREAM_TYPE_NV 0x3241
2204 #define EGL_STREAM_PROTOCOL_NV 0x3242
2205 #define EGL_STREAM_ENDPOINT_NV 0x3243
2206 #define EGL_STREAM_LOCAL_NV 0x3244
2207 #define EGL_STREAM_PRODUCER_NV 0x3247
2208 #define EGL_STREAM_CONSUMER_NV 0x3248
2209 #define EGL_STREAM_PROTOCOL_FD_NV 0x3246
2210 #endif /* EGL_NV_stream_remote */
2211
2212 #ifndef EGL_NV_stream_reset
2213 #define EGL_NV_stream_reset 1
2214 #define EGL_SUPPORT_RESET_NV 0x3334
2215 #define EGL_SUPPORT_REUSE_NV 0x3335
2216 typedef EGLBoolean (EGLAPIENTRYP PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
2217 #ifdef EGL_EGLEXT_PROTOTYPES
2218 EGLAPI EGLBoolean EGLAPIENTRY eglResetStreamNV (EGLDisplay dpy, EGLStreamKHR stream);
2219 #endif
2220 #endif /* EGL_NV_stream_reset */
2221
2222 #ifndef EGL_NV_stream_socket
2223 #define EGL_NV_stream_socket 1
2224 #define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
2225 #define EGL_SOCKET_HANDLE_NV 0x324C
2226 #define EGL_SOCKET_TYPE_NV 0x324D
2227 #endif /* EGL_NV_stream_socket */
2228
2229 #ifndef EGL_NV_stream_socket_inet
2230 #define EGL_NV_stream_socket_inet 1
2231 #define EGL_SOCKET_TYPE_INET_NV 0x324F
2232 #endif /* EGL_NV_stream_socket_inet */
2233
2234 #ifndef EGL_NV_stream_socket_unix
2235 #define EGL_NV_stream_socket_unix 1
2236 #define EGL_SOCKET_TYPE_UNIX_NV 0x324E
2237 #endif /* EGL_NV_stream_socket_unix */
2238
2239 #ifndef EGL_NV_stream_sync
2240 #define EGL_NV_stream_sync 1
2241 #define EGL_SYNC_NEW_FRAME_NV 0x321F
2242 typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
2243 #ifdef EGL_EGLEXT_PROTOTYPES
2244 EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
2245 #endif
2246 #endif /* EGL_NV_stream_sync */
2247
2248 #ifndef EGL_NV_sync
2249 #define EGL_NV_sync 1
2250 typedef void *EGLSyncNV;
2251 typedef khronos_utime_nanoseconds_t EGLTimeNV;
2252 #ifdef KHRONOS_SUPPORT_INT64
2253 #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
2254 #define EGL_SYNC_STATUS_NV 0x30E7
2255 #define EGL_SIGNALED_NV 0x30E8
2256 #define EGL_UNSIGNALED_NV 0x30E9
2257 #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
2258 #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
2259 #define EGL_ALREADY_SIGNALED_NV 0x30EA
2260 #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
2261 #define EGL_CONDITION_SATISFIED_NV 0x30EC
2262 #define EGL_SYNC_TYPE_NV 0x30ED
2263 #define EGL_SYNC_CONDITION_NV 0x30EE
2264 #define EGL_SYNC_FENCE_NV 0x30EF
2265 #define EGL_NO_SYNC_NV EGL_CAST(EGLSyncNV,0)
2266 typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
2267 typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
2268 typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
2269 typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
2270 typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
2271 typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
2272 #ifdef EGL_EGLEXT_PROTOTYPES
2273 EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
2274 EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
2275 EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
2276 EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
2277 EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
2278 EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
2279 #endif
2280 #endif /* KHRONOS_SUPPORT_INT64 */
2281 #endif /* EGL_NV_sync */
2282
2283 #ifndef EGL_NV_system_time
2284 #define EGL_NV_system_time 1
2285 typedef khronos_utime_nanoseconds_t EGLuint64NV;
2286 #ifdef KHRONOS_SUPPORT_INT64
2287 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
2288 typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
2289 #ifdef EGL_EGLEXT_PROTOTYPES
2290 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
2291 EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
2292 #endif
2293 #endif /* KHRONOS_SUPPORT_INT64 */
2294 #endif /* EGL_NV_system_time */
2295
2296 #ifndef EGL_NV_triple_buffer
2297 #define EGL_NV_triple_buffer 1
2298 #define EGL_TRIPLE_BUFFER_NV 0x3230
2299 #endif /* EGL_NV_triple_buffer */
2300
2301 #ifndef EGL_TIZEN_image_native_buffer
2302 #define EGL_TIZEN_image_native_buffer 1
2303 #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
2304 #endif /* EGL_TIZEN_image_native_buffer */
2305
2306 #ifndef EGL_TIZEN_image_native_surface
2307 #define EGL_TIZEN_image_native_surface 1
2308 #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
2309 #endif /* EGL_TIZEN_image_native_surface */
2310
2311 #ifndef EGL_WL_bind_wayland_display
2312 #define EGL_WL_bind_wayland_display 1
2313 #define PFNEGLBINDWAYLANDDISPLAYWL PFNEGLBINDWAYLANDDISPLAYWLPROC
2314 #define PFNEGLUNBINDWAYLANDDISPLAYWL PFNEGLUNBINDWAYLANDDISPLAYWLPROC
2315 #define PFNEGLQUERYWAYLANDBUFFERWL PFNEGLQUERYWAYLANDBUFFERWLPROC
2316 struct wl_display;
2317 struct wl_resource;
2318 #define EGL_WAYLAND_BUFFER_WL 0x31D5
2319 #define EGL_WAYLAND_PLANE_WL 0x31D6
2320 #define EGL_TEXTURE_Y_U_V_WL 0x31D7
2321 #define EGL_TEXTURE_Y_UV_WL 0x31D8
2322 #define EGL_TEXTURE_Y_XUXV_WL 0x31D9
2323 #define EGL_TEXTURE_EXTERNAL_WL 0x31DA
2324 #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
2325 typedef EGLBoolean (EGLAPIENTRYP PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
2326 typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display *display);
2327 typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
2328 #ifdef EGL_EGLEXT_PROTOTYPES
2329 EGLAPI EGLBoolean EGLAPIENTRY eglBindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
2330 EGLAPI EGLBoolean EGLAPIENTRY eglUnbindWaylandDisplayWL (EGLDisplay dpy, struct wl_display *display);
2331 EGLAPI EGLBoolean EGLAPIENTRY eglQueryWaylandBufferWL (EGLDisplay dpy, struct wl_resource *buffer, EGLint attribute, EGLint *value);
2332 #endif
2333 #endif /* EGL_WL_bind_wayland_display */
2334
2335 #ifndef EGL_WL_create_wayland_buffer_from_image
2336 #define EGL_WL_create_wayland_buffer_from_image 1
2337 #define PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWL PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC
2338 struct wl_buffer;
2339 typedef struct wl_buffer *(EGLAPIENTRYP PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC) (EGLDisplay dpy, EGLImageKHR image);
2340 #ifdef EGL_EGLEXT_PROTOTYPES
2341 EGLAPI struct wl_buffer *EGLAPIENTRY eglCreateWaylandBufferFromImageWL (EGLDisplay dpy, EGLImageKHR image);
2342 #endif
2343 #endif /* EGL_WL_create_wayland_buffer_from_image */
2344
2345 #ifdef __cplusplus
2346 }
2347 #endif
2348
2349 #endif /* __eglext_h_ */
2350
2351 #endif /* _MSC_VER */