Platformer in OpenGL
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1555 lines
83 KiB

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