SDL_egl.h 72 KB

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