eglew.h 121 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051
  1. /*
  2. ** The OpenGL Extension Wrangler Library
  3. ** Copyright (C) 2008-2019, Nigel Stewart <nigels[]users sourceforge net>
  4. ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  6. ** Copyright (C) 2002, Lev Povalahev
  7. ** All rights reserved.
  8. **
  9. ** Redistribution and use in source and binary forms, with or without
  10. ** modification, are permitted provided that the following conditions are met:
  11. **
  12. ** * Redistributions of source code must retain the above copyright notice,
  13. ** this list of conditions and the following disclaimer.
  14. ** * Redistributions in binary form must reproduce the above copyright notice,
  15. ** this list of conditions and the following disclaimer in the documentation
  16. ** and/or other materials provided with the distribution.
  17. ** * The name of the author may be used to endorse or promote products
  18. ** derived from this software without specific prior written permission.
  19. **
  20. ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  24. ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26. ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27. ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28. ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  30. ** THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. /*
  33. * Mesa 3-D graphics library
  34. * Version: 7.0
  35. *
  36. * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
  37. *
  38. * Permission is hereby granted, free of charge, to any person obtaining a
  39. * copy of this software and associated documentation files (the "Software"),
  40. * to deal in the Software without restriction, including without limitation
  41. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  42. * and/or sell copies of the Software, and to permit persons to whom the
  43. * Software is furnished to do so, subject to the following conditions:
  44. *
  45. * The above copyright notice and this permission notice shall be included
  46. * in all copies or substantial portions of the Software.
  47. *
  48. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  49. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  50. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  51. * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  52. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  53. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  54. */
  55. /*
  56. ** Copyright (c) 2007 The Khronos Group Inc.
  57. **
  58. ** Permission is hereby granted, free of charge, to any person obtaining a
  59. ** copy of this software and/or associated documentation files (the
  60. ** "Materials"), to deal in the Materials without restriction, including
  61. ** without limitation the rights to use, copy, modify, merge, publish,
  62. ** distribute, sublicense, and/or sell copies of the Materials, and to
  63. ** permit persons to whom the Materials are furnished to do so, subject to
  64. ** the following conditions:
  65. **
  66. ** The above copyright notice and this permission notice shall be included
  67. ** in all copies or substantial portions of the Materials.
  68. **
  69. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  70. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  71. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  72. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  73. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  74. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  75. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  76. */
  77. #ifndef __eglew_h__
  78. #define __eglew_h__
  79. #define __EGLEW_H__
  80. #ifdef __eglext_h_
  81. #error eglext.h included before eglew.h
  82. #endif
  83. #if defined(__egl_h_)
  84. #error egl.h included before eglew.h
  85. #endif
  86. #define __eglext_h_
  87. #define __egl_h_
  88. #ifndef EGLAPIENTRY
  89. #define EGLAPIENTRY
  90. #endif
  91. #ifndef EGLAPI
  92. #define EGLAPI extern
  93. #endif
  94. /* EGL Types */
  95. #include <sys/types.h>
  96. #include <KHR/khrplatform.h>
  97. #include <EGL/eglplatform.h>
  98. #ifndef GLEW_INCLUDE
  99. # include <GL/glew.h>
  100. #else
  101. # include GLEW_INCLUDE
  102. #endif
  103. #ifdef __cplusplus
  104. extern "C" {
  105. #endif
  106. typedef int32_t EGLint;
  107. typedef unsigned int EGLBoolean;
  108. typedef void *EGLDisplay;
  109. typedef void *EGLConfig;
  110. typedef void *EGLSurface;
  111. typedef void *EGLContext;
  112. typedef void (*__eglMustCastToProperFunctionPointerType)(void);
  113. typedef unsigned int EGLenum;
  114. typedef void *EGLClientBuffer;
  115. typedef void *EGLSync;
  116. typedef intptr_t EGLAttrib;
  117. typedef khronos_utime_nanoseconds_t EGLTime;
  118. typedef void *EGLImage;
  119. typedef void *EGLSyncKHR;
  120. typedef intptr_t EGLAttribKHR;
  121. typedef void *EGLLabelKHR;
  122. typedef void *EGLObjectKHR;
  123. typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
  124. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  125. typedef void *EGLImageKHR;
  126. typedef void *EGLStreamKHR;
  127. typedef khronos_uint64_t EGLuint64KHR;
  128. typedef int EGLNativeFileDescriptorKHR;
  129. typedef khronos_ssize_t EGLsizeiANDROID;
  130. typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
  131. typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
  132. typedef void *EGLDeviceEXT;
  133. typedef void *EGLOutputLayerEXT;
  134. typedef void *EGLOutputPortEXT;
  135. typedef void *EGLSyncNV;
  136. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  137. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  138. typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
  139. struct EGLClientPixmapHI;
  140. struct AHardwareBuffer;
  141. #define EGL_DONT_CARE ((EGLint)-1)
  142. #define EGL_NO_CONTEXT ((EGLContext)0)
  143. #define EGL_NO_DISPLAY ((EGLDisplay)0)
  144. #define EGL_NO_IMAGE ((EGLImage)0)
  145. #define EGL_NO_SURFACE ((EGLSurface)0)
  146. #define EGL_NO_SYNC ((EGLSync)0)
  147. #define EGL_UNKNOWN ((EGLint)-1)
  148. #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
  149. EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
  150. /* ---------------------------- EGL_VERSION_1_0 ---------------------------- */
  151. #ifndef EGL_VERSION_1_0
  152. #define EGL_VERSION_1_0 1
  153. #define EGL_FALSE 0
  154. #define EGL_PBUFFER_BIT 0x0001
  155. #define EGL_TRUE 1
  156. #define EGL_PIXMAP_BIT 0x0002
  157. #define EGL_WINDOW_BIT 0x0004
  158. #define EGL_SUCCESS 0x3000
  159. #define EGL_NOT_INITIALIZED 0x3001
  160. #define EGL_BAD_ACCESS 0x3002
  161. #define EGL_BAD_ALLOC 0x3003
  162. #define EGL_BAD_ATTRIBUTE 0x3004
  163. #define EGL_BAD_CONFIG 0x3005
  164. #define EGL_BAD_CONTEXT 0x3006
  165. #define EGL_BAD_CURRENT_SURFACE 0x3007
  166. #define EGL_BAD_DISPLAY 0x3008
  167. #define EGL_BAD_MATCH 0x3009
  168. #define EGL_BAD_NATIVE_PIXMAP 0x300A
  169. #define EGL_BAD_NATIVE_WINDOW 0x300B
  170. #define EGL_BAD_PARAMETER 0x300C
  171. #define EGL_BAD_SURFACE 0x300D
  172. #define EGL_BUFFER_SIZE 0x3020
  173. #define EGL_ALPHA_SIZE 0x3021
  174. #define EGL_BLUE_SIZE 0x3022
  175. #define EGL_GREEN_SIZE 0x3023
  176. #define EGL_RED_SIZE 0x3024
  177. #define EGL_DEPTH_SIZE 0x3025
  178. #define EGL_STENCIL_SIZE 0x3026
  179. #define EGL_CONFIG_CAVEAT 0x3027
  180. #define EGL_CONFIG_ID 0x3028
  181. #define EGL_LEVEL 0x3029
  182. #define EGL_MAX_PBUFFER_HEIGHT 0x302A
  183. #define EGL_MAX_PBUFFER_PIXELS 0x302B
  184. #define EGL_MAX_PBUFFER_WIDTH 0x302C
  185. #define EGL_NATIVE_RENDERABLE 0x302D
  186. #define EGL_NATIVE_VISUAL_ID 0x302E
  187. #define EGL_NATIVE_VISUAL_TYPE 0x302F
  188. #define EGL_SAMPLES 0x3031
  189. #define EGL_SAMPLE_BUFFERS 0x3032
  190. #define EGL_SURFACE_TYPE 0x3033
  191. #define EGL_TRANSPARENT_TYPE 0x3034
  192. #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
  193. #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
  194. #define EGL_TRANSPARENT_RED_VALUE 0x3037
  195. #define EGL_NONE 0x3038
  196. #define EGL_SLOW_CONFIG 0x3050
  197. #define EGL_NON_CONFORMANT_CONFIG 0x3051
  198. #define EGL_TRANSPARENT_RGB 0x3052
  199. #define EGL_VENDOR 0x3053
  200. #define EGL_VERSION 0x3054
  201. #define EGL_EXTENSIONS 0x3055
  202. #define EGL_HEIGHT 0x3056
  203. #define EGL_WIDTH 0x3057
  204. #define EGL_LARGEST_PBUFFER 0x3058
  205. #define EGL_DRAW 0x3059
  206. #define EGL_READ 0x305A
  207. #define EGL_CORE_NATIVE_ENGINE 0x305B
  208. typedef EGLBoolean ( * PFNEGLCHOOSECONFIGPROC) (EGLDisplay dpy, const EGLint * attrib_list, EGLConfig * configs, EGLint config_size, EGLint * num_config);
  209. typedef EGLBoolean ( * PFNEGLCOPYBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
  210. typedef EGLContext ( * PFNEGLCREATECONTEXTPROC) (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint * attrib_list);
  211. typedef EGLSurface ( * PFNEGLCREATEPBUFFERSURFACEPROC) (EGLDisplay dpy, EGLConfig config, const EGLint * attrib_list);
  212. typedef EGLSurface ( * PFNEGLCREATEPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint * attrib_list);
  213. typedef EGLSurface ( * PFNEGLCREATEWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint * attrib_list);
  214. typedef EGLBoolean ( * PFNEGLDESTROYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx);
  215. typedef EGLBoolean ( * PFNEGLDESTROYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface);
  216. typedef EGLBoolean ( * PFNEGLGETCONFIGATTRIBPROC) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint * value);
  217. typedef EGLBoolean ( * PFNEGLGETCONFIGSPROC) (EGLDisplay dpy, EGLConfig * configs, EGLint config_size, EGLint * num_config);
  218. typedef EGLDisplay ( * PFNEGLGETCURRENTDISPLAYPROC) ( void );
  219. typedef EGLSurface ( * PFNEGLGETCURRENTSURFACEPROC) (EGLint readdraw);
  220. typedef EGLDisplay ( * PFNEGLGETDISPLAYPROC) (EGLNativeDisplayType display_id);
  221. typedef EGLint ( * PFNEGLGETERRORPROC) ( void );
  222. typedef EGLBoolean ( * PFNEGLINITIALIZEPROC) (EGLDisplay dpy, EGLint * major, EGLint * minor);
  223. typedef EGLBoolean ( * PFNEGLMAKECURRENTPROC) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
  224. typedef EGLBoolean ( * PFNEGLQUERYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint * value);
  225. typedef const char * ( * PFNEGLQUERYSTRINGPROC) (EGLDisplay dpy, EGLint name);
  226. typedef EGLBoolean ( * PFNEGLQUERYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint * value);
  227. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface);
  228. typedef EGLBoolean ( * PFNEGLTERMINATEPROC) (EGLDisplay dpy);
  229. typedef EGLBoolean ( * PFNEGLWAITGLPROC) ( void );
  230. typedef EGLBoolean ( * PFNEGLWAITNATIVEPROC) (EGLint engine);
  231. #define eglChooseConfig EGLEW_GET_FUN(__eglewChooseConfig)
  232. #define eglCopyBuffers EGLEW_GET_FUN(__eglewCopyBuffers)
  233. #define eglCreateContext EGLEW_GET_FUN(__eglewCreateContext)
  234. #define eglCreatePbufferSurface EGLEW_GET_FUN(__eglewCreatePbufferSurface)
  235. #define eglCreatePixmapSurface EGLEW_GET_FUN(__eglewCreatePixmapSurface)
  236. #define eglCreateWindowSurface EGLEW_GET_FUN(__eglewCreateWindowSurface)
  237. #define eglDestroyContext EGLEW_GET_FUN(__eglewDestroyContext)
  238. #define eglDestroySurface EGLEW_GET_FUN(__eglewDestroySurface)
  239. #define eglGetConfigAttrib EGLEW_GET_FUN(__eglewGetConfigAttrib)
  240. #define eglGetConfigs EGLEW_GET_FUN(__eglewGetConfigs)
  241. #define eglGetCurrentDisplay EGLEW_GET_FUN(__eglewGetCurrentDisplay)
  242. #define eglGetCurrentSurface EGLEW_GET_FUN(__eglewGetCurrentSurface)
  243. #define eglGetDisplay EGLEW_GET_FUN(__eglewGetDisplay)
  244. #define eglGetError EGLEW_GET_FUN(__eglewGetError)
  245. #define eglInitialize EGLEW_GET_FUN(__eglewInitialize)
  246. #define eglMakeCurrent EGLEW_GET_FUN(__eglewMakeCurrent)
  247. #define eglQueryContext EGLEW_GET_FUN(__eglewQueryContext)
  248. #define eglQueryString EGLEW_GET_FUN(__eglewQueryString)
  249. #define eglQuerySurface EGLEW_GET_FUN(__eglewQuerySurface)
  250. #define eglSwapBuffers EGLEW_GET_FUN(__eglewSwapBuffers)
  251. #define eglTerminate EGLEW_GET_FUN(__eglewTerminate)
  252. #define eglWaitGL EGLEW_GET_FUN(__eglewWaitGL)
  253. #define eglWaitNative EGLEW_GET_FUN(__eglewWaitNative)
  254. #define EGLEW_VERSION_1_0 EGLEW_GET_VAR(__EGLEW_VERSION_1_0)
  255. #endif /* EGL_VERSION_1_0 */
  256. /* ---------------------------- EGL_VERSION_1_1 ---------------------------- */
  257. #ifndef EGL_VERSION_1_1
  258. #define EGL_VERSION_1_1 1
  259. #define EGL_CONTEXT_LOST 0x300E
  260. #define EGL_BIND_TO_TEXTURE_RGB 0x3039
  261. #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
  262. #define EGL_MIN_SWAP_INTERVAL 0x303B
  263. #define EGL_MAX_SWAP_INTERVAL 0x303C
  264. #define EGL_NO_TEXTURE 0x305C
  265. #define EGL_TEXTURE_RGB 0x305D
  266. #define EGL_TEXTURE_RGBA 0x305E
  267. #define EGL_TEXTURE_2D 0x305F
  268. #define EGL_TEXTURE_FORMAT 0x3080
  269. #define EGL_TEXTURE_TARGET 0x3081
  270. #define EGL_MIPMAP_TEXTURE 0x3082
  271. #define EGL_MIPMAP_LEVEL 0x3083
  272. #define EGL_BACK_BUFFER 0x3084
  273. typedef EGLBoolean ( * PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
  274. typedef EGLBoolean ( * PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
  275. typedef EGLBoolean ( * PFNEGLSURFACEATTRIBPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
  276. typedef EGLBoolean ( * PFNEGLSWAPINTERVALPROC) (EGLDisplay dpy, EGLint interval);
  277. #define eglBindTexImage EGLEW_GET_FUN(__eglewBindTexImage)
  278. #define eglReleaseTexImage EGLEW_GET_FUN(__eglewReleaseTexImage)
  279. #define eglSurfaceAttrib EGLEW_GET_FUN(__eglewSurfaceAttrib)
  280. #define eglSwapInterval EGLEW_GET_FUN(__eglewSwapInterval)
  281. #define EGLEW_VERSION_1_1 EGLEW_GET_VAR(__EGLEW_VERSION_1_1)
  282. #endif /* EGL_VERSION_1_1 */
  283. /* ---------------------------- EGL_VERSION_1_2 ---------------------------- */
  284. #ifndef EGL_VERSION_1_2
  285. #define EGL_VERSION_1_2 1
  286. #define EGL_OPENGL_ES_BIT 0x0001
  287. #define EGL_OPENVG_BIT 0x0002
  288. #define EGL_LUMINANCE_SIZE 0x303D
  289. #define EGL_ALPHA_MASK_SIZE 0x303E
  290. #define EGL_COLOR_BUFFER_TYPE 0x303F
  291. #define EGL_RENDERABLE_TYPE 0x3040
  292. #define EGL_SINGLE_BUFFER 0x3085
  293. #define EGL_RENDER_BUFFER 0x3086
  294. #define EGL_COLORSPACE 0x3087
  295. #define EGL_ALPHA_FORMAT 0x3088
  296. #define EGL_COLORSPACE_LINEAR 0x308A
  297. #define EGL_ALPHA_FORMAT_NONPRE 0x308B
  298. #define EGL_ALPHA_FORMAT_PRE 0x308C
  299. #define EGL_CLIENT_APIS 0x308D
  300. #define EGL_RGB_BUFFER 0x308E
  301. #define EGL_LUMINANCE_BUFFER 0x308F
  302. #define EGL_HORIZONTAL_RESOLUTION 0x3090
  303. #define EGL_VERTICAL_RESOLUTION 0x3091
  304. #define EGL_PIXEL_ASPECT_RATIO 0x3092
  305. #define EGL_SWAP_BEHAVIOR 0x3093
  306. #define EGL_BUFFER_PRESERVED 0x3094
  307. #define EGL_BUFFER_DESTROYED 0x3095
  308. #define EGL_OPENVG_IMAGE 0x3096
  309. #define EGL_CONTEXT_CLIENT_TYPE 0x3097
  310. #define EGL_OPENGL_ES_API 0x30A0
  311. #define EGL_OPENVG_API 0x30A1
  312. #define EGL_DISPLAY_SCALING 10000
  313. typedef EGLBoolean ( * PFNEGLBINDAPIPROC) (EGLenum api);
  314. typedef EGLSurface ( * PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint * attrib_list);
  315. typedef EGLenum ( * PFNEGLQUERYAPIPROC) ( void );
  316. typedef EGLBoolean ( * PFNEGLRELEASETHREADPROC) ( void );
  317. typedef EGLBoolean ( * PFNEGLWAITCLIENTPROC) ( void );
  318. #define eglBindAPI EGLEW_GET_FUN(__eglewBindAPI)
  319. #define eglCreatePbufferFromClientBuffer EGLEW_GET_FUN(__eglewCreatePbufferFromClientBuffer)
  320. #define eglQueryAPI EGLEW_GET_FUN(__eglewQueryAPI)
  321. #define eglReleaseThread EGLEW_GET_FUN(__eglewReleaseThread)
  322. #define eglWaitClient EGLEW_GET_FUN(__eglewWaitClient)
  323. #define EGLEW_VERSION_1_2 EGLEW_GET_VAR(__EGLEW_VERSION_1_2)
  324. #endif /* EGL_VERSION_1_2 */
  325. /* ---------------------------- EGL_VERSION_1_3 ---------------------------- */
  326. #ifndef EGL_VERSION_1_3
  327. #define EGL_VERSION_1_3 1
  328. #define EGL_OPENGL_ES2_BIT 0x0004
  329. #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
  330. #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
  331. #define EGL_MATCH_NATIVE_PIXMAP 0x3041
  332. #define EGL_CONFORMANT 0x3042
  333. #define EGL_VG_COLORSPACE 0x3087
  334. #define EGL_VG_ALPHA_FORMAT 0x3088
  335. #define EGL_VG_COLORSPACE_LINEAR 0x308A
  336. #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
  337. #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
  338. #define EGL_CONTEXT_CLIENT_VERSION 0x3098
  339. #define EGLEW_VERSION_1_3 EGLEW_GET_VAR(__EGLEW_VERSION_1_3)
  340. #endif /* EGL_VERSION_1_3 */
  341. /* ---------------------------- EGL_VERSION_1_4 ---------------------------- */
  342. #ifndef EGL_VERSION_1_4
  343. #define EGL_VERSION_1_4 1
  344. #define EGL_OPENGL_BIT 0x0008
  345. #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
  346. #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
  347. #define EGL_MULTISAMPLE_RESOLVE 0x3099
  348. #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
  349. #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
  350. #define EGL_OPENGL_API 0x30A2
  351. typedef EGLContext ( * PFNEGLGETCURRENTCONTEXTPROC) ( void );
  352. #define eglGetCurrentContext EGLEW_GET_FUN(__eglewGetCurrentContext)
  353. #define EGLEW_VERSION_1_4 EGLEW_GET_VAR(__EGLEW_VERSION_1_4)
  354. #endif /* EGL_VERSION_1_4 */
  355. /* ---------------------------- EGL_VERSION_1_5 ---------------------------- */
  356. #ifndef EGL_VERSION_1_5
  357. #define EGL_VERSION_1_5 1
  358. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
  359. #define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
  360. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
  361. #define EGL_OPENGL_ES3_BIT 0x00000040
  362. #define EGL_GL_COLORSPACE_SRGB 0x3089
  363. #define EGL_GL_COLORSPACE_LINEAR 0x308A
  364. #define EGL_CONTEXT_MAJOR_VERSION 0x3098
  365. #define EGL_CL_EVENT_HANDLE 0x309C
  366. #define EGL_GL_COLORSPACE 0x309D
  367. #define EGL_GL_TEXTURE_2D 0x30B1
  368. #define EGL_GL_TEXTURE_3D 0x30B2
  369. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
  370. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
  371. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
  372. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
  373. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
  374. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
  375. #define EGL_GL_RENDERBUFFER 0x30B9
  376. #define EGL_GL_TEXTURE_LEVEL 0x30BC
  377. #define EGL_GL_TEXTURE_ZOFFSET 0x30BD
  378. #define EGL_IMAGE_PRESERVED 0x30D2
  379. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
  380. #define EGL_SYNC_STATUS 0x30F1
  381. #define EGL_SIGNALED 0x30F2
  382. #define EGL_UNSIGNALED 0x30F3
  383. #define EGL_TIMEOUT_EXPIRED 0x30F5
  384. #define EGL_CONDITION_SATISFIED 0x30F6
  385. #define EGL_SYNC_TYPE 0x30F7
  386. #define EGL_SYNC_CONDITION 0x30F8
  387. #define EGL_SYNC_FENCE 0x30F9
  388. #define EGL_CONTEXT_MINOR_VERSION 0x30FB
  389. #define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
  390. #define EGL_SYNC_CL_EVENT 0x30FE
  391. #define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
  392. #define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
  393. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
  394. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
  395. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
  396. #define EGL_NO_RESET_NOTIFICATION 0x31BE
  397. #define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
  398. #define EGL_FOREVER 0xFFFFFFFFFFFFFFFF
  399. typedef EGLint ( * PFNEGLCLIENTWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
  400. typedef EGLImage ( * PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib * attrib_list);
  401. typedef EGLSurface ( * PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLAttrib * attrib_list);
  402. typedef EGLSurface ( * PFNEGLCREATEPLATFORMWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLAttrib * attrib_list);
  403. typedef EGLSync ( * PFNEGLCREATESYNCPROC) (EGLDisplay dpy, EGLenum type, const EGLAttrib * attrib_list);
  404. typedef EGLBoolean ( * PFNEGLDESTROYIMAGEPROC) (EGLDisplay dpy, EGLImage image);
  405. typedef EGLBoolean ( * PFNEGLDESTROYSYNCPROC) (EGLDisplay dpy, EGLSync sync);
  406. typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void * native_display, const EGLAttrib * attrib_list);
  407. typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBPROC) (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib * value);
  408. typedef EGLBoolean ( * PFNEGLWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags);
  409. #define eglClientWaitSync EGLEW_GET_FUN(__eglewClientWaitSync)
  410. #define eglCreateImage EGLEW_GET_FUN(__eglewCreateImage)
  411. #define eglCreatePlatformPixmapSurface EGLEW_GET_FUN(__eglewCreatePlatformPixmapSurface)
  412. #define eglCreatePlatformWindowSurface EGLEW_GET_FUN(__eglewCreatePlatformWindowSurface)
  413. #define eglCreateSync EGLEW_GET_FUN(__eglewCreateSync)
  414. #define eglDestroyImage EGLEW_GET_FUN(__eglewDestroyImage)
  415. #define eglDestroySync EGLEW_GET_FUN(__eglewDestroySync)
  416. #define eglGetPlatformDisplay EGLEW_GET_FUN(__eglewGetPlatformDisplay)
  417. #define eglGetSyncAttrib EGLEW_GET_FUN(__eglewGetSyncAttrib)
  418. #define eglWaitSync EGLEW_GET_FUN(__eglewWaitSync)
  419. #define EGLEW_VERSION_1_5 EGLEW_GET_VAR(__EGLEW_VERSION_1_5)
  420. #endif /* EGL_VERSION_1_5 */
  421. /* ------------------------ EGL_ANDROID_GLES_layers ------------------------ */
  422. #ifndef EGL_ANDROID_GLES_layers
  423. #define EGL_ANDROID_GLES_layers 1
  424. #define EGLEW_ANDROID_GLES_layers EGLEW_GET_VAR(__EGLEW_ANDROID_GLES_layers)
  425. #endif /* EGL_ANDROID_GLES_layers */
  426. /* ------------------------- EGL_ANDROID_blob_cache ------------------------ */
  427. #ifndef EGL_ANDROID_blob_cache
  428. #define EGL_ANDROID_blob_cache 1
  429. typedef void ( * PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  430. #define eglSetBlobCacheFuncsANDROID EGLEW_GET_FUN(__eglewSetBlobCacheFuncsANDROID)
  431. #define EGLEW_ANDROID_blob_cache EGLEW_GET_VAR(__EGLEW_ANDROID_blob_cache)
  432. #endif /* EGL_ANDROID_blob_cache */
  433. /* ---------------- EGL_ANDROID_create_native_client_buffer ---------------- */
  434. #ifndef EGL_ANDROID_create_native_client_buffer
  435. #define EGL_ANDROID_create_native_client_buffer 1
  436. #define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
  437. #define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
  438. #define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
  439. #define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
  440. typedef EGLClientBuffer ( * PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint* attrib_list);
  441. #define eglCreateNativeClientBufferANDROID EGLEW_GET_FUN(__eglewCreateNativeClientBufferANDROID)
  442. #define EGLEW_ANDROID_create_native_client_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_create_native_client_buffer)
  443. #endif /* EGL_ANDROID_create_native_client_buffer */
  444. /* --------------------- EGL_ANDROID_framebuffer_target -------------------- */
  445. #ifndef EGL_ANDROID_framebuffer_target
  446. #define EGL_ANDROID_framebuffer_target 1
  447. #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
  448. #define EGLEW_ANDROID_framebuffer_target EGLEW_GET_VAR(__EGLEW_ANDROID_framebuffer_target)
  449. #endif /* EGL_ANDROID_framebuffer_target */
  450. /* ----------------- EGL_ANDROID_front_buffer_auto_refresh ----------------- */
  451. #ifndef EGL_ANDROID_front_buffer_auto_refresh
  452. #define EGL_ANDROID_front_buffer_auto_refresh 1
  453. #define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
  454. #define EGLEW_ANDROID_front_buffer_auto_refresh EGLEW_GET_VAR(__EGLEW_ANDROID_front_buffer_auto_refresh)
  455. #endif /* EGL_ANDROID_front_buffer_auto_refresh */
  456. /* -------------------- EGL_ANDROID_get_frame_timestamps ------------------- */
  457. #ifndef EGL_ANDROID_get_frame_timestamps
  458. #define EGL_ANDROID_get_frame_timestamps 1
  459. #define EGL_TIMESTAMPS_ANDROID 0x3430
  460. #define EGL_COMPOSITE_DEADLINE_ANDROID 0x3431
  461. #define EGL_COMPOSITE_INTERVAL_ANDROID 0x3432
  462. #define EGL_COMPOSITE_TO_PRESENT_LATENCY_ANDROID 0x3433
  463. #define EGL_REQUESTED_PRESENT_TIME_ANDROID 0x3434
  464. #define EGL_RENDERING_COMPLETE_TIME_ANDROID 0x3435
  465. #define EGL_COMPOSITION_LATCH_TIME_ANDROID 0x3436
  466. #define EGL_FIRST_COMPOSITION_START_TIME_ANDROID 0x3437
  467. #define EGL_LAST_COMPOSITION_START_TIME_ANDROID 0x3438
  468. #define EGL_FIRST_COMPOSITION_GPU_FINISHED_TIME_ANDROID 0x3439
  469. #define EGL_DISPLAY_PRESENT_TIME_ANDROID 0x343A
  470. #define EGL_DEQUEUE_READY_TIME_ANDROID 0x343B
  471. #define EGL_READS_DONE_TIME_ANDROID 0x343C
  472. typedef EGLBoolean ( * PFNEGLGETCOMPOSITORTIMINGANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numTimestamps, const EGLint* names, EGLnsecsANDROID* values);
  473. typedef EGLBoolean ( * PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint name);
  474. typedef EGLBoolean ( * PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLint timestamp);
  475. typedef EGLBoolean ( * PFNEGLGETFRAMETIMESTAMPSANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR frameId, EGLint numTimestamps, const EGLint* timestamps, EGLnsecsANDROID* values);
  476. typedef EGLBoolean ( * PFNEGLGETNEXTFRAMEIDANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLuint64KHR* frameId);
  477. #define eglGetCompositorTimingANDROID EGLEW_GET_FUN(__eglewGetCompositorTimingANDROID)
  478. #define eglGetCompositorTimingSupportedANDROID EGLEW_GET_FUN(__eglewGetCompositorTimingSupportedANDROID)
  479. #define eglGetFrameTimestampSupportedANDROID EGLEW_GET_FUN(__eglewGetFrameTimestampSupportedANDROID)
  480. #define eglGetFrameTimestampsANDROID EGLEW_GET_FUN(__eglewGetFrameTimestampsANDROID)
  481. #define eglGetNextFrameIdANDROID EGLEW_GET_FUN(__eglewGetNextFrameIdANDROID)
  482. #define EGLEW_ANDROID_get_frame_timestamps EGLEW_GET_VAR(__EGLEW_ANDROID_get_frame_timestamps)
  483. #endif /* EGL_ANDROID_get_frame_timestamps */
  484. /* ------------------ EGL_ANDROID_get_native_client_buffer ----------------- */
  485. #ifndef EGL_ANDROID_get_native_client_buffer
  486. #define EGL_ANDROID_get_native_client_buffer 1
  487. typedef EGLClientBuffer ( * PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC) (const struct AHardwareBuffer* buffer);
  488. #define eglGetNativeClientBufferANDROID EGLEW_GET_FUN(__eglewGetNativeClientBufferANDROID)
  489. #define EGLEW_ANDROID_get_native_client_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_get_native_client_buffer)
  490. #endif /* EGL_ANDROID_get_native_client_buffer */
  491. /* -------------------- EGL_ANDROID_image_native_buffer -------------------- */
  492. #ifndef EGL_ANDROID_image_native_buffer
  493. #define EGL_ANDROID_image_native_buffer 1
  494. #define EGL_NATIVE_BUFFER_ANDROID 0x3140
  495. #define EGLEW_ANDROID_image_native_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_image_native_buffer)
  496. #endif /* EGL_ANDROID_image_native_buffer */
  497. /* --------------------- EGL_ANDROID_native_fence_sync --------------------- */
  498. #ifndef EGL_ANDROID_native_fence_sync
  499. #define EGL_ANDROID_native_fence_sync 1
  500. #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
  501. #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
  502. #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
  503. typedef EGLint ( * PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  504. #define eglDupNativeFenceFDANDROID EGLEW_GET_FUN(__eglewDupNativeFenceFDANDROID)
  505. #define EGLEW_ANDROID_native_fence_sync EGLEW_GET_VAR(__EGLEW_ANDROID_native_fence_sync)
  506. #endif /* EGL_ANDROID_native_fence_sync */
  507. /* --------------------- EGL_ANDROID_presentation_time --------------------- */
  508. #ifndef EGL_ANDROID_presentation_time
  509. #define EGL_ANDROID_presentation_time 1
  510. typedef EGLBoolean ( * PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
  511. #define eglPresentationTimeANDROID EGLEW_GET_FUN(__eglewPresentationTimeANDROID)
  512. #define EGLEW_ANDROID_presentation_time EGLEW_GET_VAR(__EGLEW_ANDROID_presentation_time)
  513. #endif /* EGL_ANDROID_presentation_time */
  514. /* ------------------------- EGL_ANDROID_recordable ------------------------ */
  515. #ifndef EGL_ANDROID_recordable
  516. #define EGL_ANDROID_recordable 1
  517. #define EGL_RECORDABLE_ANDROID 0x3142
  518. #define EGLEW_ANDROID_recordable EGLEW_GET_VAR(__EGLEW_ANDROID_recordable)
  519. #endif /* EGL_ANDROID_recordable */
  520. /* ---------------- EGL_ANGLE_d3d_share_handle_client_buffer --------------- */
  521. #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
  522. #define EGL_ANGLE_d3d_share_handle_client_buffer 1
  523. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  524. #define EGLEW_ANGLE_d3d_share_handle_client_buffer EGLEW_GET_VAR(__EGLEW_ANGLE_d3d_share_handle_client_buffer)
  525. #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
  526. /* -------------------------- EGL_ANGLE_device_d3d ------------------------- */
  527. #ifndef EGL_ANGLE_device_d3d
  528. #define EGL_ANGLE_device_d3d 1
  529. #define EGL_D3D9_DEVICE_ANGLE 0x33A0
  530. #define EGL_D3D11_DEVICE_ANGLE 0x33A1
  531. #define EGLEW_ANGLE_device_d3d EGLEW_GET_VAR(__EGLEW_ANGLE_device_d3d)
  532. #endif /* EGL_ANGLE_device_d3d */
  533. /* -------------------- EGL_ANGLE_query_surface_pointer -------------------- */
  534. #ifndef EGL_ANGLE_query_surface_pointer
  535. #define EGL_ANGLE_query_surface_pointer 1
  536. typedef EGLBoolean ( * PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void** value);
  537. #define eglQuerySurfacePointerANGLE EGLEW_GET_FUN(__eglewQuerySurfacePointerANGLE)
  538. #define EGLEW_ANGLE_query_surface_pointer EGLEW_GET_VAR(__EGLEW_ANGLE_query_surface_pointer)
  539. #endif /* EGL_ANGLE_query_surface_pointer */
  540. /* ------------- EGL_ANGLE_surface_d3d_texture_2d_share_handle ------------- */
  541. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  542. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  543. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  544. #define EGLEW_ANGLE_surface_d3d_texture_2d_share_handle EGLEW_GET_VAR(__EGLEW_ANGLE_surface_d3d_texture_2d_share_handle)
  545. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  546. /* ---------------------- EGL_ANGLE_window_fixed_size ---------------------- */
  547. #ifndef EGL_ANGLE_window_fixed_size
  548. #define EGL_ANGLE_window_fixed_size 1
  549. #define EGL_FIXED_SIZE_ANGLE 0x3201
  550. #define EGLEW_ANGLE_window_fixed_size EGLEW_GET_VAR(__EGLEW_ANGLE_window_fixed_size)
  551. #endif /* EGL_ANGLE_window_fixed_size */
  552. /* -------------------------- EGL_ARM_image_format ------------------------- */
  553. #ifndef EGL_ARM_image_format
  554. #define EGL_ARM_image_format 1
  555. #define EGL_COLOR_COMPONENT_TYPE_UNSIGNED_INTEGER_ARM 0x3287
  556. #define EGL_COLOR_COMPONENT_TYPE_INTEGER_ARM 0x3288
  557. #define EGLEW_ARM_image_format EGLEW_GET_VAR(__EGLEW_ARM_image_format)
  558. #endif /* EGL_ARM_image_format */
  559. /* --------------------- EGL_ARM_implicit_external_sync -------------------- */
  560. #ifndef EGL_ARM_implicit_external_sync
  561. #define EGL_ARM_implicit_external_sync 1
  562. #define EGL_SYNC_PRIOR_COMMANDS_IMPLICIT_EXTERNAL_ARM 0x328A
  563. #define EGLEW_ARM_implicit_external_sync EGLEW_GET_VAR(__EGLEW_ARM_implicit_external_sync)
  564. #endif /* EGL_ARM_implicit_external_sync */
  565. /* ------------------- EGL_ARM_pixmap_multisample_discard ------------------ */
  566. #ifndef EGL_ARM_pixmap_multisample_discard
  567. #define EGL_ARM_pixmap_multisample_discard 1
  568. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  569. #define EGLEW_ARM_pixmap_multisample_discard EGLEW_GET_VAR(__EGLEW_ARM_pixmap_multisample_discard)
  570. #endif /* EGL_ARM_pixmap_multisample_discard */
  571. /* ------------------------- EGL_EXT_bind_to_front ------------------------- */
  572. #ifndef EGL_EXT_bind_to_front
  573. #define EGL_EXT_bind_to_front 1
  574. #define EGL_FRONT_BUFFER_EXT 0x3464
  575. #define EGLEW_EXT_bind_to_front EGLEW_GET_VAR(__EGLEW_EXT_bind_to_front)
  576. #endif /* EGL_EXT_bind_to_front */
  577. /* --------------------------- EGL_EXT_buffer_age -------------------------- */
  578. #ifndef EGL_EXT_buffer_age
  579. #define EGL_EXT_buffer_age 1
  580. #define EGL_BUFFER_AGE_EXT 0x313D
  581. #define EGLEW_EXT_buffer_age EGLEW_GET_VAR(__EGLEW_EXT_buffer_age)
  582. #endif /* EGL_EXT_buffer_age */
  583. /* ----------------------- EGL_EXT_client_extensions ----------------------- */
  584. #ifndef EGL_EXT_client_extensions
  585. #define EGL_EXT_client_extensions 1
  586. #define EGLEW_EXT_client_extensions EGLEW_GET_VAR(__EGLEW_EXT_client_extensions)
  587. #endif /* EGL_EXT_client_extensions */
  588. /* -------------------------- EGL_EXT_client_sync -------------------------- */
  589. #ifndef EGL_EXT_client_sync
  590. #define EGL_EXT_client_sync 1
  591. #define EGL_SYNC_CLIENT_EXT 0x3364
  592. #define EGL_SYNC_CLIENT_SIGNAL_EXT 0x3365
  593. typedef EGLBoolean ( * PFNEGLCLIENTSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib* attrib_list);
  594. #define eglClientSignalSyncEXT EGLEW_GET_FUN(__eglewClientSignalSyncEXT)
  595. #define EGLEW_EXT_client_sync EGLEW_GET_VAR(__EGLEW_EXT_client_sync)
  596. #endif /* EGL_EXT_client_sync */
  597. /* --------------------------- EGL_EXT_compositor -------------------------- */
  598. #ifndef EGL_EXT_compositor
  599. #define EGL_EXT_compositor 1
  600. #define EGL_PRIMARY_COMPOSITOR_CONTEXT_EXT 0x3460
  601. #define EGL_EXTERNAL_REF_ID_EXT 0x3461
  602. #define EGL_COMPOSITOR_DROP_NEWEST_FRAME_EXT 0x3462
  603. #define EGL_COMPOSITOR_KEEP_NEWEST_FRAME_EXT 0x3463
  604. typedef EGLBoolean ( * PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC) (EGLint external_win_id);
  605. typedef EGLBoolean ( * PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC) (EGLint external_ref_id, const EGLint* context_attributes, EGLint num_entries);
  606. typedef EGLBoolean ( * PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC) (const EGLint* external_ref_ids, EGLint num_entries);
  607. typedef EGLBoolean ( * PFNEGLCOMPOSITORSETSIZEEXTPROC) (EGLint external_win_id, EGLint width, EGLint height);
  608. typedef EGLBoolean ( * PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC) (EGLint external_win_id, const EGLint* window_attributes, EGLint num_entries);
  609. typedef EGLBoolean ( * PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC) (EGLint external_ref_id, const EGLint* external_win_ids, EGLint num_entries);
  610. typedef EGLBoolean ( * PFNEGLCOMPOSITORSWAPPOLICYEXTPROC) (EGLint external_win_id, EGLint policy);
  611. #define eglCompositorBindTexWindowEXT EGLEW_GET_FUN(__eglewCompositorBindTexWindowEXT)
  612. #define eglCompositorSetContextAttributesEXT EGLEW_GET_FUN(__eglewCompositorSetContextAttributesEXT)
  613. #define eglCompositorSetContextListEXT EGLEW_GET_FUN(__eglewCompositorSetContextListEXT)
  614. #define eglCompositorSetSizeEXT EGLEW_GET_FUN(__eglewCompositorSetSizeEXT)
  615. #define eglCompositorSetWindowAttributesEXT EGLEW_GET_FUN(__eglewCompositorSetWindowAttributesEXT)
  616. #define eglCompositorSetWindowListEXT EGLEW_GET_FUN(__eglewCompositorSetWindowListEXT)
  617. #define eglCompositorSwapPolicyEXT EGLEW_GET_FUN(__eglewCompositorSwapPolicyEXT)
  618. #define EGLEW_EXT_compositor EGLEW_GET_VAR(__EGLEW_EXT_compositor)
  619. #endif /* EGL_EXT_compositor */
  620. /* ------------------- EGL_EXT_create_context_robustness ------------------- */
  621. #ifndef EGL_EXT_create_context_robustness
  622. #define EGL_EXT_create_context_robustness 1
  623. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  624. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  625. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  626. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  627. #define EGLEW_EXT_create_context_robustness EGLEW_GET_VAR(__EGLEW_EXT_create_context_robustness)
  628. #endif /* EGL_EXT_create_context_robustness */
  629. /* -------------------------- EGL_EXT_device_base -------------------------- */
  630. #ifndef EGL_EXT_device_base
  631. #define EGL_EXT_device_base 1
  632. #define EGL_BAD_DEVICE_EXT 0x322B
  633. #define EGL_DEVICE_EXT 0x322C
  634. #define EGLEW_EXT_device_base EGLEW_GET_VAR(__EGLEW_EXT_device_base)
  635. #endif /* EGL_EXT_device_base */
  636. /* --------------------------- EGL_EXT_device_drm -------------------------- */
  637. #ifndef EGL_EXT_device_drm
  638. #define EGL_EXT_device_drm 1
  639. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  640. #define EGL_DRM_MASTER_FD_EXT 0x333C
  641. #define EGLEW_EXT_device_drm EGLEW_GET_VAR(__EGLEW_EXT_device_drm)
  642. #endif /* EGL_EXT_device_drm */
  643. /* ----------------------- EGL_EXT_device_enumeration ---------------------- */
  644. #ifndef EGL_EXT_device_enumeration
  645. #define EGL_EXT_device_enumeration 1
  646. typedef EGLBoolean ( * PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT* devices, EGLint* num_devices);
  647. #define eglQueryDevicesEXT EGLEW_GET_FUN(__eglewQueryDevicesEXT)
  648. #define EGLEW_EXT_device_enumeration EGLEW_GET_VAR(__EGLEW_EXT_device_enumeration)
  649. #endif /* EGL_EXT_device_enumeration */
  650. /* ------------------------- EGL_EXT_device_openwf ------------------------- */
  651. #ifndef EGL_EXT_device_openwf
  652. #define EGL_EXT_device_openwf 1
  653. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  654. #define EGLEW_EXT_device_openwf EGLEW_GET_VAR(__EGLEW_EXT_device_openwf)
  655. #endif /* EGL_EXT_device_openwf */
  656. /* -------------------------- EGL_EXT_device_query ------------------------- */
  657. #ifndef EGL_EXT_device_query
  658. #define EGL_EXT_device_query 1
  659. #define EGL_BAD_DEVICE_EXT 0x322B
  660. #define EGL_DEVICE_EXT 0x322C
  661. typedef EGLBoolean ( * PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib* value);
  662. typedef const char* ( * PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  663. typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib* value);
  664. #define eglQueryDeviceAttribEXT EGLEW_GET_FUN(__eglewQueryDeviceAttribEXT)
  665. #define eglQueryDeviceStringEXT EGLEW_GET_FUN(__eglewQueryDeviceStringEXT)
  666. #define eglQueryDisplayAttribEXT EGLEW_GET_FUN(__eglewQueryDisplayAttribEXT)
  667. #define EGLEW_EXT_device_query EGLEW_GET_VAR(__EGLEW_EXT_device_query)
  668. #endif /* EGL_EXT_device_query */
  669. /* ------------------ EGL_EXT_gl_colorspace_bt2020_linear ------------------ */
  670. #ifndef EGL_EXT_gl_colorspace_bt2020_linear
  671. #define EGL_EXT_gl_colorspace_bt2020_linear 1
  672. #define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
  673. #define EGLEW_EXT_gl_colorspace_bt2020_linear EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_bt2020_linear)
  674. #endif /* EGL_EXT_gl_colorspace_bt2020_linear */
  675. /* -------------------- EGL_EXT_gl_colorspace_bt2020_pq -------------------- */
  676. #ifndef EGL_EXT_gl_colorspace_bt2020_pq
  677. #define EGL_EXT_gl_colorspace_bt2020_pq 1
  678. #define EGL_GL_COLORSPACE_BT2020_PQ_EXT 0x3340
  679. #define EGLEW_EXT_gl_colorspace_bt2020_pq EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_bt2020_pq)
  680. #endif /* EGL_EXT_gl_colorspace_bt2020_pq */
  681. /* -------------------- EGL_EXT_gl_colorspace_display_p3 ------------------- */
  682. #ifndef EGL_EXT_gl_colorspace_display_p3
  683. #define EGL_EXT_gl_colorspace_display_p3 1
  684. #define EGL_GL_COLORSPACE_DISPLAY_P3_EXT 0x3363
  685. #define EGLEW_EXT_gl_colorspace_display_p3 EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_display_p3)
  686. #endif /* EGL_EXT_gl_colorspace_display_p3 */
  687. /* ---------------- EGL_EXT_gl_colorspace_display_p3_linear ---------------- */
  688. #ifndef EGL_EXT_gl_colorspace_display_p3_linear
  689. #define EGL_EXT_gl_colorspace_display_p3_linear 1
  690. #define EGL_GL_COLORSPACE_DISPLAY_P3_LINEAR_EXT 0x3362
  691. #define EGLEW_EXT_gl_colorspace_display_p3_linear EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_display_p3_linear)
  692. #endif /* EGL_EXT_gl_colorspace_display_p3_linear */
  693. /* -------------- EGL_EXT_gl_colorspace_display_p3_passthrough ------------- */
  694. #ifndef EGL_EXT_gl_colorspace_display_p3_passthrough
  695. #define EGL_EXT_gl_colorspace_display_p3_passthrough 1
  696. #define EGL_GL_COLORSPACE_DISPLAY_P3_PASSTHROUGH_EXT 0x3490
  697. #define EGLEW_EXT_gl_colorspace_display_p3_passthrough EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_display_p3_passthrough)
  698. #endif /* EGL_EXT_gl_colorspace_display_p3_passthrough */
  699. /* ---------------------- EGL_EXT_gl_colorspace_scrgb ---------------------- */
  700. #ifndef EGL_EXT_gl_colorspace_scrgb
  701. #define EGL_EXT_gl_colorspace_scrgb 1
  702. #define EGL_GL_COLORSPACE_SCRGB_EXT 0x3351
  703. #define EGLEW_EXT_gl_colorspace_scrgb EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_scrgb)
  704. #endif /* EGL_EXT_gl_colorspace_scrgb */
  705. /* ------------------- EGL_EXT_gl_colorspace_scrgb_linear ------------------ */
  706. #ifndef EGL_EXT_gl_colorspace_scrgb_linear
  707. #define EGL_EXT_gl_colorspace_scrgb_linear 1
  708. #define EGL_GL_COLORSPACE_SCRGB_LINEAR_EXT 0x3350
  709. #define EGLEW_EXT_gl_colorspace_scrgb_linear EGLEW_GET_VAR(__EGLEW_EXT_gl_colorspace_scrgb_linear)
  710. #endif /* EGL_EXT_gl_colorspace_scrgb_linear */
  711. /* ---------------------- EGL_EXT_image_dma_buf_import --------------------- */
  712. #ifndef EGL_EXT_image_dma_buf_import
  713. #define EGL_EXT_image_dma_buf_import 1
  714. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  715. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  716. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  717. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  718. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  719. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  720. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  721. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  722. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  723. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  724. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  725. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  726. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  727. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  728. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  729. #define EGL_ITU_REC601_EXT 0x327F
  730. #define EGL_ITU_REC709_EXT 0x3280
  731. #define EGL_ITU_REC2020_EXT 0x3281
  732. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  733. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  734. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  735. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  736. #define EGLEW_EXT_image_dma_buf_import EGLEW_GET_VAR(__EGLEW_EXT_image_dma_buf_import)
  737. #endif /* EGL_EXT_image_dma_buf_import */
  738. /* ----------------- EGL_EXT_image_dma_buf_import_modifiers ---------------- */
  739. #ifndef EGL_EXT_image_dma_buf_import_modifiers
  740. #define EGL_EXT_image_dma_buf_import_modifiers 1
  741. #define EGL_DMA_BUF_PLANE3_FD_EXT 0x3440
  742. #define EGL_DMA_BUF_PLANE3_OFFSET_EXT 0x3441
  743. #define EGL_DMA_BUF_PLANE3_PITCH_EXT 0x3442
  744. #define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
  745. #define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
  746. #define EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT 0x3445
  747. #define EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT 0x3446
  748. #define EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT 0x3447
  749. #define EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT 0x3448
  750. #define EGL_DMA_BUF_PLANE3_MODIFIER_LO_EXT 0x3449
  751. #define EGL_DMA_BUF_PLANE3_MODIFIER_HI_EXT 0x344A
  752. typedef EGLBoolean ( * PFNEGLQUERYDMABUFFORMATSEXTPROC) (EGLDisplay dpy, EGLint max_formats, EGLint* formats, EGLint* num_formats);
  753. typedef EGLBoolean ( * PFNEGLQUERYDMABUFMODIFIERSEXTPROC) (EGLDisplay dpy, EGLint format, EGLint max_modifiers, EGLuint64KHR* modifiers, EGLBoolean* external_only, EGLint* num_modifiers);
  754. #define eglQueryDmaBufFormatsEXT EGLEW_GET_FUN(__eglewQueryDmaBufFormatsEXT)
  755. #define eglQueryDmaBufModifiersEXT EGLEW_GET_FUN(__eglewQueryDmaBufModifiersEXT)
  756. #define EGLEW_EXT_image_dma_buf_import_modifiers EGLEW_GET_VAR(__EGLEW_EXT_image_dma_buf_import_modifiers)
  757. #endif /* EGL_EXT_image_dma_buf_import_modifiers */
  758. /* ---------------------- EGL_EXT_image_gl_colorspace ---------------------- */
  759. #ifndef EGL_EXT_image_gl_colorspace
  760. #define EGL_EXT_image_gl_colorspace 1
  761. #define EGL_GL_COLORSPACE 0x309D
  762. #define EGL_GL_COLORSPACE_DEFAULT_EXT 0x314D
  763. #define EGLEW_EXT_image_gl_colorspace EGLEW_GET_VAR(__EGLEW_EXT_image_gl_colorspace)
  764. #endif /* EGL_EXT_image_gl_colorspace */
  765. /* ------------------ EGL_EXT_image_implicit_sync_control ------------------ */
  766. #ifndef EGL_EXT_image_implicit_sync_control
  767. #define EGL_EXT_image_implicit_sync_control 1
  768. #define EGL_IMPORT_SYNC_TYPE_EXT 0x3470
  769. #define EGL_IMPORT_IMPLICIT_SYNC_EXT 0x3471
  770. #define EGL_IMPORT_EXPLICIT_SYNC_EXT 0x3472
  771. #define EGLEW_EXT_image_implicit_sync_control EGLEW_GET_VAR(__EGLEW_EXT_image_implicit_sync_control)
  772. #endif /* EGL_EXT_image_implicit_sync_control */
  773. /* ------------------------ EGL_EXT_multiview_window ----------------------- */
  774. #ifndef EGL_EXT_multiview_window
  775. #define EGL_EXT_multiview_window 1
  776. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  777. #define EGLEW_EXT_multiview_window EGLEW_GET_VAR(__EGLEW_EXT_multiview_window)
  778. #endif /* EGL_EXT_multiview_window */
  779. /* -------------------------- EGL_EXT_output_base -------------------------- */
  780. #ifndef EGL_EXT_output_base
  781. #define EGL_EXT_output_base 1
  782. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  783. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  784. #define EGL_SWAP_INTERVAL_EXT 0x322F
  785. typedef EGLBoolean ( * PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib* attrib_list, EGLOutputLayerEXT* layers, EGLint max_layers, EGLint* num_layers);
  786. typedef EGLBoolean ( * PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib* attrib_list, EGLOutputPortEXT* ports, EGLint max_ports, EGLint* num_ports);
  787. typedef EGLBoolean ( * PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  788. typedef EGLBoolean ( * PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  789. typedef EGLBoolean ( * PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib* value);
  790. typedef const char* ( * PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  791. typedef EGLBoolean ( * PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib* value);
  792. typedef const char* ( * PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  793. #define eglGetOutputLayersEXT EGLEW_GET_FUN(__eglewGetOutputLayersEXT)
  794. #define eglGetOutputPortsEXT EGLEW_GET_FUN(__eglewGetOutputPortsEXT)
  795. #define eglOutputLayerAttribEXT EGLEW_GET_FUN(__eglewOutputLayerAttribEXT)
  796. #define eglOutputPortAttribEXT EGLEW_GET_FUN(__eglewOutputPortAttribEXT)
  797. #define eglQueryOutputLayerAttribEXT EGLEW_GET_FUN(__eglewQueryOutputLayerAttribEXT)
  798. #define eglQueryOutputLayerStringEXT EGLEW_GET_FUN(__eglewQueryOutputLayerStringEXT)
  799. #define eglQueryOutputPortAttribEXT EGLEW_GET_FUN(__eglewQueryOutputPortAttribEXT)
  800. #define eglQueryOutputPortStringEXT EGLEW_GET_FUN(__eglewQueryOutputPortStringEXT)
  801. #define EGLEW_EXT_output_base EGLEW_GET_VAR(__EGLEW_EXT_output_base)
  802. #endif /* EGL_EXT_output_base */
  803. /* --------------------------- EGL_EXT_output_drm -------------------------- */
  804. #ifndef EGL_EXT_output_drm
  805. #define EGL_EXT_output_drm 1
  806. #define EGL_DRM_CRTC_EXT 0x3234
  807. #define EGL_DRM_PLANE_EXT 0x3235
  808. #define EGL_DRM_CONNECTOR_EXT 0x3236
  809. #define EGLEW_EXT_output_drm EGLEW_GET_VAR(__EGLEW_EXT_output_drm)
  810. #endif /* EGL_EXT_output_drm */
  811. /* ------------------------- EGL_EXT_output_openwf ------------------------- */
  812. #ifndef EGL_EXT_output_openwf
  813. #define EGL_EXT_output_openwf 1
  814. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  815. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  816. #define EGLEW_EXT_output_openwf EGLEW_GET_VAR(__EGLEW_EXT_output_openwf)
  817. #endif /* EGL_EXT_output_openwf */
  818. /* ----------------------- EGL_EXT_pixel_format_float ---------------------- */
  819. #ifndef EGL_EXT_pixel_format_float
  820. #define EGL_EXT_pixel_format_float 1
  821. #define EGL_COLOR_COMPONENT_TYPE_EXT 0x3339
  822. #define EGL_COLOR_COMPONENT_TYPE_FIXED_EXT 0x333A
  823. #define EGL_COLOR_COMPONENT_TYPE_FLOAT_EXT 0x333B
  824. #define EGLEW_EXT_pixel_format_float EGLEW_GET_VAR(__EGLEW_EXT_pixel_format_float)
  825. #endif /* EGL_EXT_pixel_format_float */
  826. /* ------------------------- EGL_EXT_platform_base ------------------------- */
  827. #ifndef EGL_EXT_platform_base
  828. #define EGL_EXT_platform_base 1
  829. typedef EGLSurface ( * PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void* native_pixmap, const EGLint* attrib_list);
  830. typedef EGLSurface ( * PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void* native_window, const EGLint* attrib_list);
  831. typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void* native_display, const EGLint* attrib_list);
  832. #define eglCreatePlatformPixmapSurfaceEXT EGLEW_GET_FUN(__eglewCreatePlatformPixmapSurfaceEXT)
  833. #define eglCreatePlatformWindowSurfaceEXT EGLEW_GET_FUN(__eglewCreatePlatformWindowSurfaceEXT)
  834. #define eglGetPlatformDisplayEXT EGLEW_GET_FUN(__eglewGetPlatformDisplayEXT)
  835. #define EGLEW_EXT_platform_base EGLEW_GET_VAR(__EGLEW_EXT_platform_base)
  836. #endif /* EGL_EXT_platform_base */
  837. /* ------------------------ EGL_EXT_platform_device ------------------------ */
  838. #ifndef EGL_EXT_platform_device
  839. #define EGL_EXT_platform_device 1
  840. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  841. #define EGLEW_EXT_platform_device EGLEW_GET_VAR(__EGLEW_EXT_platform_device)
  842. #endif /* EGL_EXT_platform_device */
  843. /* ------------------------ EGL_EXT_platform_wayland ----------------------- */
  844. #ifndef EGL_EXT_platform_wayland
  845. #define EGL_EXT_platform_wayland 1
  846. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  847. #define EGLEW_EXT_platform_wayland EGLEW_GET_VAR(__EGLEW_EXT_platform_wayland)
  848. #endif /* EGL_EXT_platform_wayland */
  849. /* -------------------------- EGL_EXT_platform_x11 ------------------------- */
  850. #ifndef EGL_EXT_platform_x11
  851. #define EGL_EXT_platform_x11 1
  852. #define EGL_PLATFORM_X11_EXT 0x31D5
  853. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  854. #define EGLEW_EXT_platform_x11 EGLEW_GET_VAR(__EGLEW_EXT_platform_x11)
  855. #endif /* EGL_EXT_platform_x11 */
  856. /* ----------------------- EGL_EXT_protected_content ----------------------- */
  857. #ifndef EGL_EXT_protected_content
  858. #define EGL_EXT_protected_content 1
  859. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  860. #define EGLEW_EXT_protected_content EGLEW_GET_VAR(__EGLEW_EXT_protected_content)
  861. #endif /* EGL_EXT_protected_content */
  862. /* ----------------------- EGL_EXT_protected_surface ----------------------- */
  863. #ifndef EGL_EXT_protected_surface
  864. #define EGL_EXT_protected_surface 1
  865. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  866. #define EGLEW_EXT_protected_surface EGLEW_GET_VAR(__EGLEW_EXT_protected_surface)
  867. #endif /* EGL_EXT_protected_surface */
  868. /* ------------------- EGL_EXT_stream_consumer_egloutput ------------------- */
  869. #ifndef EGL_EXT_stream_consumer_egloutput
  870. #define EGL_EXT_stream_consumer_egloutput 1
  871. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  872. #define eglStreamConsumerOutputEXT EGLEW_GET_FUN(__eglewStreamConsumerOutputEXT)
  873. #define EGLEW_EXT_stream_consumer_egloutput EGLEW_GET_VAR(__EGLEW_EXT_stream_consumer_egloutput)
  874. #endif /* EGL_EXT_stream_consumer_egloutput */
  875. /* ------------------- EGL_EXT_surface_CTA861_3_metadata ------------------- */
  876. #ifndef EGL_EXT_surface_CTA861_3_metadata
  877. #define EGL_EXT_surface_CTA861_3_metadata 1
  878. #define EGL_CTA861_3_MAX_CONTENT_LIGHT_LEVEL_EXT 0x3360
  879. #define EGL_CTA861_3_MAX_FRAME_AVERAGE_LEVEL_EXT 0x3361
  880. #define EGLEW_EXT_surface_CTA861_3_metadata EGLEW_GET_VAR(__EGLEW_EXT_surface_CTA861_3_metadata)
  881. #endif /* EGL_EXT_surface_CTA861_3_metadata */
  882. /* ------------------- EGL_EXT_surface_SMPTE2086_metadata ------------------ */
  883. #ifndef EGL_EXT_surface_SMPTE2086_metadata
  884. #define EGL_EXT_surface_SMPTE2086_metadata 1
  885. #define EGL_SMPTE2086_DISPLAY_PRIMARY_RX_EXT 0x3341
  886. #define EGL_SMPTE2086_DISPLAY_PRIMARY_RY_EXT 0x3342
  887. #define EGL_SMPTE2086_DISPLAY_PRIMARY_GX_EXT 0x3343
  888. #define EGL_SMPTE2086_DISPLAY_PRIMARY_GY_EXT 0x3344
  889. #define EGL_SMPTE2086_DISPLAY_PRIMARY_BX_EXT 0x3345
  890. #define EGL_SMPTE2086_DISPLAY_PRIMARY_BY_EXT 0x3346
  891. #define EGL_SMPTE2086_WHITE_POINT_X_EXT 0x3347
  892. #define EGL_SMPTE2086_WHITE_POINT_Y_EXT 0x3348
  893. #define EGL_SMPTE2086_MAX_LUMINANCE_EXT 0x3349
  894. #define EGL_SMPTE2086_MIN_LUMINANCE_EXT 0x334A
  895. #define EGL_METADATA_SCALING_EXT 50000
  896. #define EGLEW_EXT_surface_SMPTE2086_metadata EGLEW_GET_VAR(__EGLEW_EXT_surface_SMPTE2086_metadata)
  897. #endif /* EGL_EXT_surface_SMPTE2086_metadata */
  898. /* -------------------- EGL_EXT_swap_buffers_with_damage ------------------- */
  899. #ifndef EGL_EXT_swap_buffers_with_damage
  900. #define EGL_EXT_swap_buffers_with_damage 1
  901. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint* rects, EGLint n_rects);
  902. #define eglSwapBuffersWithDamageEXT EGLEW_GET_FUN(__eglewSwapBuffersWithDamageEXT)
  903. #define EGLEW_EXT_swap_buffers_with_damage EGLEW_GET_VAR(__EGLEW_EXT_swap_buffers_with_damage)
  904. #endif /* EGL_EXT_swap_buffers_with_damage */
  905. /* --------------------------- EGL_EXT_sync_reuse -------------------------- */
  906. #ifndef EGL_EXT_sync_reuse
  907. #define EGL_EXT_sync_reuse 1
  908. typedef EGLBoolean ( * PFNEGLUNSIGNALSYNCEXTPROC) (EGLDisplay dpy, EGLSync sync, const EGLAttrib* attrib_list);
  909. #define eglUnsignalSyncEXT EGLEW_GET_FUN(__eglewUnsignalSyncEXT)
  910. #define EGLEW_EXT_sync_reuse EGLEW_GET_VAR(__EGLEW_EXT_sync_reuse)
  911. #endif /* EGL_EXT_sync_reuse */
  912. /* -------------------------- EGL_EXT_yuv_surface -------------------------- */
  913. #ifndef EGL_EXT_yuv_surface
  914. #define EGL_EXT_yuv_surface 1
  915. #define EGL_YUV_BUFFER_EXT 0x3300
  916. #define EGL_YUV_ORDER_EXT 0x3301
  917. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  918. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  919. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  920. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  921. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  922. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  923. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  924. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  925. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  926. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  927. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  928. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  929. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  930. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  931. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  932. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  933. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  934. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  935. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  936. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  937. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  938. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  939. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  940. #define EGLEW_EXT_yuv_surface EGLEW_GET_VAR(__EGLEW_EXT_yuv_surface)
  941. #endif /* EGL_EXT_yuv_surface */
  942. /* -------------------------- EGL_HI_clientpixmap -------------------------- */
  943. #ifndef EGL_HI_clientpixmap
  944. #define EGL_HI_clientpixmap 1
  945. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  946. typedef EGLSurface ( * PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI* pixmap);
  947. #define eglCreatePixmapSurfaceHI EGLEW_GET_FUN(__eglewCreatePixmapSurfaceHI)
  948. #define EGLEW_HI_clientpixmap EGLEW_GET_VAR(__EGLEW_HI_clientpixmap)
  949. #endif /* EGL_HI_clientpixmap */
  950. /* -------------------------- EGL_HI_colorformats -------------------------- */
  951. #ifndef EGL_HI_colorformats
  952. #define EGL_HI_colorformats 1
  953. #define EGL_COLOR_FORMAT_HI 0x8F70
  954. #define EGL_COLOR_RGB_HI 0x8F71
  955. #define EGL_COLOR_RGBA_HI 0x8F72
  956. #define EGL_COLOR_ARGB_HI 0x8F73
  957. #define EGLEW_HI_colorformats EGLEW_GET_VAR(__EGLEW_HI_colorformats)
  958. #endif /* EGL_HI_colorformats */
  959. /* ------------------------ EGL_IMG_context_priority ----------------------- */
  960. #ifndef EGL_IMG_context_priority
  961. #define EGL_IMG_context_priority 1
  962. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  963. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  964. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  965. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  966. #define EGLEW_IMG_context_priority EGLEW_GET_VAR(__EGLEW_IMG_context_priority)
  967. #endif /* EGL_IMG_context_priority */
  968. /* ---------------------- EGL_IMG_image_plane_attribs ---------------------- */
  969. #ifndef EGL_IMG_image_plane_attribs
  970. #define EGL_IMG_image_plane_attribs 1
  971. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  972. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  973. #define EGLEW_IMG_image_plane_attribs EGLEW_GET_VAR(__EGLEW_IMG_image_plane_attribs)
  974. #endif /* EGL_IMG_image_plane_attribs */
  975. /* ---------------------------- EGL_KHR_cl_event --------------------------- */
  976. #ifndef EGL_KHR_cl_event
  977. #define EGL_KHR_cl_event 1
  978. #define EGL_CL_EVENT_HANDLE_KHR 0x309C
  979. #define EGL_SYNC_CL_EVENT_KHR 0x30FE
  980. #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
  981. #define EGLEW_KHR_cl_event EGLEW_GET_VAR(__EGLEW_KHR_cl_event)
  982. #endif /* EGL_KHR_cl_event */
  983. /* --------------------------- EGL_KHR_cl_event2 --------------------------- */
  984. #ifndef EGL_KHR_cl_event2
  985. #define EGL_KHR_cl_event2 1
  986. #define EGL_CL_EVENT_HANDLE_KHR 0x309C
  987. #define EGL_SYNC_CL_EVENT_KHR 0x30FE
  988. #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
  989. typedef EGLSyncKHR ( * PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR* attrib_list);
  990. #define eglCreateSync64KHR EGLEW_GET_FUN(__eglewCreateSync64KHR)
  991. #define EGLEW_KHR_cl_event2 EGLEW_GET_VAR(__EGLEW_KHR_cl_event2)
  992. #endif /* EGL_KHR_cl_event2 */
  993. /* ----------------- EGL_KHR_client_get_all_proc_addresses ----------------- */
  994. #ifndef EGL_KHR_client_get_all_proc_addresses
  995. #define EGL_KHR_client_get_all_proc_addresses 1
  996. #define EGLEW_KHR_client_get_all_proc_addresses EGLEW_GET_VAR(__EGLEW_KHR_client_get_all_proc_addresses)
  997. #endif /* EGL_KHR_client_get_all_proc_addresses */
  998. /* ------------------------- EGL_KHR_config_attribs ------------------------ */
  999. #ifndef EGL_KHR_config_attribs
  1000. #define EGL_KHR_config_attribs 1
  1001. #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
  1002. #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
  1003. #define EGL_CONFORMANT_KHR 0x3042
  1004. #define EGLEW_KHR_config_attribs EGLEW_GET_VAR(__EGLEW_KHR_config_attribs)
  1005. #endif /* EGL_KHR_config_attribs */
  1006. /* --------------------- EGL_KHR_context_flush_control --------------------- */
  1007. #ifndef EGL_KHR_context_flush_control
  1008. #define EGL_KHR_context_flush_control 1
  1009. #define EGL_CONTEXT_RELEASE_BEHAVIOR_NONE_KHR 0
  1010. #define EGL_CONTEXT_RELEASE_BEHAVIOR_KHR 0x2097
  1011. #define EGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_KHR 0x2098
  1012. #define EGLEW_KHR_context_flush_control EGLEW_GET_VAR(__EGLEW_KHR_context_flush_control)
  1013. #endif /* EGL_KHR_context_flush_control */
  1014. /* ------------------------- EGL_KHR_create_context ------------------------ */
  1015. #ifndef EGL_KHR_create_context
  1016. #define EGL_KHR_create_context 1
  1017. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
  1018. #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
  1019. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
  1020. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
  1021. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
  1022. #define EGL_OPENGL_ES3_BIT 0x00000040
  1023. #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
  1024. #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
  1025. #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
  1026. #define EGL_CONTEXT_FLAGS_KHR 0x30FC
  1027. #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
  1028. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
  1029. #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
  1030. #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
  1031. #define EGLEW_KHR_create_context EGLEW_GET_VAR(__EGLEW_KHR_create_context)
  1032. #endif /* EGL_KHR_create_context */
  1033. /* -------------------- EGL_KHR_create_context_no_error -------------------- */
  1034. #ifndef EGL_KHR_create_context_no_error
  1035. #define EGL_KHR_create_context_no_error 1
  1036. #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
  1037. #define EGLEW_KHR_create_context_no_error EGLEW_GET_VAR(__EGLEW_KHR_create_context_no_error)
  1038. #endif /* EGL_KHR_create_context_no_error */
  1039. /* ----------------------------- EGL_KHR_debug ----------------------------- */
  1040. #ifndef EGL_KHR_debug
  1041. #define EGL_KHR_debug 1
  1042. #define EGL_OBJECT_THREAD_KHR 0x33B0
  1043. #define EGL_OBJECT_DISPLAY_KHR 0x33B1
  1044. #define EGL_OBJECT_CONTEXT_KHR 0x33B2
  1045. #define EGL_OBJECT_SURFACE_KHR 0x33B3
  1046. #define EGL_OBJECT_IMAGE_KHR 0x33B4
  1047. #define EGL_OBJECT_SYNC_KHR 0x33B5
  1048. #define EGL_OBJECT_STREAM_KHR 0x33B6
  1049. #define EGL_DEBUG_CALLBACK_KHR 0x33B8
  1050. #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
  1051. #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
  1052. #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
  1053. #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
  1054. typedef EGLint ( * PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib* attrib_list);
  1055. typedef EGLint ( * PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
  1056. typedef EGLBoolean ( * PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib* value);
  1057. #define eglDebugMessageControlKHR EGLEW_GET_FUN(__eglewDebugMessageControlKHR)
  1058. #define eglLabelObjectKHR EGLEW_GET_FUN(__eglewLabelObjectKHR)
  1059. #define eglQueryDebugKHR EGLEW_GET_FUN(__eglewQueryDebugKHR)
  1060. #define EGLEW_KHR_debug EGLEW_GET_VAR(__EGLEW_KHR_debug)
  1061. #endif /* EGL_KHR_debug */
  1062. /* ----------------------- EGL_KHR_display_reference ----------------------- */
  1063. #ifndef EGL_KHR_display_reference
  1064. #define EGL_KHR_display_reference 1
  1065. #define EGL_TRACK_REFERENCES_KHR 0x3352
  1066. typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBKHRPROC) (EGLDisplay dpy, EGLint name, EGLAttrib* value);
  1067. #define eglQueryDisplayAttribKHR EGLEW_GET_FUN(__eglewQueryDisplayAttribKHR)
  1068. #define EGLEW_KHR_display_reference EGLEW_GET_VAR(__EGLEW_KHR_display_reference)
  1069. #endif /* EGL_KHR_display_reference */
  1070. /* --------------------------- EGL_KHR_fence_sync -------------------------- */
  1071. #ifndef EGL_KHR_fence_sync
  1072. #define EGL_KHR_fence_sync 1
  1073. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
  1074. #define EGL_SYNC_CONDITION_KHR 0x30F8
  1075. #define EGL_SYNC_FENCE_KHR 0x30F9
  1076. #define EGLEW_KHR_fence_sync EGLEW_GET_VAR(__EGLEW_KHR_fence_sync)
  1077. #endif /* EGL_KHR_fence_sync */
  1078. /* --------------------- EGL_KHR_get_all_proc_addresses -------------------- */
  1079. #ifndef EGL_KHR_get_all_proc_addresses
  1080. #define EGL_KHR_get_all_proc_addresses 1
  1081. #define EGLEW_KHR_get_all_proc_addresses EGLEW_GET_VAR(__EGLEW_KHR_get_all_proc_addresses)
  1082. #endif /* EGL_KHR_get_all_proc_addresses */
  1083. /* ------------------------- EGL_KHR_gl_colorspace ------------------------- */
  1084. #ifndef EGL_KHR_gl_colorspace
  1085. #define EGL_KHR_gl_colorspace 1
  1086. #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
  1087. #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
  1088. #define EGL_GL_COLORSPACE_KHR 0x309D
  1089. #define EGLEW_KHR_gl_colorspace EGLEW_GET_VAR(__EGLEW_KHR_gl_colorspace)
  1090. #endif /* EGL_KHR_gl_colorspace */
  1091. /* --------------------- EGL_KHR_gl_renderbuffer_image --------------------- */
  1092. #ifndef EGL_KHR_gl_renderbuffer_image
  1093. #define EGL_KHR_gl_renderbuffer_image 1
  1094. #define EGL_GL_RENDERBUFFER_KHR 0x30B9
  1095. #define EGLEW_KHR_gl_renderbuffer_image EGLEW_GET_VAR(__EGLEW_KHR_gl_renderbuffer_image)
  1096. #endif /* EGL_KHR_gl_renderbuffer_image */
  1097. /* ---------------------- EGL_KHR_gl_texture_2D_image ---------------------- */
  1098. #ifndef EGL_KHR_gl_texture_2D_image
  1099. #define EGL_KHR_gl_texture_2D_image 1
  1100. #define EGL_GL_TEXTURE_2D_KHR 0x30B1
  1101. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
  1102. #define EGLEW_KHR_gl_texture_2D_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_2D_image)
  1103. #endif /* EGL_KHR_gl_texture_2D_image */
  1104. /* ---------------------- EGL_KHR_gl_texture_3D_image ---------------------- */
  1105. #ifndef EGL_KHR_gl_texture_3D_image
  1106. #define EGL_KHR_gl_texture_3D_image 1
  1107. #define EGL_GL_TEXTURE_3D_KHR 0x30B2
  1108. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
  1109. #define EGLEW_KHR_gl_texture_3D_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_3D_image)
  1110. #endif /* EGL_KHR_gl_texture_3D_image */
  1111. /* -------------------- EGL_KHR_gl_texture_cubemap_image ------------------- */
  1112. #ifndef EGL_KHR_gl_texture_cubemap_image
  1113. #define EGL_KHR_gl_texture_cubemap_image 1
  1114. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
  1115. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
  1116. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
  1117. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
  1118. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
  1119. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
  1120. #define EGLEW_KHR_gl_texture_cubemap_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_cubemap_image)
  1121. #endif /* EGL_KHR_gl_texture_cubemap_image */
  1122. /* ----------------------------- EGL_KHR_image ----------------------------- */
  1123. #ifndef EGL_KHR_image
  1124. #define EGL_KHR_image 1
  1125. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  1126. typedef EGLImageKHR ( * PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint* attrib_list);
  1127. typedef EGLBoolean ( * PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  1128. #define eglCreateImageKHR EGLEW_GET_FUN(__eglewCreateImageKHR)
  1129. #define eglDestroyImageKHR EGLEW_GET_FUN(__eglewDestroyImageKHR)
  1130. #define EGLEW_KHR_image EGLEW_GET_VAR(__EGLEW_KHR_image)
  1131. #endif /* EGL_KHR_image */
  1132. /* --------------------------- EGL_KHR_image_base -------------------------- */
  1133. #ifndef EGL_KHR_image_base
  1134. #define EGL_KHR_image_base 1
  1135. #define EGL_IMAGE_PRESERVED_KHR 0x30D2
  1136. #define EGLEW_KHR_image_base EGLEW_GET_VAR(__EGLEW_KHR_image_base)
  1137. #endif /* EGL_KHR_image_base */
  1138. /* -------------------------- EGL_KHR_image_pixmap ------------------------- */
  1139. #ifndef EGL_KHR_image_pixmap
  1140. #define EGL_KHR_image_pixmap 1
  1141. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  1142. #define EGLEW_KHR_image_pixmap EGLEW_GET_VAR(__EGLEW_KHR_image_pixmap)
  1143. #endif /* EGL_KHR_image_pixmap */
  1144. /* -------------------------- EGL_KHR_lock_surface ------------------------- */
  1145. #ifndef EGL_KHR_lock_surface
  1146. #define EGL_KHR_lock_surface 1
  1147. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  1148. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  1149. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  1150. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  1151. #define EGL_MATCH_FORMAT_KHR 0x3043
  1152. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  1153. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  1154. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  1155. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  1156. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  1157. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  1158. #define EGL_BITMAP_POINTER_KHR 0x30C6
  1159. #define EGL_BITMAP_PITCH_KHR 0x30C7
  1160. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  1161. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  1162. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  1163. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  1164. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  1165. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  1166. #define EGL_LOWER_LEFT_KHR 0x30CE
  1167. #define EGL_UPPER_LEFT_KHR 0x30CF
  1168. typedef EGLBoolean ( * PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint* attrib_list);
  1169. typedef EGLBoolean ( * PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
  1170. #define eglLockSurfaceKHR EGLEW_GET_FUN(__eglewLockSurfaceKHR)
  1171. #define eglUnlockSurfaceKHR EGLEW_GET_FUN(__eglewUnlockSurfaceKHR)
  1172. #define EGLEW_KHR_lock_surface EGLEW_GET_VAR(__EGLEW_KHR_lock_surface)
  1173. #endif /* EGL_KHR_lock_surface */
  1174. /* ------------------------- EGL_KHR_lock_surface2 ------------------------- */
  1175. #ifndef EGL_KHR_lock_surface2
  1176. #define EGL_KHR_lock_surface2 1
  1177. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  1178. #define EGLEW_KHR_lock_surface2 EGLEW_GET_VAR(__EGLEW_KHR_lock_surface2)
  1179. #endif /* EGL_KHR_lock_surface2 */
  1180. /* ------------------------- EGL_KHR_lock_surface3 ------------------------- */
  1181. #ifndef EGL_KHR_lock_surface3
  1182. #define EGL_KHR_lock_surface3 1
  1183. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  1184. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  1185. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  1186. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  1187. #define EGL_MATCH_FORMAT_KHR 0x3043
  1188. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  1189. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  1190. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  1191. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  1192. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  1193. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  1194. #define EGL_BITMAP_POINTER_KHR 0x30C6
  1195. #define EGL_BITMAP_PITCH_KHR 0x30C7
  1196. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  1197. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  1198. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  1199. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  1200. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  1201. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  1202. #define EGL_LOWER_LEFT_KHR 0x30CE
  1203. #define EGL_UPPER_LEFT_KHR 0x30CF
  1204. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  1205. typedef EGLBoolean ( * PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR * value);
  1206. #define eglQuerySurface64KHR EGLEW_GET_FUN(__eglewQuerySurface64KHR)
  1207. #define EGLEW_KHR_lock_surface3 EGLEW_GET_VAR(__EGLEW_KHR_lock_surface3)
  1208. #endif /* EGL_KHR_lock_surface3 */
  1209. /* --------------------- EGL_KHR_mutable_render_buffer --------------------- */
  1210. #ifndef EGL_KHR_mutable_render_buffer
  1211. #define EGL_KHR_mutable_render_buffer 1
  1212. #define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
  1213. #define EGLEW_KHR_mutable_render_buffer EGLEW_GET_VAR(__EGLEW_KHR_mutable_render_buffer)
  1214. #endif /* EGL_KHR_mutable_render_buffer */
  1215. /* ----------------------- EGL_KHR_no_config_context ----------------------- */
  1216. #ifndef EGL_KHR_no_config_context
  1217. #define EGL_KHR_no_config_context 1
  1218. #define EGLEW_KHR_no_config_context EGLEW_GET_VAR(__EGLEW_KHR_no_config_context)
  1219. #endif /* EGL_KHR_no_config_context */
  1220. /* ------------------------- EGL_KHR_partial_update ------------------------ */
  1221. #ifndef EGL_KHR_partial_update
  1222. #define EGL_KHR_partial_update 1
  1223. #define EGL_BUFFER_AGE_KHR 0x313D
  1224. typedef EGLBoolean ( * PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint* rects, EGLint n_rects);
  1225. #define eglSetDamageRegionKHR EGLEW_GET_FUN(__eglewSetDamageRegionKHR)
  1226. #define EGLEW_KHR_partial_update EGLEW_GET_VAR(__EGLEW_KHR_partial_update)
  1227. #endif /* EGL_KHR_partial_update */
  1228. /* ------------------------ EGL_KHR_platform_android ----------------------- */
  1229. #ifndef EGL_KHR_platform_android
  1230. #define EGL_KHR_platform_android 1
  1231. #define EGL_PLATFORM_ANDROID_KHR 0x3141
  1232. #define EGLEW_KHR_platform_android EGLEW_GET_VAR(__EGLEW_KHR_platform_android)
  1233. #endif /* EGL_KHR_platform_android */
  1234. /* -------------------------- EGL_KHR_platform_gbm ------------------------- */
  1235. #ifndef EGL_KHR_platform_gbm
  1236. #define EGL_KHR_platform_gbm 1
  1237. #define EGL_PLATFORM_GBM_KHR 0x31D7
  1238. #define EGLEW_KHR_platform_gbm EGLEW_GET_VAR(__EGLEW_KHR_platform_gbm)
  1239. #endif /* EGL_KHR_platform_gbm */
  1240. /* ------------------------ EGL_KHR_platform_wayland ----------------------- */
  1241. #ifndef EGL_KHR_platform_wayland
  1242. #define EGL_KHR_platform_wayland 1
  1243. #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
  1244. #define EGLEW_KHR_platform_wayland EGLEW_GET_VAR(__EGLEW_KHR_platform_wayland)
  1245. #endif /* EGL_KHR_platform_wayland */
  1246. /* -------------------------- EGL_KHR_platform_x11 ------------------------- */
  1247. #ifndef EGL_KHR_platform_x11
  1248. #define EGL_KHR_platform_x11 1
  1249. #define EGL_PLATFORM_X11_KHR 0x31D5
  1250. #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
  1251. #define EGLEW_KHR_platform_x11 EGLEW_GET_VAR(__EGLEW_KHR_platform_x11)
  1252. #endif /* EGL_KHR_platform_x11 */
  1253. /* ------------------------- EGL_KHR_reusable_sync ------------------------- */
  1254. #ifndef EGL_KHR_reusable_sync
  1255. #define EGL_KHR_reusable_sync 1
  1256. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
  1257. #define EGL_SYNC_STATUS_KHR 0x30F1
  1258. #define EGL_SIGNALED_KHR 0x30F2
  1259. #define EGL_UNSIGNALED_KHR 0x30F3
  1260. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  1261. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  1262. #define EGL_SYNC_TYPE_KHR 0x30F7
  1263. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  1264. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFF
  1265. typedef EGLint ( * PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  1266. typedef EGLSyncKHR ( * PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint* attrib_list);
  1267. typedef EGLBoolean ( * PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  1268. typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint* value);
  1269. typedef EGLBoolean ( * PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  1270. #define eglClientWaitSyncKHR EGLEW_GET_FUN(__eglewClientWaitSyncKHR)
  1271. #define eglCreateSyncKHR EGLEW_GET_FUN(__eglewCreateSyncKHR)
  1272. #define eglDestroySyncKHR EGLEW_GET_FUN(__eglewDestroySyncKHR)
  1273. #define eglGetSyncAttribKHR EGLEW_GET_FUN(__eglewGetSyncAttribKHR)
  1274. #define eglSignalSyncKHR EGLEW_GET_FUN(__eglewSignalSyncKHR)
  1275. #define EGLEW_KHR_reusable_sync EGLEW_GET_VAR(__EGLEW_KHR_reusable_sync)
  1276. #endif /* EGL_KHR_reusable_sync */
  1277. /* ----------------------------- EGL_KHR_stream ---------------------------- */
  1278. #ifndef EGL_KHR_stream
  1279. #define EGL_KHR_stream 1
  1280. #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
  1281. #define EGL_PRODUCER_FRAME_KHR 0x3212
  1282. #define EGL_CONSUMER_FRAME_KHR 0x3213
  1283. #define EGL_STREAM_STATE_KHR 0x3214
  1284. #define EGL_STREAM_STATE_CREATED_KHR 0x3215
  1285. #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
  1286. #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
  1287. #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
  1288. #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
  1289. #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
  1290. #define EGL_BAD_STREAM_KHR 0x321B
  1291. #define EGL_BAD_STATE_KHR 0x321C
  1292. typedef EGLStreamKHR ( * PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint* attrib_list);
  1293. typedef EGLBoolean ( * PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1294. typedef EGLBoolean ( * PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint* value);
  1295. typedef EGLBoolean ( * PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR* value);
  1296. typedef EGLBoolean ( * PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  1297. #define eglCreateStreamKHR EGLEW_GET_FUN(__eglewCreateStreamKHR)
  1298. #define eglDestroyStreamKHR EGLEW_GET_FUN(__eglewDestroyStreamKHR)
  1299. #define eglQueryStreamKHR EGLEW_GET_FUN(__eglewQueryStreamKHR)
  1300. #define eglQueryStreamu64KHR EGLEW_GET_FUN(__eglewQueryStreamu64KHR)
  1301. #define eglStreamAttribKHR EGLEW_GET_FUN(__eglewStreamAttribKHR)
  1302. #define EGLEW_KHR_stream EGLEW_GET_VAR(__EGLEW_KHR_stream)
  1303. #endif /* EGL_KHR_stream */
  1304. /* ------------------------- EGL_KHR_stream_attrib ------------------------- */
  1305. #ifndef EGL_KHR_stream_attrib
  1306. #define EGL_KHR_stream_attrib 1
  1307. #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
  1308. #define EGL_STREAM_STATE_KHR 0x3214
  1309. #define EGL_STREAM_STATE_CREATED_KHR 0x3215
  1310. #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
  1311. typedef EGLStreamKHR ( * PFNEGLCREATESTREAMATTRIBKHRPROC) (EGLDisplay dpy, const EGLAttrib* attrib_list);
  1312. typedef EGLBoolean ( * PFNEGLQUERYSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib* value);
  1313. typedef EGLBoolean ( * PFNEGLSETSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLAttrib value);
  1314. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib* attrib_list);
  1315. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib* attrib_list);
  1316. #define eglCreateStreamAttribKHR EGLEW_GET_FUN(__eglewCreateStreamAttribKHR)
  1317. #define eglQueryStreamAttribKHR EGLEW_GET_FUN(__eglewQueryStreamAttribKHR)
  1318. #define eglSetStreamAttribKHR EGLEW_GET_FUN(__eglewSetStreamAttribKHR)
  1319. #define eglStreamConsumerAcquireAttribKHR EGLEW_GET_FUN(__eglewStreamConsumerAcquireAttribKHR)
  1320. #define eglStreamConsumerReleaseAttribKHR EGLEW_GET_FUN(__eglewStreamConsumerReleaseAttribKHR)
  1321. #define EGLEW_KHR_stream_attrib EGLEW_GET_VAR(__EGLEW_KHR_stream_attrib)
  1322. #endif /* EGL_KHR_stream_attrib */
  1323. /* ------------------- EGL_KHR_stream_consumer_gltexture ------------------- */
  1324. #ifndef EGL_KHR_stream_consumer_gltexture
  1325. #define EGL_KHR_stream_consumer_gltexture 1
  1326. #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
  1327. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1328. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1329. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1330. #define eglStreamConsumerAcquireKHR EGLEW_GET_FUN(__eglewStreamConsumerAcquireKHR)
  1331. #define eglStreamConsumerGLTextureExternalKHR EGLEW_GET_FUN(__eglewStreamConsumerGLTextureExternalKHR)
  1332. #define eglStreamConsumerReleaseKHR EGLEW_GET_FUN(__eglewStreamConsumerReleaseKHR)
  1333. #define EGLEW_KHR_stream_consumer_gltexture EGLEW_GET_VAR(__EGLEW_KHR_stream_consumer_gltexture)
  1334. #endif /* EGL_KHR_stream_consumer_gltexture */
  1335. /* -------------------- EGL_KHR_stream_cross_process_fd -------------------- */
  1336. #ifndef EGL_KHR_stream_cross_process_fd
  1337. #define EGL_KHR_stream_cross_process_fd 1
  1338. typedef EGLStreamKHR ( * PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  1339. typedef EGLNativeFileDescriptorKHR ( * PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1340. #define eglCreateStreamFromFileDescriptorKHR EGLEW_GET_FUN(__eglewCreateStreamFromFileDescriptorKHR)
  1341. #define eglGetStreamFileDescriptorKHR EGLEW_GET_FUN(__eglewGetStreamFileDescriptorKHR)
  1342. #define EGLEW_KHR_stream_cross_process_fd EGLEW_GET_VAR(__EGLEW_KHR_stream_cross_process_fd)
  1343. #endif /* EGL_KHR_stream_cross_process_fd */
  1344. /* -------------------------- EGL_KHR_stream_fifo -------------------------- */
  1345. #ifndef EGL_KHR_stream_fifo
  1346. #define EGL_KHR_stream_fifo 1
  1347. #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
  1348. #define EGL_STREAM_TIME_NOW_KHR 0x31FD
  1349. #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
  1350. #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
  1351. typedef EGLBoolean ( * PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR* value);
  1352. #define eglQueryStreamTimeKHR EGLEW_GET_FUN(__eglewQueryStreamTimeKHR)
  1353. #define EGLEW_KHR_stream_fifo EGLEW_GET_VAR(__EGLEW_KHR_stream_fifo)
  1354. #endif /* EGL_KHR_stream_fifo */
  1355. /* ----------------- EGL_KHR_stream_producer_aldatalocator ----------------- */
  1356. #ifndef EGL_KHR_stream_producer_aldatalocator
  1357. #define EGL_KHR_stream_producer_aldatalocator 1
  1358. #define EGLEW_KHR_stream_producer_aldatalocator EGLEW_GET_VAR(__EGLEW_KHR_stream_producer_aldatalocator)
  1359. #endif /* EGL_KHR_stream_producer_aldatalocator */
  1360. /* ------------------- EGL_KHR_stream_producer_eglsurface ------------------ */
  1361. #ifndef EGL_KHR_stream_producer_eglsurface
  1362. #define EGL_KHR_stream_producer_eglsurface 1
  1363. #define EGL_STREAM_BIT_KHR 0x0800
  1364. typedef EGLSurface ( * PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint* attrib_list);
  1365. #define eglCreateStreamProducerSurfaceKHR EGLEW_GET_FUN(__eglewCreateStreamProducerSurfaceKHR)
  1366. #define EGLEW_KHR_stream_producer_eglsurface EGLEW_GET_VAR(__EGLEW_KHR_stream_producer_eglsurface)
  1367. #endif /* EGL_KHR_stream_producer_eglsurface */
  1368. /* ---------------------- EGL_KHR_surfaceless_context ---------------------- */
  1369. #ifndef EGL_KHR_surfaceless_context
  1370. #define EGL_KHR_surfaceless_context 1
  1371. #define EGLEW_KHR_surfaceless_context EGLEW_GET_VAR(__EGLEW_KHR_surfaceless_context)
  1372. #endif /* EGL_KHR_surfaceless_context */
  1373. /* -------------------- EGL_KHR_swap_buffers_with_damage ------------------- */
  1374. #ifndef EGL_KHR_swap_buffers_with_damage
  1375. #define EGL_KHR_swap_buffers_with_damage 1
  1376. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint* rects, EGLint n_rects);
  1377. #define eglSwapBuffersWithDamageKHR EGLEW_GET_FUN(__eglewSwapBuffersWithDamageKHR)
  1378. #define EGLEW_KHR_swap_buffers_with_damage EGLEW_GET_VAR(__EGLEW_KHR_swap_buffers_with_damage)
  1379. #endif /* EGL_KHR_swap_buffers_with_damage */
  1380. /* ------------------------ EGL_KHR_vg_parent_image ------------------------ */
  1381. #ifndef EGL_KHR_vg_parent_image
  1382. #define EGL_KHR_vg_parent_image 1
  1383. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
  1384. #define EGLEW_KHR_vg_parent_image EGLEW_GET_VAR(__EGLEW_KHR_vg_parent_image)
  1385. #endif /* EGL_KHR_vg_parent_image */
  1386. /* --------------------------- EGL_KHR_wait_sync --------------------------- */
  1387. #ifndef EGL_KHR_wait_sync
  1388. #define EGL_KHR_wait_sync 1
  1389. typedef EGLint ( * PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  1390. #define eglWaitSyncKHR EGLEW_GET_FUN(__eglewWaitSyncKHR)
  1391. #define EGLEW_KHR_wait_sync EGLEW_GET_VAR(__EGLEW_KHR_wait_sync)
  1392. #endif /* EGL_KHR_wait_sync */
  1393. /* --------------------------- EGL_MESA_drm_image -------------------------- */
  1394. #ifndef EGL_MESA_drm_image
  1395. #define EGL_MESA_drm_image 1
  1396. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  1397. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  1398. #define EGL_DRM_BUFFER_USE_CURSOR_MESA 0x00000004
  1399. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  1400. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  1401. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  1402. #define EGL_DRM_BUFFER_MESA 0x31D3
  1403. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  1404. typedef EGLImageKHR ( * PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint* attrib_list);
  1405. typedef EGLBoolean ( * PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint* name, EGLint* handle, EGLint* stride);
  1406. #define eglCreateDRMImageMESA EGLEW_GET_FUN(__eglewCreateDRMImageMESA)
  1407. #define eglExportDRMImageMESA EGLEW_GET_FUN(__eglewExportDRMImageMESA)
  1408. #define EGLEW_MESA_drm_image EGLEW_GET_VAR(__EGLEW_MESA_drm_image)
  1409. #endif /* EGL_MESA_drm_image */
  1410. /* --------------------- EGL_MESA_image_dma_buf_export --------------------- */
  1411. #ifndef EGL_MESA_image_dma_buf_export
  1412. #define EGL_MESA_image_dma_buf_export 1
  1413. typedef EGLBoolean ( * PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int* fds, EGLint* strides, EGLint* offsets);
  1414. typedef EGLBoolean ( * PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int* fourcc, int* num_planes, EGLuint64KHR* modifiers);
  1415. #define eglExportDMABUFImageMESA EGLEW_GET_FUN(__eglewExportDMABUFImageMESA)
  1416. #define eglExportDMABUFImageQueryMESA EGLEW_GET_FUN(__eglewExportDMABUFImageQueryMESA)
  1417. #define EGLEW_MESA_image_dma_buf_export EGLEW_GET_VAR(__EGLEW_MESA_image_dma_buf_export)
  1418. #endif /* EGL_MESA_image_dma_buf_export */
  1419. /* ------------------------- EGL_MESA_platform_gbm ------------------------- */
  1420. #ifndef EGL_MESA_platform_gbm
  1421. #define EGL_MESA_platform_gbm 1
  1422. #define EGL_PLATFORM_GBM_MESA 0x31D7
  1423. #define EGLEW_MESA_platform_gbm EGLEW_GET_VAR(__EGLEW_MESA_platform_gbm)
  1424. #endif /* EGL_MESA_platform_gbm */
  1425. /* --------------------- EGL_MESA_platform_surfaceless --------------------- */
  1426. #ifndef EGL_MESA_platform_surfaceless
  1427. #define EGL_MESA_platform_surfaceless 1
  1428. #define EGL_PLATFORM_SURFACELESS_MESA 0x31DD
  1429. #define EGLEW_MESA_platform_surfaceless EGLEW_GET_VAR(__EGLEW_MESA_platform_surfaceless)
  1430. #endif /* EGL_MESA_platform_surfaceless */
  1431. /* ------------------------- EGL_MESA_query_driver ------------------------- */
  1432. #ifndef EGL_MESA_query_driver
  1433. #define EGL_MESA_query_driver 1
  1434. typedef char* ( * PFNEGLGETDISPLAYDRIVERCONFIGPROC) (EGLDisplay dpy);
  1435. typedef const char* ( * PFNEGLGETDISPLAYDRIVERNAMEPROC) (EGLDisplay dpy);
  1436. #define eglGetDisplayDriverConfig EGLEW_GET_FUN(__eglewGetDisplayDriverConfig)
  1437. #define eglGetDisplayDriverName EGLEW_GET_FUN(__eglewGetDisplayDriverName)
  1438. #define EGLEW_MESA_query_driver EGLEW_GET_VAR(__EGLEW_MESA_query_driver)
  1439. #endif /* EGL_MESA_query_driver */
  1440. /* -------------------------- EGL_NOK_swap_region -------------------------- */
  1441. #ifndef EGL_NOK_swap_region
  1442. #define EGL_NOK_swap_region 1
  1443. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
  1444. #define eglSwapBuffersRegionNOK EGLEW_GET_FUN(__eglewSwapBuffersRegionNOK)
  1445. #define EGLEW_NOK_swap_region EGLEW_GET_VAR(__EGLEW_NOK_swap_region)
  1446. #endif /* EGL_NOK_swap_region */
  1447. /* -------------------------- EGL_NOK_swap_region2 ------------------------- */
  1448. #ifndef EGL_NOK_swap_region2
  1449. #define EGL_NOK_swap_region2 1
  1450. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint* rects);
  1451. #define eglSwapBuffersRegion2NOK EGLEW_GET_FUN(__eglewSwapBuffersRegion2NOK)
  1452. #define EGLEW_NOK_swap_region2 EGLEW_GET_VAR(__EGLEW_NOK_swap_region2)
  1453. #endif /* EGL_NOK_swap_region2 */
  1454. /* ---------------------- EGL_NOK_texture_from_pixmap ---------------------- */
  1455. #ifndef EGL_NOK_texture_from_pixmap
  1456. #define EGL_NOK_texture_from_pixmap 1
  1457. #define EGL_Y_INVERTED_NOK 0x307F
  1458. #define EGLEW_NOK_texture_from_pixmap EGLEW_GET_VAR(__EGLEW_NOK_texture_from_pixmap)
  1459. #endif /* EGL_NOK_texture_from_pixmap */
  1460. /* ------------------------ EGL_NV_3dvision_surface ------------------------ */
  1461. #ifndef EGL_NV_3dvision_surface
  1462. #define EGL_NV_3dvision_surface 1
  1463. #define EGL_AUTO_STEREO_NV 0x3136
  1464. #define EGLEW_NV_3dvision_surface EGLEW_GET_VAR(__EGLEW_NV_3dvision_surface)
  1465. #endif /* EGL_NV_3dvision_surface */
  1466. /* -------------------- EGL_NV_context_priority_realtime ------------------- */
  1467. #ifndef EGL_NV_context_priority_realtime
  1468. #define EGL_NV_context_priority_realtime 1
  1469. #define EGL_CONTEXT_PRIORITY_REALTIME_NV 0x3357
  1470. #define EGLEW_NV_context_priority_realtime EGLEW_GET_VAR(__EGLEW_NV_context_priority_realtime)
  1471. #endif /* EGL_NV_context_priority_realtime */
  1472. /* ------------------------- EGL_NV_coverage_sample ------------------------ */
  1473. #ifndef EGL_NV_coverage_sample
  1474. #define EGL_NV_coverage_sample 1
  1475. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  1476. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  1477. #define EGLEW_NV_coverage_sample EGLEW_GET_VAR(__EGLEW_NV_coverage_sample)
  1478. #endif /* EGL_NV_coverage_sample */
  1479. /* --------------------- EGL_NV_coverage_sample_resolve -------------------- */
  1480. #ifndef EGL_NV_coverage_sample_resolve
  1481. #define EGL_NV_coverage_sample_resolve 1
  1482. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  1483. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  1484. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  1485. #define EGLEW_NV_coverage_sample_resolve EGLEW_GET_VAR(__EGLEW_NV_coverage_sample_resolve)
  1486. #endif /* EGL_NV_coverage_sample_resolve */
  1487. /* --------------------------- EGL_NV_cuda_event --------------------------- */
  1488. #ifndef EGL_NV_cuda_event
  1489. #define EGL_NV_cuda_event 1
  1490. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  1491. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  1492. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  1493. #define EGLEW_NV_cuda_event EGLEW_GET_VAR(__EGLEW_NV_cuda_event)
  1494. #endif /* EGL_NV_cuda_event */
  1495. /* ------------------------- EGL_NV_depth_nonlinear ------------------------ */
  1496. #ifndef EGL_NV_depth_nonlinear
  1497. #define EGL_NV_depth_nonlinear 1
  1498. #define EGL_DEPTH_ENCODING_NONE_NV 0
  1499. #define EGL_DEPTH_ENCODING_NV 0x30E2
  1500. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  1501. #define EGLEW_NV_depth_nonlinear EGLEW_GET_VAR(__EGLEW_NV_depth_nonlinear)
  1502. #endif /* EGL_NV_depth_nonlinear */
  1503. /* --------------------------- EGL_NV_device_cuda -------------------------- */
  1504. #ifndef EGL_NV_device_cuda
  1505. #define EGL_NV_device_cuda 1
  1506. #define EGL_CUDA_DEVICE_NV 0x323A
  1507. #define EGLEW_NV_device_cuda EGLEW_GET_VAR(__EGLEW_NV_device_cuda)
  1508. #endif /* EGL_NV_device_cuda */
  1509. /* -------------------------- EGL_NV_native_query -------------------------- */
  1510. #ifndef EGL_NV_native_query
  1511. #define EGL_NV_native_query 1
  1512. typedef EGLBoolean ( * PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType* display_id);
  1513. typedef EGLBoolean ( * PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType* pixmap);
  1514. typedef EGLBoolean ( * PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType* window);
  1515. #define eglQueryNativeDisplayNV EGLEW_GET_FUN(__eglewQueryNativeDisplayNV)
  1516. #define eglQueryNativePixmapNV EGLEW_GET_FUN(__eglewQueryNativePixmapNV)
  1517. #define eglQueryNativeWindowNV EGLEW_GET_FUN(__eglewQueryNativeWindowNV)
  1518. #define EGLEW_NV_native_query EGLEW_GET_VAR(__EGLEW_NV_native_query)
  1519. #endif /* EGL_NV_native_query */
  1520. /* ---------------------- EGL_NV_post_convert_rounding --------------------- */
  1521. #ifndef EGL_NV_post_convert_rounding
  1522. #define EGL_NV_post_convert_rounding 1
  1523. #define EGLEW_NV_post_convert_rounding EGLEW_GET_VAR(__EGLEW_NV_post_convert_rounding)
  1524. #endif /* EGL_NV_post_convert_rounding */
  1525. /* ------------------------- EGL_NV_post_sub_buffer ------------------------ */
  1526. #ifndef EGL_NV_post_sub_buffer
  1527. #define EGL_NV_post_sub_buffer 1
  1528. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  1529. typedef EGLBoolean ( * PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1530. #define eglPostSubBufferNV EGLEW_GET_FUN(__eglewPostSubBufferNV)
  1531. #define EGLEW_NV_post_sub_buffer EGLEW_GET_VAR(__EGLEW_NV_post_sub_buffer)
  1532. #endif /* EGL_NV_post_sub_buffer */
  1533. /* ------------------------ EGL_NV_quadruple_buffer ------------------------ */
  1534. #ifndef EGL_NV_quadruple_buffer
  1535. #define EGL_NV_quadruple_buffer 1
  1536. #define EGL_QUADRUPLE_BUFFER_NV 0x3231
  1537. #define EGLEW_NV_quadruple_buffer EGLEW_GET_VAR(__EGLEW_NV_quadruple_buffer)
  1538. #endif /* EGL_NV_quadruple_buffer */
  1539. /* ------------------ EGL_NV_robustness_video_memory_purge ----------------- */
  1540. #ifndef EGL_NV_robustness_video_memory_purge
  1541. #define EGL_NV_robustness_video_memory_purge 1
  1542. #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
  1543. #define EGLEW_NV_robustness_video_memory_purge EGLEW_GET_VAR(__EGLEW_NV_robustness_video_memory_purge)
  1544. #endif /* EGL_NV_robustness_video_memory_purge */
  1545. /* ------------------ EGL_NV_stream_consumer_gltexture_yuv ----------------- */
  1546. #ifndef EGL_NV_stream_consumer_gltexture_yuv
  1547. #define EGL_NV_stream_consumer_gltexture_yuv 1
  1548. #define EGL_YUV_BUFFER_EXT 0x3300
  1549. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  1550. #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
  1551. #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
  1552. #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
  1553. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, const EGLAttrib* attrib_list);
  1554. #define eglStreamConsumerGLTextureExternalAttribsNV EGLEW_GET_FUN(__eglewStreamConsumerGLTextureExternalAttribsNV)
  1555. #define EGLEW_NV_stream_consumer_gltexture_yuv EGLEW_GET_VAR(__EGLEW_NV_stream_consumer_gltexture_yuv)
  1556. #endif /* EGL_NV_stream_consumer_gltexture_yuv */
  1557. /* ---------------------- EGL_NV_stream_cross_display ---------------------- */
  1558. #ifndef EGL_NV_stream_cross_display
  1559. #define EGL_NV_stream_cross_display 1
  1560. #define EGL_STREAM_CROSS_DISPLAY_NV 0x334E
  1561. #define EGLEW_NV_stream_cross_display EGLEW_GET_VAR(__EGLEW_NV_stream_cross_display)
  1562. #endif /* EGL_NV_stream_cross_display */
  1563. /* ----------------------- EGL_NV_stream_cross_object ---------------------- */
  1564. #ifndef EGL_NV_stream_cross_object
  1565. #define EGL_NV_stream_cross_object 1
  1566. #define EGL_STREAM_CROSS_OBJECT_NV 0x334D
  1567. #define EGLEW_NV_stream_cross_object EGLEW_GET_VAR(__EGLEW_NV_stream_cross_object)
  1568. #endif /* EGL_NV_stream_cross_object */
  1569. /* --------------------- EGL_NV_stream_cross_partition --------------------- */
  1570. #ifndef EGL_NV_stream_cross_partition
  1571. #define EGL_NV_stream_cross_partition 1
  1572. #define EGL_STREAM_CROSS_PARTITION_NV 0x323F
  1573. #define EGLEW_NV_stream_cross_partition EGLEW_GET_VAR(__EGLEW_NV_stream_cross_partition)
  1574. #endif /* EGL_NV_stream_cross_partition */
  1575. /* ---------------------- EGL_NV_stream_cross_process ---------------------- */
  1576. #ifndef EGL_NV_stream_cross_process
  1577. #define EGL_NV_stream_cross_process 1
  1578. #define EGL_STREAM_CROSS_PROCESS_NV 0x3245
  1579. #define EGLEW_NV_stream_cross_process EGLEW_GET_VAR(__EGLEW_NV_stream_cross_process)
  1580. #endif /* EGL_NV_stream_cross_process */
  1581. /* ----------------------- EGL_NV_stream_cross_system ---------------------- */
  1582. #ifndef EGL_NV_stream_cross_system
  1583. #define EGL_NV_stream_cross_system 1
  1584. #define EGL_STREAM_CROSS_SYSTEM_NV 0x334F
  1585. #define EGLEW_NV_stream_cross_system EGLEW_GET_VAR(__EGLEW_NV_stream_cross_system)
  1586. #endif /* EGL_NV_stream_cross_system */
  1587. /* --------------------------- EGL_NV_stream_dma --------------------------- */
  1588. #ifndef EGL_NV_stream_dma
  1589. #define EGL_NV_stream_dma 1
  1590. #define EGL_STREAM_DMA_NV 0x3371
  1591. #define EGL_STREAM_DMA_SERVER_NV 0x3372
  1592. #define EGLEW_NV_stream_dma EGLEW_GET_VAR(__EGLEW_NV_stream_dma)
  1593. #endif /* EGL_NV_stream_dma */
  1594. /* ------------------------ EGL_NV_stream_fifo_next ------------------------ */
  1595. #ifndef EGL_NV_stream_fifo_next
  1596. #define EGL_NV_stream_fifo_next 1
  1597. #define EGL_PENDING_FRAME_NV 0x3329
  1598. #define EGL_STREAM_TIME_PENDING_NV 0x332A
  1599. #define EGLEW_NV_stream_fifo_next EGLEW_GET_VAR(__EGLEW_NV_stream_fifo_next)
  1600. #endif /* EGL_NV_stream_fifo_next */
  1601. /* --------------------- EGL_NV_stream_fifo_synchronous -------------------- */
  1602. #ifndef EGL_NV_stream_fifo_synchronous
  1603. #define EGL_NV_stream_fifo_synchronous 1
  1604. #define EGL_STREAM_FIFO_SYNCHRONOUS_NV 0x3336
  1605. #define EGLEW_NV_stream_fifo_synchronous EGLEW_GET_VAR(__EGLEW_NV_stream_fifo_synchronous)
  1606. #endif /* EGL_NV_stream_fifo_synchronous */
  1607. /* -------------------------- EGL_NV_stream_flush -------------------------- */
  1608. #ifndef EGL_NV_stream_flush
  1609. #define EGL_NV_stream_flush 1
  1610. typedef EGLBoolean ( * PFNEGLSTREAMFLUSHNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1611. #define eglStreamFlushNV EGLEW_GET_FUN(__eglewStreamFlushNV)
  1612. #define EGLEW_NV_stream_flush EGLEW_GET_VAR(__EGLEW_NV_stream_flush)
  1613. #endif /* EGL_NV_stream_flush */
  1614. /* ----------------------- EGL_NV_stream_frame_limits ---------------------- */
  1615. #ifndef EGL_NV_stream_frame_limits
  1616. #define EGL_NV_stream_frame_limits 1
  1617. #define EGL_PRODUCER_MAX_FRAME_HINT_NV 0x3337
  1618. #define EGL_CONSUMER_MAX_FRAME_HINT_NV 0x3338
  1619. #define EGLEW_NV_stream_frame_limits EGLEW_GET_VAR(__EGLEW_NV_stream_frame_limits)
  1620. #endif /* EGL_NV_stream_frame_limits */
  1621. /* ------------------------- EGL_NV_stream_metadata ------------------------ */
  1622. #ifndef EGL_NV_stream_metadata
  1623. #define EGL_NV_stream_metadata 1
  1624. #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  1625. #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  1626. #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  1627. #define EGL_PRODUCER_METADATA_NV 0x3253
  1628. #define EGL_CONSUMER_METADATA_NV 0x3254
  1629. #define EGL_METADATA0_SIZE_NV 0x3255
  1630. #define EGL_METADATA1_SIZE_NV 0x3256
  1631. #define EGL_METADATA2_SIZE_NV 0x3257
  1632. #define EGL_METADATA3_SIZE_NV 0x3258
  1633. #define EGL_METADATA0_TYPE_NV 0x3259
  1634. #define EGL_METADATA1_TYPE_NV 0x325A
  1635. #define EGL_METADATA2_TYPE_NV 0x325B
  1636. #define EGL_METADATA3_TYPE_NV 0x325C
  1637. #define EGL_PENDING_METADATA_NV 0x3328
  1638. typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib* value);
  1639. typedef EGLBoolean ( * PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void* data);
  1640. typedef EGLBoolean ( * PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void* data);
  1641. #define eglQueryDisplayAttribNV EGLEW_GET_FUN(__eglewQueryDisplayAttribNV)
  1642. #define eglQueryStreamMetadataNV EGLEW_GET_FUN(__eglewQueryStreamMetadataNV)
  1643. #define eglSetStreamMetadataNV EGLEW_GET_FUN(__eglewSetStreamMetadataNV)
  1644. #define EGLEW_NV_stream_metadata EGLEW_GET_VAR(__EGLEW_NV_stream_metadata)
  1645. #endif /* EGL_NV_stream_metadata */
  1646. /* -------------------------- EGL_NV_stream_origin ------------------------- */
  1647. #ifndef EGL_NV_stream_origin
  1648. #define EGL_NV_stream_origin 1
  1649. #define EGL_STREAM_FRAME_ORIGIN_X_NV 0x3366
  1650. #define EGL_STREAM_FRAME_ORIGIN_Y_NV 0x3367
  1651. #define EGL_STREAM_FRAME_MAJOR_AXIS_NV 0x3368
  1652. #define EGL_CONSUMER_AUTO_ORIENTATION_NV 0x3369
  1653. #define EGL_PRODUCER_AUTO_ORIENTATION_NV 0x336A
  1654. #define EGL_LEFT_NV 0x336B
  1655. #define EGL_RIGHT_NV 0x336C
  1656. #define EGL_TOP_NV 0x336D
  1657. #define EGL_BOTTOM_NV 0x336E
  1658. #define EGL_X_AXIS_NV 0x336F
  1659. #define EGL_Y_AXIS_NV 0x3370
  1660. #define EGLEW_NV_stream_origin EGLEW_GET_VAR(__EGLEW_NV_stream_origin)
  1661. #endif /* EGL_NV_stream_origin */
  1662. /* -------------------------- EGL_NV_stream_remote ------------------------- */
  1663. #ifndef EGL_NV_stream_remote
  1664. #define EGL_NV_stream_remote 1
  1665. #define EGL_STREAM_STATE_INITIALIZING_NV 0x3240
  1666. #define EGL_STREAM_TYPE_NV 0x3241
  1667. #define EGL_STREAM_PROTOCOL_NV 0x3242
  1668. #define EGL_STREAM_ENDPOINT_NV 0x3243
  1669. #define EGL_STREAM_LOCAL_NV 0x3244
  1670. #define EGL_STREAM_PROTOCOL_FD_NV 0x3246
  1671. #define EGL_STREAM_PRODUCER_NV 0x3247
  1672. #define EGL_STREAM_CONSUMER_NV 0x3248
  1673. #define EGLEW_NV_stream_remote EGLEW_GET_VAR(__EGLEW_NV_stream_remote)
  1674. #endif /* EGL_NV_stream_remote */
  1675. /* -------------------------- EGL_NV_stream_reset -------------------------- */
  1676. #ifndef EGL_NV_stream_reset
  1677. #define EGL_NV_stream_reset 1
  1678. #define EGL_SUPPORT_RESET_NV 0x3334
  1679. #define EGL_SUPPORT_REUSE_NV 0x3335
  1680. typedef EGLBoolean ( * PFNEGLRESETSTREAMNVPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1681. #define eglResetStreamNV EGLEW_GET_FUN(__eglewResetStreamNV)
  1682. #define EGLEW_NV_stream_reset EGLEW_GET_VAR(__EGLEW_NV_stream_reset)
  1683. #endif /* EGL_NV_stream_reset */
  1684. /* -------------------------- EGL_NV_stream_socket ------------------------- */
  1685. #ifndef EGL_NV_stream_socket
  1686. #define EGL_NV_stream_socket 1
  1687. #define EGL_STREAM_PROTOCOL_SOCKET_NV 0x324B
  1688. #define EGL_SOCKET_HANDLE_NV 0x324C
  1689. #define EGL_SOCKET_TYPE_NV 0x324D
  1690. #define EGLEW_NV_stream_socket EGLEW_GET_VAR(__EGLEW_NV_stream_socket)
  1691. #endif /* EGL_NV_stream_socket */
  1692. /* ----------------------- EGL_NV_stream_socket_inet ----------------------- */
  1693. #ifndef EGL_NV_stream_socket_inet
  1694. #define EGL_NV_stream_socket_inet 1
  1695. #define EGL_SOCKET_TYPE_INET_NV 0x324F
  1696. #define EGLEW_NV_stream_socket_inet EGLEW_GET_VAR(__EGLEW_NV_stream_socket_inet)
  1697. #endif /* EGL_NV_stream_socket_inet */
  1698. /* ----------------------- EGL_NV_stream_socket_unix ----------------------- */
  1699. #ifndef EGL_NV_stream_socket_unix
  1700. #define EGL_NV_stream_socket_unix 1
  1701. #define EGL_SOCKET_TYPE_UNIX_NV 0x324E
  1702. #define EGLEW_NV_stream_socket_unix EGLEW_GET_VAR(__EGLEW_NV_stream_socket_unix)
  1703. #endif /* EGL_NV_stream_socket_unix */
  1704. /* --------------------------- EGL_NV_stream_sync -------------------------- */
  1705. #ifndef EGL_NV_stream_sync
  1706. #define EGL_NV_stream_sync 1
  1707. #define EGL_SYNC_TYPE_KHR 0x30F7
  1708. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  1709. typedef EGLSyncKHR ( * PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint* attrib_list);
  1710. #define eglCreateStreamSyncNV EGLEW_GET_FUN(__eglewCreateStreamSyncNV)
  1711. #define EGLEW_NV_stream_sync EGLEW_GET_VAR(__EGLEW_NV_stream_sync)
  1712. #endif /* EGL_NV_stream_sync */
  1713. /* ------------------------------ EGL_NV_sync ------------------------------ */
  1714. #ifndef EGL_NV_sync
  1715. #define EGL_NV_sync 1
  1716. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  1717. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  1718. #define EGL_SYNC_STATUS_NV 0x30E7
  1719. #define EGL_SIGNALED_NV 0x30E8
  1720. #define EGL_UNSIGNALED_NV 0x30E9
  1721. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  1722. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  1723. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  1724. #define EGL_SYNC_TYPE_NV 0x30ED
  1725. #define EGL_SYNC_CONDITION_NV 0x30EE
  1726. #define EGL_SYNC_FENCE_NV 0x30EF
  1727. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFF
  1728. typedef EGLint ( * PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1729. typedef EGLSyncNV ( * PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint* attrib_list);
  1730. typedef EGLBoolean ( * PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  1731. typedef EGLBoolean ( * PFNEGLFENCENVPROC) (EGLSyncNV sync);
  1732. typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint* value);
  1733. typedef EGLBoolean ( * PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  1734. #define eglClientWaitSyncNV EGLEW_GET_FUN(__eglewClientWaitSyncNV)
  1735. #define eglCreateFenceSyncNV EGLEW_GET_FUN(__eglewCreateFenceSyncNV)
  1736. #define eglDestroySyncNV EGLEW_GET_FUN(__eglewDestroySyncNV)
  1737. #define eglFenceNV EGLEW_GET_FUN(__eglewFenceNV)
  1738. #define eglGetSyncAttribNV EGLEW_GET_FUN(__eglewGetSyncAttribNV)
  1739. #define eglSignalSyncNV EGLEW_GET_FUN(__eglewSignalSyncNV)
  1740. #define EGLEW_NV_sync EGLEW_GET_VAR(__EGLEW_NV_sync)
  1741. #endif /* EGL_NV_sync */
  1742. /* --------------------------- EGL_NV_system_time -------------------------- */
  1743. #ifndef EGL_NV_system_time
  1744. #define EGL_NV_system_time 1
  1745. typedef EGLuint64NV ( * PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) (void);
  1746. typedef EGLuint64NV ( * PFNEGLGETSYSTEMTIMENVPROC) (void);
  1747. #define eglGetSystemTimeFrequencyNV EGLEW_GET_FUN(__eglewGetSystemTimeFrequencyNV)
  1748. #define eglGetSystemTimeNV EGLEW_GET_FUN(__eglewGetSystemTimeNV)
  1749. #define EGLEW_NV_system_time EGLEW_GET_VAR(__EGLEW_NV_system_time)
  1750. #endif /* EGL_NV_system_time */
  1751. /* -------------------------- EGL_NV_triple_buffer ------------------------- */
  1752. #ifndef EGL_NV_triple_buffer
  1753. #define EGL_NV_triple_buffer 1
  1754. #define EGL_TRIPLE_BUFFER_NV 0x3230
  1755. #define EGLEW_NV_triple_buffer EGLEW_GET_VAR(__EGLEW_NV_triple_buffer)
  1756. #endif /* EGL_NV_triple_buffer */
  1757. /* --------------------- EGL_TIZEN_image_native_buffer --------------------- */
  1758. #ifndef EGL_TIZEN_image_native_buffer
  1759. #define EGL_TIZEN_image_native_buffer 1
  1760. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  1761. #define EGLEW_TIZEN_image_native_buffer EGLEW_GET_VAR(__EGLEW_TIZEN_image_native_buffer)
  1762. #endif /* EGL_TIZEN_image_native_buffer */
  1763. /* --------------------- EGL_TIZEN_image_native_surface -------------------- */
  1764. #ifndef EGL_TIZEN_image_native_surface
  1765. #define EGL_TIZEN_image_native_surface 1
  1766. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  1767. #define EGLEW_TIZEN_image_native_surface EGLEW_GET_VAR(__EGLEW_TIZEN_image_native_surface)
  1768. #endif /* EGL_TIZEN_image_native_surface */
  1769. /* ---------------------- EGL_WL_bind_wayland_display ---------------------- */
  1770. #ifndef EGL_WL_bind_wayland_display
  1771. #define EGL_WL_bind_wayland_display 1
  1772. #define EGL_WAYLAND_BUFFER_WL 0x31D5
  1773. #define EGL_WAYLAND_PLANE_WL 0x31D6
  1774. #define EGL_TEXTURE_Y_U_V_WL 0x31D7
  1775. #define EGL_TEXTURE_Y_UV_WL 0x31D8
  1776. #define EGL_TEXTURE_Y_XUXV_WL 0x31D9
  1777. #define EGL_TEXTURE_EXTERNAL_WL 0x31DA
  1778. #define EGL_WAYLAND_Y_INVERTED_WL 0x31DB
  1779. typedef EGLBoolean ( * PFNEGLBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display* display);
  1780. typedef EGLBoolean ( * PFNEGLQUERYWAYLANDBUFFERWLPROC) (EGLDisplay dpy, struct wl_resource* buffer, EGLint attribute, EGLint* value);
  1781. typedef EGLBoolean ( * PFNEGLUNBINDWAYLANDDISPLAYWLPROC) (EGLDisplay dpy, struct wl_display* display);
  1782. #define eglBindWaylandDisplayWL EGLEW_GET_FUN(__eglewBindWaylandDisplayWL)
  1783. #define eglQueryWaylandBufferWL EGLEW_GET_FUN(__eglewQueryWaylandBufferWL)
  1784. #define eglUnbindWaylandDisplayWL EGLEW_GET_FUN(__eglewUnbindWaylandDisplayWL)
  1785. #define EGLEW_WL_bind_wayland_display EGLEW_GET_VAR(__EGLEW_WL_bind_wayland_display)
  1786. #endif /* EGL_WL_bind_wayland_display */
  1787. /* ---------------- EGL_WL_create_wayland_buffer_from_image ---------------- */
  1788. #ifndef EGL_WL_create_wayland_buffer_from_image
  1789. #define EGL_WL_create_wayland_buffer_from_image 1
  1790. typedef struct wl_buffer* ( * PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC) (EGLDisplay dpy, EGLImageKHR image);
  1791. #define eglCreateWaylandBufferFromImageWL EGLEW_GET_FUN(__eglewCreateWaylandBufferFromImageWL)
  1792. #define EGLEW_WL_create_wayland_buffer_from_image EGLEW_GET_VAR(__EGLEW_WL_create_wayland_buffer_from_image)
  1793. #endif /* EGL_WL_create_wayland_buffer_from_image */
  1794. /* ------------------------------------------------------------------------- */
  1795. #define EGLEW_FUN_EXPORT GLEW_FUN_EXPORT
  1796. #define EGLEW_VAR_EXPORT GLEW_VAR_EXPORT
  1797. EGLEW_FUN_EXPORT PFNEGLCHOOSECONFIGPROC __eglewChooseConfig;
  1798. EGLEW_FUN_EXPORT PFNEGLCOPYBUFFERSPROC __eglewCopyBuffers;
  1799. EGLEW_FUN_EXPORT PFNEGLCREATECONTEXTPROC __eglewCreateContext;
  1800. EGLEW_FUN_EXPORT PFNEGLCREATEPBUFFERSURFACEPROC __eglewCreatePbufferSurface;
  1801. EGLEW_FUN_EXPORT PFNEGLCREATEPIXMAPSURFACEPROC __eglewCreatePixmapSurface;
  1802. EGLEW_FUN_EXPORT PFNEGLCREATEWINDOWSURFACEPROC __eglewCreateWindowSurface;
  1803. EGLEW_FUN_EXPORT PFNEGLDESTROYCONTEXTPROC __eglewDestroyContext;
  1804. EGLEW_FUN_EXPORT PFNEGLDESTROYSURFACEPROC __eglewDestroySurface;
  1805. EGLEW_FUN_EXPORT PFNEGLGETCONFIGATTRIBPROC __eglewGetConfigAttrib;
  1806. EGLEW_FUN_EXPORT PFNEGLGETCONFIGSPROC __eglewGetConfigs;
  1807. EGLEW_FUN_EXPORT PFNEGLGETCURRENTDISPLAYPROC __eglewGetCurrentDisplay;
  1808. EGLEW_FUN_EXPORT PFNEGLGETCURRENTSURFACEPROC __eglewGetCurrentSurface;
  1809. EGLEW_FUN_EXPORT PFNEGLGETDISPLAYPROC __eglewGetDisplay;
  1810. EGLEW_FUN_EXPORT PFNEGLGETERRORPROC __eglewGetError;
  1811. EGLEW_FUN_EXPORT PFNEGLINITIALIZEPROC __eglewInitialize;
  1812. EGLEW_FUN_EXPORT PFNEGLMAKECURRENTPROC __eglewMakeCurrent;
  1813. EGLEW_FUN_EXPORT PFNEGLQUERYCONTEXTPROC __eglewQueryContext;
  1814. EGLEW_FUN_EXPORT PFNEGLQUERYSTRINGPROC __eglewQueryString;
  1815. EGLEW_FUN_EXPORT PFNEGLQUERYSURFACEPROC __eglewQuerySurface;
  1816. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSPROC __eglewSwapBuffers;
  1817. EGLEW_FUN_EXPORT PFNEGLTERMINATEPROC __eglewTerminate;
  1818. EGLEW_FUN_EXPORT PFNEGLWAITGLPROC __eglewWaitGL;
  1819. EGLEW_FUN_EXPORT PFNEGLWAITNATIVEPROC __eglewWaitNative;
  1820. EGLEW_FUN_EXPORT PFNEGLBINDTEXIMAGEPROC __eglewBindTexImage;
  1821. EGLEW_FUN_EXPORT PFNEGLRELEASETEXIMAGEPROC __eglewReleaseTexImage;
  1822. EGLEW_FUN_EXPORT PFNEGLSURFACEATTRIBPROC __eglewSurfaceAttrib;
  1823. EGLEW_FUN_EXPORT PFNEGLSWAPINTERVALPROC __eglewSwapInterval;
  1824. EGLEW_FUN_EXPORT PFNEGLBINDAPIPROC __eglewBindAPI;
  1825. EGLEW_FUN_EXPORT PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC __eglewCreatePbufferFromClientBuffer;
  1826. EGLEW_FUN_EXPORT PFNEGLQUERYAPIPROC __eglewQueryAPI;
  1827. EGLEW_FUN_EXPORT PFNEGLRELEASETHREADPROC __eglewReleaseThread;
  1828. EGLEW_FUN_EXPORT PFNEGLWAITCLIENTPROC __eglewWaitClient;
  1829. EGLEW_FUN_EXPORT PFNEGLGETCURRENTCONTEXTPROC __eglewGetCurrentContext;
  1830. EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCPROC __eglewClientWaitSync;
  1831. EGLEW_FUN_EXPORT PFNEGLCREATEIMAGEPROC __eglewCreateImage;
  1832. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC __eglewCreatePlatformPixmapSurface;
  1833. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMWINDOWSURFACEPROC __eglewCreatePlatformWindowSurface;
  1834. EGLEW_FUN_EXPORT PFNEGLCREATESYNCPROC __eglewCreateSync;
  1835. EGLEW_FUN_EXPORT PFNEGLDESTROYIMAGEPROC __eglewDestroyImage;
  1836. EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCPROC __eglewDestroySync;
  1837. EGLEW_FUN_EXPORT PFNEGLGETPLATFORMDISPLAYPROC __eglewGetPlatformDisplay;
  1838. EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBPROC __eglewGetSyncAttrib;
  1839. EGLEW_FUN_EXPORT PFNEGLWAITSYNCPROC __eglewWaitSync;
  1840. EGLEW_FUN_EXPORT PFNEGLSETBLOBCACHEFUNCSANDROIDPROC __eglewSetBlobCacheFuncsANDROID;
  1841. EGLEW_FUN_EXPORT PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC __eglewCreateNativeClientBufferANDROID;
  1842. EGLEW_FUN_EXPORT PFNEGLGETCOMPOSITORTIMINGANDROIDPROC __eglewGetCompositorTimingANDROID;
  1843. EGLEW_FUN_EXPORT PFNEGLGETCOMPOSITORTIMINGSUPPORTEDANDROIDPROC __eglewGetCompositorTimingSupportedANDROID;
  1844. EGLEW_FUN_EXPORT PFNEGLGETFRAMETIMESTAMPSUPPORTEDANDROIDPROC __eglewGetFrameTimestampSupportedANDROID;
  1845. EGLEW_FUN_EXPORT PFNEGLGETFRAMETIMESTAMPSANDROIDPROC __eglewGetFrameTimestampsANDROID;
  1846. EGLEW_FUN_EXPORT PFNEGLGETNEXTFRAMEIDANDROIDPROC __eglewGetNextFrameIdANDROID;
  1847. EGLEW_FUN_EXPORT PFNEGLGETNATIVECLIENTBUFFERANDROIDPROC __eglewGetNativeClientBufferANDROID;
  1848. EGLEW_FUN_EXPORT PFNEGLDUPNATIVEFENCEFDANDROIDPROC __eglewDupNativeFenceFDANDROID;
  1849. EGLEW_FUN_EXPORT PFNEGLPRESENTATIONTIMEANDROIDPROC __eglewPresentationTimeANDROID;
  1850. EGLEW_FUN_EXPORT PFNEGLQUERYSURFACEPOINTERANGLEPROC __eglewQuerySurfacePointerANGLE;
  1851. EGLEW_FUN_EXPORT PFNEGLCLIENTSIGNALSYNCEXTPROC __eglewClientSignalSyncEXT;
  1852. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORBINDTEXWINDOWEXTPROC __eglewCompositorBindTexWindowEXT;
  1853. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSETCONTEXTATTRIBUTESEXTPROC __eglewCompositorSetContextAttributesEXT;
  1854. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSETCONTEXTLISTEXTPROC __eglewCompositorSetContextListEXT;
  1855. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSETSIZEEXTPROC __eglewCompositorSetSizeEXT;
  1856. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSETWINDOWATTRIBUTESEXTPROC __eglewCompositorSetWindowAttributesEXT;
  1857. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSETWINDOWLISTEXTPROC __eglewCompositorSetWindowListEXT;
  1858. EGLEW_FUN_EXPORT PFNEGLCOMPOSITORSWAPPOLICYEXTPROC __eglewCompositorSwapPolicyEXT;
  1859. EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESEXTPROC __eglewQueryDevicesEXT;
  1860. EGLEW_FUN_EXPORT PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT;
  1861. EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT;
  1862. EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT;
  1863. EGLEW_FUN_EXPORT PFNEGLQUERYDMABUFFORMATSEXTPROC __eglewQueryDmaBufFormatsEXT;
  1864. EGLEW_FUN_EXPORT PFNEGLQUERYDMABUFMODIFIERSEXTPROC __eglewQueryDmaBufModifiersEXT;
  1865. EGLEW_FUN_EXPORT PFNEGLGETOUTPUTLAYERSEXTPROC __eglewGetOutputLayersEXT;
  1866. EGLEW_FUN_EXPORT PFNEGLGETOUTPUTPORTSEXTPROC __eglewGetOutputPortsEXT;
  1867. EGLEW_FUN_EXPORT PFNEGLOUTPUTLAYERATTRIBEXTPROC __eglewOutputLayerAttribEXT;
  1868. EGLEW_FUN_EXPORT PFNEGLOUTPUTPORTATTRIBEXTPROC __eglewOutputPortAttribEXT;
  1869. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC __eglewQueryOutputLayerAttribEXT;
  1870. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC __eglewQueryOutputLayerStringEXT;
  1871. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC __eglewQueryOutputPortAttribEXT;
  1872. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC __eglewQueryOutputPortStringEXT;
  1873. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC __eglewCreatePlatformPixmapSurfaceEXT;
  1874. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC __eglewCreatePlatformWindowSurfaceEXT;
  1875. EGLEW_FUN_EXPORT PFNEGLGETPLATFORMDISPLAYEXTPROC __eglewGetPlatformDisplayEXT;
  1876. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMEROUTPUTEXTPROC __eglewStreamConsumerOutputEXT;
  1877. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC __eglewSwapBuffersWithDamageEXT;
  1878. EGLEW_FUN_EXPORT PFNEGLUNSIGNALSYNCEXTPROC __eglewUnsignalSyncEXT;
  1879. EGLEW_FUN_EXPORT PFNEGLCREATEPIXMAPSURFACEHIPROC __eglewCreatePixmapSurfaceHI;
  1880. EGLEW_FUN_EXPORT PFNEGLCREATESYNC64KHRPROC __eglewCreateSync64KHR;
  1881. EGLEW_FUN_EXPORT PFNEGLDEBUGMESSAGECONTROLKHRPROC __eglewDebugMessageControlKHR;
  1882. EGLEW_FUN_EXPORT PFNEGLLABELOBJECTKHRPROC __eglewLabelObjectKHR;
  1883. EGLEW_FUN_EXPORT PFNEGLQUERYDEBUGKHRPROC __eglewQueryDebugKHR;
  1884. EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBKHRPROC __eglewQueryDisplayAttribKHR;
  1885. EGLEW_FUN_EXPORT PFNEGLCREATEIMAGEKHRPROC __eglewCreateImageKHR;
  1886. EGLEW_FUN_EXPORT PFNEGLDESTROYIMAGEKHRPROC __eglewDestroyImageKHR;
  1887. EGLEW_FUN_EXPORT PFNEGLLOCKSURFACEKHRPROC __eglewLockSurfaceKHR;
  1888. EGLEW_FUN_EXPORT PFNEGLUNLOCKSURFACEKHRPROC __eglewUnlockSurfaceKHR;
  1889. EGLEW_FUN_EXPORT PFNEGLQUERYSURFACE64KHRPROC __eglewQuerySurface64KHR;
  1890. EGLEW_FUN_EXPORT PFNEGLSETDAMAGEREGIONKHRPROC __eglewSetDamageRegionKHR;
  1891. EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCKHRPROC __eglewClientWaitSyncKHR;
  1892. EGLEW_FUN_EXPORT PFNEGLCREATESYNCKHRPROC __eglewCreateSyncKHR;
  1893. EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCKHRPROC __eglewDestroySyncKHR;
  1894. EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBKHRPROC __eglewGetSyncAttribKHR;
  1895. EGLEW_FUN_EXPORT PFNEGLSIGNALSYNCKHRPROC __eglewSignalSyncKHR;
  1896. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMKHRPROC __eglewCreateStreamKHR;
  1897. EGLEW_FUN_EXPORT PFNEGLDESTROYSTREAMKHRPROC __eglewDestroyStreamKHR;
  1898. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMKHRPROC __eglewQueryStreamKHR;
  1899. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMU64KHRPROC __eglewQueryStreamu64KHR;
  1900. EGLEW_FUN_EXPORT PFNEGLSTREAMATTRIBKHRPROC __eglewStreamAttribKHR;
  1901. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMATTRIBKHRPROC __eglewCreateStreamAttribKHR;
  1902. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMATTRIBKHRPROC __eglewQueryStreamAttribKHR;
  1903. EGLEW_FUN_EXPORT PFNEGLSETSTREAMATTRIBKHRPROC __eglewSetStreamAttribKHR;
  1904. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERACQUIREATTRIBKHRPROC __eglewStreamConsumerAcquireAttribKHR;
  1905. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERRELEASEATTRIBKHRPROC __eglewStreamConsumerReleaseAttribKHR;
  1906. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERACQUIREKHRPROC __eglewStreamConsumerAcquireKHR;
  1907. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC __eglewStreamConsumerGLTextureExternalKHR;
  1908. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERRELEASEKHRPROC __eglewStreamConsumerReleaseKHR;
  1909. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC __eglewCreateStreamFromFileDescriptorKHR;
  1910. EGLEW_FUN_EXPORT PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC __eglewGetStreamFileDescriptorKHR;
  1911. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMTIMEKHRPROC __eglewQueryStreamTimeKHR;
  1912. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC __eglewCreateStreamProducerSurfaceKHR;
  1913. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC __eglewSwapBuffersWithDamageKHR;
  1914. EGLEW_FUN_EXPORT PFNEGLWAITSYNCKHRPROC __eglewWaitSyncKHR;
  1915. EGLEW_FUN_EXPORT PFNEGLCREATEDRMIMAGEMESAPROC __eglewCreateDRMImageMESA;
  1916. EGLEW_FUN_EXPORT PFNEGLEXPORTDRMIMAGEMESAPROC __eglewExportDRMImageMESA;
  1917. EGLEW_FUN_EXPORT PFNEGLEXPORTDMABUFIMAGEMESAPROC __eglewExportDMABUFImageMESA;
  1918. EGLEW_FUN_EXPORT PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC __eglewExportDMABUFImageQueryMESA;
  1919. EGLEW_FUN_EXPORT PFNEGLGETDISPLAYDRIVERCONFIGPROC __eglewGetDisplayDriverConfig;
  1920. EGLEW_FUN_EXPORT PFNEGLGETDISPLAYDRIVERNAMEPROC __eglewGetDisplayDriverName;
  1921. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSREGIONNOKPROC __eglewSwapBuffersRegionNOK;
  1922. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSREGION2NOKPROC __eglewSwapBuffersRegion2NOK;
  1923. EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEDISPLAYNVPROC __eglewQueryNativeDisplayNV;
  1924. EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEPIXMAPNVPROC __eglewQueryNativePixmapNV;
  1925. EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEWINDOWNVPROC __eglewQueryNativeWindowNV;
  1926. EGLEW_FUN_EXPORT PFNEGLPOSTSUBBUFFERNVPROC __eglewPostSubBufferNV;
  1927. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC __eglewStreamConsumerGLTextureExternalAttribsNV;
  1928. EGLEW_FUN_EXPORT PFNEGLSTREAMFLUSHNVPROC __eglewStreamFlushNV;
  1929. EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBNVPROC __eglewQueryDisplayAttribNV;
  1930. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMMETADATANVPROC __eglewQueryStreamMetadataNV;
  1931. EGLEW_FUN_EXPORT PFNEGLSETSTREAMMETADATANVPROC __eglewSetStreamMetadataNV;
  1932. EGLEW_FUN_EXPORT PFNEGLRESETSTREAMNVPROC __eglewResetStreamNV;
  1933. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMSYNCNVPROC __eglewCreateStreamSyncNV;
  1934. EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCNVPROC __eglewClientWaitSyncNV;
  1935. EGLEW_FUN_EXPORT PFNEGLCREATEFENCESYNCNVPROC __eglewCreateFenceSyncNV;
  1936. EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCNVPROC __eglewDestroySyncNV;
  1937. EGLEW_FUN_EXPORT PFNEGLFENCENVPROC __eglewFenceNV;
  1938. EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBNVPROC __eglewGetSyncAttribNV;
  1939. EGLEW_FUN_EXPORT PFNEGLSIGNALSYNCNVPROC __eglewSignalSyncNV;
  1940. EGLEW_FUN_EXPORT PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC __eglewGetSystemTimeFrequencyNV;
  1941. EGLEW_FUN_EXPORT PFNEGLGETSYSTEMTIMENVPROC __eglewGetSystemTimeNV;
  1942. EGLEW_FUN_EXPORT PFNEGLBINDWAYLANDDISPLAYWLPROC __eglewBindWaylandDisplayWL;
  1943. EGLEW_FUN_EXPORT PFNEGLQUERYWAYLANDBUFFERWLPROC __eglewQueryWaylandBufferWL;
  1944. EGLEW_FUN_EXPORT PFNEGLUNBINDWAYLANDDISPLAYWLPROC __eglewUnbindWaylandDisplayWL;
  1945. EGLEW_FUN_EXPORT PFNEGLCREATEWAYLANDBUFFERFROMIMAGEWLPROC __eglewCreateWaylandBufferFromImageWL;
  1946. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_0;
  1947. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_1;
  1948. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_2;
  1949. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_3;
  1950. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_4;
  1951. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_5;
  1952. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_GLES_layers;
  1953. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_blob_cache;
  1954. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_create_native_client_buffer;
  1955. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_framebuffer_target;
  1956. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_front_buffer_auto_refresh;
  1957. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_get_frame_timestamps;
  1958. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_get_native_client_buffer;
  1959. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_image_native_buffer;
  1960. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_native_fence_sync;
  1961. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_presentation_time;
  1962. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_recordable;
  1963. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_d3d_share_handle_client_buffer;
  1964. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_device_d3d;
  1965. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_query_surface_pointer;
  1966. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_surface_d3d_texture_2d_share_handle;
  1967. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_window_fixed_size;
  1968. EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_image_format;
  1969. EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_implicit_external_sync;
  1970. EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_pixmap_multisample_discard;
  1971. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_bind_to_front;
  1972. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_buffer_age;
  1973. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_client_extensions;
  1974. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_client_sync;
  1975. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_compositor;
  1976. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_create_context_robustness;
  1977. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_base;
  1978. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_drm;
  1979. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_enumeration;
  1980. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_openwf;
  1981. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_query;
  1982. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_bt2020_linear;
  1983. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_bt2020_pq;
  1984. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_display_p3;
  1985. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_display_p3_linear;
  1986. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_display_p3_passthrough;
  1987. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_scrgb;
  1988. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_gl_colorspace_scrgb_linear;
  1989. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_dma_buf_import;
  1990. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_dma_buf_import_modifiers;
  1991. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_gl_colorspace;
  1992. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_implicit_sync_control;
  1993. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_multiview_window;
  1994. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_base;
  1995. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_drm;
  1996. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_openwf;
  1997. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_pixel_format_float;
  1998. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_base;
  1999. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_device;
  2000. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_wayland;
  2001. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_x11;
  2002. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_content;
  2003. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_surface;
  2004. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_stream_consumer_egloutput;
  2005. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_surface_CTA861_3_metadata;
  2006. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_surface_SMPTE2086_metadata;
  2007. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_swap_buffers_with_damage;
  2008. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_sync_reuse;
  2009. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_yuv_surface;
  2010. EGLEW_VAR_EXPORT GLboolean __EGLEW_HI_clientpixmap;
  2011. EGLEW_VAR_EXPORT GLboolean __EGLEW_HI_colorformats;
  2012. EGLEW_VAR_EXPORT GLboolean __EGLEW_IMG_context_priority;
  2013. EGLEW_VAR_EXPORT GLboolean __EGLEW_IMG_image_plane_attribs;
  2014. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_cl_event;
  2015. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_cl_event2;
  2016. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_client_get_all_proc_addresses;
  2017. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_config_attribs;
  2018. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_context_flush_control;
  2019. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_create_context;
  2020. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_create_context_no_error;
  2021. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_debug;
  2022. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_display_reference;
  2023. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_fence_sync;
  2024. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_get_all_proc_addresses;
  2025. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_colorspace;
  2026. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_renderbuffer_image;
  2027. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_2D_image;
  2028. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_3D_image;
  2029. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_cubemap_image;
  2030. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image;
  2031. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image_base;
  2032. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image_pixmap;
  2033. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface;
  2034. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface2;
  2035. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface3;
  2036. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_mutable_render_buffer;
  2037. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_no_config_context;
  2038. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_partial_update;
  2039. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_android;
  2040. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_gbm;
  2041. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_wayland;
  2042. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_x11;
  2043. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_reusable_sync;
  2044. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream;
  2045. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_attrib;
  2046. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_consumer_gltexture;
  2047. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_cross_process_fd;
  2048. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_fifo;
  2049. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_producer_aldatalocator;
  2050. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_producer_eglsurface;
  2051. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_surfaceless_context;
  2052. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_swap_buffers_with_damage;
  2053. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_vg_parent_image;
  2054. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_wait_sync;
  2055. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_drm_image;
  2056. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_image_dma_buf_export;
  2057. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_platform_gbm;
  2058. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_platform_surfaceless;
  2059. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_query_driver;
  2060. EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_swap_region;
  2061. EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_swap_region2;
  2062. EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_texture_from_pixmap;
  2063. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_3dvision_surface;
  2064. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_context_priority_realtime;
  2065. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_coverage_sample;
  2066. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_coverage_sample_resolve;
  2067. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_cuda_event;
  2068. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_depth_nonlinear;
  2069. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_device_cuda;
  2070. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_native_query;
  2071. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_post_convert_rounding;
  2072. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_post_sub_buffer;
  2073. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_quadruple_buffer;
  2074. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_robustness_video_memory_purge;
  2075. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_consumer_gltexture_yuv;
  2076. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_display;
  2077. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_object;
  2078. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_partition;
  2079. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_process;
  2080. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_cross_system;
  2081. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_dma;
  2082. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_fifo_next;
  2083. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_fifo_synchronous;
  2084. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_flush;
  2085. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_frame_limits;
  2086. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_metadata;
  2087. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_origin;
  2088. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_remote;
  2089. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_reset;
  2090. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_socket;
  2091. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_socket_inet;
  2092. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_socket_unix;
  2093. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_sync;
  2094. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_sync;
  2095. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_system_time;
  2096. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_triple_buffer;
  2097. EGLEW_VAR_EXPORT GLboolean __EGLEW_TIZEN_image_native_buffer;
  2098. EGLEW_VAR_EXPORT GLboolean __EGLEW_TIZEN_image_native_surface;
  2099. EGLEW_VAR_EXPORT GLboolean __EGLEW_WL_bind_wayland_display;
  2100. EGLEW_VAR_EXPORT GLboolean __EGLEW_WL_create_wayland_buffer_from_image;
  2101. /* ------------------------------------------------------------------------ */
  2102. GLEWAPI GLenum GLEWAPIENTRY eglewInit (EGLDisplay display);
  2103. GLEWAPI GLboolean GLEWAPIENTRY eglewIsSupported (const char *name);
  2104. #define EGLEW_GET_VAR(x) (*(const GLboolean*)&x)
  2105. #define EGLEW_GET_FUN(x) x
  2106. GLEWAPI GLboolean GLEWAPIENTRY eglewGetExtension (const char *name);
  2107. #ifdef __cplusplus
  2108. }
  2109. #endif
  2110. #endif /* __eglew_h__ */