SDL_egl.h 106 KB

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