eglew.h 88 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261
  1. /*
  2. ** The OpenGL Extension Wrangler Library
  3. ** Copyright (C) 2008-2015, 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. #include <GL/glew.h>
  99. #ifdef __cplusplus
  100. extern "C" {
  101. #endif
  102. typedef int32_t EGLint;
  103. typedef unsigned int EGLBoolean;
  104. typedef void *EGLDisplay;
  105. typedef void *EGLConfig;
  106. typedef void *EGLSurface;
  107. typedef void *EGLContext;
  108. typedef void (*__eglMustCastToProperFunctionPointerType)(void);
  109. typedef unsigned int EGLenum;
  110. typedef void *EGLClientBuffer;
  111. typedef void *EGLSync;
  112. typedef intptr_t EGLAttrib;
  113. typedef khronos_utime_nanoseconds_t EGLTime;
  114. typedef void *EGLImage;
  115. typedef void *EGLSyncKHR;
  116. typedef intptr_t EGLAttribKHR;
  117. typedef void *EGLLabelKHR;
  118. typedef void *EGLObjectKHR;
  119. typedef void (EGLAPIENTRY *EGLDEBUGPROCKHR)(EGLenum error,const char *command,EGLint messageType,EGLLabelKHR threadLabel,EGLLabelKHR objectLabel,const char* message);
  120. typedef khronos_utime_nanoseconds_t EGLTimeKHR;
  121. typedef void *EGLImageKHR;
  122. typedef void *EGLStreamKHR;
  123. typedef khronos_uint64_t EGLuint64KHR;
  124. typedef int EGLNativeFileDescriptorKHR;
  125. typedef khronos_ssize_t EGLsizeiANDROID;
  126. typedef void (*EGLSetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, const void *value, EGLsizeiANDROID valueSize);
  127. typedef EGLsizeiANDROID (*EGLGetBlobFuncANDROID) (const void *key, EGLsizeiANDROID keySize, void *value, EGLsizeiANDROID valueSize);
  128. typedef void *EGLDeviceEXT;
  129. typedef void *EGLOutputLayerEXT;
  130. typedef void *EGLOutputPortEXT;
  131. typedef void *EGLSyncNV;
  132. typedef khronos_utime_nanoseconds_t EGLTimeNV;
  133. typedef khronos_utime_nanoseconds_t EGLuint64NV;
  134. typedef khronos_stime_nanoseconds_t EGLnsecsANDROID;
  135. struct EGLClientPixmapHI;
  136. #define EGL_DONT_CARE ((EGLint)-1)
  137. #define EGL_NO_CONTEXT ((EGLContext)0)
  138. #define EGL_NO_DISPLAY ((EGLDisplay)0)
  139. #define EGL_NO_IMAGE ((EGLImage)0)
  140. #define EGL_NO_SURFACE ((EGLSurface)0)
  141. #define EGL_NO_SYNC ((EGLSync)0)
  142. #define EGL_UNKNOWN ((EGLint)-1)
  143. #define EGL_DEFAULT_DISPLAY ((EGLNativeDisplayType)0)
  144. EGLAPI __eglMustCastToProperFunctionPointerType EGLAPIENTRY eglGetProcAddress (const char *procname);
  145. /* ---------------------------- EGL_VERSION_1_0 ---------------------------- */
  146. #ifndef EGL_VERSION_1_0
  147. #define EGL_VERSION_1_0 1
  148. #define EGL_FALSE 0
  149. #define EGL_PBUFFER_BIT 0x0001
  150. #define EGL_TRUE 1
  151. #define EGL_PIXMAP_BIT 0x0002
  152. #define EGL_WINDOW_BIT 0x0004
  153. #define EGL_SUCCESS 0x3000
  154. #define EGL_NOT_INITIALIZED 0x3001
  155. #define EGL_BAD_ACCESS 0x3002
  156. #define EGL_BAD_ALLOC 0x3003
  157. #define EGL_BAD_ATTRIBUTE 0x3004
  158. #define EGL_BAD_CONFIG 0x3005
  159. #define EGL_BAD_CONTEXT 0x3006
  160. #define EGL_BAD_CURRENT_SURFACE 0x3007
  161. #define EGL_BAD_DISPLAY 0x3008
  162. #define EGL_BAD_MATCH 0x3009
  163. #define EGL_BAD_NATIVE_PIXMAP 0x300A
  164. #define EGL_BAD_NATIVE_WINDOW 0x300B
  165. #define EGL_BAD_PARAMETER 0x300C
  166. #define EGL_BAD_SURFACE 0x300D
  167. #define EGL_BUFFER_SIZE 0x3020
  168. #define EGL_ALPHA_SIZE 0x3021
  169. #define EGL_BLUE_SIZE 0x3022
  170. #define EGL_GREEN_SIZE 0x3023
  171. #define EGL_RED_SIZE 0x3024
  172. #define EGL_DEPTH_SIZE 0x3025
  173. #define EGL_STENCIL_SIZE 0x3026
  174. #define EGL_CONFIG_CAVEAT 0x3027
  175. #define EGL_CONFIG_ID 0x3028
  176. #define EGL_LEVEL 0x3029
  177. #define EGL_MAX_PBUFFER_HEIGHT 0x302A
  178. #define EGL_MAX_PBUFFER_PIXELS 0x302B
  179. #define EGL_MAX_PBUFFER_WIDTH 0x302C
  180. #define EGL_NATIVE_RENDERABLE 0x302D
  181. #define EGL_NATIVE_VISUAL_ID 0x302E
  182. #define EGL_NATIVE_VISUAL_TYPE 0x302F
  183. #define EGL_SAMPLES 0x3031
  184. #define EGL_SAMPLE_BUFFERS 0x3032
  185. #define EGL_SURFACE_TYPE 0x3033
  186. #define EGL_TRANSPARENT_TYPE 0x3034
  187. #define EGL_TRANSPARENT_BLUE_VALUE 0x3035
  188. #define EGL_TRANSPARENT_GREEN_VALUE 0x3036
  189. #define EGL_TRANSPARENT_RED_VALUE 0x3037
  190. #define EGL_NONE 0x3038
  191. #define EGL_SLOW_CONFIG 0x3050
  192. #define EGL_NON_CONFORMANT_CONFIG 0x3051
  193. #define EGL_TRANSPARENT_RGB 0x3052
  194. #define EGL_VENDOR 0x3053
  195. #define EGL_VERSION 0x3054
  196. #define EGL_EXTENSIONS 0x3055
  197. #define EGL_HEIGHT 0x3056
  198. #define EGL_WIDTH 0x3057
  199. #define EGL_LARGEST_PBUFFER 0x3058
  200. #define EGL_DRAW 0x3059
  201. #define EGL_READ 0x305A
  202. #define EGL_CORE_NATIVE_ENGINE 0x305B
  203. typedef EGLBoolean ( * PFNEGLCHOOSECONFIGPROC) (EGLDisplay dpy, const EGLint * attrib_list, EGLConfig * configs, EGLint config_size, EGLint * num_config);
  204. typedef EGLBoolean ( * PFNEGLCOPYBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface, EGLNativePixmapType target);
  205. typedef EGLContext ( * PFNEGLCREATECONTEXTPROC) (EGLDisplay dpy, EGLConfig config, EGLContext share_context, const EGLint * attrib_list);
  206. typedef EGLSurface ( * PFNEGLCREATEPBUFFERSURFACEPROC) (EGLDisplay dpy, EGLConfig config, const EGLint * attrib_list);
  207. typedef EGLSurface ( * PFNEGLCREATEPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativePixmapType pixmap, const EGLint * attrib_list);
  208. typedef EGLSurface ( * PFNEGLCREATEWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, EGLNativeWindowType win, const EGLint * attrib_list);
  209. typedef EGLBoolean ( * PFNEGLDESTROYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx);
  210. typedef EGLBoolean ( * PFNEGLDESTROYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface);
  211. typedef EGLBoolean ( * PFNEGLGETCONFIGATTRIBPROC) (EGLDisplay dpy, EGLConfig config, EGLint attribute, EGLint * value);
  212. typedef EGLBoolean ( * PFNEGLGETCONFIGSPROC) (EGLDisplay dpy, EGLConfig * configs, EGLint config_size, EGLint * num_config);
  213. typedef EGLDisplay ( * PFNEGLGETCURRENTDISPLAYPROC) ( void );
  214. typedef EGLSurface ( * PFNEGLGETCURRENTSURFACEPROC) (EGLint readdraw);
  215. typedef EGLDisplay ( * PFNEGLGETDISPLAYPROC) (EGLNativeDisplayType display_id);
  216. typedef EGLint ( * PFNEGLGETERRORPROC) ( void );
  217. typedef EGLBoolean ( * PFNEGLINITIALIZEPROC) (EGLDisplay dpy, EGLint * major, EGLint * minor);
  218. typedef EGLBoolean ( * PFNEGLMAKECURRENTPROC) (EGLDisplay dpy, EGLSurface draw, EGLSurface read, EGLContext ctx);
  219. typedef EGLBoolean ( * PFNEGLQUERYCONTEXTPROC) (EGLDisplay dpy, EGLContext ctx, EGLint attribute, EGLint * value);
  220. typedef const char * ( * PFNEGLQUERYSTRINGPROC) (EGLDisplay dpy, EGLint name);
  221. typedef EGLBoolean ( * PFNEGLQUERYSURFACEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint * value);
  222. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSPROC) (EGLDisplay dpy, EGLSurface surface);
  223. typedef EGLBoolean ( * PFNEGLTERMINATEPROC) (EGLDisplay dpy);
  224. typedef EGLBoolean ( * PFNEGLWAITGLPROC) ( void );
  225. typedef EGLBoolean ( * PFNEGLWAITNATIVEPROC) (EGLint engine);
  226. #define eglChooseConfig EGLEW_GET_FUN(__eglewChooseConfig)
  227. #define eglCopyBuffers EGLEW_GET_FUN(__eglewCopyBuffers)
  228. #define eglCreateContext EGLEW_GET_FUN(__eglewCreateContext)
  229. #define eglCreatePbufferSurface EGLEW_GET_FUN(__eglewCreatePbufferSurface)
  230. #define eglCreatePixmapSurface EGLEW_GET_FUN(__eglewCreatePixmapSurface)
  231. #define eglCreateWindowSurface EGLEW_GET_FUN(__eglewCreateWindowSurface)
  232. #define eglDestroyContext EGLEW_GET_FUN(__eglewDestroyContext)
  233. #define eglDestroySurface EGLEW_GET_FUN(__eglewDestroySurface)
  234. #define eglGetConfigAttrib EGLEW_GET_FUN(__eglewGetConfigAttrib)
  235. #define eglGetConfigs EGLEW_GET_FUN(__eglewGetConfigs)
  236. #define eglGetCurrentDisplay EGLEW_GET_FUN(__eglewGetCurrentDisplay)
  237. #define eglGetCurrentSurface EGLEW_GET_FUN(__eglewGetCurrentSurface)
  238. #define eglGetDisplay EGLEW_GET_FUN(__eglewGetDisplay)
  239. #define eglGetError EGLEW_GET_FUN(__eglewGetError)
  240. #define eglInitialize EGLEW_GET_FUN(__eglewInitialize)
  241. #define eglMakeCurrent EGLEW_GET_FUN(__eglewMakeCurrent)
  242. #define eglQueryContext EGLEW_GET_FUN(__eglewQueryContext)
  243. #define eglQueryString EGLEW_GET_FUN(__eglewQueryString)
  244. #define eglQuerySurface EGLEW_GET_FUN(__eglewQuerySurface)
  245. #define eglSwapBuffers EGLEW_GET_FUN(__eglewSwapBuffers)
  246. #define eglTerminate EGLEW_GET_FUN(__eglewTerminate)
  247. #define eglWaitGL EGLEW_GET_FUN(__eglewWaitGL)
  248. #define eglWaitNative EGLEW_GET_FUN(__eglewWaitNative)
  249. #define EGLEW_VERSION_1_0 EGLEW_GET_VAR(__EGLEW_VERSION_1_0)
  250. #endif /* EGL_VERSION_1_0 */
  251. /* ---------------------------- EGL_VERSION_1_1 ---------------------------- */
  252. #ifndef EGL_VERSION_1_1
  253. #define EGL_VERSION_1_1 1
  254. #define EGL_CONTEXT_LOST 0x300E
  255. #define EGL_BIND_TO_TEXTURE_RGB 0x3039
  256. #define EGL_BIND_TO_TEXTURE_RGBA 0x303A
  257. #define EGL_MIN_SWAP_INTERVAL 0x303B
  258. #define EGL_MAX_SWAP_INTERVAL 0x303C
  259. #define EGL_NO_TEXTURE 0x305C
  260. #define EGL_TEXTURE_RGB 0x305D
  261. #define EGL_TEXTURE_RGBA 0x305E
  262. #define EGL_TEXTURE_2D 0x305F
  263. #define EGL_TEXTURE_FORMAT 0x3080
  264. #define EGL_TEXTURE_TARGET 0x3081
  265. #define EGL_MIPMAP_TEXTURE 0x3082
  266. #define EGL_MIPMAP_LEVEL 0x3083
  267. #define EGL_BACK_BUFFER 0x3084
  268. typedef EGLBoolean ( * PFNEGLBINDTEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
  269. typedef EGLBoolean ( * PFNEGLRELEASETEXIMAGEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint buffer);
  270. typedef EGLBoolean ( * PFNEGLSURFACEATTRIBPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLint value);
  271. typedef EGLBoolean ( * PFNEGLSWAPINTERVALPROC) (EGLDisplay dpy, EGLint interval);
  272. #define eglBindTexImage EGLEW_GET_FUN(__eglewBindTexImage)
  273. #define eglReleaseTexImage EGLEW_GET_FUN(__eglewReleaseTexImage)
  274. #define eglSurfaceAttrib EGLEW_GET_FUN(__eglewSurfaceAttrib)
  275. #define eglSwapInterval EGLEW_GET_FUN(__eglewSwapInterval)
  276. #define EGLEW_VERSION_1_1 EGLEW_GET_VAR(__EGLEW_VERSION_1_1)
  277. #endif /* EGL_VERSION_1_1 */
  278. /* ---------------------------- EGL_VERSION_1_2 ---------------------------- */
  279. #ifndef EGL_VERSION_1_2
  280. #define EGL_VERSION_1_2 1
  281. #define EGL_OPENGL_ES_BIT 0x0001
  282. #define EGL_OPENVG_BIT 0x0002
  283. #define EGL_LUMINANCE_SIZE 0x303D
  284. #define EGL_ALPHA_MASK_SIZE 0x303E
  285. #define EGL_COLOR_BUFFER_TYPE 0x303F
  286. #define EGL_RENDERABLE_TYPE 0x3040
  287. #define EGL_SINGLE_BUFFER 0x3085
  288. #define EGL_RENDER_BUFFER 0x3086
  289. #define EGL_COLORSPACE 0x3087
  290. #define EGL_ALPHA_FORMAT 0x3088
  291. #define EGL_COLORSPACE_LINEAR 0x308A
  292. #define EGL_ALPHA_FORMAT_NONPRE 0x308B
  293. #define EGL_ALPHA_FORMAT_PRE 0x308C
  294. #define EGL_CLIENT_APIS 0x308D
  295. #define EGL_RGB_BUFFER 0x308E
  296. #define EGL_LUMINANCE_BUFFER 0x308F
  297. #define EGL_HORIZONTAL_RESOLUTION 0x3090
  298. #define EGL_VERTICAL_RESOLUTION 0x3091
  299. #define EGL_PIXEL_ASPECT_RATIO 0x3092
  300. #define EGL_SWAP_BEHAVIOR 0x3093
  301. #define EGL_BUFFER_PRESERVED 0x3094
  302. #define EGL_BUFFER_DESTROYED 0x3095
  303. #define EGL_OPENVG_IMAGE 0x3096
  304. #define EGL_CONTEXT_CLIENT_TYPE 0x3097
  305. #define EGL_OPENGL_ES_API 0x30A0
  306. #define EGL_OPENVG_API 0x30A1
  307. #define EGL_DISPLAY_SCALING 10000
  308. typedef EGLBoolean ( * PFNEGLBINDAPIPROC) (EGLenum api);
  309. typedef EGLSurface ( * PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC) (EGLDisplay dpy, EGLenum buftype, EGLClientBuffer buffer, EGLConfig config, const EGLint * attrib_list);
  310. typedef EGLenum ( * PFNEGLQUERYAPIPROC) ( void );
  311. typedef EGLBoolean ( * PFNEGLRELEASETHREADPROC) ( void );
  312. typedef EGLBoolean ( * PFNEGLWAITCLIENTPROC) ( void );
  313. #define eglBindAPI EGLEW_GET_FUN(__eglewBindAPI)
  314. #define eglCreatePbufferFromClientBuffer EGLEW_GET_FUN(__eglewCreatePbufferFromClientBuffer)
  315. #define eglQueryAPI EGLEW_GET_FUN(__eglewQueryAPI)
  316. #define eglReleaseThread EGLEW_GET_FUN(__eglewReleaseThread)
  317. #define eglWaitClient EGLEW_GET_FUN(__eglewWaitClient)
  318. #define EGLEW_VERSION_1_2 EGLEW_GET_VAR(__EGLEW_VERSION_1_2)
  319. #endif /* EGL_VERSION_1_2 */
  320. /* ---------------------------- EGL_VERSION_1_3 ---------------------------- */
  321. #ifndef EGL_VERSION_1_3
  322. #define EGL_VERSION_1_3 1
  323. #define EGL_OPENGL_ES2_BIT 0x0004
  324. #define EGL_VG_COLORSPACE_LINEAR_BIT 0x0020
  325. #define EGL_VG_ALPHA_FORMAT_PRE_BIT 0x0040
  326. #define EGL_MATCH_NATIVE_PIXMAP 0x3041
  327. #define EGL_CONFORMANT 0x3042
  328. #define EGL_VG_COLORSPACE 0x3087
  329. #define EGL_VG_ALPHA_FORMAT 0x3088
  330. #define EGL_VG_COLORSPACE_LINEAR 0x308A
  331. #define EGL_VG_ALPHA_FORMAT_NONPRE 0x308B
  332. #define EGL_VG_ALPHA_FORMAT_PRE 0x308C
  333. #define EGL_CONTEXT_CLIENT_VERSION 0x3098
  334. #define EGLEW_VERSION_1_3 EGLEW_GET_VAR(__EGLEW_VERSION_1_3)
  335. #endif /* EGL_VERSION_1_3 */
  336. /* ---------------------------- EGL_VERSION_1_4 ---------------------------- */
  337. #ifndef EGL_VERSION_1_4
  338. #define EGL_VERSION_1_4 1
  339. #define EGL_OPENGL_BIT 0x0008
  340. #define EGL_MULTISAMPLE_RESOLVE_BOX_BIT 0x0200
  341. #define EGL_SWAP_BEHAVIOR_PRESERVED_BIT 0x0400
  342. #define EGL_MULTISAMPLE_RESOLVE 0x3099
  343. #define EGL_MULTISAMPLE_RESOLVE_DEFAULT 0x309A
  344. #define EGL_MULTISAMPLE_RESOLVE_BOX 0x309B
  345. #define EGL_OPENGL_API 0x30A2
  346. typedef EGLContext ( * PFNEGLGETCURRENTCONTEXTPROC) ( void );
  347. #define eglGetCurrentContext EGLEW_GET_FUN(__eglewGetCurrentContext)
  348. #define EGLEW_VERSION_1_4 EGLEW_GET_VAR(__EGLEW_VERSION_1_4)
  349. #endif /* EGL_VERSION_1_4 */
  350. /* ---------------------------- EGL_VERSION_1_5 ---------------------------- */
  351. #ifndef EGL_VERSION_1_5
  352. #define EGL_VERSION_1_5 1
  353. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT 0x00000001
  354. #define EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
  355. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT 0x00000002
  356. #define EGL_OPENGL_ES3_BIT 0x00000040
  357. #define EGL_GL_COLORSPACE_SRGB 0x3089
  358. #define EGL_GL_COLORSPACE_LINEAR 0x308A
  359. #define EGL_CONTEXT_MAJOR_VERSION 0x3098
  360. #define EGL_CL_EVENT_HANDLE 0x309C
  361. #define EGL_GL_COLORSPACE 0x309D
  362. #define EGL_GL_TEXTURE_2D 0x30B1
  363. #define EGL_GL_TEXTURE_3D 0x30B2
  364. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X 0x30B3
  365. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 0x30B4
  366. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 0x30B5
  367. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 0x30B6
  368. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 0x30B7
  369. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 0x30B8
  370. #define EGL_GL_RENDERBUFFER 0x30B9
  371. #define EGL_GL_TEXTURE_LEVEL 0x30BC
  372. #define EGL_GL_TEXTURE_ZOFFSET 0x30BD
  373. #define EGL_IMAGE_PRESERVED 0x30D2
  374. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
  375. #define EGL_SYNC_STATUS 0x30F1
  376. #define EGL_SIGNALED 0x30F2
  377. #define EGL_UNSIGNALED 0x30F3
  378. #define EGL_TIMEOUT_EXPIRED 0x30F5
  379. #define EGL_CONDITION_SATISFIED 0x30F6
  380. #define EGL_SYNC_TYPE 0x30F7
  381. #define EGL_SYNC_CONDITION 0x30F8
  382. #define EGL_SYNC_FENCE 0x30F9
  383. #define EGL_CONTEXT_MINOR_VERSION 0x30FB
  384. #define EGL_CONTEXT_OPENGL_PROFILE_MASK 0x30FD
  385. #define EGL_SYNC_CL_EVENT 0x30FE
  386. #define EGL_SYNC_CL_EVENT_COMPLETE 0x30FF
  387. #define EGL_CONTEXT_OPENGL_DEBUG 0x31B0
  388. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE 0x31B1
  389. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS 0x31B2
  390. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY 0x31BD
  391. #define EGL_NO_RESET_NOTIFICATION 0x31BE
  392. #define EGL_LOSE_CONTEXT_ON_RESET 0x31BF
  393. #define EGL_FOREVER 0xFFFFFFFFFFFFFFFF
  394. typedef EGLint ( * PFNEGLCLIENTWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags, EGLTime timeout);
  395. typedef EGLImage ( * PFNEGLCREATEIMAGEPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLAttrib * attrib_list);
  396. typedef EGLSurface ( * PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLAttrib * attrib_list);
  397. typedef EGLSurface ( * PFNEGLCREATEPLATFORMWINDOWSURFACEPROC) (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLAttrib * attrib_list);
  398. typedef EGLSync ( * PFNEGLCREATESYNCPROC) (EGLDisplay dpy, EGLenum type, const EGLAttrib * attrib_list);
  399. typedef EGLBoolean ( * PFNEGLDESTROYIMAGEPROC) (EGLDisplay dpy, EGLImage image);
  400. typedef EGLBoolean ( * PFNEGLDESTROYSYNCPROC) (EGLDisplay dpy, EGLSync sync);
  401. typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYPROC) (EGLenum platform, void * native_display, const EGLAttrib * attrib_list);
  402. typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBPROC) (EGLDisplay dpy, EGLSync sync, EGLint attribute, EGLAttrib * value);
  403. typedef EGLBoolean ( * PFNEGLWAITSYNCPROC) (EGLDisplay dpy, EGLSync sync, EGLint flags);
  404. #define eglClientWaitSync EGLEW_GET_FUN(__eglewClientWaitSync)
  405. #define eglCreateImage EGLEW_GET_FUN(__eglewCreateImage)
  406. #define eglCreatePlatformPixmapSurface EGLEW_GET_FUN(__eglewCreatePlatformPixmapSurface)
  407. #define eglCreatePlatformWindowSurface EGLEW_GET_FUN(__eglewCreatePlatformWindowSurface)
  408. #define eglCreateSync EGLEW_GET_FUN(__eglewCreateSync)
  409. #define eglDestroyImage EGLEW_GET_FUN(__eglewDestroyImage)
  410. #define eglDestroySync EGLEW_GET_FUN(__eglewDestroySync)
  411. #define eglGetPlatformDisplay EGLEW_GET_FUN(__eglewGetPlatformDisplay)
  412. #define eglGetSyncAttrib EGLEW_GET_FUN(__eglewGetSyncAttrib)
  413. #define eglWaitSync EGLEW_GET_FUN(__eglewWaitSync)
  414. #define EGLEW_VERSION_1_5 EGLEW_GET_VAR(__EGLEW_VERSION_1_5)
  415. #endif /* EGL_VERSION_1_5 */
  416. /* ------------------------- EGL_ANDROID_blob_cache ------------------------ */
  417. #ifndef EGL_ANDROID_blob_cache
  418. #define EGL_ANDROID_blob_cache 1
  419. typedef void ( * PFNEGLSETBLOBCACHEFUNCSANDROIDPROC) (EGLDisplay dpy, EGLSetBlobFuncANDROID set, EGLGetBlobFuncANDROID get);
  420. #define eglSetBlobCacheFuncsANDROID EGLEW_GET_FUN(__eglewSetBlobCacheFuncsANDROID)
  421. #define EGLEW_ANDROID_blob_cache EGLEW_GET_VAR(__EGLEW_ANDROID_blob_cache)
  422. #endif /* EGL_ANDROID_blob_cache */
  423. /* ---------------- EGL_ANDROID_create_native_client_buffer ---------------- */
  424. #ifndef EGL_ANDROID_create_native_client_buffer
  425. #define EGL_ANDROID_create_native_client_buffer 1
  426. #define EGL_NATIVE_BUFFER_USAGE_PROTECTED_BIT_ANDROID 0x00000001
  427. #define EGL_NATIVE_BUFFER_USAGE_RENDERBUFFER_BIT_ANDROID 0x00000002
  428. #define EGL_NATIVE_BUFFER_USAGE_TEXTURE_BIT_ANDROID 0x00000004
  429. #define EGL_NATIVE_BUFFER_USAGE_ANDROID 0x3143
  430. typedef EGLClientBuffer ( * PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC) (const EGLint * attrib_list);
  431. #define eglCreateNativeClientBufferANDROID EGLEW_GET_FUN(__eglewCreateNativeClientBufferANDROID)
  432. #define EGLEW_ANDROID_create_native_client_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_create_native_client_buffer)
  433. #endif /* EGL_ANDROID_create_native_client_buffer */
  434. /* --------------------- EGL_ANDROID_framebuffer_target -------------------- */
  435. #ifndef EGL_ANDROID_framebuffer_target
  436. #define EGL_ANDROID_framebuffer_target 1
  437. #define EGL_FRAMEBUFFER_TARGET_ANDROID 0x3147
  438. #define EGLEW_ANDROID_framebuffer_target EGLEW_GET_VAR(__EGLEW_ANDROID_framebuffer_target)
  439. #endif /* EGL_ANDROID_framebuffer_target */
  440. /* ----------------- EGL_ANDROID_front_buffer_auto_refresh ----------------- */
  441. #ifndef EGL_ANDROID_front_buffer_auto_refresh
  442. #define EGL_ANDROID_front_buffer_auto_refresh 1
  443. #define EGL_FRONT_BUFFER_AUTO_REFRESH_ANDROID 0x314C
  444. #define EGLEW_ANDROID_front_buffer_auto_refresh EGLEW_GET_VAR(__EGLEW_ANDROID_front_buffer_auto_refresh)
  445. #endif /* EGL_ANDROID_front_buffer_auto_refresh */
  446. /* -------------------- EGL_ANDROID_image_native_buffer -------------------- */
  447. #ifndef EGL_ANDROID_image_native_buffer
  448. #define EGL_ANDROID_image_native_buffer 1
  449. #define EGL_NATIVE_BUFFER_ANDROID 0x3140
  450. #define EGLEW_ANDROID_image_native_buffer EGLEW_GET_VAR(__EGLEW_ANDROID_image_native_buffer)
  451. #endif /* EGL_ANDROID_image_native_buffer */
  452. /* --------------------- EGL_ANDROID_native_fence_sync --------------------- */
  453. #ifndef EGL_ANDROID_native_fence_sync
  454. #define EGL_ANDROID_native_fence_sync 1
  455. #define EGL_SYNC_NATIVE_FENCE_ANDROID 0x3144
  456. #define EGL_SYNC_NATIVE_FENCE_FD_ANDROID 0x3145
  457. #define EGL_SYNC_NATIVE_FENCE_SIGNALED_ANDROID 0x3146
  458. typedef EGLint ( * PFNEGLDUPNATIVEFENCEFDANDROIDPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  459. #define eglDupNativeFenceFDANDROID EGLEW_GET_FUN(__eglewDupNativeFenceFDANDROID)
  460. #define EGLEW_ANDROID_native_fence_sync EGLEW_GET_VAR(__EGLEW_ANDROID_native_fence_sync)
  461. #endif /* EGL_ANDROID_native_fence_sync */
  462. /* --------------------- EGL_ANDROID_presentation_time --------------------- */
  463. #ifndef EGL_ANDROID_presentation_time
  464. #define EGL_ANDROID_presentation_time 1
  465. typedef EGLBoolean ( * PFNEGLPRESENTATIONTIMEANDROIDPROC) (EGLDisplay dpy, EGLSurface surface, EGLnsecsANDROID time);
  466. #define eglPresentationTimeANDROID EGLEW_GET_FUN(__eglewPresentationTimeANDROID)
  467. #define EGLEW_ANDROID_presentation_time EGLEW_GET_VAR(__EGLEW_ANDROID_presentation_time)
  468. #endif /* EGL_ANDROID_presentation_time */
  469. /* ------------------------- EGL_ANDROID_recordable ------------------------ */
  470. #ifndef EGL_ANDROID_recordable
  471. #define EGL_ANDROID_recordable 1
  472. #define EGL_RECORDABLE_ANDROID 0x3142
  473. #define EGLEW_ANDROID_recordable EGLEW_GET_VAR(__EGLEW_ANDROID_recordable)
  474. #endif /* EGL_ANDROID_recordable */
  475. /* ---------------- EGL_ANGLE_d3d_share_handle_client_buffer --------------- */
  476. #ifndef EGL_ANGLE_d3d_share_handle_client_buffer
  477. #define EGL_ANGLE_d3d_share_handle_client_buffer 1
  478. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  479. #define EGLEW_ANGLE_d3d_share_handle_client_buffer EGLEW_GET_VAR(__EGLEW_ANGLE_d3d_share_handle_client_buffer)
  480. #endif /* EGL_ANGLE_d3d_share_handle_client_buffer */
  481. /* -------------------------- EGL_ANGLE_device_d3d ------------------------- */
  482. #ifndef EGL_ANGLE_device_d3d
  483. #define EGL_ANGLE_device_d3d 1
  484. #define EGL_D3D9_DEVICE_ANGLE 0x33A0
  485. #define EGL_D3D11_DEVICE_ANGLE 0x33A1
  486. #define EGLEW_ANGLE_device_d3d EGLEW_GET_VAR(__EGLEW_ANGLE_device_d3d)
  487. #endif /* EGL_ANGLE_device_d3d */
  488. /* -------------------- EGL_ANGLE_query_surface_pointer -------------------- */
  489. #ifndef EGL_ANGLE_query_surface_pointer
  490. #define EGL_ANGLE_query_surface_pointer 1
  491. typedef EGLBoolean ( * PFNEGLQUERYSURFACEPOINTERANGLEPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, void ** value);
  492. #define eglQuerySurfacePointerANGLE EGLEW_GET_FUN(__eglewQuerySurfacePointerANGLE)
  493. #define EGLEW_ANGLE_query_surface_pointer EGLEW_GET_VAR(__EGLEW_ANGLE_query_surface_pointer)
  494. #endif /* EGL_ANGLE_query_surface_pointer */
  495. /* ------------- EGL_ANGLE_surface_d3d_texture_2d_share_handle ------------- */
  496. #ifndef EGL_ANGLE_surface_d3d_texture_2d_share_handle
  497. #define EGL_ANGLE_surface_d3d_texture_2d_share_handle 1
  498. #define EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE 0x3200
  499. #define EGLEW_ANGLE_surface_d3d_texture_2d_share_handle EGLEW_GET_VAR(__EGLEW_ANGLE_surface_d3d_texture_2d_share_handle)
  500. #endif /* EGL_ANGLE_surface_d3d_texture_2d_share_handle */
  501. /* ---------------------- EGL_ANGLE_window_fixed_size ---------------------- */
  502. #ifndef EGL_ANGLE_window_fixed_size
  503. #define EGL_ANGLE_window_fixed_size 1
  504. #define EGL_FIXED_SIZE_ANGLE 0x3201
  505. #define EGLEW_ANGLE_window_fixed_size EGLEW_GET_VAR(__EGLEW_ANGLE_window_fixed_size)
  506. #endif /* EGL_ANGLE_window_fixed_size */
  507. /* ------------------- EGL_ARM_pixmap_multisample_discard ------------------ */
  508. #ifndef EGL_ARM_pixmap_multisample_discard
  509. #define EGL_ARM_pixmap_multisample_discard 1
  510. #define EGL_DISCARD_SAMPLES_ARM 0x3286
  511. #define EGLEW_ARM_pixmap_multisample_discard EGLEW_GET_VAR(__EGLEW_ARM_pixmap_multisample_discard)
  512. #endif /* EGL_ARM_pixmap_multisample_discard */
  513. /* --------------------------- EGL_EXT_buffer_age -------------------------- */
  514. #ifndef EGL_EXT_buffer_age
  515. #define EGL_EXT_buffer_age 1
  516. #define EGL_BUFFER_AGE_EXT 0x313D
  517. #define EGLEW_EXT_buffer_age EGLEW_GET_VAR(__EGLEW_EXT_buffer_age)
  518. #endif /* EGL_EXT_buffer_age */
  519. /* ----------------------- EGL_EXT_client_extensions ----------------------- */
  520. #ifndef EGL_EXT_client_extensions
  521. #define EGL_EXT_client_extensions 1
  522. #define EGLEW_EXT_client_extensions EGLEW_GET_VAR(__EGLEW_EXT_client_extensions)
  523. #endif /* EGL_EXT_client_extensions */
  524. /* ------------------- EGL_EXT_create_context_robustness ------------------- */
  525. #ifndef EGL_EXT_create_context_robustness
  526. #define EGL_EXT_create_context_robustness 1
  527. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_EXT 0x30BF
  528. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
  529. #define EGL_NO_RESET_NOTIFICATION_EXT 0x31BE
  530. #define EGL_LOSE_CONTEXT_ON_RESET_EXT 0x31BF
  531. #define EGLEW_EXT_create_context_robustness EGLEW_GET_VAR(__EGLEW_EXT_create_context_robustness)
  532. #endif /* EGL_EXT_create_context_robustness */
  533. /* -------------------------- EGL_EXT_device_base -------------------------- */
  534. #ifndef EGL_EXT_device_base
  535. #define EGL_EXT_device_base 1
  536. #define EGL_BAD_DEVICE_EXT 0x322B
  537. #define EGL_DEVICE_EXT 0x322C
  538. #define EGLEW_EXT_device_base EGLEW_GET_VAR(__EGLEW_EXT_device_base)
  539. #endif /* EGL_EXT_device_base */
  540. /* --------------------------- EGL_EXT_device_drm -------------------------- */
  541. #ifndef EGL_EXT_device_drm
  542. #define EGL_EXT_device_drm 1
  543. #define EGL_DRM_DEVICE_FILE_EXT 0x3233
  544. #define EGLEW_EXT_device_drm EGLEW_GET_VAR(__EGLEW_EXT_device_drm)
  545. #endif /* EGL_EXT_device_drm */
  546. /* ----------------------- EGL_EXT_device_enumeration ---------------------- */
  547. #ifndef EGL_EXT_device_enumeration
  548. #define EGL_EXT_device_enumeration 1
  549. typedef EGLBoolean ( * PFNEGLQUERYDEVICESEXTPROC) (EGLint max_devices, EGLDeviceEXT * devices, EGLint * num_devices);
  550. #define eglQueryDevicesEXT EGLEW_GET_FUN(__eglewQueryDevicesEXT)
  551. #define EGLEW_EXT_device_enumeration EGLEW_GET_VAR(__EGLEW_EXT_device_enumeration)
  552. #endif /* EGL_EXT_device_enumeration */
  553. /* ------------------------- EGL_EXT_device_openwf ------------------------- */
  554. #ifndef EGL_EXT_device_openwf
  555. #define EGL_EXT_device_openwf 1
  556. #define EGL_OPENWF_DEVICE_ID_EXT 0x3237
  557. #define EGLEW_EXT_device_openwf EGLEW_GET_VAR(__EGLEW_EXT_device_openwf)
  558. #endif /* EGL_EXT_device_openwf */
  559. /* -------------------------- EGL_EXT_device_query ------------------------- */
  560. #ifndef EGL_EXT_device_query
  561. #define EGL_EXT_device_query 1
  562. #define EGL_BAD_DEVICE_EXT 0x322B
  563. #define EGL_DEVICE_EXT 0x322C
  564. typedef EGLBoolean ( * PFNEGLQUERYDEVICEATTRIBEXTPROC) (EGLDeviceEXT device, EGLint attribute, EGLAttrib * value);
  565. typedef const char * ( * PFNEGLQUERYDEVICESTRINGEXTPROC) (EGLDeviceEXT device, EGLint name);
  566. typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBEXTPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib * value);
  567. #define eglQueryDeviceAttribEXT EGLEW_GET_FUN(__eglewQueryDeviceAttribEXT)
  568. #define eglQueryDeviceStringEXT EGLEW_GET_FUN(__eglewQueryDeviceStringEXT)
  569. #define eglQueryDisplayAttribEXT EGLEW_GET_FUN(__eglewQueryDisplayAttribEXT)
  570. #define EGLEW_EXT_device_query EGLEW_GET_VAR(__EGLEW_EXT_device_query)
  571. #endif /* EGL_EXT_device_query */
  572. /* ---------------------- EGL_EXT_image_dma_buf_import --------------------- */
  573. #ifndef EGL_EXT_image_dma_buf_import
  574. #define EGL_EXT_image_dma_buf_import 1
  575. #define EGL_LINUX_DMA_BUF_EXT 0x3270
  576. #define EGL_LINUX_DRM_FOURCC_EXT 0x3271
  577. #define EGL_DMA_BUF_PLANE0_FD_EXT 0x3272
  578. #define EGL_DMA_BUF_PLANE0_OFFSET_EXT 0x3273
  579. #define EGL_DMA_BUF_PLANE0_PITCH_EXT 0x3274
  580. #define EGL_DMA_BUF_PLANE1_FD_EXT 0x3275
  581. #define EGL_DMA_BUF_PLANE1_OFFSET_EXT 0x3276
  582. #define EGL_DMA_BUF_PLANE1_PITCH_EXT 0x3277
  583. #define EGL_DMA_BUF_PLANE2_FD_EXT 0x3278
  584. #define EGL_DMA_BUF_PLANE2_OFFSET_EXT 0x3279
  585. #define EGL_DMA_BUF_PLANE2_PITCH_EXT 0x327A
  586. #define EGL_YUV_COLOR_SPACE_HINT_EXT 0x327B
  587. #define EGL_SAMPLE_RANGE_HINT_EXT 0x327C
  588. #define EGL_YUV_CHROMA_HORIZONTAL_SITING_HINT_EXT 0x327D
  589. #define EGL_YUV_CHROMA_VERTICAL_SITING_HINT_EXT 0x327E
  590. #define EGL_ITU_REC601_EXT 0x327F
  591. #define EGL_ITU_REC709_EXT 0x3280
  592. #define EGL_ITU_REC2020_EXT 0x3281
  593. #define EGL_YUV_FULL_RANGE_EXT 0x3282
  594. #define EGL_YUV_NARROW_RANGE_EXT 0x3283
  595. #define EGL_YUV_CHROMA_SITING_0_EXT 0x3284
  596. #define EGL_YUV_CHROMA_SITING_0_5_EXT 0x3285
  597. #define EGLEW_EXT_image_dma_buf_import EGLEW_GET_VAR(__EGLEW_EXT_image_dma_buf_import)
  598. #endif /* EGL_EXT_image_dma_buf_import */
  599. /* ------------------------ EGL_EXT_multiview_window ----------------------- */
  600. #ifndef EGL_EXT_multiview_window
  601. #define EGL_EXT_multiview_window 1
  602. #define EGL_MULTIVIEW_VIEW_COUNT_EXT 0x3134
  603. #define EGLEW_EXT_multiview_window EGLEW_GET_VAR(__EGLEW_EXT_multiview_window)
  604. #endif /* EGL_EXT_multiview_window */
  605. /* -------------------------- EGL_EXT_output_base -------------------------- */
  606. #ifndef EGL_EXT_output_base
  607. #define EGL_EXT_output_base 1
  608. #define EGL_BAD_OUTPUT_LAYER_EXT 0x322D
  609. #define EGL_BAD_OUTPUT_PORT_EXT 0x322E
  610. #define EGL_SWAP_INTERVAL_EXT 0x322F
  611. typedef EGLBoolean ( * PFNEGLGETOUTPUTLAYERSEXTPROC) (EGLDisplay dpy, const EGLAttrib * attrib_list, EGLOutputLayerEXT * layers, EGLint max_layers, EGLint * num_layers);
  612. typedef EGLBoolean ( * PFNEGLGETOUTPUTPORTSEXTPROC) (EGLDisplay dpy, const EGLAttrib * attrib_list, EGLOutputPortEXT * ports, EGLint max_ports, EGLint * num_ports);
  613. typedef EGLBoolean ( * PFNEGLOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib value);
  614. typedef EGLBoolean ( * PFNEGLOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib value);
  615. typedef EGLBoolean ( * PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint attribute, EGLAttrib * value);
  616. typedef const char * ( * PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputLayerEXT layer, EGLint name);
  617. typedef EGLBoolean ( * PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint attribute, EGLAttrib * value);
  618. typedef const char * ( * PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC) (EGLDisplay dpy, EGLOutputPortEXT port, EGLint name);
  619. #define eglGetOutputLayersEXT EGLEW_GET_FUN(__eglewGetOutputLayersEXT)
  620. #define eglGetOutputPortsEXT EGLEW_GET_FUN(__eglewGetOutputPortsEXT)
  621. #define eglOutputLayerAttribEXT EGLEW_GET_FUN(__eglewOutputLayerAttribEXT)
  622. #define eglOutputPortAttribEXT EGLEW_GET_FUN(__eglewOutputPortAttribEXT)
  623. #define eglQueryOutputLayerAttribEXT EGLEW_GET_FUN(__eglewQueryOutputLayerAttribEXT)
  624. #define eglQueryOutputLayerStringEXT EGLEW_GET_FUN(__eglewQueryOutputLayerStringEXT)
  625. #define eglQueryOutputPortAttribEXT EGLEW_GET_FUN(__eglewQueryOutputPortAttribEXT)
  626. #define eglQueryOutputPortStringEXT EGLEW_GET_FUN(__eglewQueryOutputPortStringEXT)
  627. #define EGLEW_EXT_output_base EGLEW_GET_VAR(__EGLEW_EXT_output_base)
  628. #endif /* EGL_EXT_output_base */
  629. /* --------------------------- EGL_EXT_output_drm -------------------------- */
  630. #ifndef EGL_EXT_output_drm
  631. #define EGL_EXT_output_drm 1
  632. #define EGL_DRM_CRTC_EXT 0x3234
  633. #define EGL_DRM_PLANE_EXT 0x3235
  634. #define EGL_DRM_CONNECTOR_EXT 0x3236
  635. #define EGLEW_EXT_output_drm EGLEW_GET_VAR(__EGLEW_EXT_output_drm)
  636. #endif /* EGL_EXT_output_drm */
  637. /* ------------------------- EGL_EXT_output_openwf ------------------------- */
  638. #ifndef EGL_EXT_output_openwf
  639. #define EGL_EXT_output_openwf 1
  640. #define EGL_OPENWF_PIPELINE_ID_EXT 0x3238
  641. #define EGL_OPENWF_PORT_ID_EXT 0x3239
  642. #define EGLEW_EXT_output_openwf EGLEW_GET_VAR(__EGLEW_EXT_output_openwf)
  643. #endif /* EGL_EXT_output_openwf */
  644. /* ------------------------- EGL_EXT_platform_base ------------------------- */
  645. #ifndef EGL_EXT_platform_base
  646. #define EGL_EXT_platform_base 1
  647. typedef EGLSurface ( * PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void * native_pixmap, const EGLint * attrib_list);
  648. typedef EGLSurface ( * PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC) (EGLDisplay dpy, EGLConfig config, void * native_window, const EGLint * attrib_list);
  649. typedef EGLDisplay ( * PFNEGLGETPLATFORMDISPLAYEXTPROC) (EGLenum platform, void * native_display, const EGLint * attrib_list);
  650. #define eglCreatePlatformPixmapSurfaceEXT EGLEW_GET_FUN(__eglewCreatePlatformPixmapSurfaceEXT)
  651. #define eglCreatePlatformWindowSurfaceEXT EGLEW_GET_FUN(__eglewCreatePlatformWindowSurfaceEXT)
  652. #define eglGetPlatformDisplayEXT EGLEW_GET_FUN(__eglewGetPlatformDisplayEXT)
  653. #define EGLEW_EXT_platform_base EGLEW_GET_VAR(__EGLEW_EXT_platform_base)
  654. #endif /* EGL_EXT_platform_base */
  655. /* ------------------------ EGL_EXT_platform_device ------------------------ */
  656. #ifndef EGL_EXT_platform_device
  657. #define EGL_EXT_platform_device 1
  658. #define EGL_PLATFORM_DEVICE_EXT 0x313F
  659. #define EGLEW_EXT_platform_device EGLEW_GET_VAR(__EGLEW_EXT_platform_device)
  660. #endif /* EGL_EXT_platform_device */
  661. /* ------------------------ EGL_EXT_platform_wayland ----------------------- */
  662. #ifndef EGL_EXT_platform_wayland
  663. #define EGL_EXT_platform_wayland 1
  664. #define EGL_PLATFORM_WAYLAND_EXT 0x31D8
  665. #define EGLEW_EXT_platform_wayland EGLEW_GET_VAR(__EGLEW_EXT_platform_wayland)
  666. #endif /* EGL_EXT_platform_wayland */
  667. /* -------------------------- EGL_EXT_platform_x11 ------------------------- */
  668. #ifndef EGL_EXT_platform_x11
  669. #define EGL_EXT_platform_x11 1
  670. #define EGL_PLATFORM_X11_EXT 0x31D5
  671. #define EGL_PLATFORM_X11_SCREEN_EXT 0x31D6
  672. #define EGLEW_EXT_platform_x11 EGLEW_GET_VAR(__EGLEW_EXT_platform_x11)
  673. #endif /* EGL_EXT_platform_x11 */
  674. /* ----------------------- EGL_EXT_protected_content ----------------------- */
  675. #ifndef EGL_EXT_protected_content
  676. #define EGL_EXT_protected_content 1
  677. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  678. #define EGLEW_EXT_protected_content EGLEW_GET_VAR(__EGLEW_EXT_protected_content)
  679. #endif /* EGL_EXT_protected_content */
  680. /* ----------------------- EGL_EXT_protected_surface ----------------------- */
  681. #ifndef EGL_EXT_protected_surface
  682. #define EGL_EXT_protected_surface 1
  683. #define EGL_PROTECTED_CONTENT_EXT 0x32C0
  684. #define EGLEW_EXT_protected_surface EGLEW_GET_VAR(__EGLEW_EXT_protected_surface)
  685. #endif /* EGL_EXT_protected_surface */
  686. /* ------------------- EGL_EXT_stream_consumer_egloutput ------------------- */
  687. #ifndef EGL_EXT_stream_consumer_egloutput
  688. #define EGL_EXT_stream_consumer_egloutput 1
  689. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMEROUTPUTEXTPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLOutputLayerEXT layer);
  690. #define eglStreamConsumerOutputEXT EGLEW_GET_FUN(__eglewStreamConsumerOutputEXT)
  691. #define EGLEW_EXT_stream_consumer_egloutput EGLEW_GET_VAR(__EGLEW_EXT_stream_consumer_egloutput)
  692. #endif /* EGL_EXT_stream_consumer_egloutput */
  693. /* -------------------- EGL_EXT_swap_buffers_with_damage ------------------- */
  694. #ifndef EGL_EXT_swap_buffers_with_damage
  695. #define EGL_EXT_swap_buffers_with_damage 1
  696. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC) (EGLDisplay dpy, EGLSurface surface, EGLint * rects, EGLint n_rects);
  697. #define eglSwapBuffersWithDamageEXT EGLEW_GET_FUN(__eglewSwapBuffersWithDamageEXT)
  698. #define EGLEW_EXT_swap_buffers_with_damage EGLEW_GET_VAR(__EGLEW_EXT_swap_buffers_with_damage)
  699. #endif /* EGL_EXT_swap_buffers_with_damage */
  700. /* -------------------------- EGL_EXT_yuv_surface -------------------------- */
  701. #ifndef EGL_EXT_yuv_surface
  702. #define EGL_EXT_yuv_surface 1
  703. #define EGL_YUV_BUFFER_EXT 0x3300
  704. #define EGL_YUV_ORDER_EXT 0x3301
  705. #define EGL_YUV_ORDER_YUV_EXT 0x3302
  706. #define EGL_YUV_ORDER_YVU_EXT 0x3303
  707. #define EGL_YUV_ORDER_YUYV_EXT 0x3304
  708. #define EGL_YUV_ORDER_UYVY_EXT 0x3305
  709. #define EGL_YUV_ORDER_YVYU_EXT 0x3306
  710. #define EGL_YUV_ORDER_VYUY_EXT 0x3307
  711. #define EGL_YUV_ORDER_AYUV_EXT 0x3308
  712. #define EGL_YUV_CSC_STANDARD_EXT 0x330A
  713. #define EGL_YUV_CSC_STANDARD_601_EXT 0x330B
  714. #define EGL_YUV_CSC_STANDARD_709_EXT 0x330C
  715. #define EGL_YUV_CSC_STANDARD_2020_EXT 0x330D
  716. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  717. #define EGL_YUV_SUBSAMPLE_EXT 0x3312
  718. #define EGL_YUV_SUBSAMPLE_4_2_0_EXT 0x3313
  719. #define EGL_YUV_SUBSAMPLE_4_2_2_EXT 0x3314
  720. #define EGL_YUV_SUBSAMPLE_4_4_4_EXT 0x3315
  721. #define EGL_YUV_DEPTH_RANGE_EXT 0x3317
  722. #define EGL_YUV_DEPTH_RANGE_LIMITED_EXT 0x3318
  723. #define EGL_YUV_DEPTH_RANGE_FULL_EXT 0x3319
  724. #define EGL_YUV_PLANE_BPP_EXT 0x331A
  725. #define EGL_YUV_PLANE_BPP_0_EXT 0x331B
  726. #define EGL_YUV_PLANE_BPP_8_EXT 0x331C
  727. #define EGL_YUV_PLANE_BPP_10_EXT 0x331D
  728. #define EGLEW_EXT_yuv_surface EGLEW_GET_VAR(__EGLEW_EXT_yuv_surface)
  729. #endif /* EGL_EXT_yuv_surface */
  730. /* -------------------------- EGL_HI_clientpixmap -------------------------- */
  731. #ifndef EGL_HI_clientpixmap
  732. #define EGL_HI_clientpixmap 1
  733. #define EGL_CLIENT_PIXMAP_POINTER_HI 0x8F74
  734. typedef EGLSurface ( * PFNEGLCREATEPIXMAPSURFACEHIPROC) (EGLDisplay dpy, EGLConfig config, struct EGLClientPixmapHI * pixmap);
  735. #define eglCreatePixmapSurfaceHI EGLEW_GET_FUN(__eglewCreatePixmapSurfaceHI)
  736. #define EGLEW_HI_clientpixmap EGLEW_GET_VAR(__EGLEW_HI_clientpixmap)
  737. #endif /* EGL_HI_clientpixmap */
  738. /* -------------------------- EGL_HI_colorformats -------------------------- */
  739. #ifndef EGL_HI_colorformats
  740. #define EGL_HI_colorformats 1
  741. #define EGL_COLOR_FORMAT_HI 0x8F70
  742. #define EGL_COLOR_RGB_HI 0x8F71
  743. #define EGL_COLOR_RGBA_HI 0x8F72
  744. #define EGL_COLOR_ARGB_HI 0x8F73
  745. #define EGLEW_HI_colorformats EGLEW_GET_VAR(__EGLEW_HI_colorformats)
  746. #endif /* EGL_HI_colorformats */
  747. /* ------------------------ EGL_IMG_context_priority ----------------------- */
  748. #ifndef EGL_IMG_context_priority
  749. #define EGL_IMG_context_priority 1
  750. #define EGL_CONTEXT_PRIORITY_LEVEL_IMG 0x3100
  751. #define EGL_CONTEXT_PRIORITY_HIGH_IMG 0x3101
  752. #define EGL_CONTEXT_PRIORITY_MEDIUM_IMG 0x3102
  753. #define EGL_CONTEXT_PRIORITY_LOW_IMG 0x3103
  754. #define EGLEW_IMG_context_priority EGLEW_GET_VAR(__EGLEW_IMG_context_priority)
  755. #endif /* EGL_IMG_context_priority */
  756. /* ---------------------- EGL_IMG_image_plane_attribs ---------------------- */
  757. #ifndef EGL_IMG_image_plane_attribs
  758. #define EGL_IMG_image_plane_attribs 1
  759. #define EGL_NATIVE_BUFFER_MULTIPLANE_SEPARATE_IMG 0x3105
  760. #define EGL_NATIVE_BUFFER_PLANE_OFFSET_IMG 0x3106
  761. #define EGLEW_IMG_image_plane_attribs EGLEW_GET_VAR(__EGLEW_IMG_image_plane_attribs)
  762. #endif /* EGL_IMG_image_plane_attribs */
  763. /* ---------------------------- EGL_KHR_cl_event --------------------------- */
  764. #ifndef EGL_KHR_cl_event
  765. #define EGL_KHR_cl_event 1
  766. #define EGL_CL_EVENT_HANDLE_KHR 0x309C
  767. #define EGL_SYNC_CL_EVENT_KHR 0x30FE
  768. #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
  769. #define EGLEW_KHR_cl_event EGLEW_GET_VAR(__EGLEW_KHR_cl_event)
  770. #endif /* EGL_KHR_cl_event */
  771. /* --------------------------- EGL_KHR_cl_event2 --------------------------- */
  772. #ifndef EGL_KHR_cl_event2
  773. #define EGL_KHR_cl_event2 1
  774. #define EGL_CL_EVENT_HANDLE_KHR 0x309C
  775. #define EGL_SYNC_CL_EVENT_KHR 0x30FE
  776. #define EGL_SYNC_CL_EVENT_COMPLETE_KHR 0x30FF
  777. typedef EGLSyncKHR ( * PFNEGLCREATESYNC64KHRPROC) (EGLDisplay dpy, EGLenum type, const EGLAttribKHR * attrib_list);
  778. #define eglCreateSync64KHR EGLEW_GET_FUN(__eglewCreateSync64KHR)
  779. #define EGLEW_KHR_cl_event2 EGLEW_GET_VAR(__EGLEW_KHR_cl_event2)
  780. #endif /* EGL_KHR_cl_event2 */
  781. /* ----------------- EGL_KHR_client_get_all_proc_addresses ----------------- */
  782. #ifndef EGL_KHR_client_get_all_proc_addresses
  783. #define EGL_KHR_client_get_all_proc_addresses 1
  784. #define EGLEW_KHR_client_get_all_proc_addresses EGLEW_GET_VAR(__EGLEW_KHR_client_get_all_proc_addresses)
  785. #endif /* EGL_KHR_client_get_all_proc_addresses */
  786. /* ------------------------- EGL_KHR_config_attribs ------------------------ */
  787. #ifndef EGL_KHR_config_attribs
  788. #define EGL_KHR_config_attribs 1
  789. #define EGL_VG_COLORSPACE_LINEAR_BIT_KHR 0x0020
  790. #define EGL_VG_ALPHA_FORMAT_PRE_BIT_KHR 0x0040
  791. #define EGL_CONFORMANT_KHR 0x3042
  792. #define EGLEW_KHR_config_attribs EGLEW_GET_VAR(__EGLEW_KHR_config_attribs)
  793. #endif /* EGL_KHR_config_attribs */
  794. /* ------------------------- EGL_KHR_create_context ------------------------ */
  795. #ifndef EGL_KHR_create_context
  796. #define EGL_KHR_create_context 1
  797. #define EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR 0x00000001
  798. #define EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR 0x00000001
  799. #define EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR 0x00000002
  800. #define EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR 0x00000002
  801. #define EGL_CONTEXT_OPENGL_ROBUST_ACCESS_BIT_KHR 0x00000004
  802. #define EGL_OPENGL_ES3_BIT 0x00000040
  803. #define EGL_OPENGL_ES3_BIT_KHR 0x00000040
  804. #define EGL_CONTEXT_MAJOR_VERSION_KHR 0x3098
  805. #define EGL_CONTEXT_MINOR_VERSION_KHR 0x30FB
  806. #define EGL_CONTEXT_FLAGS_KHR 0x30FC
  807. #define EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR 0x30FD
  808. #define EGL_CONTEXT_OPENGL_RESET_NOTIFICATION_STRATEGY_KHR 0x31BD
  809. #define EGL_NO_RESET_NOTIFICATION_KHR 0x31BE
  810. #define EGL_LOSE_CONTEXT_ON_RESET_KHR 0x31BF
  811. #define EGLEW_KHR_create_context EGLEW_GET_VAR(__EGLEW_KHR_create_context)
  812. #endif /* EGL_KHR_create_context */
  813. /* -------------------- EGL_KHR_create_context_no_error -------------------- */
  814. #ifndef EGL_KHR_create_context_no_error
  815. #define EGL_KHR_create_context_no_error 1
  816. #define EGL_CONTEXT_OPENGL_NO_ERROR_KHR 0x31B3
  817. #define EGLEW_KHR_create_context_no_error EGLEW_GET_VAR(__EGLEW_KHR_create_context_no_error)
  818. #endif /* EGL_KHR_create_context_no_error */
  819. /* ----------------------------- EGL_KHR_debug ----------------------------- */
  820. #ifndef EGL_KHR_debug
  821. #define EGL_KHR_debug 1
  822. #define EGL_OBJECT_THREAD_KHR 0x33B0
  823. #define EGL_OBJECT_DISPLAY_KHR 0x33B1
  824. #define EGL_OBJECT_CONTEXT_KHR 0x33B2
  825. #define EGL_OBJECT_SURFACE_KHR 0x33B3
  826. #define EGL_OBJECT_IMAGE_KHR 0x33B4
  827. #define EGL_OBJECT_SYNC_KHR 0x33B5
  828. #define EGL_OBJECT_STREAM_KHR 0x33B6
  829. #define EGL_DEBUG_CALLBACK_KHR 0x33B8
  830. #define EGL_DEBUG_MSG_CRITICAL_KHR 0x33B9
  831. #define EGL_DEBUG_MSG_ERROR_KHR 0x33BA
  832. #define EGL_DEBUG_MSG_WARN_KHR 0x33BB
  833. #define EGL_DEBUG_MSG_INFO_KHR 0x33BC
  834. typedef EGLint ( * PFNEGLDEBUGMESSAGECONTROLKHRPROC) (EGLDEBUGPROCKHR callback, const EGLAttrib * attrib_list);
  835. typedef EGLint ( * PFNEGLLABELOBJECTKHRPROC) (EGLDisplay display, EGLenum objectType, EGLObjectKHR object, EGLLabelKHR label);
  836. typedef EGLBoolean ( * PFNEGLQUERYDEBUGKHRPROC) (EGLint attribute, EGLAttrib * value);
  837. #define eglDebugMessageControlKHR EGLEW_GET_FUN(__eglewDebugMessageControlKHR)
  838. #define eglLabelObjectKHR EGLEW_GET_FUN(__eglewLabelObjectKHR)
  839. #define eglQueryDebugKHR EGLEW_GET_FUN(__eglewQueryDebugKHR)
  840. #define EGLEW_KHR_debug EGLEW_GET_VAR(__EGLEW_KHR_debug)
  841. #endif /* EGL_KHR_debug */
  842. /* --------------------------- EGL_KHR_fence_sync -------------------------- */
  843. #ifndef EGL_KHR_fence_sync
  844. #define EGL_KHR_fence_sync 1
  845. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_KHR 0x30F0
  846. #define EGL_SYNC_CONDITION_KHR 0x30F8
  847. #define EGL_SYNC_FENCE_KHR 0x30F9
  848. #define EGLEW_KHR_fence_sync EGLEW_GET_VAR(__EGLEW_KHR_fence_sync)
  849. #endif /* EGL_KHR_fence_sync */
  850. /* --------------------- EGL_KHR_get_all_proc_addresses -------------------- */
  851. #ifndef EGL_KHR_get_all_proc_addresses
  852. #define EGL_KHR_get_all_proc_addresses 1
  853. #define EGLEW_KHR_get_all_proc_addresses EGLEW_GET_VAR(__EGLEW_KHR_get_all_proc_addresses)
  854. #endif /* EGL_KHR_get_all_proc_addresses */
  855. /* ------------------------- EGL_KHR_gl_colorspace ------------------------- */
  856. #ifndef EGL_KHR_gl_colorspace
  857. #define EGL_KHR_gl_colorspace 1
  858. #define EGL_GL_COLORSPACE_SRGB_KHR 0x3089
  859. #define EGL_GL_COLORSPACE_LINEAR_KHR 0x308A
  860. #define EGL_GL_COLORSPACE_KHR 0x309D
  861. #define EGLEW_KHR_gl_colorspace EGLEW_GET_VAR(__EGLEW_KHR_gl_colorspace)
  862. #endif /* EGL_KHR_gl_colorspace */
  863. /* --------------------- EGL_KHR_gl_renderbuffer_image --------------------- */
  864. #ifndef EGL_KHR_gl_renderbuffer_image
  865. #define EGL_KHR_gl_renderbuffer_image 1
  866. #define EGL_GL_RENDERBUFFER_KHR 0x30B9
  867. #define EGLEW_KHR_gl_renderbuffer_image EGLEW_GET_VAR(__EGLEW_KHR_gl_renderbuffer_image)
  868. #endif /* EGL_KHR_gl_renderbuffer_image */
  869. /* ---------------------- EGL_KHR_gl_texture_2D_image ---------------------- */
  870. #ifndef EGL_KHR_gl_texture_2D_image
  871. #define EGL_KHR_gl_texture_2D_image 1
  872. #define EGL_GL_TEXTURE_2D_KHR 0x30B1
  873. #define EGL_GL_TEXTURE_LEVEL_KHR 0x30BC
  874. #define EGLEW_KHR_gl_texture_2D_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_2D_image)
  875. #endif /* EGL_KHR_gl_texture_2D_image */
  876. /* ---------------------- EGL_KHR_gl_texture_3D_image ---------------------- */
  877. #ifndef EGL_KHR_gl_texture_3D_image
  878. #define EGL_KHR_gl_texture_3D_image 1
  879. #define EGL_GL_TEXTURE_3D_KHR 0x30B2
  880. #define EGL_GL_TEXTURE_ZOFFSET_KHR 0x30BD
  881. #define EGLEW_KHR_gl_texture_3D_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_3D_image)
  882. #endif /* EGL_KHR_gl_texture_3D_image */
  883. /* -------------------- EGL_KHR_gl_texture_cubemap_image ------------------- */
  884. #ifndef EGL_KHR_gl_texture_cubemap_image
  885. #define EGL_KHR_gl_texture_cubemap_image 1
  886. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_X_KHR 0x30B3
  887. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_X_KHR 0x30B4
  888. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Y_KHR 0x30B5
  889. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_KHR 0x30B6
  890. #define EGL_GL_TEXTURE_CUBE_MAP_POSITIVE_Z_KHR 0x30B7
  891. #define EGL_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_KHR 0x30B8
  892. #define EGLEW_KHR_gl_texture_cubemap_image EGLEW_GET_VAR(__EGLEW_KHR_gl_texture_cubemap_image)
  893. #endif /* EGL_KHR_gl_texture_cubemap_image */
  894. /* ----------------------------- EGL_KHR_image ----------------------------- */
  895. #ifndef EGL_KHR_image
  896. #define EGL_KHR_image 1
  897. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  898. typedef EGLImageKHR ( * PFNEGLCREATEIMAGEKHRPROC) (EGLDisplay dpy, EGLContext ctx, EGLenum target, EGLClientBuffer buffer, const EGLint * attrib_list);
  899. typedef EGLBoolean ( * PFNEGLDESTROYIMAGEKHRPROC) (EGLDisplay dpy, EGLImageKHR image);
  900. #define eglCreateImageKHR EGLEW_GET_FUN(__eglewCreateImageKHR)
  901. #define eglDestroyImageKHR EGLEW_GET_FUN(__eglewDestroyImageKHR)
  902. #define EGLEW_KHR_image EGLEW_GET_VAR(__EGLEW_KHR_image)
  903. #endif /* EGL_KHR_image */
  904. /* --------------------------- EGL_KHR_image_base -------------------------- */
  905. #ifndef EGL_KHR_image_base
  906. #define EGL_KHR_image_base 1
  907. #define EGL_IMAGE_PRESERVED_KHR 0x30D2
  908. #define EGLEW_KHR_image_base EGLEW_GET_VAR(__EGLEW_KHR_image_base)
  909. #endif /* EGL_KHR_image_base */
  910. /* -------------------------- EGL_KHR_image_pixmap ------------------------- */
  911. #ifndef EGL_KHR_image_pixmap
  912. #define EGL_KHR_image_pixmap 1
  913. #define EGL_NATIVE_PIXMAP_KHR 0x30B0
  914. #define EGLEW_KHR_image_pixmap EGLEW_GET_VAR(__EGLEW_KHR_image_pixmap)
  915. #endif /* EGL_KHR_image_pixmap */
  916. /* -------------------------- EGL_KHR_lock_surface ------------------------- */
  917. #ifndef EGL_KHR_lock_surface
  918. #define EGL_KHR_lock_surface 1
  919. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  920. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  921. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  922. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  923. #define EGL_MATCH_FORMAT_KHR 0x3043
  924. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  925. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  926. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  927. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  928. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  929. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  930. #define EGL_BITMAP_POINTER_KHR 0x30C6
  931. #define EGL_BITMAP_PITCH_KHR 0x30C7
  932. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  933. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  934. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  935. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  936. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  937. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  938. #define EGL_LOWER_LEFT_KHR 0x30CE
  939. #define EGL_UPPER_LEFT_KHR 0x30CF
  940. typedef EGLBoolean ( * PFNEGLLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface, const EGLint * attrib_list);
  941. typedef EGLBoolean ( * PFNEGLUNLOCKSURFACEKHRPROC) (EGLDisplay dpy, EGLSurface surface);
  942. #define eglLockSurfaceKHR EGLEW_GET_FUN(__eglewLockSurfaceKHR)
  943. #define eglUnlockSurfaceKHR EGLEW_GET_FUN(__eglewUnlockSurfaceKHR)
  944. #define EGLEW_KHR_lock_surface EGLEW_GET_VAR(__EGLEW_KHR_lock_surface)
  945. #endif /* EGL_KHR_lock_surface */
  946. /* ------------------------- EGL_KHR_lock_surface2 ------------------------- */
  947. #ifndef EGL_KHR_lock_surface2
  948. #define EGL_KHR_lock_surface2 1
  949. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  950. #define EGLEW_KHR_lock_surface2 EGLEW_GET_VAR(__EGLEW_KHR_lock_surface2)
  951. #endif /* EGL_KHR_lock_surface2 */
  952. /* ------------------------- EGL_KHR_lock_surface3 ------------------------- */
  953. #ifndef EGL_KHR_lock_surface3
  954. #define EGL_KHR_lock_surface3 1
  955. #define EGL_READ_SURFACE_BIT_KHR 0x0001
  956. #define EGL_WRITE_SURFACE_BIT_KHR 0x0002
  957. #define EGL_LOCK_SURFACE_BIT_KHR 0x0080
  958. #define EGL_OPTIMAL_FORMAT_BIT_KHR 0x0100
  959. #define EGL_MATCH_FORMAT_KHR 0x3043
  960. #define EGL_FORMAT_RGB_565_EXACT_KHR 0x30C0
  961. #define EGL_FORMAT_RGB_565_KHR 0x30C1
  962. #define EGL_FORMAT_RGBA_8888_EXACT_KHR 0x30C2
  963. #define EGL_FORMAT_RGBA_8888_KHR 0x30C3
  964. #define EGL_MAP_PRESERVE_PIXELS_KHR 0x30C4
  965. #define EGL_LOCK_USAGE_HINT_KHR 0x30C5
  966. #define EGL_BITMAP_POINTER_KHR 0x30C6
  967. #define EGL_BITMAP_PITCH_KHR 0x30C7
  968. #define EGL_BITMAP_ORIGIN_KHR 0x30C8
  969. #define EGL_BITMAP_PIXEL_RED_OFFSET_KHR 0x30C9
  970. #define EGL_BITMAP_PIXEL_GREEN_OFFSET_KHR 0x30CA
  971. #define EGL_BITMAP_PIXEL_BLUE_OFFSET_KHR 0x30CB
  972. #define EGL_BITMAP_PIXEL_ALPHA_OFFSET_KHR 0x30CC
  973. #define EGL_BITMAP_PIXEL_LUMINANCE_OFFSET_KHR 0x30CD
  974. #define EGL_LOWER_LEFT_KHR 0x30CE
  975. #define EGL_UPPER_LEFT_KHR 0x30CF
  976. #define EGL_BITMAP_PIXEL_SIZE_KHR 0x3110
  977. typedef EGLBoolean ( * PFNEGLQUERYSURFACE64KHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint attribute, EGLAttribKHR * value);
  978. #define eglQuerySurface64KHR EGLEW_GET_FUN(__eglewQuerySurface64KHR)
  979. #define EGLEW_KHR_lock_surface3 EGLEW_GET_VAR(__EGLEW_KHR_lock_surface3)
  980. #endif /* EGL_KHR_lock_surface3 */
  981. /* --------------------- EGL_KHR_mutable_render_buffer --------------------- */
  982. #ifndef EGL_KHR_mutable_render_buffer
  983. #define EGL_KHR_mutable_render_buffer 1
  984. #define EGL_MUTABLE_RENDER_BUFFER_BIT_KHR 0x1000
  985. #define EGLEW_KHR_mutable_render_buffer EGLEW_GET_VAR(__EGLEW_KHR_mutable_render_buffer)
  986. #endif /* EGL_KHR_mutable_render_buffer */
  987. /* ------------------------- EGL_KHR_partial_update ------------------------ */
  988. #ifndef EGL_KHR_partial_update
  989. #define EGL_KHR_partial_update 1
  990. #define EGL_BUFFER_AGE_KHR 0x313D
  991. typedef EGLBoolean ( * PFNEGLSETDAMAGEREGIONKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint * rects, EGLint n_rects);
  992. #define eglSetDamageRegionKHR EGLEW_GET_FUN(__eglewSetDamageRegionKHR)
  993. #define EGLEW_KHR_partial_update EGLEW_GET_VAR(__EGLEW_KHR_partial_update)
  994. #endif /* EGL_KHR_partial_update */
  995. /* ------------------------ EGL_KHR_platform_android ----------------------- */
  996. #ifndef EGL_KHR_platform_android
  997. #define EGL_KHR_platform_android 1
  998. #define EGL_PLATFORM_ANDROID_KHR 0x3141
  999. #define EGLEW_KHR_platform_android EGLEW_GET_VAR(__EGLEW_KHR_platform_android)
  1000. #endif /* EGL_KHR_platform_android */
  1001. /* -------------------------- EGL_KHR_platform_gbm ------------------------- */
  1002. #ifndef EGL_KHR_platform_gbm
  1003. #define EGL_KHR_platform_gbm 1
  1004. #define EGL_PLATFORM_GBM_KHR 0x31D7
  1005. #define EGLEW_KHR_platform_gbm EGLEW_GET_VAR(__EGLEW_KHR_platform_gbm)
  1006. #endif /* EGL_KHR_platform_gbm */
  1007. /* ------------------------ EGL_KHR_platform_wayland ----------------------- */
  1008. #ifndef EGL_KHR_platform_wayland
  1009. #define EGL_KHR_platform_wayland 1
  1010. #define EGL_PLATFORM_WAYLAND_KHR 0x31D8
  1011. #define EGLEW_KHR_platform_wayland EGLEW_GET_VAR(__EGLEW_KHR_platform_wayland)
  1012. #endif /* EGL_KHR_platform_wayland */
  1013. /* -------------------------- EGL_KHR_platform_x11 ------------------------- */
  1014. #ifndef EGL_KHR_platform_x11
  1015. #define EGL_KHR_platform_x11 1
  1016. #define EGL_PLATFORM_X11_KHR 0x31D5
  1017. #define EGL_PLATFORM_X11_SCREEN_KHR 0x31D6
  1018. #define EGLEW_KHR_platform_x11 EGLEW_GET_VAR(__EGLEW_KHR_platform_x11)
  1019. #endif /* EGL_KHR_platform_x11 */
  1020. /* ------------------------- EGL_KHR_reusable_sync ------------------------- */
  1021. #ifndef EGL_KHR_reusable_sync
  1022. #define EGL_KHR_reusable_sync 1
  1023. #define EGL_SYNC_FLUSH_COMMANDS_BIT_KHR 0x0001
  1024. #define EGL_SYNC_STATUS_KHR 0x30F1
  1025. #define EGL_SIGNALED_KHR 0x30F2
  1026. #define EGL_UNSIGNALED_KHR 0x30F3
  1027. #define EGL_TIMEOUT_EXPIRED_KHR 0x30F5
  1028. #define EGL_CONDITION_SATISFIED_KHR 0x30F6
  1029. #define EGL_SYNC_TYPE_KHR 0x30F7
  1030. #define EGL_SYNC_REUSABLE_KHR 0x30FA
  1031. #define EGL_FOREVER_KHR 0xFFFFFFFFFFFFFFFF
  1032. typedef EGLint ( * PFNEGLCLIENTWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags, EGLTimeKHR timeout);
  1033. typedef EGLSyncKHR ( * PFNEGLCREATESYNCKHRPROC) (EGLDisplay dpy, EGLenum type, const EGLint * attrib_list);
  1034. typedef EGLBoolean ( * PFNEGLDESTROYSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync);
  1035. typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint attribute, EGLint * value);
  1036. typedef EGLBoolean ( * PFNEGLSIGNALSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLenum mode);
  1037. #define eglClientWaitSyncKHR EGLEW_GET_FUN(__eglewClientWaitSyncKHR)
  1038. #define eglCreateSyncKHR EGLEW_GET_FUN(__eglewCreateSyncKHR)
  1039. #define eglDestroySyncKHR EGLEW_GET_FUN(__eglewDestroySyncKHR)
  1040. #define eglGetSyncAttribKHR EGLEW_GET_FUN(__eglewGetSyncAttribKHR)
  1041. #define eglSignalSyncKHR EGLEW_GET_FUN(__eglewSignalSyncKHR)
  1042. #define EGLEW_KHR_reusable_sync EGLEW_GET_VAR(__EGLEW_KHR_reusable_sync)
  1043. #endif /* EGL_KHR_reusable_sync */
  1044. /* ----------------------------- EGL_KHR_stream ---------------------------- */
  1045. #ifndef EGL_KHR_stream
  1046. #define EGL_KHR_stream 1
  1047. #define EGL_CONSUMER_LATENCY_USEC_KHR 0x3210
  1048. #define EGL_PRODUCER_FRAME_KHR 0x3212
  1049. #define EGL_CONSUMER_FRAME_KHR 0x3213
  1050. #define EGL_STREAM_STATE_KHR 0x3214
  1051. #define EGL_STREAM_STATE_CREATED_KHR 0x3215
  1052. #define EGL_STREAM_STATE_CONNECTING_KHR 0x3216
  1053. #define EGL_STREAM_STATE_EMPTY_KHR 0x3217
  1054. #define EGL_STREAM_STATE_NEW_FRAME_AVAILABLE_KHR 0x3218
  1055. #define EGL_STREAM_STATE_OLD_FRAME_AVAILABLE_KHR 0x3219
  1056. #define EGL_STREAM_STATE_DISCONNECTED_KHR 0x321A
  1057. #define EGL_BAD_STREAM_KHR 0x321B
  1058. #define EGL_BAD_STATE_KHR 0x321C
  1059. typedef EGLStreamKHR ( * PFNEGLCREATESTREAMKHRPROC) (EGLDisplay dpy, const EGLint * attrib_list);
  1060. typedef EGLBoolean ( * PFNEGLDESTROYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1061. typedef EGLBoolean ( * PFNEGLQUERYSTREAMKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint * value);
  1062. typedef EGLBoolean ( * PFNEGLQUERYSTREAMU64KHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLuint64KHR * value);
  1063. typedef EGLBoolean ( * PFNEGLSTREAMATTRIBKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLint value);
  1064. #define eglCreateStreamKHR EGLEW_GET_FUN(__eglewCreateStreamKHR)
  1065. #define eglDestroyStreamKHR EGLEW_GET_FUN(__eglewDestroyStreamKHR)
  1066. #define eglQueryStreamKHR EGLEW_GET_FUN(__eglewQueryStreamKHR)
  1067. #define eglQueryStreamu64KHR EGLEW_GET_FUN(__eglewQueryStreamu64KHR)
  1068. #define eglStreamAttribKHR EGLEW_GET_FUN(__eglewStreamAttribKHR)
  1069. #define EGLEW_KHR_stream EGLEW_GET_VAR(__EGLEW_KHR_stream)
  1070. #endif /* EGL_KHR_stream */
  1071. /* ------------------- EGL_KHR_stream_consumer_gltexture ------------------- */
  1072. #ifndef EGL_KHR_stream_consumer_gltexture
  1073. #define EGL_KHR_stream_consumer_gltexture 1
  1074. #define EGL_CONSUMER_ACQUIRE_TIMEOUT_USEC_KHR 0x321E
  1075. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERACQUIREKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1076. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1077. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERRELEASEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1078. #define eglStreamConsumerAcquireKHR EGLEW_GET_FUN(__eglewStreamConsumerAcquireKHR)
  1079. #define eglStreamConsumerGLTextureExternalKHR EGLEW_GET_FUN(__eglewStreamConsumerGLTextureExternalKHR)
  1080. #define eglStreamConsumerReleaseKHR EGLEW_GET_FUN(__eglewStreamConsumerReleaseKHR)
  1081. #define EGLEW_KHR_stream_consumer_gltexture EGLEW_GET_VAR(__EGLEW_KHR_stream_consumer_gltexture)
  1082. #endif /* EGL_KHR_stream_consumer_gltexture */
  1083. /* -------------------- EGL_KHR_stream_cross_process_fd -------------------- */
  1084. #ifndef EGL_KHR_stream_cross_process_fd
  1085. #define EGL_KHR_stream_cross_process_fd 1
  1086. typedef EGLStreamKHR ( * PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLNativeFileDescriptorKHR file_descriptor);
  1087. typedef EGLNativeFileDescriptorKHR ( * PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream);
  1088. #define eglCreateStreamFromFileDescriptorKHR EGLEW_GET_FUN(__eglewCreateStreamFromFileDescriptorKHR)
  1089. #define eglGetStreamFileDescriptorKHR EGLEW_GET_FUN(__eglewGetStreamFileDescriptorKHR)
  1090. #define EGLEW_KHR_stream_cross_process_fd EGLEW_GET_VAR(__EGLEW_KHR_stream_cross_process_fd)
  1091. #endif /* EGL_KHR_stream_cross_process_fd */
  1092. /* -------------------------- EGL_KHR_stream_fifo -------------------------- */
  1093. #ifndef EGL_KHR_stream_fifo
  1094. #define EGL_KHR_stream_fifo 1
  1095. #define EGL_STREAM_FIFO_LENGTH_KHR 0x31FC
  1096. #define EGL_STREAM_TIME_NOW_KHR 0x31FD
  1097. #define EGL_STREAM_TIME_CONSUMER_KHR 0x31FE
  1098. #define EGL_STREAM_TIME_PRODUCER_KHR 0x31FF
  1099. typedef EGLBoolean ( * PFNEGLQUERYSTREAMTIMEKHRPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum attribute, EGLTimeKHR * value);
  1100. #define eglQueryStreamTimeKHR EGLEW_GET_FUN(__eglewQueryStreamTimeKHR)
  1101. #define EGLEW_KHR_stream_fifo EGLEW_GET_VAR(__EGLEW_KHR_stream_fifo)
  1102. #endif /* EGL_KHR_stream_fifo */
  1103. /* ----------------- EGL_KHR_stream_producer_aldatalocator ----------------- */
  1104. #ifndef EGL_KHR_stream_producer_aldatalocator
  1105. #define EGL_KHR_stream_producer_aldatalocator 1
  1106. #define EGLEW_KHR_stream_producer_aldatalocator EGLEW_GET_VAR(__EGLEW_KHR_stream_producer_aldatalocator)
  1107. #endif /* EGL_KHR_stream_producer_aldatalocator */
  1108. /* ------------------- EGL_KHR_stream_producer_eglsurface ------------------ */
  1109. #ifndef EGL_KHR_stream_producer_eglsurface
  1110. #define EGL_KHR_stream_producer_eglsurface 1
  1111. #define EGL_STREAM_BIT_KHR 0x0800
  1112. typedef EGLSurface ( * PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC) (EGLDisplay dpy, EGLConfig config, EGLStreamKHR stream, const EGLint * attrib_list);
  1113. #define eglCreateStreamProducerSurfaceKHR EGLEW_GET_FUN(__eglewCreateStreamProducerSurfaceKHR)
  1114. #define EGLEW_KHR_stream_producer_eglsurface EGLEW_GET_VAR(__EGLEW_KHR_stream_producer_eglsurface)
  1115. #endif /* EGL_KHR_stream_producer_eglsurface */
  1116. /* ---------------------- EGL_KHR_surfaceless_context ---------------------- */
  1117. #ifndef EGL_KHR_surfaceless_context
  1118. #define EGL_KHR_surfaceless_context 1
  1119. #define EGLEW_KHR_surfaceless_context EGLEW_GET_VAR(__EGLEW_KHR_surfaceless_context)
  1120. #endif /* EGL_KHR_surfaceless_context */
  1121. /* -------------------- EGL_KHR_swap_buffers_with_damage ------------------- */
  1122. #ifndef EGL_KHR_swap_buffers_with_damage
  1123. #define EGL_KHR_swap_buffers_with_damage 1
  1124. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC) (EGLDisplay dpy, EGLSurface surface, EGLint * rects, EGLint n_rects);
  1125. #define eglSwapBuffersWithDamageKHR EGLEW_GET_FUN(__eglewSwapBuffersWithDamageKHR)
  1126. #define EGLEW_KHR_swap_buffers_with_damage EGLEW_GET_VAR(__EGLEW_KHR_swap_buffers_with_damage)
  1127. #endif /* EGL_KHR_swap_buffers_with_damage */
  1128. /* ------------------------ EGL_KHR_vg_parent_image ------------------------ */
  1129. #ifndef EGL_KHR_vg_parent_image
  1130. #define EGL_KHR_vg_parent_image 1
  1131. #define EGL_VG_PARENT_IMAGE_KHR 0x30BA
  1132. #define EGLEW_KHR_vg_parent_image EGLEW_GET_VAR(__EGLEW_KHR_vg_parent_image)
  1133. #endif /* EGL_KHR_vg_parent_image */
  1134. /* --------------------------- EGL_KHR_wait_sync --------------------------- */
  1135. #ifndef EGL_KHR_wait_sync
  1136. #define EGL_KHR_wait_sync 1
  1137. typedef EGLint ( * PFNEGLWAITSYNCKHRPROC) (EGLDisplay dpy, EGLSyncKHR sync, EGLint flags);
  1138. #define eglWaitSyncKHR EGLEW_GET_FUN(__eglewWaitSyncKHR)
  1139. #define EGLEW_KHR_wait_sync EGLEW_GET_VAR(__EGLEW_KHR_wait_sync)
  1140. #endif /* EGL_KHR_wait_sync */
  1141. /* --------------------------- EGL_MESA_drm_image -------------------------- */
  1142. #ifndef EGL_MESA_drm_image
  1143. #define EGL_MESA_drm_image 1
  1144. #define EGL_DRM_BUFFER_USE_SCANOUT_MESA 0x00000001
  1145. #define EGL_DRM_BUFFER_USE_SHARE_MESA 0x00000002
  1146. #define EGL_DRM_BUFFER_FORMAT_MESA 0x31D0
  1147. #define EGL_DRM_BUFFER_USE_MESA 0x31D1
  1148. #define EGL_DRM_BUFFER_FORMAT_ARGB32_MESA 0x31D2
  1149. #define EGL_DRM_BUFFER_MESA 0x31D3
  1150. #define EGL_DRM_BUFFER_STRIDE_MESA 0x31D4
  1151. typedef EGLImageKHR ( * PFNEGLCREATEDRMIMAGEMESAPROC) (EGLDisplay dpy, const EGLint * attrib_list);
  1152. typedef EGLBoolean ( * PFNEGLEXPORTDRMIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, EGLint * name, EGLint * handle, EGLint * stride);
  1153. #define eglCreateDRMImageMESA EGLEW_GET_FUN(__eglewCreateDRMImageMESA)
  1154. #define eglExportDRMImageMESA EGLEW_GET_FUN(__eglewExportDRMImageMESA)
  1155. #define EGLEW_MESA_drm_image EGLEW_GET_VAR(__EGLEW_MESA_drm_image)
  1156. #endif /* EGL_MESA_drm_image */
  1157. /* --------------------- EGL_MESA_image_dma_buf_export --------------------- */
  1158. #ifndef EGL_MESA_image_dma_buf_export
  1159. #define EGL_MESA_image_dma_buf_export 1
  1160. typedef EGLBoolean ( * PFNEGLEXPORTDMABUFIMAGEMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int * fds, EGLint * strides, EGLint * offsets);
  1161. typedef EGLBoolean ( * PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC) (EGLDisplay dpy, EGLImageKHR image, int * fourcc, int * num_planes, EGLuint64KHR * modifiers);
  1162. #define eglExportDMABUFImageMESA EGLEW_GET_FUN(__eglewExportDMABUFImageMESA)
  1163. #define eglExportDMABUFImageQueryMESA EGLEW_GET_FUN(__eglewExportDMABUFImageQueryMESA)
  1164. #define EGLEW_MESA_image_dma_buf_export EGLEW_GET_VAR(__EGLEW_MESA_image_dma_buf_export)
  1165. #endif /* EGL_MESA_image_dma_buf_export */
  1166. /* ------------------------- EGL_MESA_platform_gbm ------------------------- */
  1167. #ifndef EGL_MESA_platform_gbm
  1168. #define EGL_MESA_platform_gbm 1
  1169. #define EGL_PLATFORM_GBM_MESA 0x31D7
  1170. #define EGLEW_MESA_platform_gbm EGLEW_GET_VAR(__EGLEW_MESA_platform_gbm)
  1171. #endif /* EGL_MESA_platform_gbm */
  1172. /* -------------------------- EGL_NOK_swap_region -------------------------- */
  1173. #ifndef EGL_NOK_swap_region
  1174. #define EGL_NOK_swap_region 1
  1175. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSREGIONNOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint * rects);
  1176. #define eglSwapBuffersRegionNOK EGLEW_GET_FUN(__eglewSwapBuffersRegionNOK)
  1177. #define EGLEW_NOK_swap_region EGLEW_GET_VAR(__EGLEW_NOK_swap_region)
  1178. #endif /* EGL_NOK_swap_region */
  1179. /* -------------------------- EGL_NOK_swap_region2 ------------------------- */
  1180. #ifndef EGL_NOK_swap_region2
  1181. #define EGL_NOK_swap_region2 1
  1182. typedef EGLBoolean ( * PFNEGLSWAPBUFFERSREGION2NOKPROC) (EGLDisplay dpy, EGLSurface surface, EGLint numRects, const EGLint * rects);
  1183. #define eglSwapBuffersRegion2NOK EGLEW_GET_FUN(__eglewSwapBuffersRegion2NOK)
  1184. #define EGLEW_NOK_swap_region2 EGLEW_GET_VAR(__EGLEW_NOK_swap_region2)
  1185. #endif /* EGL_NOK_swap_region2 */
  1186. /* ---------------------- EGL_NOK_texture_from_pixmap ---------------------- */
  1187. #ifndef EGL_NOK_texture_from_pixmap
  1188. #define EGL_NOK_texture_from_pixmap 1
  1189. #define EGL_Y_INVERTED_NOK 0x307F
  1190. #define EGLEW_NOK_texture_from_pixmap EGLEW_GET_VAR(__EGLEW_NOK_texture_from_pixmap)
  1191. #endif /* EGL_NOK_texture_from_pixmap */
  1192. /* ------------------------ EGL_NV_3dvision_surface ------------------------ */
  1193. #ifndef EGL_NV_3dvision_surface
  1194. #define EGL_NV_3dvision_surface 1
  1195. #define EGL_AUTO_STEREO_NV 0x3136
  1196. #define EGLEW_NV_3dvision_surface EGLEW_GET_VAR(__EGLEW_NV_3dvision_surface)
  1197. #endif /* EGL_NV_3dvision_surface */
  1198. /* ------------------------- EGL_NV_coverage_sample ------------------------ */
  1199. #ifndef EGL_NV_coverage_sample
  1200. #define EGL_NV_coverage_sample 1
  1201. #define EGL_COVERAGE_BUFFERS_NV 0x30E0
  1202. #define EGL_COVERAGE_SAMPLES_NV 0x30E1
  1203. #define EGLEW_NV_coverage_sample EGLEW_GET_VAR(__EGLEW_NV_coverage_sample)
  1204. #endif /* EGL_NV_coverage_sample */
  1205. /* --------------------- EGL_NV_coverage_sample_resolve -------------------- */
  1206. #ifndef EGL_NV_coverage_sample_resolve
  1207. #define EGL_NV_coverage_sample_resolve 1
  1208. #define EGL_COVERAGE_SAMPLE_RESOLVE_NV 0x3131
  1209. #define EGL_COVERAGE_SAMPLE_RESOLVE_DEFAULT_NV 0x3132
  1210. #define EGL_COVERAGE_SAMPLE_RESOLVE_NONE_NV 0x3133
  1211. #define EGLEW_NV_coverage_sample_resolve EGLEW_GET_VAR(__EGLEW_NV_coverage_sample_resolve)
  1212. #endif /* EGL_NV_coverage_sample_resolve */
  1213. /* --------------------------- EGL_NV_cuda_event --------------------------- */
  1214. #ifndef EGL_NV_cuda_event
  1215. #define EGL_NV_cuda_event 1
  1216. #define EGL_CUDA_EVENT_HANDLE_NV 0x323B
  1217. #define EGL_SYNC_CUDA_EVENT_NV 0x323C
  1218. #define EGL_SYNC_CUDA_EVENT_COMPLETE_NV 0x323D
  1219. #define EGLEW_NV_cuda_event EGLEW_GET_VAR(__EGLEW_NV_cuda_event)
  1220. #endif /* EGL_NV_cuda_event */
  1221. /* ------------------------- EGL_NV_depth_nonlinear ------------------------ */
  1222. #ifndef EGL_NV_depth_nonlinear
  1223. #define EGL_NV_depth_nonlinear 1
  1224. #define EGL_DEPTH_ENCODING_NONE_NV 0
  1225. #define EGL_DEPTH_ENCODING_NV 0x30E2
  1226. #define EGL_DEPTH_ENCODING_NONLINEAR_NV 0x30E3
  1227. #define EGLEW_NV_depth_nonlinear EGLEW_GET_VAR(__EGLEW_NV_depth_nonlinear)
  1228. #endif /* EGL_NV_depth_nonlinear */
  1229. /* --------------------------- EGL_NV_device_cuda -------------------------- */
  1230. #ifndef EGL_NV_device_cuda
  1231. #define EGL_NV_device_cuda 1
  1232. #define EGL_CUDA_DEVICE_NV 0x323A
  1233. #define EGLEW_NV_device_cuda EGLEW_GET_VAR(__EGLEW_NV_device_cuda)
  1234. #endif /* EGL_NV_device_cuda */
  1235. /* -------------------------- EGL_NV_native_query -------------------------- */
  1236. #ifndef EGL_NV_native_query
  1237. #define EGL_NV_native_query 1
  1238. typedef EGLBoolean ( * PFNEGLQUERYNATIVEDISPLAYNVPROC) (EGLDisplay dpy, EGLNativeDisplayType * display_id);
  1239. typedef EGLBoolean ( * PFNEGLQUERYNATIVEPIXMAPNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativePixmapType * pixmap);
  1240. typedef EGLBoolean ( * PFNEGLQUERYNATIVEWINDOWNVPROC) (EGLDisplay dpy, EGLSurface surf, EGLNativeWindowType * window);
  1241. #define eglQueryNativeDisplayNV EGLEW_GET_FUN(__eglewQueryNativeDisplayNV)
  1242. #define eglQueryNativePixmapNV EGLEW_GET_FUN(__eglewQueryNativePixmapNV)
  1243. #define eglQueryNativeWindowNV EGLEW_GET_FUN(__eglewQueryNativeWindowNV)
  1244. #define EGLEW_NV_native_query EGLEW_GET_VAR(__EGLEW_NV_native_query)
  1245. #endif /* EGL_NV_native_query */
  1246. /* ---------------------- EGL_NV_post_convert_rounding --------------------- */
  1247. #ifndef EGL_NV_post_convert_rounding
  1248. #define EGL_NV_post_convert_rounding 1
  1249. #define EGLEW_NV_post_convert_rounding EGLEW_GET_VAR(__EGLEW_NV_post_convert_rounding)
  1250. #endif /* EGL_NV_post_convert_rounding */
  1251. /* ------------------------- EGL_NV_post_sub_buffer ------------------------ */
  1252. #ifndef EGL_NV_post_sub_buffer
  1253. #define EGL_NV_post_sub_buffer 1
  1254. #define EGL_POST_SUB_BUFFER_SUPPORTED_NV 0x30BE
  1255. typedef EGLBoolean ( * PFNEGLPOSTSUBBUFFERNVPROC) (EGLDisplay dpy, EGLSurface surface, EGLint x, EGLint y, EGLint width, EGLint height);
  1256. #define eglPostSubBufferNV EGLEW_GET_FUN(__eglewPostSubBufferNV)
  1257. #define EGLEW_NV_post_sub_buffer EGLEW_GET_VAR(__EGLEW_NV_post_sub_buffer)
  1258. #endif /* EGL_NV_post_sub_buffer */
  1259. /* ------------------ EGL_NV_robustness_video_memory_purge ----------------- */
  1260. #ifndef EGL_NV_robustness_video_memory_purge
  1261. #define EGL_NV_robustness_video_memory_purge 1
  1262. #define EGL_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x334C
  1263. #define EGLEW_NV_robustness_video_memory_purge EGLEW_GET_VAR(__EGLEW_NV_robustness_video_memory_purge)
  1264. #endif /* EGL_NV_robustness_video_memory_purge */
  1265. /* ------------------ EGL_NV_stream_consumer_gltexture_yuv ----------------- */
  1266. #ifndef EGL_NV_stream_consumer_gltexture_yuv
  1267. #define EGL_NV_stream_consumer_gltexture_yuv 1
  1268. #define EGL_YUV_BUFFER_EXT 0x3300
  1269. #define EGL_YUV_NUMBER_OF_PLANES_EXT 0x3311
  1270. #define EGL_YUV_PLANE0_TEXTURE_UNIT_NV 0x332C
  1271. #define EGL_YUV_PLANE1_TEXTURE_UNIT_NV 0x332D
  1272. #define EGL_YUV_PLANE2_TEXTURE_UNIT_NV 0x332E
  1273. typedef EGLBoolean ( * PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLAttrib *attrib_list);
  1274. #define eglStreamConsumerGLTextureExternalAttribsNV EGLEW_GET_FUN(__eglewStreamConsumerGLTextureExternalAttribsNV)
  1275. #define EGLEW_NV_stream_consumer_gltexture_yuv EGLEW_GET_VAR(__EGLEW_NV_stream_consumer_gltexture_yuv)
  1276. #endif /* EGL_NV_stream_consumer_gltexture_yuv */
  1277. /* ------------------------- EGL_NV_stream_metadata ------------------------ */
  1278. #ifndef EGL_NV_stream_metadata
  1279. #define EGL_NV_stream_metadata 1
  1280. #define EGL_MAX_STREAM_METADATA_BLOCKS_NV 0x3250
  1281. #define EGL_MAX_STREAM_METADATA_BLOCK_SIZE_NV 0x3251
  1282. #define EGL_MAX_STREAM_METADATA_TOTAL_SIZE_NV 0x3252
  1283. #define EGL_PRODUCER_METADATA_NV 0x3253
  1284. #define EGL_CONSUMER_METADATA_NV 0x3254
  1285. #define EGL_METADATA0_SIZE_NV 0x3255
  1286. #define EGL_METADATA1_SIZE_NV 0x3256
  1287. #define EGL_METADATA2_SIZE_NV 0x3257
  1288. #define EGL_METADATA3_SIZE_NV 0x3258
  1289. #define EGL_METADATA0_TYPE_NV 0x3259
  1290. #define EGL_METADATA1_TYPE_NV 0x325A
  1291. #define EGL_METADATA2_TYPE_NV 0x325B
  1292. #define EGL_METADATA3_TYPE_NV 0x325C
  1293. #define EGL_PENDING_METADATA_NV 0x3328
  1294. typedef EGLBoolean ( * PFNEGLQUERYDISPLAYATTRIBNVPROC) (EGLDisplay dpy, EGLint attribute, EGLAttrib * value);
  1295. typedef EGLBoolean ( * PFNEGLQUERYSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum name, EGLint n, EGLint offset, EGLint size, void * data);
  1296. typedef EGLBoolean ( * PFNEGLSETSTREAMMETADATANVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLint n, EGLint offset, EGLint size, const void * data);
  1297. #define eglQueryDisplayAttribNV EGLEW_GET_FUN(__eglewQueryDisplayAttribNV)
  1298. #define eglQueryStreamMetadataNV EGLEW_GET_FUN(__eglewQueryStreamMetadataNV)
  1299. #define eglSetStreamMetadataNV EGLEW_GET_FUN(__eglewSetStreamMetadataNV)
  1300. #define EGLEW_NV_stream_metadata EGLEW_GET_VAR(__EGLEW_NV_stream_metadata)
  1301. #endif /* EGL_NV_stream_metadata */
  1302. /* --------------------------- EGL_NV_stream_sync -------------------------- */
  1303. #ifndef EGL_NV_stream_sync
  1304. #define EGL_NV_stream_sync 1
  1305. #define EGL_SYNC_TYPE_KHR 0x30F7
  1306. #define EGL_SYNC_NEW_FRAME_NV 0x321F
  1307. typedef EGLSyncKHR ( * PFNEGLCREATESTREAMSYNCNVPROC) (EGLDisplay dpy, EGLStreamKHR stream, EGLenum type, const EGLint * attrib_list);
  1308. #define eglCreateStreamSyncNV EGLEW_GET_FUN(__eglewCreateStreamSyncNV)
  1309. #define EGLEW_NV_stream_sync EGLEW_GET_VAR(__EGLEW_NV_stream_sync)
  1310. #endif /* EGL_NV_stream_sync */
  1311. /* ------------------------------ EGL_NV_sync ------------------------------ */
  1312. #ifndef EGL_NV_sync
  1313. #define EGL_NV_sync 1
  1314. #define EGL_SYNC_FLUSH_COMMANDS_BIT_NV 0x0001
  1315. #define EGL_SYNC_PRIOR_COMMANDS_COMPLETE_NV 0x30E6
  1316. #define EGL_SYNC_STATUS_NV 0x30E7
  1317. #define EGL_SIGNALED_NV 0x30E8
  1318. #define EGL_UNSIGNALED_NV 0x30E9
  1319. #define EGL_ALREADY_SIGNALED_NV 0x30EA
  1320. #define EGL_TIMEOUT_EXPIRED_NV 0x30EB
  1321. #define EGL_CONDITION_SATISFIED_NV 0x30EC
  1322. #define EGL_SYNC_TYPE_NV 0x30ED
  1323. #define EGL_SYNC_CONDITION_NV 0x30EE
  1324. #define EGL_SYNC_FENCE_NV 0x30EF
  1325. #define EGL_FOREVER_NV 0xFFFFFFFFFFFFFFFF
  1326. typedef EGLint ( * PFNEGLCLIENTWAITSYNCNVPROC) (EGLSyncNV sync, EGLint flags, EGLTimeNV timeout);
  1327. typedef EGLSyncNV ( * PFNEGLCREATEFENCESYNCNVPROC) (EGLDisplay dpy, EGLenum condition, const EGLint * attrib_list);
  1328. typedef EGLBoolean ( * PFNEGLDESTROYSYNCNVPROC) (EGLSyncNV sync);
  1329. typedef EGLBoolean ( * PFNEGLFENCENVPROC) (EGLSyncNV sync);
  1330. typedef EGLBoolean ( * PFNEGLGETSYNCATTRIBNVPROC) (EGLSyncNV sync, EGLint attribute, EGLint * value);
  1331. typedef EGLBoolean ( * PFNEGLSIGNALSYNCNVPROC) (EGLSyncNV sync, EGLenum mode);
  1332. #define eglClientWaitSyncNV EGLEW_GET_FUN(__eglewClientWaitSyncNV)
  1333. #define eglCreateFenceSyncNV EGLEW_GET_FUN(__eglewCreateFenceSyncNV)
  1334. #define eglDestroySyncNV EGLEW_GET_FUN(__eglewDestroySyncNV)
  1335. #define eglFenceNV EGLEW_GET_FUN(__eglewFenceNV)
  1336. #define eglGetSyncAttribNV EGLEW_GET_FUN(__eglewGetSyncAttribNV)
  1337. #define eglSignalSyncNV EGLEW_GET_FUN(__eglewSignalSyncNV)
  1338. #define EGLEW_NV_sync EGLEW_GET_VAR(__EGLEW_NV_sync)
  1339. #endif /* EGL_NV_sync */
  1340. /* --------------------------- EGL_NV_system_time -------------------------- */
  1341. #ifndef EGL_NV_system_time
  1342. #define EGL_NV_system_time 1
  1343. typedef EGLuint64NV ( * PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC) ( void );
  1344. typedef EGLuint64NV ( * PFNEGLGETSYSTEMTIMENVPROC) ( void );
  1345. #define eglGetSystemTimeFrequencyNV EGLEW_GET_FUN(__eglewGetSystemTimeFrequencyNV)
  1346. #define eglGetSystemTimeNV EGLEW_GET_FUN(__eglewGetSystemTimeNV)
  1347. #define EGLEW_NV_system_time EGLEW_GET_VAR(__EGLEW_NV_system_time)
  1348. #endif /* EGL_NV_system_time */
  1349. /* --------------------- EGL_TIZEN_image_native_buffer --------------------- */
  1350. #ifndef EGL_TIZEN_image_native_buffer
  1351. #define EGL_TIZEN_image_native_buffer 1
  1352. #define EGL_NATIVE_BUFFER_TIZEN 0x32A0
  1353. #define EGLEW_TIZEN_image_native_buffer EGLEW_GET_VAR(__EGLEW_TIZEN_image_native_buffer)
  1354. #endif /* EGL_TIZEN_image_native_buffer */
  1355. /* --------------------- EGL_TIZEN_image_native_surface -------------------- */
  1356. #ifndef EGL_TIZEN_image_native_surface
  1357. #define EGL_TIZEN_image_native_surface 1
  1358. #define EGL_NATIVE_SURFACE_TIZEN 0x32A1
  1359. #define EGLEW_TIZEN_image_native_surface EGLEW_GET_VAR(__EGLEW_TIZEN_image_native_surface)
  1360. #endif /* EGL_TIZEN_image_native_surface */
  1361. /* ------------------------------------------------------------------------- */
  1362. #define EGLEW_FUN_EXPORT GLEW_FUN_EXPORT
  1363. #define EGLEW_VAR_EXPORT GLEW_VAR_EXPORT
  1364. EGLEW_FUN_EXPORT PFNEGLCHOOSECONFIGPROC __eglewChooseConfig;
  1365. EGLEW_FUN_EXPORT PFNEGLCOPYBUFFERSPROC __eglewCopyBuffers;
  1366. EGLEW_FUN_EXPORT PFNEGLCREATECONTEXTPROC __eglewCreateContext;
  1367. EGLEW_FUN_EXPORT PFNEGLCREATEPBUFFERSURFACEPROC __eglewCreatePbufferSurface;
  1368. EGLEW_FUN_EXPORT PFNEGLCREATEPIXMAPSURFACEPROC __eglewCreatePixmapSurface;
  1369. EGLEW_FUN_EXPORT PFNEGLCREATEWINDOWSURFACEPROC __eglewCreateWindowSurface;
  1370. EGLEW_FUN_EXPORT PFNEGLDESTROYCONTEXTPROC __eglewDestroyContext;
  1371. EGLEW_FUN_EXPORT PFNEGLDESTROYSURFACEPROC __eglewDestroySurface;
  1372. EGLEW_FUN_EXPORT PFNEGLGETCONFIGATTRIBPROC __eglewGetConfigAttrib;
  1373. EGLEW_FUN_EXPORT PFNEGLGETCONFIGSPROC __eglewGetConfigs;
  1374. EGLEW_FUN_EXPORT PFNEGLGETCURRENTDISPLAYPROC __eglewGetCurrentDisplay;
  1375. EGLEW_FUN_EXPORT PFNEGLGETCURRENTSURFACEPROC __eglewGetCurrentSurface;
  1376. EGLEW_FUN_EXPORT PFNEGLGETDISPLAYPROC __eglewGetDisplay;
  1377. EGLEW_FUN_EXPORT PFNEGLGETERRORPROC __eglewGetError;
  1378. EGLEW_FUN_EXPORT PFNEGLINITIALIZEPROC __eglewInitialize;
  1379. EGLEW_FUN_EXPORT PFNEGLMAKECURRENTPROC __eglewMakeCurrent;
  1380. EGLEW_FUN_EXPORT PFNEGLQUERYCONTEXTPROC __eglewQueryContext;
  1381. EGLEW_FUN_EXPORT PFNEGLQUERYSTRINGPROC __eglewQueryString;
  1382. EGLEW_FUN_EXPORT PFNEGLQUERYSURFACEPROC __eglewQuerySurface;
  1383. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSPROC __eglewSwapBuffers;
  1384. EGLEW_FUN_EXPORT PFNEGLTERMINATEPROC __eglewTerminate;
  1385. EGLEW_FUN_EXPORT PFNEGLWAITGLPROC __eglewWaitGL;
  1386. EGLEW_FUN_EXPORT PFNEGLWAITNATIVEPROC __eglewWaitNative;
  1387. EGLEW_FUN_EXPORT PFNEGLBINDTEXIMAGEPROC __eglewBindTexImage;
  1388. EGLEW_FUN_EXPORT PFNEGLRELEASETEXIMAGEPROC __eglewReleaseTexImage;
  1389. EGLEW_FUN_EXPORT PFNEGLSURFACEATTRIBPROC __eglewSurfaceAttrib;
  1390. EGLEW_FUN_EXPORT PFNEGLSWAPINTERVALPROC __eglewSwapInterval;
  1391. EGLEW_FUN_EXPORT PFNEGLBINDAPIPROC __eglewBindAPI;
  1392. EGLEW_FUN_EXPORT PFNEGLCREATEPBUFFERFROMCLIENTBUFFERPROC __eglewCreatePbufferFromClientBuffer;
  1393. EGLEW_FUN_EXPORT PFNEGLQUERYAPIPROC __eglewQueryAPI;
  1394. EGLEW_FUN_EXPORT PFNEGLRELEASETHREADPROC __eglewReleaseThread;
  1395. EGLEW_FUN_EXPORT PFNEGLWAITCLIENTPROC __eglewWaitClient;
  1396. EGLEW_FUN_EXPORT PFNEGLGETCURRENTCONTEXTPROC __eglewGetCurrentContext;
  1397. EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCPROC __eglewClientWaitSync;
  1398. EGLEW_FUN_EXPORT PFNEGLCREATEIMAGEPROC __eglewCreateImage;
  1399. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMPIXMAPSURFACEPROC __eglewCreatePlatformPixmapSurface;
  1400. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMWINDOWSURFACEPROC __eglewCreatePlatformWindowSurface;
  1401. EGLEW_FUN_EXPORT PFNEGLCREATESYNCPROC __eglewCreateSync;
  1402. EGLEW_FUN_EXPORT PFNEGLDESTROYIMAGEPROC __eglewDestroyImage;
  1403. EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCPROC __eglewDestroySync;
  1404. EGLEW_FUN_EXPORT PFNEGLGETPLATFORMDISPLAYPROC __eglewGetPlatformDisplay;
  1405. EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBPROC __eglewGetSyncAttrib;
  1406. EGLEW_FUN_EXPORT PFNEGLWAITSYNCPROC __eglewWaitSync;
  1407. EGLEW_FUN_EXPORT PFNEGLSETBLOBCACHEFUNCSANDROIDPROC __eglewSetBlobCacheFuncsANDROID;
  1408. EGLEW_FUN_EXPORT PFNEGLCREATENATIVECLIENTBUFFERANDROIDPROC __eglewCreateNativeClientBufferANDROID;
  1409. EGLEW_FUN_EXPORT PFNEGLDUPNATIVEFENCEFDANDROIDPROC __eglewDupNativeFenceFDANDROID;
  1410. EGLEW_FUN_EXPORT PFNEGLPRESENTATIONTIMEANDROIDPROC __eglewPresentationTimeANDROID;
  1411. EGLEW_FUN_EXPORT PFNEGLQUERYSURFACEPOINTERANGLEPROC __eglewQuerySurfacePointerANGLE;
  1412. EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESEXTPROC __eglewQueryDevicesEXT;
  1413. EGLEW_FUN_EXPORT PFNEGLQUERYDEVICEATTRIBEXTPROC __eglewQueryDeviceAttribEXT;
  1414. EGLEW_FUN_EXPORT PFNEGLQUERYDEVICESTRINGEXTPROC __eglewQueryDeviceStringEXT;
  1415. EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBEXTPROC __eglewQueryDisplayAttribEXT;
  1416. EGLEW_FUN_EXPORT PFNEGLGETOUTPUTLAYERSEXTPROC __eglewGetOutputLayersEXT;
  1417. EGLEW_FUN_EXPORT PFNEGLGETOUTPUTPORTSEXTPROC __eglewGetOutputPortsEXT;
  1418. EGLEW_FUN_EXPORT PFNEGLOUTPUTLAYERATTRIBEXTPROC __eglewOutputLayerAttribEXT;
  1419. EGLEW_FUN_EXPORT PFNEGLOUTPUTPORTATTRIBEXTPROC __eglewOutputPortAttribEXT;
  1420. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTLAYERATTRIBEXTPROC __eglewQueryOutputLayerAttribEXT;
  1421. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTLAYERSTRINGEXTPROC __eglewQueryOutputLayerStringEXT;
  1422. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTPORTATTRIBEXTPROC __eglewQueryOutputPortAttribEXT;
  1423. EGLEW_FUN_EXPORT PFNEGLQUERYOUTPUTPORTSTRINGEXTPROC __eglewQueryOutputPortStringEXT;
  1424. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMPIXMAPSURFACEEXTPROC __eglewCreatePlatformPixmapSurfaceEXT;
  1425. EGLEW_FUN_EXPORT PFNEGLCREATEPLATFORMWINDOWSURFACEEXTPROC __eglewCreatePlatformWindowSurfaceEXT;
  1426. EGLEW_FUN_EXPORT PFNEGLGETPLATFORMDISPLAYEXTPROC __eglewGetPlatformDisplayEXT;
  1427. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMEROUTPUTEXTPROC __eglewStreamConsumerOutputEXT;
  1428. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC __eglewSwapBuffersWithDamageEXT;
  1429. EGLEW_FUN_EXPORT PFNEGLCREATEPIXMAPSURFACEHIPROC __eglewCreatePixmapSurfaceHI;
  1430. EGLEW_FUN_EXPORT PFNEGLCREATESYNC64KHRPROC __eglewCreateSync64KHR;
  1431. EGLEW_FUN_EXPORT PFNEGLDEBUGMESSAGECONTROLKHRPROC __eglewDebugMessageControlKHR;
  1432. EGLEW_FUN_EXPORT PFNEGLLABELOBJECTKHRPROC __eglewLabelObjectKHR;
  1433. EGLEW_FUN_EXPORT PFNEGLQUERYDEBUGKHRPROC __eglewQueryDebugKHR;
  1434. EGLEW_FUN_EXPORT PFNEGLCREATEIMAGEKHRPROC __eglewCreateImageKHR;
  1435. EGLEW_FUN_EXPORT PFNEGLDESTROYIMAGEKHRPROC __eglewDestroyImageKHR;
  1436. EGLEW_FUN_EXPORT PFNEGLLOCKSURFACEKHRPROC __eglewLockSurfaceKHR;
  1437. EGLEW_FUN_EXPORT PFNEGLUNLOCKSURFACEKHRPROC __eglewUnlockSurfaceKHR;
  1438. EGLEW_FUN_EXPORT PFNEGLQUERYSURFACE64KHRPROC __eglewQuerySurface64KHR;
  1439. EGLEW_FUN_EXPORT PFNEGLSETDAMAGEREGIONKHRPROC __eglewSetDamageRegionKHR;
  1440. EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCKHRPROC __eglewClientWaitSyncKHR;
  1441. EGLEW_FUN_EXPORT PFNEGLCREATESYNCKHRPROC __eglewCreateSyncKHR;
  1442. EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCKHRPROC __eglewDestroySyncKHR;
  1443. EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBKHRPROC __eglewGetSyncAttribKHR;
  1444. EGLEW_FUN_EXPORT PFNEGLSIGNALSYNCKHRPROC __eglewSignalSyncKHR;
  1445. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMKHRPROC __eglewCreateStreamKHR;
  1446. EGLEW_FUN_EXPORT PFNEGLDESTROYSTREAMKHRPROC __eglewDestroyStreamKHR;
  1447. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMKHRPROC __eglewQueryStreamKHR;
  1448. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMU64KHRPROC __eglewQueryStreamu64KHR;
  1449. EGLEW_FUN_EXPORT PFNEGLSTREAMATTRIBKHRPROC __eglewStreamAttribKHR;
  1450. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERACQUIREKHRPROC __eglewStreamConsumerAcquireKHR;
  1451. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALKHRPROC __eglewStreamConsumerGLTextureExternalKHR;
  1452. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERRELEASEKHRPROC __eglewStreamConsumerReleaseKHR;
  1453. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMFROMFILEDESCRIPTORKHRPROC __eglewCreateStreamFromFileDescriptorKHR;
  1454. EGLEW_FUN_EXPORT PFNEGLGETSTREAMFILEDESCRIPTORKHRPROC __eglewGetStreamFileDescriptorKHR;
  1455. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMTIMEKHRPROC __eglewQueryStreamTimeKHR;
  1456. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMPRODUCERSURFACEKHRPROC __eglewCreateStreamProducerSurfaceKHR;
  1457. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSWITHDAMAGEKHRPROC __eglewSwapBuffersWithDamageKHR;
  1458. EGLEW_FUN_EXPORT PFNEGLWAITSYNCKHRPROC __eglewWaitSyncKHR;
  1459. EGLEW_FUN_EXPORT PFNEGLCREATEDRMIMAGEMESAPROC __eglewCreateDRMImageMESA;
  1460. EGLEW_FUN_EXPORT PFNEGLEXPORTDRMIMAGEMESAPROC __eglewExportDRMImageMESA;
  1461. EGLEW_FUN_EXPORT PFNEGLEXPORTDMABUFIMAGEMESAPROC __eglewExportDMABUFImageMESA;
  1462. EGLEW_FUN_EXPORT PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC __eglewExportDMABUFImageQueryMESA;
  1463. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSREGIONNOKPROC __eglewSwapBuffersRegionNOK;
  1464. EGLEW_FUN_EXPORT PFNEGLSWAPBUFFERSREGION2NOKPROC __eglewSwapBuffersRegion2NOK;
  1465. EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEDISPLAYNVPROC __eglewQueryNativeDisplayNV;
  1466. EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEPIXMAPNVPROC __eglewQueryNativePixmapNV;
  1467. EGLEW_FUN_EXPORT PFNEGLQUERYNATIVEWINDOWNVPROC __eglewQueryNativeWindowNV;
  1468. EGLEW_FUN_EXPORT PFNEGLPOSTSUBBUFFERNVPROC __eglewPostSubBufferNV;
  1469. EGLEW_FUN_EXPORT PFNEGLSTREAMCONSUMERGLTEXTUREEXTERNALATTRIBSNVPROC __eglewStreamConsumerGLTextureExternalAttribsNV;
  1470. EGLEW_FUN_EXPORT PFNEGLQUERYDISPLAYATTRIBNVPROC __eglewQueryDisplayAttribNV;
  1471. EGLEW_FUN_EXPORT PFNEGLQUERYSTREAMMETADATANVPROC __eglewQueryStreamMetadataNV;
  1472. EGLEW_FUN_EXPORT PFNEGLSETSTREAMMETADATANVPROC __eglewSetStreamMetadataNV;
  1473. EGLEW_FUN_EXPORT PFNEGLCREATESTREAMSYNCNVPROC __eglewCreateStreamSyncNV;
  1474. EGLEW_FUN_EXPORT PFNEGLCLIENTWAITSYNCNVPROC __eglewClientWaitSyncNV;
  1475. EGLEW_FUN_EXPORT PFNEGLCREATEFENCESYNCNVPROC __eglewCreateFenceSyncNV;
  1476. EGLEW_FUN_EXPORT PFNEGLDESTROYSYNCNVPROC __eglewDestroySyncNV;
  1477. EGLEW_FUN_EXPORT PFNEGLFENCENVPROC __eglewFenceNV;
  1478. EGLEW_FUN_EXPORT PFNEGLGETSYNCATTRIBNVPROC __eglewGetSyncAttribNV;
  1479. EGLEW_FUN_EXPORT PFNEGLSIGNALSYNCNVPROC __eglewSignalSyncNV;
  1480. EGLEW_FUN_EXPORT PFNEGLGETSYSTEMTIMEFREQUENCYNVPROC __eglewGetSystemTimeFrequencyNV;
  1481. EGLEW_FUN_EXPORT PFNEGLGETSYSTEMTIMENVPROC __eglewGetSystemTimeNV;
  1482. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_0;
  1483. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_1;
  1484. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_2;
  1485. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_3;
  1486. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_4;
  1487. EGLEW_VAR_EXPORT GLboolean __EGLEW_VERSION_1_5;
  1488. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_blob_cache;
  1489. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_create_native_client_buffer;
  1490. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_framebuffer_target;
  1491. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_front_buffer_auto_refresh;
  1492. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_image_native_buffer;
  1493. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_native_fence_sync;
  1494. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_presentation_time;
  1495. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANDROID_recordable;
  1496. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_d3d_share_handle_client_buffer;
  1497. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_device_d3d;
  1498. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_query_surface_pointer;
  1499. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_surface_d3d_texture_2d_share_handle;
  1500. EGLEW_VAR_EXPORT GLboolean __EGLEW_ANGLE_window_fixed_size;
  1501. EGLEW_VAR_EXPORT GLboolean __EGLEW_ARM_pixmap_multisample_discard;
  1502. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_buffer_age;
  1503. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_client_extensions;
  1504. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_create_context_robustness;
  1505. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_base;
  1506. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_drm;
  1507. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_enumeration;
  1508. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_openwf;
  1509. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_device_query;
  1510. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_image_dma_buf_import;
  1511. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_multiview_window;
  1512. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_base;
  1513. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_drm;
  1514. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_output_openwf;
  1515. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_base;
  1516. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_device;
  1517. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_wayland;
  1518. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_platform_x11;
  1519. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_content;
  1520. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_protected_surface;
  1521. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_stream_consumer_egloutput;
  1522. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_swap_buffers_with_damage;
  1523. EGLEW_VAR_EXPORT GLboolean __EGLEW_EXT_yuv_surface;
  1524. EGLEW_VAR_EXPORT GLboolean __EGLEW_HI_clientpixmap;
  1525. EGLEW_VAR_EXPORT GLboolean __EGLEW_HI_colorformats;
  1526. EGLEW_VAR_EXPORT GLboolean __EGLEW_IMG_context_priority;
  1527. EGLEW_VAR_EXPORT GLboolean __EGLEW_IMG_image_plane_attribs;
  1528. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_cl_event;
  1529. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_cl_event2;
  1530. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_client_get_all_proc_addresses;
  1531. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_config_attribs;
  1532. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_create_context;
  1533. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_create_context_no_error;
  1534. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_debug;
  1535. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_fence_sync;
  1536. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_get_all_proc_addresses;
  1537. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_colorspace;
  1538. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_renderbuffer_image;
  1539. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_2D_image;
  1540. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_3D_image;
  1541. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_gl_texture_cubemap_image;
  1542. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image;
  1543. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image_base;
  1544. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_image_pixmap;
  1545. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface;
  1546. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface2;
  1547. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_lock_surface3;
  1548. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_mutable_render_buffer;
  1549. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_partial_update;
  1550. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_android;
  1551. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_gbm;
  1552. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_wayland;
  1553. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_platform_x11;
  1554. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_reusable_sync;
  1555. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream;
  1556. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_consumer_gltexture;
  1557. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_cross_process_fd;
  1558. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_fifo;
  1559. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_producer_aldatalocator;
  1560. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_stream_producer_eglsurface;
  1561. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_surfaceless_context;
  1562. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_swap_buffers_with_damage;
  1563. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_vg_parent_image;
  1564. EGLEW_VAR_EXPORT GLboolean __EGLEW_KHR_wait_sync;
  1565. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_drm_image;
  1566. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_image_dma_buf_export;
  1567. EGLEW_VAR_EXPORT GLboolean __EGLEW_MESA_platform_gbm;
  1568. EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_swap_region;
  1569. EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_swap_region2;
  1570. EGLEW_VAR_EXPORT GLboolean __EGLEW_NOK_texture_from_pixmap;
  1571. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_3dvision_surface;
  1572. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_coverage_sample;
  1573. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_coverage_sample_resolve;
  1574. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_cuda_event;
  1575. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_depth_nonlinear;
  1576. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_device_cuda;
  1577. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_native_query;
  1578. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_post_convert_rounding;
  1579. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_post_sub_buffer;
  1580. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_robustness_video_memory_purge;
  1581. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_consumer_gltexture_yuv;
  1582. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_metadata;
  1583. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_stream_sync;
  1584. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_sync;
  1585. EGLEW_VAR_EXPORT GLboolean __EGLEW_NV_system_time;
  1586. EGLEW_VAR_EXPORT GLboolean __EGLEW_TIZEN_image_native_buffer;
  1587. EGLEW_VAR_EXPORT GLboolean __EGLEW_TIZEN_image_native_surface;
  1588. /* ------------------------------------------------------------------------ */
  1589. GLEWAPI GLenum GLEWAPIENTRY eglewInit (EGLDisplay display);
  1590. GLEWAPI GLboolean GLEWAPIENTRY eglewIsSupported (const char *name);
  1591. #define EGLEW_GET_VAR(x) (*(const GLboolean*)&x)
  1592. #define EGLEW_GET_FUN(x) x
  1593. GLEWAPI GLboolean GLEWAPIENTRY eglewGetExtension (const char *name);
  1594. #ifdef __cplusplus
  1595. }
  1596. #endif
  1597. #endif /* __eglew_h__ */