🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2302 lines
104 KiB

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