gl.c 165 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745
  1. /**
  2. * SPDX-License-Identifier: (WTFPL OR CC0-1.0) AND Apache-2.0
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <string.h>
  7. #include <glad/gl.h>
  8. #ifndef GLAD_IMPL_UTIL_C_
  9. #define GLAD_IMPL_UTIL_C_
  10. #ifdef _MSC_VER
  11. #define GLAD_IMPL_UTIL_SSCANF sscanf_s
  12. #else
  13. #define GLAD_IMPL_UTIL_SSCANF sscanf
  14. #endif
  15. #endif /* GLAD_IMPL_UTIL_C_ */
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. int GLAD_GL_VERSION_1_0 = 0;
  20. int GLAD_GL_VERSION_1_1 = 0;
  21. int GLAD_GL_VERSION_1_2 = 0;
  22. int GLAD_GL_VERSION_1_3 = 0;
  23. int GLAD_GL_VERSION_1_4 = 0;
  24. int GLAD_GL_VERSION_1_5 = 0;
  25. int GLAD_GL_VERSION_2_0 = 0;
  26. int GLAD_GL_VERSION_2_1 = 0;
  27. int GLAD_GL_VERSION_3_0 = 0;
  28. int GLAD_GL_VERSION_3_1 = 0;
  29. int GLAD_GL_VERSION_3_2 = 0;
  30. int GLAD_GL_VERSION_3_3 = 0;
  31. int GLAD_GL_ES_VERSION_2_0 = 0;
  32. int GLAD_GL_ES_VERSION_3_0 = 0;
  33. int GLAD_GL_ES_VERSION_3_1 = 0;
  34. int GLAD_GL_ES_VERSION_3_2 = 0;
  35. int GLAD_GL_ARB_debug_output = 0;
  36. int GLAD_GL_ARB_framebuffer_object = 0;
  37. int GLAD_GL_ARB_get_program_binary = 0;
  38. int GLAD_GL_EXT_framebuffer_blit = 0;
  39. int GLAD_GL_EXT_framebuffer_multisample = 0;
  40. int GLAD_GL_EXT_framebuffer_object = 0;
  41. int GLAD_GL_OVR_multiview = 0;
  42. int GLAD_GL_OVR_multiview2 = 0;
  43. PFNGLACCUMPROC glad_glAccum = NULL;
  44. PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL;
  45. PFNGLALPHAFUNCPROC glad_glAlphaFunc = NULL;
  46. PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident = NULL;
  47. PFNGLARRAYELEMENTPROC glad_glArrayElement = NULL;
  48. PFNGLATTACHSHADERPROC glad_glAttachShader = NULL;
  49. PFNGLBEGINPROC glad_glBegin = NULL;
  50. PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL;
  51. PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL;
  52. PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL;
  53. PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL;
  54. PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL;
  55. PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL;
  56. PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL;
  57. PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL;
  58. PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL;
  59. PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL;
  60. PFNGLBINDFRAMEBUFFEREXTPROC glad_glBindFramebufferEXT = NULL;
  61. PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL;
  62. PFNGLBINDRENDERBUFFEREXTPROC glad_glBindRenderbufferEXT = NULL;
  63. PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL;
  64. PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL;
  65. PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL;
  66. PFNGLBITMAPPROC glad_glBitmap = NULL;
  67. PFNGLBLENDCOLORPROC glad_glBlendColor = NULL;
  68. PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL;
  69. PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL;
  70. PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL;
  71. PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL;
  72. PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL;
  73. PFNGLBLITFRAMEBUFFEREXTPROC glad_glBlitFramebufferEXT = NULL;
  74. PFNGLBUFFERDATAPROC glad_glBufferData = NULL;
  75. PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL;
  76. PFNGLCALLLISTPROC glad_glCallList = NULL;
  77. PFNGLCALLLISTSPROC glad_glCallLists = NULL;
  78. PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL;
  79. PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glad_glCheckFramebufferStatusEXT = NULL;
  80. PFNGLCLAMPCOLORPROC glad_glClampColor = NULL;
  81. PFNGLCLEARPROC glad_glClear = NULL;
  82. PFNGLCLEARACCUMPROC glad_glClearAccum = NULL;
  83. PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL;
  84. PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL;
  85. PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL;
  86. PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL;
  87. PFNGLCLEARCOLORPROC glad_glClearColor = NULL;
  88. PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL;
  89. PFNGLCLEARINDEXPROC glad_glClearIndex = NULL;
  90. PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL;
  91. PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture = NULL;
  92. PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL;
  93. PFNGLCLIPPLANEPROC glad_glClipPlane = NULL;
  94. PFNGLCOLOR3BPROC glad_glColor3b = NULL;
  95. PFNGLCOLOR3BVPROC glad_glColor3bv = NULL;
  96. PFNGLCOLOR3DPROC glad_glColor3d = NULL;
  97. PFNGLCOLOR3DVPROC glad_glColor3dv = NULL;
  98. PFNGLCOLOR3FPROC glad_glColor3f = NULL;
  99. PFNGLCOLOR3FVPROC glad_glColor3fv = NULL;
  100. PFNGLCOLOR3IPROC glad_glColor3i = NULL;
  101. PFNGLCOLOR3IVPROC glad_glColor3iv = NULL;
  102. PFNGLCOLOR3SPROC glad_glColor3s = NULL;
  103. PFNGLCOLOR3SVPROC glad_glColor3sv = NULL;
  104. PFNGLCOLOR3UBPROC glad_glColor3ub = NULL;
  105. PFNGLCOLOR3UBVPROC glad_glColor3ubv = NULL;
  106. PFNGLCOLOR3UIPROC glad_glColor3ui = NULL;
  107. PFNGLCOLOR3UIVPROC glad_glColor3uiv = NULL;
  108. PFNGLCOLOR3USPROC glad_glColor3us = NULL;
  109. PFNGLCOLOR3USVPROC glad_glColor3usv = NULL;
  110. PFNGLCOLOR4BPROC glad_glColor4b = NULL;
  111. PFNGLCOLOR4BVPROC glad_glColor4bv = NULL;
  112. PFNGLCOLOR4DPROC glad_glColor4d = NULL;
  113. PFNGLCOLOR4DVPROC glad_glColor4dv = NULL;
  114. PFNGLCOLOR4FPROC glad_glColor4f = NULL;
  115. PFNGLCOLOR4FVPROC glad_glColor4fv = NULL;
  116. PFNGLCOLOR4IPROC glad_glColor4i = NULL;
  117. PFNGLCOLOR4IVPROC glad_glColor4iv = NULL;
  118. PFNGLCOLOR4SPROC glad_glColor4s = NULL;
  119. PFNGLCOLOR4SVPROC glad_glColor4sv = NULL;
  120. PFNGLCOLOR4UBPROC glad_glColor4ub = NULL;
  121. PFNGLCOLOR4UBVPROC glad_glColor4ubv = NULL;
  122. PFNGLCOLOR4UIPROC glad_glColor4ui = NULL;
  123. PFNGLCOLOR4UIVPROC glad_glColor4uiv = NULL;
  124. PFNGLCOLOR4USPROC glad_glColor4us = NULL;
  125. PFNGLCOLOR4USVPROC glad_glColor4usv = NULL;
  126. PFNGLCOLORMASKPROC glad_glColorMask = NULL;
  127. PFNGLCOLORMASKIPROC glad_glColorMaski = NULL;
  128. PFNGLCOLORMATERIALPROC glad_glColorMaterial = NULL;
  129. PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL;
  130. PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL;
  131. PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL;
  132. PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL;
  133. PFNGLCOLORPOINTERPROC glad_glColorPointer = NULL;
  134. PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL;
  135. PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL;
  136. PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL;
  137. PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL;
  138. PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL;
  139. PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL;
  140. PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL;
  141. PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL;
  142. PFNGLCOPYPIXELSPROC glad_glCopyPixels = NULL;
  143. PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL;
  144. PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL;
  145. PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL;
  146. PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL;
  147. PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL;
  148. PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL;
  149. PFNGLCREATESHADERPROC glad_glCreateShader = NULL;
  150. PFNGLCULLFACEPROC glad_glCullFace = NULL;
  151. PFNGLDEBUGMESSAGECALLBACKARBPROC glad_glDebugMessageCallbackARB = NULL;
  152. PFNGLDEBUGMESSAGECONTROLARBPROC glad_glDebugMessageControlARB = NULL;
  153. PFNGLDEBUGMESSAGEINSERTARBPROC glad_glDebugMessageInsertARB = NULL;
  154. PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL;
  155. PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL;
  156. PFNGLDELETEFRAMEBUFFERSEXTPROC glad_glDeleteFramebuffersEXT = NULL;
  157. PFNGLDELETELISTSPROC glad_glDeleteLists = NULL;
  158. PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL;
  159. PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL;
  160. PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL;
  161. PFNGLDELETERENDERBUFFERSEXTPROC glad_glDeleteRenderbuffersEXT = NULL;
  162. PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL;
  163. PFNGLDELETESHADERPROC glad_glDeleteShader = NULL;
  164. PFNGLDELETESYNCPROC glad_glDeleteSync = NULL;
  165. PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL;
  166. PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL;
  167. PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL;
  168. PFNGLDEPTHMASKPROC glad_glDepthMask = NULL;
  169. PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL;
  170. PFNGLDETACHSHADERPROC glad_glDetachShader = NULL;
  171. PFNGLDISABLEPROC glad_glDisable = NULL;
  172. PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState = NULL;
  173. PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL;
  174. PFNGLDISABLEIPROC glad_glDisablei = NULL;
  175. PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL;
  176. PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL;
  177. PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL;
  178. PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL;
  179. PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL;
  180. PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL;
  181. PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL;
  182. PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL;
  183. PFNGLDRAWPIXELSPROC glad_glDrawPixels = NULL;
  184. PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL;
  185. PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL;
  186. PFNGLEDGEFLAGPROC glad_glEdgeFlag = NULL;
  187. PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer = NULL;
  188. PFNGLEDGEFLAGVPROC glad_glEdgeFlagv = NULL;
  189. PFNGLENABLEPROC glad_glEnable = NULL;
  190. PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState = NULL;
  191. PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL;
  192. PFNGLENABLEIPROC glad_glEnablei = NULL;
  193. PFNGLENDPROC glad_glEnd = NULL;
  194. PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL;
  195. PFNGLENDLISTPROC glad_glEndList = NULL;
  196. PFNGLENDQUERYPROC glad_glEndQuery = NULL;
  197. PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL;
  198. PFNGLEVALCOORD1DPROC glad_glEvalCoord1d = NULL;
  199. PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv = NULL;
  200. PFNGLEVALCOORD1FPROC glad_glEvalCoord1f = NULL;
  201. PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv = NULL;
  202. PFNGLEVALCOORD2DPROC glad_glEvalCoord2d = NULL;
  203. PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv = NULL;
  204. PFNGLEVALCOORD2FPROC glad_glEvalCoord2f = NULL;
  205. PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv = NULL;
  206. PFNGLEVALMESH1PROC glad_glEvalMesh1 = NULL;
  207. PFNGLEVALMESH2PROC glad_glEvalMesh2 = NULL;
  208. PFNGLEVALPOINT1PROC glad_glEvalPoint1 = NULL;
  209. PFNGLEVALPOINT2PROC glad_glEvalPoint2 = NULL;
  210. PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer = NULL;
  211. PFNGLFENCESYNCPROC glad_glFenceSync = NULL;
  212. PFNGLFINISHPROC glad_glFinish = NULL;
  213. PFNGLFLUSHPROC glad_glFlush = NULL;
  214. PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL;
  215. PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer = NULL;
  216. PFNGLFOGCOORDDPROC glad_glFogCoordd = NULL;
  217. PFNGLFOGCOORDDVPROC glad_glFogCoorddv = NULL;
  218. PFNGLFOGCOORDFPROC glad_glFogCoordf = NULL;
  219. PFNGLFOGCOORDFVPROC glad_glFogCoordfv = NULL;
  220. PFNGLFOGFPROC glad_glFogf = NULL;
  221. PFNGLFOGFVPROC glad_glFogfv = NULL;
  222. PFNGLFOGIPROC glad_glFogi = NULL;
  223. PFNGLFOGIVPROC glad_glFogiv = NULL;
  224. PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL;
  225. PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glad_glFramebufferRenderbufferEXT = NULL;
  226. PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL;
  227. PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL;
  228. PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glad_glFramebufferTexture1DEXT = NULL;
  229. PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL;
  230. PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glad_glFramebufferTexture2DEXT = NULL;
  231. PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL;
  232. PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glad_glFramebufferTexture3DEXT = NULL;
  233. PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL;
  234. PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC glad_glFramebufferTextureMultiviewOVR = NULL;
  235. PFNGLFRONTFACEPROC glad_glFrontFace = NULL;
  236. PFNGLFRUSTUMPROC glad_glFrustum = NULL;
  237. PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL;
  238. PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL;
  239. PFNGLGENFRAMEBUFFERSEXTPROC glad_glGenFramebuffersEXT = NULL;
  240. PFNGLGENLISTSPROC glad_glGenLists = NULL;
  241. PFNGLGENQUERIESPROC glad_glGenQueries = NULL;
  242. PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL;
  243. PFNGLGENRENDERBUFFERSEXTPROC glad_glGenRenderbuffersEXT = NULL;
  244. PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL;
  245. PFNGLGENTEXTURESPROC glad_glGenTextures = NULL;
  246. PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL;
  247. PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL;
  248. PFNGLGENERATEMIPMAPEXTPROC glad_glGenerateMipmapEXT = NULL;
  249. PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL;
  250. PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL;
  251. PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL;
  252. PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL;
  253. PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL;
  254. PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL;
  255. PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL;
  256. PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL;
  257. PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL;
  258. PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL;
  259. PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL;
  260. PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL;
  261. PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL;
  262. PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL;
  263. PFNGLGETCLIPPLANEPROC glad_glGetClipPlane = NULL;
  264. PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL;
  265. PFNGLGETDEBUGMESSAGELOGARBPROC glad_glGetDebugMessageLogARB = NULL;
  266. PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL;
  267. PFNGLGETERRORPROC glad_glGetError = NULL;
  268. PFNGLGETFLOATVPROC glad_glGetFloatv = NULL;
  269. PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL;
  270. PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL;
  271. PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL;
  272. PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glad_glGetFramebufferAttachmentParameterivEXT = NULL;
  273. PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL;
  274. PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL;
  275. PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL;
  276. PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL;
  277. PFNGLGETLIGHTFVPROC glad_glGetLightfv = NULL;
  278. PFNGLGETLIGHTIVPROC glad_glGetLightiv = NULL;
  279. PFNGLGETMAPDVPROC glad_glGetMapdv = NULL;
  280. PFNGLGETMAPFVPROC glad_glGetMapfv = NULL;
  281. PFNGLGETMAPIVPROC glad_glGetMapiv = NULL;
  282. PFNGLGETMATERIALFVPROC glad_glGetMaterialfv = NULL;
  283. PFNGLGETMATERIALIVPROC glad_glGetMaterialiv = NULL;
  284. PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL;
  285. PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv = NULL;
  286. PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv = NULL;
  287. PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv = NULL;
  288. PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL;
  289. PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple = NULL;
  290. PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary = NULL;
  291. PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL;
  292. PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL;
  293. PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL;
  294. PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL;
  295. PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL;
  296. PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL;
  297. PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL;
  298. PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL;
  299. PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glad_glGetRenderbufferParameterivEXT = NULL;
  300. PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL;
  301. PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL;
  302. PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL;
  303. PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL;
  304. PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL;
  305. PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL;
  306. PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL;
  307. PFNGLGETSTRINGPROC glad_glGetString = NULL;
  308. PFNGLGETSTRINGIPROC glad_glGetStringi = NULL;
  309. PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL;
  310. PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv = NULL;
  311. PFNGLGETTEXENVIVPROC glad_glGetTexEnviv = NULL;
  312. PFNGLGETTEXGENDVPROC glad_glGetTexGendv = NULL;
  313. PFNGLGETTEXGENFVPROC glad_glGetTexGenfv = NULL;
  314. PFNGLGETTEXGENIVPROC glad_glGetTexGeniv = NULL;
  315. PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL;
  316. PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL;
  317. PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL;
  318. PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL;
  319. PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL;
  320. PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL;
  321. PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL;
  322. PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL;
  323. PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL;
  324. PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL;
  325. PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL;
  326. PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL;
  327. PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL;
  328. PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL;
  329. PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL;
  330. PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL;
  331. PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL;
  332. PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL;
  333. PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL;
  334. PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL;
  335. PFNGLHINTPROC glad_glHint = NULL;
  336. PFNGLINDEXMASKPROC glad_glIndexMask = NULL;
  337. PFNGLINDEXPOINTERPROC glad_glIndexPointer = NULL;
  338. PFNGLINDEXDPROC glad_glIndexd = NULL;
  339. PFNGLINDEXDVPROC glad_glIndexdv = NULL;
  340. PFNGLINDEXFPROC glad_glIndexf = NULL;
  341. PFNGLINDEXFVPROC glad_glIndexfv = NULL;
  342. PFNGLINDEXIPROC glad_glIndexi = NULL;
  343. PFNGLINDEXIVPROC glad_glIndexiv = NULL;
  344. PFNGLINDEXSPROC glad_glIndexs = NULL;
  345. PFNGLINDEXSVPROC glad_glIndexsv = NULL;
  346. PFNGLINDEXUBPROC glad_glIndexub = NULL;
  347. PFNGLINDEXUBVPROC glad_glIndexubv = NULL;
  348. PFNGLINITNAMESPROC glad_glInitNames = NULL;
  349. PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays = NULL;
  350. PFNGLISBUFFERPROC glad_glIsBuffer = NULL;
  351. PFNGLISENABLEDPROC glad_glIsEnabled = NULL;
  352. PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL;
  353. PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL;
  354. PFNGLISFRAMEBUFFEREXTPROC glad_glIsFramebufferEXT = NULL;
  355. PFNGLISLISTPROC glad_glIsList = NULL;
  356. PFNGLISPROGRAMPROC glad_glIsProgram = NULL;
  357. PFNGLISQUERYPROC glad_glIsQuery = NULL;
  358. PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL;
  359. PFNGLISRENDERBUFFEREXTPROC glad_glIsRenderbufferEXT = NULL;
  360. PFNGLISSAMPLERPROC glad_glIsSampler = NULL;
  361. PFNGLISSHADERPROC glad_glIsShader = NULL;
  362. PFNGLISSYNCPROC glad_glIsSync = NULL;
  363. PFNGLISTEXTUREPROC glad_glIsTexture = NULL;
  364. PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL;
  365. PFNGLLIGHTMODELFPROC glad_glLightModelf = NULL;
  366. PFNGLLIGHTMODELFVPROC glad_glLightModelfv = NULL;
  367. PFNGLLIGHTMODELIPROC glad_glLightModeli = NULL;
  368. PFNGLLIGHTMODELIVPROC glad_glLightModeliv = NULL;
  369. PFNGLLIGHTFPROC glad_glLightf = NULL;
  370. PFNGLLIGHTFVPROC glad_glLightfv = NULL;
  371. PFNGLLIGHTIPROC glad_glLighti = NULL;
  372. PFNGLLIGHTIVPROC glad_glLightiv = NULL;
  373. PFNGLLINESTIPPLEPROC glad_glLineStipple = NULL;
  374. PFNGLLINEWIDTHPROC glad_glLineWidth = NULL;
  375. PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL;
  376. PFNGLLISTBASEPROC glad_glListBase = NULL;
  377. PFNGLLOADIDENTITYPROC glad_glLoadIdentity = NULL;
  378. PFNGLLOADMATRIXDPROC glad_glLoadMatrixd = NULL;
  379. PFNGLLOADMATRIXFPROC glad_glLoadMatrixf = NULL;
  380. PFNGLLOADNAMEPROC glad_glLoadName = NULL;
  381. PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd = NULL;
  382. PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf = NULL;
  383. PFNGLLOGICOPPROC glad_glLogicOp = NULL;
  384. PFNGLMAP1DPROC glad_glMap1d = NULL;
  385. PFNGLMAP1FPROC glad_glMap1f = NULL;
  386. PFNGLMAP2DPROC glad_glMap2d = NULL;
  387. PFNGLMAP2FPROC glad_glMap2f = NULL;
  388. PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL;
  389. PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL;
  390. PFNGLMAPGRID1DPROC glad_glMapGrid1d = NULL;
  391. PFNGLMAPGRID1FPROC glad_glMapGrid1f = NULL;
  392. PFNGLMAPGRID2DPROC glad_glMapGrid2d = NULL;
  393. PFNGLMAPGRID2FPROC glad_glMapGrid2f = NULL;
  394. PFNGLMATERIALFPROC glad_glMaterialf = NULL;
  395. PFNGLMATERIALFVPROC glad_glMaterialfv = NULL;
  396. PFNGLMATERIALIPROC glad_glMateriali = NULL;
  397. PFNGLMATERIALIVPROC glad_glMaterialiv = NULL;
  398. PFNGLMATRIXMODEPROC glad_glMatrixMode = NULL;
  399. PFNGLMULTMATRIXDPROC glad_glMultMatrixd = NULL;
  400. PFNGLMULTMATRIXFPROC glad_glMultMatrixf = NULL;
  401. PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd = NULL;
  402. PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf = NULL;
  403. PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL;
  404. PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL;
  405. PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL;
  406. PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d = NULL;
  407. PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv = NULL;
  408. PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f = NULL;
  409. PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv = NULL;
  410. PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i = NULL;
  411. PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv = NULL;
  412. PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s = NULL;
  413. PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv = NULL;
  414. PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d = NULL;
  415. PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv = NULL;
  416. PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f = NULL;
  417. PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv = NULL;
  418. PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i = NULL;
  419. PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv = NULL;
  420. PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s = NULL;
  421. PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv = NULL;
  422. PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d = NULL;
  423. PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv = NULL;
  424. PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f = NULL;
  425. PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv = NULL;
  426. PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i = NULL;
  427. PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv = NULL;
  428. PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s = NULL;
  429. PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv = NULL;
  430. PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d = NULL;
  431. PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv = NULL;
  432. PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f = NULL;
  433. PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv = NULL;
  434. PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i = NULL;
  435. PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv = NULL;
  436. PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s = NULL;
  437. PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv = NULL;
  438. PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL;
  439. PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL;
  440. PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL;
  441. PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL;
  442. PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL;
  443. PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL;
  444. PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL;
  445. PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL;
  446. PFNGLNEWLISTPROC glad_glNewList = NULL;
  447. PFNGLNORMAL3BPROC glad_glNormal3b = NULL;
  448. PFNGLNORMAL3BVPROC glad_glNormal3bv = NULL;
  449. PFNGLNORMAL3DPROC glad_glNormal3d = NULL;
  450. PFNGLNORMAL3DVPROC glad_glNormal3dv = NULL;
  451. PFNGLNORMAL3FPROC glad_glNormal3f = NULL;
  452. PFNGLNORMAL3FVPROC glad_glNormal3fv = NULL;
  453. PFNGLNORMAL3IPROC glad_glNormal3i = NULL;
  454. PFNGLNORMAL3IVPROC glad_glNormal3iv = NULL;
  455. PFNGLNORMAL3SPROC glad_glNormal3s = NULL;
  456. PFNGLNORMAL3SVPROC glad_glNormal3sv = NULL;
  457. PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL;
  458. PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL;
  459. PFNGLNORMALPOINTERPROC glad_glNormalPointer = NULL;
  460. PFNGLORTHOPROC glad_glOrtho = NULL;
  461. PFNGLPASSTHROUGHPROC glad_glPassThrough = NULL;
  462. PFNGLPIXELMAPFVPROC glad_glPixelMapfv = NULL;
  463. PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv = NULL;
  464. PFNGLPIXELMAPUSVPROC glad_glPixelMapusv = NULL;
  465. PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL;
  466. PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL;
  467. PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf = NULL;
  468. PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi = NULL;
  469. PFNGLPIXELZOOMPROC glad_glPixelZoom = NULL;
  470. PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL;
  471. PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL;
  472. PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL;
  473. PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL;
  474. PFNGLPOINTSIZEPROC glad_glPointSize = NULL;
  475. PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL;
  476. PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL;
  477. PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple = NULL;
  478. PFNGLPOPATTRIBPROC glad_glPopAttrib = NULL;
  479. PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib = NULL;
  480. PFNGLPOPMATRIXPROC glad_glPopMatrix = NULL;
  481. PFNGLPOPNAMEPROC glad_glPopName = NULL;
  482. PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL;
  483. PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures = NULL;
  484. PFNGLPROGRAMBINARYPROC glad_glProgramBinary = NULL;
  485. PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri = NULL;
  486. PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL;
  487. PFNGLPUSHATTRIBPROC glad_glPushAttrib = NULL;
  488. PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib = NULL;
  489. PFNGLPUSHMATRIXPROC glad_glPushMatrix = NULL;
  490. PFNGLPUSHNAMEPROC glad_glPushName = NULL;
  491. PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL;
  492. PFNGLRASTERPOS2DPROC glad_glRasterPos2d = NULL;
  493. PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv = NULL;
  494. PFNGLRASTERPOS2FPROC glad_glRasterPos2f = NULL;
  495. PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv = NULL;
  496. PFNGLRASTERPOS2IPROC glad_glRasterPos2i = NULL;
  497. PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv = NULL;
  498. PFNGLRASTERPOS2SPROC glad_glRasterPos2s = NULL;
  499. PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv = NULL;
  500. PFNGLRASTERPOS3DPROC glad_glRasterPos3d = NULL;
  501. PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv = NULL;
  502. PFNGLRASTERPOS3FPROC glad_glRasterPos3f = NULL;
  503. PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv = NULL;
  504. PFNGLRASTERPOS3IPROC glad_glRasterPos3i = NULL;
  505. PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv = NULL;
  506. PFNGLRASTERPOS3SPROC glad_glRasterPos3s = NULL;
  507. PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv = NULL;
  508. PFNGLRASTERPOS4DPROC glad_glRasterPos4d = NULL;
  509. PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv = NULL;
  510. PFNGLRASTERPOS4FPROC glad_glRasterPos4f = NULL;
  511. PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv = NULL;
  512. PFNGLRASTERPOS4IPROC glad_glRasterPos4i = NULL;
  513. PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv = NULL;
  514. PFNGLRASTERPOS4SPROC glad_glRasterPos4s = NULL;
  515. PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv = NULL;
  516. PFNGLREADBUFFERPROC glad_glReadBuffer = NULL;
  517. PFNGLREADPIXELSPROC glad_glReadPixels = NULL;
  518. PFNGLRECTDPROC glad_glRectd = NULL;
  519. PFNGLRECTDVPROC glad_glRectdv = NULL;
  520. PFNGLRECTFPROC glad_glRectf = NULL;
  521. PFNGLRECTFVPROC glad_glRectfv = NULL;
  522. PFNGLRECTIPROC glad_glRecti = NULL;
  523. PFNGLRECTIVPROC glad_glRectiv = NULL;
  524. PFNGLRECTSPROC glad_glRects = NULL;
  525. PFNGLRECTSVPROC glad_glRectsv = NULL;
  526. PFNGLRENDERMODEPROC glad_glRenderMode = NULL;
  527. PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL;
  528. PFNGLRENDERBUFFERSTORAGEEXTPROC glad_glRenderbufferStorageEXT = NULL;
  529. PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL;
  530. PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glad_glRenderbufferStorageMultisampleEXT = NULL;
  531. PFNGLROTATEDPROC glad_glRotated = NULL;
  532. PFNGLROTATEFPROC glad_glRotatef = NULL;
  533. PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL;
  534. PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL;
  535. PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL;
  536. PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL;
  537. PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL;
  538. PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL;
  539. PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL;
  540. PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL;
  541. PFNGLSCALEDPROC glad_glScaled = NULL;
  542. PFNGLSCALEFPROC glad_glScalef = NULL;
  543. PFNGLSCISSORPROC glad_glScissor = NULL;
  544. PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b = NULL;
  545. PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv = NULL;
  546. PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d = NULL;
  547. PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv = NULL;
  548. PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f = NULL;
  549. PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv = NULL;
  550. PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i = NULL;
  551. PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv = NULL;
  552. PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s = NULL;
  553. PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv = NULL;
  554. PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub = NULL;
  555. PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv = NULL;
  556. PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui = NULL;
  557. PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv = NULL;
  558. PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us = NULL;
  559. PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv = NULL;
  560. PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL;
  561. PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL;
  562. PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer = NULL;
  563. PFNGLSELECTBUFFERPROC glad_glSelectBuffer = NULL;
  564. PFNGLSHADEMODELPROC glad_glShadeModel = NULL;
  565. PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL;
  566. PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL;
  567. PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL;
  568. PFNGLSTENCILMASKPROC glad_glStencilMask = NULL;
  569. PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL;
  570. PFNGLSTENCILOPPROC glad_glStencilOp = NULL;
  571. PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL;
  572. PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL;
  573. PFNGLTEXCOORD1DPROC glad_glTexCoord1d = NULL;
  574. PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv = NULL;
  575. PFNGLTEXCOORD1FPROC glad_glTexCoord1f = NULL;
  576. PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv = NULL;
  577. PFNGLTEXCOORD1IPROC glad_glTexCoord1i = NULL;
  578. PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv = NULL;
  579. PFNGLTEXCOORD1SPROC glad_glTexCoord1s = NULL;
  580. PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv = NULL;
  581. PFNGLTEXCOORD2DPROC glad_glTexCoord2d = NULL;
  582. PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv = NULL;
  583. PFNGLTEXCOORD2FPROC glad_glTexCoord2f = NULL;
  584. PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv = NULL;
  585. PFNGLTEXCOORD2IPROC glad_glTexCoord2i = NULL;
  586. PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv = NULL;
  587. PFNGLTEXCOORD2SPROC glad_glTexCoord2s = NULL;
  588. PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv = NULL;
  589. PFNGLTEXCOORD3DPROC glad_glTexCoord3d = NULL;
  590. PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv = NULL;
  591. PFNGLTEXCOORD3FPROC glad_glTexCoord3f = NULL;
  592. PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv = NULL;
  593. PFNGLTEXCOORD3IPROC glad_glTexCoord3i = NULL;
  594. PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv = NULL;
  595. PFNGLTEXCOORD3SPROC glad_glTexCoord3s = NULL;
  596. PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv = NULL;
  597. PFNGLTEXCOORD4DPROC glad_glTexCoord4d = NULL;
  598. PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv = NULL;
  599. PFNGLTEXCOORD4FPROC glad_glTexCoord4f = NULL;
  600. PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv = NULL;
  601. PFNGLTEXCOORD4IPROC glad_glTexCoord4i = NULL;
  602. PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv = NULL;
  603. PFNGLTEXCOORD4SPROC glad_glTexCoord4s = NULL;
  604. PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv = NULL;
  605. PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL;
  606. PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL;
  607. PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL;
  608. PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL;
  609. PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL;
  610. PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL;
  611. PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL;
  612. PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL;
  613. PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer = NULL;
  614. PFNGLTEXENVFPROC glad_glTexEnvf = NULL;
  615. PFNGLTEXENVFVPROC glad_glTexEnvfv = NULL;
  616. PFNGLTEXENVIPROC glad_glTexEnvi = NULL;
  617. PFNGLTEXENVIVPROC glad_glTexEnviv = NULL;
  618. PFNGLTEXGENDPROC glad_glTexGend = NULL;
  619. PFNGLTEXGENDVPROC glad_glTexGendv = NULL;
  620. PFNGLTEXGENFPROC glad_glTexGenf = NULL;
  621. PFNGLTEXGENFVPROC glad_glTexGenfv = NULL;
  622. PFNGLTEXGENIPROC glad_glTexGeni = NULL;
  623. PFNGLTEXGENIVPROC glad_glTexGeniv = NULL;
  624. PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL;
  625. PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL;
  626. PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL;
  627. PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL;
  628. PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL;
  629. PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL;
  630. PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL;
  631. PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL;
  632. PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL;
  633. PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL;
  634. PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL;
  635. PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL;
  636. PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL;
  637. PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL;
  638. PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL;
  639. PFNGLTRANSLATEDPROC glad_glTranslated = NULL;
  640. PFNGLTRANSLATEFPROC glad_glTranslatef = NULL;
  641. PFNGLUNIFORM1FPROC glad_glUniform1f = NULL;
  642. PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL;
  643. PFNGLUNIFORM1IPROC glad_glUniform1i = NULL;
  644. PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL;
  645. PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL;
  646. PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL;
  647. PFNGLUNIFORM2FPROC glad_glUniform2f = NULL;
  648. PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL;
  649. PFNGLUNIFORM2IPROC glad_glUniform2i = NULL;
  650. PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL;
  651. PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL;
  652. PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL;
  653. PFNGLUNIFORM3FPROC glad_glUniform3f = NULL;
  654. PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL;
  655. PFNGLUNIFORM3IPROC glad_glUniform3i = NULL;
  656. PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL;
  657. PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL;
  658. PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL;
  659. PFNGLUNIFORM4FPROC glad_glUniform4f = NULL;
  660. PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL;
  661. PFNGLUNIFORM4IPROC glad_glUniform4i = NULL;
  662. PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL;
  663. PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL;
  664. PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL;
  665. PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL;
  666. PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL;
  667. PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL;
  668. PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL;
  669. PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL;
  670. PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL;
  671. PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL;
  672. PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL;
  673. PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL;
  674. PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL;
  675. PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL;
  676. PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL;
  677. PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL;
  678. PFNGLVERTEX2DPROC glad_glVertex2d = NULL;
  679. PFNGLVERTEX2DVPROC glad_glVertex2dv = NULL;
  680. PFNGLVERTEX2FPROC glad_glVertex2f = NULL;
  681. PFNGLVERTEX2FVPROC glad_glVertex2fv = NULL;
  682. PFNGLVERTEX2IPROC glad_glVertex2i = NULL;
  683. PFNGLVERTEX2IVPROC glad_glVertex2iv = NULL;
  684. PFNGLVERTEX2SPROC glad_glVertex2s = NULL;
  685. PFNGLVERTEX2SVPROC glad_glVertex2sv = NULL;
  686. PFNGLVERTEX3DPROC glad_glVertex3d = NULL;
  687. PFNGLVERTEX3DVPROC glad_glVertex3dv = NULL;
  688. PFNGLVERTEX3FPROC glad_glVertex3f = NULL;
  689. PFNGLVERTEX3FVPROC glad_glVertex3fv = NULL;
  690. PFNGLVERTEX3IPROC glad_glVertex3i = NULL;
  691. PFNGLVERTEX3IVPROC glad_glVertex3iv = NULL;
  692. PFNGLVERTEX3SPROC glad_glVertex3s = NULL;
  693. PFNGLVERTEX3SVPROC glad_glVertex3sv = NULL;
  694. PFNGLVERTEX4DPROC glad_glVertex4d = NULL;
  695. PFNGLVERTEX4DVPROC glad_glVertex4dv = NULL;
  696. PFNGLVERTEX4FPROC glad_glVertex4f = NULL;
  697. PFNGLVERTEX4FVPROC glad_glVertex4fv = NULL;
  698. PFNGLVERTEX4IPROC glad_glVertex4i = NULL;
  699. PFNGLVERTEX4IVPROC glad_glVertex4iv = NULL;
  700. PFNGLVERTEX4SPROC glad_glVertex4s = NULL;
  701. PFNGLVERTEX4SVPROC glad_glVertex4sv = NULL;
  702. PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL;
  703. PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL;
  704. PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL;
  705. PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL;
  706. PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL;
  707. PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL;
  708. PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL;
  709. PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL;
  710. PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL;
  711. PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL;
  712. PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL;
  713. PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL;
  714. PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL;
  715. PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL;
  716. PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL;
  717. PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL;
  718. PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL;
  719. PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL;
  720. PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL;
  721. PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL;
  722. PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL;
  723. PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL;
  724. PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL;
  725. PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL;
  726. PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL;
  727. PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL;
  728. PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL;
  729. PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL;
  730. PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL;
  731. PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL;
  732. PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL;
  733. PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL;
  734. PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL;
  735. PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL;
  736. PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL;
  737. PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL;
  738. PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL;
  739. PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL;
  740. PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL;
  741. PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL;
  742. PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL;
  743. PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL;
  744. PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL;
  745. PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL;
  746. PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL;
  747. PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL;
  748. PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL;
  749. PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL;
  750. PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL;
  751. PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL;
  752. PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL;
  753. PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL;
  754. PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL;
  755. PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL;
  756. PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL;
  757. PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL;
  758. PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL;
  759. PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL;
  760. PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL;
  761. PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL;
  762. PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL;
  763. PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL;
  764. PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL;
  765. PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL;
  766. PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL;
  767. PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL;
  768. PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL;
  769. PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL;
  770. PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL;
  771. PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL;
  772. PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL;
  773. PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL;
  774. PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL;
  775. PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL;
  776. PFNGLVIEWPORTPROC glad_glViewport = NULL;
  777. PFNGLWAITSYNCPROC glad_glWaitSync = NULL;
  778. PFNGLWINDOWPOS2DPROC glad_glWindowPos2d = NULL;
  779. PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv = NULL;
  780. PFNGLWINDOWPOS2FPROC glad_glWindowPos2f = NULL;
  781. PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv = NULL;
  782. PFNGLWINDOWPOS2IPROC glad_glWindowPos2i = NULL;
  783. PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv = NULL;
  784. PFNGLWINDOWPOS2SPROC glad_glWindowPos2s = NULL;
  785. PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv = NULL;
  786. PFNGLWINDOWPOS3DPROC glad_glWindowPos3d = NULL;
  787. PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv = NULL;
  788. PFNGLWINDOWPOS3FPROC glad_glWindowPos3f = NULL;
  789. PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv = NULL;
  790. PFNGLWINDOWPOS3IPROC glad_glWindowPos3i = NULL;
  791. PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv = NULL;
  792. PFNGLWINDOWPOS3SPROC glad_glWindowPos3s = NULL;
  793. PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv = NULL;
  794. PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram = NULL;
  795. PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture = NULL;
  796. PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline = NULL;
  797. PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback = NULL;
  798. PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer = NULL;
  799. PFNGLBLENDBARRIERPROC glad_glBlendBarrier = NULL;
  800. PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei = NULL;
  801. PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi = NULL;
  802. PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei = NULL;
  803. PFNGLBLENDFUNCIPROC glad_glBlendFunci = NULL;
  804. PFNGLCLEARDEPTHFPROC glad_glClearDepthf = NULL;
  805. PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData = NULL;
  806. PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv = NULL;
  807. PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback = NULL;
  808. PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl = NULL;
  809. PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert = NULL;
  810. PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines = NULL;
  811. PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks = NULL;
  812. PFNGLDEPTHRANGEFPROC glad_glDepthRangef = NULL;
  813. PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute = NULL;
  814. PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect = NULL;
  815. PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect = NULL;
  816. PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect = NULL;
  817. PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri = NULL;
  818. PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines = NULL;
  819. PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks = NULL;
  820. PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog = NULL;
  821. PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv = NULL;
  822. PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus = NULL;
  823. PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ = NULL;
  824. PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel = NULL;
  825. PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel = NULL;
  826. PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv = NULL;
  827. PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog = NULL;
  828. PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv = NULL;
  829. PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex = NULL;
  830. PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation = NULL;
  831. PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName = NULL;
  832. PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv = NULL;
  833. PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat = NULL;
  834. PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv = NULL;
  835. PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv = NULL;
  836. PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv = NULL;
  837. PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer = NULL;
  838. PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer = NULL;
  839. PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline = NULL;
  840. PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback = NULL;
  841. PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier = NULL;
  842. PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion = NULL;
  843. PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading = NULL;
  844. PFNGLOBJECTLABELPROC glad_glObjectLabel = NULL;
  845. PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel = NULL;
  846. PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri = NULL;
  847. PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback = NULL;
  848. PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup = NULL;
  849. PFNGLPRIMITIVEBOUNDINGBOXPROC glad_glPrimitiveBoundingBox = NULL;
  850. PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f = NULL;
  851. PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv = NULL;
  852. PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i = NULL;
  853. PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv = NULL;
  854. PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui = NULL;
  855. PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv = NULL;
  856. PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f = NULL;
  857. PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv = NULL;
  858. PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i = NULL;
  859. PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv = NULL;
  860. PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui = NULL;
  861. PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv = NULL;
  862. PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f = NULL;
  863. PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv = NULL;
  864. PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i = NULL;
  865. PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv = NULL;
  866. PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui = NULL;
  867. PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv = NULL;
  868. PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f = NULL;
  869. PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv = NULL;
  870. PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i = NULL;
  871. PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv = NULL;
  872. PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui = NULL;
  873. PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv = NULL;
  874. PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv = NULL;
  875. PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv = NULL;
  876. PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv = NULL;
  877. PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv = NULL;
  878. PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv = NULL;
  879. PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv = NULL;
  880. PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv = NULL;
  881. PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv = NULL;
  882. PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv = NULL;
  883. PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup = NULL;
  884. PFNGLREADNPIXELSPROC glad_glReadnPixels = NULL;
  885. PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler = NULL;
  886. PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback = NULL;
  887. PFNGLSHADERBINARYPROC glad_glShaderBinary = NULL;
  888. PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange = NULL;
  889. PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D = NULL;
  890. PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample = NULL;
  891. PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D = NULL;
  892. PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample = NULL;
  893. PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages = NULL;
  894. PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline = NULL;
  895. PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding = NULL;
  896. PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat = NULL;
  897. PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat = NULL;
  898. PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor = NULL;
  899. static void glad_gl_load_GL_VERSION_1_0( GLADuserptrloadfunc load, void* userptr) {
  900. if(!GLAD_GL_VERSION_1_0) return;
  901. glad_glAccum = (PFNGLACCUMPROC) load(userptr, "glAccum");
  902. glad_glAlphaFunc = (PFNGLALPHAFUNCPROC) load(userptr, "glAlphaFunc");
  903. glad_glBegin = (PFNGLBEGINPROC) load(userptr, "glBegin");
  904. glad_glBitmap = (PFNGLBITMAPPROC) load(userptr, "glBitmap");
  905. glad_glBlendFunc = (PFNGLBLENDFUNCPROC) load(userptr, "glBlendFunc");
  906. glad_glCallList = (PFNGLCALLLISTPROC) load(userptr, "glCallList");
  907. glad_glCallLists = (PFNGLCALLLISTSPROC) load(userptr, "glCallLists");
  908. glad_glClear = (PFNGLCLEARPROC) load(userptr, "glClear");
  909. glad_glClearAccum = (PFNGLCLEARACCUMPROC) load(userptr, "glClearAccum");
  910. glad_glClearColor = (PFNGLCLEARCOLORPROC) load(userptr, "glClearColor");
  911. glad_glClearDepth = (PFNGLCLEARDEPTHPROC) load(userptr, "glClearDepth");
  912. glad_glClearIndex = (PFNGLCLEARINDEXPROC) load(userptr, "glClearIndex");
  913. glad_glClearStencil = (PFNGLCLEARSTENCILPROC) load(userptr, "glClearStencil");
  914. glad_glClipPlane = (PFNGLCLIPPLANEPROC) load(userptr, "glClipPlane");
  915. glad_glColor3b = (PFNGLCOLOR3BPROC) load(userptr, "glColor3b");
  916. glad_glColor3bv = (PFNGLCOLOR3BVPROC) load(userptr, "glColor3bv");
  917. glad_glColor3d = (PFNGLCOLOR3DPROC) load(userptr, "glColor3d");
  918. glad_glColor3dv = (PFNGLCOLOR3DVPROC) load(userptr, "glColor3dv");
  919. glad_glColor3f = (PFNGLCOLOR3FPROC) load(userptr, "glColor3f");
  920. glad_glColor3fv = (PFNGLCOLOR3FVPROC) load(userptr, "glColor3fv");
  921. glad_glColor3i = (PFNGLCOLOR3IPROC) load(userptr, "glColor3i");
  922. glad_glColor3iv = (PFNGLCOLOR3IVPROC) load(userptr, "glColor3iv");
  923. glad_glColor3s = (PFNGLCOLOR3SPROC) load(userptr, "glColor3s");
  924. glad_glColor3sv = (PFNGLCOLOR3SVPROC) load(userptr, "glColor3sv");
  925. glad_glColor3ub = (PFNGLCOLOR3UBPROC) load(userptr, "glColor3ub");
  926. glad_glColor3ubv = (PFNGLCOLOR3UBVPROC) load(userptr, "glColor3ubv");
  927. glad_glColor3ui = (PFNGLCOLOR3UIPROC) load(userptr, "glColor3ui");
  928. glad_glColor3uiv = (PFNGLCOLOR3UIVPROC) load(userptr, "glColor3uiv");
  929. glad_glColor3us = (PFNGLCOLOR3USPROC) load(userptr, "glColor3us");
  930. glad_glColor3usv = (PFNGLCOLOR3USVPROC) load(userptr, "glColor3usv");
  931. glad_glColor4b = (PFNGLCOLOR4BPROC) load(userptr, "glColor4b");
  932. glad_glColor4bv = (PFNGLCOLOR4BVPROC) load(userptr, "glColor4bv");
  933. glad_glColor4d = (PFNGLCOLOR4DPROC) load(userptr, "glColor4d");
  934. glad_glColor4dv = (PFNGLCOLOR4DVPROC) load(userptr, "glColor4dv");
  935. glad_glColor4f = (PFNGLCOLOR4FPROC) load(userptr, "glColor4f");
  936. glad_glColor4fv = (PFNGLCOLOR4FVPROC) load(userptr, "glColor4fv");
  937. glad_glColor4i = (PFNGLCOLOR4IPROC) load(userptr, "glColor4i");
  938. glad_glColor4iv = (PFNGLCOLOR4IVPROC) load(userptr, "glColor4iv");
  939. glad_glColor4s = (PFNGLCOLOR4SPROC) load(userptr, "glColor4s");
  940. glad_glColor4sv = (PFNGLCOLOR4SVPROC) load(userptr, "glColor4sv");
  941. glad_glColor4ub = (PFNGLCOLOR4UBPROC) load(userptr, "glColor4ub");
  942. glad_glColor4ubv = (PFNGLCOLOR4UBVPROC) load(userptr, "glColor4ubv");
  943. glad_glColor4ui = (PFNGLCOLOR4UIPROC) load(userptr, "glColor4ui");
  944. glad_glColor4uiv = (PFNGLCOLOR4UIVPROC) load(userptr, "glColor4uiv");
  945. glad_glColor4us = (PFNGLCOLOR4USPROC) load(userptr, "glColor4us");
  946. glad_glColor4usv = (PFNGLCOLOR4USVPROC) load(userptr, "glColor4usv");
  947. glad_glColorMask = (PFNGLCOLORMASKPROC) load(userptr, "glColorMask");
  948. glad_glColorMaterial = (PFNGLCOLORMATERIALPROC) load(userptr, "glColorMaterial");
  949. glad_glCopyPixels = (PFNGLCOPYPIXELSPROC) load(userptr, "glCopyPixels");
  950. glad_glCullFace = (PFNGLCULLFACEPROC) load(userptr, "glCullFace");
  951. glad_glDeleteLists = (PFNGLDELETELISTSPROC) load(userptr, "glDeleteLists");
  952. glad_glDepthFunc = (PFNGLDEPTHFUNCPROC) load(userptr, "glDepthFunc");
  953. glad_glDepthMask = (PFNGLDEPTHMASKPROC) load(userptr, "glDepthMask");
  954. glad_glDepthRange = (PFNGLDEPTHRANGEPROC) load(userptr, "glDepthRange");
  955. glad_glDisable = (PFNGLDISABLEPROC) load(userptr, "glDisable");
  956. glad_glDrawBuffer = (PFNGLDRAWBUFFERPROC) load(userptr, "glDrawBuffer");
  957. glad_glDrawPixels = (PFNGLDRAWPIXELSPROC) load(userptr, "glDrawPixels");
  958. glad_glEdgeFlag = (PFNGLEDGEFLAGPROC) load(userptr, "glEdgeFlag");
  959. glad_glEdgeFlagv = (PFNGLEDGEFLAGVPROC) load(userptr, "glEdgeFlagv");
  960. glad_glEnable = (PFNGLENABLEPROC) load(userptr, "glEnable");
  961. glad_glEnd = (PFNGLENDPROC) load(userptr, "glEnd");
  962. glad_glEndList = (PFNGLENDLISTPROC) load(userptr, "glEndList");
  963. glad_glEvalCoord1d = (PFNGLEVALCOORD1DPROC) load(userptr, "glEvalCoord1d");
  964. glad_glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC) load(userptr, "glEvalCoord1dv");
  965. glad_glEvalCoord1f = (PFNGLEVALCOORD1FPROC) load(userptr, "glEvalCoord1f");
  966. glad_glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC) load(userptr, "glEvalCoord1fv");
  967. glad_glEvalCoord2d = (PFNGLEVALCOORD2DPROC) load(userptr, "glEvalCoord2d");
  968. glad_glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC) load(userptr, "glEvalCoord2dv");
  969. glad_glEvalCoord2f = (PFNGLEVALCOORD2FPROC) load(userptr, "glEvalCoord2f");
  970. glad_glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC) load(userptr, "glEvalCoord2fv");
  971. glad_glEvalMesh1 = (PFNGLEVALMESH1PROC) load(userptr, "glEvalMesh1");
  972. glad_glEvalMesh2 = (PFNGLEVALMESH2PROC) load(userptr, "glEvalMesh2");
  973. glad_glEvalPoint1 = (PFNGLEVALPOINT1PROC) load(userptr, "glEvalPoint1");
  974. glad_glEvalPoint2 = (PFNGLEVALPOINT2PROC) load(userptr, "glEvalPoint2");
  975. glad_glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC) load(userptr, "glFeedbackBuffer");
  976. glad_glFinish = (PFNGLFINISHPROC) load(userptr, "glFinish");
  977. glad_glFlush = (PFNGLFLUSHPROC) load(userptr, "glFlush");
  978. glad_glFogf = (PFNGLFOGFPROC) load(userptr, "glFogf");
  979. glad_glFogfv = (PFNGLFOGFVPROC) load(userptr, "glFogfv");
  980. glad_glFogi = (PFNGLFOGIPROC) load(userptr, "glFogi");
  981. glad_glFogiv = (PFNGLFOGIVPROC) load(userptr, "glFogiv");
  982. glad_glFrontFace = (PFNGLFRONTFACEPROC) load(userptr, "glFrontFace");
  983. glad_glFrustum = (PFNGLFRUSTUMPROC) load(userptr, "glFrustum");
  984. glad_glGenLists = (PFNGLGENLISTSPROC) load(userptr, "glGenLists");
  985. glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC) load(userptr, "glGetBooleanv");
  986. glad_glGetClipPlane = (PFNGLGETCLIPPLANEPROC) load(userptr, "glGetClipPlane");
  987. glad_glGetDoublev = (PFNGLGETDOUBLEVPROC) load(userptr, "glGetDoublev");
  988. glad_glGetError = (PFNGLGETERRORPROC) load(userptr, "glGetError");
  989. glad_glGetFloatv = (PFNGLGETFLOATVPROC) load(userptr, "glGetFloatv");
  990. glad_glGetIntegerv = (PFNGLGETINTEGERVPROC) load(userptr, "glGetIntegerv");
  991. glad_glGetLightfv = (PFNGLGETLIGHTFVPROC) load(userptr, "glGetLightfv");
  992. glad_glGetLightiv = (PFNGLGETLIGHTIVPROC) load(userptr, "glGetLightiv");
  993. glad_glGetMapdv = (PFNGLGETMAPDVPROC) load(userptr, "glGetMapdv");
  994. glad_glGetMapfv = (PFNGLGETMAPFVPROC) load(userptr, "glGetMapfv");
  995. glad_glGetMapiv = (PFNGLGETMAPIVPROC) load(userptr, "glGetMapiv");
  996. glad_glGetMaterialfv = (PFNGLGETMATERIALFVPROC) load(userptr, "glGetMaterialfv");
  997. glad_glGetMaterialiv = (PFNGLGETMATERIALIVPROC) load(userptr, "glGetMaterialiv");
  998. glad_glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC) load(userptr, "glGetPixelMapfv");
  999. glad_glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC) load(userptr, "glGetPixelMapuiv");
  1000. glad_glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC) load(userptr, "glGetPixelMapusv");
  1001. glad_glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC) load(userptr, "glGetPolygonStipple");
  1002. glad_glGetString = (PFNGLGETSTRINGPROC) load(userptr, "glGetString");
  1003. glad_glGetTexEnvfv = (PFNGLGETTEXENVFVPROC) load(userptr, "glGetTexEnvfv");
  1004. glad_glGetTexEnviv = (PFNGLGETTEXENVIVPROC) load(userptr, "glGetTexEnviv");
  1005. glad_glGetTexGendv = (PFNGLGETTEXGENDVPROC) load(userptr, "glGetTexGendv");
  1006. glad_glGetTexGenfv = (PFNGLGETTEXGENFVPROC) load(userptr, "glGetTexGenfv");
  1007. glad_glGetTexGeniv = (PFNGLGETTEXGENIVPROC) load(userptr, "glGetTexGeniv");
  1008. glad_glGetTexImage = (PFNGLGETTEXIMAGEPROC) load(userptr, "glGetTexImage");
  1009. glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC) load(userptr, "glGetTexLevelParameterfv");
  1010. glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC) load(userptr, "glGetTexLevelParameteriv");
  1011. glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC) load(userptr, "glGetTexParameterfv");
  1012. glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC) load(userptr, "glGetTexParameteriv");
  1013. glad_glHint = (PFNGLHINTPROC) load(userptr, "glHint");
  1014. glad_glIndexMask = (PFNGLINDEXMASKPROC) load(userptr, "glIndexMask");
  1015. glad_glIndexd = (PFNGLINDEXDPROC) load(userptr, "glIndexd");
  1016. glad_glIndexdv = (PFNGLINDEXDVPROC) load(userptr, "glIndexdv");
  1017. glad_glIndexf = (PFNGLINDEXFPROC) load(userptr, "glIndexf");
  1018. glad_glIndexfv = (PFNGLINDEXFVPROC) load(userptr, "glIndexfv");
  1019. glad_glIndexi = (PFNGLINDEXIPROC) load(userptr, "glIndexi");
  1020. glad_glIndexiv = (PFNGLINDEXIVPROC) load(userptr, "glIndexiv");
  1021. glad_glIndexs = (PFNGLINDEXSPROC) load(userptr, "glIndexs");
  1022. glad_glIndexsv = (PFNGLINDEXSVPROC) load(userptr, "glIndexsv");
  1023. glad_glInitNames = (PFNGLINITNAMESPROC) load(userptr, "glInitNames");
  1024. glad_glIsEnabled = (PFNGLISENABLEDPROC) load(userptr, "glIsEnabled");
  1025. glad_glIsList = (PFNGLISLISTPROC) load(userptr, "glIsList");
  1026. glad_glLightModelf = (PFNGLLIGHTMODELFPROC) load(userptr, "glLightModelf");
  1027. glad_glLightModelfv = (PFNGLLIGHTMODELFVPROC) load(userptr, "glLightModelfv");
  1028. glad_glLightModeli = (PFNGLLIGHTMODELIPROC) load(userptr, "glLightModeli");
  1029. glad_glLightModeliv = (PFNGLLIGHTMODELIVPROC) load(userptr, "glLightModeliv");
  1030. glad_glLightf = (PFNGLLIGHTFPROC) load(userptr, "glLightf");
  1031. glad_glLightfv = (PFNGLLIGHTFVPROC) load(userptr, "glLightfv");
  1032. glad_glLighti = (PFNGLLIGHTIPROC) load(userptr, "glLighti");
  1033. glad_glLightiv = (PFNGLLIGHTIVPROC) load(userptr, "glLightiv");
  1034. glad_glLineStipple = (PFNGLLINESTIPPLEPROC) load(userptr, "glLineStipple");
  1035. glad_glLineWidth = (PFNGLLINEWIDTHPROC) load(userptr, "glLineWidth");
  1036. glad_glListBase = (PFNGLLISTBASEPROC) load(userptr, "glListBase");
  1037. glad_glLoadIdentity = (PFNGLLOADIDENTITYPROC) load(userptr, "glLoadIdentity");
  1038. glad_glLoadMatrixd = (PFNGLLOADMATRIXDPROC) load(userptr, "glLoadMatrixd");
  1039. glad_glLoadMatrixf = (PFNGLLOADMATRIXFPROC) load(userptr, "glLoadMatrixf");
  1040. glad_glLoadName = (PFNGLLOADNAMEPROC) load(userptr, "glLoadName");
  1041. glad_glLogicOp = (PFNGLLOGICOPPROC) load(userptr, "glLogicOp");
  1042. glad_glMap1d = (PFNGLMAP1DPROC) load(userptr, "glMap1d");
  1043. glad_glMap1f = (PFNGLMAP1FPROC) load(userptr, "glMap1f");
  1044. glad_glMap2d = (PFNGLMAP2DPROC) load(userptr, "glMap2d");
  1045. glad_glMap2f = (PFNGLMAP2FPROC) load(userptr, "glMap2f");
  1046. glad_glMapGrid1d = (PFNGLMAPGRID1DPROC) load(userptr, "glMapGrid1d");
  1047. glad_glMapGrid1f = (PFNGLMAPGRID1FPROC) load(userptr, "glMapGrid1f");
  1048. glad_glMapGrid2d = (PFNGLMAPGRID2DPROC) load(userptr, "glMapGrid2d");
  1049. glad_glMapGrid2f = (PFNGLMAPGRID2FPROC) load(userptr, "glMapGrid2f");
  1050. glad_glMaterialf = (PFNGLMATERIALFPROC) load(userptr, "glMaterialf");
  1051. glad_glMaterialfv = (PFNGLMATERIALFVPROC) load(userptr, "glMaterialfv");
  1052. glad_glMateriali = (PFNGLMATERIALIPROC) load(userptr, "glMateriali");
  1053. glad_glMaterialiv = (PFNGLMATERIALIVPROC) load(userptr, "glMaterialiv");
  1054. glad_glMatrixMode = (PFNGLMATRIXMODEPROC) load(userptr, "glMatrixMode");
  1055. glad_glMultMatrixd = (PFNGLMULTMATRIXDPROC) load(userptr, "glMultMatrixd");
  1056. glad_glMultMatrixf = (PFNGLMULTMATRIXFPROC) load(userptr, "glMultMatrixf");
  1057. glad_glNewList = (PFNGLNEWLISTPROC) load(userptr, "glNewList");
  1058. glad_glNormal3b = (PFNGLNORMAL3BPROC) load(userptr, "glNormal3b");
  1059. glad_glNormal3bv = (PFNGLNORMAL3BVPROC) load(userptr, "glNormal3bv");
  1060. glad_glNormal3d = (PFNGLNORMAL3DPROC) load(userptr, "glNormal3d");
  1061. glad_glNormal3dv = (PFNGLNORMAL3DVPROC) load(userptr, "glNormal3dv");
  1062. glad_glNormal3f = (PFNGLNORMAL3FPROC) load(userptr, "glNormal3f");
  1063. glad_glNormal3fv = (PFNGLNORMAL3FVPROC) load(userptr, "glNormal3fv");
  1064. glad_glNormal3i = (PFNGLNORMAL3IPROC) load(userptr, "glNormal3i");
  1065. glad_glNormal3iv = (PFNGLNORMAL3IVPROC) load(userptr, "glNormal3iv");
  1066. glad_glNormal3s = (PFNGLNORMAL3SPROC) load(userptr, "glNormal3s");
  1067. glad_glNormal3sv = (PFNGLNORMAL3SVPROC) load(userptr, "glNormal3sv");
  1068. glad_glOrtho = (PFNGLORTHOPROC) load(userptr, "glOrtho");
  1069. glad_glPassThrough = (PFNGLPASSTHROUGHPROC) load(userptr, "glPassThrough");
  1070. glad_glPixelMapfv = (PFNGLPIXELMAPFVPROC) load(userptr, "glPixelMapfv");
  1071. glad_glPixelMapuiv = (PFNGLPIXELMAPUIVPROC) load(userptr, "glPixelMapuiv");
  1072. glad_glPixelMapusv = (PFNGLPIXELMAPUSVPROC) load(userptr, "glPixelMapusv");
  1073. glad_glPixelStoref = (PFNGLPIXELSTOREFPROC) load(userptr, "glPixelStoref");
  1074. glad_glPixelStorei = (PFNGLPIXELSTOREIPROC) load(userptr, "glPixelStorei");
  1075. glad_glPixelTransferf = (PFNGLPIXELTRANSFERFPROC) load(userptr, "glPixelTransferf");
  1076. glad_glPixelTransferi = (PFNGLPIXELTRANSFERIPROC) load(userptr, "glPixelTransferi");
  1077. glad_glPixelZoom = (PFNGLPIXELZOOMPROC) load(userptr, "glPixelZoom");
  1078. glad_glPointSize = (PFNGLPOINTSIZEPROC) load(userptr, "glPointSize");
  1079. glad_glPolygonMode = (PFNGLPOLYGONMODEPROC) load(userptr, "glPolygonMode");
  1080. glad_glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC) load(userptr, "glPolygonStipple");
  1081. glad_glPopAttrib = (PFNGLPOPATTRIBPROC) load(userptr, "glPopAttrib");
  1082. glad_glPopMatrix = (PFNGLPOPMATRIXPROC) load(userptr, "glPopMatrix");
  1083. glad_glPopName = (PFNGLPOPNAMEPROC) load(userptr, "glPopName");
  1084. glad_glPushAttrib = (PFNGLPUSHATTRIBPROC) load(userptr, "glPushAttrib");
  1085. glad_glPushMatrix = (PFNGLPUSHMATRIXPROC) load(userptr, "glPushMatrix");
  1086. glad_glPushName = (PFNGLPUSHNAMEPROC) load(userptr, "glPushName");
  1087. glad_glRasterPos2d = (PFNGLRASTERPOS2DPROC) load(userptr, "glRasterPos2d");
  1088. glad_glRasterPos2dv = (PFNGLRASTERPOS2DVPROC) load(userptr, "glRasterPos2dv");
  1089. glad_glRasterPos2f = (PFNGLRASTERPOS2FPROC) load(userptr, "glRasterPos2f");
  1090. glad_glRasterPos2fv = (PFNGLRASTERPOS2FVPROC) load(userptr, "glRasterPos2fv");
  1091. glad_glRasterPos2i = (PFNGLRASTERPOS2IPROC) load(userptr, "glRasterPos2i");
  1092. glad_glRasterPos2iv = (PFNGLRASTERPOS2IVPROC) load(userptr, "glRasterPos2iv");
  1093. glad_glRasterPos2s = (PFNGLRASTERPOS2SPROC) load(userptr, "glRasterPos2s");
  1094. glad_glRasterPos2sv = (PFNGLRASTERPOS2SVPROC) load(userptr, "glRasterPos2sv");
  1095. glad_glRasterPos3d = (PFNGLRASTERPOS3DPROC) load(userptr, "glRasterPos3d");
  1096. glad_glRasterPos3dv = (PFNGLRASTERPOS3DVPROC) load(userptr, "glRasterPos3dv");
  1097. glad_glRasterPos3f = (PFNGLRASTERPOS3FPROC) load(userptr, "glRasterPos3f");
  1098. glad_glRasterPos3fv = (PFNGLRASTERPOS3FVPROC) load(userptr, "glRasterPos3fv");
  1099. glad_glRasterPos3i = (PFNGLRASTERPOS3IPROC) load(userptr, "glRasterPos3i");
  1100. glad_glRasterPos3iv = (PFNGLRASTERPOS3IVPROC) load(userptr, "glRasterPos3iv");
  1101. glad_glRasterPos3s = (PFNGLRASTERPOS3SPROC) load(userptr, "glRasterPos3s");
  1102. glad_glRasterPos3sv = (PFNGLRASTERPOS3SVPROC) load(userptr, "glRasterPos3sv");
  1103. glad_glRasterPos4d = (PFNGLRASTERPOS4DPROC) load(userptr, "glRasterPos4d");
  1104. glad_glRasterPos4dv = (PFNGLRASTERPOS4DVPROC) load(userptr, "glRasterPos4dv");
  1105. glad_glRasterPos4f = (PFNGLRASTERPOS4FPROC) load(userptr, "glRasterPos4f");
  1106. glad_glRasterPos4fv = (PFNGLRASTERPOS4FVPROC) load(userptr, "glRasterPos4fv");
  1107. glad_glRasterPos4i = (PFNGLRASTERPOS4IPROC) load(userptr, "glRasterPos4i");
  1108. glad_glRasterPos4iv = (PFNGLRASTERPOS4IVPROC) load(userptr, "glRasterPos4iv");
  1109. glad_glRasterPos4s = (PFNGLRASTERPOS4SPROC) load(userptr, "glRasterPos4s");
  1110. glad_glRasterPos4sv = (PFNGLRASTERPOS4SVPROC) load(userptr, "glRasterPos4sv");
  1111. glad_glReadBuffer = (PFNGLREADBUFFERPROC) load(userptr, "glReadBuffer");
  1112. glad_glReadPixels = (PFNGLREADPIXELSPROC) load(userptr, "glReadPixels");
  1113. glad_glRectd = (PFNGLRECTDPROC) load(userptr, "glRectd");
  1114. glad_glRectdv = (PFNGLRECTDVPROC) load(userptr, "glRectdv");
  1115. glad_glRectf = (PFNGLRECTFPROC) load(userptr, "glRectf");
  1116. glad_glRectfv = (PFNGLRECTFVPROC) load(userptr, "glRectfv");
  1117. glad_glRecti = (PFNGLRECTIPROC) load(userptr, "glRecti");
  1118. glad_glRectiv = (PFNGLRECTIVPROC) load(userptr, "glRectiv");
  1119. glad_glRects = (PFNGLRECTSPROC) load(userptr, "glRects");
  1120. glad_glRectsv = (PFNGLRECTSVPROC) load(userptr, "glRectsv");
  1121. glad_glRenderMode = (PFNGLRENDERMODEPROC) load(userptr, "glRenderMode");
  1122. glad_glRotated = (PFNGLROTATEDPROC) load(userptr, "glRotated");
  1123. glad_glRotatef = (PFNGLROTATEFPROC) load(userptr, "glRotatef");
  1124. glad_glScaled = (PFNGLSCALEDPROC) load(userptr, "glScaled");
  1125. glad_glScalef = (PFNGLSCALEFPROC) load(userptr, "glScalef");
  1126. glad_glScissor = (PFNGLSCISSORPROC) load(userptr, "glScissor");
  1127. glad_glSelectBuffer = (PFNGLSELECTBUFFERPROC) load(userptr, "glSelectBuffer");
  1128. glad_glShadeModel = (PFNGLSHADEMODELPROC) load(userptr, "glShadeModel");
  1129. glad_glStencilFunc = (PFNGLSTENCILFUNCPROC) load(userptr, "glStencilFunc");
  1130. glad_glStencilMask = (PFNGLSTENCILMASKPROC) load(userptr, "glStencilMask");
  1131. glad_glStencilOp = (PFNGLSTENCILOPPROC) load(userptr, "glStencilOp");
  1132. glad_glTexCoord1d = (PFNGLTEXCOORD1DPROC) load(userptr, "glTexCoord1d");
  1133. glad_glTexCoord1dv = (PFNGLTEXCOORD1DVPROC) load(userptr, "glTexCoord1dv");
  1134. glad_glTexCoord1f = (PFNGLTEXCOORD1FPROC) load(userptr, "glTexCoord1f");
  1135. glad_glTexCoord1fv = (PFNGLTEXCOORD1FVPROC) load(userptr, "glTexCoord1fv");
  1136. glad_glTexCoord1i = (PFNGLTEXCOORD1IPROC) load(userptr, "glTexCoord1i");
  1137. glad_glTexCoord1iv = (PFNGLTEXCOORD1IVPROC) load(userptr, "glTexCoord1iv");
  1138. glad_glTexCoord1s = (PFNGLTEXCOORD1SPROC) load(userptr, "glTexCoord1s");
  1139. glad_glTexCoord1sv = (PFNGLTEXCOORD1SVPROC) load(userptr, "glTexCoord1sv");
  1140. glad_glTexCoord2d = (PFNGLTEXCOORD2DPROC) load(userptr, "glTexCoord2d");
  1141. glad_glTexCoord2dv = (PFNGLTEXCOORD2DVPROC) load(userptr, "glTexCoord2dv");
  1142. glad_glTexCoord2f = (PFNGLTEXCOORD2FPROC) load(userptr, "glTexCoord2f");
  1143. glad_glTexCoord2fv = (PFNGLTEXCOORD2FVPROC) load(userptr, "glTexCoord2fv");
  1144. glad_glTexCoord2i = (PFNGLTEXCOORD2IPROC) load(userptr, "glTexCoord2i");
  1145. glad_glTexCoord2iv = (PFNGLTEXCOORD2IVPROC) load(userptr, "glTexCoord2iv");
  1146. glad_glTexCoord2s = (PFNGLTEXCOORD2SPROC) load(userptr, "glTexCoord2s");
  1147. glad_glTexCoord2sv = (PFNGLTEXCOORD2SVPROC) load(userptr, "glTexCoord2sv");
  1148. glad_glTexCoord3d = (PFNGLTEXCOORD3DPROC) load(userptr, "glTexCoord3d");
  1149. glad_glTexCoord3dv = (PFNGLTEXCOORD3DVPROC) load(userptr, "glTexCoord3dv");
  1150. glad_glTexCoord3f = (PFNGLTEXCOORD3FPROC) load(userptr, "glTexCoord3f");
  1151. glad_glTexCoord3fv = (PFNGLTEXCOORD3FVPROC) load(userptr, "glTexCoord3fv");
  1152. glad_glTexCoord3i = (PFNGLTEXCOORD3IPROC) load(userptr, "glTexCoord3i");
  1153. glad_glTexCoord3iv = (PFNGLTEXCOORD3IVPROC) load(userptr, "glTexCoord3iv");
  1154. glad_glTexCoord3s = (PFNGLTEXCOORD3SPROC) load(userptr, "glTexCoord3s");
  1155. glad_glTexCoord3sv = (PFNGLTEXCOORD3SVPROC) load(userptr, "glTexCoord3sv");
  1156. glad_glTexCoord4d = (PFNGLTEXCOORD4DPROC) load(userptr, "glTexCoord4d");
  1157. glad_glTexCoord4dv = (PFNGLTEXCOORD4DVPROC) load(userptr, "glTexCoord4dv");
  1158. glad_glTexCoord4f = (PFNGLTEXCOORD4FPROC) load(userptr, "glTexCoord4f");
  1159. glad_glTexCoord4fv = (PFNGLTEXCOORD4FVPROC) load(userptr, "glTexCoord4fv");
  1160. glad_glTexCoord4i = (PFNGLTEXCOORD4IPROC) load(userptr, "glTexCoord4i");
  1161. glad_glTexCoord4iv = (PFNGLTEXCOORD4IVPROC) load(userptr, "glTexCoord4iv");
  1162. glad_glTexCoord4s = (PFNGLTEXCOORD4SPROC) load(userptr, "glTexCoord4s");
  1163. glad_glTexCoord4sv = (PFNGLTEXCOORD4SVPROC) load(userptr, "glTexCoord4sv");
  1164. glad_glTexEnvf = (PFNGLTEXENVFPROC) load(userptr, "glTexEnvf");
  1165. glad_glTexEnvfv = (PFNGLTEXENVFVPROC) load(userptr, "glTexEnvfv");
  1166. glad_glTexEnvi = (PFNGLTEXENVIPROC) load(userptr, "glTexEnvi");
  1167. glad_glTexEnviv = (PFNGLTEXENVIVPROC) load(userptr, "glTexEnviv");
  1168. glad_glTexGend = (PFNGLTEXGENDPROC) load(userptr, "glTexGend");
  1169. glad_glTexGendv = (PFNGLTEXGENDVPROC) load(userptr, "glTexGendv");
  1170. glad_glTexGenf = (PFNGLTEXGENFPROC) load(userptr, "glTexGenf");
  1171. glad_glTexGenfv = (PFNGLTEXGENFVPROC) load(userptr, "glTexGenfv");
  1172. glad_glTexGeni = (PFNGLTEXGENIPROC) load(userptr, "glTexGeni");
  1173. glad_glTexGeniv = (PFNGLTEXGENIVPROC) load(userptr, "glTexGeniv");
  1174. glad_glTexImage1D = (PFNGLTEXIMAGE1DPROC) load(userptr, "glTexImage1D");
  1175. glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC) load(userptr, "glTexImage2D");
  1176. glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC) load(userptr, "glTexParameterf");
  1177. glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC) load(userptr, "glTexParameterfv");
  1178. glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC) load(userptr, "glTexParameteri");
  1179. glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC) load(userptr, "glTexParameteriv");
  1180. glad_glTranslated = (PFNGLTRANSLATEDPROC) load(userptr, "glTranslated");
  1181. glad_glTranslatef = (PFNGLTRANSLATEFPROC) load(userptr, "glTranslatef");
  1182. glad_glVertex2d = (PFNGLVERTEX2DPROC) load(userptr, "glVertex2d");
  1183. glad_glVertex2dv = (PFNGLVERTEX2DVPROC) load(userptr, "glVertex2dv");
  1184. glad_glVertex2f = (PFNGLVERTEX2FPROC) load(userptr, "glVertex2f");
  1185. glad_glVertex2fv = (PFNGLVERTEX2FVPROC) load(userptr, "glVertex2fv");
  1186. glad_glVertex2i = (PFNGLVERTEX2IPROC) load(userptr, "glVertex2i");
  1187. glad_glVertex2iv = (PFNGLVERTEX2IVPROC) load(userptr, "glVertex2iv");
  1188. glad_glVertex2s = (PFNGLVERTEX2SPROC) load(userptr, "glVertex2s");
  1189. glad_glVertex2sv = (PFNGLVERTEX2SVPROC) load(userptr, "glVertex2sv");
  1190. glad_glVertex3d = (PFNGLVERTEX3DPROC) load(userptr, "glVertex3d");
  1191. glad_glVertex3dv = (PFNGLVERTEX3DVPROC) load(userptr, "glVertex3dv");
  1192. glad_glVertex3f = (PFNGLVERTEX3FPROC) load(userptr, "glVertex3f");
  1193. glad_glVertex3fv = (PFNGLVERTEX3FVPROC) load(userptr, "glVertex3fv");
  1194. glad_glVertex3i = (PFNGLVERTEX3IPROC) load(userptr, "glVertex3i");
  1195. glad_glVertex3iv = (PFNGLVERTEX3IVPROC) load(userptr, "glVertex3iv");
  1196. glad_glVertex3s = (PFNGLVERTEX3SPROC) load(userptr, "glVertex3s");
  1197. glad_glVertex3sv = (PFNGLVERTEX3SVPROC) load(userptr, "glVertex3sv");
  1198. glad_glVertex4d = (PFNGLVERTEX4DPROC) load(userptr, "glVertex4d");
  1199. glad_glVertex4dv = (PFNGLVERTEX4DVPROC) load(userptr, "glVertex4dv");
  1200. glad_glVertex4f = (PFNGLVERTEX4FPROC) load(userptr, "glVertex4f");
  1201. glad_glVertex4fv = (PFNGLVERTEX4FVPROC) load(userptr, "glVertex4fv");
  1202. glad_glVertex4i = (PFNGLVERTEX4IPROC) load(userptr, "glVertex4i");
  1203. glad_glVertex4iv = (PFNGLVERTEX4IVPROC) load(userptr, "glVertex4iv");
  1204. glad_glVertex4s = (PFNGLVERTEX4SPROC) load(userptr, "glVertex4s");
  1205. glad_glVertex4sv = (PFNGLVERTEX4SVPROC) load(userptr, "glVertex4sv");
  1206. glad_glViewport = (PFNGLVIEWPORTPROC) load(userptr, "glViewport");
  1207. }
  1208. static void glad_gl_load_GL_VERSION_1_1( GLADuserptrloadfunc load, void* userptr) {
  1209. if(!GLAD_GL_VERSION_1_1) return;
  1210. glad_glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC) load(userptr, "glAreTexturesResident");
  1211. glad_glArrayElement = (PFNGLARRAYELEMENTPROC) load(userptr, "glArrayElement");
  1212. glad_glBindTexture = (PFNGLBINDTEXTUREPROC) load(userptr, "glBindTexture");
  1213. glad_glColorPointer = (PFNGLCOLORPOINTERPROC) load(userptr, "glColorPointer");
  1214. glad_glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC) load(userptr, "glCopyTexImage1D");
  1215. glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC) load(userptr, "glCopyTexImage2D");
  1216. glad_glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC) load(userptr, "glCopyTexSubImage1D");
  1217. glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC) load(userptr, "glCopyTexSubImage2D");
  1218. glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC) load(userptr, "glDeleteTextures");
  1219. glad_glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC) load(userptr, "glDisableClientState");
  1220. glad_glDrawArrays = (PFNGLDRAWARRAYSPROC) load(userptr, "glDrawArrays");
  1221. glad_glDrawElements = (PFNGLDRAWELEMENTSPROC) load(userptr, "glDrawElements");
  1222. glad_glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC) load(userptr, "glEdgeFlagPointer");
  1223. glad_glEnableClientState = (PFNGLENABLECLIENTSTATEPROC) load(userptr, "glEnableClientState");
  1224. glad_glGenTextures = (PFNGLGENTEXTURESPROC) load(userptr, "glGenTextures");
  1225. glad_glGetPointerv = (PFNGLGETPOINTERVPROC) load(userptr, "glGetPointerv");
  1226. glad_glIndexPointer = (PFNGLINDEXPOINTERPROC) load(userptr, "glIndexPointer");
  1227. glad_glIndexub = (PFNGLINDEXUBPROC) load(userptr, "glIndexub");
  1228. glad_glIndexubv = (PFNGLINDEXUBVPROC) load(userptr, "glIndexubv");
  1229. glad_glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC) load(userptr, "glInterleavedArrays");
  1230. glad_glIsTexture = (PFNGLISTEXTUREPROC) load(userptr, "glIsTexture");
  1231. glad_glNormalPointer = (PFNGLNORMALPOINTERPROC) load(userptr, "glNormalPointer");
  1232. glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC) load(userptr, "glPolygonOffset");
  1233. glad_glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC) load(userptr, "glPopClientAttrib");
  1234. glad_glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC) load(userptr, "glPrioritizeTextures");
  1235. glad_glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC) load(userptr, "glPushClientAttrib");
  1236. glad_glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC) load(userptr, "glTexCoordPointer");
  1237. glad_glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC) load(userptr, "glTexSubImage1D");
  1238. glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC) load(userptr, "glTexSubImage2D");
  1239. glad_glVertexPointer = (PFNGLVERTEXPOINTERPROC) load(userptr, "glVertexPointer");
  1240. }
  1241. static void glad_gl_load_GL_VERSION_1_2( GLADuserptrloadfunc load, void* userptr) {
  1242. if(!GLAD_GL_VERSION_1_2) return;
  1243. glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC) load(userptr, "glCopyTexSubImage3D");
  1244. glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) load(userptr, "glDrawRangeElements");
  1245. glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC) load(userptr, "glTexImage3D");
  1246. glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC) load(userptr, "glTexSubImage3D");
  1247. }
  1248. static void glad_gl_load_GL_VERSION_1_3( GLADuserptrloadfunc load, void* userptr) {
  1249. if(!GLAD_GL_VERSION_1_3) return;
  1250. glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC) load(userptr, "glActiveTexture");
  1251. glad_glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC) load(userptr, "glClientActiveTexture");
  1252. glad_glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC) load(userptr, "glCompressedTexImage1D");
  1253. glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC) load(userptr, "glCompressedTexImage2D");
  1254. glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC) load(userptr, "glCompressedTexImage3D");
  1255. glad_glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) load(userptr, "glCompressedTexSubImage1D");
  1256. glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) load(userptr, "glCompressedTexSubImage2D");
  1257. glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) load(userptr, "glCompressedTexSubImage3D");
  1258. glad_glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC) load(userptr, "glGetCompressedTexImage");
  1259. glad_glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC) load(userptr, "glLoadTransposeMatrixd");
  1260. glad_glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC) load(userptr, "glLoadTransposeMatrixf");
  1261. glad_glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC) load(userptr, "glMultTransposeMatrixd");
  1262. glad_glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC) load(userptr, "glMultTransposeMatrixf");
  1263. glad_glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC) load(userptr, "glMultiTexCoord1d");
  1264. glad_glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC) load(userptr, "glMultiTexCoord1dv");
  1265. glad_glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC) load(userptr, "glMultiTexCoord1f");
  1266. glad_glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC) load(userptr, "glMultiTexCoord1fv");
  1267. glad_glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC) load(userptr, "glMultiTexCoord1i");
  1268. glad_glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC) load(userptr, "glMultiTexCoord1iv");
  1269. glad_glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC) load(userptr, "glMultiTexCoord1s");
  1270. glad_glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC) load(userptr, "glMultiTexCoord1sv");
  1271. glad_glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC) load(userptr, "glMultiTexCoord2d");
  1272. glad_glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC) load(userptr, "glMultiTexCoord2dv");
  1273. glad_glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC) load(userptr, "glMultiTexCoord2f");
  1274. glad_glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC) load(userptr, "glMultiTexCoord2fv");
  1275. glad_glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC) load(userptr, "glMultiTexCoord2i");
  1276. glad_glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC) load(userptr, "glMultiTexCoord2iv");
  1277. glad_glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC) load(userptr, "glMultiTexCoord2s");
  1278. glad_glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC) load(userptr, "glMultiTexCoord2sv");
  1279. glad_glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC) load(userptr, "glMultiTexCoord3d");
  1280. glad_glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC) load(userptr, "glMultiTexCoord3dv");
  1281. glad_glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC) load(userptr, "glMultiTexCoord3f");
  1282. glad_glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC) load(userptr, "glMultiTexCoord3fv");
  1283. glad_glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC) load(userptr, "glMultiTexCoord3i");
  1284. glad_glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC) load(userptr, "glMultiTexCoord3iv");
  1285. glad_glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC) load(userptr, "glMultiTexCoord3s");
  1286. glad_glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC) load(userptr, "glMultiTexCoord3sv");
  1287. glad_glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC) load(userptr, "glMultiTexCoord4d");
  1288. glad_glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC) load(userptr, "glMultiTexCoord4dv");
  1289. glad_glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC) load(userptr, "glMultiTexCoord4f");
  1290. glad_glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC) load(userptr, "glMultiTexCoord4fv");
  1291. glad_glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC) load(userptr, "glMultiTexCoord4i");
  1292. glad_glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC) load(userptr, "glMultiTexCoord4iv");
  1293. glad_glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC) load(userptr, "glMultiTexCoord4s");
  1294. glad_glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC) load(userptr, "glMultiTexCoord4sv");
  1295. glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) load(userptr, "glSampleCoverage");
  1296. }
  1297. static void glad_gl_load_GL_VERSION_1_4( GLADuserptrloadfunc load, void* userptr) {
  1298. if(!GLAD_GL_VERSION_1_4) return;
  1299. glad_glBlendColor = (PFNGLBLENDCOLORPROC) load(userptr, "glBlendColor");
  1300. glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC) load(userptr, "glBlendEquation");
  1301. glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC) load(userptr, "glBlendFuncSeparate");
  1302. glad_glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC) load(userptr, "glFogCoordPointer");
  1303. glad_glFogCoordd = (PFNGLFOGCOORDDPROC) load(userptr, "glFogCoordd");
  1304. glad_glFogCoorddv = (PFNGLFOGCOORDDVPROC) load(userptr, "glFogCoorddv");
  1305. glad_glFogCoordf = (PFNGLFOGCOORDFPROC) load(userptr, "glFogCoordf");
  1306. glad_glFogCoordfv = (PFNGLFOGCOORDFVPROC) load(userptr, "glFogCoordfv");
  1307. glad_glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC) load(userptr, "glMultiDrawArrays");
  1308. glad_glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC) load(userptr, "glMultiDrawElements");
  1309. glad_glPointParameterf = (PFNGLPOINTPARAMETERFPROC) load(userptr, "glPointParameterf");
  1310. glad_glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC) load(userptr, "glPointParameterfv");
  1311. glad_glPointParameteri = (PFNGLPOINTPARAMETERIPROC) load(userptr, "glPointParameteri");
  1312. glad_glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC) load(userptr, "glPointParameteriv");
  1313. glad_glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC) load(userptr, "glSecondaryColor3b");
  1314. glad_glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC) load(userptr, "glSecondaryColor3bv");
  1315. glad_glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC) load(userptr, "glSecondaryColor3d");
  1316. glad_glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC) load(userptr, "glSecondaryColor3dv");
  1317. glad_glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC) load(userptr, "glSecondaryColor3f");
  1318. glad_glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC) load(userptr, "glSecondaryColor3fv");
  1319. glad_glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC) load(userptr, "glSecondaryColor3i");
  1320. glad_glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC) load(userptr, "glSecondaryColor3iv");
  1321. glad_glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC) load(userptr, "glSecondaryColor3s");
  1322. glad_glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC) load(userptr, "glSecondaryColor3sv");
  1323. glad_glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC) load(userptr, "glSecondaryColor3ub");
  1324. glad_glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC) load(userptr, "glSecondaryColor3ubv");
  1325. glad_glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC) load(userptr, "glSecondaryColor3ui");
  1326. glad_glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC) load(userptr, "glSecondaryColor3uiv");
  1327. glad_glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC) load(userptr, "glSecondaryColor3us");
  1328. glad_glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC) load(userptr, "glSecondaryColor3usv");
  1329. glad_glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC) load(userptr, "glSecondaryColorPointer");
  1330. glad_glWindowPos2d = (PFNGLWINDOWPOS2DPROC) load(userptr, "glWindowPos2d");
  1331. glad_glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC) load(userptr, "glWindowPos2dv");
  1332. glad_glWindowPos2f = (PFNGLWINDOWPOS2FPROC) load(userptr, "glWindowPos2f");
  1333. glad_glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC) load(userptr, "glWindowPos2fv");
  1334. glad_glWindowPos2i = (PFNGLWINDOWPOS2IPROC) load(userptr, "glWindowPos2i");
  1335. glad_glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC) load(userptr, "glWindowPos2iv");
  1336. glad_glWindowPos2s = (PFNGLWINDOWPOS2SPROC) load(userptr, "glWindowPos2s");
  1337. glad_glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC) load(userptr, "glWindowPos2sv");
  1338. glad_glWindowPos3d = (PFNGLWINDOWPOS3DPROC) load(userptr, "glWindowPos3d");
  1339. glad_glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC) load(userptr, "glWindowPos3dv");
  1340. glad_glWindowPos3f = (PFNGLWINDOWPOS3FPROC) load(userptr, "glWindowPos3f");
  1341. glad_glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC) load(userptr, "glWindowPos3fv");
  1342. glad_glWindowPos3i = (PFNGLWINDOWPOS3IPROC) load(userptr, "glWindowPos3i");
  1343. glad_glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC) load(userptr, "glWindowPos3iv");
  1344. glad_glWindowPos3s = (PFNGLWINDOWPOS3SPROC) load(userptr, "glWindowPos3s");
  1345. glad_glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC) load(userptr, "glWindowPos3sv");
  1346. }
  1347. static void glad_gl_load_GL_VERSION_1_5( GLADuserptrloadfunc load, void* userptr) {
  1348. if(!GLAD_GL_VERSION_1_5) return;
  1349. glad_glBeginQuery = (PFNGLBEGINQUERYPROC) load(userptr, "glBeginQuery");
  1350. glad_glBindBuffer = (PFNGLBINDBUFFERPROC) load(userptr, "glBindBuffer");
  1351. glad_glBufferData = (PFNGLBUFFERDATAPROC) load(userptr, "glBufferData");
  1352. glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC) load(userptr, "glBufferSubData");
  1353. glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC) load(userptr, "glDeleteBuffers");
  1354. glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC) load(userptr, "glDeleteQueries");
  1355. glad_glEndQuery = (PFNGLENDQUERYPROC) load(userptr, "glEndQuery");
  1356. glad_glGenBuffers = (PFNGLGENBUFFERSPROC) load(userptr, "glGenBuffers");
  1357. glad_glGenQueries = (PFNGLGENQUERIESPROC) load(userptr, "glGenQueries");
  1358. glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC) load(userptr, "glGetBufferParameteriv");
  1359. glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC) load(userptr, "glGetBufferPointerv");
  1360. glad_glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC) load(userptr, "glGetBufferSubData");
  1361. glad_glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC) load(userptr, "glGetQueryObjectiv");
  1362. glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC) load(userptr, "glGetQueryObjectuiv");
  1363. glad_glGetQueryiv = (PFNGLGETQUERYIVPROC) load(userptr, "glGetQueryiv");
  1364. glad_glIsBuffer = (PFNGLISBUFFERPROC) load(userptr, "glIsBuffer");
  1365. glad_glIsQuery = (PFNGLISQUERYPROC) load(userptr, "glIsQuery");
  1366. glad_glMapBuffer = (PFNGLMAPBUFFERPROC) load(userptr, "glMapBuffer");
  1367. glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC) load(userptr, "glUnmapBuffer");
  1368. }
  1369. static void glad_gl_load_GL_VERSION_2_0( GLADuserptrloadfunc load, void* userptr) {
  1370. if(!GLAD_GL_VERSION_2_0) return;
  1371. glad_glAttachShader = (PFNGLATTACHSHADERPROC) load(userptr, "glAttachShader");
  1372. glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC) load(userptr, "glBindAttribLocation");
  1373. glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC) load(userptr, "glBlendEquationSeparate");
  1374. glad_glCompileShader = (PFNGLCOMPILESHADERPROC) load(userptr, "glCompileShader");
  1375. glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC) load(userptr, "glCreateProgram");
  1376. glad_glCreateShader = (PFNGLCREATESHADERPROC) load(userptr, "glCreateShader");
  1377. glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC) load(userptr, "glDeleteProgram");
  1378. glad_glDeleteShader = (PFNGLDELETESHADERPROC) load(userptr, "glDeleteShader");
  1379. glad_glDetachShader = (PFNGLDETACHSHADERPROC) load(userptr, "glDetachShader");
  1380. glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC) load(userptr, "glDisableVertexAttribArray");
  1381. glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC) load(userptr, "glDrawBuffers");
  1382. glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC) load(userptr, "glEnableVertexAttribArray");
  1383. glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC) load(userptr, "glGetActiveAttrib");
  1384. glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC) load(userptr, "glGetActiveUniform");
  1385. glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC) load(userptr, "glGetAttachedShaders");
  1386. glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC) load(userptr, "glGetAttribLocation");
  1387. glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC) load(userptr, "glGetProgramInfoLog");
  1388. glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC) load(userptr, "glGetProgramiv");
  1389. glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC) load(userptr, "glGetShaderInfoLog");
  1390. glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC) load(userptr, "glGetShaderSource");
  1391. glad_glGetShaderiv = (PFNGLGETSHADERIVPROC) load(userptr, "glGetShaderiv");
  1392. glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC) load(userptr, "glGetUniformLocation");
  1393. glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC) load(userptr, "glGetUniformfv");
  1394. glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC) load(userptr, "glGetUniformiv");
  1395. glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC) load(userptr, "glGetVertexAttribPointerv");
  1396. glad_glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC) load(userptr, "glGetVertexAttribdv");
  1397. glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC) load(userptr, "glGetVertexAttribfv");
  1398. glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC) load(userptr, "glGetVertexAttribiv");
  1399. glad_glIsProgram = (PFNGLISPROGRAMPROC) load(userptr, "glIsProgram");
  1400. glad_glIsShader = (PFNGLISSHADERPROC) load(userptr, "glIsShader");
  1401. glad_glLinkProgram = (PFNGLLINKPROGRAMPROC) load(userptr, "glLinkProgram");
  1402. glad_glShaderSource = (PFNGLSHADERSOURCEPROC) load(userptr, "glShaderSource");
  1403. glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC) load(userptr, "glStencilFuncSeparate");
  1404. glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC) load(userptr, "glStencilMaskSeparate");
  1405. glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC) load(userptr, "glStencilOpSeparate");
  1406. glad_glUniform1f = (PFNGLUNIFORM1FPROC) load(userptr, "glUniform1f");
  1407. glad_glUniform1fv = (PFNGLUNIFORM1FVPROC) load(userptr, "glUniform1fv");
  1408. glad_glUniform1i = (PFNGLUNIFORM1IPROC) load(userptr, "glUniform1i");
  1409. glad_glUniform1iv = (PFNGLUNIFORM1IVPROC) load(userptr, "glUniform1iv");
  1410. glad_glUniform2f = (PFNGLUNIFORM2FPROC) load(userptr, "glUniform2f");
  1411. glad_glUniform2fv = (PFNGLUNIFORM2FVPROC) load(userptr, "glUniform2fv");
  1412. glad_glUniform2i = (PFNGLUNIFORM2IPROC) load(userptr, "glUniform2i");
  1413. glad_glUniform2iv = (PFNGLUNIFORM2IVPROC) load(userptr, "glUniform2iv");
  1414. glad_glUniform3f = (PFNGLUNIFORM3FPROC) load(userptr, "glUniform3f");
  1415. glad_glUniform3fv = (PFNGLUNIFORM3FVPROC) load(userptr, "glUniform3fv");
  1416. glad_glUniform3i = (PFNGLUNIFORM3IPROC) load(userptr, "glUniform3i");
  1417. glad_glUniform3iv = (PFNGLUNIFORM3IVPROC) load(userptr, "glUniform3iv");
  1418. glad_glUniform4f = (PFNGLUNIFORM4FPROC) load(userptr, "glUniform4f");
  1419. glad_glUniform4fv = (PFNGLUNIFORM4FVPROC) load(userptr, "glUniform4fv");
  1420. glad_glUniform4i = (PFNGLUNIFORM4IPROC) load(userptr, "glUniform4i");
  1421. glad_glUniform4iv = (PFNGLUNIFORM4IVPROC) load(userptr, "glUniform4iv");
  1422. glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC) load(userptr, "glUniformMatrix2fv");
  1423. glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC) load(userptr, "glUniformMatrix3fv");
  1424. glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC) load(userptr, "glUniformMatrix4fv");
  1425. glad_glUseProgram = (PFNGLUSEPROGRAMPROC) load(userptr, "glUseProgram");
  1426. glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC) load(userptr, "glValidateProgram");
  1427. glad_glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC) load(userptr, "glVertexAttrib1d");
  1428. glad_glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC) load(userptr, "glVertexAttrib1dv");
  1429. glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC) load(userptr, "glVertexAttrib1f");
  1430. glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC) load(userptr, "glVertexAttrib1fv");
  1431. glad_glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC) load(userptr, "glVertexAttrib1s");
  1432. glad_glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC) load(userptr, "glVertexAttrib1sv");
  1433. glad_glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC) load(userptr, "glVertexAttrib2d");
  1434. glad_glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC) load(userptr, "glVertexAttrib2dv");
  1435. glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC) load(userptr, "glVertexAttrib2f");
  1436. glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC) load(userptr, "glVertexAttrib2fv");
  1437. glad_glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC) load(userptr, "glVertexAttrib2s");
  1438. glad_glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC) load(userptr, "glVertexAttrib2sv");
  1439. glad_glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC) load(userptr, "glVertexAttrib3d");
  1440. glad_glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC) load(userptr, "glVertexAttrib3dv");
  1441. glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC) load(userptr, "glVertexAttrib3f");
  1442. glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC) load(userptr, "glVertexAttrib3fv");
  1443. glad_glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC) load(userptr, "glVertexAttrib3s");
  1444. glad_glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC) load(userptr, "glVertexAttrib3sv");
  1445. glad_glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC) load(userptr, "glVertexAttrib4Nbv");
  1446. glad_glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC) load(userptr, "glVertexAttrib4Niv");
  1447. glad_glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC) load(userptr, "glVertexAttrib4Nsv");
  1448. glad_glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC) load(userptr, "glVertexAttrib4Nub");
  1449. glad_glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC) load(userptr, "glVertexAttrib4Nubv");
  1450. glad_glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC) load(userptr, "glVertexAttrib4Nuiv");
  1451. glad_glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC) load(userptr, "glVertexAttrib4Nusv");
  1452. glad_glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC) load(userptr, "glVertexAttrib4bv");
  1453. glad_glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC) load(userptr, "glVertexAttrib4d");
  1454. glad_glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC) load(userptr, "glVertexAttrib4dv");
  1455. glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC) load(userptr, "glVertexAttrib4f");
  1456. glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC) load(userptr, "glVertexAttrib4fv");
  1457. glad_glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC) load(userptr, "glVertexAttrib4iv");
  1458. glad_glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC) load(userptr, "glVertexAttrib4s");
  1459. glad_glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC) load(userptr, "glVertexAttrib4sv");
  1460. glad_glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC) load(userptr, "glVertexAttrib4ubv");
  1461. glad_glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC) load(userptr, "glVertexAttrib4uiv");
  1462. glad_glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC) load(userptr, "glVertexAttrib4usv");
  1463. glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC) load(userptr, "glVertexAttribPointer");
  1464. }
  1465. static void glad_gl_load_GL_VERSION_2_1( GLADuserptrloadfunc load, void* userptr) {
  1466. if(!GLAD_GL_VERSION_2_1) return;
  1467. glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC) load(userptr, "glUniformMatrix2x3fv");
  1468. glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC) load(userptr, "glUniformMatrix2x4fv");
  1469. glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC) load(userptr, "glUniformMatrix3x2fv");
  1470. glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC) load(userptr, "glUniformMatrix3x4fv");
  1471. glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC) load(userptr, "glUniformMatrix4x2fv");
  1472. glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC) load(userptr, "glUniformMatrix4x3fv");
  1473. }
  1474. static void glad_gl_load_GL_VERSION_3_0( GLADuserptrloadfunc load, void* userptr) {
  1475. if(!GLAD_GL_VERSION_3_0) return;
  1476. glad_glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC) load(userptr, "glBeginConditionalRender");
  1477. glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC) load(userptr, "glBeginTransformFeedback");
  1478. glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load(userptr, "glBindBufferBase");
  1479. glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load(userptr, "glBindBufferRange");
  1480. glad_glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC) load(userptr, "glBindFragDataLocation");
  1481. glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) load(userptr, "glBindFramebuffer");
  1482. glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC) load(userptr, "glBindRenderbuffer");
  1483. glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC) load(userptr, "glBindVertexArray");
  1484. glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC) load(userptr, "glBlitFramebuffer");
  1485. glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC) load(userptr, "glCheckFramebufferStatus");
  1486. glad_glClampColor = (PFNGLCLAMPCOLORPROC) load(userptr, "glClampColor");
  1487. glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC) load(userptr, "glClearBufferfi");
  1488. glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC) load(userptr, "glClearBufferfv");
  1489. glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC) load(userptr, "glClearBufferiv");
  1490. glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC) load(userptr, "glClearBufferuiv");
  1491. glad_glColorMaski = (PFNGLCOLORMASKIPROC) load(userptr, "glColorMaski");
  1492. glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) load(userptr, "glDeleteFramebuffers");
  1493. glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC) load(userptr, "glDeleteRenderbuffers");
  1494. glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC) load(userptr, "glDeleteVertexArrays");
  1495. glad_glDisablei = (PFNGLDISABLEIPROC) load(userptr, "glDisablei");
  1496. glad_glEnablei = (PFNGLENABLEIPROC) load(userptr, "glEnablei");
  1497. glad_glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC) load(userptr, "glEndConditionalRender");
  1498. glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC) load(userptr, "glEndTransformFeedback");
  1499. glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC) load(userptr, "glFlushMappedBufferRange");
  1500. glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC) load(userptr, "glFramebufferRenderbuffer");
  1501. glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC) load(userptr, "glFramebufferTexture1D");
  1502. glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC) load(userptr, "glFramebufferTexture2D");
  1503. glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC) load(userptr, "glFramebufferTexture3D");
  1504. glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC) load(userptr, "glFramebufferTextureLayer");
  1505. glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) load(userptr, "glGenFramebuffers");
  1506. glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC) load(userptr, "glGenRenderbuffers");
  1507. glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC) load(userptr, "glGenVertexArrays");
  1508. glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC) load(userptr, "glGenerateMipmap");
  1509. glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC) load(userptr, "glGetBooleani_v");
  1510. glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC) load(userptr, "glGetFragDataLocation");
  1511. glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) load(userptr, "glGetFramebufferAttachmentParameteriv");
  1512. glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load(userptr, "glGetIntegeri_v");
  1513. glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC) load(userptr, "glGetRenderbufferParameteriv");
  1514. glad_glGetStringi = (PFNGLGETSTRINGIPROC) load(userptr, "glGetStringi");
  1515. glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC) load(userptr, "glGetTexParameterIiv");
  1516. glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC) load(userptr, "glGetTexParameterIuiv");
  1517. glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) load(userptr, "glGetTransformFeedbackVarying");
  1518. glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC) load(userptr, "glGetUniformuiv");
  1519. glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC) load(userptr, "glGetVertexAttribIiv");
  1520. glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC) load(userptr, "glGetVertexAttribIuiv");
  1521. glad_glIsEnabledi = (PFNGLISENABLEDIPROC) load(userptr, "glIsEnabledi");
  1522. glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC) load(userptr, "glIsFramebuffer");
  1523. glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC) load(userptr, "glIsRenderbuffer");
  1524. glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC) load(userptr, "glIsVertexArray");
  1525. glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC) load(userptr, "glMapBufferRange");
  1526. glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC) load(userptr, "glRenderbufferStorage");
  1527. glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) load(userptr, "glRenderbufferStorageMultisample");
  1528. glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC) load(userptr, "glTexParameterIiv");
  1529. glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC) load(userptr, "glTexParameterIuiv");
  1530. glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC) load(userptr, "glTransformFeedbackVaryings");
  1531. glad_glUniform1ui = (PFNGLUNIFORM1UIPROC) load(userptr, "glUniform1ui");
  1532. glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC) load(userptr, "glUniform1uiv");
  1533. glad_glUniform2ui = (PFNGLUNIFORM2UIPROC) load(userptr, "glUniform2ui");
  1534. glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC) load(userptr, "glUniform2uiv");
  1535. glad_glUniform3ui = (PFNGLUNIFORM3UIPROC) load(userptr, "glUniform3ui");
  1536. glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC) load(userptr, "glUniform3uiv");
  1537. glad_glUniform4ui = (PFNGLUNIFORM4UIPROC) load(userptr, "glUniform4ui");
  1538. glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC) load(userptr, "glUniform4uiv");
  1539. glad_glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC) load(userptr, "glVertexAttribI1i");
  1540. glad_glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC) load(userptr, "glVertexAttribI1iv");
  1541. glad_glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC) load(userptr, "glVertexAttribI1ui");
  1542. glad_glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC) load(userptr, "glVertexAttribI1uiv");
  1543. glad_glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC) load(userptr, "glVertexAttribI2i");
  1544. glad_glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC) load(userptr, "glVertexAttribI2iv");
  1545. glad_glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC) load(userptr, "glVertexAttribI2ui");
  1546. glad_glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC) load(userptr, "glVertexAttribI2uiv");
  1547. glad_glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC) load(userptr, "glVertexAttribI3i");
  1548. glad_glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC) load(userptr, "glVertexAttribI3iv");
  1549. glad_glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC) load(userptr, "glVertexAttribI3ui");
  1550. glad_glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC) load(userptr, "glVertexAttribI3uiv");
  1551. glad_glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC) load(userptr, "glVertexAttribI4bv");
  1552. glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC) load(userptr, "glVertexAttribI4i");
  1553. glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC) load(userptr, "glVertexAttribI4iv");
  1554. glad_glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC) load(userptr, "glVertexAttribI4sv");
  1555. glad_glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC) load(userptr, "glVertexAttribI4ubv");
  1556. glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC) load(userptr, "glVertexAttribI4ui");
  1557. glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC) load(userptr, "glVertexAttribI4uiv");
  1558. glad_glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC) load(userptr, "glVertexAttribI4usv");
  1559. glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC) load(userptr, "glVertexAttribIPointer");
  1560. }
  1561. static void glad_gl_load_GL_VERSION_3_1( GLADuserptrloadfunc load, void* userptr) {
  1562. if(!GLAD_GL_VERSION_3_1) return;
  1563. glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load(userptr, "glBindBufferBase");
  1564. glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load(userptr, "glBindBufferRange");
  1565. glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC) load(userptr, "glCopyBufferSubData");
  1566. glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC) load(userptr, "glDrawArraysInstanced");
  1567. glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC) load(userptr, "glDrawElementsInstanced");
  1568. glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) load(userptr, "glGetActiveUniformBlockName");
  1569. glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC) load(userptr, "glGetActiveUniformBlockiv");
  1570. glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC) load(userptr, "glGetActiveUniformName");
  1571. glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC) load(userptr, "glGetActiveUniformsiv");
  1572. glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load(userptr, "glGetIntegeri_v");
  1573. glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC) load(userptr, "glGetUniformBlockIndex");
  1574. glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC) load(userptr, "glGetUniformIndices");
  1575. glad_glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC) load(userptr, "glPrimitiveRestartIndex");
  1576. glad_glTexBuffer = (PFNGLTEXBUFFERPROC) load(userptr, "glTexBuffer");
  1577. glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC) load(userptr, "glUniformBlockBinding");
  1578. }
  1579. static void glad_gl_load_GL_VERSION_3_2( GLADuserptrloadfunc load, void* userptr) {
  1580. if(!GLAD_GL_VERSION_3_2) return;
  1581. glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC) load(userptr, "glClientWaitSync");
  1582. glad_glDeleteSync = (PFNGLDELETESYNCPROC) load(userptr, "glDeleteSync");
  1583. glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC) load(userptr, "glDrawElementsBaseVertex");
  1584. glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) load(userptr, "glDrawElementsInstancedBaseVertex");
  1585. glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) load(userptr, "glDrawRangeElementsBaseVertex");
  1586. glad_glFenceSync = (PFNGLFENCESYNCPROC) load(userptr, "glFenceSync");
  1587. glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC) load(userptr, "glFramebufferTexture");
  1588. glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC) load(userptr, "glGetBufferParameteri64v");
  1589. glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC) load(userptr, "glGetInteger64i_v");
  1590. glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC) load(userptr, "glGetInteger64v");
  1591. glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC) load(userptr, "glGetMultisamplefv");
  1592. glad_glGetSynciv = (PFNGLGETSYNCIVPROC) load(userptr, "glGetSynciv");
  1593. glad_glIsSync = (PFNGLISSYNCPROC) load(userptr, "glIsSync");
  1594. glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) load(userptr, "glMultiDrawElementsBaseVertex");
  1595. glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC) load(userptr, "glProvokingVertex");
  1596. glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC) load(userptr, "glSampleMaski");
  1597. glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC) load(userptr, "glTexImage2DMultisample");
  1598. glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC) load(userptr, "glTexImage3DMultisample");
  1599. glad_glWaitSync = (PFNGLWAITSYNCPROC) load(userptr, "glWaitSync");
  1600. }
  1601. static void glad_gl_load_GL_VERSION_3_3( GLADuserptrloadfunc load, void* userptr) {
  1602. if(!GLAD_GL_VERSION_3_3) return;
  1603. glad_glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) load(userptr, "glBindFragDataLocationIndexed");
  1604. glad_glBindSampler = (PFNGLBINDSAMPLERPROC) load(userptr, "glBindSampler");
  1605. glad_glColorP3ui = (PFNGLCOLORP3UIPROC) load(userptr, "glColorP3ui");
  1606. glad_glColorP3uiv = (PFNGLCOLORP3UIVPROC) load(userptr, "glColorP3uiv");
  1607. glad_glColorP4ui = (PFNGLCOLORP4UIPROC) load(userptr, "glColorP4ui");
  1608. glad_glColorP4uiv = (PFNGLCOLORP4UIVPROC) load(userptr, "glColorP4uiv");
  1609. glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC) load(userptr, "glDeleteSamplers");
  1610. glad_glGenSamplers = (PFNGLGENSAMPLERSPROC) load(userptr, "glGenSamplers");
  1611. glad_glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC) load(userptr, "glGetFragDataIndex");
  1612. glad_glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC) load(userptr, "glGetQueryObjecti64v");
  1613. glad_glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC) load(userptr, "glGetQueryObjectui64v");
  1614. glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC) load(userptr, "glGetSamplerParameterIiv");
  1615. glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC) load(userptr, "glGetSamplerParameterIuiv");
  1616. glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC) load(userptr, "glGetSamplerParameterfv");
  1617. glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC) load(userptr, "glGetSamplerParameteriv");
  1618. glad_glIsSampler = (PFNGLISSAMPLERPROC) load(userptr, "glIsSampler");
  1619. glad_glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC) load(userptr, "glMultiTexCoordP1ui");
  1620. glad_glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC) load(userptr, "glMultiTexCoordP1uiv");
  1621. glad_glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC) load(userptr, "glMultiTexCoordP2ui");
  1622. glad_glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC) load(userptr, "glMultiTexCoordP2uiv");
  1623. glad_glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC) load(userptr, "glMultiTexCoordP3ui");
  1624. glad_glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC) load(userptr, "glMultiTexCoordP3uiv");
  1625. glad_glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC) load(userptr, "glMultiTexCoordP4ui");
  1626. glad_glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC) load(userptr, "glMultiTexCoordP4uiv");
  1627. glad_glNormalP3ui = (PFNGLNORMALP3UIPROC) load(userptr, "glNormalP3ui");
  1628. glad_glNormalP3uiv = (PFNGLNORMALP3UIVPROC) load(userptr, "glNormalP3uiv");
  1629. glad_glQueryCounter = (PFNGLQUERYCOUNTERPROC) load(userptr, "glQueryCounter");
  1630. glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC) load(userptr, "glSamplerParameterIiv");
  1631. glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC) load(userptr, "glSamplerParameterIuiv");
  1632. glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC) load(userptr, "glSamplerParameterf");
  1633. glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC) load(userptr, "glSamplerParameterfv");
  1634. glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC) load(userptr, "glSamplerParameteri");
  1635. glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC) load(userptr, "glSamplerParameteriv");
  1636. glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC) load(userptr, "glSecondaryColorP3ui");
  1637. glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC) load(userptr, "glSecondaryColorP3uiv");
  1638. glad_glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC) load(userptr, "glTexCoordP1ui");
  1639. glad_glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC) load(userptr, "glTexCoordP1uiv");
  1640. glad_glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC) load(userptr, "glTexCoordP2ui");
  1641. glad_glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC) load(userptr, "glTexCoordP2uiv");
  1642. glad_glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC) load(userptr, "glTexCoordP3ui");
  1643. glad_glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC) load(userptr, "glTexCoordP3uiv");
  1644. glad_glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC) load(userptr, "glTexCoordP4ui");
  1645. glad_glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC) load(userptr, "glTexCoordP4uiv");
  1646. glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC) load(userptr, "glVertexAttribDivisor");
  1647. glad_glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC) load(userptr, "glVertexAttribP1ui");
  1648. glad_glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC) load(userptr, "glVertexAttribP1uiv");
  1649. glad_glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC) load(userptr, "glVertexAttribP2ui");
  1650. glad_glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC) load(userptr, "glVertexAttribP2uiv");
  1651. glad_glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC) load(userptr, "glVertexAttribP3ui");
  1652. glad_glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC) load(userptr, "glVertexAttribP3uiv");
  1653. glad_glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC) load(userptr, "glVertexAttribP4ui");
  1654. glad_glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC) load(userptr, "glVertexAttribP4uiv");
  1655. glad_glVertexP2ui = (PFNGLVERTEXP2UIPROC) load(userptr, "glVertexP2ui");
  1656. glad_glVertexP2uiv = (PFNGLVERTEXP2UIVPROC) load(userptr, "glVertexP2uiv");
  1657. glad_glVertexP3ui = (PFNGLVERTEXP3UIPROC) load(userptr, "glVertexP3ui");
  1658. glad_glVertexP3uiv = (PFNGLVERTEXP3UIVPROC) load(userptr, "glVertexP3uiv");
  1659. glad_glVertexP4ui = (PFNGLVERTEXP4UIPROC) load(userptr, "glVertexP4ui");
  1660. glad_glVertexP4uiv = (PFNGLVERTEXP4UIVPROC) load(userptr, "glVertexP4uiv");
  1661. }
  1662. static void glad_gl_load_GL_ES_VERSION_2_0( GLADuserptrloadfunc load, void* userptr) {
  1663. if(!GLAD_GL_ES_VERSION_2_0) return;
  1664. glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC) load(userptr, "glActiveTexture");
  1665. glad_glAttachShader = (PFNGLATTACHSHADERPROC) load(userptr, "glAttachShader");
  1666. glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC) load(userptr, "glBindAttribLocation");
  1667. glad_glBindBuffer = (PFNGLBINDBUFFERPROC) load(userptr, "glBindBuffer");
  1668. glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) load(userptr, "glBindFramebuffer");
  1669. glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC) load(userptr, "glBindRenderbuffer");
  1670. glad_glBindTexture = (PFNGLBINDTEXTUREPROC) load(userptr, "glBindTexture");
  1671. glad_glBlendColor = (PFNGLBLENDCOLORPROC) load(userptr, "glBlendColor");
  1672. glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC) load(userptr, "glBlendEquation");
  1673. glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC) load(userptr, "glBlendEquationSeparate");
  1674. glad_glBlendFunc = (PFNGLBLENDFUNCPROC) load(userptr, "glBlendFunc");
  1675. glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC) load(userptr, "glBlendFuncSeparate");
  1676. glad_glBufferData = (PFNGLBUFFERDATAPROC) load(userptr, "glBufferData");
  1677. glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC) load(userptr, "glBufferSubData");
  1678. glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC) load(userptr, "glCheckFramebufferStatus");
  1679. glad_glClear = (PFNGLCLEARPROC) load(userptr, "glClear");
  1680. glad_glClearColor = (PFNGLCLEARCOLORPROC) load(userptr, "glClearColor");
  1681. glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC) load(userptr, "glClearDepthf");
  1682. glad_glClearStencil = (PFNGLCLEARSTENCILPROC) load(userptr, "glClearStencil");
  1683. glad_glColorMask = (PFNGLCOLORMASKPROC) load(userptr, "glColorMask");
  1684. glad_glCompileShader = (PFNGLCOMPILESHADERPROC) load(userptr, "glCompileShader");
  1685. glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC) load(userptr, "glCompressedTexImage2D");
  1686. glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) load(userptr, "glCompressedTexSubImage2D");
  1687. glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC) load(userptr, "glCopyTexImage2D");
  1688. glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC) load(userptr, "glCopyTexSubImage2D");
  1689. glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC) load(userptr, "glCreateProgram");
  1690. glad_glCreateShader = (PFNGLCREATESHADERPROC) load(userptr, "glCreateShader");
  1691. glad_glCullFace = (PFNGLCULLFACEPROC) load(userptr, "glCullFace");
  1692. glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC) load(userptr, "glDeleteBuffers");
  1693. glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) load(userptr, "glDeleteFramebuffers");
  1694. glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC) load(userptr, "glDeleteProgram");
  1695. glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC) load(userptr, "glDeleteRenderbuffers");
  1696. glad_glDeleteShader = (PFNGLDELETESHADERPROC) load(userptr, "glDeleteShader");
  1697. glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC) load(userptr, "glDeleteTextures");
  1698. glad_glDepthFunc = (PFNGLDEPTHFUNCPROC) load(userptr, "glDepthFunc");
  1699. glad_glDepthMask = (PFNGLDEPTHMASKPROC) load(userptr, "glDepthMask");
  1700. glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC) load(userptr, "glDepthRangef");
  1701. glad_glDetachShader = (PFNGLDETACHSHADERPROC) load(userptr, "glDetachShader");
  1702. glad_glDisable = (PFNGLDISABLEPROC) load(userptr, "glDisable");
  1703. glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC) load(userptr, "glDisableVertexAttribArray");
  1704. glad_glDrawArrays = (PFNGLDRAWARRAYSPROC) load(userptr, "glDrawArrays");
  1705. glad_glDrawElements = (PFNGLDRAWELEMENTSPROC) load(userptr, "glDrawElements");
  1706. glad_glEnable = (PFNGLENABLEPROC) load(userptr, "glEnable");
  1707. glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC) load(userptr, "glEnableVertexAttribArray");
  1708. glad_glFinish = (PFNGLFINISHPROC) load(userptr, "glFinish");
  1709. glad_glFlush = (PFNGLFLUSHPROC) load(userptr, "glFlush");
  1710. glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC) load(userptr, "glFramebufferRenderbuffer");
  1711. glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC) load(userptr, "glFramebufferTexture2D");
  1712. glad_glFrontFace = (PFNGLFRONTFACEPROC) load(userptr, "glFrontFace");
  1713. glad_glGenBuffers = (PFNGLGENBUFFERSPROC) load(userptr, "glGenBuffers");
  1714. glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) load(userptr, "glGenFramebuffers");
  1715. glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC) load(userptr, "glGenRenderbuffers");
  1716. glad_glGenTextures = (PFNGLGENTEXTURESPROC) load(userptr, "glGenTextures");
  1717. glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC) load(userptr, "glGenerateMipmap");
  1718. glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC) load(userptr, "glGetActiveAttrib");
  1719. glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC) load(userptr, "glGetActiveUniform");
  1720. glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC) load(userptr, "glGetAttachedShaders");
  1721. glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC) load(userptr, "glGetAttribLocation");
  1722. glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC) load(userptr, "glGetBooleanv");
  1723. glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC) load(userptr, "glGetBufferParameteriv");
  1724. glad_glGetError = (PFNGLGETERRORPROC) load(userptr, "glGetError");
  1725. glad_glGetFloatv = (PFNGLGETFLOATVPROC) load(userptr, "glGetFloatv");
  1726. glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) load(userptr, "glGetFramebufferAttachmentParameteriv");
  1727. glad_glGetIntegerv = (PFNGLGETINTEGERVPROC) load(userptr, "glGetIntegerv");
  1728. glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC) load(userptr, "glGetProgramInfoLog");
  1729. glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC) load(userptr, "glGetProgramiv");
  1730. glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC) load(userptr, "glGetRenderbufferParameteriv");
  1731. glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC) load(userptr, "glGetShaderInfoLog");
  1732. glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC) load(userptr, "glGetShaderPrecisionFormat");
  1733. glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC) load(userptr, "glGetShaderSource");
  1734. glad_glGetShaderiv = (PFNGLGETSHADERIVPROC) load(userptr, "glGetShaderiv");
  1735. glad_glGetString = (PFNGLGETSTRINGPROC) load(userptr, "glGetString");
  1736. glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC) load(userptr, "glGetTexParameterfv");
  1737. glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC) load(userptr, "glGetTexParameteriv");
  1738. glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC) load(userptr, "glGetUniformLocation");
  1739. glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC) load(userptr, "glGetUniformfv");
  1740. glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC) load(userptr, "glGetUniformiv");
  1741. glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC) load(userptr, "glGetVertexAttribPointerv");
  1742. glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC) load(userptr, "glGetVertexAttribfv");
  1743. glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC) load(userptr, "glGetVertexAttribiv");
  1744. glad_glHint = (PFNGLHINTPROC) load(userptr, "glHint");
  1745. glad_glIsBuffer = (PFNGLISBUFFERPROC) load(userptr, "glIsBuffer");
  1746. glad_glIsEnabled = (PFNGLISENABLEDPROC) load(userptr, "glIsEnabled");
  1747. glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC) load(userptr, "glIsFramebuffer");
  1748. glad_glIsProgram = (PFNGLISPROGRAMPROC) load(userptr, "glIsProgram");
  1749. glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC) load(userptr, "glIsRenderbuffer");
  1750. glad_glIsShader = (PFNGLISSHADERPROC) load(userptr, "glIsShader");
  1751. glad_glIsTexture = (PFNGLISTEXTUREPROC) load(userptr, "glIsTexture");
  1752. glad_glLineWidth = (PFNGLLINEWIDTHPROC) load(userptr, "glLineWidth");
  1753. glad_glLinkProgram = (PFNGLLINKPROGRAMPROC) load(userptr, "glLinkProgram");
  1754. glad_glPixelStorei = (PFNGLPIXELSTOREIPROC) load(userptr, "glPixelStorei");
  1755. glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC) load(userptr, "glPolygonOffset");
  1756. glad_glReadPixels = (PFNGLREADPIXELSPROC) load(userptr, "glReadPixels");
  1757. glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC) load(userptr, "glReleaseShaderCompiler");
  1758. glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC) load(userptr, "glRenderbufferStorage");
  1759. glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) load(userptr, "glSampleCoverage");
  1760. glad_glScissor = (PFNGLSCISSORPROC) load(userptr, "glScissor");
  1761. glad_glShaderBinary = (PFNGLSHADERBINARYPROC) load(userptr, "glShaderBinary");
  1762. glad_glShaderSource = (PFNGLSHADERSOURCEPROC) load(userptr, "glShaderSource");
  1763. glad_glStencilFunc = (PFNGLSTENCILFUNCPROC) load(userptr, "glStencilFunc");
  1764. glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC) load(userptr, "glStencilFuncSeparate");
  1765. glad_glStencilMask = (PFNGLSTENCILMASKPROC) load(userptr, "glStencilMask");
  1766. glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC) load(userptr, "glStencilMaskSeparate");
  1767. glad_glStencilOp = (PFNGLSTENCILOPPROC) load(userptr, "glStencilOp");
  1768. glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC) load(userptr, "glStencilOpSeparate");
  1769. glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC) load(userptr, "glTexImage2D");
  1770. glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC) load(userptr, "glTexParameterf");
  1771. glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC) load(userptr, "glTexParameterfv");
  1772. glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC) load(userptr, "glTexParameteri");
  1773. glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC) load(userptr, "glTexParameteriv");
  1774. glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC) load(userptr, "glTexSubImage2D");
  1775. glad_glUniform1f = (PFNGLUNIFORM1FPROC) load(userptr, "glUniform1f");
  1776. glad_glUniform1fv = (PFNGLUNIFORM1FVPROC) load(userptr, "glUniform1fv");
  1777. glad_glUniform1i = (PFNGLUNIFORM1IPROC) load(userptr, "glUniform1i");
  1778. glad_glUniform1iv = (PFNGLUNIFORM1IVPROC) load(userptr, "glUniform1iv");
  1779. glad_glUniform2f = (PFNGLUNIFORM2FPROC) load(userptr, "glUniform2f");
  1780. glad_glUniform2fv = (PFNGLUNIFORM2FVPROC) load(userptr, "glUniform2fv");
  1781. glad_glUniform2i = (PFNGLUNIFORM2IPROC) load(userptr, "glUniform2i");
  1782. glad_glUniform2iv = (PFNGLUNIFORM2IVPROC) load(userptr, "glUniform2iv");
  1783. glad_glUniform3f = (PFNGLUNIFORM3FPROC) load(userptr, "glUniform3f");
  1784. glad_glUniform3fv = (PFNGLUNIFORM3FVPROC) load(userptr, "glUniform3fv");
  1785. glad_glUniform3i = (PFNGLUNIFORM3IPROC) load(userptr, "glUniform3i");
  1786. glad_glUniform3iv = (PFNGLUNIFORM3IVPROC) load(userptr, "glUniform3iv");
  1787. glad_glUniform4f = (PFNGLUNIFORM4FPROC) load(userptr, "glUniform4f");
  1788. glad_glUniform4fv = (PFNGLUNIFORM4FVPROC) load(userptr, "glUniform4fv");
  1789. glad_glUniform4i = (PFNGLUNIFORM4IPROC) load(userptr, "glUniform4i");
  1790. glad_glUniform4iv = (PFNGLUNIFORM4IVPROC) load(userptr, "glUniform4iv");
  1791. glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC) load(userptr, "glUniformMatrix2fv");
  1792. glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC) load(userptr, "glUniformMatrix3fv");
  1793. glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC) load(userptr, "glUniformMatrix4fv");
  1794. glad_glUseProgram = (PFNGLUSEPROGRAMPROC) load(userptr, "glUseProgram");
  1795. glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC) load(userptr, "glValidateProgram");
  1796. glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC) load(userptr, "glVertexAttrib1f");
  1797. glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC) load(userptr, "glVertexAttrib1fv");
  1798. glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC) load(userptr, "glVertexAttrib2f");
  1799. glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC) load(userptr, "glVertexAttrib2fv");
  1800. glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC) load(userptr, "glVertexAttrib3f");
  1801. glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC) load(userptr, "glVertexAttrib3fv");
  1802. glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC) load(userptr, "glVertexAttrib4f");
  1803. glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC) load(userptr, "glVertexAttrib4fv");
  1804. glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC) load(userptr, "glVertexAttribPointer");
  1805. glad_glViewport = (PFNGLVIEWPORTPROC) load(userptr, "glViewport");
  1806. }
  1807. static void glad_gl_load_GL_ES_VERSION_3_0( GLADuserptrloadfunc load, void* userptr) {
  1808. if(!GLAD_GL_ES_VERSION_3_0) return;
  1809. glad_glBeginQuery = (PFNGLBEGINQUERYPROC) load(userptr, "glBeginQuery");
  1810. glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC) load(userptr, "glBeginTransformFeedback");
  1811. glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load(userptr, "glBindBufferBase");
  1812. glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load(userptr, "glBindBufferRange");
  1813. glad_glBindSampler = (PFNGLBINDSAMPLERPROC) load(userptr, "glBindSampler");
  1814. glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC) load(userptr, "glBindTransformFeedback");
  1815. glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC) load(userptr, "glBindVertexArray");
  1816. glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC) load(userptr, "glBlitFramebuffer");
  1817. glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC) load(userptr, "glClearBufferfi");
  1818. glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC) load(userptr, "glClearBufferfv");
  1819. glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC) load(userptr, "glClearBufferiv");
  1820. glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC) load(userptr, "glClearBufferuiv");
  1821. glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC) load(userptr, "glClientWaitSync");
  1822. glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC) load(userptr, "glCompressedTexImage3D");
  1823. glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) load(userptr, "glCompressedTexSubImage3D");
  1824. glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC) load(userptr, "glCopyBufferSubData");
  1825. glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC) load(userptr, "glCopyTexSubImage3D");
  1826. glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC) load(userptr, "glDeleteQueries");
  1827. glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC) load(userptr, "glDeleteSamplers");
  1828. glad_glDeleteSync = (PFNGLDELETESYNCPROC) load(userptr, "glDeleteSync");
  1829. glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC) load(userptr, "glDeleteTransformFeedbacks");
  1830. glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC) load(userptr, "glDeleteVertexArrays");
  1831. glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC) load(userptr, "glDrawArraysInstanced");
  1832. glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC) load(userptr, "glDrawBuffers");
  1833. glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC) load(userptr, "glDrawElementsInstanced");
  1834. glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) load(userptr, "glDrawRangeElements");
  1835. glad_glEndQuery = (PFNGLENDQUERYPROC) load(userptr, "glEndQuery");
  1836. glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC) load(userptr, "glEndTransformFeedback");
  1837. glad_glFenceSync = (PFNGLFENCESYNCPROC) load(userptr, "glFenceSync");
  1838. glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC) load(userptr, "glFlushMappedBufferRange");
  1839. glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC) load(userptr, "glFramebufferTextureLayer");
  1840. glad_glGenQueries = (PFNGLGENQUERIESPROC) load(userptr, "glGenQueries");
  1841. glad_glGenSamplers = (PFNGLGENSAMPLERSPROC) load(userptr, "glGenSamplers");
  1842. glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC) load(userptr, "glGenTransformFeedbacks");
  1843. glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC) load(userptr, "glGenVertexArrays");
  1844. glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) load(userptr, "glGetActiveUniformBlockName");
  1845. glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC) load(userptr, "glGetActiveUniformBlockiv");
  1846. glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC) load(userptr, "glGetActiveUniformsiv");
  1847. glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC) load(userptr, "glGetBufferParameteri64v");
  1848. glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC) load(userptr, "glGetBufferPointerv");
  1849. glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC) load(userptr, "glGetFragDataLocation");
  1850. glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC) load(userptr, "glGetInteger64i_v");
  1851. glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC) load(userptr, "glGetInteger64v");
  1852. glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load(userptr, "glGetIntegeri_v");
  1853. glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC) load(userptr, "glGetInternalformativ");
  1854. glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC) load(userptr, "glGetProgramBinary");
  1855. glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC) load(userptr, "glGetQueryObjectuiv");
  1856. glad_glGetQueryiv = (PFNGLGETQUERYIVPROC) load(userptr, "glGetQueryiv");
  1857. glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC) load(userptr, "glGetSamplerParameterfv");
  1858. glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC) load(userptr, "glGetSamplerParameteriv");
  1859. glad_glGetStringi = (PFNGLGETSTRINGIPROC) load(userptr, "glGetStringi");
  1860. glad_glGetSynciv = (PFNGLGETSYNCIVPROC) load(userptr, "glGetSynciv");
  1861. glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) load(userptr, "glGetTransformFeedbackVarying");
  1862. glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC) load(userptr, "glGetUniformBlockIndex");
  1863. glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC) load(userptr, "glGetUniformIndices");
  1864. glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC) load(userptr, "glGetUniformuiv");
  1865. glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC) load(userptr, "glGetVertexAttribIiv");
  1866. glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC) load(userptr, "glGetVertexAttribIuiv");
  1867. glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC) load(userptr, "glInvalidateFramebuffer");
  1868. glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC) load(userptr, "glInvalidateSubFramebuffer");
  1869. glad_glIsQuery = (PFNGLISQUERYPROC) load(userptr, "glIsQuery");
  1870. glad_glIsSampler = (PFNGLISSAMPLERPROC) load(userptr, "glIsSampler");
  1871. glad_glIsSync = (PFNGLISSYNCPROC) load(userptr, "glIsSync");
  1872. glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC) load(userptr, "glIsTransformFeedback");
  1873. glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC) load(userptr, "glIsVertexArray");
  1874. glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC) load(userptr, "glMapBufferRange");
  1875. glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC) load(userptr, "glPauseTransformFeedback");
  1876. glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC) load(userptr, "glProgramBinary");
  1877. glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC) load(userptr, "glProgramParameteri");
  1878. glad_glReadBuffer = (PFNGLREADBUFFERPROC) load(userptr, "glReadBuffer");
  1879. glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) load(userptr, "glRenderbufferStorageMultisample");
  1880. glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC) load(userptr, "glResumeTransformFeedback");
  1881. glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC) load(userptr, "glSamplerParameterf");
  1882. glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC) load(userptr, "glSamplerParameterfv");
  1883. glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC) load(userptr, "glSamplerParameteri");
  1884. glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC) load(userptr, "glSamplerParameteriv");
  1885. glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC) load(userptr, "glTexImage3D");
  1886. glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC) load(userptr, "glTexStorage2D");
  1887. glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC) load(userptr, "glTexStorage3D");
  1888. glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC) load(userptr, "glTexSubImage3D");
  1889. glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC) load(userptr, "glTransformFeedbackVaryings");
  1890. glad_glUniform1ui = (PFNGLUNIFORM1UIPROC) load(userptr, "glUniform1ui");
  1891. glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC) load(userptr, "glUniform1uiv");
  1892. glad_glUniform2ui = (PFNGLUNIFORM2UIPROC) load(userptr, "glUniform2ui");
  1893. glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC) load(userptr, "glUniform2uiv");
  1894. glad_glUniform3ui = (PFNGLUNIFORM3UIPROC) load(userptr, "glUniform3ui");
  1895. glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC) load(userptr, "glUniform3uiv");
  1896. glad_glUniform4ui = (PFNGLUNIFORM4UIPROC) load(userptr, "glUniform4ui");
  1897. glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC) load(userptr, "glUniform4uiv");
  1898. glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC) load(userptr, "glUniformBlockBinding");
  1899. glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC) load(userptr, "glUniformMatrix2x3fv");
  1900. glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC) load(userptr, "glUniformMatrix2x4fv");
  1901. glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC) load(userptr, "glUniformMatrix3x2fv");
  1902. glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC) load(userptr, "glUniformMatrix3x4fv");
  1903. glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC) load(userptr, "glUniformMatrix4x2fv");
  1904. glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC) load(userptr, "glUniformMatrix4x3fv");
  1905. glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC) load(userptr, "glUnmapBuffer");
  1906. glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC) load(userptr, "glVertexAttribDivisor");
  1907. glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC) load(userptr, "glVertexAttribI4i");
  1908. glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC) load(userptr, "glVertexAttribI4iv");
  1909. glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC) load(userptr, "glVertexAttribI4ui");
  1910. glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC) load(userptr, "glVertexAttribI4uiv");
  1911. glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC) load(userptr, "glVertexAttribIPointer");
  1912. glad_glWaitSync = (PFNGLWAITSYNCPROC) load(userptr, "glWaitSync");
  1913. }
  1914. static void glad_gl_load_GL_ES_VERSION_3_1( GLADuserptrloadfunc load, void* userptr) {
  1915. if(!GLAD_GL_ES_VERSION_3_1) return;
  1916. glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC) load(userptr, "glActiveShaderProgram");
  1917. glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC) load(userptr, "glBindImageTexture");
  1918. glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC) load(userptr, "glBindProgramPipeline");
  1919. glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC) load(userptr, "glBindVertexBuffer");
  1920. glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC) load(userptr, "glCreateShaderProgramv");
  1921. glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC) load(userptr, "glDeleteProgramPipelines");
  1922. glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC) load(userptr, "glDispatchCompute");
  1923. glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC) load(userptr, "glDispatchComputeIndirect");
  1924. glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC) load(userptr, "glDrawArraysIndirect");
  1925. glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC) load(userptr, "glDrawElementsIndirect");
  1926. glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC) load(userptr, "glFramebufferParameteri");
  1927. glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC) load(userptr, "glGenProgramPipelines");
  1928. glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC) load(userptr, "glGetBooleani_v");
  1929. glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC) load(userptr, "glGetFramebufferParameteriv");
  1930. glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC) load(userptr, "glGetMultisamplefv");
  1931. glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC) load(userptr, "glGetProgramInterfaceiv");
  1932. glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC) load(userptr, "glGetProgramPipelineInfoLog");
  1933. glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC) load(userptr, "glGetProgramPipelineiv");
  1934. glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC) load(userptr, "glGetProgramResourceIndex");
  1935. glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC) load(userptr, "glGetProgramResourceLocation");
  1936. glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC) load(userptr, "glGetProgramResourceName");
  1937. glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC) load(userptr, "glGetProgramResourceiv");
  1938. glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC) load(userptr, "glGetTexLevelParameterfv");
  1939. glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC) load(userptr, "glGetTexLevelParameteriv");
  1940. glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC) load(userptr, "glIsProgramPipeline");
  1941. glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC) load(userptr, "glMemoryBarrier");
  1942. glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC) load(userptr, "glMemoryBarrierByRegion");
  1943. glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC) load(userptr, "glProgramUniform1f");
  1944. glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC) load(userptr, "glProgramUniform1fv");
  1945. glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC) load(userptr, "glProgramUniform1i");
  1946. glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC) load(userptr, "glProgramUniform1iv");
  1947. glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC) load(userptr, "glProgramUniform1ui");
  1948. glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC) load(userptr, "glProgramUniform1uiv");
  1949. glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC) load(userptr, "glProgramUniform2f");
  1950. glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC) load(userptr, "glProgramUniform2fv");
  1951. glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC) load(userptr, "glProgramUniform2i");
  1952. glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC) load(userptr, "glProgramUniform2iv");
  1953. glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC) load(userptr, "glProgramUniform2ui");
  1954. glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC) load(userptr, "glProgramUniform2uiv");
  1955. glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC) load(userptr, "glProgramUniform3f");
  1956. glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC) load(userptr, "glProgramUniform3fv");
  1957. glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC) load(userptr, "glProgramUniform3i");
  1958. glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC) load(userptr, "glProgramUniform3iv");
  1959. glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC) load(userptr, "glProgramUniform3ui");
  1960. glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC) load(userptr, "glProgramUniform3uiv");
  1961. glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC) load(userptr, "glProgramUniform4f");
  1962. glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC) load(userptr, "glProgramUniform4fv");
  1963. glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC) load(userptr, "glProgramUniform4i");
  1964. glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC) load(userptr, "glProgramUniform4iv");
  1965. glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC) load(userptr, "glProgramUniform4ui");
  1966. glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC) load(userptr, "glProgramUniform4uiv");
  1967. glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC) load(userptr, "glProgramUniformMatrix2fv");
  1968. glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC) load(userptr, "glProgramUniformMatrix2x3fv");
  1969. glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC) load(userptr, "glProgramUniformMatrix2x4fv");
  1970. glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC) load(userptr, "glProgramUniformMatrix3fv");
  1971. glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC) load(userptr, "glProgramUniformMatrix3x2fv");
  1972. glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC) load(userptr, "glProgramUniformMatrix3x4fv");
  1973. glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC) load(userptr, "glProgramUniformMatrix4fv");
  1974. glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC) load(userptr, "glProgramUniformMatrix4x2fv");
  1975. glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC) load(userptr, "glProgramUniformMatrix4x3fv");
  1976. glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC) load(userptr, "glSampleMaski");
  1977. glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC) load(userptr, "glTexStorage2DMultisample");
  1978. glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC) load(userptr, "glUseProgramStages");
  1979. glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC) load(userptr, "glValidateProgramPipeline");
  1980. glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC) load(userptr, "glVertexAttribBinding");
  1981. glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC) load(userptr, "glVertexAttribFormat");
  1982. glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC) load(userptr, "glVertexAttribIFormat");
  1983. glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC) load(userptr, "glVertexBindingDivisor");
  1984. }
  1985. static void glad_gl_load_GL_ES_VERSION_3_2( GLADuserptrloadfunc load, void* userptr) {
  1986. if(!GLAD_GL_ES_VERSION_3_2) return;
  1987. glad_glBlendBarrier = (PFNGLBLENDBARRIERPROC) load(userptr, "glBlendBarrier");
  1988. glad_glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC) load(userptr, "glBlendEquationSeparatei");
  1989. glad_glBlendEquationi = (PFNGLBLENDEQUATIONIPROC) load(userptr, "glBlendEquationi");
  1990. glad_glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC) load(userptr, "glBlendFuncSeparatei");
  1991. glad_glBlendFunci = (PFNGLBLENDFUNCIPROC) load(userptr, "glBlendFunci");
  1992. glad_glColorMaski = (PFNGLCOLORMASKIPROC) load(userptr, "glColorMaski");
  1993. glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC) load(userptr, "glCopyImageSubData");
  1994. glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC) load(userptr, "glDebugMessageCallback");
  1995. glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC) load(userptr, "glDebugMessageControl");
  1996. glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC) load(userptr, "glDebugMessageInsert");
  1997. glad_glDisablei = (PFNGLDISABLEIPROC) load(userptr, "glDisablei");
  1998. glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC) load(userptr, "glDrawElementsBaseVertex");
  1999. glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) load(userptr, "glDrawElementsInstancedBaseVertex");
  2000. glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) load(userptr, "glDrawRangeElementsBaseVertex");
  2001. glad_glEnablei = (PFNGLENABLEIPROC) load(userptr, "glEnablei");
  2002. glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC) load(userptr, "glFramebufferTexture");
  2003. glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC) load(userptr, "glGetDebugMessageLog");
  2004. glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC) load(userptr, "glGetGraphicsResetStatus");
  2005. glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC) load(userptr, "glGetObjectLabel");
  2006. glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC) load(userptr, "glGetObjectPtrLabel");
  2007. glad_glGetPointerv = (PFNGLGETPOINTERVPROC) load(userptr, "glGetPointerv");
  2008. glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC) load(userptr, "glGetSamplerParameterIiv");
  2009. glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC) load(userptr, "glGetSamplerParameterIuiv");
  2010. glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC) load(userptr, "glGetTexParameterIiv");
  2011. glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC) load(userptr, "glGetTexParameterIuiv");
  2012. glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC) load(userptr, "glGetnUniformfv");
  2013. glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC) load(userptr, "glGetnUniformiv");
  2014. glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC) load(userptr, "glGetnUniformuiv");
  2015. glad_glIsEnabledi = (PFNGLISENABLEDIPROC) load(userptr, "glIsEnabledi");
  2016. glad_glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC) load(userptr, "glMinSampleShading");
  2017. glad_glObjectLabel = (PFNGLOBJECTLABELPROC) load(userptr, "glObjectLabel");
  2018. glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC) load(userptr, "glObjectPtrLabel");
  2019. glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC) load(userptr, "glPatchParameteri");
  2020. glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC) load(userptr, "glPopDebugGroup");
  2021. glad_glPrimitiveBoundingBox = (PFNGLPRIMITIVEBOUNDINGBOXPROC) load(userptr, "glPrimitiveBoundingBox");
  2022. glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC) load(userptr, "glPushDebugGroup");
  2023. glad_glReadnPixels = (PFNGLREADNPIXELSPROC) load(userptr, "glReadnPixels");
  2024. glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC) load(userptr, "glSamplerParameterIiv");
  2025. glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC) load(userptr, "glSamplerParameterIuiv");
  2026. glad_glTexBuffer = (PFNGLTEXBUFFERPROC) load(userptr, "glTexBuffer");
  2027. glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC) load(userptr, "glTexBufferRange");
  2028. glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC) load(userptr, "glTexParameterIiv");
  2029. glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC) load(userptr, "glTexParameterIuiv");
  2030. glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC) load(userptr, "glTexStorage3DMultisample");
  2031. }
  2032. static void glad_gl_load_GL_ARB_debug_output( GLADuserptrloadfunc load, void* userptr) {
  2033. if(!GLAD_GL_ARB_debug_output) return;
  2034. glad_glDebugMessageCallbackARB = (PFNGLDEBUGMESSAGECALLBACKARBPROC) load(userptr, "glDebugMessageCallbackARB");
  2035. glad_glDebugMessageControlARB = (PFNGLDEBUGMESSAGECONTROLARBPROC) load(userptr, "glDebugMessageControlARB");
  2036. glad_glDebugMessageInsertARB = (PFNGLDEBUGMESSAGEINSERTARBPROC) load(userptr, "glDebugMessageInsertARB");
  2037. glad_glGetDebugMessageLogARB = (PFNGLGETDEBUGMESSAGELOGARBPROC) load(userptr, "glGetDebugMessageLogARB");
  2038. }
  2039. static void glad_gl_load_GL_ARB_framebuffer_object( GLADuserptrloadfunc load, void* userptr) {
  2040. if(!GLAD_GL_ARB_framebuffer_object) return;
  2041. glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) load(userptr, "glBindFramebuffer");
  2042. glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC) load(userptr, "glBindRenderbuffer");
  2043. glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC) load(userptr, "glBlitFramebuffer");
  2044. glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC) load(userptr, "glCheckFramebufferStatus");
  2045. glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) load(userptr, "glDeleteFramebuffers");
  2046. glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC) load(userptr, "glDeleteRenderbuffers");
  2047. glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC) load(userptr, "glFramebufferRenderbuffer");
  2048. glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC) load(userptr, "glFramebufferTexture1D");
  2049. glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC) load(userptr, "glFramebufferTexture2D");
  2050. glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC) load(userptr, "glFramebufferTexture3D");
  2051. glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC) load(userptr, "glFramebufferTextureLayer");
  2052. glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) load(userptr, "glGenFramebuffers");
  2053. glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC) load(userptr, "glGenRenderbuffers");
  2054. glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC) load(userptr, "glGenerateMipmap");
  2055. glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) load(userptr, "glGetFramebufferAttachmentParameteriv");
  2056. glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC) load(userptr, "glGetRenderbufferParameteriv");
  2057. glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC) load(userptr, "glIsFramebuffer");
  2058. glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC) load(userptr, "glIsRenderbuffer");
  2059. glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC) load(userptr, "glRenderbufferStorage");
  2060. glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) load(userptr, "glRenderbufferStorageMultisample");
  2061. }
  2062. static void glad_gl_load_GL_ARB_get_program_binary( GLADuserptrloadfunc load, void* userptr) {
  2063. if(!GLAD_GL_ARB_get_program_binary) return;
  2064. glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC) load(userptr, "glGetProgramBinary");
  2065. glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC) load(userptr, "glProgramBinary");
  2066. glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC) load(userptr, "glProgramParameteri");
  2067. }
  2068. static void glad_gl_load_GL_EXT_framebuffer_blit( GLADuserptrloadfunc load, void* userptr) {
  2069. if(!GLAD_GL_EXT_framebuffer_blit) return;
  2070. glad_glBlitFramebufferEXT = (PFNGLBLITFRAMEBUFFEREXTPROC) load(userptr, "glBlitFramebufferEXT");
  2071. }
  2072. static void glad_gl_load_GL_EXT_framebuffer_multisample( GLADuserptrloadfunc load, void* userptr) {
  2073. if(!GLAD_GL_EXT_framebuffer_multisample) return;
  2074. glad_glRenderbufferStorageMultisampleEXT = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC) load(userptr, "glRenderbufferStorageMultisampleEXT");
  2075. }
  2076. static void glad_gl_load_GL_EXT_framebuffer_object( GLADuserptrloadfunc load, void* userptr) {
  2077. if(!GLAD_GL_EXT_framebuffer_object) return;
  2078. glad_glBindFramebufferEXT = (PFNGLBINDFRAMEBUFFEREXTPROC) load(userptr, "glBindFramebufferEXT");
  2079. glad_glBindRenderbufferEXT = (PFNGLBINDRENDERBUFFEREXTPROC) load(userptr, "glBindRenderbufferEXT");
  2080. glad_glCheckFramebufferStatusEXT = (PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC) load(userptr, "glCheckFramebufferStatusEXT");
  2081. glad_glDeleteFramebuffersEXT = (PFNGLDELETEFRAMEBUFFERSEXTPROC) load(userptr, "glDeleteFramebuffersEXT");
  2082. glad_glDeleteRenderbuffersEXT = (PFNGLDELETERENDERBUFFERSEXTPROC) load(userptr, "glDeleteRenderbuffersEXT");
  2083. glad_glFramebufferRenderbufferEXT = (PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC) load(userptr, "glFramebufferRenderbufferEXT");
  2084. glad_glFramebufferTexture1DEXT = (PFNGLFRAMEBUFFERTEXTURE1DEXTPROC) load(userptr, "glFramebufferTexture1DEXT");
  2085. glad_glFramebufferTexture2DEXT = (PFNGLFRAMEBUFFERTEXTURE2DEXTPROC) load(userptr, "glFramebufferTexture2DEXT");
  2086. glad_glFramebufferTexture3DEXT = (PFNGLFRAMEBUFFERTEXTURE3DEXTPROC) load(userptr, "glFramebufferTexture3DEXT");
  2087. glad_glGenFramebuffersEXT = (PFNGLGENFRAMEBUFFERSEXTPROC) load(userptr, "glGenFramebuffersEXT");
  2088. glad_glGenRenderbuffersEXT = (PFNGLGENRENDERBUFFERSEXTPROC) load(userptr, "glGenRenderbuffersEXT");
  2089. glad_glGenerateMipmapEXT = (PFNGLGENERATEMIPMAPEXTPROC) load(userptr, "glGenerateMipmapEXT");
  2090. glad_glGetFramebufferAttachmentParameterivEXT = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC) load(userptr, "glGetFramebufferAttachmentParameterivEXT");
  2091. glad_glGetRenderbufferParameterivEXT = (PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC) load(userptr, "glGetRenderbufferParameterivEXT");
  2092. glad_glIsFramebufferEXT = (PFNGLISFRAMEBUFFEREXTPROC) load(userptr, "glIsFramebufferEXT");
  2093. glad_glIsRenderbufferEXT = (PFNGLISRENDERBUFFEREXTPROC) load(userptr, "glIsRenderbufferEXT");
  2094. glad_glRenderbufferStorageEXT = (PFNGLRENDERBUFFERSTORAGEEXTPROC) load(userptr, "glRenderbufferStorageEXT");
  2095. }
  2096. static void glad_gl_load_GL_OVR_multiview( GLADuserptrloadfunc load, void* userptr) {
  2097. if(!GLAD_GL_OVR_multiview) return;
  2098. glad_glFramebufferTextureMultiviewOVR = (PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC) load(userptr, "glFramebufferTextureMultiviewOVR");
  2099. }
  2100. #if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
  2101. #define GLAD_GL_IS_SOME_NEW_VERSION 1
  2102. #else
  2103. #define GLAD_GL_IS_SOME_NEW_VERSION 0
  2104. #endif
  2105. static int glad_gl_get_extensions( int version, const char **out_exts, unsigned int *out_num_exts_i, char ***out_exts_i) {
  2106. #if GLAD_GL_IS_SOME_NEW_VERSION
  2107. if(GLAD_VERSION_MAJOR(version) < 3) {
  2108. #else
  2109. GLAD_UNUSED(version);
  2110. GLAD_UNUSED(out_num_exts_i);
  2111. GLAD_UNUSED(out_exts_i);
  2112. #endif
  2113. if (glad_glGetString == NULL) {
  2114. return 0;
  2115. }
  2116. *out_exts = (const char *)glad_glGetString(GL_EXTENSIONS);
  2117. #if GLAD_GL_IS_SOME_NEW_VERSION
  2118. } else {
  2119. unsigned int index = 0;
  2120. unsigned int num_exts_i = 0;
  2121. char **exts_i = NULL;
  2122. if (glad_glGetStringi == NULL || glad_glGetIntegerv == NULL) {
  2123. return 0;
  2124. }
  2125. glad_glGetIntegerv(GL_NUM_EXTENSIONS, (int*) &num_exts_i);
  2126. if (num_exts_i > 0) {
  2127. exts_i = (char **) malloc(num_exts_i * (sizeof *exts_i));
  2128. }
  2129. if (exts_i == NULL) {
  2130. return 0;
  2131. }
  2132. for(index = 0; index < num_exts_i; index++) {
  2133. const char *gl_str_tmp = (const char*) glad_glGetStringi(GL_EXTENSIONS, index);
  2134. size_t len = strlen(gl_str_tmp) + 1;
  2135. char *local_str = (char*) malloc(len * sizeof(char));
  2136. if(local_str != NULL) {
  2137. memcpy(local_str, gl_str_tmp, len * sizeof(char));
  2138. }
  2139. exts_i[index] = local_str;
  2140. }
  2141. *out_num_exts_i = num_exts_i;
  2142. *out_exts_i = exts_i;
  2143. }
  2144. #endif
  2145. return 1;
  2146. }
  2147. static void glad_gl_free_extensions(char **exts_i, unsigned int num_exts_i) {
  2148. if (exts_i != NULL) {
  2149. unsigned int index;
  2150. for(index = 0; index < num_exts_i; index++) {
  2151. free((void *) (exts_i[index]));
  2152. }
  2153. free((void *)exts_i);
  2154. exts_i = NULL;
  2155. }
  2156. }
  2157. static int glad_gl_has_extension(int version, const char *exts, unsigned int num_exts_i, char **exts_i, const char *ext) {
  2158. if(GLAD_VERSION_MAJOR(version) < 3 || !GLAD_GL_IS_SOME_NEW_VERSION) {
  2159. const char *extensions;
  2160. const char *loc;
  2161. const char *terminator;
  2162. extensions = exts;
  2163. if(extensions == NULL || ext == NULL) {
  2164. return 0;
  2165. }
  2166. while(1) {
  2167. loc = strstr(extensions, ext);
  2168. if(loc == NULL) {
  2169. return 0;
  2170. }
  2171. terminator = loc + strlen(ext);
  2172. if((loc == extensions || *(loc - 1) == ' ') &&
  2173. (*terminator == ' ' || *terminator == '\0')) {
  2174. return 1;
  2175. }
  2176. extensions = terminator;
  2177. }
  2178. } else {
  2179. unsigned int index;
  2180. for(index = 0; index < num_exts_i; index++) {
  2181. const char *e = exts_i[index];
  2182. if(strcmp(e, ext) == 0) {
  2183. return 1;
  2184. }
  2185. }
  2186. }
  2187. return 0;
  2188. }
  2189. static GLADapiproc glad_gl_get_proc_from_userptr(void *userptr, const char* name) {
  2190. return (GLAD_GNUC_EXTENSION (GLADapiproc (*)(const char *name)) userptr)(name);
  2191. }
  2192. static int glad_gl_find_extensions_gl( int version) {
  2193. const char *exts = NULL;
  2194. unsigned int num_exts_i = 0;
  2195. char **exts_i = NULL;
  2196. if (!glad_gl_get_extensions(version, &exts, &num_exts_i, &exts_i)) return 0;
  2197. GLAD_GL_ARB_debug_output = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_debug_output");
  2198. GLAD_GL_ARB_framebuffer_object = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_framebuffer_object");
  2199. GLAD_GL_ARB_get_program_binary = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_get_program_binary");
  2200. GLAD_GL_EXT_framebuffer_blit = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_EXT_framebuffer_blit");
  2201. GLAD_GL_EXT_framebuffer_multisample = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_EXT_framebuffer_multisample");
  2202. GLAD_GL_EXT_framebuffer_object = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_EXT_framebuffer_object");
  2203. GLAD_GL_OVR_multiview = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_OVR_multiview");
  2204. GLAD_GL_OVR_multiview2 = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_OVR_multiview2");
  2205. glad_gl_free_extensions(exts_i, num_exts_i);
  2206. return 1;
  2207. }
  2208. static int glad_gl_find_core_gl(void) {
  2209. int i;
  2210. const char* version;
  2211. const char* prefixes[] = {
  2212. "OpenGL ES-CM ",
  2213. "OpenGL ES-CL ",
  2214. "OpenGL ES ",
  2215. "OpenGL SC ",
  2216. NULL
  2217. };
  2218. int major = 0;
  2219. int minor = 0;
  2220. version = (const char*) glad_glGetString(GL_VERSION);
  2221. if (!version) return 0;
  2222. for (i = 0; prefixes[i]; i++) {
  2223. const size_t length = strlen(prefixes[i]);
  2224. if (strncmp(version, prefixes[i], length) == 0) {
  2225. version += length;
  2226. break;
  2227. }
  2228. }
  2229. GLAD_IMPL_UTIL_SSCANF(version, "%d.%d", &major, &minor);
  2230. GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1;
  2231. GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1;
  2232. GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1;
  2233. GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1;
  2234. GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1;
  2235. GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1;
  2236. GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2;
  2237. GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2;
  2238. GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3;
  2239. GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3;
  2240. GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3;
  2241. GLAD_GL_VERSION_3_3 = (major == 3 && minor >= 3) || major > 3;
  2242. return GLAD_MAKE_VERSION(major, minor);
  2243. }
  2244. int gladLoadGLUserPtr( GLADuserptrloadfunc load, void *userptr) {
  2245. int version;
  2246. glad_glGetString = (PFNGLGETSTRINGPROC) load(userptr, "glGetString");
  2247. if(glad_glGetString == NULL) return 0;
  2248. if(glad_glGetString(GL_VERSION) == NULL) return 0;
  2249. version = glad_gl_find_core_gl();
  2250. glad_gl_load_GL_VERSION_1_0(load, userptr);
  2251. glad_gl_load_GL_VERSION_1_1(load, userptr);
  2252. glad_gl_load_GL_VERSION_1_2(load, userptr);
  2253. glad_gl_load_GL_VERSION_1_3(load, userptr);
  2254. glad_gl_load_GL_VERSION_1_4(load, userptr);
  2255. glad_gl_load_GL_VERSION_1_5(load, userptr);
  2256. glad_gl_load_GL_VERSION_2_0(load, userptr);
  2257. glad_gl_load_GL_VERSION_2_1(load, userptr);
  2258. glad_gl_load_GL_VERSION_3_0(load, userptr);
  2259. glad_gl_load_GL_VERSION_3_1(load, userptr);
  2260. glad_gl_load_GL_VERSION_3_2(load, userptr);
  2261. glad_gl_load_GL_VERSION_3_3(load, userptr);
  2262. if (!glad_gl_find_extensions_gl(version)) return 0;
  2263. glad_gl_load_GL_ARB_debug_output(load, userptr);
  2264. glad_gl_load_GL_ARB_framebuffer_object(load, userptr);
  2265. glad_gl_load_GL_ARB_get_program_binary(load, userptr);
  2266. glad_gl_load_GL_EXT_framebuffer_blit(load, userptr);
  2267. glad_gl_load_GL_EXT_framebuffer_multisample(load, userptr);
  2268. glad_gl_load_GL_EXT_framebuffer_object(load, userptr);
  2269. glad_gl_load_GL_OVR_multiview(load, userptr);
  2270. return version;
  2271. }
  2272. int gladLoadGL( GLADloadfunc load) {
  2273. return gladLoadGLUserPtr( glad_gl_get_proc_from_userptr, GLAD_GNUC_EXTENSION (void*) load);
  2274. }
  2275. static int glad_gl_find_extensions_gles2( int version) {
  2276. const char *exts = NULL;
  2277. unsigned int num_exts_i = 0;
  2278. char **exts_i = NULL;
  2279. if (!glad_gl_get_extensions(version, &exts, &num_exts_i, &exts_i)) return 0;
  2280. GLAD_GL_OVR_multiview = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_OVR_multiview");
  2281. GLAD_GL_OVR_multiview2 = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_OVR_multiview2");
  2282. glad_gl_free_extensions(exts_i, num_exts_i);
  2283. return 1;
  2284. }
  2285. static int glad_gl_find_core_gles2(void) {
  2286. int i;
  2287. const char* version;
  2288. const char* prefixes[] = {
  2289. "OpenGL ES-CM ",
  2290. "OpenGL ES-CL ",
  2291. "OpenGL ES ",
  2292. "OpenGL SC ",
  2293. NULL
  2294. };
  2295. int major = 0;
  2296. int minor = 0;
  2297. version = (const char*) glad_glGetString(GL_VERSION);
  2298. if (!version) return 0;
  2299. for (i = 0; prefixes[i]; i++) {
  2300. const size_t length = strlen(prefixes[i]);
  2301. if (strncmp(version, prefixes[i], length) == 0) {
  2302. version += length;
  2303. break;
  2304. }
  2305. }
  2306. GLAD_IMPL_UTIL_SSCANF(version, "%d.%d", &major, &minor);
  2307. GLAD_GL_ES_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2;
  2308. GLAD_GL_ES_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3;
  2309. GLAD_GL_ES_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3;
  2310. GLAD_GL_ES_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3;
  2311. return GLAD_MAKE_VERSION(major, minor);
  2312. }
  2313. int gladLoadGLES2UserPtr( GLADuserptrloadfunc load, void *userptr) {
  2314. int version;
  2315. glad_glGetString = (PFNGLGETSTRINGPROC) load(userptr, "glGetString");
  2316. if(glad_glGetString == NULL) return 0;
  2317. if(glad_glGetString(GL_VERSION) == NULL) return 0;
  2318. version = glad_gl_find_core_gles2();
  2319. glad_gl_load_GL_ES_VERSION_2_0(load, userptr);
  2320. glad_gl_load_GL_ES_VERSION_3_0(load, userptr);
  2321. glad_gl_load_GL_ES_VERSION_3_1(load, userptr);
  2322. glad_gl_load_GL_ES_VERSION_3_2(load, userptr);
  2323. if (!glad_gl_find_extensions_gles2(version)) return 0;
  2324. glad_gl_load_GL_OVR_multiview(load, userptr);
  2325. return version;
  2326. }
  2327. int gladLoadGLES2( GLADloadfunc load) {
  2328. return gladLoadGLES2UserPtr( glad_gl_get_proc_from_userptr, GLAD_GNUC_EXTENSION (void*) load);
  2329. }
  2330. #ifdef GLAD_GL
  2331. #ifndef GLAD_LOADER_LIBRARY_C_
  2332. #define GLAD_LOADER_LIBRARY_C_
  2333. #include <stddef.h>
  2334. #include <stdlib.h>
  2335. #if GLAD_PLATFORM_WIN32
  2336. #include <windows.h>
  2337. #else
  2338. #include <dlfcn.h>
  2339. #endif
  2340. static void* glad_get_dlopen_handle(const char *lib_names[], int length) {
  2341. void *handle = NULL;
  2342. int i;
  2343. for (i = 0; i < length; ++i) {
  2344. #if GLAD_PLATFORM_WIN32
  2345. #if GLAD_PLATFORM_UWP
  2346. size_t buffer_size = (strlen(lib_names[i]) + 1) * sizeof(WCHAR);
  2347. LPWSTR buffer = (LPWSTR) malloc(buffer_size);
  2348. if (buffer != NULL) {
  2349. int ret = MultiByteToWideChar(CP_ACP, 0, lib_names[i], -1, buffer, buffer_size);
  2350. if (ret != 0) {
  2351. handle = (void*) LoadPackagedLibrary(buffer, 0);
  2352. }
  2353. free((void*) buffer);
  2354. }
  2355. #else
  2356. handle = (void*) LoadLibraryA(lib_names[i]);
  2357. #endif
  2358. #else
  2359. handle = dlopen(lib_names[i], RTLD_LAZY | RTLD_LOCAL);
  2360. #endif
  2361. if (handle != NULL) {
  2362. return handle;
  2363. }
  2364. }
  2365. return NULL;
  2366. }
  2367. static void glad_close_dlopen_handle(void* handle) {
  2368. if (handle != NULL) {
  2369. #if GLAD_PLATFORM_WIN32
  2370. FreeLibrary((HMODULE) handle);
  2371. #else
  2372. dlclose(handle);
  2373. #endif
  2374. }
  2375. }
  2376. static GLADapiproc glad_dlsym_handle(void* handle, const char *name) {
  2377. if (handle == NULL) {
  2378. return NULL;
  2379. }
  2380. #if GLAD_PLATFORM_WIN32
  2381. return (GLADapiproc) GetProcAddress((HMODULE) handle, name);
  2382. #else
  2383. return GLAD_GNUC_EXTENSION (GLADapiproc) dlsym(handle, name);
  2384. #endif
  2385. }
  2386. #endif /* GLAD_LOADER_LIBRARY_C_ */
  2387. typedef void* (GLAD_API_PTR *GLADglprocaddrfunc)(const char*);
  2388. struct _glad_gl_userptr {
  2389. void *handle;
  2390. GLADglprocaddrfunc gl_get_proc_address_ptr;
  2391. };
  2392. static GLADapiproc glad_gl_get_proc(void *vuserptr, const char *name) {
  2393. struct _glad_gl_userptr userptr = *(struct _glad_gl_userptr*) vuserptr;
  2394. GLADapiproc result = NULL;
  2395. if(userptr.gl_get_proc_address_ptr != NULL) {
  2396. result = GLAD_GNUC_EXTENSION (GLADapiproc) userptr.gl_get_proc_address_ptr(name);
  2397. }
  2398. if(result == NULL) {
  2399. result = glad_dlsym_handle(userptr.handle, name);
  2400. }
  2401. return result;
  2402. }
  2403. static void* _glad_gles_loader_handle = NULL;
  2404. static void* glad_gl_dlopen_handle(void) {
  2405. #if GLAD_PLATFORM_APPLE
  2406. static const char *NAMES[] = {
  2407. "../Frameworks/OpenGL.framework/OpenGL",
  2408. "/Library/Frameworks/OpenGL.framework/OpenGL",
  2409. "/System/Library/Frameworks/OpenGL.framework/OpenGL",
  2410. "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"
  2411. };
  2412. #elif GLAD_PLATFORM_WIN32
  2413. static const char *NAMES[] = {"opengl32.dll"};
  2414. #else
  2415. static const char *NAMES[] = {
  2416. #if defined(__CYGWIN__)
  2417. "libGL-1.so",
  2418. #endif
  2419. "libGL.so.1",
  2420. "libGL.so"
  2421. };
  2422. #endif
  2423. if (_glad_gles_loader_handle == NULL) {
  2424. _glad_gles_loader_handle = glad_get_dlopen_handle(NAMES, sizeof(NAMES) / sizeof(NAMES[0]));
  2425. }
  2426. return _glad_gles_loader_handle;
  2427. }
  2428. static struct _glad_gl_userptr glad_gl_build_userptr(void *handle) {
  2429. struct _glad_gl_userptr userptr;
  2430. userptr.handle = handle;
  2431. #if GLAD_PLATFORM_APPLE || defined(__HAIKU__)
  2432. userptr.gl_get_proc_address_ptr = NULL;
  2433. #elif GLAD_PLATFORM_WIN32
  2434. userptr.gl_get_proc_address_ptr =
  2435. (GLADglprocaddrfunc) glad_dlsym_handle(handle, "wglGetProcAddress");
  2436. #else
  2437. userptr.gl_get_proc_address_ptr =
  2438. (GLADglprocaddrfunc) glad_dlsym_handle(handle, "glXGetProcAddressARB");
  2439. #endif
  2440. return userptr;
  2441. }
  2442. int gladLoaderLoadGL(void) {
  2443. int version = 0;
  2444. void *handle;
  2445. int did_load = 0;
  2446. struct _glad_gl_userptr userptr;
  2447. did_load = _glad_gles_loader_handle == NULL;
  2448. handle = glad_gl_dlopen_handle();
  2449. if (handle) {
  2450. userptr = glad_gl_build_userptr(handle);
  2451. version = gladLoadGLUserPtr(glad_gl_get_proc, &userptr);
  2452. if (did_load) {
  2453. gladLoaderUnloadGL();
  2454. }
  2455. }
  2456. return version;
  2457. }
  2458. void gladLoaderUnloadGL(void) {
  2459. if (_glad_gles_loader_handle != NULL) {
  2460. glad_close_dlopen_handle(_glad_gles_loader_handle);
  2461. _glad_gles_loader_handle = NULL;
  2462. }
  2463. }
  2464. #endif /* GLAD_GL */
  2465. #ifdef GLAD_GLES2
  2466. #ifndef GLAD_LOADER_LIBRARY_C_
  2467. #define GLAD_LOADER_LIBRARY_C_
  2468. #include <stddef.h>
  2469. #include <stdlib.h>
  2470. #if GLAD_PLATFORM_WIN32
  2471. #include <windows.h>
  2472. #else
  2473. #include <dlfcn.h>
  2474. #endif
  2475. static void* glad_get_dlopen_handle(const char *lib_names[], int length) {
  2476. void *handle = NULL;
  2477. int i;
  2478. for (i = 0; i < length; ++i) {
  2479. #if GLAD_PLATFORM_WIN32
  2480. #if GLAD_PLATFORM_UWP
  2481. size_t buffer_size = (strlen(lib_names[i]) + 1) * sizeof(WCHAR);
  2482. LPWSTR buffer = (LPWSTR) malloc(buffer_size);
  2483. if (buffer != NULL) {
  2484. int ret = MultiByteToWideChar(CP_ACP, 0, lib_names[i], -1, buffer, buffer_size);
  2485. if (ret != 0) {
  2486. handle = (void*) LoadPackagedLibrary(buffer, 0);
  2487. }
  2488. free((void*) buffer);
  2489. }
  2490. #else
  2491. handle = (void*) LoadLibraryA(lib_names[i]);
  2492. #endif
  2493. #else
  2494. handle = dlopen(lib_names[i], RTLD_LAZY | RTLD_LOCAL);
  2495. #endif
  2496. if (handle != NULL) {
  2497. return handle;
  2498. }
  2499. }
  2500. return NULL;
  2501. }
  2502. static void glad_close_dlopen_handle(void* handle) {
  2503. if (handle != NULL) {
  2504. #if GLAD_PLATFORM_WIN32
  2505. FreeLibrary((HMODULE) handle);
  2506. #else
  2507. dlclose(handle);
  2508. #endif
  2509. }
  2510. }
  2511. static GLADapiproc glad_dlsym_handle(void* handle, const char *name) {
  2512. if (handle == NULL) {
  2513. return NULL;
  2514. }
  2515. #if GLAD_PLATFORM_WIN32
  2516. return (GLADapiproc) GetProcAddress((HMODULE) handle, name);
  2517. #else
  2518. return GLAD_GNUC_EXTENSION (GLADapiproc) dlsym(handle, name);
  2519. #endif
  2520. }
  2521. #endif /* GLAD_LOADER_LIBRARY_C_ */
  2522. #if GLAD_PLATFORM_EMSCRIPTEN
  2523. #ifndef GLAD_EGL_H_
  2524. typedef void (*__eglMustCastToProperFunctionPointerType)(void);
  2525. typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);
  2526. #endif
  2527. extern __eglMustCastToProperFunctionPointerType emscripten_GetProcAddress(const char *name);
  2528. #elif EGL_STATIC
  2529. typedef void (*__eglMustCastToProperFunctionPointerType)(void);
  2530. typedef __eglMustCastToProperFunctionPointerType (GLAD_API_PTR *PFNEGLGETPROCADDRESSPROC)(const char *name);
  2531. extern __eglMustCastToProperFunctionPointerType GLAD_API_PTR eglGetProcAddress(const char *name);
  2532. #else
  2533. #include <glad/egl.h>
  2534. #endif
  2535. struct _glad_gles2_userptr {
  2536. void *handle;
  2537. PFNEGLGETPROCADDRESSPROC get_proc_address_ptr;
  2538. };
  2539. static GLADapiproc glad_gles2_get_proc(void *vuserptr, const char* name) {
  2540. struct _glad_gles2_userptr userptr = *(struct _glad_gles2_userptr*) vuserptr;
  2541. GLADapiproc result = NULL;
  2542. #if GLAD_PLATFORM_EMSCRIPTEN
  2543. GLAD_UNUSED(glad_dlsym_handle);
  2544. #else
  2545. result = glad_dlsym_handle(userptr.handle, name);
  2546. #endif
  2547. if (result == NULL) {
  2548. result = userptr.get_proc_address_ptr(name);
  2549. }
  2550. return result;
  2551. }
  2552. static void* _glad_GL_loader_handle = NULL;
  2553. static void* glad_gles2_dlopen_handle(void) {
  2554. #if GLAD_PLATFORM_EMSCRIPTEN
  2555. #elif GLAD_PLATFORM_APPLE
  2556. static const char *NAMES[] = {"libGLESv2.dylib"};
  2557. #elif GLAD_PLATFORM_WIN32
  2558. static const char *NAMES[] = {"GLESv2.dll", "libGLESv2.dll"};
  2559. #else
  2560. static const char *NAMES[] = {"libGLESv2.so.2", "libGLESv2.so"};
  2561. #endif
  2562. #if GLAD_PLATFORM_EMSCRIPTEN
  2563. GLAD_UNUSED(glad_get_dlopen_handle);
  2564. return NULL;
  2565. #else
  2566. if (_glad_GL_loader_handle == NULL) {
  2567. _glad_GL_loader_handle = glad_get_dlopen_handle(NAMES, sizeof(NAMES) / sizeof(NAMES[0]));
  2568. }
  2569. return _glad_GL_loader_handle;
  2570. #endif
  2571. }
  2572. static struct _glad_gles2_userptr glad_gles2_build_userptr(void *handle) {
  2573. struct _glad_gles2_userptr userptr;
  2574. #if GLAD_PLATFORM_EMSCRIPTEN
  2575. GLAD_UNUSED(handle);
  2576. userptr.get_proc_address_ptr = emscripten_GetProcAddress;
  2577. #else
  2578. userptr.handle = handle;
  2579. userptr.get_proc_address_ptr = eglGetProcAddress;
  2580. #endif
  2581. return userptr;
  2582. }
  2583. int gladLoaderLoadGLES2(void) {
  2584. int version = 0;
  2585. void *handle = NULL;
  2586. int did_load = 0;
  2587. struct _glad_gles2_userptr userptr;
  2588. #if GLAD_PLATFORM_EMSCRIPTEN
  2589. GLAD_UNUSED(handle);
  2590. GLAD_UNUSED(did_load);
  2591. GLAD_UNUSED(glad_gles2_dlopen_handle);
  2592. GLAD_UNUSED(glad_gles2_build_userptr);
  2593. userptr.get_proc_address_ptr = emscripten_GetProcAddress;
  2594. version = gladLoadGLES2UserPtr(glad_gles2_get_proc, &userptr);
  2595. #else
  2596. if (eglGetProcAddress == NULL) {
  2597. return 0;
  2598. }
  2599. did_load = _glad_GL_loader_handle == NULL;
  2600. handle = glad_gles2_dlopen_handle();
  2601. if (handle != NULL) {
  2602. userptr = glad_gles2_build_userptr(handle);
  2603. version = gladLoadGLES2UserPtr(glad_gles2_get_proc, &userptr);
  2604. if (!version && did_load) {
  2605. gladLoaderUnloadGLES2();
  2606. }
  2607. }
  2608. #endif
  2609. return version;
  2610. }
  2611. void gladLoaderUnloadGLES2(void) {
  2612. if (_glad_GL_loader_handle != NULL) {
  2613. glad_close_dlopen_handle(_glad_GL_loader_handle);
  2614. _glad_GL_loader_handle = NULL;
  2615. }
  2616. }
  2617. #endif /* GLAD_GLES2 */
  2618. #ifdef __cplusplus
  2619. }
  2620. #endif