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.
 
 
 
 
 
 

1674 regels
72 KiB

  1. /*
  2. Simple DirectMedia Layer
  3. Copyright (C) 1997-2018 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__)
  24. #include <EGL/egl.h>
  25. #include <EGL/eglext.h>
  26. #else /* _MSC_VER */
  27. /* EGL headers for Visual Studio */
  28. #ifndef __khrplatform_h_
  29. #define __khrplatform_h_
  30. /*
  31. ** Copyright (c) 2008-2009 The Khronos Group Inc.
  32. **
  33. ** Permission is hereby granted, free of charge, to any person obtaining a
  34. ** copy of this software and/or associated documentation files (the
  35. ** "Materials"), to deal in the Materials without restriction, including
  36. ** without limitation the rights to use, copy, modify, merge, publish,
  37. ** distribute, sublicense, and/or sell copies of the Materials, and to
  38. ** permit persons to whom the Materials are furnished to do so, subject to
  39. ** the following conditions:
  40. **
  41. ** The above copyright notice and this permission notice shall be included
  42. ** in all copies or substantial portions of the Materials.
  43. **
  44. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  45. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  46. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  47. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  48. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  49. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  50. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  51. */
  52. /* Khronos platform-specific types and definitions.
  53. *
  54. * $Revision: 23298 $ on $Date: 2013-09-30 17:07:13 -0700 (Mon, 30 Sep 2013) $
  55. *
  56. * Adopters may modify this file to suit their platform. Adopters are
  57. * encouraged to submit platform specific modifications to the Khronos
  58. * group so that they can be included in future versions of this file.
  59. * Please submit changes by sending them to the public Khronos Bugzilla
  60. * (http://khronos.org/bugzilla) by filing a bug against product
  61. * "Khronos (general)" component "Registry".
  62. *
  63. * A predefined template which fills in some of the bug fields can be
  64. * reached using http://tinyurl.com/khrplatform-h-bugreport, but you
  65. * must create a Bugzilla login first.
  66. *
  67. *
  68. * See the Implementer's Guidelines for information about where this file
  69. * should be located on your system and for more details of its use:
  70. * http://www.khronos.org/registry/implementers_guide.pdf
  71. *
  72. * This file should be included as
  73. * #include <KHR/khrplatform.h>
  74. * by Khronos client API header files that use its types and defines.
  75. *
  76. * The types in khrplatform.h should only be used to define API-specific types.
  77. *
  78. * Types defined in khrplatform.h:
  79. * khronos_int8_t signed 8 bit
  80. * khronos_uint8_t unsigned 8 bit
  81. * khronos_int16_t signed 16 bit
  82. * khronos_uint16_t unsigned 16 bit
  83. * khronos_int32_t signed 32 bit
  84. * khronos_uint32_t unsigned 32 bit
  85. * khronos_int64_t signed 64 bit
  86. * khronos_uint64_t unsigned 64 bit
  87. * khronos_intptr_t signed same number of bits as a pointer
  88. * khronos_uintptr_t unsigned same number of bits as a pointer
  89. * khronos_ssize_t signed size
  90. * khronos_usize_t unsigned size
  91. * khronos_float_t signed 32 bit floating point
  92. * khronos_time_ns_t unsigned 64 bit time in nanoseconds
  93. * khronos_utime_nanoseconds_t unsigned time interval or absolute time in
  94. * nanoseconds
  95. * khronos_stime_nanoseconds_t signed time interval in nanoseconds
  96. * khronos_boolean_enum_t enumerated boolean type. This should
  97. * only be used as a base type when a client API's boolean type is
  98. * an enum. Client APIs which use an integer or other type for
  99. * booleans cannot use this as the base type for their boolean.
  100. *
  101. * Tokens defined in khrplatform.h:
  102. *
  103. * KHRONOS_FALSE, KHRONOS_TRUE Enumerated boolean false/true values.
  104. *
  105. * KHRONOS_SUPPORT_INT64 is 1 if 64 bit integers are supported; otherwise 0.
  106. * KHRONOS_SUPPORT_FLOAT is 1 if floats are supported; otherwise 0.
  107. *
  108. * Calling convention macros defined in this file:
  109. * KHRONOS_APICALL
  110. * KHRONOS_APIENTRY
  111. * KHRONOS_APIATTRIBUTES
  112. *
  113. * These may be used in function prototypes as:
  114. *
  115. * KHRONOS_APICALL void KHRONOS_APIENTRY funcname(
  116. * int arg1,
  117. * int arg2) KHRONOS_APIATTRIBUTES;
  118. */
  119. /*-------------------------------------------------------------------------
  120. * Definition of KHRONOS_APICALL
  121. *-------------------------------------------------------------------------
  122. * This precedes the return type of the function in the function prototype.
  123. */
  124. #if defined(_WIN32) && !defined(__SCITECH_SNAP__) && !defined(SDL_VIDEO_STATIC_ANGLE)
  125. # define KHRONOS_APICALL __declspec(dllimport)
  126. #elif defined (__SYMBIAN32__)
  127. # define KHRONOS_APICALL IMPORT_C
  128. #else
  129. # define KHRONOS_APICALL
  130. #endif
  131. /*-------------------------------------------------------------------------
  132. * Definition of KHRONOS_APIENTRY
  133. *-------------------------------------------------------------------------
  134. * This follows the return type of the function and precedes the function
  135. * name in the function prototype.
  136. */
  137. #if defined(_WIN32) && !defined(_WIN32_WCE) && !defined(__SCITECH_SNAP__)
  138. /* Win32 but not WinCE */
  139. # define KHRONOS_APIENTRY __stdcall
  140. #else
  141. # define KHRONOS_APIENTRY
  142. #endif
  143. /*-------------------------------------------------------------------------
  144. * Definition of KHRONOS_APIATTRIBUTES
  145. *-------------------------------------------------------------------------
  146. * This follows the closing parenthesis of the function prototype arguments.
  147. */
  148. #if defined (__ARMCC_2__)
  149. #define KHRONOS_APIATTRIBUTES __softfp
  150. #else
  151. #define KHRONOS_APIATTRIBUTES
  152. #endif
  153. /*-------------------------------------------------------------------------
  154. * basic type definitions
  155. *-----------------------------------------------------------------------*/
  156. #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || defined(__GNUC__) || defined(__SCO__) || defined(__USLC__)
  157. /*
  158. * Using <stdint.h>
  159. */
  160. #include <stdint.h>
  161. typedef int32_t khronos_int32_t;
  162. typedef uint32_t khronos_uint32_t;
  163. typedef int64_t khronos_int64_t;
  164. typedef uint64_t khronos_uint64_t;
  165. #define KHRONOS_SUPPORT_INT64 1
  166. #define KHRONOS_SUPPORT_FLOAT 1
  167. #elif defined(__VMS ) || defined(__sgi)
  168. /*
  169. * Using <inttypes.h>
  170. */
  171. #include <inttypes.h>
  172. typedef int32_t khronos_int32_t;
  173. typedef uint32_t khronos_uint32_t;
  174. typedef int64_t khronos_int64_t;
  175. typedef uint64_t khronos_uint64_t;
  176. #define KHRONOS_SUPPORT_INT64 1
  177. #define KHRONOS_SUPPORT_FLOAT 1
  178. #elif defined(_WIN32) && !defined(__SCITECH_SNAP__)
  179. /*
  180. * Win32
  181. */
  182. typedef __int32 khronos_int32_t;
  183. typedef unsigned __int32 khronos_uint32_t;
  184. typedef __int64 khronos_int64_t;
  185. typedef unsigned __int64 khronos_uint64_t;
  186. #define KHRONOS_SUPPORT_INT64 1
  187. #define KHRONOS_SUPPORT_FLOAT 1
  188. #elif defined(__sun__) || defined(__digital__)
  189. /*
  190. * Sun or Digital
  191. */
  192. typedef int khronos_int32_t;
  193. typedef unsigned int khronos_uint32_t;
  194. #if defined(__arch64__) || defined(_LP64)
  195. typedef long int khronos_int64_t;
  196. typedef unsigned long int khronos_uint64_t;
  197. #else
  198. typedef long long int khronos_int64_t;
  199. typedef unsigned long long int khronos_uint64_t;
  200. #endif /* __arch64__ */
  201. #define KHRONOS_SUPPORT_INT64 1
  202. #define KHRONOS_SUPPORT_FLOAT 1
  203. #elif 0
  204. /*
  205. * Hypothetical platform with no float or int64 support
  206. */
  207. typedef int khronos_int32_t;
  208. typedef unsigned int khronos_uint32_t;
  209. #define KHRONOS_SUPPORT_INT64 0
  210. #define KHRONOS_SUPPORT_FLOAT 0
  211. #else
  212. /*
  213. * Generic fallback
  214. */
  215. #include <stdint.h>
  216. typedef int32_t khronos_int32_t;
  217. typedef uint32_t khronos_uint32_t;
  218. typedef int64_t khronos_int64_t;
  219. typedef uint64_t khronos_uint64_t;
  220. #define KHRONOS_SUPPORT_INT64 1
  221. #define KHRONOS_SUPPORT_FLOAT 1
  222. #endif
  223. /*
  224. * Types that are (so far) the same on all platforms
  225. */
  226. typedef signed char khronos_int8_t;
  227. typedef unsigned char khronos_uint8_t;
  228. typedef signed short int khronos_int16_t;
  229. typedef unsigned short int khronos_uint16_t;
  230. /*
  231. * Types that differ between LLP64 and LP64 architectures - in LLP64,
  232. * pointers are 64 bits, but 'long' is still 32 bits. Win64 appears
  233. * to be the only LLP64 architecture in current use.
  234. */
  235. #ifdef _WIN64
  236. typedef signed long long int khronos_intptr_t;
  237. typedef unsigned long long int khronos_uintptr_t;
  238. typedef signed long long int khronos_ssize_t;
  239. typedef unsigned long long int khronos_usize_t;
  240. #else
  241. typedef signed long int khronos_intptr_t;
  242. typedef unsigned long int khronos_uintptr_t;
  243. typedef signed long int khronos_ssize_t;
  244. typedef unsigned long int khronos_usize_t;
  245. #endif
  246. #if KHRONOS_SUPPORT_FLOAT
  247. /*
  248. * Float type
  249. */
  250. typedef float khronos_float_t;
  251. #endif
  252. #if KHRONOS_SUPPORT_INT64
  253. /* Time types
  254. *
  255. * These types can be used to represent a time interval in nanoseconds or
  256. * an absolute Unadjusted System Time. Unadjusted System Time is the number
  257. * of nanoseconds since some arbitrary system event (e.g. since the last
  258. * time the system booted). The Unadjusted System Time is an unsigned
  259. * 64 bit value that wraps back to 0 every 584 years. Time intervals
  260. * may be either signed or unsigned.
  261. */
  262. typedef khronos_uint64_t khronos_utime_nanoseconds_t;
  263. typedef khronos_int64_t khronos_stime_nanoseconds_t;
  264. #endif
  265. /*
  266. * Dummy value used to pad enum types to 32 bits.
  267. */
  268. #ifndef KHRONOS_MAX_ENUM
  269. #define KHRONOS_MAX_ENUM 0x7FFFFFFF
  270. #endif
  271. /*
  272. * Enumerated boolean type
  273. *
  274. * Values other than zero should be considered to be true. Therefore
  275. * comparisons should not be made against KHRONOS_TRUE.
  276. */
  277. typedef enum {
  278. KHRONOS_FALSE = 0,
  279. KHRONOS_TRUE = 1,
  280. KHRONOS_BOOLEAN_ENUM_FORCE_SIZE = KHRONOS_MAX_ENUM
  281. } khronos_boolean_enum_t;
  282. #endif /* __khrplatform_h_ */
  283. #ifndef __eglplatform_h_
  284. #define __eglplatform_h_
  285. /*
  286. ** Copyright (c) 2007-2009 The Khronos Group Inc.
  287. **
  288. ** Permission is hereby granted, free of charge, to any person obtaining a
  289. ** copy of this software and/or associated documentation files (the
  290. ** "Materials"), to deal in the Materials without restriction, including
  291. ** without limitation the rights to use, copy, modify, merge, publish,
  292. ** distribute, sublicense, and/or sell copies of the Materials, and to
  293. ** permit persons to whom the Materials are furnished to do so, subject to
  294. ** the following conditions:
  295. **
  296. ** The above copyright notice and this permission notice shall be included
  297. ** in all copies or substantial portions of the Materials.
  298. **
  299. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  300. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  301. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  302. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  303. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  304. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  305. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  306. */
  307. /* Platform-specific types and definitions for egl.h
  308. * $Revision: 12306 $ on $Date: 2010-08-25 09:51:28 -0700 (Wed, 25 Aug 2010) $
  309. *
  310. * Adopters may modify khrplatform.h and this file to suit their platform.
  311. * You are encouraged to submit all modifications to the Khronos group so that
  312. * they can be included in future versions of this file. Please submit changes
  313. * by sending them to the public Khronos Bugzilla (http://khronos.org/bugzilla)
  314. * by filing a bug against product "EGL" component "Registry".
  315. */
  316. /*#include <KHR/khrplatform.h>*/
  317. /* Macros used in EGL function prototype declarations.
  318. *
  319. * EGL functions should be prototyped as:
  320. *
  321. * EGLAPI return-type EGLAPIENTRY eglFunction(arguments);
  322. * typedef return-type (EXPAPIENTRYP PFNEGLFUNCTIONPROC) (arguments);
  323. *
  324. * KHRONOS_APICALL and KHRONOS_APIENTRY are defined in KHR/khrplatform.h
  325. */
  326. #ifndef EGLAPI
  327. #define EGLAPI KHRONOS_APICALL
  328. #endif
  329. #ifndef EGLAPIENTRY
  330. #define EGLAPIENTRY KHRONOS_APIENTRY
  331. #endif
  332. #define EGLAPIENTRYP EGLAPIENTRY*
  333. /* The types NativeDisplayType, NativeWindowType, and NativePixmapType
  334. * are aliases of window-system-dependent types, such as X Display * or
  335. * Windows Device Context. They must be defined in platform-specific
  336. * code below. The EGL-prefixed versions of Native*Type are the same
  337. * types, renamed in EGL 1.3 so all types in the API start with "EGL".
  338. *
  339. * Khronos STRONGLY RECOMMENDS that you use the default definitions
  340. * provided below, since these changes affect both binary and source
  341. * portability of applications using EGL running on different EGL
  342. * implementations.
  343. */
  344. #if defined(_WIN32) || defined(__VC32__) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) /* Win32 and WinCE */
  345. #ifndef WIN32_LEAN_AND_MEAN
  346. #define WIN32_LEAN_AND_MEAN 1
  347. #endif
  348. #include <windows.h>
  349. #if __WINRT__
  350. #include <Unknwn.h>
  351. typedef IUnknown * EGLNativeWindowType;
  352. typedef IUnknown * EGLNativePixmapType;
  353. typedef IUnknown * EGLNativeDisplayType;
  354. #else
  355. typedef HDC EGLNativeDisplayType;
  356. typedef HBITMAP EGLNativePixmapType;
  357. typedef HWND EGLNativeWindowType;
  358. #endif
  359. #elif defined(__WINSCW__) || defined(__SYMBIAN32__) /* Symbian */
  360. typedef int EGLNativeDisplayType;
  361. typedef void *EGLNativeWindowType;
  362. typedef void *EGLNativePixmapType;
  363. #elif defined(WL_EGL_PLATFORM)
  364. typedef struct wl_display *EGLNativeDisplayType;
  365. typedef struct wl_egl_pixmap *EGLNativePixmapType;
  366. typedef struct wl_egl_window *EGLNativeWindowType;
  367. #elif defined(__GBM__)
  368. typedef struct gbm_device *EGLNativeDisplayType;
  369. typedef struct gbm_bo *EGLNativePixmapType;
  370. typedef void *EGLNativeWindowType;
  371. #elif defined(__ANDROID__) /* Android */
  372. struct ANativeWindow;
  373. struct egl_native_pixmap_t;
  374. typedef struct ANativeWindow *EGLNativeWindowType;
  375. typedef struct egl_native_pixmap_t *EGLNativePixmapType;
  376. typedef void *EGLNativeDisplayType;
  377. #elif defined(MIR_EGL_PLATFORM)
  378. #include <mir_toolkit/mir_client_library.h>
  379. typedef MirEGLNativeDisplayType EGLNativeDisplayType;
  380. typedef void *EGLNativePixmapType;
  381. typedef MirEGLNativeWindowType EGLNativeWindowType;
  382. #elif defined(__unix__)
  383. #ifdef MESA_EGL_NO_X11_HEADERS
  384. typedef void *EGLNativeDisplayType;
  385. typedef khronos_uintptr_t EGLNativePixmapType;
  386. typedef khronos_uintptr_t EGLNativeWindowType;
  387. #else
  388. /* X11 (tentative) */
  389. #include <X11/Xlib.h>
  390. #include <X11/Xutil.h>
  391. typedef Display *EGLNativeDisplayType;
  392. typedef Pixmap EGLNativePixmapType;
  393. typedef Window EGLNativeWindowType;
  394. #endif /* MESA_EGL_NO_X11_HEADERS */
  395. #else
  396. #error "Platform not recognized"
  397. #endif
  398. /* EGL 1.2 types, renamed for consistency in EGL 1.3 */
  399. typedef EGLNativeDisplayType NativeDisplayType;
  400. typedef EGLNativePixmapType NativePixmapType;
  401. typedef EGLNativeWindowType NativeWindowType;
  402. /* Define EGLint. This must be a signed integral type large enough to contain
  403. * all legal attribute names and values passed into and out of EGL, whether
  404. * their type is boolean, bitmask, enumerant (symbolic constant), integer,
  405. * handle, or other. While in general a 32-bit integer will suffice, if
  406. * handles are 64 bit types, then EGLint should be defined as a signed 64-bit
  407. * integer type.
  408. */
  409. typedef khronos_int32_t EGLint;
  410. #endif /* __eglplatform_h */
  411. #ifndef __egl_h_
  412. #define __egl_h_ 1
  413. #ifdef __cplusplus
  414. extern "C" {
  415. #endif
  416. /*
  417. ** Copyright (c) 2013-2015 The Khronos Group Inc.
  418. **
  419. ** Permission is hereby granted, free of charge, to any person obtaining a
  420. ** copy of this software and/or associated documentation files (the
  421. ** "Materials"), to deal in the Materials without restriction, including
  422. ** without limitation the rights to use, copy, modify, merge, publish,
  423. ** distribute, sublicense, and/or sell copies of the Materials, and to
  424. ** permit persons to whom the Materials are furnished to do so, subject to
  425. ** the following conditions:
  426. **
  427. ** The above copyright notice and this permission notice shall be included
  428. ** in all copies or substantial portions of the Materials.
  429. **
  430. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  431. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  432. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  433. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  434. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  435. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  436. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  437. */
  438. /*
  439. ** This header is generated from the Khronos OpenGL / OpenGL ES XML
  440. ** API Registry. The current version of the Registry, generator scripts
  441. ** used to make the header, and the header can be found at
  442. ** http://www.opengl.org/registry/
  443. **
  444. ** Khronos $Revision: 31566 $ on $Date: 2015-06-23 08:48:48 -0700 (Tue, 23 Jun 2015) $
  445. */
  446. /*#include <EGL/eglplatform.h>*/
  447. /* Generated on date 20150623 */
  448. /* Generated C header for:
  449. * API: egl
  450. * Versions considered: .*
  451. * Versions emitted: .*
  452. * Default extensions included: None
  453. * Additional extensions included: _nomatch_^
  454. * Extensions removed: _nomatch_^
  455. */
  456. #ifndef EGL_VERSION_1_0
  457. #define EGL_VERSION_1_0 1
  458. typedef unsigned int EGLBoolean;
  459. typedef void *EGLDisplay;
  460. typedef void *EGLConfig;
  461. typedef void *EGLSurface;
  462. typedef void *EGLContext;
  463. typedef void (*__eglMustCastToProperFunctionPointerType)(void);
  464. #define EGL_ALPHA_SIZE 0x3021
  465. #define EGL_BAD_ACCESS 0x3002
  466. #define EGL_BAD_ALLOC 0x3003
  467. #define EGL_BAD_ATTRIBUTE 0x3004
  468. #define EGL_BAD_CONFIG 0x3005
  469. #define EGL_BAD_CONTEXT 0x3006
  470. #define EGL_BAD_CURRENT_SURFACE 0x3007
  471. #define EGL_BAD_DISPLAY 0x3008
  472. #define EGL_BAD_MATCH 0x3009
  473. #define EGL_BAD_NATIVE_PIXMAP 0x300A
  474. #define EGL_BAD_NATIVE_WINDOW 0x300B
  475. #define EGL_BAD_PARAMETER 0x300C
  476. #define EGL_BAD_SURFACE 0x300D
  477. #define EGL_BLUE_SIZE 0x3022
  478. #define EGL_BUFFER_SIZE 0x3020
  479. #define EGL_CONFIG_CAVEAT 0x3027
  480. #define EGL_CONFIG_ID 0x3028
  481. #define EGL_CORE_NATIVE_ENGINE 0x305B
  482. #define EGL_DEPTH_SIZE 0x3025
  483. #define EGL_DONT_CARE ((EGLint)-1)
  484. #define EGL_DRAW 0x3059
  485. #define EGL_EXTENSIONS 0x3055
  486. #define EGL_FALSE 0
  487. #define EGL_GREEN_SIZE 0x3023
  488. #define EGL_HEIGHT 0x3056
  489. #define EGL_LARGEST_PBUFFER 0x3058
  490. #define EGL_LEVEL 0x3029
  491. #define EGL_MAX_PBUFFER_HEIGHT 0x302A
  492. #define EGL_MAX_PBUFFER_PIXELS 0x302B
  493. #define EGL_MAX_PBUFFER_WIDTH 0x302C
  494. #define EGL_NATIVE_RENDERABLE 0x302D
  495. #define EGL_NATIVE_VISUAL_ID 0x302E
  496. #define EGL_NATIVE_VISUAL_TYPE 0x302F
  497. #define EGL_NONE 0x3038
  498. #define EGL_NON_CONFORMANT_CONFIG 0x3051
  499. #define EGL_NOT_INITIALIZED 0x3001
  500. #define EGL_NO_CONTEXT ((EGLContext)0)
  501. #define EGL_NO_DISPLAY ((EGLDisplay)0)
  502. #define EGL_NO_SURFACE ((EGLSurface)0)
  503. #define EGL_PBUFFER_BIT 0x0001
  504. #define EGL_PIXMAP_BIT 0x0002
  505. #define EGL_READ 0x305A
  506. #define EGL_RED_SIZE 0x3024
  507. #define EGL_SAMPLES 0x3031
  508. #define EGL_SAMPLE_BUFFERS 0x3032
  509. #define EGL_SLOW_CONFIG 0x3050
  510. #define EGL_STENCIL_SIZE 0x3026
  511. #define EGL_SUCCESS 0x3000
  512. #define EGL_SURFACE_TYPE 0x3033
  513. #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
  514. #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
  515. #define EGL_TRANSPARENT_RED_VALUE 0x3037
  516. #define EGL_TRANSPARENT_RGB 0x3052
  517. #define EGL_TRANSPARENT_TYPE 0x3034
  518. #define EGL_TRUE 1
  519. #define EGL_VENDOR 0x3053
  520. #define EGL_VERSION 0x3054
  521. #define EGL_WIDTH 0x3057
  522. #define EGL_WINDOW_BIT 0x0004
  523. EGLAPI EGLBoolean EGLAPIENTRY eglChooseConfig (EGLDisplay dpy, const EGLint *attrib_list, EGLConfig *configs, EGLint config_size, EGLint *num_config);
  524. EGLAPI EGLBoolean EGLAPIENTRY eglCopyBuffers (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
  525. EGLAPI EGLContext EGLAPIENTRY eglCreateContext (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint *attrib_list);
  526. EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferSurface (EGLDisplay dpy, EGLConfig config, const EGLint *attrib_list);
  527. EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurface (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint *attrib_list);
  528. EGLAPI EGLSurface EGLAPIENTRY eglCreateWindowSurface (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint *attrib_list);
  529. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyContext (EGLDisplay dpy, EGLContext ctx);
  530. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySurface (EGLDisplay dpy, EGLSurface surface);
  531. EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigAttrib (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint *value);
  532. EGLAPI EGLBoolean EGLAPIENTRY eglGetConfigs (EGLDisplay dpy, EGLConfig *configs, EGLint config_size, EGLint *num_config);
  533. EGLAPI EGLDisplay EGLAPIENTRY eglGetCurrentDisplay (void);
  534. EGLAPI EGLSurface EGLAPIENTRY eglGetCurrentSurface (EGLint readdraw);
  535. EGLAPI EGLDisplay EGLAPIENTRY eglGetDisplay (EGLNativeDisplayType display_id);
  536. EGLAPI EGLint EGLAPIENTRY eglGetError (void);
  537. EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
  538. EGLAPI EGLBoolean EGLAPIENTRY eglInitialize (EGLDisplay dpy, EGLint *major, EGLint *minor);
  539. EGLAPI EGLBoolean EGLAPIENTRY eglMakeCurrent (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
  540. EGLAPI EGLBoolean EGLAPIENTRY eglQueryContext (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint *value);
  541. EGLAPI const char *EGLAPIENTRY eglQueryString (EGLDisplay dpy, EGLint name);
  542. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint *value);
  543. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffers (EGLDisplay dpy, EGLSurface surface);
  544. EGLAPI EGLBoolean EGLAPIENTRY eglTerminate (EGLDisplay dpy);
  545. EGLAPI EGLBoolean EGLAPIENTRY eglWaitGL (void);
  546. EGLAPI EGLBoolean EGLAPIENTRY eglWaitNative (EGLint engine);
  547. #endif /* EGL_VERSION_1_0 */
  548. #ifndef EGL_VERSION_1_1
  549. #define EGL_VERSION_1_1 1
  550. #define EGL_BACK_BUFFER 0x3084
  551. #define EGL_BIND_TO_TEXTURE_RGB 0x3039
  552. #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
  553. #define EGL_CONTEXT_LOST 0x300E
  554. #define EGL_MIN_SWAP_INTERVAL 0x303B
  555. #define EGL_MAX_SWAP_INTERVAL 0x303C
  556. #define EGL_MIPMAP_TEXTURE 0x3082
  557. #define EGL_MIPMAP_LEVEL 0x3083
  558. #define EGL_NO_TEXTURE 0x305C
  559. #define EGL_TEXTURE_2D 0x305F
  560. #define EGL_TEXTURE_FORMAT 0x3080
  561. #define EGL_TEXTURE_RGB 0x305D
  562. #define EGL_TEXTURE_RGBA 0x305E
  563. #define EGL_TEXTURE_TARGET 0x3081
  564. EGLAPI EGLBoolean EGLAPIENTRY eglBindTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
  565. EGLAPI EGLBoolean EGLAPIENTRY eglReleaseTexImage (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
  566. EGLAPI EGLBoolean EGLAPIENTRY eglSurfaceAttrib (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
  567. EGLAPI EGLBoolean EGLAPIENTRY eglSwapInterval (EGLDisplay dpy, EGLint interval);
  568. #endif /* EGL_VERSION_1_1 */
  569. #ifndef EGL_VERSION_1_2
  570. #define EGL_VERSION_1_2 1
  571. typedef unsigned int EGLenum;
  572. typedef void *EGLClientBuffer;
  573. #define EGL_ALPHA_FORMAT 0x3088
  574. #define EGL_ALPHA_FORMAT_NONPRE 0x308B
  575. #define EGL_ALPHA_FORMAT_PRE 0x308C
  576. #define EGL_ALPHA_MASK_SIZE 0x303E
  577. #define EGL_BUFFER_PRESERVED 0x3094
  578. #define EGL_BUFFER_DESTROYED 0x3095
  579. #define EGL_CLIENT_APIS 0x308D
  580. #define EGL_COLORSPACE 0x3087
  581. #define EGL_COLORSPACE_sRGB 0x3089
  582. #define EGL_COLORSPACE_LINEAR 0x308A
  583. #define EGL_COLOR_BUFFER_TYPE 0x303F
  584. #define EGL_CONTEXT_CLIENT_TYPE 0x3097
  585. #define EGL_DISPLAY_SCALING 10000
  586. #define EGL_HORIZONTAL_RESOLUTION 0x3090
  587. #define EGL_LUMINANCE_BUFFER 0x308F
  588. #define EGL_LUMINANCE_SIZE 0x303D
  589. #define EGL_OPENGL_ES_BIT 0x0001
  590. #define EGL_OPENVG_BIT 0x0002
  591. #define EGL_OPENGL_ES_API 0x30A0
  592. #define EGL_OPENVG_API 0x30A1
  593. #define EGL_OPENVG_IMAGE 0x3096
  594. #define EGL_PIXEL_ASPECT_RATIO 0x3092
  595. #define EGL_RENDERABLE_TYPE 0x3040
  596. #define EGL_RENDER_BUFFER 0x3086
  597. #define EGL_RGB_BUFFER 0x308E
  598. #define EGL_SINGLE_BUFFER 0x3085
  599. #define EGL_SWAP_BEHAVIOR 0x3093
  600. #define EGL_UNKNOWN ((EGLint)-1)
  601. #define EGL_VERTICAL_RESOLUTION 0x3091
  602. EGLAPI EGLBoolean EGLAPIENTRY eglBindAPI (EGLenum api);
  603. EGLAPI EGLenum EGLAPIENTRY eglQueryAPI (void);
  604. EGLAPI EGLSurface EGLAPIENTRY eglCreatePbufferFromClientBuffer (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint *attrib_list);
  605. EGLAPI EGLBoolean EGLAPIENTRY eglReleaseThread (void);
  606. EGLAPI EGLBoolean EGLAPIENTRY eglWaitClient (void);
  607. #endif /* EGL_VERSION_1_2 */
  608. #ifndef EGL_VERSION_1_3
  609. #define EGL_VERSION_1_3 1
  610. #define EGL_CONFORMANT 0x3042
  611. #define EGL_CONTEXT_CLIENT_VERSION 0x3098
  612. #define EGL_MATCH_NATIVE_PIXMAP 0x3041
  613. #define EGL_OPENGL_ES2_BIT 0x0004
  614. #define EGL_VG_ALPHA_FORMAT 0x3088
  615. #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
  616. #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
  617. #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
  618. #define EGL_VG_COLORSPACE 0x3087
  619. #define EGL_VG_COLORSPACE_sRGB 0x3089
  620. #define EGL_VG_COLORSPACE_LINEAR 0x308A
  621. #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
  622. #endif /* EGL_VERSION_1_3 */
  623. #ifndef EGL_VERSION_1_4
  624. #define EGL_VERSION_1_4 1
  625. #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
  626. #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
  627. #define EGL_MULTISAMPLE_RESOLVE 0x3099
  628. #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
  629. #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
  630. #define EGL_OPENGL_API 0x30A2
  631. #define EGL_OPENGL_BIT 0x0008
  632. #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
  633. EGLAPI EGLContext EGLAPIENTRY eglGetCurrentContext (void);
  634. #endif /* EGL_VERSION_1_4 */
  635. #ifndef EGL_VERSION_1_5
  636. #define EGL_VERSION_1_5 1
  637. typedef void *EGLSync;
  638. typedef intptr_t EGLAttrib;
  639. typedef khronos_utime_nanoseconds_t EGLTime;
  640. typedef void *EGLImage;
  641. #define EGL_CONTEXT_MAJOR_VERSION 0x3098
  642. #define EGL_CONTEXT_MINOR_VERSION 0x30FB
  643. #define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
  644. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
  645. #define EGL_NO_RESET_NOTIFICATION 0x31BE
  646. #define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
  647. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
  648. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
  649. #define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
  650. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
  651. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
  652. #define EGL_OPENGL_ES3_BIT 0x00000040
  653. #define EGL_CL_EVENT_HANDLE 0x309C
  654. #define EGL_SYNC_CL_EVENT 0x30FE
  655. #define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
  656. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
  657. #define EGL_SYNC_TYPE 0x30F7
  658. #define EGL_SYNC_STATUS 0x30F1
  659. #define EGL_SYNC_CONDITION 0x30F8
  660. #define EGL_SIGNALED 0x30F2
  661. #define EGL_UNSIGNALED 0x30F3
  662. #define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
  663. #define EGL_FOREVER 0xFFFFFFFFFFFFFFFFull
  664. #define EGL_TIMEOUT_EXPIRED 0x30F5
  665. #define EGL_CONDITION_SATISFIED 0x30F6
  666. #define EGL_NO_SYNC ((EGLSync)0)
  667. #define EGL_SYNC_FENCE 0x30F9
  668. #define EGL_GL_COLORSPACE 0x309D
  669. #define EGL_GL_COLORSPACE_SRGB 0x3089
  670. #define EGL_GL_COLORSPACE_LINEAR 0x308A
  671. #define EGL_GL_RENDERBUFFER 0x30B9
  672. #define EGL_GL_TEXTURE_2D 0x30B1
  673. #define EGL_GL_TEXTURE_LEVEL 0x30BC
  674. #define EGL_GL_TEXTURE_3D 0x30B2
  675. #define EGL_GL_TEXTURE_ZOFFSET 0x30BD
  676. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
  677. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
  678. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
  679. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
  680. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
  681. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
  682. #define EGL_IMAGE_PRESERVED 0x30D2
  683. #define EGL_NO_IMAGE ((EGLImage)0)
  684. EGLAPI EGLSync EGLAPIENTRY eglCreateSync (EGLDisplay dpy, EGLenum type, const EGLAttrib *attrib_list);
  685. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySync (EGLDisplay dpy, EGLSync sync);
  686. EGLAPI EGLint EGLAPIENTRY eglClientWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
  687. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttrib (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib *value);
  688. EGLAPI EGLImage EGLAPIENTRY eglCreateImage (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib *attrib_list);
  689. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImage (EGLDisplay dpy, EGLImage image);
  690. EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplay (EGLenum platform, void *native_display, const EGLAttrib *attrib_list);
  691. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurface (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLAttrib *attrib_list);
  692. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurface (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLAttrib *attrib_list);
  693. EGLAPI EGLBoolean EGLAPIENTRY eglWaitSync (EGLDisplay dpy, EGLSync sync, EGLint flags);
  694. #endif /* EGL_VERSION_1_5 */
  695. #ifdef __cplusplus
  696. }
  697. #endif
  698. #endif /* __egl_h_ */
  699. #ifndef __eglext_h_
  700. #define __eglext_h_ 1
  701. #ifdef __cplusplus
  702. extern "C" {
  703. #endif
  704. /*
  705. ** Copyright (c) 2013-2015 The Khronos Group Inc.
  706. **
  707. ** Permission is hereby granted, free of charge, to any person obtaining a
  708. ** copy of this software and/or associated documentation files (the
  709. ** "Materials"), to deal in the Materials without restriction, including
  710. ** without limitation the rights to use, copy, modify, merge, publish,
  711. ** distribute, sublicense, and/or sell copies of the Materials, and to
  712. ** permit persons to whom the Materials are furnished to do so, subject to
  713. ** the following conditions:
  714. **
  715. ** The above copyright notice and this permission notice shall be included
  716. ** in all copies or substantial portions of the Materials.
  717. **
  718. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  719. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  720. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  721. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  722. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  723. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  724. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  725. */
  726. /*
  727. ** This header is generated from the Khronos OpenGL / OpenGL ES XML
  728. ** API Registry. The current version of the Registry, generator scripts
  729. ** used to make the header, and the header can be found at
  730. ** http://www.opengl.org/registry/
  731. **
  732. ** Khronos $Revision: 31566 $ on $Date: 2015-06-23 08:48:48 -0700 (Tue, 23 Jun 2015) $
  733. */
  734. /*#include <EGL/eglplatform.h>*/
  735. #define EGL_EGLEXT_VERSION 20150623
  736. /* Generated C header for:
  737. * API: egl
  738. * Versions considered: .*
  739. * Versions emitted: _nomatch_^
  740. * Default extensions included: egl
  741. * Additional extensions included: _nomatch_^
  742. * Extensions removed: _nomatch_^
  743. */
  744. #ifndef EGL_KHR_cl_event
  745. #define EGL_KHR_cl_event 1
  746. #define EGL_CL_EVENT_HANDLE_KHR 0x309C
  747. #define EGL_SYNC_CL_EVENT_KHR 0x30FE
  748. #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
  749. #endif /* EGL_KHR_cl_event */
  750. #ifndef EGL_KHR_cl_event2
  751. #define EGL_KHR_cl_event2 1
  752. typedef void *EGLSyncKHR;
  753. typedef intptr_t EGLAttribKHR;
  754. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
  755. #ifdef EGL_EGLEXT_PROTOTYPES
  756. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSync64KHR (EGLDisplay dpy, EGLenum type, const EGLAttribKHR *attrib_list);
  757. #endif
  758. #endif /* EGL_KHR_cl_event2 */
  759. #ifndef EGL_KHR_client_get_all_proc_addresses
  760. #define EGL_KHR_client_get_all_proc_addresses 1
  761. #endif /* EGL_KHR_client_get_all_proc_addresses */
  762. #ifndef EGL_KHR_config_attribs
  763. #define EGL_KHR_config_attribs 1
  764. #define EGL_CONFORMANT_KHR 0x3042
  765. #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
  766. #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
  767. #endif /* EGL_KHR_config_attribs */
  768. #ifndef EGL_KHR_create_context
  769. #define EGL_KHR_create_context 1
  770. #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
  771. #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
  772. #define EGL_CONTEXT_FLAGS_KHR 0x30FC
  773. #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
  774. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
  775. #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
  776. #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
  777. #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
  778. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
  779. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
  780. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
  781. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
  782. #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
  783. #endif /* EGL_KHR_create_context */
  784. #ifndef EGL_KHR_create_context_no_error
  785. #define EGL_KHR_create_context_no_error 1
  786. #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
  787. #endif /* EGL_KHR_create_context_no_error */
  788. #ifndef EGL_KHR_fence_sync
  789. #define EGL_KHR_fence_sync 1
  790. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  791. #ifdef KHRONOS_SUPPORT_INT64
  792. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
  793. #define EGL_SYNC_CONDITION_KHR 0x30F8
  794. #define EGL_SYNC_FENCE_KHR 0x30F9
  795. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  796. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  797. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  798. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  799. #ifdef EGL_EGLEXT_PROTOTYPES
  800. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateSyncKHR (EGLDisplay dpy, EGLenum type, const EGLint *attrib_list);
  801. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncKHR (EGLDisplay dpy, EGLSyncKHR sync);
  802. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  803. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint *value);
  804. #endif
  805. #endif /* KHRONOS_SUPPORT_INT64 */
  806. #endif /* EGL_KHR_fence_sync */
  807. #ifndef EGL_KHR_get_all_proc_addresses
  808. #define EGL_KHR_get_all_proc_addresses 1
  809. #endif /* EGL_KHR_get_all_proc_addresses */
  810. #ifndef EGL_KHR_gl_colorspace
  811. #define EGL_KHR_gl_colorspace 1
  812. #define EGL_GL_COLORSPACE_KHR 0x309D
  813. #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
  814. #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
  815. #endif /* EGL_KHR_gl_colorspace */
  816. #ifndef EGL_KHR_gl_renderbuffer_image
  817. #define EGL_KHR_gl_renderbuffer_image 1
  818. #define EGL_GL_RENDERBUFFER_KHR 0x30B9
  819. #endif /* EGL_KHR_gl_renderbuffer_image */
  820. #ifndef EGL_KHR_gl_texture_2D_image
  821. #define EGL_KHR_gl_texture_2D_image 1
  822. #define EGL_GL_TEXTURE_2D_KHR 0x30B1
  823. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
  824. #endif /* EGL_KHR_gl_texture_2D_image */
  825. #ifndef EGL_KHR_gl_texture_3D_image
  826. #define EGL_KHR_gl_texture_3D_image 1
  827. #define EGL_GL_TEXTURE_3D_KHR 0x30B2
  828. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
  829. #endif /* EGL_KHR_gl_texture_3D_image */
  830. #ifndef EGL_KHR_gl_texture_cubemap_image
  831. #define EGL_KHR_gl_texture_cubemap_image 1
  832. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
  833. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
  834. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
  835. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
  836. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
  837. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
  838. #endif /* EGL_KHR_gl_texture_cubemap_image */
  839. #ifndef EGL_KHR_image
  840. #define EGL_KHR_image 1
  841. typedef void *EGLImageKHR;
  842. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  843. #define EGL_NO_IMAGE_KHR ((EGLImageKHR)0)
  844. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  845. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  846. #ifdef EGL_EGLEXT_PROTOTYPES
  847. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateImageKHR (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint *attrib_list);
  848. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyImageKHR (EGLDisplay dpy, EGLImageKHR image);
  849. #endif
  850. #endif /* EGL_KHR_image */
  851. #ifndef EGL_KHR_image_base
  852. #define EGL_KHR_image_base 1
  853. #define EGL_IMAGE_PRESERVED_KHR 0x30D2
  854. #endif /* EGL_KHR_image_base */
  855. #ifndef EGL_KHR_image_pixmap
  856. #define EGL_KHR_image_pixmap 1
  857. #endif /* EGL_KHR_image_pixmap */
  858. #ifndef EGL_KHR_lock_surface
  859. #define EGL_KHR_lock_surface 1
  860. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  861. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  862. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  863. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  864. #define EGL_MATCH_FORMAT_KHR 0x3043
  865. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  866. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  867. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  868. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  869. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  870. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  871. #define EGL_BITMAP_POINTER_KHR 0x30C6
  872. #define EGL_BITMAP_PITCH_KHR 0x30C7
  873. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  874. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  875. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  876. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  877. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  878. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  879. #define EGL_LOWER_LEFT_KHR 0x30CE
  880. #define EGL_UPPER_LEFT_KHR 0x30CF
  881. typedef EGLBoolean (EGLAPIENTRYP PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
  882. typedef EGLBoolean (EGLAPIENTRYP PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
  883. #ifdef EGL_EGLEXT_PROTOTYPES
  884. EGLAPI EGLBoolean EGLAPIENTRY eglLockSurfaceKHR (EGLDisplay dpy, EGLSurface surface, const EGLint *attrib_list);
  885. EGLAPI EGLBoolean EGLAPIENTRY eglUnlockSurfaceKHR (EGLDisplay dpy, EGLSurface surface);
  886. #endif
  887. #endif /* EGL_KHR_lock_surface */
  888. #ifndef EGL_KHR_lock_surface2
  889. #define EGL_KHR_lock_surface2 1
  890. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  891. #endif /* EGL_KHR_lock_surface2 */
  892. #ifndef EGL_KHR_lock_surface3
  893. #define EGL_KHR_lock_surface3 1
  894. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
  895. #ifdef EGL_EGLEXT_PROTOTYPES
  896. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurface64KHR (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR *value);
  897. #endif
  898. #endif /* EGL_KHR_lock_surface3 */
  899. #ifndef EGL_KHR_partial_update
  900. #define EGL_KHR_partial_update 1
  901. #define EGL_BUFFER_AGE_KHR 0x313D
  902. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  903. #ifdef EGL_EGLEXT_PROTOTYPES
  904. EGLAPI EGLBoolean EGLAPIENTRY eglSetDamageRegionKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  905. #endif
  906. #endif /* EGL_KHR_partial_update */
  907. #ifndef EGL_KHR_platform_android
  908. #define EGL_KHR_platform_android 1
  909. #define EGL_PLATFORM_ANDROID_KHR 0x3141
  910. #endif /* EGL_KHR_platform_android */
  911. #ifndef EGL_KHR_platform_gbm
  912. #define EGL_KHR_platform_gbm 1
  913. #define EGL_PLATFORM_GBM_KHR 0x31D7
  914. #endif /* EGL_KHR_platform_gbm */
  915. #ifndef EGL_KHR_platform_wayland
  916. #define EGL_KHR_platform_wayland 1
  917. #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
  918. #endif /* EGL_KHR_platform_wayland */
  919. #ifndef EGL_KHR_platform_x11
  920. #define EGL_KHR_platform_x11 1
  921. #define EGL_PLATFORM_X11_KHR 0x31D5
  922. #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
  923. #endif /* EGL_KHR_platform_x11 */
  924. #ifndef EGL_KHR_reusable_sync
  925. #define EGL_KHR_reusable_sync 1
  926. #ifdef KHRONOS_SUPPORT_INT64
  927. #define EGL_SYNC_STATUS_KHR 0x30F1
  928. #define EGL_SIGNALED_KHR 0x30F2
  929. #define EGL_UNSIGNALED_KHR 0x30F3
  930. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  931. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  932. #define EGL_SYNC_TYPE_KHR 0x30F7
  933. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  934. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
  935. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFFull
  936. #define EGL_NO_SYNC_KHR ((EGLSyncKHR)0)
  937. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  938. #ifdef EGL_EGLEXT_PROTOTYPES
  939. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  940. #endif
  941. #endif /* KHRONOS_SUPPORT_INT64 */
  942. #endif /* EGL_KHR_reusable_sync */
  943. #ifndef EGL_KHR_stream
  944. #define EGL_KHR_stream 1
  945. typedef void *EGLStreamKHR;
  946. typedef khronos_uint64_t EGLuint64KHR;
  947. #ifdef KHRONOS_SUPPORT_INT64
  948. #define EGL_NO_STREAM_KHR ((EGLStreamKHR)0)
  949. #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
  950. #define EGL_PRODUCER_FRAME_KHR 0x3212
  951. #define EGL_CONSUMER_FRAME_KHR 0x3213
  952. #define EGL_STREAM_STATE_KHR 0x3214
  953. #define EGL_STREAM_STATE_CREATED_KHR 0x3215
  954. #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
  955. #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
  956. #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
  957. #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
  958. #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
  959. #define EGL_BAD_STREAM_KHR 0x321B
  960. #define EGL_BAD_STATE_KHR 0x321C
  961. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  962. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  963. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  964. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
  965. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
  966. #ifdef EGL_EGLEXT_PROTOTYPES
  967. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamKHR (EGLDisplay dpy, const EGLint *attrib_list);
  968. EGLAPI EGLBoolean EGLAPIENTRY eglDestroyStreamKHR (EGLDisplay dpy, EGLStreamKHR stream);
  969. EGLAPI EGLBoolean EGLAPIENTRY eglStreamAttribKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  970. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint *value);
  971. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamu64KHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR *value);
  972. #endif
  973. #endif /* KHRONOS_SUPPORT_INT64 */
  974. #endif /* EGL_KHR_stream */
  975. #ifndef EGL_KHR_stream_consumer_gltexture
  976. #define EGL_KHR_stream_consumer_gltexture 1
  977. #ifdef EGL_KHR_stream
  978. #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
  979. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  980. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  981. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  982. #ifdef EGL_EGLEXT_PROTOTYPES
  983. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerGLTextureExternalKHR (EGLDisplay dpy, EGLStreamKHR stream);
  984. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerAcquireKHR (EGLDisplay dpy, EGLStreamKHR stream);
  985. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerReleaseKHR (EGLDisplay dpy, EGLStreamKHR stream);
  986. #endif
  987. #endif /* EGL_KHR_stream */
  988. #endif /* EGL_KHR_stream_consumer_gltexture */
  989. #ifndef EGL_KHR_stream_cross_process_fd
  990. #define EGL_KHR_stream_cross_process_fd 1
  991. typedef int EGLNativeFileDescriptorKHR;
  992. #ifdef EGL_KHR_stream
  993. #define EGL_NO_FILE_DESCRIPTOR_KHR ((EGLNativeFileDescriptorKHR)(-1))
  994. typedef EGLNativeFileDescriptorKHR (EGLAPIENTRYP PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  995. typedef EGLStreamKHR (EGLAPIENTRYP PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  996. #ifdef EGL_EGLEXT_PROTOTYPES
  997. EGLAPI EGLNativeFileDescriptorKHR EGLAPIENTRY eglGetStreamFileDescriptorKHR (EGLDisplay dpy, EGLStreamKHR stream);
  998. EGLAPI EGLStreamKHR EGLAPIENTRY eglCreateStreamFromFileDescriptorKHR (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  999. #endif
  1000. #endif /* EGL_KHR_stream */
  1001. #endif /* EGL_KHR_stream_cross_process_fd */
  1002. #ifndef EGL_KHR_stream_fifo
  1003. #define EGL_KHR_stream_fifo 1
  1004. #ifdef EGL_KHR_stream
  1005. #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
  1006. #define EGL_STREAM_TIME_NOW_KHR 0x31FD
  1007. #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
  1008. #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
  1009. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
  1010. #ifdef EGL_EGLEXT_PROTOTYPES
  1011. EGLAPI EGLBoolean EGLAPIENTRY eglQueryStreamTimeKHR (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR *value);
  1012. #endif
  1013. #endif /* EGL_KHR_stream */
  1014. #endif /* EGL_KHR_stream_fifo */
  1015. #ifndef EGL_KHR_stream_producer_aldatalocator
  1016. #define EGL_KHR_stream_producer_aldatalocator 1
  1017. #ifdef EGL_KHR_stream
  1018. #endif /* EGL_KHR_stream */
  1019. #endif /* EGL_KHR_stream_producer_aldatalocator */
  1020. #ifndef EGL_KHR_stream_producer_eglsurface
  1021. #define EGL_KHR_stream_producer_eglsurface 1
  1022. #ifdef EGL_KHR_stream
  1023. #define EGL_STREAM_BIT_KHR 0x0800
  1024. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
  1025. #ifdef EGL_EGLEXT_PROTOTYPES
  1026. EGLAPI EGLSurface EGLAPIENTRY eglCreateStreamProducerSurfaceKHR (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint *attrib_list);
  1027. #endif
  1028. #endif /* EGL_KHR_stream */
  1029. #endif /* EGL_KHR_stream_producer_eglsurface */
  1030. #ifndef EGL_KHR_surfaceless_context
  1031. #define EGL_KHR_surfaceless_context 1
  1032. #endif /* EGL_KHR_surfaceless_context */
  1033. #ifndef EGL_KHR_swap_buffers_with_damage
  1034. #define EGL_KHR_swap_buffers_with_damage 1
  1035. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  1036. #ifdef EGL_EGLEXT_PROTOTYPES
  1037. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageKHR (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  1038. #endif
  1039. #endif /* EGL_KHR_swap_buffers_with_damage */
  1040. #ifndef EGL_KHR_vg_parent_image
  1041. #define EGL_KHR_vg_parent_image 1
  1042. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
  1043. #endif /* EGL_KHR_vg_parent_image */
  1044. #ifndef EGL_KHR_wait_sync
  1045. #define EGL_KHR_wait_sync 1
  1046. typedef EGLint (EGLAPIENTRYP PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  1047. #ifdef EGL_EGLEXT_PROTOTYPES
  1048. EGLAPI EGLint EGLAPIENTRY eglWaitSyncKHR (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  1049. #endif
  1050. #endif /* EGL_KHR_wait_sync */
  1051. #ifndef EGL_ANDROID_blob_cache
  1052. #define EGL_ANDROID_blob_cache 1
  1053. typedef khronos_ssize_t EGLsizeiANDROID;
  1054. typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
  1055. typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
  1056. typedef void (EGLAPIENTRYP PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  1057. #ifdef EGL_EGLEXT_PROTOTYPES
  1058. EGLAPI void EGLAPIENTRY eglSetBlobCacheFuncsANDROID (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  1059. #endif
  1060. #endif /* EGL_ANDROID_blob_cache */
  1061. #ifndef EGL_ANDROID_framebuffer_target
  1062. #define EGL_ANDROID_framebuffer_target 1
  1063. #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
  1064. #endif /* EGL_ANDROID_framebuffer_target */
  1065. #ifndef EGL_ANDROID_image_native_buffer
  1066. #define EGL_ANDROID_image_native_buffer 1
  1067. #define EGL_NATIVE_BUFFER_ANDROID 0x3140
  1068. #endif /* EGL_ANDROID_image_native_buffer */
  1069. #ifndef EGL_ANDROID_native_fence_sync
  1070. #define EGL_ANDROID_native_fence_sync 1
  1071. #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
  1072. #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
  1073. #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
  1074. #define EGL_NO_NATIVE_FENCE_FD_ANDROID -1
  1075. typedef EGLint (EGLAPIENTRYP PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  1076. #ifdef EGL_EGLEXT_PROTOTYPES
  1077. EGLAPI EGLint EGLAPIENTRY eglDupNativeFenceFDANDROID (EGLDisplay dpy, EGLSyncKHR sync);
  1078. #endif
  1079. #endif /* EGL_ANDROID_native_fence_sync */
  1080. #ifndef EGL_ANDROID_recordable
  1081. #define EGL_ANDROID_recordable 1
  1082. #define EGL_RECORDABLE_ANDROID 0x3142
  1083. #endif /* EGL_ANDROID_recordable */
  1084. #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
  1085. #define EGL_ANGLE_d3d_share_handle_client_buffer 1
  1086. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  1087. #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
  1088. #ifndef EGL_ANGLE_device_d3d
  1089. #define EGL_ANGLE_device_d3d 1
  1090. #define EGL_D3D9_DEVICE_ANGLE 0x33A0
  1091. #define EGL_D3D11_DEVICE_ANGLE 0x33A1
  1092. #endif /* EGL_ANGLE_device_d3d */
  1093. #ifndef EGL_ANGLE_query_surface_pointer
  1094. #define EGL_ANGLE_query_surface_pointer 1
  1095. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  1096. #ifdef EGL_EGLEXT_PROTOTYPES
  1097. EGLAPI EGLBoolean EGLAPIENTRY eglQuerySurfacePointerANGLE (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void **value);
  1098. #endif
  1099. #endif /* EGL_ANGLE_query_surface_pointer */
  1100. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  1101. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  1102. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  1103. #ifndef EGL_ANGLE_window_fixed_size
  1104. #define EGL_ANGLE_window_fixed_size 1
  1105. #define EGL_FIXED_SIZE_ANGLE 0x3201
  1106. #endif /* EGL_ANGLE_window_fixed_size */
  1107. #ifndef EGL_ARM_pixmap_multisample_discard
  1108. #define EGL_ARM_pixmap_multisample_discard 1
  1109. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  1110. #endif /* EGL_ARM_pixmap_multisample_discard */
  1111. #ifndef EGL_EXT_buffer_age
  1112. #define EGL_EXT_buffer_age 1
  1113. #define EGL_BUFFER_AGE_EXT 0x313D
  1114. #endif /* EGL_EXT_buffer_age */
  1115. #ifndef EGL_EXT_client_extensions
  1116. #define EGL_EXT_client_extensions 1
  1117. #endif /* EGL_EXT_client_extensions */
  1118. #ifndef EGL_EXT_create_context_robustness
  1119. #define EGL_EXT_create_context_robustness 1
  1120. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  1121. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  1122. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  1123. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  1124. #endif /* EGL_EXT_create_context_robustness */
  1125. #ifndef EGL_EXT_device_base
  1126. #define EGL_EXT_device_base 1
  1127. typedef void *EGLDeviceEXT;
  1128. #define EGL_NO_DEVICE_EXT ((EGLDeviceEXT)(0))
  1129. #define EGL_BAD_DEVICE_EXT 0x322B
  1130. #define EGL_DEVICE_EXT 0x322C
  1131. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  1132. typedef const char *(EGLAPIENTRYP PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  1133. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  1134. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  1135. #ifdef EGL_EGLEXT_PROTOTYPES
  1136. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDeviceAttribEXT (EGLDeviceEXT device, EGLint attribute, EGLAttrib *value);
  1137. EGLAPI const char *EGLAPIENTRY eglQueryDeviceStringEXT (EGLDeviceEXT device, EGLint name);
  1138. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDevicesEXT (EGLint max_devices, EGLDeviceEXT *devices, EGLint *num_devices);
  1139. EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint attribute, EGLAttrib *value);
  1140. #endif
  1141. #endif /* EGL_EXT_device_base */
  1142. #ifndef EGL_EXT_device_drm
  1143. #define EGL_EXT_device_drm 1
  1144. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  1145. #endif /* EGL_EXT_device_drm */
  1146. #ifndef EGL_EXT_device_enumeration
  1147. #define EGL_EXT_device_enumeration 1
  1148. #endif /* EGL_EXT_device_enumeration */
  1149. #ifndef EGL_EXT_device_openwf
  1150. #define EGL_EXT_device_openwf 1
  1151. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  1152. #endif /* EGL_EXT_device_openwf */
  1153. #ifndef EGL_EXT_device_query
  1154. #define EGL_EXT_device_query 1
  1155. #endif /* EGL_EXT_device_query */
  1156. #ifndef EGL_EXT_image_dma_buf_import
  1157. #define EGL_EXT_image_dma_buf_import 1
  1158. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  1159. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  1160. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  1161. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  1162. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  1163. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  1164. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  1165. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  1166. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  1167. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  1168. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  1169. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  1170. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  1171. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  1172. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  1173. #define EGL_ITU_REC601_EXT 0x327F
  1174. #define EGL_ITU_REC709_EXT 0x3280
  1175. #define EGL_ITU_REC2020_EXT 0x3281
  1176. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  1177. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  1178. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  1179. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  1180. #endif /* EGL_EXT_image_dma_buf_import */
  1181. #ifndef EGL_EXT_multiview_window
  1182. #define EGL_EXT_multiview_window 1
  1183. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  1184. #endif /* EGL_EXT_multiview_window */
  1185. #ifndef EGL_EXT_output_base
  1186. #define EGL_EXT_output_base 1
  1187. typedef void *EGLOutputLayerEXT;
  1188. typedef void *EGLOutputPortEXT;
  1189. #define EGL_NO_OUTPUT_LAYER_EXT ((EGLOutputLayerEXT)0)
  1190. #define EGL_NO_OUTPUT_PORT_EXT ((EGLOutputPortEXT)0)
  1191. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  1192. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  1193. #define EGL_SWAP_INTERVAL_EXT 0x322F
  1194. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  1195. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  1196. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  1197. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  1198. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  1199. typedef EGLBoolean (EGLAPIENTRYP PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  1200. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  1201. typedef const char *(EGLAPIENTRYP PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  1202. #ifdef EGL_EGLEXT_PROTOTYPES
  1203. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputLayersEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputLayerEXT *layers, EGLint max_layers, EGLint *num_layers);
  1204. EGLAPI EGLBoolean EGLAPIENTRY eglGetOutputPortsEXT (EGLDisplay dpy, const EGLAttrib *attrib_list, EGLOutputPortEXT *ports, EGLint max_ports, EGLint *num_ports);
  1205. EGLAPI EGLBoolean EGLAPIENTRY eglOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  1206. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputLayerAttribEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib *value);
  1207. EGLAPI const char *EGLAPIENTRY eglQueryOutputLayerStringEXT (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  1208. EGLAPI EGLBoolean EGLAPIENTRY eglOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  1209. EGLAPI EGLBoolean EGLAPIENTRY eglQueryOutputPortAttribEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib *value);
  1210. EGLAPI const char *EGLAPIENTRY eglQueryOutputPortStringEXT (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  1211. #endif
  1212. #endif /* EGL_EXT_output_base */
  1213. #ifndef EGL_EXT_output_drm
  1214. #define EGL_EXT_output_drm 1
  1215. #define EGL_DRM_CRTC_EXT 0x3234
  1216. #define EGL_DRM_PLANE_EXT 0x3235
  1217. #define EGL_DRM_CONNECTOR_EXT 0x3236
  1218. #endif /* EGL_EXT_output_drm */
  1219. #ifndef EGL_EXT_output_openwf
  1220. #define EGL_EXT_output_openwf 1
  1221. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  1222. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  1223. #endif /* EGL_EXT_output_openwf */
  1224. #ifndef EGL_EXT_platform_base
  1225. #define EGL_EXT_platform_base 1
  1226. typedef EGLDisplay (EGLAPIENTRYP PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void *native_display, const EGLint *attrib_list);
  1227. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  1228. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  1229. #ifdef EGL_EGLEXT_PROTOTYPES
  1230. EGLAPI EGLDisplay EGLAPIENTRY eglGetPlatformDisplayEXT (EGLenum platform, void *native_display, const EGLint *attrib_list);
  1231. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformWindowSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_window, const EGLint *attrib_list);
  1232. EGLAPI EGLSurface EGLAPIENTRY eglCreatePlatformPixmapSurfaceEXT (EGLDisplay dpy, EGLConfig config, void *native_pixmap, const EGLint *attrib_list);
  1233. #endif
  1234. #endif /* EGL_EXT_platform_base */
  1235. #ifndef EGL_EXT_platform_device
  1236. #define EGL_EXT_platform_device 1
  1237. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  1238. #endif /* EGL_EXT_platform_device */
  1239. #ifndef EGL_EXT_platform_wayland
  1240. #define EGL_EXT_platform_wayland 1
  1241. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  1242. #endif /* EGL_EXT_platform_wayland */
  1243. #ifndef EGL_EXT_platform_x11
  1244. #define EGL_EXT_platform_x11 1
  1245. #define EGL_PLATFORM_X11_EXT 0x31D5
  1246. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  1247. #endif /* EGL_EXT_platform_x11 */
  1248. #ifndef EGL_EXT_protected_surface
  1249. #define EGL_EXT_protected_surface 1
  1250. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  1251. #endif /* EGL_EXT_protected_surface */
  1252. #ifndef EGL_EXT_stream_consumer_egloutput
  1253. #define EGL_EXT_stream_consumer_egloutput 1
  1254. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  1255. #ifdef EGL_EGLEXT_PROTOTYPES
  1256. EGLAPI EGLBoolean EGLAPIENTRY eglStreamConsumerOutputEXT (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  1257. #endif
  1258. #endif /* EGL_EXT_stream_consumer_egloutput */
  1259. #ifndef EGL_EXT_swap_buffers_with_damage
  1260. #define EGL_EXT_swap_buffers_with_damage 1
  1261. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  1262. #ifdef EGL_EGLEXT_PROTOTYPES
  1263. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersWithDamageEXT (EGLDisplay dpy, EGLSurface surface, EGLint *rects, EGLint n_rects);
  1264. #endif
  1265. #endif /* EGL_EXT_swap_buffers_with_damage */
  1266. #ifndef EGL_EXT_yuv_surface
  1267. #define EGL_EXT_yuv_surface 1
  1268. #define EGL_YUV_ORDER_EXT 0x3301
  1269. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  1270. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  1271. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  1272. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  1273. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  1274. #define EGL_YUV_BUFFER_EXT 0x3300
  1275. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  1276. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  1277. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  1278. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  1279. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  1280. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  1281. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  1282. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  1283. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  1284. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  1285. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  1286. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  1287. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  1288. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  1289. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  1290. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  1291. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  1292. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  1293. #endif /* EGL_EXT_yuv_surface */
  1294. #ifndef EGL_HI_clientpixmap
  1295. #define EGL_HI_clientpixmap 1
  1296. struct EGLClientPixmapHI {
  1297. void *pData;
  1298. EGLint iWidth;
  1299. EGLint iHeight;
  1300. EGLint iStride;
  1301. };
  1302. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  1303. typedef EGLSurface (EGLAPIENTRYP PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  1304. #ifdef EGL_EGLEXT_PROTOTYPES
  1305. EGLAPI EGLSurface EGLAPIENTRY eglCreatePixmapSurfaceHI (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI *pixmap);
  1306. #endif
  1307. #endif /* EGL_HI_clientpixmap */
  1308. #ifndef EGL_HI_colorformats
  1309. #define EGL_HI_colorformats 1
  1310. #define EGL_COLOR_FORMAT_HI 0x8F70
  1311. #define EGL_COLOR_RGB_HI 0x8F71
  1312. #define EGL_COLOR_RGBA_HI 0x8F72
  1313. #define EGL_COLOR_ARGB_HI 0x8F73
  1314. #endif /* EGL_HI_colorformats */
  1315. #ifndef EGL_IMG_context_priority
  1316. #define EGL_IMG_context_priority 1
  1317. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  1318. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  1319. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  1320. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  1321. #endif /* EGL_IMG_context_priority */
  1322. #ifndef EGL_MESA_drm_image
  1323. #define EGL_MESA_drm_image 1
  1324. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  1325. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  1326. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  1327. #define EGL_DRM_BUFFER_MESA 0x31D3
  1328. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  1329. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  1330. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  1331. typedef EGLImageKHR (EGLAPIENTRYP PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint *attrib_list);
  1332. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  1333. #ifdef EGL_EGLEXT_PROTOTYPES
  1334. EGLAPI EGLImageKHR EGLAPIENTRY eglCreateDRMImageMESA (EGLDisplay dpy, const EGLint *attrib_list);
  1335. EGLAPI EGLBoolean EGLAPIENTRY eglExportDRMImageMESA (EGLDisplay dpy, EGLImageKHR image, EGLint *name, EGLint *handle, EGLint *stride);
  1336. #endif
  1337. #endif /* EGL_MESA_drm_image */
  1338. #ifndef EGL_MESA_image_dma_buf_export
  1339. #define EGL_MESA_image_dma_buf_export 1
  1340. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  1341. typedef EGLBoolean (EGLAPIENTRYP PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  1342. #ifdef EGL_EGLEXT_PROTOTYPES
  1343. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageQueryMESA (EGLDisplay dpy, EGLImageKHR image, int *fourcc, int *num_planes, EGLuint64KHR *modifiers);
  1344. EGLAPI EGLBoolean EGLAPIENTRY eglExportDMABUFImageMESA (EGLDisplay dpy, EGLImageKHR image, int *fds, EGLint *strides, EGLint *offsets);
  1345. #endif
  1346. #endif /* EGL_MESA_image_dma_buf_export */
  1347. #ifndef EGL_MESA_platform_gbm
  1348. #define EGL_MESA_platform_gbm 1
  1349. #define EGL_PLATFORM_GBM_MESA 0x31D7
  1350. #endif /* EGL_MESA_platform_gbm */
  1351. #ifndef EGL_NOK_swap_region
  1352. #define EGL_NOK_swap_region 1
  1353. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1354. #ifdef EGL_EGLEXT_PROTOTYPES
  1355. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegionNOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1356. #endif
  1357. #endif /* EGL_NOK_swap_region */
  1358. #ifndef EGL_NOK_swap_region2
  1359. #define EGL_NOK_swap_region2 1
  1360. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1361. #ifdef EGL_EGLEXT_PROTOTYPES
  1362. EGLAPI EGLBoolean EGLAPIENTRY eglSwapBuffersRegion2NOK (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint *rects);
  1363. #endif
  1364. #endif /* EGL_NOK_swap_region2 */
  1365. #ifndef EGL_NOK_texture_from_pixmap
  1366. #define EGL_NOK_texture_from_pixmap 1
  1367. #define EGL_Y_INVERTED_NOK 0x307F
  1368. #endif /* EGL_NOK_texture_from_pixmap */
  1369. #ifndef EGL_NV_3dvision_surface
  1370. #define EGL_NV_3dvision_surface 1
  1371. #define EGL_AUTO_STEREO_NV 0x3136
  1372. #endif /* EGL_NV_3dvision_surface */
  1373. #ifndef EGL_NV_coverage_sample
  1374. #define EGL_NV_coverage_sample 1
  1375. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  1376. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  1377. #endif /* EGL_NV_coverage_sample */
  1378. #ifndef EGL_NV_coverage_sample_resolve
  1379. #define EGL_NV_coverage_sample_resolve 1
  1380. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  1381. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  1382. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  1383. #endif /* EGL_NV_coverage_sample_resolve */
  1384. #ifndef EGL_NV_cuda_event
  1385. #define EGL_NV_cuda_event 1
  1386. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  1387. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  1388. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  1389. #endif /* EGL_NV_cuda_event */
  1390. #ifndef EGL_NV_depth_nonlinear
  1391. #define EGL_NV_depth_nonlinear 1
  1392. #define EGL_DEPTH_ENCODING_NV 0x30E2
  1393. #define EGL_DEPTH_ENCODING_NONE_NV 0
  1394. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  1395. #endif /* EGL_NV_depth_nonlinear */
  1396. #ifndef EGL_NV_device_cuda
  1397. #define EGL_NV_device_cuda 1
  1398. #define EGL_CUDA_DEVICE_NV 0x323A
  1399. #endif /* EGL_NV_device_cuda */
  1400. #ifndef EGL_NV_native_query
  1401. #define EGL_NV_native_query 1
  1402. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  1403. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  1404. typedef EGLBoolean (EGLAPIENTRYP PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  1405. #ifdef EGL_EGLEXT_PROTOTYPES
  1406. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeDisplayNV (EGLDisplay dpy, EGLNativeDisplayType *display_id);
  1407. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativeWindowNV (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType *window);
  1408. EGLAPI EGLBoolean EGLAPIENTRY eglQueryNativePixmapNV (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType *pixmap);
  1409. #endif
  1410. #endif /* EGL_NV_native_query */
  1411. #ifndef EGL_NV_post_convert_rounding
  1412. #define EGL_NV_post_convert_rounding 1
  1413. #endif /* EGL_NV_post_convert_rounding */
  1414. #ifndef EGL_NV_post_sub_buffer
  1415. #define EGL_NV_post_sub_buffer 1
  1416. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  1417. typedef EGLBoolean (EGLAPIENTRYP PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1418. #ifdef EGL_EGLEXT_PROTOTYPES
  1419. EGLAPI EGLBoolean EGLAPIENTRY eglPostSubBufferNV (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1420. #endif
  1421. #endif /* EGL_NV_post_sub_buffer */
  1422. #ifndef EGL_NV_stream_sync
  1423. #define EGL_NV_stream_sync 1
  1424. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  1425. typedef EGLSyncKHR (EGLAPIENTRYP PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  1426. #ifdef EGL_EGLEXT_PROTOTYPES
  1427. EGLAPI EGLSyncKHR EGLAPIENTRY eglCreateStreamSyncNV (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint *attrib_list);
  1428. #endif
  1429. #endif /* EGL_NV_stream_sync */
  1430. #ifndef EGL_NV_sync
  1431. #define EGL_NV_sync 1
  1432. typedef void *EGLSyncNV;
  1433. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  1434. #ifdef KHRONOS_SUPPORT_INT64
  1435. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  1436. #define EGL_SYNC_STATUS_NV 0x30E7
  1437. #define EGL_SIGNALED_NV 0x30E8
  1438. #define EGL_UNSIGNALED_NV 0x30E9
  1439. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  1440. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFFull
  1441. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  1442. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  1443. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  1444. #define EGL_SYNC_TYPE_NV 0x30ED
  1445. #define EGL_SYNC_CONDITION_NV 0x30EE
  1446. #define EGL_SYNC_FENCE_NV 0x30EF
  1447. #define EGL_NO_SYNC_NV ((EGLSyncNV)0)
  1448. typedef EGLSyncNV (EGLAPIENTRYP PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  1449. typedef EGLBoolean (EGLAPIENTRYP PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  1450. typedef EGLBoolean (EGLAPIENTRYP PFNEGLFENCENVPROC) (EGLSyncNV sync);
  1451. typedef EGLint (EGLAPIENTRYP PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1452. typedef EGLBoolean (EGLAPIENTRYP PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  1453. typedef EGLBoolean (EGLAPIENTRYP PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint *value);
  1454. #ifdef EGL_EGLEXT_PROTOTYPES
  1455. EGLAPI EGLSyncNV EGLAPIENTRY eglCreateFenceSyncNV (EGLDisplay dpy, EGLenum condition, const EGLint *attrib_list);
  1456. EGLAPI EGLBoolean EGLAPIENTRY eglDestroySyncNV (EGLSyncNV sync);
  1457. EGLAPI EGLBoolean EGLAPIENTRY eglFenceNV (EGLSyncNV sync);
  1458. EGLAPI EGLint EGLAPIENTRY eglClientWaitSyncNV (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1459. EGLAPI EGLBoolean EGLAPIENTRY eglSignalSyncNV (EGLSyncNV sync, EGLenum mode);
  1460. EGLAPI EGLBoolean EGLAPIENTRY eglGetSyncAttribNV (EGLSyncNV sync, EGLint attribute, EGLint *value);
  1461. #endif
  1462. #endif /* KHRONOS_SUPPORT_INT64 */
  1463. #endif /* EGL_NV_sync */
  1464. #ifndef EGL_NV_system_time
  1465. #define EGL_NV_system_time 1
  1466. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  1467. #ifdef KHRONOS_SUPPORT_INT64
  1468. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  1469. typedef EGLuint64NV (EGLAPIENTRYP PFNEGLGETSYSTEMTIMENVPROC) (void);
  1470. #ifdef EGL_EGLEXT_PROTOTYPES
  1471. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeFrequencyNV (void);
  1472. EGLAPI EGLuint64NV EGLAPIENTRY eglGetSystemTimeNV (void);
  1473. #endif
  1474. #endif /* KHRONOS_SUPPORT_INT64 */
  1475. #endif /* EGL_NV_system_time */
  1476. #ifndef EGL_TIZEN_image_native_buffer
  1477. #define EGL_TIZEN_image_native_buffer 1
  1478. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  1479. #endif /* EGL_TIZEN_image_native_buffer */
  1480. #ifndef EGL_TIZEN_image_native_surface
  1481. #define EGL_TIZEN_image_native_surface 1
  1482. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  1483. #endif /* EGL_TIZEN_image_native_surface */
  1484. #ifdef __cplusplus
  1485. }
  1486. #endif
  1487. #endif /* __eglext_h_ */
  1488. #endif /* _MSC_VER */