glad_gl.c 107 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include <glad/gl.h>
  5. #ifndef GLAD_IMPL_UTIL_C_
  6. #define GLAD_IMPL_UTIL_C_
  7. #ifdef _MSC_VER
  8. #define GLAD_IMPL_UTIL_SSCANF sscanf_s
  9. #else
  10. #define GLAD_IMPL_UTIL_SSCANF sscanf
  11. #endif
  12. #endif /* GLAD_IMPL_UTIL_C_ */
  13. int GLAD_GL_VERSION_1_0 = 0;
  14. int GLAD_GL_VERSION_1_1 = 0;
  15. int GLAD_GL_VERSION_1_2 = 0;
  16. int GLAD_GL_VERSION_1_3 = 0;
  17. int GLAD_GL_VERSION_1_4 = 0;
  18. int GLAD_GL_VERSION_1_5 = 0;
  19. int GLAD_GL_VERSION_2_0 = 0;
  20. int GLAD_GL_VERSION_2_1 = 0;
  21. int GLAD_GL_VERSION_3_0 = 0;
  22. int GLAD_GL_VERSION_3_1 = 0;
  23. int GLAD_GL_VERSION_3_2 = 0;
  24. int GLAD_GL_VERSION_3_3 = 0;
  25. int GLAD_GL_ARB_multisample = 0;
  26. int GLAD_GL_ARB_robustness = 0;
  27. int GLAD_GL_KHR_debug = 0;
  28. PFNGLACCUMPROC glad_glAccum = NULL;
  29. PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL;
  30. PFNGLALPHAFUNCPROC glad_glAlphaFunc = NULL;
  31. PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident = NULL;
  32. PFNGLARRAYELEMENTPROC glad_glArrayElement = NULL;
  33. PFNGLATTACHSHADERPROC glad_glAttachShader = NULL;
  34. PFNGLBEGINPROC glad_glBegin = NULL;
  35. PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL;
  36. PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL;
  37. PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL;
  38. PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL;
  39. PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL;
  40. PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL;
  41. PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL;
  42. PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL;
  43. PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL;
  44. PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL;
  45. PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL;
  46. PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL;
  47. PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL;
  48. PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL;
  49. PFNGLBITMAPPROC glad_glBitmap = NULL;
  50. PFNGLBLENDCOLORPROC glad_glBlendColor = NULL;
  51. PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL;
  52. PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL;
  53. PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL;
  54. PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL;
  55. PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL;
  56. PFNGLBUFFERDATAPROC glad_glBufferData = NULL;
  57. PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL;
  58. PFNGLCALLLISTPROC glad_glCallList = NULL;
  59. PFNGLCALLLISTSPROC glad_glCallLists = NULL;
  60. PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL;
  61. PFNGLCLAMPCOLORPROC glad_glClampColor = NULL;
  62. PFNGLCLEARPROC glad_glClear = NULL;
  63. PFNGLCLEARACCUMPROC glad_glClearAccum = NULL;
  64. PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL;
  65. PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL;
  66. PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL;
  67. PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL;
  68. PFNGLCLEARCOLORPROC glad_glClearColor = NULL;
  69. PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL;
  70. PFNGLCLEARINDEXPROC glad_glClearIndex = NULL;
  71. PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL;
  72. PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture = NULL;
  73. PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL;
  74. PFNGLCLIPPLANEPROC glad_glClipPlane = NULL;
  75. PFNGLCOLOR3BPROC glad_glColor3b = NULL;
  76. PFNGLCOLOR3BVPROC glad_glColor3bv = NULL;
  77. PFNGLCOLOR3DPROC glad_glColor3d = NULL;
  78. PFNGLCOLOR3DVPROC glad_glColor3dv = NULL;
  79. PFNGLCOLOR3FPROC glad_glColor3f = NULL;
  80. PFNGLCOLOR3FVPROC glad_glColor3fv = NULL;
  81. PFNGLCOLOR3IPROC glad_glColor3i = NULL;
  82. PFNGLCOLOR3IVPROC glad_glColor3iv = NULL;
  83. PFNGLCOLOR3SPROC glad_glColor3s = NULL;
  84. PFNGLCOLOR3SVPROC glad_glColor3sv = NULL;
  85. PFNGLCOLOR3UBPROC glad_glColor3ub = NULL;
  86. PFNGLCOLOR3UBVPROC glad_glColor3ubv = NULL;
  87. PFNGLCOLOR3UIPROC glad_glColor3ui = NULL;
  88. PFNGLCOLOR3UIVPROC glad_glColor3uiv = NULL;
  89. PFNGLCOLOR3USPROC glad_glColor3us = NULL;
  90. PFNGLCOLOR3USVPROC glad_glColor3usv = NULL;
  91. PFNGLCOLOR4BPROC glad_glColor4b = NULL;
  92. PFNGLCOLOR4BVPROC glad_glColor4bv = NULL;
  93. PFNGLCOLOR4DPROC glad_glColor4d = NULL;
  94. PFNGLCOLOR4DVPROC glad_glColor4dv = NULL;
  95. PFNGLCOLOR4FPROC glad_glColor4f = NULL;
  96. PFNGLCOLOR4FVPROC glad_glColor4fv = NULL;
  97. PFNGLCOLOR4IPROC glad_glColor4i = NULL;
  98. PFNGLCOLOR4IVPROC glad_glColor4iv = NULL;
  99. PFNGLCOLOR4SPROC glad_glColor4s = NULL;
  100. PFNGLCOLOR4SVPROC glad_glColor4sv = NULL;
  101. PFNGLCOLOR4UBPROC glad_glColor4ub = NULL;
  102. PFNGLCOLOR4UBVPROC glad_glColor4ubv = NULL;
  103. PFNGLCOLOR4UIPROC glad_glColor4ui = NULL;
  104. PFNGLCOLOR4UIVPROC glad_glColor4uiv = NULL;
  105. PFNGLCOLOR4USPROC glad_glColor4us = NULL;
  106. PFNGLCOLOR4USVPROC glad_glColor4usv = NULL;
  107. PFNGLCOLORMASKPROC glad_glColorMask = NULL;
  108. PFNGLCOLORMASKIPROC glad_glColorMaski = NULL;
  109. PFNGLCOLORMATERIALPROC glad_glColorMaterial = NULL;
  110. PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL;
  111. PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL;
  112. PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL;
  113. PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL;
  114. PFNGLCOLORPOINTERPROC glad_glColorPointer = NULL;
  115. PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL;
  116. PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL;
  117. PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL;
  118. PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL;
  119. PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL;
  120. PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL;
  121. PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL;
  122. PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL;
  123. PFNGLCOPYPIXELSPROC glad_glCopyPixels = NULL;
  124. PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL;
  125. PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL;
  126. PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL;
  127. PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL;
  128. PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL;
  129. PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL;
  130. PFNGLCREATESHADERPROC glad_glCreateShader = NULL;
  131. PFNGLCULLFACEPROC glad_glCullFace = NULL;
  132. PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback = NULL;
  133. PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl = NULL;
  134. PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert = NULL;
  135. PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL;
  136. PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL;
  137. PFNGLDELETELISTSPROC glad_glDeleteLists = NULL;
  138. PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL;
  139. PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL;
  140. PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL;
  141. PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL;
  142. PFNGLDELETESHADERPROC glad_glDeleteShader = NULL;
  143. PFNGLDELETESYNCPROC glad_glDeleteSync = NULL;
  144. PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL;
  145. PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL;
  146. PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL;
  147. PFNGLDEPTHMASKPROC glad_glDepthMask = NULL;
  148. PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL;
  149. PFNGLDETACHSHADERPROC glad_glDetachShader = NULL;
  150. PFNGLDISABLEPROC glad_glDisable = NULL;
  151. PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState = NULL;
  152. PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL;
  153. PFNGLDISABLEIPROC glad_glDisablei = NULL;
  154. PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL;
  155. PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL;
  156. PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL;
  157. PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL;
  158. PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL;
  159. PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL;
  160. PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL;
  161. PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL;
  162. PFNGLDRAWPIXELSPROC glad_glDrawPixels = NULL;
  163. PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL;
  164. PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL;
  165. PFNGLEDGEFLAGPROC glad_glEdgeFlag = NULL;
  166. PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer = NULL;
  167. PFNGLEDGEFLAGVPROC glad_glEdgeFlagv = NULL;
  168. PFNGLENABLEPROC glad_glEnable = NULL;
  169. PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState = NULL;
  170. PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL;
  171. PFNGLENABLEIPROC glad_glEnablei = NULL;
  172. PFNGLENDPROC glad_glEnd = NULL;
  173. PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL;
  174. PFNGLENDLISTPROC glad_glEndList = NULL;
  175. PFNGLENDQUERYPROC glad_glEndQuery = NULL;
  176. PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL;
  177. PFNGLEVALCOORD1DPROC glad_glEvalCoord1d = NULL;
  178. PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv = NULL;
  179. PFNGLEVALCOORD1FPROC glad_glEvalCoord1f = NULL;
  180. PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv = NULL;
  181. PFNGLEVALCOORD2DPROC glad_glEvalCoord2d = NULL;
  182. PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv = NULL;
  183. PFNGLEVALCOORD2FPROC glad_glEvalCoord2f = NULL;
  184. PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv = NULL;
  185. PFNGLEVALMESH1PROC glad_glEvalMesh1 = NULL;
  186. PFNGLEVALMESH2PROC glad_glEvalMesh2 = NULL;
  187. PFNGLEVALPOINT1PROC glad_glEvalPoint1 = NULL;
  188. PFNGLEVALPOINT2PROC glad_glEvalPoint2 = NULL;
  189. PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer = NULL;
  190. PFNGLFENCESYNCPROC glad_glFenceSync = NULL;
  191. PFNGLFINISHPROC glad_glFinish = NULL;
  192. PFNGLFLUSHPROC glad_glFlush = NULL;
  193. PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL;
  194. PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer = NULL;
  195. PFNGLFOGCOORDDPROC glad_glFogCoordd = NULL;
  196. PFNGLFOGCOORDDVPROC glad_glFogCoorddv = NULL;
  197. PFNGLFOGCOORDFPROC glad_glFogCoordf = NULL;
  198. PFNGLFOGCOORDFVPROC glad_glFogCoordfv = NULL;
  199. PFNGLFOGFPROC glad_glFogf = NULL;
  200. PFNGLFOGFVPROC glad_glFogfv = NULL;
  201. PFNGLFOGIPROC glad_glFogi = NULL;
  202. PFNGLFOGIVPROC glad_glFogiv = NULL;
  203. PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL;
  204. PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL;
  205. PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL;
  206. PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL;
  207. PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL;
  208. PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL;
  209. PFNGLFRONTFACEPROC glad_glFrontFace = NULL;
  210. PFNGLFRUSTUMPROC glad_glFrustum = NULL;
  211. PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL;
  212. PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL;
  213. PFNGLGENLISTSPROC glad_glGenLists = NULL;
  214. PFNGLGENQUERIESPROC glad_glGenQueries = NULL;
  215. PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL;
  216. PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL;
  217. PFNGLGENTEXTURESPROC glad_glGenTextures = NULL;
  218. PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL;
  219. PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL;
  220. PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL;
  221. PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL;
  222. PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL;
  223. PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL;
  224. PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL;
  225. PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL;
  226. PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL;
  227. PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL;
  228. PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL;
  229. PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL;
  230. PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL;
  231. PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL;
  232. PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL;
  233. PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL;
  234. PFNGLGETCLIPPLANEPROC glad_glGetClipPlane = NULL;
  235. PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL;
  236. PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog = NULL;
  237. PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL;
  238. PFNGLGETERRORPROC glad_glGetError = NULL;
  239. PFNGLGETFLOATVPROC glad_glGetFloatv = NULL;
  240. PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL;
  241. PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL;
  242. PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL;
  243. PFNGLGETGRAPHICSRESETSTATUSARBPROC glad_glGetGraphicsResetStatusARB = NULL;
  244. PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL;
  245. PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL;
  246. PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL;
  247. PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL;
  248. PFNGLGETLIGHTFVPROC glad_glGetLightfv = NULL;
  249. PFNGLGETLIGHTIVPROC glad_glGetLightiv = NULL;
  250. PFNGLGETMAPDVPROC glad_glGetMapdv = NULL;
  251. PFNGLGETMAPFVPROC glad_glGetMapfv = NULL;
  252. PFNGLGETMAPIVPROC glad_glGetMapiv = NULL;
  253. PFNGLGETMATERIALFVPROC glad_glGetMaterialfv = NULL;
  254. PFNGLGETMATERIALIVPROC glad_glGetMaterialiv = NULL;
  255. PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL;
  256. PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel = NULL;
  257. PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel = NULL;
  258. PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv = NULL;
  259. PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv = NULL;
  260. PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv = NULL;
  261. PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL;
  262. PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple = NULL;
  263. PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL;
  264. PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL;
  265. PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL;
  266. PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL;
  267. PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL;
  268. PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL;
  269. PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL;
  270. PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL;
  271. PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL;
  272. PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL;
  273. PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL;
  274. PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL;
  275. PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL;
  276. PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL;
  277. PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL;
  278. PFNGLGETSTRINGPROC glad_glGetString = NULL;
  279. PFNGLGETSTRINGIPROC glad_glGetStringi = NULL;
  280. PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL;
  281. PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv = NULL;
  282. PFNGLGETTEXENVIVPROC glad_glGetTexEnviv = NULL;
  283. PFNGLGETTEXGENDVPROC glad_glGetTexGendv = NULL;
  284. PFNGLGETTEXGENFVPROC glad_glGetTexGenfv = NULL;
  285. PFNGLGETTEXGENIVPROC glad_glGetTexGeniv = NULL;
  286. PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL;
  287. PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL;
  288. PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL;
  289. PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL;
  290. PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL;
  291. PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL;
  292. PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL;
  293. PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL;
  294. PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL;
  295. PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL;
  296. PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL;
  297. PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL;
  298. PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL;
  299. PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL;
  300. PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL;
  301. PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL;
  302. PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL;
  303. PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL;
  304. PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL;
  305. PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL;
  306. PFNGLGETNCOLORTABLEARBPROC glad_glGetnColorTableARB = NULL;
  307. PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC glad_glGetnCompressedTexImageARB = NULL;
  308. PFNGLGETNCONVOLUTIONFILTERARBPROC glad_glGetnConvolutionFilterARB = NULL;
  309. PFNGLGETNHISTOGRAMARBPROC glad_glGetnHistogramARB = NULL;
  310. PFNGLGETNMAPDVARBPROC glad_glGetnMapdvARB = NULL;
  311. PFNGLGETNMAPFVARBPROC glad_glGetnMapfvARB = NULL;
  312. PFNGLGETNMAPIVARBPROC glad_glGetnMapivARB = NULL;
  313. PFNGLGETNMINMAXARBPROC glad_glGetnMinmaxARB = NULL;
  314. PFNGLGETNPIXELMAPFVARBPROC glad_glGetnPixelMapfvARB = NULL;
  315. PFNGLGETNPIXELMAPUIVARBPROC glad_glGetnPixelMapuivARB = NULL;
  316. PFNGLGETNPIXELMAPUSVARBPROC glad_glGetnPixelMapusvARB = NULL;
  317. PFNGLGETNPOLYGONSTIPPLEARBPROC glad_glGetnPolygonStippleARB = NULL;
  318. PFNGLGETNSEPARABLEFILTERARBPROC glad_glGetnSeparableFilterARB = NULL;
  319. PFNGLGETNTEXIMAGEARBPROC glad_glGetnTexImageARB = NULL;
  320. PFNGLGETNUNIFORMDVARBPROC glad_glGetnUniformdvARB = NULL;
  321. PFNGLGETNUNIFORMFVARBPROC glad_glGetnUniformfvARB = NULL;
  322. PFNGLGETNUNIFORMIVARBPROC glad_glGetnUniformivARB = NULL;
  323. PFNGLGETNUNIFORMUIVARBPROC glad_glGetnUniformuivARB = NULL;
  324. PFNGLHINTPROC glad_glHint = NULL;
  325. PFNGLINDEXMASKPROC glad_glIndexMask = NULL;
  326. PFNGLINDEXPOINTERPROC glad_glIndexPointer = NULL;
  327. PFNGLINDEXDPROC glad_glIndexd = NULL;
  328. PFNGLINDEXDVPROC glad_glIndexdv = NULL;
  329. PFNGLINDEXFPROC glad_glIndexf = NULL;
  330. PFNGLINDEXFVPROC glad_glIndexfv = NULL;
  331. PFNGLINDEXIPROC glad_glIndexi = NULL;
  332. PFNGLINDEXIVPROC glad_glIndexiv = NULL;
  333. PFNGLINDEXSPROC glad_glIndexs = NULL;
  334. PFNGLINDEXSVPROC glad_glIndexsv = NULL;
  335. PFNGLINDEXUBPROC glad_glIndexub = NULL;
  336. PFNGLINDEXUBVPROC glad_glIndexubv = NULL;
  337. PFNGLINITNAMESPROC glad_glInitNames = NULL;
  338. PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays = NULL;
  339. PFNGLISBUFFERPROC glad_glIsBuffer = NULL;
  340. PFNGLISENABLEDPROC glad_glIsEnabled = NULL;
  341. PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL;
  342. PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL;
  343. PFNGLISLISTPROC glad_glIsList = NULL;
  344. PFNGLISPROGRAMPROC glad_glIsProgram = NULL;
  345. PFNGLISQUERYPROC glad_glIsQuery = NULL;
  346. PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL;
  347. PFNGLISSAMPLERPROC glad_glIsSampler = NULL;
  348. PFNGLISSHADERPROC glad_glIsShader = NULL;
  349. PFNGLISSYNCPROC glad_glIsSync = NULL;
  350. PFNGLISTEXTUREPROC glad_glIsTexture = NULL;
  351. PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL;
  352. PFNGLLIGHTMODELFPROC glad_glLightModelf = NULL;
  353. PFNGLLIGHTMODELFVPROC glad_glLightModelfv = NULL;
  354. PFNGLLIGHTMODELIPROC glad_glLightModeli = NULL;
  355. PFNGLLIGHTMODELIVPROC glad_glLightModeliv = NULL;
  356. PFNGLLIGHTFPROC glad_glLightf = NULL;
  357. PFNGLLIGHTFVPROC glad_glLightfv = NULL;
  358. PFNGLLIGHTIPROC glad_glLighti = NULL;
  359. PFNGLLIGHTIVPROC glad_glLightiv = NULL;
  360. PFNGLLINESTIPPLEPROC glad_glLineStipple = NULL;
  361. PFNGLLINEWIDTHPROC glad_glLineWidth = NULL;
  362. PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL;
  363. PFNGLLISTBASEPROC glad_glListBase = NULL;
  364. PFNGLLOADIDENTITYPROC glad_glLoadIdentity = NULL;
  365. PFNGLLOADMATRIXDPROC glad_glLoadMatrixd = NULL;
  366. PFNGLLOADMATRIXFPROC glad_glLoadMatrixf = NULL;
  367. PFNGLLOADNAMEPROC glad_glLoadName = NULL;
  368. PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd = NULL;
  369. PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf = NULL;
  370. PFNGLLOGICOPPROC glad_glLogicOp = NULL;
  371. PFNGLMAP1DPROC glad_glMap1d = NULL;
  372. PFNGLMAP1FPROC glad_glMap1f = NULL;
  373. PFNGLMAP2DPROC glad_glMap2d = NULL;
  374. PFNGLMAP2FPROC glad_glMap2f = NULL;
  375. PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL;
  376. PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL;
  377. PFNGLMAPGRID1DPROC glad_glMapGrid1d = NULL;
  378. PFNGLMAPGRID1FPROC glad_glMapGrid1f = NULL;
  379. PFNGLMAPGRID2DPROC glad_glMapGrid2d = NULL;
  380. PFNGLMAPGRID2FPROC glad_glMapGrid2f = NULL;
  381. PFNGLMATERIALFPROC glad_glMaterialf = NULL;
  382. PFNGLMATERIALFVPROC glad_glMaterialfv = NULL;
  383. PFNGLMATERIALIPROC glad_glMateriali = NULL;
  384. PFNGLMATERIALIVPROC glad_glMaterialiv = NULL;
  385. PFNGLMATRIXMODEPROC glad_glMatrixMode = NULL;
  386. PFNGLMULTMATRIXDPROC glad_glMultMatrixd = NULL;
  387. PFNGLMULTMATRIXFPROC glad_glMultMatrixf = NULL;
  388. PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd = NULL;
  389. PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf = NULL;
  390. PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL;
  391. PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL;
  392. PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL;
  393. PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d = NULL;
  394. PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv = NULL;
  395. PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f = NULL;
  396. PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv = NULL;
  397. PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i = NULL;
  398. PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv = NULL;
  399. PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s = NULL;
  400. PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv = NULL;
  401. PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d = NULL;
  402. PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv = NULL;
  403. PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f = NULL;
  404. PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv = NULL;
  405. PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i = NULL;
  406. PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv = NULL;
  407. PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s = NULL;
  408. PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv = NULL;
  409. PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d = NULL;
  410. PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv = NULL;
  411. PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f = NULL;
  412. PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv = NULL;
  413. PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i = NULL;
  414. PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv = NULL;
  415. PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s = NULL;
  416. PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv = NULL;
  417. PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d = NULL;
  418. PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv = NULL;
  419. PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f = NULL;
  420. PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv = NULL;
  421. PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i = NULL;
  422. PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv = NULL;
  423. PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s = NULL;
  424. PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv = NULL;
  425. PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL;
  426. PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL;
  427. PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL;
  428. PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL;
  429. PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL;
  430. PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL;
  431. PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL;
  432. PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL;
  433. PFNGLNEWLISTPROC glad_glNewList = NULL;
  434. PFNGLNORMAL3BPROC glad_glNormal3b = NULL;
  435. PFNGLNORMAL3BVPROC glad_glNormal3bv = NULL;
  436. PFNGLNORMAL3DPROC glad_glNormal3d = NULL;
  437. PFNGLNORMAL3DVPROC glad_glNormal3dv = NULL;
  438. PFNGLNORMAL3FPROC glad_glNormal3f = NULL;
  439. PFNGLNORMAL3FVPROC glad_glNormal3fv = NULL;
  440. PFNGLNORMAL3IPROC glad_glNormal3i = NULL;
  441. PFNGLNORMAL3IVPROC glad_glNormal3iv = NULL;
  442. PFNGLNORMAL3SPROC glad_glNormal3s = NULL;
  443. PFNGLNORMAL3SVPROC glad_glNormal3sv = NULL;
  444. PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL;
  445. PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL;
  446. PFNGLNORMALPOINTERPROC glad_glNormalPointer = NULL;
  447. PFNGLOBJECTLABELPROC glad_glObjectLabel = NULL;
  448. PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel = NULL;
  449. PFNGLORTHOPROC glad_glOrtho = NULL;
  450. PFNGLPASSTHROUGHPROC glad_glPassThrough = NULL;
  451. PFNGLPIXELMAPFVPROC glad_glPixelMapfv = NULL;
  452. PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv = NULL;
  453. PFNGLPIXELMAPUSVPROC glad_glPixelMapusv = NULL;
  454. PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL;
  455. PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL;
  456. PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf = NULL;
  457. PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi = NULL;
  458. PFNGLPIXELZOOMPROC glad_glPixelZoom = NULL;
  459. PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL;
  460. PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL;
  461. PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL;
  462. PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL;
  463. PFNGLPOINTSIZEPROC glad_glPointSize = NULL;
  464. PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL;
  465. PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL;
  466. PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple = NULL;
  467. PFNGLPOPATTRIBPROC glad_glPopAttrib = NULL;
  468. PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib = NULL;
  469. PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup = NULL;
  470. PFNGLPOPMATRIXPROC glad_glPopMatrix = NULL;
  471. PFNGLPOPNAMEPROC glad_glPopName = NULL;
  472. PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL;
  473. PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures = NULL;
  474. PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL;
  475. PFNGLPUSHATTRIBPROC glad_glPushAttrib = NULL;
  476. PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib = NULL;
  477. PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup = NULL;
  478. PFNGLPUSHMATRIXPROC glad_glPushMatrix = NULL;
  479. PFNGLPUSHNAMEPROC glad_glPushName = NULL;
  480. PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL;
  481. PFNGLRASTERPOS2DPROC glad_glRasterPos2d = NULL;
  482. PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv = NULL;
  483. PFNGLRASTERPOS2FPROC glad_glRasterPos2f = NULL;
  484. PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv = NULL;
  485. PFNGLRASTERPOS2IPROC glad_glRasterPos2i = NULL;
  486. PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv = NULL;
  487. PFNGLRASTERPOS2SPROC glad_glRasterPos2s = NULL;
  488. PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv = NULL;
  489. PFNGLRASTERPOS3DPROC glad_glRasterPos3d = NULL;
  490. PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv = NULL;
  491. PFNGLRASTERPOS3FPROC glad_glRasterPos3f = NULL;
  492. PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv = NULL;
  493. PFNGLRASTERPOS3IPROC glad_glRasterPos3i = NULL;
  494. PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv = NULL;
  495. PFNGLRASTERPOS3SPROC glad_glRasterPos3s = NULL;
  496. PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv = NULL;
  497. PFNGLRASTERPOS4DPROC glad_glRasterPos4d = NULL;
  498. PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv = NULL;
  499. PFNGLRASTERPOS4FPROC glad_glRasterPos4f = NULL;
  500. PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv = NULL;
  501. PFNGLRASTERPOS4IPROC glad_glRasterPos4i = NULL;
  502. PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv = NULL;
  503. PFNGLRASTERPOS4SPROC glad_glRasterPos4s = NULL;
  504. PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv = NULL;
  505. PFNGLREADBUFFERPROC glad_glReadBuffer = NULL;
  506. PFNGLREADPIXELSPROC glad_glReadPixels = NULL;
  507. PFNGLREADNPIXELSPROC glad_glReadnPixels = NULL;
  508. PFNGLREADNPIXELSARBPROC glad_glReadnPixelsARB = NULL;
  509. PFNGLRECTDPROC glad_glRectd = NULL;
  510. PFNGLRECTDVPROC glad_glRectdv = NULL;
  511. PFNGLRECTFPROC glad_glRectf = NULL;
  512. PFNGLRECTFVPROC glad_glRectfv = NULL;
  513. PFNGLRECTIPROC glad_glRecti = NULL;
  514. PFNGLRECTIVPROC glad_glRectiv = NULL;
  515. PFNGLRECTSPROC glad_glRects = NULL;
  516. PFNGLRECTSVPROC glad_glRectsv = NULL;
  517. PFNGLRENDERMODEPROC glad_glRenderMode = NULL;
  518. PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL;
  519. PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL;
  520. PFNGLROTATEDPROC glad_glRotated = NULL;
  521. PFNGLROTATEFPROC glad_glRotatef = NULL;
  522. PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL;
  523. PFNGLSAMPLECOVERAGEARBPROC glad_glSampleCoverageARB = NULL;
  524. PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL;
  525. PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL;
  526. PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL;
  527. PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL;
  528. PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL;
  529. PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL;
  530. PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL;
  531. PFNGLSCALEDPROC glad_glScaled = NULL;
  532. PFNGLSCALEFPROC glad_glScalef = NULL;
  533. PFNGLSCISSORPROC glad_glScissor = NULL;
  534. PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b = NULL;
  535. PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv = NULL;
  536. PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d = NULL;
  537. PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv = NULL;
  538. PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f = NULL;
  539. PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv = NULL;
  540. PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i = NULL;
  541. PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv = NULL;
  542. PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s = NULL;
  543. PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv = NULL;
  544. PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub = NULL;
  545. PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv = NULL;
  546. PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui = NULL;
  547. PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv = NULL;
  548. PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us = NULL;
  549. PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv = NULL;
  550. PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL;
  551. PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL;
  552. PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer = NULL;
  553. PFNGLSELECTBUFFERPROC glad_glSelectBuffer = NULL;
  554. PFNGLSHADEMODELPROC glad_glShadeModel = NULL;
  555. PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL;
  556. PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL;
  557. PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL;
  558. PFNGLSTENCILMASKPROC glad_glStencilMask = NULL;
  559. PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL;
  560. PFNGLSTENCILOPPROC glad_glStencilOp = NULL;
  561. PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL;
  562. PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL;
  563. PFNGLTEXCOORD1DPROC glad_glTexCoord1d = NULL;
  564. PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv = NULL;
  565. PFNGLTEXCOORD1FPROC glad_glTexCoord1f = NULL;
  566. PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv = NULL;
  567. PFNGLTEXCOORD1IPROC glad_glTexCoord1i = NULL;
  568. PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv = NULL;
  569. PFNGLTEXCOORD1SPROC glad_glTexCoord1s = NULL;
  570. PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv = NULL;
  571. PFNGLTEXCOORD2DPROC glad_glTexCoord2d = NULL;
  572. PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv = NULL;
  573. PFNGLTEXCOORD2FPROC glad_glTexCoord2f = NULL;
  574. PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv = NULL;
  575. PFNGLTEXCOORD2IPROC glad_glTexCoord2i = NULL;
  576. PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv = NULL;
  577. PFNGLTEXCOORD2SPROC glad_glTexCoord2s = NULL;
  578. PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv = NULL;
  579. PFNGLTEXCOORD3DPROC glad_glTexCoord3d = NULL;
  580. PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv = NULL;
  581. PFNGLTEXCOORD3FPROC glad_glTexCoord3f = NULL;
  582. PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv = NULL;
  583. PFNGLTEXCOORD3IPROC glad_glTexCoord3i = NULL;
  584. PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv = NULL;
  585. PFNGLTEXCOORD3SPROC glad_glTexCoord3s = NULL;
  586. PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv = NULL;
  587. PFNGLTEXCOORD4DPROC glad_glTexCoord4d = NULL;
  588. PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv = NULL;
  589. PFNGLTEXCOORD4FPROC glad_glTexCoord4f = NULL;
  590. PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv = NULL;
  591. PFNGLTEXCOORD4IPROC glad_glTexCoord4i = NULL;
  592. PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv = NULL;
  593. PFNGLTEXCOORD4SPROC glad_glTexCoord4s = NULL;
  594. PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv = NULL;
  595. PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL;
  596. PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL;
  597. PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL;
  598. PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL;
  599. PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL;
  600. PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL;
  601. PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL;
  602. PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL;
  603. PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer = NULL;
  604. PFNGLTEXENVFPROC glad_glTexEnvf = NULL;
  605. PFNGLTEXENVFVPROC glad_glTexEnvfv = NULL;
  606. PFNGLTEXENVIPROC glad_glTexEnvi = NULL;
  607. PFNGLTEXENVIVPROC glad_glTexEnviv = NULL;
  608. PFNGLTEXGENDPROC glad_glTexGend = NULL;
  609. PFNGLTEXGENDVPROC glad_glTexGendv = NULL;
  610. PFNGLTEXGENFPROC glad_glTexGenf = NULL;
  611. PFNGLTEXGENFVPROC glad_glTexGenfv = NULL;
  612. PFNGLTEXGENIPROC glad_glTexGeni = NULL;
  613. PFNGLTEXGENIVPROC glad_glTexGeniv = NULL;
  614. PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL;
  615. PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL;
  616. PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL;
  617. PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL;
  618. PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL;
  619. PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL;
  620. PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL;
  621. PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL;
  622. PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL;
  623. PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL;
  624. PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL;
  625. PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL;
  626. PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL;
  627. PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL;
  628. PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL;
  629. PFNGLTRANSLATEDPROC glad_glTranslated = NULL;
  630. PFNGLTRANSLATEFPROC glad_glTranslatef = NULL;
  631. PFNGLUNIFORM1FPROC glad_glUniform1f = NULL;
  632. PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL;
  633. PFNGLUNIFORM1IPROC glad_glUniform1i = NULL;
  634. PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL;
  635. PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL;
  636. PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL;
  637. PFNGLUNIFORM2FPROC glad_glUniform2f = NULL;
  638. PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL;
  639. PFNGLUNIFORM2IPROC glad_glUniform2i = NULL;
  640. PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL;
  641. PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL;
  642. PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL;
  643. PFNGLUNIFORM3FPROC glad_glUniform3f = NULL;
  644. PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL;
  645. PFNGLUNIFORM3IPROC glad_glUniform3i = NULL;
  646. PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL;
  647. PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL;
  648. PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL;
  649. PFNGLUNIFORM4FPROC glad_glUniform4f = NULL;
  650. PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL;
  651. PFNGLUNIFORM4IPROC glad_glUniform4i = NULL;
  652. PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL;
  653. PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL;
  654. PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL;
  655. PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL;
  656. PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL;
  657. PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL;
  658. PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL;
  659. PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL;
  660. PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL;
  661. PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL;
  662. PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL;
  663. PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL;
  664. PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL;
  665. PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL;
  666. PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL;
  667. PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL;
  668. PFNGLVERTEX2DPROC glad_glVertex2d = NULL;
  669. PFNGLVERTEX2DVPROC glad_glVertex2dv = NULL;
  670. PFNGLVERTEX2FPROC glad_glVertex2f = NULL;
  671. PFNGLVERTEX2FVPROC glad_glVertex2fv = NULL;
  672. PFNGLVERTEX2IPROC glad_glVertex2i = NULL;
  673. PFNGLVERTEX2IVPROC glad_glVertex2iv = NULL;
  674. PFNGLVERTEX2SPROC glad_glVertex2s = NULL;
  675. PFNGLVERTEX2SVPROC glad_glVertex2sv = NULL;
  676. PFNGLVERTEX3DPROC glad_glVertex3d = NULL;
  677. PFNGLVERTEX3DVPROC glad_glVertex3dv = NULL;
  678. PFNGLVERTEX3FPROC glad_glVertex3f = NULL;
  679. PFNGLVERTEX3FVPROC glad_glVertex3fv = NULL;
  680. PFNGLVERTEX3IPROC glad_glVertex3i = NULL;
  681. PFNGLVERTEX3IVPROC glad_glVertex3iv = NULL;
  682. PFNGLVERTEX3SPROC glad_glVertex3s = NULL;
  683. PFNGLVERTEX3SVPROC glad_glVertex3sv = NULL;
  684. PFNGLVERTEX4DPROC glad_glVertex4d = NULL;
  685. PFNGLVERTEX4DVPROC glad_glVertex4dv = NULL;
  686. PFNGLVERTEX4FPROC glad_glVertex4f = NULL;
  687. PFNGLVERTEX4FVPROC glad_glVertex4fv = NULL;
  688. PFNGLVERTEX4IPROC glad_glVertex4i = NULL;
  689. PFNGLVERTEX4IVPROC glad_glVertex4iv = NULL;
  690. PFNGLVERTEX4SPROC glad_glVertex4s = NULL;
  691. PFNGLVERTEX4SVPROC glad_glVertex4sv = NULL;
  692. PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL;
  693. PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL;
  694. PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL;
  695. PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL;
  696. PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL;
  697. PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL;
  698. PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL;
  699. PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL;
  700. PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL;
  701. PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL;
  702. PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL;
  703. PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL;
  704. PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL;
  705. PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL;
  706. PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL;
  707. PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL;
  708. PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL;
  709. PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL;
  710. PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL;
  711. PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL;
  712. PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL;
  713. PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL;
  714. PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL;
  715. PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL;
  716. PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL;
  717. PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL;
  718. PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL;
  719. PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL;
  720. PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL;
  721. PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL;
  722. PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL;
  723. PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL;
  724. PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL;
  725. PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL;
  726. PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL;
  727. PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL;
  728. PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL;
  729. PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL;
  730. PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL;
  731. PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL;
  732. PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL;
  733. PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL;
  734. PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL;
  735. PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL;
  736. PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL;
  737. PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL;
  738. PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL;
  739. PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL;
  740. PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL;
  741. PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL;
  742. PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL;
  743. PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL;
  744. PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL;
  745. PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL;
  746. PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL;
  747. PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL;
  748. PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL;
  749. PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL;
  750. PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL;
  751. PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL;
  752. PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL;
  753. PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL;
  754. PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL;
  755. PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL;
  756. PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL;
  757. PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL;
  758. PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL;
  759. PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL;
  760. PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL;
  761. PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL;
  762. PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL;
  763. PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL;
  764. PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL;
  765. PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL;
  766. PFNGLVIEWPORTPROC glad_glViewport = NULL;
  767. PFNGLWAITSYNCPROC glad_glWaitSync = NULL;
  768. PFNGLWINDOWPOS2DPROC glad_glWindowPos2d = NULL;
  769. PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv = NULL;
  770. PFNGLWINDOWPOS2FPROC glad_glWindowPos2f = NULL;
  771. PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv = NULL;
  772. PFNGLWINDOWPOS2IPROC glad_glWindowPos2i = NULL;
  773. PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv = NULL;
  774. PFNGLWINDOWPOS2SPROC glad_glWindowPos2s = NULL;
  775. PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv = NULL;
  776. PFNGLWINDOWPOS3DPROC glad_glWindowPos3d = NULL;
  777. PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv = NULL;
  778. PFNGLWINDOWPOS3FPROC glad_glWindowPos3f = NULL;
  779. PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv = NULL;
  780. PFNGLWINDOWPOS3IPROC glad_glWindowPos3i = NULL;
  781. PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv = NULL;
  782. PFNGLWINDOWPOS3SPROC glad_glWindowPos3s = NULL;
  783. PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv = NULL;
  784. static void glad_gl_load_GL_VERSION_1_0( GLADuserptrloadfunc load, void* userptr) {
  785. if(!GLAD_GL_VERSION_1_0) return;
  786. glAccum = (PFNGLACCUMPROC) load("glAccum", userptr);
  787. glAlphaFunc = (PFNGLALPHAFUNCPROC) load("glAlphaFunc", userptr);
  788. glBegin = (PFNGLBEGINPROC) load("glBegin", userptr);
  789. glBitmap = (PFNGLBITMAPPROC) load("glBitmap", userptr);
  790. glBlendFunc = (PFNGLBLENDFUNCPROC) load("glBlendFunc", userptr);
  791. glCallList = (PFNGLCALLLISTPROC) load("glCallList", userptr);
  792. glCallLists = (PFNGLCALLLISTSPROC) load("glCallLists", userptr);
  793. glClear = (PFNGLCLEARPROC) load("glClear", userptr);
  794. glClearAccum = (PFNGLCLEARACCUMPROC) load("glClearAccum", userptr);
  795. glClearColor = (PFNGLCLEARCOLORPROC) load("glClearColor", userptr);
  796. glClearDepth = (PFNGLCLEARDEPTHPROC) load("glClearDepth", userptr);
  797. glClearIndex = (PFNGLCLEARINDEXPROC) load("glClearIndex", userptr);
  798. glClearStencil = (PFNGLCLEARSTENCILPROC) load("glClearStencil", userptr);
  799. glClipPlane = (PFNGLCLIPPLANEPROC) load("glClipPlane", userptr);
  800. glColor3b = (PFNGLCOLOR3BPROC) load("glColor3b", userptr);
  801. glColor3bv = (PFNGLCOLOR3BVPROC) load("glColor3bv", userptr);
  802. glColor3d = (PFNGLCOLOR3DPROC) load("glColor3d", userptr);
  803. glColor3dv = (PFNGLCOLOR3DVPROC) load("glColor3dv", userptr);
  804. glColor3f = (PFNGLCOLOR3FPROC) load("glColor3f", userptr);
  805. glColor3fv = (PFNGLCOLOR3FVPROC) load("glColor3fv", userptr);
  806. glColor3i = (PFNGLCOLOR3IPROC) load("glColor3i", userptr);
  807. glColor3iv = (PFNGLCOLOR3IVPROC) load("glColor3iv", userptr);
  808. glColor3s = (PFNGLCOLOR3SPROC) load("glColor3s", userptr);
  809. glColor3sv = (PFNGLCOLOR3SVPROC) load("glColor3sv", userptr);
  810. glColor3ub = (PFNGLCOLOR3UBPROC) load("glColor3ub", userptr);
  811. glColor3ubv = (PFNGLCOLOR3UBVPROC) load("glColor3ubv", userptr);
  812. glColor3ui = (PFNGLCOLOR3UIPROC) load("glColor3ui", userptr);
  813. glColor3uiv = (PFNGLCOLOR3UIVPROC) load("glColor3uiv", userptr);
  814. glColor3us = (PFNGLCOLOR3USPROC) load("glColor3us", userptr);
  815. glColor3usv = (PFNGLCOLOR3USVPROC) load("glColor3usv", userptr);
  816. glColor4b = (PFNGLCOLOR4BPROC) load("glColor4b", userptr);
  817. glColor4bv = (PFNGLCOLOR4BVPROC) load("glColor4bv", userptr);
  818. glColor4d = (PFNGLCOLOR4DPROC) load("glColor4d", userptr);
  819. glColor4dv = (PFNGLCOLOR4DVPROC) load("glColor4dv", userptr);
  820. glColor4f = (PFNGLCOLOR4FPROC) load("glColor4f", userptr);
  821. glColor4fv = (PFNGLCOLOR4FVPROC) load("glColor4fv", userptr);
  822. glColor4i = (PFNGLCOLOR4IPROC) load("glColor4i", userptr);
  823. glColor4iv = (PFNGLCOLOR4IVPROC) load("glColor4iv", userptr);
  824. glColor4s = (PFNGLCOLOR4SPROC) load("glColor4s", userptr);
  825. glColor4sv = (PFNGLCOLOR4SVPROC) load("glColor4sv", userptr);
  826. glColor4ub = (PFNGLCOLOR4UBPROC) load("glColor4ub", userptr);
  827. glColor4ubv = (PFNGLCOLOR4UBVPROC) load("glColor4ubv", userptr);
  828. glColor4ui = (PFNGLCOLOR4UIPROC) load("glColor4ui", userptr);
  829. glColor4uiv = (PFNGLCOLOR4UIVPROC) load("glColor4uiv", userptr);
  830. glColor4us = (PFNGLCOLOR4USPROC) load("glColor4us", userptr);
  831. glColor4usv = (PFNGLCOLOR4USVPROC) load("glColor4usv", userptr);
  832. glColorMask = (PFNGLCOLORMASKPROC) load("glColorMask", userptr);
  833. glColorMaterial = (PFNGLCOLORMATERIALPROC) load("glColorMaterial", userptr);
  834. glCopyPixels = (PFNGLCOPYPIXELSPROC) load("glCopyPixels", userptr);
  835. glCullFace = (PFNGLCULLFACEPROC) load("glCullFace", userptr);
  836. glDeleteLists = (PFNGLDELETELISTSPROC) load("glDeleteLists", userptr);
  837. glDepthFunc = (PFNGLDEPTHFUNCPROC) load("glDepthFunc", userptr);
  838. glDepthMask = (PFNGLDEPTHMASKPROC) load("glDepthMask", userptr);
  839. glDepthRange = (PFNGLDEPTHRANGEPROC) load("glDepthRange", userptr);
  840. glDisable = (PFNGLDISABLEPROC) load("glDisable", userptr);
  841. glDrawBuffer = (PFNGLDRAWBUFFERPROC) load("glDrawBuffer", userptr);
  842. glDrawPixels = (PFNGLDRAWPIXELSPROC) load("glDrawPixels", userptr);
  843. glEdgeFlag = (PFNGLEDGEFLAGPROC) load("glEdgeFlag", userptr);
  844. glEdgeFlagv = (PFNGLEDGEFLAGVPROC) load("glEdgeFlagv", userptr);
  845. glEnable = (PFNGLENABLEPROC) load("glEnable", userptr);
  846. glEnd = (PFNGLENDPROC) load("glEnd", userptr);
  847. glEndList = (PFNGLENDLISTPROC) load("glEndList", userptr);
  848. glEvalCoord1d = (PFNGLEVALCOORD1DPROC) load("glEvalCoord1d", userptr);
  849. glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC) load("glEvalCoord1dv", userptr);
  850. glEvalCoord1f = (PFNGLEVALCOORD1FPROC) load("glEvalCoord1f", userptr);
  851. glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC) load("glEvalCoord1fv", userptr);
  852. glEvalCoord2d = (PFNGLEVALCOORD2DPROC) load("glEvalCoord2d", userptr);
  853. glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC) load("glEvalCoord2dv", userptr);
  854. glEvalCoord2f = (PFNGLEVALCOORD2FPROC) load("glEvalCoord2f", userptr);
  855. glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC) load("glEvalCoord2fv", userptr);
  856. glEvalMesh1 = (PFNGLEVALMESH1PROC) load("glEvalMesh1", userptr);
  857. glEvalMesh2 = (PFNGLEVALMESH2PROC) load("glEvalMesh2", userptr);
  858. glEvalPoint1 = (PFNGLEVALPOINT1PROC) load("glEvalPoint1", userptr);
  859. glEvalPoint2 = (PFNGLEVALPOINT2PROC) load("glEvalPoint2", userptr);
  860. glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC) load("glFeedbackBuffer", userptr);
  861. glFinish = (PFNGLFINISHPROC) load("glFinish", userptr);
  862. glFlush = (PFNGLFLUSHPROC) load("glFlush", userptr);
  863. glFogf = (PFNGLFOGFPROC) load("glFogf", userptr);
  864. glFogfv = (PFNGLFOGFVPROC) load("glFogfv", userptr);
  865. glFogi = (PFNGLFOGIPROC) load("glFogi", userptr);
  866. glFogiv = (PFNGLFOGIVPROC) load("glFogiv", userptr);
  867. glFrontFace = (PFNGLFRONTFACEPROC) load("glFrontFace", userptr);
  868. glFrustum = (PFNGLFRUSTUMPROC) load("glFrustum", userptr);
  869. glGenLists = (PFNGLGENLISTSPROC) load("glGenLists", userptr);
  870. glGetBooleanv = (PFNGLGETBOOLEANVPROC) load("glGetBooleanv", userptr);
  871. glGetClipPlane = (PFNGLGETCLIPPLANEPROC) load("glGetClipPlane", userptr);
  872. glGetDoublev = (PFNGLGETDOUBLEVPROC) load("glGetDoublev", userptr);
  873. glGetError = (PFNGLGETERRORPROC) load("glGetError", userptr);
  874. glGetFloatv = (PFNGLGETFLOATVPROC) load("glGetFloatv", userptr);
  875. glGetIntegerv = (PFNGLGETINTEGERVPROC) load("glGetIntegerv", userptr);
  876. glGetLightfv = (PFNGLGETLIGHTFVPROC) load("glGetLightfv", userptr);
  877. glGetLightiv = (PFNGLGETLIGHTIVPROC) load("glGetLightiv", userptr);
  878. glGetMapdv = (PFNGLGETMAPDVPROC) load("glGetMapdv", userptr);
  879. glGetMapfv = (PFNGLGETMAPFVPROC) load("glGetMapfv", userptr);
  880. glGetMapiv = (PFNGLGETMAPIVPROC) load("glGetMapiv", userptr);
  881. glGetMaterialfv = (PFNGLGETMATERIALFVPROC) load("glGetMaterialfv", userptr);
  882. glGetMaterialiv = (PFNGLGETMATERIALIVPROC) load("glGetMaterialiv", userptr);
  883. glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC) load("glGetPixelMapfv", userptr);
  884. glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC) load("glGetPixelMapuiv", userptr);
  885. glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC) load("glGetPixelMapusv", userptr);
  886. glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC) load("glGetPolygonStipple", userptr);
  887. glGetString = (PFNGLGETSTRINGPROC) load("glGetString", userptr);
  888. glGetTexEnvfv = (PFNGLGETTEXENVFVPROC) load("glGetTexEnvfv", userptr);
  889. glGetTexEnviv = (PFNGLGETTEXENVIVPROC) load("glGetTexEnviv", userptr);
  890. glGetTexGendv = (PFNGLGETTEXGENDVPROC) load("glGetTexGendv", userptr);
  891. glGetTexGenfv = (PFNGLGETTEXGENFVPROC) load("glGetTexGenfv", userptr);
  892. glGetTexGeniv = (PFNGLGETTEXGENIVPROC) load("glGetTexGeniv", userptr);
  893. glGetTexImage = (PFNGLGETTEXIMAGEPROC) load("glGetTexImage", userptr);
  894. glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC) load("glGetTexLevelParameterfv", userptr);
  895. glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC) load("glGetTexLevelParameteriv", userptr);
  896. glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC) load("glGetTexParameterfv", userptr);
  897. glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC) load("glGetTexParameteriv", userptr);
  898. glHint = (PFNGLHINTPROC) load("glHint", userptr);
  899. glIndexMask = (PFNGLINDEXMASKPROC) load("glIndexMask", userptr);
  900. glIndexd = (PFNGLINDEXDPROC) load("glIndexd", userptr);
  901. glIndexdv = (PFNGLINDEXDVPROC) load("glIndexdv", userptr);
  902. glIndexf = (PFNGLINDEXFPROC) load("glIndexf", userptr);
  903. glIndexfv = (PFNGLINDEXFVPROC) load("glIndexfv", userptr);
  904. glIndexi = (PFNGLINDEXIPROC) load("glIndexi", userptr);
  905. glIndexiv = (PFNGLINDEXIVPROC) load("glIndexiv", userptr);
  906. glIndexs = (PFNGLINDEXSPROC) load("glIndexs", userptr);
  907. glIndexsv = (PFNGLINDEXSVPROC) load("glIndexsv", userptr);
  908. glInitNames = (PFNGLINITNAMESPROC) load("glInitNames", userptr);
  909. glIsEnabled = (PFNGLISENABLEDPROC) load("glIsEnabled", userptr);
  910. glIsList = (PFNGLISLISTPROC) load("glIsList", userptr);
  911. glLightModelf = (PFNGLLIGHTMODELFPROC) load("glLightModelf", userptr);
  912. glLightModelfv = (PFNGLLIGHTMODELFVPROC) load("glLightModelfv", userptr);
  913. glLightModeli = (PFNGLLIGHTMODELIPROC) load("glLightModeli", userptr);
  914. glLightModeliv = (PFNGLLIGHTMODELIVPROC) load("glLightModeliv", userptr);
  915. glLightf = (PFNGLLIGHTFPROC) load("glLightf", userptr);
  916. glLightfv = (PFNGLLIGHTFVPROC) load("glLightfv", userptr);
  917. glLighti = (PFNGLLIGHTIPROC) load("glLighti", userptr);
  918. glLightiv = (PFNGLLIGHTIVPROC) load("glLightiv", userptr);
  919. glLineStipple = (PFNGLLINESTIPPLEPROC) load("glLineStipple", userptr);
  920. glLineWidth = (PFNGLLINEWIDTHPROC) load("glLineWidth", userptr);
  921. glListBase = (PFNGLLISTBASEPROC) load("glListBase", userptr);
  922. glLoadIdentity = (PFNGLLOADIDENTITYPROC) load("glLoadIdentity", userptr);
  923. glLoadMatrixd = (PFNGLLOADMATRIXDPROC) load("glLoadMatrixd", userptr);
  924. glLoadMatrixf = (PFNGLLOADMATRIXFPROC) load("glLoadMatrixf", userptr);
  925. glLoadName = (PFNGLLOADNAMEPROC) load("glLoadName", userptr);
  926. glLogicOp = (PFNGLLOGICOPPROC) load("glLogicOp", userptr);
  927. glMap1d = (PFNGLMAP1DPROC) load("glMap1d", userptr);
  928. glMap1f = (PFNGLMAP1FPROC) load("glMap1f", userptr);
  929. glMap2d = (PFNGLMAP2DPROC) load("glMap2d", userptr);
  930. glMap2f = (PFNGLMAP2FPROC) load("glMap2f", userptr);
  931. glMapGrid1d = (PFNGLMAPGRID1DPROC) load("glMapGrid1d", userptr);
  932. glMapGrid1f = (PFNGLMAPGRID1FPROC) load("glMapGrid1f", userptr);
  933. glMapGrid2d = (PFNGLMAPGRID2DPROC) load("glMapGrid2d", userptr);
  934. glMapGrid2f = (PFNGLMAPGRID2FPROC) load("glMapGrid2f", userptr);
  935. glMaterialf = (PFNGLMATERIALFPROC) load("glMaterialf", userptr);
  936. glMaterialfv = (PFNGLMATERIALFVPROC) load("glMaterialfv", userptr);
  937. glMateriali = (PFNGLMATERIALIPROC) load("glMateriali", userptr);
  938. glMaterialiv = (PFNGLMATERIALIVPROC) load("glMaterialiv", userptr);
  939. glMatrixMode = (PFNGLMATRIXMODEPROC) load("glMatrixMode", userptr);
  940. glMultMatrixd = (PFNGLMULTMATRIXDPROC) load("glMultMatrixd", userptr);
  941. glMultMatrixf = (PFNGLMULTMATRIXFPROC) load("glMultMatrixf", userptr);
  942. glNewList = (PFNGLNEWLISTPROC) load("glNewList", userptr);
  943. glNormal3b = (PFNGLNORMAL3BPROC) load("glNormal3b", userptr);
  944. glNormal3bv = (PFNGLNORMAL3BVPROC) load("glNormal3bv", userptr);
  945. glNormal3d = (PFNGLNORMAL3DPROC) load("glNormal3d", userptr);
  946. glNormal3dv = (PFNGLNORMAL3DVPROC) load("glNormal3dv", userptr);
  947. glNormal3f = (PFNGLNORMAL3FPROC) load("glNormal3f", userptr);
  948. glNormal3fv = (PFNGLNORMAL3FVPROC) load("glNormal3fv", userptr);
  949. glNormal3i = (PFNGLNORMAL3IPROC) load("glNormal3i", userptr);
  950. glNormal3iv = (PFNGLNORMAL3IVPROC) load("glNormal3iv", userptr);
  951. glNormal3s = (PFNGLNORMAL3SPROC) load("glNormal3s", userptr);
  952. glNormal3sv = (PFNGLNORMAL3SVPROC) load("glNormal3sv", userptr);
  953. glOrtho = (PFNGLORTHOPROC) load("glOrtho", userptr);
  954. glPassThrough = (PFNGLPASSTHROUGHPROC) load("glPassThrough", userptr);
  955. glPixelMapfv = (PFNGLPIXELMAPFVPROC) load("glPixelMapfv", userptr);
  956. glPixelMapuiv = (PFNGLPIXELMAPUIVPROC) load("glPixelMapuiv", userptr);
  957. glPixelMapusv = (PFNGLPIXELMAPUSVPROC) load("glPixelMapusv", userptr);
  958. glPixelStoref = (PFNGLPIXELSTOREFPROC) load("glPixelStoref", userptr);
  959. glPixelStorei = (PFNGLPIXELSTOREIPROC) load("glPixelStorei", userptr);
  960. glPixelTransferf = (PFNGLPIXELTRANSFERFPROC) load("glPixelTransferf", userptr);
  961. glPixelTransferi = (PFNGLPIXELTRANSFERIPROC) load("glPixelTransferi", userptr);
  962. glPixelZoom = (PFNGLPIXELZOOMPROC) load("glPixelZoom", userptr);
  963. glPointSize = (PFNGLPOINTSIZEPROC) load("glPointSize", userptr);
  964. glPolygonMode = (PFNGLPOLYGONMODEPROC) load("glPolygonMode", userptr);
  965. glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC) load("glPolygonStipple", userptr);
  966. glPopAttrib = (PFNGLPOPATTRIBPROC) load("glPopAttrib", userptr);
  967. glPopMatrix = (PFNGLPOPMATRIXPROC) load("glPopMatrix", userptr);
  968. glPopName = (PFNGLPOPNAMEPROC) load("glPopName", userptr);
  969. glPushAttrib = (PFNGLPUSHATTRIBPROC) load("glPushAttrib", userptr);
  970. glPushMatrix = (PFNGLPUSHMATRIXPROC) load("glPushMatrix", userptr);
  971. glPushName = (PFNGLPUSHNAMEPROC) load("glPushName", userptr);
  972. glRasterPos2d = (PFNGLRASTERPOS2DPROC) load("glRasterPos2d", userptr);
  973. glRasterPos2dv = (PFNGLRASTERPOS2DVPROC) load("glRasterPos2dv", userptr);
  974. glRasterPos2f = (PFNGLRASTERPOS2FPROC) load("glRasterPos2f", userptr);
  975. glRasterPos2fv = (PFNGLRASTERPOS2FVPROC) load("glRasterPos2fv", userptr);
  976. glRasterPos2i = (PFNGLRASTERPOS2IPROC) load("glRasterPos2i", userptr);
  977. glRasterPos2iv = (PFNGLRASTERPOS2IVPROC) load("glRasterPos2iv", userptr);
  978. glRasterPos2s = (PFNGLRASTERPOS2SPROC) load("glRasterPos2s", userptr);
  979. glRasterPos2sv = (PFNGLRASTERPOS2SVPROC) load("glRasterPos2sv", userptr);
  980. glRasterPos3d = (PFNGLRASTERPOS3DPROC) load("glRasterPos3d", userptr);
  981. glRasterPos3dv = (PFNGLRASTERPOS3DVPROC) load("glRasterPos3dv", userptr);
  982. glRasterPos3f = (PFNGLRASTERPOS3FPROC) load("glRasterPos3f", userptr);
  983. glRasterPos3fv = (PFNGLRASTERPOS3FVPROC) load("glRasterPos3fv", userptr);
  984. glRasterPos3i = (PFNGLRASTERPOS3IPROC) load("glRasterPos3i", userptr);
  985. glRasterPos3iv = (PFNGLRASTERPOS3IVPROC) load("glRasterPos3iv", userptr);
  986. glRasterPos3s = (PFNGLRASTERPOS3SPROC) load("glRasterPos3s", userptr);
  987. glRasterPos3sv = (PFNGLRASTERPOS3SVPROC) load("glRasterPos3sv", userptr);
  988. glRasterPos4d = (PFNGLRASTERPOS4DPROC) load("glRasterPos4d", userptr);
  989. glRasterPos4dv = (PFNGLRASTERPOS4DVPROC) load("glRasterPos4dv", userptr);
  990. glRasterPos4f = (PFNGLRASTERPOS4FPROC) load("glRasterPos4f", userptr);
  991. glRasterPos4fv = (PFNGLRASTERPOS4FVPROC) load("glRasterPos4fv", userptr);
  992. glRasterPos4i = (PFNGLRASTERPOS4IPROC) load("glRasterPos4i", userptr);
  993. glRasterPos4iv = (PFNGLRASTERPOS4IVPROC) load("glRasterPos4iv", userptr);
  994. glRasterPos4s = (PFNGLRASTERPOS4SPROC) load("glRasterPos4s", userptr);
  995. glRasterPos4sv = (PFNGLRASTERPOS4SVPROC) load("glRasterPos4sv", userptr);
  996. glReadBuffer = (PFNGLREADBUFFERPROC) load("glReadBuffer", userptr);
  997. glReadPixels = (PFNGLREADPIXELSPROC) load("glReadPixels", userptr);
  998. glRectd = (PFNGLRECTDPROC) load("glRectd", userptr);
  999. glRectdv = (PFNGLRECTDVPROC) load("glRectdv", userptr);
  1000. glRectf = (PFNGLRECTFPROC) load("glRectf", userptr);
  1001. glRectfv = (PFNGLRECTFVPROC) load("glRectfv", userptr);
  1002. glRecti = (PFNGLRECTIPROC) load("glRecti", userptr);
  1003. glRectiv = (PFNGLRECTIVPROC) load("glRectiv", userptr);
  1004. glRects = (PFNGLRECTSPROC) load("glRects", userptr);
  1005. glRectsv = (PFNGLRECTSVPROC) load("glRectsv", userptr);
  1006. glRenderMode = (PFNGLRENDERMODEPROC) load("glRenderMode", userptr);
  1007. glRotated = (PFNGLROTATEDPROC) load("glRotated", userptr);
  1008. glRotatef = (PFNGLROTATEFPROC) load("glRotatef", userptr);
  1009. glScaled = (PFNGLSCALEDPROC) load("glScaled", userptr);
  1010. glScalef = (PFNGLSCALEFPROC) load("glScalef", userptr);
  1011. glScissor = (PFNGLSCISSORPROC) load("glScissor", userptr);
  1012. glSelectBuffer = (PFNGLSELECTBUFFERPROC) load("glSelectBuffer", userptr);
  1013. glShadeModel = (PFNGLSHADEMODELPROC) load("glShadeModel", userptr);
  1014. glStencilFunc = (PFNGLSTENCILFUNCPROC) load("glStencilFunc", userptr);
  1015. glStencilMask = (PFNGLSTENCILMASKPROC) load("glStencilMask", userptr);
  1016. glStencilOp = (PFNGLSTENCILOPPROC) load("glStencilOp", userptr);
  1017. glTexCoord1d = (PFNGLTEXCOORD1DPROC) load("glTexCoord1d", userptr);
  1018. glTexCoord1dv = (PFNGLTEXCOORD1DVPROC) load("glTexCoord1dv", userptr);
  1019. glTexCoord1f = (PFNGLTEXCOORD1FPROC) load("glTexCoord1f", userptr);
  1020. glTexCoord1fv = (PFNGLTEXCOORD1FVPROC) load("glTexCoord1fv", userptr);
  1021. glTexCoord1i = (PFNGLTEXCOORD1IPROC) load("glTexCoord1i", userptr);
  1022. glTexCoord1iv = (PFNGLTEXCOORD1IVPROC) load("glTexCoord1iv", userptr);
  1023. glTexCoord1s = (PFNGLTEXCOORD1SPROC) load("glTexCoord1s", userptr);
  1024. glTexCoord1sv = (PFNGLTEXCOORD1SVPROC) load("glTexCoord1sv", userptr);
  1025. glTexCoord2d = (PFNGLTEXCOORD2DPROC) load("glTexCoord2d", userptr);
  1026. glTexCoord2dv = (PFNGLTEXCOORD2DVPROC) load("glTexCoord2dv", userptr);
  1027. glTexCoord2f = (PFNGLTEXCOORD2FPROC) load("glTexCoord2f", userptr);
  1028. glTexCoord2fv = (PFNGLTEXCOORD2FVPROC) load("glTexCoord2fv", userptr);
  1029. glTexCoord2i = (PFNGLTEXCOORD2IPROC) load("glTexCoord2i", userptr);
  1030. glTexCoord2iv = (PFNGLTEXCOORD2IVPROC) load("glTexCoord2iv", userptr);
  1031. glTexCoord2s = (PFNGLTEXCOORD2SPROC) load("glTexCoord2s", userptr);
  1032. glTexCoord2sv = (PFNGLTEXCOORD2SVPROC) load("glTexCoord2sv", userptr);
  1033. glTexCoord3d = (PFNGLTEXCOORD3DPROC) load("glTexCoord3d", userptr);
  1034. glTexCoord3dv = (PFNGLTEXCOORD3DVPROC) load("glTexCoord3dv", userptr);
  1035. glTexCoord3f = (PFNGLTEXCOORD3FPROC) load("glTexCoord3f", userptr);
  1036. glTexCoord3fv = (PFNGLTEXCOORD3FVPROC) load("glTexCoord3fv", userptr);
  1037. glTexCoord3i = (PFNGLTEXCOORD3IPROC) load("glTexCoord3i", userptr);
  1038. glTexCoord3iv = (PFNGLTEXCOORD3IVPROC) load("glTexCoord3iv", userptr);
  1039. glTexCoord3s = (PFNGLTEXCOORD3SPROC) load("glTexCoord3s", userptr);
  1040. glTexCoord3sv = (PFNGLTEXCOORD3SVPROC) load("glTexCoord3sv", userptr);
  1041. glTexCoord4d = (PFNGLTEXCOORD4DPROC) load("glTexCoord4d", userptr);
  1042. glTexCoord4dv = (PFNGLTEXCOORD4DVPROC) load("glTexCoord4dv", userptr);
  1043. glTexCoord4f = (PFNGLTEXCOORD4FPROC) load("glTexCoord4f", userptr);
  1044. glTexCoord4fv = (PFNGLTEXCOORD4FVPROC) load("glTexCoord4fv", userptr);
  1045. glTexCoord4i = (PFNGLTEXCOORD4IPROC) load("glTexCoord4i", userptr);
  1046. glTexCoord4iv = (PFNGLTEXCOORD4IVPROC) load("glTexCoord4iv", userptr);
  1047. glTexCoord4s = (PFNGLTEXCOORD4SPROC) load("glTexCoord4s", userptr);
  1048. glTexCoord4sv = (PFNGLTEXCOORD4SVPROC) load("glTexCoord4sv", userptr);
  1049. glTexEnvf = (PFNGLTEXENVFPROC) load("glTexEnvf", userptr);
  1050. glTexEnvfv = (PFNGLTEXENVFVPROC) load("glTexEnvfv", userptr);
  1051. glTexEnvi = (PFNGLTEXENVIPROC) load("glTexEnvi", userptr);
  1052. glTexEnviv = (PFNGLTEXENVIVPROC) load("glTexEnviv", userptr);
  1053. glTexGend = (PFNGLTEXGENDPROC) load("glTexGend", userptr);
  1054. glTexGendv = (PFNGLTEXGENDVPROC) load("glTexGendv", userptr);
  1055. glTexGenf = (PFNGLTEXGENFPROC) load("glTexGenf", userptr);
  1056. glTexGenfv = (PFNGLTEXGENFVPROC) load("glTexGenfv", userptr);
  1057. glTexGeni = (PFNGLTEXGENIPROC) load("glTexGeni", userptr);
  1058. glTexGeniv = (PFNGLTEXGENIVPROC) load("glTexGeniv", userptr);
  1059. glTexImage1D = (PFNGLTEXIMAGE1DPROC) load("glTexImage1D", userptr);
  1060. glTexImage2D = (PFNGLTEXIMAGE2DPROC) load("glTexImage2D", userptr);
  1061. glTexParameterf = (PFNGLTEXPARAMETERFPROC) load("glTexParameterf", userptr);
  1062. glTexParameterfv = (PFNGLTEXPARAMETERFVPROC) load("glTexParameterfv", userptr);
  1063. glTexParameteri = (PFNGLTEXPARAMETERIPROC) load("glTexParameteri", userptr);
  1064. glTexParameteriv = (PFNGLTEXPARAMETERIVPROC) load("glTexParameteriv", userptr);
  1065. glTranslated = (PFNGLTRANSLATEDPROC) load("glTranslated", userptr);
  1066. glTranslatef = (PFNGLTRANSLATEFPROC) load("glTranslatef", userptr);
  1067. glVertex2d = (PFNGLVERTEX2DPROC) load("glVertex2d", userptr);
  1068. glVertex2dv = (PFNGLVERTEX2DVPROC) load("glVertex2dv", userptr);
  1069. glVertex2f = (PFNGLVERTEX2FPROC) load("glVertex2f", userptr);
  1070. glVertex2fv = (PFNGLVERTEX2FVPROC) load("glVertex2fv", userptr);
  1071. glVertex2i = (PFNGLVERTEX2IPROC) load("glVertex2i", userptr);
  1072. glVertex2iv = (PFNGLVERTEX2IVPROC) load("glVertex2iv", userptr);
  1073. glVertex2s = (PFNGLVERTEX2SPROC) load("glVertex2s", userptr);
  1074. glVertex2sv = (PFNGLVERTEX2SVPROC) load("glVertex2sv", userptr);
  1075. glVertex3d = (PFNGLVERTEX3DPROC) load("glVertex3d", userptr);
  1076. glVertex3dv = (PFNGLVERTEX3DVPROC) load("glVertex3dv", userptr);
  1077. glVertex3f = (PFNGLVERTEX3FPROC) load("glVertex3f", userptr);
  1078. glVertex3fv = (PFNGLVERTEX3FVPROC) load("glVertex3fv", userptr);
  1079. glVertex3i = (PFNGLVERTEX3IPROC) load("glVertex3i", userptr);
  1080. glVertex3iv = (PFNGLVERTEX3IVPROC) load("glVertex3iv", userptr);
  1081. glVertex3s = (PFNGLVERTEX3SPROC) load("glVertex3s", userptr);
  1082. glVertex3sv = (PFNGLVERTEX3SVPROC) load("glVertex3sv", userptr);
  1083. glVertex4d = (PFNGLVERTEX4DPROC) load("glVertex4d", userptr);
  1084. glVertex4dv = (PFNGLVERTEX4DVPROC) load("glVertex4dv", userptr);
  1085. glVertex4f = (PFNGLVERTEX4FPROC) load("glVertex4f", userptr);
  1086. glVertex4fv = (PFNGLVERTEX4FVPROC) load("glVertex4fv", userptr);
  1087. glVertex4i = (PFNGLVERTEX4IPROC) load("glVertex4i", userptr);
  1088. glVertex4iv = (PFNGLVERTEX4IVPROC) load("glVertex4iv", userptr);
  1089. glVertex4s = (PFNGLVERTEX4SPROC) load("glVertex4s", userptr);
  1090. glVertex4sv = (PFNGLVERTEX4SVPROC) load("glVertex4sv", userptr);
  1091. glViewport = (PFNGLVIEWPORTPROC) load("glViewport", userptr);
  1092. }
  1093. static void glad_gl_load_GL_VERSION_1_1( GLADuserptrloadfunc load, void* userptr) {
  1094. if(!GLAD_GL_VERSION_1_1) return;
  1095. glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC) load("glAreTexturesResident", userptr);
  1096. glArrayElement = (PFNGLARRAYELEMENTPROC) load("glArrayElement", userptr);
  1097. glBindTexture = (PFNGLBINDTEXTUREPROC) load("glBindTexture", userptr);
  1098. glColorPointer = (PFNGLCOLORPOINTERPROC) load("glColorPointer", userptr);
  1099. glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC) load("glCopyTexImage1D", userptr);
  1100. glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC) load("glCopyTexImage2D", userptr);
  1101. glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC) load("glCopyTexSubImage1D", userptr);
  1102. glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC) load("glCopyTexSubImage2D", userptr);
  1103. glDeleteTextures = (PFNGLDELETETEXTURESPROC) load("glDeleteTextures", userptr);
  1104. glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC) load("glDisableClientState", userptr);
  1105. glDrawArrays = (PFNGLDRAWARRAYSPROC) load("glDrawArrays", userptr);
  1106. glDrawElements = (PFNGLDRAWELEMENTSPROC) load("glDrawElements", userptr);
  1107. glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC) load("glEdgeFlagPointer", userptr);
  1108. glEnableClientState = (PFNGLENABLECLIENTSTATEPROC) load("glEnableClientState", userptr);
  1109. glGenTextures = (PFNGLGENTEXTURESPROC) load("glGenTextures", userptr);
  1110. glGetPointerv = (PFNGLGETPOINTERVPROC) load("glGetPointerv", userptr);
  1111. glIndexPointer = (PFNGLINDEXPOINTERPROC) load("glIndexPointer", userptr);
  1112. glIndexub = (PFNGLINDEXUBPROC) load("glIndexub", userptr);
  1113. glIndexubv = (PFNGLINDEXUBVPROC) load("glIndexubv", userptr);
  1114. glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC) load("glInterleavedArrays", userptr);
  1115. glIsTexture = (PFNGLISTEXTUREPROC) load("glIsTexture", userptr);
  1116. glNormalPointer = (PFNGLNORMALPOINTERPROC) load("glNormalPointer", userptr);
  1117. glPolygonOffset = (PFNGLPOLYGONOFFSETPROC) load("glPolygonOffset", userptr);
  1118. glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC) load("glPopClientAttrib", userptr);
  1119. glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC) load("glPrioritizeTextures", userptr);
  1120. glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC) load("glPushClientAttrib", userptr);
  1121. glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC) load("glTexCoordPointer", userptr);
  1122. glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC) load("glTexSubImage1D", userptr);
  1123. glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC) load("glTexSubImage2D", userptr);
  1124. glVertexPointer = (PFNGLVERTEXPOINTERPROC) load("glVertexPointer", userptr);
  1125. }
  1126. static void glad_gl_load_GL_VERSION_1_2( GLADuserptrloadfunc load, void* userptr) {
  1127. if(!GLAD_GL_VERSION_1_2) return;
  1128. glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC) load("glCopyTexSubImage3D", userptr);
  1129. glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC) load("glDrawRangeElements", userptr);
  1130. glTexImage3D = (PFNGLTEXIMAGE3DPROC) load("glTexImage3D", userptr);
  1131. glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC) load("glTexSubImage3D", userptr);
  1132. }
  1133. static void glad_gl_load_GL_VERSION_1_3( GLADuserptrloadfunc load, void* userptr) {
  1134. if(!GLAD_GL_VERSION_1_3) return;
  1135. glActiveTexture = (PFNGLACTIVETEXTUREPROC) load("glActiveTexture", userptr);
  1136. glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC) load("glClientActiveTexture", userptr);
  1137. glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC) load("glCompressedTexImage1D", userptr);
  1138. glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC) load("glCompressedTexImage2D", userptr);
  1139. glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC) load("glCompressedTexImage3D", userptr);
  1140. glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) load("glCompressedTexSubImage1D", userptr);
  1141. glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) load("glCompressedTexSubImage2D", userptr);
  1142. glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) load("glCompressedTexSubImage3D", userptr);
  1143. glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC) load("glGetCompressedTexImage", userptr);
  1144. glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC) load("glLoadTransposeMatrixd", userptr);
  1145. glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC) load("glLoadTransposeMatrixf", userptr);
  1146. glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC) load("glMultTransposeMatrixd", userptr);
  1147. glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC) load("glMultTransposeMatrixf", userptr);
  1148. glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC) load("glMultiTexCoord1d", userptr);
  1149. glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC) load("glMultiTexCoord1dv", userptr);
  1150. glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC) load("glMultiTexCoord1f", userptr);
  1151. glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC) load("glMultiTexCoord1fv", userptr);
  1152. glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC) load("glMultiTexCoord1i", userptr);
  1153. glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC) load("glMultiTexCoord1iv", userptr);
  1154. glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC) load("glMultiTexCoord1s", userptr);
  1155. glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC) load("glMultiTexCoord1sv", userptr);
  1156. glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC) load("glMultiTexCoord2d", userptr);
  1157. glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC) load("glMultiTexCoord2dv", userptr);
  1158. glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC) load("glMultiTexCoord2f", userptr);
  1159. glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC) load("glMultiTexCoord2fv", userptr);
  1160. glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC) load("glMultiTexCoord2i", userptr);
  1161. glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC) load("glMultiTexCoord2iv", userptr);
  1162. glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC) load("glMultiTexCoord2s", userptr);
  1163. glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC) load("glMultiTexCoord2sv", userptr);
  1164. glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC) load("glMultiTexCoord3d", userptr);
  1165. glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC) load("glMultiTexCoord3dv", userptr);
  1166. glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC) load("glMultiTexCoord3f", userptr);
  1167. glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC) load("glMultiTexCoord3fv", userptr);
  1168. glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC) load("glMultiTexCoord3i", userptr);
  1169. glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC) load("glMultiTexCoord3iv", userptr);
  1170. glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC) load("glMultiTexCoord3s", userptr);
  1171. glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC) load("glMultiTexCoord3sv", userptr);
  1172. glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC) load("glMultiTexCoord4d", userptr);
  1173. glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC) load("glMultiTexCoord4dv", userptr);
  1174. glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC) load("glMultiTexCoord4f", userptr);
  1175. glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC) load("glMultiTexCoord4fv", userptr);
  1176. glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC) load("glMultiTexCoord4i", userptr);
  1177. glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC) load("glMultiTexCoord4iv", userptr);
  1178. glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC) load("glMultiTexCoord4s", userptr);
  1179. glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC) load("glMultiTexCoord4sv", userptr);
  1180. glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) load("glSampleCoverage", userptr);
  1181. }
  1182. static void glad_gl_load_GL_VERSION_1_4( GLADuserptrloadfunc load, void* userptr) {
  1183. if(!GLAD_GL_VERSION_1_4) return;
  1184. glBlendColor = (PFNGLBLENDCOLORPROC) load("glBlendColor", userptr);
  1185. glBlendEquation = (PFNGLBLENDEQUATIONPROC) load("glBlendEquation", userptr);
  1186. glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC) load("glBlendFuncSeparate", userptr);
  1187. glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC) load("glFogCoordPointer", userptr);
  1188. glFogCoordd = (PFNGLFOGCOORDDPROC) load("glFogCoordd", userptr);
  1189. glFogCoorddv = (PFNGLFOGCOORDDVPROC) load("glFogCoorddv", userptr);
  1190. glFogCoordf = (PFNGLFOGCOORDFPROC) load("glFogCoordf", userptr);
  1191. glFogCoordfv = (PFNGLFOGCOORDFVPROC) load("glFogCoordfv", userptr);
  1192. glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC) load("glMultiDrawArrays", userptr);
  1193. glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC) load("glMultiDrawElements", userptr);
  1194. glPointParameterf = (PFNGLPOINTPARAMETERFPROC) load("glPointParameterf", userptr);
  1195. glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC) load("glPointParameterfv", userptr);
  1196. glPointParameteri = (PFNGLPOINTPARAMETERIPROC) load("glPointParameteri", userptr);
  1197. glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC) load("glPointParameteriv", userptr);
  1198. glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC) load("glSecondaryColor3b", userptr);
  1199. glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC) load("glSecondaryColor3bv", userptr);
  1200. glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC) load("glSecondaryColor3d", userptr);
  1201. glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC) load("glSecondaryColor3dv", userptr);
  1202. glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC) load("glSecondaryColor3f", userptr);
  1203. glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC) load("glSecondaryColor3fv", userptr);
  1204. glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC) load("glSecondaryColor3i", userptr);
  1205. glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC) load("glSecondaryColor3iv", userptr);
  1206. glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC) load("glSecondaryColor3s", userptr);
  1207. glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC) load("glSecondaryColor3sv", userptr);
  1208. glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC) load("glSecondaryColor3ub", userptr);
  1209. glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC) load("glSecondaryColor3ubv", userptr);
  1210. glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC) load("glSecondaryColor3ui", userptr);
  1211. glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC) load("glSecondaryColor3uiv", userptr);
  1212. glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC) load("glSecondaryColor3us", userptr);
  1213. glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC) load("glSecondaryColor3usv", userptr);
  1214. glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC) load("glSecondaryColorPointer", userptr);
  1215. glWindowPos2d = (PFNGLWINDOWPOS2DPROC) load("glWindowPos2d", userptr);
  1216. glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC) load("glWindowPos2dv", userptr);
  1217. glWindowPos2f = (PFNGLWINDOWPOS2FPROC) load("glWindowPos2f", userptr);
  1218. glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC) load("glWindowPos2fv", userptr);
  1219. glWindowPos2i = (PFNGLWINDOWPOS2IPROC) load("glWindowPos2i", userptr);
  1220. glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC) load("glWindowPos2iv", userptr);
  1221. glWindowPos2s = (PFNGLWINDOWPOS2SPROC) load("glWindowPos2s", userptr);
  1222. glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC) load("glWindowPos2sv", userptr);
  1223. glWindowPos3d = (PFNGLWINDOWPOS3DPROC) load("glWindowPos3d", userptr);
  1224. glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC) load("glWindowPos3dv", userptr);
  1225. glWindowPos3f = (PFNGLWINDOWPOS3FPROC) load("glWindowPos3f", userptr);
  1226. glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC) load("glWindowPos3fv", userptr);
  1227. glWindowPos3i = (PFNGLWINDOWPOS3IPROC) load("glWindowPos3i", userptr);
  1228. glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC) load("glWindowPos3iv", userptr);
  1229. glWindowPos3s = (PFNGLWINDOWPOS3SPROC) load("glWindowPos3s", userptr);
  1230. glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC) load("glWindowPos3sv", userptr);
  1231. }
  1232. static void glad_gl_load_GL_VERSION_1_5( GLADuserptrloadfunc load, void* userptr) {
  1233. if(!GLAD_GL_VERSION_1_5) return;
  1234. glBeginQuery = (PFNGLBEGINQUERYPROC) load("glBeginQuery", userptr);
  1235. glBindBuffer = (PFNGLBINDBUFFERPROC) load("glBindBuffer", userptr);
  1236. glBufferData = (PFNGLBUFFERDATAPROC) load("glBufferData", userptr);
  1237. glBufferSubData = (PFNGLBUFFERSUBDATAPROC) load("glBufferSubData", userptr);
  1238. glDeleteBuffers = (PFNGLDELETEBUFFERSPROC) load("glDeleteBuffers", userptr);
  1239. glDeleteQueries = (PFNGLDELETEQUERIESPROC) load("glDeleteQueries", userptr);
  1240. glEndQuery = (PFNGLENDQUERYPROC) load("glEndQuery", userptr);
  1241. glGenBuffers = (PFNGLGENBUFFERSPROC) load("glGenBuffers", userptr);
  1242. glGenQueries = (PFNGLGENQUERIESPROC) load("glGenQueries", userptr);
  1243. glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC) load("glGetBufferParameteriv", userptr);
  1244. glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC) load("glGetBufferPointerv", userptr);
  1245. glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC) load("glGetBufferSubData", userptr);
  1246. glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC) load("glGetQueryObjectiv", userptr);
  1247. glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC) load("glGetQueryObjectuiv", userptr);
  1248. glGetQueryiv = (PFNGLGETQUERYIVPROC) load("glGetQueryiv", userptr);
  1249. glIsBuffer = (PFNGLISBUFFERPROC) load("glIsBuffer", userptr);
  1250. glIsQuery = (PFNGLISQUERYPROC) load("glIsQuery", userptr);
  1251. glMapBuffer = (PFNGLMAPBUFFERPROC) load("glMapBuffer", userptr);
  1252. glUnmapBuffer = (PFNGLUNMAPBUFFERPROC) load("glUnmapBuffer", userptr);
  1253. }
  1254. static void glad_gl_load_GL_VERSION_2_0( GLADuserptrloadfunc load, void* userptr) {
  1255. if(!GLAD_GL_VERSION_2_0) return;
  1256. glAttachShader = (PFNGLATTACHSHADERPROC) load("glAttachShader", userptr);
  1257. glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC) load("glBindAttribLocation", userptr);
  1258. glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC) load("glBlendEquationSeparate", userptr);
  1259. glCompileShader = (PFNGLCOMPILESHADERPROC) load("glCompileShader", userptr);
  1260. glCreateProgram = (PFNGLCREATEPROGRAMPROC) load("glCreateProgram", userptr);
  1261. glCreateShader = (PFNGLCREATESHADERPROC) load("glCreateShader", userptr);
  1262. glDeleteProgram = (PFNGLDELETEPROGRAMPROC) load("glDeleteProgram", userptr);
  1263. glDeleteShader = (PFNGLDELETESHADERPROC) load("glDeleteShader", userptr);
  1264. glDetachShader = (PFNGLDETACHSHADERPROC) load("glDetachShader", userptr);
  1265. glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC) load("glDisableVertexAttribArray", userptr);
  1266. glDrawBuffers = (PFNGLDRAWBUFFERSPROC) load("glDrawBuffers", userptr);
  1267. glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC) load("glEnableVertexAttribArray", userptr);
  1268. glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC) load("glGetActiveAttrib", userptr);
  1269. glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC) load("glGetActiveUniform", userptr);
  1270. glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC) load("glGetAttachedShaders", userptr);
  1271. glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC) load("glGetAttribLocation", userptr);
  1272. glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC) load("glGetProgramInfoLog", userptr);
  1273. glGetProgramiv = (PFNGLGETPROGRAMIVPROC) load("glGetProgramiv", userptr);
  1274. glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC) load("glGetShaderInfoLog", userptr);
  1275. glGetShaderSource = (PFNGLGETSHADERSOURCEPROC) load("glGetShaderSource", userptr);
  1276. glGetShaderiv = (PFNGLGETSHADERIVPROC) load("glGetShaderiv", userptr);
  1277. glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC) load("glGetUniformLocation", userptr);
  1278. glGetUniformfv = (PFNGLGETUNIFORMFVPROC) load("glGetUniformfv", userptr);
  1279. glGetUniformiv = (PFNGLGETUNIFORMIVPROC) load("glGetUniformiv", userptr);
  1280. glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC) load("glGetVertexAttribPointerv", userptr);
  1281. glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC) load("glGetVertexAttribdv", userptr);
  1282. glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC) load("glGetVertexAttribfv", userptr);
  1283. glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC) load("glGetVertexAttribiv", userptr);
  1284. glIsProgram = (PFNGLISPROGRAMPROC) load("glIsProgram", userptr);
  1285. glIsShader = (PFNGLISSHADERPROC) load("glIsShader", userptr);
  1286. glLinkProgram = (PFNGLLINKPROGRAMPROC) load("glLinkProgram", userptr);
  1287. glShaderSource = (PFNGLSHADERSOURCEPROC) load("glShaderSource", userptr);
  1288. glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC) load("glStencilFuncSeparate", userptr);
  1289. glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC) load("glStencilMaskSeparate", userptr);
  1290. glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC) load("glStencilOpSeparate", userptr);
  1291. glUniform1f = (PFNGLUNIFORM1FPROC) load("glUniform1f", userptr);
  1292. glUniform1fv = (PFNGLUNIFORM1FVPROC) load("glUniform1fv", userptr);
  1293. glUniform1i = (PFNGLUNIFORM1IPROC) load("glUniform1i", userptr);
  1294. glUniform1iv = (PFNGLUNIFORM1IVPROC) load("glUniform1iv", userptr);
  1295. glUniform2f = (PFNGLUNIFORM2FPROC) load("glUniform2f", userptr);
  1296. glUniform2fv = (PFNGLUNIFORM2FVPROC) load("glUniform2fv", userptr);
  1297. glUniform2i = (PFNGLUNIFORM2IPROC) load("glUniform2i", userptr);
  1298. glUniform2iv = (PFNGLUNIFORM2IVPROC) load("glUniform2iv", userptr);
  1299. glUniform3f = (PFNGLUNIFORM3FPROC) load("glUniform3f", userptr);
  1300. glUniform3fv = (PFNGLUNIFORM3FVPROC) load("glUniform3fv", userptr);
  1301. glUniform3i = (PFNGLUNIFORM3IPROC) load("glUniform3i", userptr);
  1302. glUniform3iv = (PFNGLUNIFORM3IVPROC) load("glUniform3iv", userptr);
  1303. glUniform4f = (PFNGLUNIFORM4FPROC) load("glUniform4f", userptr);
  1304. glUniform4fv = (PFNGLUNIFORM4FVPROC) load("glUniform4fv", userptr);
  1305. glUniform4i = (PFNGLUNIFORM4IPROC) load("glUniform4i", userptr);
  1306. glUniform4iv = (PFNGLUNIFORM4IVPROC) load("glUniform4iv", userptr);
  1307. glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC) load("glUniformMatrix2fv", userptr);
  1308. glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC) load("glUniformMatrix3fv", userptr);
  1309. glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC) load("glUniformMatrix4fv", userptr);
  1310. glUseProgram = (PFNGLUSEPROGRAMPROC) load("glUseProgram", userptr);
  1311. glValidateProgram = (PFNGLVALIDATEPROGRAMPROC) load("glValidateProgram", userptr);
  1312. glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC) load("glVertexAttrib1d", userptr);
  1313. glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC) load("glVertexAttrib1dv", userptr);
  1314. glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC) load("glVertexAttrib1f", userptr);
  1315. glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC) load("glVertexAttrib1fv", userptr);
  1316. glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC) load("glVertexAttrib1s", userptr);
  1317. glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC) load("glVertexAttrib1sv", userptr);
  1318. glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC) load("glVertexAttrib2d", userptr);
  1319. glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC) load("glVertexAttrib2dv", userptr);
  1320. glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC) load("glVertexAttrib2f", userptr);
  1321. glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC) load("glVertexAttrib2fv", userptr);
  1322. glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC) load("glVertexAttrib2s", userptr);
  1323. glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC) load("glVertexAttrib2sv", userptr);
  1324. glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC) load("glVertexAttrib3d", userptr);
  1325. glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC) load("glVertexAttrib3dv", userptr);
  1326. glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC) load("glVertexAttrib3f", userptr);
  1327. glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC) load("glVertexAttrib3fv", userptr);
  1328. glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC) load("glVertexAttrib3s", userptr);
  1329. glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC) load("glVertexAttrib3sv", userptr);
  1330. glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC) load("glVertexAttrib4Nbv", userptr);
  1331. glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC) load("glVertexAttrib4Niv", userptr);
  1332. glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC) load("glVertexAttrib4Nsv", userptr);
  1333. glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC) load("glVertexAttrib4Nub", userptr);
  1334. glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC) load("glVertexAttrib4Nubv", userptr);
  1335. glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC) load("glVertexAttrib4Nuiv", userptr);
  1336. glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC) load("glVertexAttrib4Nusv", userptr);
  1337. glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC) load("glVertexAttrib4bv", userptr);
  1338. glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC) load("glVertexAttrib4d", userptr);
  1339. glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC) load("glVertexAttrib4dv", userptr);
  1340. glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC) load("glVertexAttrib4f", userptr);
  1341. glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC) load("glVertexAttrib4fv", userptr);
  1342. glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC) load("glVertexAttrib4iv", userptr);
  1343. glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC) load("glVertexAttrib4s", userptr);
  1344. glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC) load("glVertexAttrib4sv", userptr);
  1345. glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC) load("glVertexAttrib4ubv", userptr);
  1346. glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC) load("glVertexAttrib4uiv", userptr);
  1347. glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC) load("glVertexAttrib4usv", userptr);
  1348. glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC) load("glVertexAttribPointer", userptr);
  1349. }
  1350. static void glad_gl_load_GL_VERSION_2_1( GLADuserptrloadfunc load, void* userptr) {
  1351. if(!GLAD_GL_VERSION_2_1) return;
  1352. glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC) load("glUniformMatrix2x3fv", userptr);
  1353. glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC) load("glUniformMatrix2x4fv", userptr);
  1354. glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC) load("glUniformMatrix3x2fv", userptr);
  1355. glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC) load("glUniformMatrix3x4fv", userptr);
  1356. glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC) load("glUniformMatrix4x2fv", userptr);
  1357. glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC) load("glUniformMatrix4x3fv", userptr);
  1358. }
  1359. static void glad_gl_load_GL_VERSION_3_0( GLADuserptrloadfunc load, void* userptr) {
  1360. if(!GLAD_GL_VERSION_3_0) return;
  1361. glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC) load("glBeginConditionalRender", userptr);
  1362. glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC) load("glBeginTransformFeedback", userptr);
  1363. glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load("glBindBufferBase", userptr);
  1364. glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load("glBindBufferRange", userptr);
  1365. glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC) load("glBindFragDataLocation", userptr);
  1366. glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC) load("glBindFramebuffer", userptr);
  1367. glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC) load("glBindRenderbuffer", userptr);
  1368. glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC) load("glBindVertexArray", userptr);
  1369. glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC) load("glBlitFramebuffer", userptr);
  1370. glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC) load("glCheckFramebufferStatus", userptr);
  1371. glClampColor = (PFNGLCLAMPCOLORPROC) load("glClampColor", userptr);
  1372. glClearBufferfi = (PFNGLCLEARBUFFERFIPROC) load("glClearBufferfi", userptr);
  1373. glClearBufferfv = (PFNGLCLEARBUFFERFVPROC) load("glClearBufferfv", userptr);
  1374. glClearBufferiv = (PFNGLCLEARBUFFERIVPROC) load("glClearBufferiv", userptr);
  1375. glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC) load("glClearBufferuiv", userptr);
  1376. glColorMaski = (PFNGLCOLORMASKIPROC) load("glColorMaski", userptr);
  1377. glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC) load("glDeleteFramebuffers", userptr);
  1378. glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC) load("glDeleteRenderbuffers", userptr);
  1379. glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC) load("glDeleteVertexArrays", userptr);
  1380. glDisablei = (PFNGLDISABLEIPROC) load("glDisablei", userptr);
  1381. glEnablei = (PFNGLENABLEIPROC) load("glEnablei", userptr);
  1382. glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC) load("glEndConditionalRender", userptr);
  1383. glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC) load("glEndTransformFeedback", userptr);
  1384. glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC) load("glFlushMappedBufferRange", userptr);
  1385. glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC) load("glFramebufferRenderbuffer", userptr);
  1386. glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC) load("glFramebufferTexture1D", userptr);
  1387. glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC) load("glFramebufferTexture2D", userptr);
  1388. glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC) load("glFramebufferTexture3D", userptr);
  1389. glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC) load("glFramebufferTextureLayer", userptr);
  1390. glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC) load("glGenFramebuffers", userptr);
  1391. glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC) load("glGenRenderbuffers", userptr);
  1392. glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC) load("glGenVertexArrays", userptr);
  1393. glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC) load("glGenerateMipmap", userptr);
  1394. glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC) load("glGetBooleani_v", userptr);
  1395. glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC) load("glGetFragDataLocation", userptr);
  1396. glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC) load("glGetFramebufferAttachmentParameteriv", userptr);
  1397. glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load("glGetIntegeri_v", userptr);
  1398. glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC) load("glGetRenderbufferParameteriv", userptr);
  1399. glGetStringi = (PFNGLGETSTRINGIPROC) load("glGetStringi", userptr);
  1400. glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC) load("glGetTexParameterIiv", userptr);
  1401. glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC) load("glGetTexParameterIuiv", userptr);
  1402. glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC) load("glGetTransformFeedbackVarying", userptr);
  1403. glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC) load("glGetUniformuiv", userptr);
  1404. glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC) load("glGetVertexAttribIiv", userptr);
  1405. glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC) load("glGetVertexAttribIuiv", userptr);
  1406. glIsEnabledi = (PFNGLISENABLEDIPROC) load("glIsEnabledi", userptr);
  1407. glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC) load("glIsFramebuffer", userptr);
  1408. glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC) load("glIsRenderbuffer", userptr);
  1409. glIsVertexArray = (PFNGLISVERTEXARRAYPROC) load("glIsVertexArray", userptr);
  1410. glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC) load("glMapBufferRange", userptr);
  1411. glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC) load("glRenderbufferStorage", userptr);
  1412. glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC) load("glRenderbufferStorageMultisample", userptr);
  1413. glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC) load("glTexParameterIiv", userptr);
  1414. glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC) load("glTexParameterIuiv", userptr);
  1415. glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC) load("glTransformFeedbackVaryings", userptr);
  1416. glUniform1ui = (PFNGLUNIFORM1UIPROC) load("glUniform1ui", userptr);
  1417. glUniform1uiv = (PFNGLUNIFORM1UIVPROC) load("glUniform1uiv", userptr);
  1418. glUniform2ui = (PFNGLUNIFORM2UIPROC) load("glUniform2ui", userptr);
  1419. glUniform2uiv = (PFNGLUNIFORM2UIVPROC) load("glUniform2uiv", userptr);
  1420. glUniform3ui = (PFNGLUNIFORM3UIPROC) load("glUniform3ui", userptr);
  1421. glUniform3uiv = (PFNGLUNIFORM3UIVPROC) load("glUniform3uiv", userptr);
  1422. glUniform4ui = (PFNGLUNIFORM4UIPROC) load("glUniform4ui", userptr);
  1423. glUniform4uiv = (PFNGLUNIFORM4UIVPROC) load("glUniform4uiv", userptr);
  1424. glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC) load("glVertexAttribI1i", userptr);
  1425. glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC) load("glVertexAttribI1iv", userptr);
  1426. glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC) load("glVertexAttribI1ui", userptr);
  1427. glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC) load("glVertexAttribI1uiv", userptr);
  1428. glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC) load("glVertexAttribI2i", userptr);
  1429. glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC) load("glVertexAttribI2iv", userptr);
  1430. glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC) load("glVertexAttribI2ui", userptr);
  1431. glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC) load("glVertexAttribI2uiv", userptr);
  1432. glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC) load("glVertexAttribI3i", userptr);
  1433. glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC) load("glVertexAttribI3iv", userptr);
  1434. glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC) load("glVertexAttribI3ui", userptr);
  1435. glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC) load("glVertexAttribI3uiv", userptr);
  1436. glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC) load("glVertexAttribI4bv", userptr);
  1437. glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC) load("glVertexAttribI4i", userptr);
  1438. glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC) load("glVertexAttribI4iv", userptr);
  1439. glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC) load("glVertexAttribI4sv", userptr);
  1440. glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC) load("glVertexAttribI4ubv", userptr);
  1441. glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC) load("glVertexAttribI4ui", userptr);
  1442. glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC) load("glVertexAttribI4uiv", userptr);
  1443. glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC) load("glVertexAttribI4usv", userptr);
  1444. glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC) load("glVertexAttribIPointer", userptr);
  1445. }
  1446. static void glad_gl_load_GL_VERSION_3_1( GLADuserptrloadfunc load, void* userptr) {
  1447. if(!GLAD_GL_VERSION_3_1) return;
  1448. glBindBufferBase = (PFNGLBINDBUFFERBASEPROC) load("glBindBufferBase", userptr);
  1449. glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC) load("glBindBufferRange", userptr);
  1450. glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC) load("glCopyBufferSubData", userptr);
  1451. glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC) load("glDrawArraysInstanced", userptr);
  1452. glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC) load("glDrawElementsInstanced", userptr);
  1453. glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC) load("glGetActiveUniformBlockName", userptr);
  1454. glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC) load("glGetActiveUniformBlockiv", userptr);
  1455. glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC) load("glGetActiveUniformName", userptr);
  1456. glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC) load("glGetActiveUniformsiv", userptr);
  1457. glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC) load("glGetIntegeri_v", userptr);
  1458. glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC) load("glGetUniformBlockIndex", userptr);
  1459. glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC) load("glGetUniformIndices", userptr);
  1460. glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC) load("glPrimitiveRestartIndex", userptr);
  1461. glTexBuffer = (PFNGLTEXBUFFERPROC) load("glTexBuffer", userptr);
  1462. glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC) load("glUniformBlockBinding", userptr);
  1463. }
  1464. static void glad_gl_load_GL_VERSION_3_2( GLADuserptrloadfunc load, void* userptr) {
  1465. if(!GLAD_GL_VERSION_3_2) return;
  1466. glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC) load("glClientWaitSync", userptr);
  1467. glDeleteSync = (PFNGLDELETESYNCPROC) load("glDeleteSync", userptr);
  1468. glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC) load("glDrawElementsBaseVertex", userptr);
  1469. glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC) load("glDrawElementsInstancedBaseVertex", userptr);
  1470. glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC) load("glDrawRangeElementsBaseVertex", userptr);
  1471. glFenceSync = (PFNGLFENCESYNCPROC) load("glFenceSync", userptr);
  1472. glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC) load("glFramebufferTexture", userptr);
  1473. glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC) load("glGetBufferParameteri64v", userptr);
  1474. glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC) load("glGetInteger64i_v", userptr);
  1475. glGetInteger64v = (PFNGLGETINTEGER64VPROC) load("glGetInteger64v", userptr);
  1476. glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC) load("glGetMultisamplefv", userptr);
  1477. glGetSynciv = (PFNGLGETSYNCIVPROC) load("glGetSynciv", userptr);
  1478. glIsSync = (PFNGLISSYNCPROC) load("glIsSync", userptr);
  1479. glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC) load("glMultiDrawElementsBaseVertex", userptr);
  1480. glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC) load("glProvokingVertex", userptr);
  1481. glSampleMaski = (PFNGLSAMPLEMASKIPROC) load("glSampleMaski", userptr);
  1482. glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC) load("glTexImage2DMultisample", userptr);
  1483. glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC) load("glTexImage3DMultisample", userptr);
  1484. glWaitSync = (PFNGLWAITSYNCPROC) load("glWaitSync", userptr);
  1485. }
  1486. static void glad_gl_load_GL_VERSION_3_3( GLADuserptrloadfunc load, void* userptr) {
  1487. if(!GLAD_GL_VERSION_3_3) return;
  1488. glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC) load("glBindFragDataLocationIndexed", userptr);
  1489. glBindSampler = (PFNGLBINDSAMPLERPROC) load("glBindSampler", userptr);
  1490. glColorP3ui = (PFNGLCOLORP3UIPROC) load("glColorP3ui", userptr);
  1491. glColorP3uiv = (PFNGLCOLORP3UIVPROC) load("glColorP3uiv", userptr);
  1492. glColorP4ui = (PFNGLCOLORP4UIPROC) load("glColorP4ui", userptr);
  1493. glColorP4uiv = (PFNGLCOLORP4UIVPROC) load("glColorP4uiv", userptr);
  1494. glDeleteSamplers = (PFNGLDELETESAMPLERSPROC) load("glDeleteSamplers", userptr);
  1495. glGenSamplers = (PFNGLGENSAMPLERSPROC) load("glGenSamplers", userptr);
  1496. glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC) load("glGetFragDataIndex", userptr);
  1497. glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC) load("glGetQueryObjecti64v", userptr);
  1498. glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC) load("glGetQueryObjectui64v", userptr);
  1499. glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC) load("glGetSamplerParameterIiv", userptr);
  1500. glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC) load("glGetSamplerParameterIuiv", userptr);
  1501. glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC) load("glGetSamplerParameterfv", userptr);
  1502. glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC) load("glGetSamplerParameteriv", userptr);
  1503. glIsSampler = (PFNGLISSAMPLERPROC) load("glIsSampler", userptr);
  1504. glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC) load("glMultiTexCoordP1ui", userptr);
  1505. glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC) load("glMultiTexCoordP1uiv", userptr);
  1506. glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC) load("glMultiTexCoordP2ui", userptr);
  1507. glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC) load("glMultiTexCoordP2uiv", userptr);
  1508. glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC) load("glMultiTexCoordP3ui", userptr);
  1509. glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC) load("glMultiTexCoordP3uiv", userptr);
  1510. glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC) load("glMultiTexCoordP4ui", userptr);
  1511. glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC) load("glMultiTexCoordP4uiv", userptr);
  1512. glNormalP3ui = (PFNGLNORMALP3UIPROC) load("glNormalP3ui", userptr);
  1513. glNormalP3uiv = (PFNGLNORMALP3UIVPROC) load("glNormalP3uiv", userptr);
  1514. glQueryCounter = (PFNGLQUERYCOUNTERPROC) load("glQueryCounter", userptr);
  1515. glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC) load("glSamplerParameterIiv", userptr);
  1516. glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC) load("glSamplerParameterIuiv", userptr);
  1517. glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC) load("glSamplerParameterf", userptr);
  1518. glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC) load("glSamplerParameterfv", userptr);
  1519. glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC) load("glSamplerParameteri", userptr);
  1520. glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC) load("glSamplerParameteriv", userptr);
  1521. glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC) load("glSecondaryColorP3ui", userptr);
  1522. glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC) load("glSecondaryColorP3uiv", userptr);
  1523. glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC) load("glTexCoordP1ui", userptr);
  1524. glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC) load("glTexCoordP1uiv", userptr);
  1525. glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC) load("glTexCoordP2ui", userptr);
  1526. glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC) load("glTexCoordP2uiv", userptr);
  1527. glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC) load("glTexCoordP3ui", userptr);
  1528. glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC) load("glTexCoordP3uiv", userptr);
  1529. glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC) load("glTexCoordP4ui", userptr);
  1530. glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC) load("glTexCoordP4uiv", userptr);
  1531. glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC) load("glVertexAttribDivisor", userptr);
  1532. glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC) load("glVertexAttribP1ui", userptr);
  1533. glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC) load("glVertexAttribP1uiv", userptr);
  1534. glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC) load("glVertexAttribP2ui", userptr);
  1535. glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC) load("glVertexAttribP2uiv", userptr);
  1536. glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC) load("glVertexAttribP3ui", userptr);
  1537. glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC) load("glVertexAttribP3uiv", userptr);
  1538. glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC) load("glVertexAttribP4ui", userptr);
  1539. glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC) load("glVertexAttribP4uiv", userptr);
  1540. glVertexP2ui = (PFNGLVERTEXP2UIPROC) load("glVertexP2ui", userptr);
  1541. glVertexP2uiv = (PFNGLVERTEXP2UIVPROC) load("glVertexP2uiv", userptr);
  1542. glVertexP3ui = (PFNGLVERTEXP3UIPROC) load("glVertexP3ui", userptr);
  1543. glVertexP3uiv = (PFNGLVERTEXP3UIVPROC) load("glVertexP3uiv", userptr);
  1544. glVertexP4ui = (PFNGLVERTEXP4UIPROC) load("glVertexP4ui", userptr);
  1545. glVertexP4uiv = (PFNGLVERTEXP4UIVPROC) load("glVertexP4uiv", userptr);
  1546. }
  1547. static void glad_gl_load_GL_ARB_multisample( GLADuserptrloadfunc load, void* userptr) {
  1548. if(!GLAD_GL_ARB_multisample) return;
  1549. glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC) load("glSampleCoverage", userptr);
  1550. glSampleCoverageARB = (PFNGLSAMPLECOVERAGEARBPROC) load("glSampleCoverageARB", userptr);
  1551. }
  1552. static void glad_gl_load_GL_ARB_robustness( GLADuserptrloadfunc load, void* userptr) {
  1553. if(!GLAD_GL_ARB_robustness) return;
  1554. glGetGraphicsResetStatusARB = (PFNGLGETGRAPHICSRESETSTATUSARBPROC) load("glGetGraphicsResetStatusARB", userptr);
  1555. glGetnColorTableARB = (PFNGLGETNCOLORTABLEARBPROC) load("glGetnColorTableARB", userptr);
  1556. glGetnCompressedTexImageARB = (PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC) load("glGetnCompressedTexImageARB", userptr);
  1557. glGetnConvolutionFilterARB = (PFNGLGETNCONVOLUTIONFILTERARBPROC) load("glGetnConvolutionFilterARB", userptr);
  1558. glGetnHistogramARB = (PFNGLGETNHISTOGRAMARBPROC) load("glGetnHistogramARB", userptr);
  1559. glGetnMapdvARB = (PFNGLGETNMAPDVARBPROC) load("glGetnMapdvARB", userptr);
  1560. glGetnMapfvARB = (PFNGLGETNMAPFVARBPROC) load("glGetnMapfvARB", userptr);
  1561. glGetnMapivARB = (PFNGLGETNMAPIVARBPROC) load("glGetnMapivARB", userptr);
  1562. glGetnMinmaxARB = (PFNGLGETNMINMAXARBPROC) load("glGetnMinmaxARB", userptr);
  1563. glGetnPixelMapfvARB = (PFNGLGETNPIXELMAPFVARBPROC) load("glGetnPixelMapfvARB", userptr);
  1564. glGetnPixelMapuivARB = (PFNGLGETNPIXELMAPUIVARBPROC) load("glGetnPixelMapuivARB", userptr);
  1565. glGetnPixelMapusvARB = (PFNGLGETNPIXELMAPUSVARBPROC) load("glGetnPixelMapusvARB", userptr);
  1566. glGetnPolygonStippleARB = (PFNGLGETNPOLYGONSTIPPLEARBPROC) load("glGetnPolygonStippleARB", userptr);
  1567. glGetnSeparableFilterARB = (PFNGLGETNSEPARABLEFILTERARBPROC) load("glGetnSeparableFilterARB", userptr);
  1568. glGetnTexImageARB = (PFNGLGETNTEXIMAGEARBPROC) load("glGetnTexImageARB", userptr);
  1569. glGetnUniformdvARB = (PFNGLGETNUNIFORMDVARBPROC) load("glGetnUniformdvARB", userptr);
  1570. glGetnUniformfvARB = (PFNGLGETNUNIFORMFVARBPROC) load("glGetnUniformfvARB", userptr);
  1571. glGetnUniformivARB = (PFNGLGETNUNIFORMIVARBPROC) load("glGetnUniformivARB", userptr);
  1572. glGetnUniformuivARB = (PFNGLGETNUNIFORMUIVARBPROC) load("glGetnUniformuivARB", userptr);
  1573. glReadnPixels = (PFNGLREADNPIXELSPROC) load("glReadnPixels", userptr);
  1574. glReadnPixelsARB = (PFNGLREADNPIXELSARBPROC) load("glReadnPixelsARB", userptr);
  1575. }
  1576. static void glad_gl_load_GL_KHR_debug( GLADuserptrloadfunc load, void* userptr) {
  1577. if(!GLAD_GL_KHR_debug) return;
  1578. glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC) load("glDebugMessageCallback", userptr);
  1579. glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC) load("glDebugMessageControl", userptr);
  1580. glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC) load("glDebugMessageInsert", userptr);
  1581. glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC) load("glGetDebugMessageLog", userptr);
  1582. glGetObjectLabel = (PFNGLGETOBJECTLABELPROC) load("glGetObjectLabel", userptr);
  1583. glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC) load("glGetObjectPtrLabel", userptr);
  1584. glGetPointerv = (PFNGLGETPOINTERVPROC) load("glGetPointerv", userptr);
  1585. glObjectLabel = (PFNGLOBJECTLABELPROC) load("glObjectLabel", userptr);
  1586. glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC) load("glObjectPtrLabel", userptr);
  1587. glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC) load("glPopDebugGroup", userptr);
  1588. glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC) load("glPushDebugGroup", userptr);
  1589. }
  1590. #if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
  1591. #define GLAD_GL_IS_SOME_NEW_VERSION 1
  1592. #else
  1593. #define GLAD_GL_IS_SOME_NEW_VERSION 0
  1594. #endif
  1595. static int glad_gl_get_extensions( int version, const char **out_exts, unsigned int *out_num_exts_i, char ***out_exts_i) {
  1596. #if GLAD_GL_IS_SOME_NEW_VERSION
  1597. if(GLAD_VERSION_MAJOR(version) < 3) {
  1598. #else
  1599. (void) version;
  1600. (void) out_num_exts_i;
  1601. (void) out_exts_i;
  1602. #endif
  1603. if (glGetString == NULL) {
  1604. return 0;
  1605. }
  1606. *out_exts = (const char *)glGetString(GL_EXTENSIONS);
  1607. #if GLAD_GL_IS_SOME_NEW_VERSION
  1608. } else {
  1609. unsigned int index = 0;
  1610. unsigned int num_exts_i = 0;
  1611. char **exts_i = NULL;
  1612. if (glGetStringi == NULL || glGetIntegerv == NULL) {
  1613. return 0;
  1614. }
  1615. glGetIntegerv(GL_NUM_EXTENSIONS, (int*) &num_exts_i);
  1616. if (num_exts_i > 0) {
  1617. exts_i = (char **) malloc(num_exts_i * (sizeof *exts_i));
  1618. }
  1619. if (exts_i == NULL) {
  1620. return 0;
  1621. }
  1622. for(index = 0; index < num_exts_i; index++) {
  1623. const char *gl_str_tmp = (const char*) glGetStringi(GL_EXTENSIONS, index);
  1624. size_t len = strlen(gl_str_tmp) + 1;
  1625. char *local_str = (char*) malloc(len * sizeof(char));
  1626. if(local_str != NULL) {
  1627. memcpy(local_str, gl_str_tmp, len * sizeof(char));
  1628. }
  1629. exts_i[index] = local_str;
  1630. }
  1631. *out_num_exts_i = num_exts_i;
  1632. *out_exts_i = exts_i;
  1633. }
  1634. #endif
  1635. return 1;
  1636. }
  1637. static void glad_gl_free_extensions(char **exts_i, unsigned int num_exts_i) {
  1638. if (exts_i != NULL) {
  1639. unsigned int index;
  1640. for(index = 0; index < num_exts_i; index++) {
  1641. free((void *) (exts_i[index]));
  1642. }
  1643. free((void *)exts_i);
  1644. exts_i = NULL;
  1645. }
  1646. }
  1647. static int glad_gl_has_extension(int version, const char *exts, unsigned int num_exts_i, char **exts_i, const char *ext) {
  1648. if(GLAD_VERSION_MAJOR(version) < 3 || !GLAD_GL_IS_SOME_NEW_VERSION) {
  1649. const char *extensions;
  1650. const char *loc;
  1651. const char *terminator;
  1652. extensions = exts;
  1653. if(extensions == NULL || ext == NULL) {
  1654. return 0;
  1655. }
  1656. while(1) {
  1657. loc = strstr(extensions, ext);
  1658. if(loc == NULL) {
  1659. return 0;
  1660. }
  1661. terminator = loc + strlen(ext);
  1662. if((loc == extensions || *(loc - 1) == ' ') &&
  1663. (*terminator == ' ' || *terminator == '\0')) {
  1664. return 1;
  1665. }
  1666. extensions = terminator;
  1667. }
  1668. } else {
  1669. unsigned int index;
  1670. for(index = 0; index < num_exts_i; index++) {
  1671. const char *e = exts_i[index];
  1672. if(strcmp(e, ext) == 0) {
  1673. return 1;
  1674. }
  1675. }
  1676. }
  1677. return 0;
  1678. }
  1679. static GLADapiproc glad_gl_get_proc_from_userptr(const char* name, void *userptr) {
  1680. return (GLAD_GNUC_EXTENSION (GLADapiproc (*)(const char *name)) userptr)(name);
  1681. }
  1682. static int glad_gl_find_extensions_gl( int version) {
  1683. const char *exts = NULL;
  1684. unsigned int num_exts_i = 0;
  1685. char **exts_i = NULL;
  1686. if (!glad_gl_get_extensions(version, &exts, &num_exts_i, &exts_i)) return 0;
  1687. GLAD_GL_ARB_multisample = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_multisample");
  1688. GLAD_GL_ARB_robustness = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_ARB_robustness");
  1689. GLAD_GL_KHR_debug = glad_gl_has_extension(version, exts, num_exts_i, exts_i, "GL_KHR_debug");
  1690. glad_gl_free_extensions(exts_i, num_exts_i);
  1691. return 1;
  1692. }
  1693. static int glad_gl_find_core_gl(void) {
  1694. int i, major, minor;
  1695. const char* version;
  1696. const char* prefixes[] = {
  1697. "OpenGL ES-CM ",
  1698. "OpenGL ES-CL ",
  1699. "OpenGL ES ",
  1700. NULL
  1701. };
  1702. version = (const char*) glGetString(GL_VERSION);
  1703. if (!version) return 0;
  1704. for (i = 0; prefixes[i]; i++) {
  1705. const size_t length = strlen(prefixes[i]);
  1706. if (strncmp(version, prefixes[i], length) == 0) {
  1707. version += length;
  1708. break;
  1709. }
  1710. }
  1711. GLAD_IMPL_UTIL_SSCANF(version, "%d.%d", &major, &minor);
  1712. GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1;
  1713. GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1;
  1714. GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1;
  1715. GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1;
  1716. GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1;
  1717. GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1;
  1718. GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2;
  1719. GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2;
  1720. GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3;
  1721. GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3;
  1722. GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3;
  1723. GLAD_GL_VERSION_3_3 = (major == 3 && minor >= 3) || major > 3;
  1724. return GLAD_MAKE_VERSION(major, minor);
  1725. }
  1726. int gladLoadGLUserPtr( GLADuserptrloadfunc load, void *userptr) {
  1727. int version;
  1728. glGetString = (PFNGLGETSTRINGPROC) load("glGetString", userptr);
  1729. if(glGetString == NULL) return 0;
  1730. if(glGetString(GL_VERSION) == NULL) return 0;
  1731. version = glad_gl_find_core_gl();
  1732. glad_gl_load_GL_VERSION_1_0(load, userptr);
  1733. glad_gl_load_GL_VERSION_1_1(load, userptr);
  1734. glad_gl_load_GL_VERSION_1_2(load, userptr);
  1735. glad_gl_load_GL_VERSION_1_3(load, userptr);
  1736. glad_gl_load_GL_VERSION_1_4(load, userptr);
  1737. glad_gl_load_GL_VERSION_1_5(load, userptr);
  1738. glad_gl_load_GL_VERSION_2_0(load, userptr);
  1739. glad_gl_load_GL_VERSION_2_1(load, userptr);
  1740. glad_gl_load_GL_VERSION_3_0(load, userptr);
  1741. glad_gl_load_GL_VERSION_3_1(load, userptr);
  1742. glad_gl_load_GL_VERSION_3_2(load, userptr);
  1743. glad_gl_load_GL_VERSION_3_3(load, userptr);
  1744. if (!glad_gl_find_extensions_gl(version)) return 0;
  1745. glad_gl_load_GL_ARB_multisample(load, userptr);
  1746. glad_gl_load_GL_ARB_robustness(load, userptr);
  1747. glad_gl_load_GL_KHR_debug(load, userptr);
  1748. return version;
  1749. }
  1750. int gladLoadGL( GLADloadfunc load) {
  1751. return gladLoadGLUserPtr( glad_gl_get_proc_from_userptr, GLAD_GNUC_EXTENSION (void*) load);
  1752. }