glad.c 107 KB

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