SDL_egl.h 106 KB

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