🛠️🐜 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.

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