glad.c 92 KB

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