SDL_egl.h 72 KB

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