summaryrefslogtreecommitdiff
path: root/app/contrib/glad/src
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2024-06-15 11:43:47 -0700
committer3gg <3gg@shellblade.net>2024-06-15 11:43:47 -0700
commitbc11af703e622dcc95ac337ad1a68db2d4cc16c0 (patch)
treeec2ad303bb5a9ef1983b3e2f6fe88aec25a8d4a5 /app/contrib/glad/src
parent6dedc3c72f0772bee98a3e2dd01430603e8b2d58 (diff)
Move glad initialization to gfx-app.
Diffstat (limited to 'app/contrib/glad/src')
-rw-r--r--app/contrib/glad/src/glad.c2277
1 files changed, 2277 insertions, 0 deletions
diff --git a/app/contrib/glad/src/glad.c b/app/contrib/glad/src/glad.c
new file mode 100644
index 0000000..4a3cf51
--- /dev/null
+++ b/app/contrib/glad/src/glad.c
@@ -0,0 +1,2277 @@
1/*
2
3 OpenGL, OpenGL ES loader generated by glad 0.1.33 on Sun Aug 30 00:22:38 2020.
4
5 Language/Generator: C/C++
6 Specification: gl
7 APIs: gl=4.6, gles2=3.2
8 Profile: core
9 Extensions:
10
11 Loader: True
12 Local files: False
13 Omit khrplatform: False
14 Reproducible: False
15
16 Commandline:
17 --profile="core" --api="gl=4.6,gles2=3.2" --generator="c" --spec="gl" --extensions=""
18 Online:
19 https://glad.dav1d.de/#profile=core&language=c&specification=gl&loader=on&api=gl%3D4.6&api=gles2%3D3.2
20*/
21
22#include <stdio.h>
23#include <stdlib.h>
24#include <string.h>
25#include <glad/glad.h>
26
27static void* get_proc(const char *namez);
28
29#if defined(_WIN32) || defined(__CYGWIN__)
30#ifndef _WINDOWS_
31#undef APIENTRY
32#endif
33#include <windows.h>
34static HMODULE libGL;
35
36typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*);
37static PFNWGLGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
38
39#ifdef _MSC_VER
40#ifdef __has_include
41 #if __has_include(<winapifamily.h>)
42 #define HAVE_WINAPIFAMILY 1
43 #endif
44#elif _MSC_VER >= 1700 && !_USING_V110_SDK71_
45 #define HAVE_WINAPIFAMILY 1
46#endif
47#endif
48
49#ifdef HAVE_WINAPIFAMILY
50 #include <winapifamily.h>
51 #if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
52 #define IS_UWP 1
53 #endif
54#endif
55
56static
57int open_gl(void) {
58#ifndef IS_UWP
59 libGL = LoadLibraryW(L"opengl32.dll");
60 if(libGL != NULL) {
61 void (* tmp)(void);
62 tmp = (void(*)(void)) GetProcAddress(libGL, "wglGetProcAddress");
63 gladGetProcAddressPtr = (PFNWGLGETPROCADDRESSPROC_PRIVATE) tmp;
64 return gladGetProcAddressPtr != NULL;
65 }
66#endif
67
68 return 0;
69}
70
71static
72void close_gl(void) {
73 if(libGL != NULL) {
74 FreeLibrary((HMODULE) libGL);
75 libGL = NULL;
76 }
77}
78#else
79#include <dlfcn.h>
80static void* libGL;
81
82#if !defined(__APPLE__) && !defined(__HAIKU__)
83typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*);
84static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr;
85#endif
86
87static
88int open_gl(void) {
89#ifdef __APPLE__
90 static const char *NAMES[] = {
91 "../Frameworks/OpenGL.framework/OpenGL",
92 "/Library/Frameworks/OpenGL.framework/OpenGL",
93 "/System/Library/Frameworks/OpenGL.framework/OpenGL",
94 "/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL"
95 };
96#else
97 static const char *NAMES[] = {"libGL.so.1", "libGL.so"};
98#endif
99
100 unsigned int index = 0;
101 for(index = 0; index < (sizeof(NAMES) / sizeof(NAMES[0])); index++) {
102 libGL = dlopen(NAMES[index], RTLD_NOW | RTLD_GLOBAL);
103
104 if(libGL != NULL) {
105#if defined(__APPLE__) || defined(__HAIKU__)
106 return 1;
107#else
108 gladGetProcAddressPtr = (PFNGLXGETPROCADDRESSPROC_PRIVATE)dlsym(libGL,
109 "glXGetProcAddressARB");
110 return gladGetProcAddressPtr != NULL;
111#endif
112 }
113 }
114
115 return 0;
116}
117
118static
119void close_gl(void) {
120 if(libGL != NULL) {
121 dlclose(libGL);
122 libGL = NULL;
123 }
124}
125#endif
126
127static
128void* get_proc(const char *namez) {
129 void* result = NULL;
130 if(libGL == NULL) return NULL;
131
132#if !defined(__APPLE__) && !defined(__HAIKU__)
133 if(gladGetProcAddressPtr != NULL) {
134 result = gladGetProcAddressPtr(namez);
135 }
136#endif
137 if(result == NULL) {
138#if defined(_WIN32) || defined(__CYGWIN__)
139 result = (void*)GetProcAddress((HMODULE) libGL, namez);
140#else
141 result = dlsym(libGL, namez);
142#endif
143 }
144
145 return result;
146}
147
148int gladLoadGL(void) {
149 int status = 0;
150
151 if(open_gl()) {
152 status = gladLoadGLLoader(&get_proc);
153 close_gl();
154 }
155
156 return status;
157}
158
159struct gladGLversionStruct GLVersion = { 0, 0 };
160
161#if defined(GL_ES_VERSION_3_0) || defined(GL_VERSION_3_0)
162#define _GLAD_IS_SOME_NEW_VERSION 1
163#endif
164
165static int max_loaded_major;
166static int max_loaded_minor;
167
168static const char *exts = NULL;
169static int num_exts_i = 0;
170static char **exts_i = NULL;
171
172static int get_exts(void) {
173#ifdef _GLAD_IS_SOME_NEW_VERSION
174 if(max_loaded_major < 3) {
175#endif
176 exts = (const char *)glGetString(GL_EXTENSIONS);
177#ifdef _GLAD_IS_SOME_NEW_VERSION
178 } else {
179 unsigned int index;
180
181 num_exts_i = 0;
182 glGetIntegerv(GL_NUM_EXTENSIONS, &num_exts_i);
183 if (num_exts_i > 0) {
184 exts_i = (char **)malloc((size_t)num_exts_i * (sizeof *exts_i));
185 }
186
187 if (exts_i == NULL) {
188 return 0;
189 }
190
191 for(index = 0; index < (unsigned)num_exts_i; index++) {
192 const char *gl_str_tmp = (const char*)glGetStringi(GL_EXTENSIONS, index);
193 size_t len = strlen(gl_str_tmp);
194
195 char *local_str = (char*)malloc((len+1) * sizeof(char));
196 if(local_str != NULL) {
197 memcpy(local_str, gl_str_tmp, (len+1) * sizeof(char));
198 }
199 exts_i[index] = local_str;
200 }
201 }
202#endif
203 return 1;
204}
205
206static void free_exts(void) {
207 if (exts_i != NULL) {
208 int index;
209 for(index = 0; index < num_exts_i; index++) {
210 free((char *)exts_i[index]);
211 }
212 free((void *)exts_i);
213 exts_i = NULL;
214 }
215}
216
217static int has_ext(const char *ext) {
218#ifdef _GLAD_IS_SOME_NEW_VERSION
219 if(max_loaded_major < 3) {
220#endif
221 const char *extensions;
222 const char *loc;
223 const char *terminator;
224 extensions = exts;
225 if(extensions == NULL || ext == NULL) {
226 return 0;
227 }
228
229 while(1) {
230 loc = strstr(extensions, ext);
231 if(loc == NULL) {
232 return 0;
233 }
234
235 terminator = loc + strlen(ext);
236 if((loc == extensions || *(loc - 1) == ' ') &&
237 (*terminator == ' ' || *terminator == '\0')) {
238 return 1;
239 }
240 extensions = terminator;
241 }
242#ifdef _GLAD_IS_SOME_NEW_VERSION
243 } else {
244 int index;
245 if(exts_i == NULL) return 0;
246 for(index = 0; index < num_exts_i; index++) {
247 const char *e = exts_i[index];
248
249 if(exts_i[index] != NULL && strcmp(e, ext) == 0) {
250 return 1;
251 }
252 }
253 }
254#endif
255
256 return 0;
257}
258int GLAD_GL_VERSION_1_0 = 0;
259int GLAD_GL_VERSION_1_1 = 0;
260int GLAD_GL_VERSION_1_2 = 0;
261int GLAD_GL_VERSION_1_3 = 0;
262int GLAD_GL_VERSION_1_4 = 0;
263int GLAD_GL_VERSION_1_5 = 0;
264int GLAD_GL_VERSION_2_0 = 0;
265int GLAD_GL_VERSION_2_1 = 0;
266int GLAD_GL_VERSION_3_0 = 0;
267int GLAD_GL_VERSION_3_1 = 0;
268int GLAD_GL_VERSION_3_2 = 0;
269int GLAD_GL_VERSION_3_3 = 0;
270int GLAD_GL_VERSION_4_0 = 0;
271int GLAD_GL_VERSION_4_1 = 0;
272int GLAD_GL_VERSION_4_2 = 0;
273int GLAD_GL_VERSION_4_3 = 0;
274int GLAD_GL_VERSION_4_4 = 0;
275int GLAD_GL_VERSION_4_5 = 0;
276int GLAD_GL_VERSION_4_6 = 0;
277int GLAD_GL_ES_VERSION_2_0 = 0;
278int GLAD_GL_ES_VERSION_3_0 = 0;
279int GLAD_GL_ES_VERSION_3_1 = 0;
280int GLAD_GL_ES_VERSION_3_2 = 0;
281PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram = NULL;
282PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL;
283PFNGLATTACHSHADERPROC glad_glAttachShader = NULL;
284PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL;
285PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL;
286PFNGLBEGINQUERYINDEXEDPROC glad_glBeginQueryIndexed = NULL;
287PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL;
288PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL;
289PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL;
290PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL;
291PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL;
292PFNGLBINDBUFFERSBASEPROC glad_glBindBuffersBase = NULL;
293PFNGLBINDBUFFERSRANGEPROC glad_glBindBuffersRange = NULL;
294PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL;
295PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL;
296PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL;
297PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture = NULL;
298PFNGLBINDIMAGETEXTURESPROC glad_glBindImageTextures = NULL;
299PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline = NULL;
300PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL;
301PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL;
302PFNGLBINDSAMPLERSPROC glad_glBindSamplers = NULL;
303PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL;
304PFNGLBINDTEXTUREUNITPROC glad_glBindTextureUnit = NULL;
305PFNGLBINDTEXTURESPROC glad_glBindTextures = NULL;
306PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback = NULL;
307PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL;
308PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer = NULL;
309PFNGLBINDVERTEXBUFFERSPROC glad_glBindVertexBuffers = NULL;
310PFNGLBLENDBARRIERPROC glad_glBlendBarrier = NULL;
311PFNGLBLENDCOLORPROC glad_glBlendColor = NULL;
312PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL;
313PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL;
314PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei = NULL;
315PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi = NULL;
316PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL;
317PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL;
318PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei = NULL;
319PFNGLBLENDFUNCIPROC glad_glBlendFunci = NULL;
320PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL;
321PFNGLBLITNAMEDFRAMEBUFFERPROC glad_glBlitNamedFramebuffer = NULL;
322PFNGLBUFFERDATAPROC glad_glBufferData = NULL;
323PFNGLBUFFERSTORAGEPROC glad_glBufferStorage = NULL;
324PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL;
325PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL;
326PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glad_glCheckNamedFramebufferStatus = NULL;
327PFNGLCLAMPCOLORPROC glad_glClampColor = NULL;
328PFNGLCLEARPROC glad_glClear = NULL;
329PFNGLCLEARBUFFERDATAPROC glad_glClearBufferData = NULL;
330PFNGLCLEARBUFFERSUBDATAPROC glad_glClearBufferSubData = NULL;
331PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL;
332PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL;
333PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL;
334PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL;
335PFNGLCLEARCOLORPROC glad_glClearColor = NULL;
336PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL;
337PFNGLCLEARDEPTHFPROC glad_glClearDepthf = NULL;
338PFNGLCLEARNAMEDBUFFERDATAPROC glad_glClearNamedBufferData = NULL;
339PFNGLCLEARNAMEDBUFFERSUBDATAPROC glad_glClearNamedBufferSubData = NULL;
340PFNGLCLEARNAMEDFRAMEBUFFERFIPROC glad_glClearNamedFramebufferfi = NULL;
341PFNGLCLEARNAMEDFRAMEBUFFERFVPROC glad_glClearNamedFramebufferfv = NULL;
342PFNGLCLEARNAMEDFRAMEBUFFERIVPROC glad_glClearNamedFramebufferiv = NULL;
343PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glad_glClearNamedFramebufferuiv = NULL;
344PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL;
345PFNGLCLEARTEXIMAGEPROC glad_glClearTexImage = NULL;
346PFNGLCLEARTEXSUBIMAGEPROC glad_glClearTexSubImage = NULL;
347PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL;
348PFNGLCLIPCONTROLPROC glad_glClipControl = NULL;
349PFNGLCOLORMASKPROC glad_glColorMask = NULL;
350PFNGLCOLORMASKIPROC glad_glColorMaski = NULL;
351PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL;
352PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL;
353PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL;
354PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL;
355PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL;
356PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL;
357PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL;
358PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL;
359PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL;
360PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL;
361PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL;
362PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC glad_glCompressedTextureSubImage1D = NULL;
363PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC glad_glCompressedTextureSubImage2D = NULL;
364PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC glad_glCompressedTextureSubImage3D = NULL;
365PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL;
366PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData = NULL;
367PFNGLCOPYNAMEDBUFFERSUBDATAPROC glad_glCopyNamedBufferSubData = NULL;
368PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL;
369PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL;
370PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL;
371PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL;
372PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL;
373PFNGLCOPYTEXTURESUBIMAGE1DPROC glad_glCopyTextureSubImage1D = NULL;
374PFNGLCOPYTEXTURESUBIMAGE2DPROC glad_glCopyTextureSubImage2D = NULL;
375PFNGLCOPYTEXTURESUBIMAGE3DPROC glad_glCopyTextureSubImage3D = NULL;
376PFNGLCREATEBUFFERSPROC glad_glCreateBuffers = NULL;
377PFNGLCREATEFRAMEBUFFERSPROC glad_glCreateFramebuffers = NULL;
378PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL;
379PFNGLCREATEPROGRAMPIPELINESPROC glad_glCreateProgramPipelines = NULL;
380PFNGLCREATEQUERIESPROC glad_glCreateQueries = NULL;
381PFNGLCREATERENDERBUFFERSPROC glad_glCreateRenderbuffers = NULL;
382PFNGLCREATESAMPLERSPROC glad_glCreateSamplers = NULL;
383PFNGLCREATESHADERPROC glad_glCreateShader = NULL;
384PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv = NULL;
385PFNGLCREATETEXTURESPROC glad_glCreateTextures = NULL;
386PFNGLCREATETRANSFORMFEEDBACKSPROC glad_glCreateTransformFeedbacks = NULL;
387PFNGLCREATEVERTEXARRAYSPROC glad_glCreateVertexArrays = NULL;
388PFNGLCULLFACEPROC glad_glCullFace = NULL;
389PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback = NULL;
390PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl = NULL;
391PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert = NULL;
392PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL;
393PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL;
394PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL;
395PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines = NULL;
396PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL;
397PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL;
398PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL;
399PFNGLDELETESHADERPROC glad_glDeleteShader = NULL;
400PFNGLDELETESYNCPROC glad_glDeleteSync = NULL;
401PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL;
402PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks = NULL;
403PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL;
404PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL;
405PFNGLDEPTHMASKPROC glad_glDepthMask = NULL;
406PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL;
407PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv = NULL;
408PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed = NULL;
409PFNGLDEPTHRANGEFPROC glad_glDepthRangef = NULL;
410PFNGLDETACHSHADERPROC glad_glDetachShader = NULL;
411PFNGLDISABLEPROC glad_glDisable = NULL;
412PFNGLDISABLEVERTEXARRAYATTRIBPROC glad_glDisableVertexArrayAttrib = NULL;
413PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL;
414PFNGLDISABLEIPROC glad_glDisablei = NULL;
415PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute = NULL;
416PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect = NULL;
417PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL;
418PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect = NULL;
419PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL;
420PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glad_glDrawArraysInstancedBaseInstance = NULL;
421PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL;
422PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL;
423PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL;
424PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL;
425PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect = NULL;
426PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL;
427PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glad_glDrawElementsInstancedBaseInstance = NULL;
428PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL;
429PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glad_glDrawElementsInstancedBaseVertexBaseInstance = NULL;
430PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL;
431PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL;
432PFNGLDRAWTRANSFORMFEEDBACKPROC glad_glDrawTransformFeedback = NULL;
433PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glad_glDrawTransformFeedbackInstanced = NULL;
434PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glad_glDrawTransformFeedbackStream = NULL;
435PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glad_glDrawTransformFeedbackStreamInstanced = NULL;
436PFNGLENABLEPROC glad_glEnable = NULL;
437PFNGLENABLEVERTEXARRAYATTRIBPROC glad_glEnableVertexArrayAttrib = NULL;
438PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL;
439PFNGLENABLEIPROC glad_glEnablei = NULL;
440PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL;
441PFNGLENDQUERYPROC glad_glEndQuery = NULL;
442PFNGLENDQUERYINDEXEDPROC glad_glEndQueryIndexed = NULL;
443PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL;
444PFNGLFENCESYNCPROC glad_glFenceSync = NULL;
445PFNGLFINISHPROC glad_glFinish = NULL;
446PFNGLFLUSHPROC glad_glFlush = NULL;
447PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL;
448PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC glad_glFlushMappedNamedBufferRange = NULL;
449PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri = NULL;
450PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL;
451PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL;
452PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL;
453PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL;
454PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL;
455PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL;
456PFNGLFRONTFACEPROC glad_glFrontFace = NULL;
457PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL;
458PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL;
459PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines = NULL;
460PFNGLGENQUERIESPROC glad_glGenQueries = NULL;
461PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL;
462PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL;
463PFNGLGENTEXTURESPROC glad_glGenTextures = NULL;
464PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks = NULL;
465PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL;
466PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL;
467PFNGLGENERATETEXTUREMIPMAPPROC glad_glGenerateTextureMipmap = NULL;
468PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glad_glGetActiveAtomicCounterBufferiv = NULL;
469PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL;
470PFNGLGETACTIVESUBROUTINENAMEPROC glad_glGetActiveSubroutineName = NULL;
471PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glad_glGetActiveSubroutineUniformName = NULL;
472PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glad_glGetActiveSubroutineUniformiv = NULL;
473PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL;
474PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL;
475PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL;
476PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL;
477PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL;
478PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL;
479PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL;
480PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL;
481PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL;
482PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL;
483PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL;
484PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL;
485PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL;
486PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL;
487PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC glad_glGetCompressedTextureImage = NULL;
488PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC glad_glGetCompressedTextureSubImage = NULL;
489PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog = NULL;
490PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v = NULL;
491PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL;
492PFNGLGETERRORPROC glad_glGetError = NULL;
493PFNGLGETFLOATI_VPROC glad_glGetFloati_v = NULL;
494PFNGLGETFLOATVPROC glad_glGetFloatv = NULL;
495PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL;
496PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL;
497PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL;
498PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv = NULL;
499PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus = NULL;
500PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL;
501PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL;
502PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL;
503PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL;
504PFNGLGETINTERNALFORMATI64VPROC glad_glGetInternalformati64v = NULL;
505PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ = NULL;
506PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL;
507PFNGLGETNAMEDBUFFERPARAMETERI64VPROC glad_glGetNamedBufferParameteri64v = NULL;
508PFNGLGETNAMEDBUFFERPARAMETERIVPROC glad_glGetNamedBufferParameteriv = NULL;
509PFNGLGETNAMEDBUFFERPOINTERVPROC glad_glGetNamedBufferPointerv = NULL;
510PFNGLGETNAMEDBUFFERSUBDATAPROC glad_glGetNamedBufferSubData = NULL;
511PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetNamedFramebufferAttachmentParameteriv = NULL;
512PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC glad_glGetNamedFramebufferParameteriv = NULL;
513PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC glad_glGetNamedRenderbufferParameteriv = NULL;
514PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel = NULL;
515PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel = NULL;
516PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL;
517PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary = NULL;
518PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL;
519PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv = NULL;
520PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog = NULL;
521PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv = NULL;
522PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex = NULL;
523PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation = NULL;
524PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glad_glGetProgramResourceLocationIndex = NULL;
525PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName = NULL;
526PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv = NULL;
527PFNGLGETPROGRAMSTAGEIVPROC glad_glGetProgramStageiv = NULL;
528PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL;
529PFNGLGETQUERYBUFFEROBJECTI64VPROC glad_glGetQueryBufferObjecti64v = NULL;
530PFNGLGETQUERYBUFFEROBJECTIVPROC glad_glGetQueryBufferObjectiv = NULL;
531PFNGLGETQUERYBUFFEROBJECTUI64VPROC glad_glGetQueryBufferObjectui64v = NULL;
532PFNGLGETQUERYBUFFEROBJECTUIVPROC glad_glGetQueryBufferObjectuiv = NULL;
533PFNGLGETQUERYINDEXEDIVPROC glad_glGetQueryIndexediv = NULL;
534PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL;
535PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL;
536PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL;
537PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL;
538PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL;
539PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL;
540PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL;
541PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL;
542PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL;
543PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL;
544PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL;
545PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat = NULL;
546PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL;
547PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL;
548PFNGLGETSTRINGPROC glad_glGetString = NULL;
549PFNGLGETSTRINGIPROC glad_glGetStringi = NULL;
550PFNGLGETSUBROUTINEINDEXPROC glad_glGetSubroutineIndex = NULL;
551PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glad_glGetSubroutineUniformLocation = NULL;
552PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL;
553PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL;
554PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL;
555PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL;
556PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL;
557PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL;
558PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL;
559PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL;
560PFNGLGETTEXTUREIMAGEPROC glad_glGetTextureImage = NULL;
561PFNGLGETTEXTURELEVELPARAMETERFVPROC glad_glGetTextureLevelParameterfv = NULL;
562PFNGLGETTEXTURELEVELPARAMETERIVPROC glad_glGetTextureLevelParameteriv = NULL;
563PFNGLGETTEXTUREPARAMETERIIVPROC glad_glGetTextureParameterIiv = NULL;
564PFNGLGETTEXTUREPARAMETERIUIVPROC glad_glGetTextureParameterIuiv = NULL;
565PFNGLGETTEXTUREPARAMETERFVPROC glad_glGetTextureParameterfv = NULL;
566PFNGLGETTEXTUREPARAMETERIVPROC glad_glGetTextureParameteriv = NULL;
567PFNGLGETTEXTURESUBIMAGEPROC glad_glGetTextureSubImage = NULL;
568PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL;
569PFNGLGETTRANSFORMFEEDBACKI64_VPROC glad_glGetTransformFeedbacki64_v = NULL;
570PFNGLGETTRANSFORMFEEDBACKI_VPROC glad_glGetTransformFeedbacki_v = NULL;
571PFNGLGETTRANSFORMFEEDBACKIVPROC glad_glGetTransformFeedbackiv = NULL;
572PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL;
573PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL;
574PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL;
575PFNGLGETUNIFORMSUBROUTINEUIVPROC glad_glGetUniformSubroutineuiv = NULL;
576PFNGLGETUNIFORMDVPROC glad_glGetUniformdv = NULL;
577PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL;
578PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL;
579PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL;
580PFNGLGETVERTEXARRAYINDEXED64IVPROC glad_glGetVertexArrayIndexed64iv = NULL;
581PFNGLGETVERTEXARRAYINDEXEDIVPROC glad_glGetVertexArrayIndexediv = NULL;
582PFNGLGETVERTEXARRAYIVPROC glad_glGetVertexArrayiv = NULL;
583PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL;
584PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL;
585PFNGLGETVERTEXATTRIBLDVPROC glad_glGetVertexAttribLdv = NULL;
586PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL;
587PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL;
588PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL;
589PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL;
590PFNGLGETNCOLORTABLEPROC glad_glGetnColorTable = NULL;
591PFNGLGETNCOMPRESSEDTEXIMAGEPROC glad_glGetnCompressedTexImage = NULL;
592PFNGLGETNCONVOLUTIONFILTERPROC glad_glGetnConvolutionFilter = NULL;
593PFNGLGETNHISTOGRAMPROC glad_glGetnHistogram = NULL;
594PFNGLGETNMAPDVPROC glad_glGetnMapdv = NULL;
595PFNGLGETNMAPFVPROC glad_glGetnMapfv = NULL;
596PFNGLGETNMAPIVPROC glad_glGetnMapiv = NULL;
597PFNGLGETNMINMAXPROC glad_glGetnMinmax = NULL;
598PFNGLGETNPIXELMAPFVPROC glad_glGetnPixelMapfv = NULL;
599PFNGLGETNPIXELMAPUIVPROC glad_glGetnPixelMapuiv = NULL;
600PFNGLGETNPIXELMAPUSVPROC glad_glGetnPixelMapusv = NULL;
601PFNGLGETNPOLYGONSTIPPLEPROC glad_glGetnPolygonStipple = NULL;
602PFNGLGETNSEPARABLEFILTERPROC glad_glGetnSeparableFilter = NULL;
603PFNGLGETNTEXIMAGEPROC glad_glGetnTexImage = NULL;
604PFNGLGETNUNIFORMDVPROC glad_glGetnUniformdv = NULL;
605PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv = NULL;
606PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv = NULL;
607PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv = NULL;
608PFNGLHINTPROC glad_glHint = NULL;
609PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData = NULL;
610PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData = NULL;
611PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer = NULL;
612PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC glad_glInvalidateNamedFramebufferData = NULL;
613PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC glad_glInvalidateNamedFramebufferSubData = NULL;
614PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer = NULL;
615PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage = NULL;
616PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage = NULL;
617PFNGLISBUFFERPROC glad_glIsBuffer = NULL;
618PFNGLISENABLEDPROC glad_glIsEnabled = NULL;
619PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL;
620PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL;
621PFNGLISPROGRAMPROC glad_glIsProgram = NULL;
622PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline = NULL;
623PFNGLISQUERYPROC glad_glIsQuery = NULL;
624PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL;
625PFNGLISSAMPLERPROC glad_glIsSampler = NULL;
626PFNGLISSHADERPROC glad_glIsShader = NULL;
627PFNGLISSYNCPROC glad_glIsSync = NULL;
628PFNGLISTEXTUREPROC glad_glIsTexture = NULL;
629PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback = NULL;
630PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL;
631PFNGLLINEWIDTHPROC glad_glLineWidth = NULL;
632PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL;
633PFNGLLOGICOPPROC glad_glLogicOp = NULL;
634PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL;
635PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL;
636PFNGLMAPNAMEDBUFFERPROC glad_glMapNamedBuffer = NULL;
637PFNGLMAPNAMEDBUFFERRANGEPROC glad_glMapNamedBufferRange = NULL;
638PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier = NULL;
639PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion = NULL;
640PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading = NULL;
641PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL;
642PFNGLMULTIDRAWARRAYSINDIRECTPROC glad_glMultiDrawArraysIndirect = NULL;
643PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC glad_glMultiDrawArraysIndirectCount = NULL;
644PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL;
645PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL;
646PFNGLMULTIDRAWELEMENTSINDIRECTPROC glad_glMultiDrawElementsIndirect = NULL;
647PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC glad_glMultiDrawElementsIndirectCount = NULL;
648PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL;
649PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL;
650PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL;
651PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL;
652PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL;
653PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL;
654PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL;
655PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL;
656PFNGLNAMEDBUFFERDATAPROC glad_glNamedBufferData = NULL;
657PFNGLNAMEDBUFFERSTORAGEPROC glad_glNamedBufferStorage = NULL;
658PFNGLNAMEDBUFFERSUBDATAPROC glad_glNamedBufferSubData = NULL;
659PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC glad_glNamedFramebufferDrawBuffer = NULL;
660PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glad_glNamedFramebufferDrawBuffers = NULL;
661PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glad_glNamedFramebufferParameteri = NULL;
662PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glad_glNamedFramebufferReadBuffer = NULL;
663PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC glad_glNamedFramebufferRenderbuffer = NULL;
664PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glad_glNamedFramebufferTexture = NULL;
665PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC glad_glNamedFramebufferTextureLayer = NULL;
666PFNGLNAMEDRENDERBUFFERSTORAGEPROC glad_glNamedRenderbufferStorage = NULL;
667PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glNamedRenderbufferStorageMultisample = NULL;
668PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL;
669PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL;
670PFNGLOBJECTLABELPROC glad_glObjectLabel = NULL;
671PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel = NULL;
672PFNGLPATCHPARAMETERFVPROC glad_glPatchParameterfv = NULL;
673PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri = NULL;
674PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback = NULL;
675PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL;
676PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL;
677PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL;
678PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL;
679PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL;
680PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL;
681PFNGLPOINTSIZEPROC glad_glPointSize = NULL;
682PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL;
683PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL;
684PFNGLPOLYGONOFFSETCLAMPPROC glad_glPolygonOffsetClamp = NULL;
685PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup = NULL;
686PFNGLPRIMITIVEBOUNDINGBOXPROC glad_glPrimitiveBoundingBox = NULL;
687PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL;
688PFNGLPROGRAMBINARYPROC glad_glProgramBinary = NULL;
689PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri = NULL;
690PFNGLPROGRAMUNIFORM1DPROC glad_glProgramUniform1d = NULL;
691PFNGLPROGRAMUNIFORM1DVPROC glad_glProgramUniform1dv = NULL;
692PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f = NULL;
693PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv = NULL;
694PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i = NULL;
695PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv = NULL;
696PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui = NULL;
697PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv = NULL;
698PFNGLPROGRAMUNIFORM2DPROC glad_glProgramUniform2d = NULL;
699PFNGLPROGRAMUNIFORM2DVPROC glad_glProgramUniform2dv = NULL;
700PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f = NULL;
701PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv = NULL;
702PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i = NULL;
703PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv = NULL;
704PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui = NULL;
705PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv = NULL;
706PFNGLPROGRAMUNIFORM3DPROC glad_glProgramUniform3d = NULL;
707PFNGLPROGRAMUNIFORM3DVPROC glad_glProgramUniform3dv = NULL;
708PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f = NULL;
709PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv = NULL;
710PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i = NULL;
711PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv = NULL;
712PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui = NULL;
713PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv = NULL;
714PFNGLPROGRAMUNIFORM4DPROC glad_glProgramUniform4d = NULL;
715PFNGLPROGRAMUNIFORM4DVPROC glad_glProgramUniform4dv = NULL;
716PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f = NULL;
717PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv = NULL;
718PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i = NULL;
719PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv = NULL;
720PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui = NULL;
721PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv = NULL;
722PFNGLPROGRAMUNIFORMMATRIX2DVPROC glad_glProgramUniformMatrix2dv = NULL;
723PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv = NULL;
724PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glad_glProgramUniformMatrix2x3dv = NULL;
725PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv = NULL;
726PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glad_glProgramUniformMatrix2x4dv = NULL;
727PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv = NULL;
728PFNGLPROGRAMUNIFORMMATRIX3DVPROC glad_glProgramUniformMatrix3dv = NULL;
729PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv = NULL;
730PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glad_glProgramUniformMatrix3x2dv = NULL;
731PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv = NULL;
732PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glad_glProgramUniformMatrix3x4dv = NULL;
733PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv = NULL;
734PFNGLPROGRAMUNIFORMMATRIX4DVPROC glad_glProgramUniformMatrix4dv = NULL;
735PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv = NULL;
736PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glad_glProgramUniformMatrix4x2dv = NULL;
737PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv = NULL;
738PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glad_glProgramUniformMatrix4x3dv = NULL;
739PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv = NULL;
740PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL;
741PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup = NULL;
742PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL;
743PFNGLREADBUFFERPROC glad_glReadBuffer = NULL;
744PFNGLREADPIXELSPROC glad_glReadPixels = NULL;
745PFNGLREADNPIXELSPROC glad_glReadnPixels = NULL;
746PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler = NULL;
747PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL;
748PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL;
749PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback = NULL;
750PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL;
751PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL;
752PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL;
753PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL;
754PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL;
755PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL;
756PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL;
757PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL;
758PFNGLSCISSORPROC glad_glScissor = NULL;
759PFNGLSCISSORARRAYVPROC glad_glScissorArrayv = NULL;
760PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed = NULL;
761PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv = NULL;
762PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL;
763PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL;
764PFNGLSHADERBINARYPROC glad_glShaderBinary = NULL;
765PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL;
766PFNGLSHADERSTORAGEBLOCKBINDINGPROC glad_glShaderStorageBlockBinding = NULL;
767PFNGLSPECIALIZESHADERPROC glad_glSpecializeShader = NULL;
768PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL;
769PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL;
770PFNGLSTENCILMASKPROC glad_glStencilMask = NULL;
771PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL;
772PFNGLSTENCILOPPROC glad_glStencilOp = NULL;
773PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL;
774PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL;
775PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange = NULL;
776PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL;
777PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL;
778PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL;
779PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL;
780PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL;
781PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL;
782PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL;
783PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL;
784PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL;
785PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL;
786PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL;
787PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL;
788PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL;
789PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL;
790PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL;
791PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL;
792PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL;
793PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL;
794PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL;
795PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D = NULL;
796PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D = NULL;
797PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample = NULL;
798PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D = NULL;
799PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample = NULL;
800PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL;
801PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL;
802PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL;
803PFNGLTEXTUREBARRIERPROC glad_glTextureBarrier = NULL;
804PFNGLTEXTUREBUFFERPROC glad_glTextureBuffer = NULL;
805PFNGLTEXTUREBUFFERRANGEPROC glad_glTextureBufferRange = NULL;
806PFNGLTEXTUREPARAMETERIIVPROC glad_glTextureParameterIiv = NULL;
807PFNGLTEXTUREPARAMETERIUIVPROC glad_glTextureParameterIuiv = NULL;
808PFNGLTEXTUREPARAMETERFPROC glad_glTextureParameterf = NULL;
809PFNGLTEXTUREPARAMETERFVPROC glad_glTextureParameterfv = NULL;
810PFNGLTEXTUREPARAMETERIPROC glad_glTextureParameteri = NULL;
811PFNGLTEXTUREPARAMETERIVPROC glad_glTextureParameteriv = NULL;
812PFNGLTEXTURESTORAGE1DPROC glad_glTextureStorage1D = NULL;
813PFNGLTEXTURESTORAGE2DPROC glad_glTextureStorage2D = NULL;
814PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC glad_glTextureStorage2DMultisample = NULL;
815PFNGLTEXTURESTORAGE3DPROC glad_glTextureStorage3D = NULL;
816PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC glad_glTextureStorage3DMultisample = NULL;
817PFNGLTEXTURESUBIMAGE1DPROC glad_glTextureSubImage1D = NULL;
818PFNGLTEXTURESUBIMAGE2DPROC glad_glTextureSubImage2D = NULL;
819PFNGLTEXTURESUBIMAGE3DPROC glad_glTextureSubImage3D = NULL;
820PFNGLTEXTUREVIEWPROC glad_glTextureView = NULL;
821PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC glad_glTransformFeedbackBufferBase = NULL;
822PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC glad_glTransformFeedbackBufferRange = NULL;
823PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL;
824PFNGLUNIFORM1DPROC glad_glUniform1d = NULL;
825PFNGLUNIFORM1DVPROC glad_glUniform1dv = NULL;
826PFNGLUNIFORM1FPROC glad_glUniform1f = NULL;
827PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL;
828PFNGLUNIFORM1IPROC glad_glUniform1i = NULL;
829PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL;
830PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL;
831PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL;
832PFNGLUNIFORM2DPROC glad_glUniform2d = NULL;
833PFNGLUNIFORM2DVPROC glad_glUniform2dv = NULL;
834PFNGLUNIFORM2FPROC glad_glUniform2f = NULL;
835PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL;
836PFNGLUNIFORM2IPROC glad_glUniform2i = NULL;
837PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL;
838PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL;
839PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL;
840PFNGLUNIFORM3DPROC glad_glUniform3d = NULL;
841PFNGLUNIFORM3DVPROC glad_glUniform3dv = NULL;
842PFNGLUNIFORM3FPROC glad_glUniform3f = NULL;
843PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL;
844PFNGLUNIFORM3IPROC glad_glUniform3i = NULL;
845PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL;
846PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL;
847PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL;
848PFNGLUNIFORM4DPROC glad_glUniform4d = NULL;
849PFNGLUNIFORM4DVPROC glad_glUniform4dv = NULL;
850PFNGLUNIFORM4FPROC glad_glUniform4f = NULL;
851PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL;
852PFNGLUNIFORM4IPROC glad_glUniform4i = NULL;
853PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL;
854PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL;
855PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL;
856PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL;
857PFNGLUNIFORMMATRIX2DVPROC glad_glUniformMatrix2dv = NULL;
858PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL;
859PFNGLUNIFORMMATRIX2X3DVPROC glad_glUniformMatrix2x3dv = NULL;
860PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL;
861PFNGLUNIFORMMATRIX2X4DVPROC glad_glUniformMatrix2x4dv = NULL;
862PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL;
863PFNGLUNIFORMMATRIX3DVPROC glad_glUniformMatrix3dv = NULL;
864PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL;
865PFNGLUNIFORMMATRIX3X2DVPROC glad_glUniformMatrix3x2dv = NULL;
866PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL;
867PFNGLUNIFORMMATRIX3X4DVPROC glad_glUniformMatrix3x4dv = NULL;
868PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL;
869PFNGLUNIFORMMATRIX4DVPROC glad_glUniformMatrix4dv = NULL;
870PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL;
871PFNGLUNIFORMMATRIX4X2DVPROC glad_glUniformMatrix4x2dv = NULL;
872PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL;
873PFNGLUNIFORMMATRIX4X3DVPROC glad_glUniformMatrix4x3dv = NULL;
874PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL;
875PFNGLUNIFORMSUBROUTINESUIVPROC glad_glUniformSubroutinesuiv = NULL;
876PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL;
877PFNGLUNMAPNAMEDBUFFERPROC glad_glUnmapNamedBuffer = NULL;
878PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL;
879PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages = NULL;
880PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL;
881PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline = NULL;
882PFNGLVERTEXARRAYATTRIBBINDINGPROC glad_glVertexArrayAttribBinding = NULL;
883PFNGLVERTEXARRAYATTRIBFORMATPROC glad_glVertexArrayAttribFormat = NULL;
884PFNGLVERTEXARRAYATTRIBIFORMATPROC glad_glVertexArrayAttribIFormat = NULL;
885PFNGLVERTEXARRAYATTRIBLFORMATPROC glad_glVertexArrayAttribLFormat = NULL;
886PFNGLVERTEXARRAYBINDINGDIVISORPROC glad_glVertexArrayBindingDivisor = NULL;
887PFNGLVERTEXARRAYELEMENTBUFFERPROC glad_glVertexArrayElementBuffer = NULL;
888PFNGLVERTEXARRAYVERTEXBUFFERPROC glad_glVertexArrayVertexBuffer = NULL;
889PFNGLVERTEXARRAYVERTEXBUFFERSPROC glad_glVertexArrayVertexBuffers = NULL;
890PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL;
891PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL;
892PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL;
893PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL;
894PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL;
895PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL;
896PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL;
897PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL;
898PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL;
899PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL;
900PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL;
901PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL;
902PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL;
903PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL;
904PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL;
905PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL;
906PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL;
907PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL;
908PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL;
909PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL;
910PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL;
911PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL;
912PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL;
913PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL;
914PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL;
915PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL;
916PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL;
917PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL;
918PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL;
919PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL;
920PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL;
921PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL;
922PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL;
923PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL;
924PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL;
925PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL;
926PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding = NULL;
927PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL;
928PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat = NULL;
929PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL;
930PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL;
931PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL;
932PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL;
933PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL;
934PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL;
935PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL;
936PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL;
937PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL;
938PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL;
939PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL;
940PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL;
941PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL;
942PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL;
943PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL;
944PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL;
945PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL;
946PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL;
947PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL;
948PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL;
949PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat = NULL;
950PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL;
951PFNGLVERTEXATTRIBL1DPROC glad_glVertexAttribL1d = NULL;
952PFNGLVERTEXATTRIBL1DVPROC glad_glVertexAttribL1dv = NULL;
953PFNGLVERTEXATTRIBL2DPROC glad_glVertexAttribL2d = NULL;
954PFNGLVERTEXATTRIBL2DVPROC glad_glVertexAttribL2dv = NULL;
955PFNGLVERTEXATTRIBL3DPROC glad_glVertexAttribL3d = NULL;
956PFNGLVERTEXATTRIBL3DVPROC glad_glVertexAttribL3dv = NULL;
957PFNGLVERTEXATTRIBL4DPROC glad_glVertexAttribL4d = NULL;
958PFNGLVERTEXATTRIBL4DVPROC glad_glVertexAttribL4dv = NULL;
959PFNGLVERTEXATTRIBLFORMATPROC glad_glVertexAttribLFormat = NULL;
960PFNGLVERTEXATTRIBLPOINTERPROC glad_glVertexAttribLPointer = NULL;
961PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL;
962PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL;
963PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL;
964PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL;
965PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL;
966PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL;
967PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL;
968PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL;
969PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL;
970PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor = NULL;
971PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL;
972PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL;
973PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL;
974PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL;
975PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL;
976PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL;
977PFNGLVIEWPORTPROC glad_glViewport = NULL;
978PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv = NULL;
979PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf = NULL;
980PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv = NULL;
981PFNGLWAITSYNCPROC glad_glWaitSync = NULL;
982static void load_GL_VERSION_1_0(GLADloadproc load) {
983 if(!GLAD_GL_VERSION_1_0) return;
984 glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace");
985 glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace");
986 glad_glHint = (PFNGLHINTPROC)load("glHint");
987 glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth");
988 glad_glPointSize = (PFNGLPOINTSIZEPROC)load("glPointSize");
989 glad_glPolygonMode = (PFNGLPOLYGONMODEPROC)load("glPolygonMode");
990 glad_glScissor = (PFNGLSCISSORPROC)load("glScissor");
991 glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf");
992 glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv");
993 glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri");
994 glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv");
995 glad_glTexImage1D = (PFNGLTEXIMAGE1DPROC)load("glTexImage1D");
996 glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D");
997 glad_glDrawBuffer = (PFNGLDRAWBUFFERPROC)load("glDrawBuffer");
998 glad_glClear = (PFNGLCLEARPROC)load("glClear");
999 glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor");
1000 glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil");
1001 glad_glClearDepth = (PFNGLCLEARDEPTHPROC)load("glClearDepth");
1002 glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask");
1003 glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask");
1004 glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask");
1005 glad_glDisable = (PFNGLDISABLEPROC)load("glDisable");
1006 glad_glEnable = (PFNGLENABLEPROC)load("glEnable");
1007 glad_glFinish = (PFNGLFINISHPROC)load("glFinish");
1008 glad_glFlush = (PFNGLFLUSHPROC)load("glFlush");
1009 glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc");
1010 glad_glLogicOp = (PFNGLLOGICOPPROC)load("glLogicOp");
1011 glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc");
1012 glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp");
1013 glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc");
1014 glad_glPixelStoref = (PFNGLPIXELSTOREFPROC)load("glPixelStoref");
1015 glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei");
1016 glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer");
1017 glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels");
1018 glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv");
1019 glad_glGetDoublev = (PFNGLGETDOUBLEVPROC)load("glGetDoublev");
1020 glad_glGetError = (PFNGLGETERRORPROC)load("glGetError");
1021 glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv");
1022 glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv");
1023 glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
1024 glad_glGetTexImage = (PFNGLGETTEXIMAGEPROC)load("glGetTexImage");
1025 glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv");
1026 glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv");
1027 glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv");
1028 glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv");
1029 glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled");
1030 glad_glDepthRange = (PFNGLDEPTHRANGEPROC)load("glDepthRange");
1031 glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport");
1032}
1033static void load_GL_VERSION_1_1(GLADloadproc load) {
1034 if(!GLAD_GL_VERSION_1_1) return;
1035 glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays");
1036 glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements");
1037 glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset");
1038 glad_glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)load("glCopyTexImage1D");
1039 glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D");
1040 glad_glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)load("glCopyTexSubImage1D");
1041 glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D");
1042 glad_glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)load("glTexSubImage1D");
1043 glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D");
1044 glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture");
1045 glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures");
1046 glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures");
1047 glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture");
1048}
1049static void load_GL_VERSION_1_2(GLADloadproc load) {
1050 if(!GLAD_GL_VERSION_1_2) return;
1051 glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements");
1052 glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D");
1053 glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D");
1054 glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D");
1055}
1056static void load_GL_VERSION_1_3(GLADloadproc load) {
1057 if(!GLAD_GL_VERSION_1_3) return;
1058 glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture");
1059 glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage");
1060 glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D");
1061 glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D");
1062 glad_glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)load("glCompressedTexImage1D");
1063 glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D");
1064 glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D");
1065 glad_glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)load("glCompressedTexSubImage1D");
1066 glad_glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)load("glGetCompressedTexImage");
1067}
1068static void load_GL_VERSION_1_4(GLADloadproc load) {
1069 if(!GLAD_GL_VERSION_1_4) return;
1070 glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate");
1071 glad_glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)load("glMultiDrawArrays");
1072 glad_glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)load("glMultiDrawElements");
1073 glad_glPointParameterf = (PFNGLPOINTPARAMETERFPROC)load("glPointParameterf");
1074 glad_glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)load("glPointParameterfv");
1075 glad_glPointParameteri = (PFNGLPOINTPARAMETERIPROC)load("glPointParameteri");
1076 glad_glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)load("glPointParameteriv");
1077 glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor");
1078 glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation");
1079}
1080static void load_GL_VERSION_1_5(GLADloadproc load) {
1081 if(!GLAD_GL_VERSION_1_5) return;
1082 glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries");
1083 glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries");
1084 glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery");
1085 glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery");
1086 glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery");
1087 glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv");
1088 glad_glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)load("glGetQueryObjectiv");
1089 glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv");
1090 glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer");
1091 glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers");
1092 glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers");
1093 glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer");
1094 glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData");
1095 glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData");
1096 glad_glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)load("glGetBufferSubData");
1097 glad_glMapBuffer = (PFNGLMAPBUFFERPROC)load("glMapBuffer");
1098 glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer");
1099 glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv");
1100 glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv");
1101}
1102static void load_GL_VERSION_2_0(GLADloadproc load) {
1103 if(!GLAD_GL_VERSION_2_0) return;
1104 glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate");
1105 glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers");
1106 glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate");
1107 glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate");
1108 glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate");
1109 glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader");
1110 glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation");
1111 glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader");
1112 glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram");
1113 glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader");
1114 glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram");
1115 glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader");
1116 glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader");
1117 glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray");
1118 glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray");
1119 glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib");
1120 glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform");
1121 glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders");
1122 glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation");
1123 glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv");
1124 glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog");
1125 glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv");
1126 glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog");
1127 glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource");
1128 glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation");
1129 glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv");
1130 glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv");
1131 glad_glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)load("glGetVertexAttribdv");
1132 glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv");
1133 glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv");
1134 glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv");
1135 glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram");
1136 glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader");
1137 glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram");
1138 glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource");
1139 glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram");
1140 glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f");
1141 glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f");
1142 glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f");
1143 glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f");
1144 glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i");
1145 glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i");
1146 glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i");
1147 glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i");
1148 glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv");
1149 glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv");
1150 glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv");
1151 glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv");
1152 glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv");
1153 glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv");
1154 glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv");
1155 glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv");
1156 glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv");
1157 glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv");
1158 glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv");
1159 glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram");
1160 glad_glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)load("glVertexAttrib1d");
1161 glad_glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)load("glVertexAttrib1dv");
1162 glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f");
1163 glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv");
1164 glad_glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)load("glVertexAttrib1s");
1165 glad_glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)load("glVertexAttrib1sv");
1166 glad_glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)load("glVertexAttrib2d");
1167 glad_glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)load("glVertexAttrib2dv");
1168 glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f");
1169 glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv");
1170 glad_glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)load("glVertexAttrib2s");
1171 glad_glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)load("glVertexAttrib2sv");
1172 glad_glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)load("glVertexAttrib3d");
1173 glad_glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)load("glVertexAttrib3dv");
1174 glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f");
1175 glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv");
1176 glad_glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)load("glVertexAttrib3s");
1177 glad_glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)load("glVertexAttrib3sv");
1178 glad_glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)load("glVertexAttrib4Nbv");
1179 glad_glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)load("glVertexAttrib4Niv");
1180 glad_glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)load("glVertexAttrib4Nsv");
1181 glad_glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)load("glVertexAttrib4Nub");
1182 glad_glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)load("glVertexAttrib4Nubv");
1183 glad_glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)load("glVertexAttrib4Nuiv");
1184 glad_glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)load("glVertexAttrib4Nusv");
1185 glad_glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)load("glVertexAttrib4bv");
1186 glad_glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)load("glVertexAttrib4d");
1187 glad_glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)load("glVertexAttrib4dv");
1188 glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f");
1189 glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv");
1190 glad_glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)load("glVertexAttrib4iv");
1191 glad_glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)load("glVertexAttrib4s");
1192 glad_glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)load("glVertexAttrib4sv");
1193 glad_glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)load("glVertexAttrib4ubv");
1194 glad_glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)load("glVertexAttrib4uiv");
1195 glad_glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)load("glVertexAttrib4usv");
1196 glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer");
1197}
1198static void load_GL_VERSION_2_1(GLADloadproc load) {
1199 if(!GLAD_GL_VERSION_2_1) return;
1200 glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv");
1201 glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv");
1202 glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv");
1203 glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv");
1204 glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv");
1205 glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv");
1206}
1207static void load_GL_VERSION_3_0(GLADloadproc load) {
1208 if(!GLAD_GL_VERSION_3_0) return;
1209 glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski");
1210 glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v");
1211 glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v");
1212 glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei");
1213 glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei");
1214 glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi");
1215 glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback");
1216 glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback");
1217 glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange");
1218 glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase");
1219 glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings");
1220 glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying");
1221 glad_glClampColor = (PFNGLCLAMPCOLORPROC)load("glClampColor");
1222 glad_glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC)load("glBeginConditionalRender");
1223 glad_glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC)load("glEndConditionalRender");
1224 glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer");
1225 glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv");
1226 glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv");
1227 glad_glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC)load("glVertexAttribI1i");
1228 glad_glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC)load("glVertexAttribI2i");
1229 glad_glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC)load("glVertexAttribI3i");
1230 glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i");
1231 glad_glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC)load("glVertexAttribI1ui");
1232 glad_glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC)load("glVertexAttribI2ui");
1233 glad_glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC)load("glVertexAttribI3ui");
1234 glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui");
1235 glad_glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC)load("glVertexAttribI1iv");
1236 glad_glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC)load("glVertexAttribI2iv");
1237 glad_glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC)load("glVertexAttribI3iv");
1238 glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv");
1239 glad_glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC)load("glVertexAttribI1uiv");
1240 glad_glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC)load("glVertexAttribI2uiv");
1241 glad_glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC)load("glVertexAttribI3uiv");
1242 glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv");
1243 glad_glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC)load("glVertexAttribI4bv");
1244 glad_glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC)load("glVertexAttribI4sv");
1245 glad_glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC)load("glVertexAttribI4ubv");
1246 glad_glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC)load("glVertexAttribI4usv");
1247 glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv");
1248 glad_glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC)load("glBindFragDataLocation");
1249 glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation");
1250 glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui");
1251 glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui");
1252 glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui");
1253 glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui");
1254 glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv");
1255 glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv");
1256 glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv");
1257 glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv");
1258 glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv");
1259 glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv");
1260 glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv");
1261 glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv");
1262 glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv");
1263 glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv");
1264 glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv");
1265 glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi");
1266 glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi");
1267 glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer");
1268 glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer");
1269 glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers");
1270 glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers");
1271 glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage");
1272 glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv");
1273 glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer");
1274 glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer");
1275 glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers");
1276 glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers");
1277 glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus");
1278 glad_glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)load("glFramebufferTexture1D");
1279 glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D");
1280 glad_glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)load("glFramebufferTexture3D");
1281 glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer");
1282 glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv");
1283 glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap");
1284 glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer");
1285 glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample");
1286 glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer");
1287 glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange");
1288 glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange");
1289 glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray");
1290 glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays");
1291 glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays");
1292 glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray");
1293}
1294static void load_GL_VERSION_3_1(GLADloadproc load) {
1295 if(!GLAD_GL_VERSION_3_1) return;
1296 glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced");
1297 glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced");
1298 glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer");
1299 glad_glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC)load("glPrimitiveRestartIndex");
1300 glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData");
1301 glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices");
1302 glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv");
1303 glad_glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)load("glGetActiveUniformName");
1304 glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex");
1305 glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv");
1306 glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName");
1307 glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding");
1308 glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange");
1309 glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase");
1310 glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v");
1311}
1312static void load_GL_VERSION_3_2(GLADloadproc load) {
1313 if(!GLAD_GL_VERSION_3_2) return;
1314 glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex");
1315 glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex");
1316 glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex");
1317 glad_glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)load("glMultiDrawElementsBaseVertex");
1318 glad_glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)load("glProvokingVertex");
1319 glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync");
1320 glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync");
1321 glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync");
1322 glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync");
1323 glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync");
1324 glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v");
1325 glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv");
1326 glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v");
1327 glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v");
1328 glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture");
1329 glad_glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)load("glTexImage2DMultisample");
1330 glad_glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)load("glTexImage3DMultisample");
1331 glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv");
1332 glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski");
1333}
1334static void load_GL_VERSION_3_3(GLADloadproc load) {
1335 if(!GLAD_GL_VERSION_3_3) return;
1336 glad_glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)load("glBindFragDataLocationIndexed");
1337 glad_glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC)load("glGetFragDataIndex");
1338 glad_glGenSamplers = (PFNGLGENSAMPLERSPROC)load("glGenSamplers");
1339 glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)load("glDeleteSamplers");
1340 glad_glIsSampler = (PFNGLISSAMPLERPROC)load("glIsSampler");
1341 glad_glBindSampler = (PFNGLBINDSAMPLERPROC)load("glBindSampler");
1342 glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)load("glSamplerParameteri");
1343 glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)load("glSamplerParameteriv");
1344 glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)load("glSamplerParameterf");
1345 glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)load("glSamplerParameterfv");
1346 glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)load("glSamplerParameterIiv");
1347 glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)load("glSamplerParameterIuiv");
1348 glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)load("glGetSamplerParameteriv");
1349 glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)load("glGetSamplerParameterIiv");
1350 glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)load("glGetSamplerParameterfv");
1351 glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)load("glGetSamplerParameterIuiv");
1352 glad_glQueryCounter = (PFNGLQUERYCOUNTERPROC)load("glQueryCounter");
1353 glad_glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC)load("glGetQueryObjecti64v");
1354 glad_glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC)load("glGetQueryObjectui64v");
1355 glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC)load("glVertexAttribDivisor");
1356 glad_glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC)load("glVertexAttribP1ui");
1357 glad_glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC)load("glVertexAttribP1uiv");
1358 glad_glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC)load("glVertexAttribP2ui");
1359 glad_glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC)load("glVertexAttribP2uiv");
1360 glad_glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC)load("glVertexAttribP3ui");
1361 glad_glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC)load("glVertexAttribP3uiv");
1362 glad_glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC)load("glVertexAttribP4ui");
1363 glad_glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC)load("glVertexAttribP4uiv");
1364 glad_glVertexP2ui = (PFNGLVERTEXP2UIPROC)load("glVertexP2ui");
1365 glad_glVertexP2uiv = (PFNGLVERTEXP2UIVPROC)load("glVertexP2uiv");
1366 glad_glVertexP3ui = (PFNGLVERTEXP3UIPROC)load("glVertexP3ui");
1367 glad_glVertexP3uiv = (PFNGLVERTEXP3UIVPROC)load("glVertexP3uiv");
1368 glad_glVertexP4ui = (PFNGLVERTEXP4UIPROC)load("glVertexP4ui");
1369 glad_glVertexP4uiv = (PFNGLVERTEXP4UIVPROC)load("glVertexP4uiv");
1370 glad_glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC)load("glTexCoordP1ui");
1371 glad_glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC)load("glTexCoordP1uiv");
1372 glad_glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC)load("glTexCoordP2ui");
1373 glad_glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC)load("glTexCoordP2uiv");
1374 glad_glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC)load("glTexCoordP3ui");
1375 glad_glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC)load("glTexCoordP3uiv");
1376 glad_glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC)load("glTexCoordP4ui");
1377 glad_glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC)load("glTexCoordP4uiv");
1378 glad_glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC)load("glMultiTexCoordP1ui");
1379 glad_glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC)load("glMultiTexCoordP1uiv");
1380 glad_glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC)load("glMultiTexCoordP2ui");
1381 glad_glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC)load("glMultiTexCoordP2uiv");
1382 glad_glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC)load("glMultiTexCoordP3ui");
1383 glad_glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC)load("glMultiTexCoordP3uiv");
1384 glad_glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC)load("glMultiTexCoordP4ui");
1385 glad_glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC)load("glMultiTexCoordP4uiv");
1386 glad_glNormalP3ui = (PFNGLNORMALP3UIPROC)load("glNormalP3ui");
1387 glad_glNormalP3uiv = (PFNGLNORMALP3UIVPROC)load("glNormalP3uiv");
1388 glad_glColorP3ui = (PFNGLCOLORP3UIPROC)load("glColorP3ui");
1389 glad_glColorP3uiv = (PFNGLCOLORP3UIVPROC)load("glColorP3uiv");
1390 glad_glColorP4ui = (PFNGLCOLORP4UIPROC)load("glColorP4ui");
1391 glad_glColorP4uiv = (PFNGLCOLORP4UIVPROC)load("glColorP4uiv");
1392 glad_glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)load("glSecondaryColorP3ui");
1393 glad_glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)load("glSecondaryColorP3uiv");
1394}
1395static void load_GL_VERSION_4_0(GLADloadproc load) {
1396 if(!GLAD_GL_VERSION_4_0) return;
1397 glad_glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)load("glMinSampleShading");
1398 glad_glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)load("glBlendEquationi");
1399 glad_glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)load("glBlendEquationSeparatei");
1400 glad_glBlendFunci = (PFNGLBLENDFUNCIPROC)load("glBlendFunci");
1401 glad_glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)load("glBlendFuncSeparatei");
1402 glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)load("glDrawArraysIndirect");
1403 glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)load("glDrawElementsIndirect");
1404 glad_glUniform1d = (PFNGLUNIFORM1DPROC)load("glUniform1d");
1405 glad_glUniform2d = (PFNGLUNIFORM2DPROC)load("glUniform2d");
1406 glad_glUniform3d = (PFNGLUNIFORM3DPROC)load("glUniform3d");
1407 glad_glUniform4d = (PFNGLUNIFORM4DPROC)load("glUniform4d");
1408 glad_glUniform1dv = (PFNGLUNIFORM1DVPROC)load("glUniform1dv");
1409 glad_glUniform2dv = (PFNGLUNIFORM2DVPROC)load("glUniform2dv");
1410 glad_glUniform3dv = (PFNGLUNIFORM3DVPROC)load("glUniform3dv");
1411 glad_glUniform4dv = (PFNGLUNIFORM4DVPROC)load("glUniform4dv");
1412 glad_glUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC)load("glUniformMatrix2dv");
1413 glad_glUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC)load("glUniformMatrix3dv");
1414 glad_glUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC)load("glUniformMatrix4dv");
1415 glad_glUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC)load("glUniformMatrix2x3dv");
1416 glad_glUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC)load("glUniformMatrix2x4dv");
1417 glad_glUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC)load("glUniformMatrix3x2dv");
1418 glad_glUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC)load("glUniformMatrix3x4dv");
1419 glad_glUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC)load("glUniformMatrix4x2dv");
1420 glad_glUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC)load("glUniformMatrix4x3dv");
1421 glad_glGetUniformdv = (PFNGLGETUNIFORMDVPROC)load("glGetUniformdv");
1422 glad_glGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)load("glGetSubroutineUniformLocation");
1423 glad_glGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC)load("glGetSubroutineIndex");
1424 glad_glGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)load("glGetActiveSubroutineUniformiv");
1425 glad_glGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)load("glGetActiveSubroutineUniformName");
1426 glad_glGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC)load("glGetActiveSubroutineName");
1427 glad_glUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC)load("glUniformSubroutinesuiv");
1428 glad_glGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC)load("glGetUniformSubroutineuiv");
1429 glad_glGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC)load("glGetProgramStageiv");
1430 glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)load("glPatchParameteri");
1431 glad_glPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC)load("glPatchParameterfv");
1432 glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)load("glBindTransformFeedback");
1433 glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)load("glDeleteTransformFeedbacks");
1434 glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)load("glGenTransformFeedbacks");
1435 glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)load("glIsTransformFeedback");
1436 glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)load("glPauseTransformFeedback");
1437 glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)load("glResumeTransformFeedback");
1438 glad_glDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC)load("glDrawTransformFeedback");
1439 glad_glDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)load("glDrawTransformFeedbackStream");
1440 glad_glBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC)load("glBeginQueryIndexed");
1441 glad_glEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC)load("glEndQueryIndexed");
1442 glad_glGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC)load("glGetQueryIndexediv");
1443}
1444static void load_GL_VERSION_4_1(GLADloadproc load) {
1445 if(!GLAD_GL_VERSION_4_1) return;
1446 glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)load("glReleaseShaderCompiler");
1447 glad_glShaderBinary = (PFNGLSHADERBINARYPROC)load("glShaderBinary");
1448 glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)load("glGetShaderPrecisionFormat");
1449 glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC)load("glDepthRangef");
1450 glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC)load("glClearDepthf");
1451 glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)load("glGetProgramBinary");
1452 glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC)load("glProgramBinary");
1453 glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri");
1454 glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)load("glUseProgramStages");
1455 glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)load("glActiveShaderProgram");
1456 glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)load("glCreateShaderProgramv");
1457 glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)load("glBindProgramPipeline");
1458 glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)load("glDeleteProgramPipelines");
1459 glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)load("glGenProgramPipelines");
1460 glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)load("glIsProgramPipeline");
1461 glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)load("glGetProgramPipelineiv");
1462 glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri");
1463 glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)load("glProgramUniform1i");
1464 glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)load("glProgramUniform1iv");
1465 glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)load("glProgramUniform1f");
1466 glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)load("glProgramUniform1fv");
1467 glad_glProgramUniform1d = (PFNGLPROGRAMUNIFORM1DPROC)load("glProgramUniform1d");
1468 glad_glProgramUniform1dv = (PFNGLPROGRAMUNIFORM1DVPROC)load("glProgramUniform1dv");
1469 glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)load("glProgramUniform1ui");
1470 glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)load("glProgramUniform1uiv");
1471 glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)load("glProgramUniform2i");
1472 glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)load("glProgramUniform2iv");
1473 glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)load("glProgramUniform2f");
1474 glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)load("glProgramUniform2fv");
1475 glad_glProgramUniform2d = (PFNGLPROGRAMUNIFORM2DPROC)load("glProgramUniform2d");
1476 glad_glProgramUniform2dv = (PFNGLPROGRAMUNIFORM2DVPROC)load("glProgramUniform2dv");
1477 glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)load("glProgramUniform2ui");
1478 glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)load("glProgramUniform2uiv");
1479 glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)load("glProgramUniform3i");
1480 glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)load("glProgramUniform3iv");
1481 glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)load("glProgramUniform3f");
1482 glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)load("glProgramUniform3fv");
1483 glad_glProgramUniform3d = (PFNGLPROGRAMUNIFORM3DPROC)load("glProgramUniform3d");
1484 glad_glProgramUniform3dv = (PFNGLPROGRAMUNIFORM3DVPROC)load("glProgramUniform3dv");
1485 glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)load("glProgramUniform3ui");
1486 glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)load("glProgramUniform3uiv");
1487 glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)load("glProgramUniform4i");
1488 glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)load("glProgramUniform4iv");
1489 glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)load("glProgramUniform4f");
1490 glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)load("glProgramUniform4fv");
1491 glad_glProgramUniform4d = (PFNGLPROGRAMUNIFORM4DPROC)load("glProgramUniform4d");
1492 glad_glProgramUniform4dv = (PFNGLPROGRAMUNIFORM4DVPROC)load("glProgramUniform4dv");
1493 glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)load("glProgramUniform4ui");
1494 glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)load("glProgramUniform4uiv");
1495 glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)load("glProgramUniformMatrix2fv");
1496 glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)load("glProgramUniformMatrix3fv");
1497 glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)load("glProgramUniformMatrix4fv");
1498 glad_glProgramUniformMatrix2dv = (PFNGLPROGRAMUNIFORMMATRIX2DVPROC)load("glProgramUniformMatrix2dv");
1499 glad_glProgramUniformMatrix3dv = (PFNGLPROGRAMUNIFORMMATRIX3DVPROC)load("glProgramUniformMatrix3dv");
1500 glad_glProgramUniformMatrix4dv = (PFNGLPROGRAMUNIFORMMATRIX4DVPROC)load("glProgramUniformMatrix4dv");
1501 glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)load("glProgramUniformMatrix2x3fv");
1502 glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)load("glProgramUniformMatrix3x2fv");
1503 glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)load("glProgramUniformMatrix2x4fv");
1504 glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)load("glProgramUniformMatrix4x2fv");
1505 glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)load("glProgramUniformMatrix3x4fv");
1506 glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)load("glProgramUniformMatrix4x3fv");
1507 glad_glProgramUniformMatrix2x3dv = (PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)load("glProgramUniformMatrix2x3dv");
1508 glad_glProgramUniformMatrix3x2dv = (PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)load("glProgramUniformMatrix3x2dv");
1509 glad_glProgramUniformMatrix2x4dv = (PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)load("glProgramUniformMatrix2x4dv");
1510 glad_glProgramUniformMatrix4x2dv = (PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)load("glProgramUniformMatrix4x2dv");
1511 glad_glProgramUniformMatrix3x4dv = (PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)load("glProgramUniformMatrix3x4dv");
1512 glad_glProgramUniformMatrix4x3dv = (PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)load("glProgramUniformMatrix4x3dv");
1513 glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)load("glValidateProgramPipeline");
1514 glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)load("glGetProgramPipelineInfoLog");
1515 glad_glVertexAttribL1d = (PFNGLVERTEXATTRIBL1DPROC)load("glVertexAttribL1d");
1516 glad_glVertexAttribL2d = (PFNGLVERTEXATTRIBL2DPROC)load("glVertexAttribL2d");
1517 glad_glVertexAttribL3d = (PFNGLVERTEXATTRIBL3DPROC)load("glVertexAttribL3d");
1518 glad_glVertexAttribL4d = (PFNGLVERTEXATTRIBL4DPROC)load("glVertexAttribL4d");
1519 glad_glVertexAttribL1dv = (PFNGLVERTEXATTRIBL1DVPROC)load("glVertexAttribL1dv");
1520 glad_glVertexAttribL2dv = (PFNGLVERTEXATTRIBL2DVPROC)load("glVertexAttribL2dv");
1521 glad_glVertexAttribL3dv = (PFNGLVERTEXATTRIBL3DVPROC)load("glVertexAttribL3dv");
1522 glad_glVertexAttribL4dv = (PFNGLVERTEXATTRIBL4DVPROC)load("glVertexAttribL4dv");
1523 glad_glVertexAttribLPointer = (PFNGLVERTEXATTRIBLPOINTERPROC)load("glVertexAttribLPointer");
1524 glad_glGetVertexAttribLdv = (PFNGLGETVERTEXATTRIBLDVPROC)load("glGetVertexAttribLdv");
1525 glad_glViewportArrayv = (PFNGLVIEWPORTARRAYVPROC)load("glViewportArrayv");
1526 glad_glViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC)load("glViewportIndexedf");
1527 glad_glViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC)load("glViewportIndexedfv");
1528 glad_glScissorArrayv = (PFNGLSCISSORARRAYVPROC)load("glScissorArrayv");
1529 glad_glScissorIndexed = (PFNGLSCISSORINDEXEDPROC)load("glScissorIndexed");
1530 glad_glScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC)load("glScissorIndexedv");
1531 glad_glDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC)load("glDepthRangeArrayv");
1532 glad_glDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC)load("glDepthRangeIndexed");
1533 glad_glGetFloati_v = (PFNGLGETFLOATI_VPROC)load("glGetFloati_v");
1534 glad_glGetDoublei_v = (PFNGLGETDOUBLEI_VPROC)load("glGetDoublei_v");
1535}
1536static void load_GL_VERSION_4_2(GLADloadproc load) {
1537 if(!GLAD_GL_VERSION_4_2) return;
1538 glad_glDrawArraysInstancedBaseInstance = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)load("glDrawArraysInstancedBaseInstance");
1539 glad_glDrawElementsInstancedBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)load("glDrawElementsInstancedBaseInstance");
1540 glad_glDrawElementsInstancedBaseVertexBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)load("glDrawElementsInstancedBaseVertexBaseInstance");
1541 glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)load("glGetInternalformativ");
1542 glad_glGetActiveAtomicCounterBufferiv = (PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)load("glGetActiveAtomicCounterBufferiv");
1543 glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)load("glBindImageTexture");
1544 glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)load("glMemoryBarrier");
1545 glad_glTexStorage1D = (PFNGLTEXSTORAGE1DPROC)load("glTexStorage1D");
1546 glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D");
1547 glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D");
1548 glad_glDrawTransformFeedbackInstanced = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)load("glDrawTransformFeedbackInstanced");
1549 glad_glDrawTransformFeedbackStreamInstanced = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)load("glDrawTransformFeedbackStreamInstanced");
1550}
1551static void load_GL_VERSION_4_3(GLADloadproc load) {
1552 if(!GLAD_GL_VERSION_4_3) return;
1553 glad_glClearBufferData = (PFNGLCLEARBUFFERDATAPROC)load("glClearBufferData");
1554 glad_glClearBufferSubData = (PFNGLCLEARBUFFERSUBDATAPROC)load("glClearBufferSubData");
1555 glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)load("glDispatchCompute");
1556 glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)load("glDispatchComputeIndirect");
1557 glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)load("glCopyImageSubData");
1558 glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)load("glFramebufferParameteri");
1559 glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)load("glGetFramebufferParameteriv");
1560 glad_glGetInternalformati64v = (PFNGLGETINTERNALFORMATI64VPROC)load("glGetInternalformati64v");
1561 glad_glInvalidateTexSubImage = (PFNGLINVALIDATETEXSUBIMAGEPROC)load("glInvalidateTexSubImage");
1562 glad_glInvalidateTexImage = (PFNGLINVALIDATETEXIMAGEPROC)load("glInvalidateTexImage");
1563 glad_glInvalidateBufferSubData = (PFNGLINVALIDATEBUFFERSUBDATAPROC)load("glInvalidateBufferSubData");
1564 glad_glInvalidateBufferData = (PFNGLINVALIDATEBUFFERDATAPROC)load("glInvalidateBufferData");
1565 glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)load("glInvalidateFramebuffer");
1566 glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)load("glInvalidateSubFramebuffer");
1567 glad_glMultiDrawArraysIndirect = (PFNGLMULTIDRAWARRAYSINDIRECTPROC)load("glMultiDrawArraysIndirect");
1568 glad_glMultiDrawElementsIndirect = (PFNGLMULTIDRAWELEMENTSINDIRECTPROC)load("glMultiDrawElementsIndirect");
1569 glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)load("glGetProgramInterfaceiv");
1570 glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)load("glGetProgramResourceIndex");
1571 glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)load("glGetProgramResourceName");
1572 glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)load("glGetProgramResourceiv");
1573 glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)load("glGetProgramResourceLocation");
1574 glad_glGetProgramResourceLocationIndex = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)load("glGetProgramResourceLocationIndex");
1575 glad_glShaderStorageBlockBinding = (PFNGLSHADERSTORAGEBLOCKBINDINGPROC)load("glShaderStorageBlockBinding");
1576 glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)load("glTexBufferRange");
1577 glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)load("glTexStorage2DMultisample");
1578 glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)load("glTexStorage3DMultisample");
1579 glad_glTextureView = (PFNGLTEXTUREVIEWPROC)load("glTextureView");
1580 glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)load("glBindVertexBuffer");
1581 glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)load("glVertexAttribFormat");
1582 glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)load("glVertexAttribIFormat");
1583 glad_glVertexAttribLFormat = (PFNGLVERTEXATTRIBLFORMATPROC)load("glVertexAttribLFormat");
1584 glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)load("glVertexAttribBinding");
1585 glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)load("glVertexBindingDivisor");
1586 glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl");
1587 glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)load("glDebugMessageInsert");
1588 glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)load("glDebugMessageCallback");
1589 glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)load("glGetDebugMessageLog");
1590 glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)load("glPushDebugGroup");
1591 glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)load("glPopDebugGroup");
1592 glad_glObjectLabel = (PFNGLOBJECTLABELPROC)load("glObjectLabel");
1593 glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)load("glGetObjectLabel");
1594 glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)load("glObjectPtrLabel");
1595 glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)load("glGetObjectPtrLabel");
1596 glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv");
1597}
1598static void load_GL_VERSION_4_4(GLADloadproc load) {
1599 if(!GLAD_GL_VERSION_4_4) return;
1600 glad_glBufferStorage = (PFNGLBUFFERSTORAGEPROC)load("glBufferStorage");
1601 glad_glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)load("glClearTexImage");
1602 glad_glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)load("glClearTexSubImage");
1603 glad_glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)load("glBindBuffersBase");
1604 glad_glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)load("glBindBuffersRange");
1605 glad_glBindTextures = (PFNGLBINDTEXTURESPROC)load("glBindTextures");
1606 glad_glBindSamplers = (PFNGLBINDSAMPLERSPROC)load("glBindSamplers");
1607 glad_glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)load("glBindImageTextures");
1608 glad_glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)load("glBindVertexBuffers");
1609}
1610static void load_GL_VERSION_4_5(GLADloadproc load) {
1611 if(!GLAD_GL_VERSION_4_5) return;
1612 glad_glClipControl = (PFNGLCLIPCONTROLPROC)load("glClipControl");
1613 glad_glCreateTransformFeedbacks = (PFNGLCREATETRANSFORMFEEDBACKSPROC)load("glCreateTransformFeedbacks");
1614 glad_glTransformFeedbackBufferBase = (PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC)load("glTransformFeedbackBufferBase");
1615 glad_glTransformFeedbackBufferRange = (PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC)load("glTransformFeedbackBufferRange");
1616 glad_glGetTransformFeedbackiv = (PFNGLGETTRANSFORMFEEDBACKIVPROC)load("glGetTransformFeedbackiv");
1617 glad_glGetTransformFeedbacki_v = (PFNGLGETTRANSFORMFEEDBACKI_VPROC)load("glGetTransformFeedbacki_v");
1618 glad_glGetTransformFeedbacki64_v = (PFNGLGETTRANSFORMFEEDBACKI64_VPROC)load("glGetTransformFeedbacki64_v");
1619 glad_glCreateBuffers = (PFNGLCREATEBUFFERSPROC)load("glCreateBuffers");
1620 glad_glNamedBufferStorage = (PFNGLNAMEDBUFFERSTORAGEPROC)load("glNamedBufferStorage");
1621 glad_glNamedBufferData = (PFNGLNAMEDBUFFERDATAPROC)load("glNamedBufferData");
1622 glad_glNamedBufferSubData = (PFNGLNAMEDBUFFERSUBDATAPROC)load("glNamedBufferSubData");
1623 glad_glCopyNamedBufferSubData = (PFNGLCOPYNAMEDBUFFERSUBDATAPROC)load("glCopyNamedBufferSubData");
1624 glad_glClearNamedBufferData = (PFNGLCLEARNAMEDBUFFERDATAPROC)load("glClearNamedBufferData");
1625 glad_glClearNamedBufferSubData = (PFNGLCLEARNAMEDBUFFERSUBDATAPROC)load("glClearNamedBufferSubData");
1626 glad_glMapNamedBuffer = (PFNGLMAPNAMEDBUFFERPROC)load("glMapNamedBuffer");
1627 glad_glMapNamedBufferRange = (PFNGLMAPNAMEDBUFFERRANGEPROC)load("glMapNamedBufferRange");
1628 glad_glUnmapNamedBuffer = (PFNGLUNMAPNAMEDBUFFERPROC)load("glUnmapNamedBuffer");
1629 glad_glFlushMappedNamedBufferRange = (PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC)load("glFlushMappedNamedBufferRange");
1630 glad_glGetNamedBufferParameteriv = (PFNGLGETNAMEDBUFFERPARAMETERIVPROC)load("glGetNamedBufferParameteriv");
1631 glad_glGetNamedBufferParameteri64v = (PFNGLGETNAMEDBUFFERPARAMETERI64VPROC)load("glGetNamedBufferParameteri64v");
1632 glad_glGetNamedBufferPointerv = (PFNGLGETNAMEDBUFFERPOINTERVPROC)load("glGetNamedBufferPointerv");
1633 glad_glGetNamedBufferSubData = (PFNGLGETNAMEDBUFFERSUBDATAPROC)load("glGetNamedBufferSubData");
1634 glad_glCreateFramebuffers = (PFNGLCREATEFRAMEBUFFERSPROC)load("glCreateFramebuffers");
1635 glad_glNamedFramebufferRenderbuffer = (PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC)load("glNamedFramebufferRenderbuffer");
1636 glad_glNamedFramebufferParameteri = (PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC)load("glNamedFramebufferParameteri");
1637 glad_glNamedFramebufferTexture = (PFNGLNAMEDFRAMEBUFFERTEXTUREPROC)load("glNamedFramebufferTexture");
1638 glad_glNamedFramebufferTextureLayer = (PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC)load("glNamedFramebufferTextureLayer");
1639 glad_glNamedFramebufferDrawBuffer = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC)load("glNamedFramebufferDrawBuffer");
1640 glad_glNamedFramebufferDrawBuffers = (PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC)load("glNamedFramebufferDrawBuffers");
1641 glad_glNamedFramebufferReadBuffer = (PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC)load("glNamedFramebufferReadBuffer");
1642 glad_glInvalidateNamedFramebufferData = (PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC)load("glInvalidateNamedFramebufferData");
1643 glad_glInvalidateNamedFramebufferSubData = (PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC)load("glInvalidateNamedFramebufferSubData");
1644 glad_glClearNamedFramebufferiv = (PFNGLCLEARNAMEDFRAMEBUFFERIVPROC)load("glClearNamedFramebufferiv");
1645 glad_glClearNamedFramebufferuiv = (PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC)load("glClearNamedFramebufferuiv");
1646 glad_glClearNamedFramebufferfv = (PFNGLCLEARNAMEDFRAMEBUFFERFVPROC)load("glClearNamedFramebufferfv");
1647 glad_glClearNamedFramebufferfi = (PFNGLCLEARNAMEDFRAMEBUFFERFIPROC)load("glClearNamedFramebufferfi");
1648 glad_glBlitNamedFramebuffer = (PFNGLBLITNAMEDFRAMEBUFFERPROC)load("glBlitNamedFramebuffer");
1649 glad_glCheckNamedFramebufferStatus = (PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC)load("glCheckNamedFramebufferStatus");
1650 glad_glGetNamedFramebufferParameteriv = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC)load("glGetNamedFramebufferParameteriv");
1651 glad_glGetNamedFramebufferAttachmentParameteriv = (PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetNamedFramebufferAttachmentParameteriv");
1652 glad_glCreateRenderbuffers = (PFNGLCREATERENDERBUFFERSPROC)load("glCreateRenderbuffers");
1653 glad_glNamedRenderbufferStorage = (PFNGLNAMEDRENDERBUFFERSTORAGEPROC)load("glNamedRenderbufferStorage");
1654 glad_glNamedRenderbufferStorageMultisample = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glNamedRenderbufferStorageMultisample");
1655 glad_glGetNamedRenderbufferParameteriv = (PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC)load("glGetNamedRenderbufferParameteriv");
1656 glad_glCreateTextures = (PFNGLCREATETEXTURESPROC)load("glCreateTextures");
1657 glad_glTextureBuffer = (PFNGLTEXTUREBUFFERPROC)load("glTextureBuffer");
1658 glad_glTextureBufferRange = (PFNGLTEXTUREBUFFERRANGEPROC)load("glTextureBufferRange");
1659 glad_glTextureStorage1D = (PFNGLTEXTURESTORAGE1DPROC)load("glTextureStorage1D");
1660 glad_glTextureStorage2D = (PFNGLTEXTURESTORAGE2DPROC)load("glTextureStorage2D");
1661 glad_glTextureStorage3D = (PFNGLTEXTURESTORAGE3DPROC)load("glTextureStorage3D");
1662 glad_glTextureStorage2DMultisample = (PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC)load("glTextureStorage2DMultisample");
1663 glad_glTextureStorage3DMultisample = (PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC)load("glTextureStorage3DMultisample");
1664 glad_glTextureSubImage1D = (PFNGLTEXTURESUBIMAGE1DPROC)load("glTextureSubImage1D");
1665 glad_glTextureSubImage2D = (PFNGLTEXTURESUBIMAGE2DPROC)load("glTextureSubImage2D");
1666 glad_glTextureSubImage3D = (PFNGLTEXTURESUBIMAGE3DPROC)load("glTextureSubImage3D");
1667 glad_glCompressedTextureSubImage1D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC)load("glCompressedTextureSubImage1D");
1668 glad_glCompressedTextureSubImage2D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC)load("glCompressedTextureSubImage2D");
1669 glad_glCompressedTextureSubImage3D = (PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC)load("glCompressedTextureSubImage3D");
1670 glad_glCopyTextureSubImage1D = (PFNGLCOPYTEXTURESUBIMAGE1DPROC)load("glCopyTextureSubImage1D");
1671 glad_glCopyTextureSubImage2D = (PFNGLCOPYTEXTURESUBIMAGE2DPROC)load("glCopyTextureSubImage2D");
1672 glad_glCopyTextureSubImage3D = (PFNGLCOPYTEXTURESUBIMAGE3DPROC)load("glCopyTextureSubImage3D");
1673 glad_glTextureParameterf = (PFNGLTEXTUREPARAMETERFPROC)load("glTextureParameterf");
1674 glad_glTextureParameterfv = (PFNGLTEXTUREPARAMETERFVPROC)load("glTextureParameterfv");
1675 glad_glTextureParameteri = (PFNGLTEXTUREPARAMETERIPROC)load("glTextureParameteri");
1676 glad_glTextureParameterIiv = (PFNGLTEXTUREPARAMETERIIVPROC)load("glTextureParameterIiv");
1677 glad_glTextureParameterIuiv = (PFNGLTEXTUREPARAMETERIUIVPROC)load("glTextureParameterIuiv");
1678 glad_glTextureParameteriv = (PFNGLTEXTUREPARAMETERIVPROC)load("glTextureParameteriv");
1679 glad_glGenerateTextureMipmap = (PFNGLGENERATETEXTUREMIPMAPPROC)load("glGenerateTextureMipmap");
1680 glad_glBindTextureUnit = (PFNGLBINDTEXTUREUNITPROC)load("glBindTextureUnit");
1681 glad_glGetTextureImage = (PFNGLGETTEXTUREIMAGEPROC)load("glGetTextureImage");
1682 glad_glGetCompressedTextureImage = (PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC)load("glGetCompressedTextureImage");
1683 glad_glGetTextureLevelParameterfv = (PFNGLGETTEXTURELEVELPARAMETERFVPROC)load("glGetTextureLevelParameterfv");
1684 glad_glGetTextureLevelParameteriv = (PFNGLGETTEXTURELEVELPARAMETERIVPROC)load("glGetTextureLevelParameteriv");
1685 glad_glGetTextureParameterfv = (PFNGLGETTEXTUREPARAMETERFVPROC)load("glGetTextureParameterfv");
1686 glad_glGetTextureParameterIiv = (PFNGLGETTEXTUREPARAMETERIIVPROC)load("glGetTextureParameterIiv");
1687 glad_glGetTextureParameterIuiv = (PFNGLGETTEXTUREPARAMETERIUIVPROC)load("glGetTextureParameterIuiv");
1688 glad_glGetTextureParameteriv = (PFNGLGETTEXTUREPARAMETERIVPROC)load("glGetTextureParameteriv");
1689 glad_glCreateVertexArrays = (PFNGLCREATEVERTEXARRAYSPROC)load("glCreateVertexArrays");
1690 glad_glDisableVertexArrayAttrib = (PFNGLDISABLEVERTEXARRAYATTRIBPROC)load("glDisableVertexArrayAttrib");
1691 glad_glEnableVertexArrayAttrib = (PFNGLENABLEVERTEXARRAYATTRIBPROC)load("glEnableVertexArrayAttrib");
1692 glad_glVertexArrayElementBuffer = (PFNGLVERTEXARRAYELEMENTBUFFERPROC)load("glVertexArrayElementBuffer");
1693 glad_glVertexArrayVertexBuffer = (PFNGLVERTEXARRAYVERTEXBUFFERPROC)load("glVertexArrayVertexBuffer");
1694 glad_glVertexArrayVertexBuffers = (PFNGLVERTEXARRAYVERTEXBUFFERSPROC)load("glVertexArrayVertexBuffers");
1695 glad_glVertexArrayAttribBinding = (PFNGLVERTEXARRAYATTRIBBINDINGPROC)load("glVertexArrayAttribBinding");
1696 glad_glVertexArrayAttribFormat = (PFNGLVERTEXARRAYATTRIBFORMATPROC)load("glVertexArrayAttribFormat");
1697 glad_glVertexArrayAttribIFormat = (PFNGLVERTEXARRAYATTRIBIFORMATPROC)load("glVertexArrayAttribIFormat");
1698 glad_glVertexArrayAttribLFormat = (PFNGLVERTEXARRAYATTRIBLFORMATPROC)load("glVertexArrayAttribLFormat");
1699 glad_glVertexArrayBindingDivisor = (PFNGLVERTEXARRAYBINDINGDIVISORPROC)load("glVertexArrayBindingDivisor");
1700 glad_glGetVertexArrayiv = (PFNGLGETVERTEXARRAYIVPROC)load("glGetVertexArrayiv");
1701 glad_glGetVertexArrayIndexediv = (PFNGLGETVERTEXARRAYINDEXEDIVPROC)load("glGetVertexArrayIndexediv");
1702 glad_glGetVertexArrayIndexed64iv = (PFNGLGETVERTEXARRAYINDEXED64IVPROC)load("glGetVertexArrayIndexed64iv");
1703 glad_glCreateSamplers = (PFNGLCREATESAMPLERSPROC)load("glCreateSamplers");
1704 glad_glCreateProgramPipelines = (PFNGLCREATEPROGRAMPIPELINESPROC)load("glCreateProgramPipelines");
1705 glad_glCreateQueries = (PFNGLCREATEQUERIESPROC)load("glCreateQueries");
1706 glad_glGetQueryBufferObjecti64v = (PFNGLGETQUERYBUFFEROBJECTI64VPROC)load("glGetQueryBufferObjecti64v");
1707 glad_glGetQueryBufferObjectiv = (PFNGLGETQUERYBUFFEROBJECTIVPROC)load("glGetQueryBufferObjectiv");
1708 glad_glGetQueryBufferObjectui64v = (PFNGLGETQUERYBUFFEROBJECTUI64VPROC)load("glGetQueryBufferObjectui64v");
1709 glad_glGetQueryBufferObjectuiv = (PFNGLGETQUERYBUFFEROBJECTUIVPROC)load("glGetQueryBufferObjectuiv");
1710 glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC)load("glMemoryBarrierByRegion");
1711 glad_glGetTextureSubImage = (PFNGLGETTEXTURESUBIMAGEPROC)load("glGetTextureSubImage");
1712 glad_glGetCompressedTextureSubImage = (PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC)load("glGetCompressedTextureSubImage");
1713 glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)load("glGetGraphicsResetStatus");
1714 glad_glGetnCompressedTexImage = (PFNGLGETNCOMPRESSEDTEXIMAGEPROC)load("glGetnCompressedTexImage");
1715 glad_glGetnTexImage = (PFNGLGETNTEXIMAGEPROC)load("glGetnTexImage");
1716 glad_glGetnUniformdv = (PFNGLGETNUNIFORMDVPROC)load("glGetnUniformdv");
1717 glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC)load("glGetnUniformfv");
1718 glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC)load("glGetnUniformiv");
1719 glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC)load("glGetnUniformuiv");
1720 glad_glReadnPixels = (PFNGLREADNPIXELSPROC)load("glReadnPixels");
1721 glad_glGetnMapdv = (PFNGLGETNMAPDVPROC)load("glGetnMapdv");
1722 glad_glGetnMapfv = (PFNGLGETNMAPFVPROC)load("glGetnMapfv");
1723 glad_glGetnMapiv = (PFNGLGETNMAPIVPROC)load("glGetnMapiv");
1724 glad_glGetnPixelMapfv = (PFNGLGETNPIXELMAPFVPROC)load("glGetnPixelMapfv");
1725 glad_glGetnPixelMapuiv = (PFNGLGETNPIXELMAPUIVPROC)load("glGetnPixelMapuiv");
1726 glad_glGetnPixelMapusv = (PFNGLGETNPIXELMAPUSVPROC)load("glGetnPixelMapusv");
1727 glad_glGetnPolygonStipple = (PFNGLGETNPOLYGONSTIPPLEPROC)load("glGetnPolygonStipple");
1728 glad_glGetnColorTable = (PFNGLGETNCOLORTABLEPROC)load("glGetnColorTable");
1729 glad_glGetnConvolutionFilter = (PFNGLGETNCONVOLUTIONFILTERPROC)load("glGetnConvolutionFilter");
1730 glad_glGetnSeparableFilter = (PFNGLGETNSEPARABLEFILTERPROC)load("glGetnSeparableFilter");
1731 glad_glGetnHistogram = (PFNGLGETNHISTOGRAMPROC)load("glGetnHistogram");
1732 glad_glGetnMinmax = (PFNGLGETNMINMAXPROC)load("glGetnMinmax");
1733 glad_glTextureBarrier = (PFNGLTEXTUREBARRIERPROC)load("glTextureBarrier");
1734}
1735static void load_GL_VERSION_4_6(GLADloadproc load) {
1736 if(!GLAD_GL_VERSION_4_6) return;
1737 glad_glSpecializeShader = (PFNGLSPECIALIZESHADERPROC)load("glSpecializeShader");
1738 glad_glMultiDrawArraysIndirectCount = (PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC)load("glMultiDrawArraysIndirectCount");
1739 glad_glMultiDrawElementsIndirectCount = (PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC)load("glMultiDrawElementsIndirectCount");
1740 glad_glPolygonOffsetClamp = (PFNGLPOLYGONOFFSETCLAMPPROC)load("glPolygonOffsetClamp");
1741}
1742static int find_extensionsGL(void) {
1743 if (!get_exts()) return 0;
1744 (void)&has_ext;
1745 free_exts();
1746 return 1;
1747}
1748
1749static void find_coreGL(void) {
1750
1751 /* Thank you @elmindreda
1752 * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176
1753 * https://github.com/glfw/glfw/blob/master/src/context.c#L36
1754 */
1755 int i, major, minor;
1756
1757 const char* version;
1758 const char* prefixes[] = {
1759 "OpenGL ES-CM ",
1760 "OpenGL ES-CL ",
1761 "OpenGL ES ",
1762 NULL
1763 };
1764
1765 version = (const char*) glGetString(GL_VERSION);
1766 if (!version) return;
1767
1768 for (i = 0; prefixes[i]; i++) {
1769 const size_t length = strlen(prefixes[i]);
1770 if (strncmp(version, prefixes[i], length) == 0) {
1771 version += length;
1772 break;
1773 }
1774 }
1775
1776/* PR #18 */
1777#ifdef _MSC_VER
1778 sscanf_s(version, "%d.%d", &major, &minor);
1779#else
1780 sscanf(version, "%d.%d", &major, &minor);
1781#endif
1782
1783 GLVersion.major = major; GLVersion.minor = minor;
1784 max_loaded_major = major; max_loaded_minor = minor;
1785 GLAD_GL_VERSION_1_0 = (major == 1 && minor >= 0) || major > 1;
1786 GLAD_GL_VERSION_1_1 = (major == 1 && minor >= 1) || major > 1;
1787 GLAD_GL_VERSION_1_2 = (major == 1 && minor >= 2) || major > 1;
1788 GLAD_GL_VERSION_1_3 = (major == 1 && minor >= 3) || major > 1;
1789 GLAD_GL_VERSION_1_4 = (major == 1 && minor >= 4) || major > 1;
1790 GLAD_GL_VERSION_1_5 = (major == 1 && minor >= 5) || major > 1;
1791 GLAD_GL_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2;
1792 GLAD_GL_VERSION_2_1 = (major == 2 && minor >= 1) || major > 2;
1793 GLAD_GL_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3;
1794 GLAD_GL_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3;
1795 GLAD_GL_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3;
1796 GLAD_GL_VERSION_3_3 = (major == 3 && minor >= 3) || major > 3;
1797 GLAD_GL_VERSION_4_0 = (major == 4 && minor >= 0) || major > 4;
1798 GLAD_GL_VERSION_4_1 = (major == 4 && minor >= 1) || major > 4;
1799 GLAD_GL_VERSION_4_2 = (major == 4 && minor >= 2) || major > 4;
1800 GLAD_GL_VERSION_4_3 = (major == 4 && minor >= 3) || major > 4;
1801 GLAD_GL_VERSION_4_4 = (major == 4 && minor >= 4) || major > 4;
1802 GLAD_GL_VERSION_4_5 = (major == 4 && minor >= 5) || major > 4;
1803 GLAD_GL_VERSION_4_6 = (major == 4 && minor >= 6) || major > 4;
1804 if (GLVersion.major > 4 || (GLVersion.major >= 4 && GLVersion.minor >= 6)) {
1805 max_loaded_major = 4;
1806 max_loaded_minor = 6;
1807 }
1808}
1809
1810int gladLoadGLLoader(GLADloadproc load) {
1811 GLVersion.major = 0; GLVersion.minor = 0;
1812 glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
1813 if(glGetString == NULL) return 0;
1814 if(glGetString(GL_VERSION) == NULL) return 0;
1815 find_coreGL();
1816 load_GL_VERSION_1_0(load);
1817 load_GL_VERSION_1_1(load);
1818 load_GL_VERSION_1_2(load);
1819 load_GL_VERSION_1_3(load);
1820 load_GL_VERSION_1_4(load);
1821 load_GL_VERSION_1_5(load);
1822 load_GL_VERSION_2_0(load);
1823 load_GL_VERSION_2_1(load);
1824 load_GL_VERSION_3_0(load);
1825 load_GL_VERSION_3_1(load);
1826 load_GL_VERSION_3_2(load);
1827 load_GL_VERSION_3_3(load);
1828 load_GL_VERSION_4_0(load);
1829 load_GL_VERSION_4_1(load);
1830 load_GL_VERSION_4_2(load);
1831 load_GL_VERSION_4_3(load);
1832 load_GL_VERSION_4_4(load);
1833 load_GL_VERSION_4_5(load);
1834 load_GL_VERSION_4_6(load);
1835
1836 if (!find_extensionsGL()) return 0;
1837 return GLVersion.major != 0 || GLVersion.minor != 0;
1838}
1839
1840static void load_GL_ES_VERSION_2_0(GLADloadproc load) {
1841 if(!GLAD_GL_ES_VERSION_2_0) return;
1842 glad_glActiveTexture = (PFNGLACTIVETEXTUREPROC)load("glActiveTexture");
1843 glad_glAttachShader = (PFNGLATTACHSHADERPROC)load("glAttachShader");
1844 glad_glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)load("glBindAttribLocation");
1845 glad_glBindBuffer = (PFNGLBINDBUFFERPROC)load("glBindBuffer");
1846 glad_glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)load("glBindFramebuffer");
1847 glad_glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)load("glBindRenderbuffer");
1848 glad_glBindTexture = (PFNGLBINDTEXTUREPROC)load("glBindTexture");
1849 glad_glBlendColor = (PFNGLBLENDCOLORPROC)load("glBlendColor");
1850 glad_glBlendEquation = (PFNGLBLENDEQUATIONPROC)load("glBlendEquation");
1851 glad_glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)load("glBlendEquationSeparate");
1852 glad_glBlendFunc = (PFNGLBLENDFUNCPROC)load("glBlendFunc");
1853 glad_glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)load("glBlendFuncSeparate");
1854 glad_glBufferData = (PFNGLBUFFERDATAPROC)load("glBufferData");
1855 glad_glBufferSubData = (PFNGLBUFFERSUBDATAPROC)load("glBufferSubData");
1856 glad_glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)load("glCheckFramebufferStatus");
1857 glad_glClear = (PFNGLCLEARPROC)load("glClear");
1858 glad_glClearColor = (PFNGLCLEARCOLORPROC)load("glClearColor");
1859 glad_glClearDepthf = (PFNGLCLEARDEPTHFPROC)load("glClearDepthf");
1860 glad_glClearStencil = (PFNGLCLEARSTENCILPROC)load("glClearStencil");
1861 glad_glColorMask = (PFNGLCOLORMASKPROC)load("glColorMask");
1862 glad_glCompileShader = (PFNGLCOMPILESHADERPROC)load("glCompileShader");
1863 glad_glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)load("glCompressedTexImage2D");
1864 glad_glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)load("glCompressedTexSubImage2D");
1865 glad_glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)load("glCopyTexImage2D");
1866 glad_glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)load("glCopyTexSubImage2D");
1867 glad_glCreateProgram = (PFNGLCREATEPROGRAMPROC)load("glCreateProgram");
1868 glad_glCreateShader = (PFNGLCREATESHADERPROC)load("glCreateShader");
1869 glad_glCullFace = (PFNGLCULLFACEPROC)load("glCullFace");
1870 glad_glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)load("glDeleteBuffers");
1871 glad_glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)load("glDeleteFramebuffers");
1872 glad_glDeleteProgram = (PFNGLDELETEPROGRAMPROC)load("glDeleteProgram");
1873 glad_glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)load("glDeleteRenderbuffers");
1874 glad_glDeleteShader = (PFNGLDELETESHADERPROC)load("glDeleteShader");
1875 glad_glDeleteTextures = (PFNGLDELETETEXTURESPROC)load("glDeleteTextures");
1876 glad_glDepthFunc = (PFNGLDEPTHFUNCPROC)load("glDepthFunc");
1877 glad_glDepthMask = (PFNGLDEPTHMASKPROC)load("glDepthMask");
1878 glad_glDepthRangef = (PFNGLDEPTHRANGEFPROC)load("glDepthRangef");
1879 glad_glDetachShader = (PFNGLDETACHSHADERPROC)load("glDetachShader");
1880 glad_glDisable = (PFNGLDISABLEPROC)load("glDisable");
1881 glad_glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)load("glDisableVertexAttribArray");
1882 glad_glDrawArrays = (PFNGLDRAWARRAYSPROC)load("glDrawArrays");
1883 glad_glDrawElements = (PFNGLDRAWELEMENTSPROC)load("glDrawElements");
1884 glad_glEnable = (PFNGLENABLEPROC)load("glEnable");
1885 glad_glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)load("glEnableVertexAttribArray");
1886 glad_glFinish = (PFNGLFINISHPROC)load("glFinish");
1887 glad_glFlush = (PFNGLFLUSHPROC)load("glFlush");
1888 glad_glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)load("glFramebufferRenderbuffer");
1889 glad_glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)load("glFramebufferTexture2D");
1890 glad_glFrontFace = (PFNGLFRONTFACEPROC)load("glFrontFace");
1891 glad_glGenBuffers = (PFNGLGENBUFFERSPROC)load("glGenBuffers");
1892 glad_glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)load("glGenerateMipmap");
1893 glad_glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)load("glGenFramebuffers");
1894 glad_glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)load("glGenRenderbuffers");
1895 glad_glGenTextures = (PFNGLGENTEXTURESPROC)load("glGenTextures");
1896 glad_glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)load("glGetActiveAttrib");
1897 glad_glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)load("glGetActiveUniform");
1898 glad_glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)load("glGetAttachedShaders");
1899 glad_glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)load("glGetAttribLocation");
1900 glad_glGetBooleanv = (PFNGLGETBOOLEANVPROC)load("glGetBooleanv");
1901 glad_glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)load("glGetBufferParameteriv");
1902 glad_glGetError = (PFNGLGETERRORPROC)load("glGetError");
1903 glad_glGetFloatv = (PFNGLGETFLOATVPROC)load("glGetFloatv");
1904 glad_glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)load("glGetFramebufferAttachmentParameteriv");
1905 glad_glGetIntegerv = (PFNGLGETINTEGERVPROC)load("glGetIntegerv");
1906 glad_glGetProgramiv = (PFNGLGETPROGRAMIVPROC)load("glGetProgramiv");
1907 glad_glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)load("glGetProgramInfoLog");
1908 glad_glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)load("glGetRenderbufferParameteriv");
1909 glad_glGetShaderiv = (PFNGLGETSHADERIVPROC)load("glGetShaderiv");
1910 glad_glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)load("glGetShaderInfoLog");
1911 glad_glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)load("glGetShaderPrecisionFormat");
1912 glad_glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)load("glGetShaderSource");
1913 glad_glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
1914 glad_glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)load("glGetTexParameterfv");
1915 glad_glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)load("glGetTexParameteriv");
1916 glad_glGetUniformfv = (PFNGLGETUNIFORMFVPROC)load("glGetUniformfv");
1917 glad_glGetUniformiv = (PFNGLGETUNIFORMIVPROC)load("glGetUniformiv");
1918 glad_glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)load("glGetUniformLocation");
1919 glad_glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)load("glGetVertexAttribfv");
1920 glad_glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)load("glGetVertexAttribiv");
1921 glad_glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)load("glGetVertexAttribPointerv");
1922 glad_glHint = (PFNGLHINTPROC)load("glHint");
1923 glad_glIsBuffer = (PFNGLISBUFFERPROC)load("glIsBuffer");
1924 glad_glIsEnabled = (PFNGLISENABLEDPROC)load("glIsEnabled");
1925 glad_glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)load("glIsFramebuffer");
1926 glad_glIsProgram = (PFNGLISPROGRAMPROC)load("glIsProgram");
1927 glad_glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)load("glIsRenderbuffer");
1928 glad_glIsShader = (PFNGLISSHADERPROC)load("glIsShader");
1929 glad_glIsTexture = (PFNGLISTEXTUREPROC)load("glIsTexture");
1930 glad_glLineWidth = (PFNGLLINEWIDTHPROC)load("glLineWidth");
1931 glad_glLinkProgram = (PFNGLLINKPROGRAMPROC)load("glLinkProgram");
1932 glad_glPixelStorei = (PFNGLPIXELSTOREIPROC)load("glPixelStorei");
1933 glad_glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)load("glPolygonOffset");
1934 glad_glReadPixels = (PFNGLREADPIXELSPROC)load("glReadPixels");
1935 glad_glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)load("glReleaseShaderCompiler");
1936 glad_glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)load("glRenderbufferStorage");
1937 glad_glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)load("glSampleCoverage");
1938 glad_glScissor = (PFNGLSCISSORPROC)load("glScissor");
1939 glad_glShaderBinary = (PFNGLSHADERBINARYPROC)load("glShaderBinary");
1940 glad_glShaderSource = (PFNGLSHADERSOURCEPROC)load("glShaderSource");
1941 glad_glStencilFunc = (PFNGLSTENCILFUNCPROC)load("glStencilFunc");
1942 glad_glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)load("glStencilFuncSeparate");
1943 glad_glStencilMask = (PFNGLSTENCILMASKPROC)load("glStencilMask");
1944 glad_glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)load("glStencilMaskSeparate");
1945 glad_glStencilOp = (PFNGLSTENCILOPPROC)load("glStencilOp");
1946 glad_glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)load("glStencilOpSeparate");
1947 glad_glTexImage2D = (PFNGLTEXIMAGE2DPROC)load("glTexImage2D");
1948 glad_glTexParameterf = (PFNGLTEXPARAMETERFPROC)load("glTexParameterf");
1949 glad_glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)load("glTexParameterfv");
1950 glad_glTexParameteri = (PFNGLTEXPARAMETERIPROC)load("glTexParameteri");
1951 glad_glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)load("glTexParameteriv");
1952 glad_glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)load("glTexSubImage2D");
1953 glad_glUniform1f = (PFNGLUNIFORM1FPROC)load("glUniform1f");
1954 glad_glUniform1fv = (PFNGLUNIFORM1FVPROC)load("glUniform1fv");
1955 glad_glUniform1i = (PFNGLUNIFORM1IPROC)load("glUniform1i");
1956 glad_glUniform1iv = (PFNGLUNIFORM1IVPROC)load("glUniform1iv");
1957 glad_glUniform2f = (PFNGLUNIFORM2FPROC)load("glUniform2f");
1958 glad_glUniform2fv = (PFNGLUNIFORM2FVPROC)load("glUniform2fv");
1959 glad_glUniform2i = (PFNGLUNIFORM2IPROC)load("glUniform2i");
1960 glad_glUniform2iv = (PFNGLUNIFORM2IVPROC)load("glUniform2iv");
1961 glad_glUniform3f = (PFNGLUNIFORM3FPROC)load("glUniform3f");
1962 glad_glUniform3fv = (PFNGLUNIFORM3FVPROC)load("glUniform3fv");
1963 glad_glUniform3i = (PFNGLUNIFORM3IPROC)load("glUniform3i");
1964 glad_glUniform3iv = (PFNGLUNIFORM3IVPROC)load("glUniform3iv");
1965 glad_glUniform4f = (PFNGLUNIFORM4FPROC)load("glUniform4f");
1966 glad_glUniform4fv = (PFNGLUNIFORM4FVPROC)load("glUniform4fv");
1967 glad_glUniform4i = (PFNGLUNIFORM4IPROC)load("glUniform4i");
1968 glad_glUniform4iv = (PFNGLUNIFORM4IVPROC)load("glUniform4iv");
1969 glad_glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)load("glUniformMatrix2fv");
1970 glad_glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)load("glUniformMatrix3fv");
1971 glad_glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)load("glUniformMatrix4fv");
1972 glad_glUseProgram = (PFNGLUSEPROGRAMPROC)load("glUseProgram");
1973 glad_glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)load("glValidateProgram");
1974 glad_glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)load("glVertexAttrib1f");
1975 glad_glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)load("glVertexAttrib1fv");
1976 glad_glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)load("glVertexAttrib2f");
1977 glad_glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)load("glVertexAttrib2fv");
1978 glad_glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)load("glVertexAttrib3f");
1979 glad_glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)load("glVertexAttrib3fv");
1980 glad_glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)load("glVertexAttrib4f");
1981 glad_glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)load("glVertexAttrib4fv");
1982 glad_glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)load("glVertexAttribPointer");
1983 glad_glViewport = (PFNGLVIEWPORTPROC)load("glViewport");
1984}
1985static void load_GL_ES_VERSION_3_0(GLADloadproc load) {
1986 if(!GLAD_GL_ES_VERSION_3_0) return;
1987 glad_glReadBuffer = (PFNGLREADBUFFERPROC)load("glReadBuffer");
1988 glad_glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)load("glDrawRangeElements");
1989 glad_glTexImage3D = (PFNGLTEXIMAGE3DPROC)load("glTexImage3D");
1990 glad_glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)load("glTexSubImage3D");
1991 glad_glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)load("glCopyTexSubImage3D");
1992 glad_glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)load("glCompressedTexImage3D");
1993 glad_glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)load("glCompressedTexSubImage3D");
1994 glad_glGenQueries = (PFNGLGENQUERIESPROC)load("glGenQueries");
1995 glad_glDeleteQueries = (PFNGLDELETEQUERIESPROC)load("glDeleteQueries");
1996 glad_glIsQuery = (PFNGLISQUERYPROC)load("glIsQuery");
1997 glad_glBeginQuery = (PFNGLBEGINQUERYPROC)load("glBeginQuery");
1998 glad_glEndQuery = (PFNGLENDQUERYPROC)load("glEndQuery");
1999 glad_glGetQueryiv = (PFNGLGETQUERYIVPROC)load("glGetQueryiv");
2000 glad_glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)load("glGetQueryObjectuiv");
2001 glad_glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)load("glUnmapBuffer");
2002 glad_glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)load("glGetBufferPointerv");
2003 glad_glDrawBuffers = (PFNGLDRAWBUFFERSPROC)load("glDrawBuffers");
2004 glad_glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)load("glUniformMatrix2x3fv");
2005 glad_glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)load("glUniformMatrix3x2fv");
2006 glad_glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)load("glUniformMatrix2x4fv");
2007 glad_glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)load("glUniformMatrix4x2fv");
2008 glad_glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)load("glUniformMatrix3x4fv");
2009 glad_glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)load("glUniformMatrix4x3fv");
2010 glad_glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)load("glBlitFramebuffer");
2011 glad_glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)load("glRenderbufferStorageMultisample");
2012 glad_glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)load("glFramebufferTextureLayer");
2013 glad_glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)load("glMapBufferRange");
2014 glad_glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)load("glFlushMappedBufferRange");
2015 glad_glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)load("glBindVertexArray");
2016 glad_glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)load("glDeleteVertexArrays");
2017 glad_glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)load("glGenVertexArrays");
2018 glad_glIsVertexArray = (PFNGLISVERTEXARRAYPROC)load("glIsVertexArray");
2019 glad_glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)load("glGetIntegeri_v");
2020 glad_glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)load("glBeginTransformFeedback");
2021 glad_glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)load("glEndTransformFeedback");
2022 glad_glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)load("glBindBufferRange");
2023 glad_glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)load("glBindBufferBase");
2024 glad_glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)load("glTransformFeedbackVaryings");
2025 glad_glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)load("glGetTransformFeedbackVarying");
2026 glad_glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)load("glVertexAttribIPointer");
2027 glad_glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)load("glGetVertexAttribIiv");
2028 glad_glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)load("glGetVertexAttribIuiv");
2029 glad_glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)load("glVertexAttribI4i");
2030 glad_glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)load("glVertexAttribI4ui");
2031 glad_glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)load("glVertexAttribI4iv");
2032 glad_glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)load("glVertexAttribI4uiv");
2033 glad_glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)load("glGetUniformuiv");
2034 glad_glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)load("glGetFragDataLocation");
2035 glad_glUniform1ui = (PFNGLUNIFORM1UIPROC)load("glUniform1ui");
2036 glad_glUniform2ui = (PFNGLUNIFORM2UIPROC)load("glUniform2ui");
2037 glad_glUniform3ui = (PFNGLUNIFORM3UIPROC)load("glUniform3ui");
2038 glad_glUniform4ui = (PFNGLUNIFORM4UIPROC)load("glUniform4ui");
2039 glad_glUniform1uiv = (PFNGLUNIFORM1UIVPROC)load("glUniform1uiv");
2040 glad_glUniform2uiv = (PFNGLUNIFORM2UIVPROC)load("glUniform2uiv");
2041 glad_glUniform3uiv = (PFNGLUNIFORM3UIVPROC)load("glUniform3uiv");
2042 glad_glUniform4uiv = (PFNGLUNIFORM4UIVPROC)load("glUniform4uiv");
2043 glad_glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)load("glClearBufferiv");
2044 glad_glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)load("glClearBufferuiv");
2045 glad_glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)load("glClearBufferfv");
2046 glad_glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)load("glClearBufferfi");
2047 glad_glGetStringi = (PFNGLGETSTRINGIPROC)load("glGetStringi");
2048 glad_glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)load("glCopyBufferSubData");
2049 glad_glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)load("glGetUniformIndices");
2050 glad_glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)load("glGetActiveUniformsiv");
2051 glad_glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)load("glGetUniformBlockIndex");
2052 glad_glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)load("glGetActiveUniformBlockiv");
2053 glad_glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)load("glGetActiveUniformBlockName");
2054 glad_glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)load("glUniformBlockBinding");
2055 glad_glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)load("glDrawArraysInstanced");
2056 glad_glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)load("glDrawElementsInstanced");
2057 glad_glFenceSync = (PFNGLFENCESYNCPROC)load("glFenceSync");
2058 glad_glIsSync = (PFNGLISSYNCPROC)load("glIsSync");
2059 glad_glDeleteSync = (PFNGLDELETESYNCPROC)load("glDeleteSync");
2060 glad_glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)load("glClientWaitSync");
2061 glad_glWaitSync = (PFNGLWAITSYNCPROC)load("glWaitSync");
2062 glad_glGetInteger64v = (PFNGLGETINTEGER64VPROC)load("glGetInteger64v");
2063 glad_glGetSynciv = (PFNGLGETSYNCIVPROC)load("glGetSynciv");
2064 glad_glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)load("glGetInteger64i_v");
2065 glad_glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)load("glGetBufferParameteri64v");
2066 glad_glGenSamplers = (PFNGLGENSAMPLERSPROC)load("glGenSamplers");
2067 glad_glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)load("glDeleteSamplers");
2068 glad_glIsSampler = (PFNGLISSAMPLERPROC)load("glIsSampler");
2069 glad_glBindSampler = (PFNGLBINDSAMPLERPROC)load("glBindSampler");
2070 glad_glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)load("glSamplerParameteri");
2071 glad_glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)load("glSamplerParameteriv");
2072 glad_glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)load("glSamplerParameterf");
2073 glad_glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)load("glSamplerParameterfv");
2074 glad_glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)load("glGetSamplerParameteriv");
2075 glad_glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)load("glGetSamplerParameterfv");
2076 glad_glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC)load("glVertexAttribDivisor");
2077 glad_glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)load("glBindTransformFeedback");
2078 glad_glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)load("glDeleteTransformFeedbacks");
2079 glad_glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)load("glGenTransformFeedbacks");
2080 glad_glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)load("glIsTransformFeedback");
2081 glad_glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)load("glPauseTransformFeedback");
2082 glad_glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)load("glResumeTransformFeedback");
2083 glad_glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)load("glGetProgramBinary");
2084 glad_glProgramBinary = (PFNGLPROGRAMBINARYPROC)load("glProgramBinary");
2085 glad_glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)load("glProgramParameteri");
2086 glad_glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)load("glInvalidateFramebuffer");
2087 glad_glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)load("glInvalidateSubFramebuffer");
2088 glad_glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)load("glTexStorage2D");
2089 glad_glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)load("glTexStorage3D");
2090 glad_glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)load("glGetInternalformativ");
2091}
2092static void load_GL_ES_VERSION_3_1(GLADloadproc load) {
2093 if(!GLAD_GL_ES_VERSION_3_1) return;
2094 glad_glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)load("glDispatchCompute");
2095 glad_glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)load("glDispatchComputeIndirect");
2096 glad_glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)load("glDrawArraysIndirect");
2097 glad_glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)load("glDrawElementsIndirect");
2098 glad_glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)load("glFramebufferParameteri");
2099 glad_glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)load("glGetFramebufferParameteriv");
2100 glad_glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)load("glGetProgramInterfaceiv");
2101 glad_glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)load("glGetProgramResourceIndex");
2102 glad_glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)load("glGetProgramResourceName");
2103 glad_glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)load("glGetProgramResourceiv");
2104 glad_glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)load("glGetProgramResourceLocation");
2105 glad_glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)load("glUseProgramStages");
2106 glad_glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)load("glActiveShaderProgram");
2107 glad_glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)load("glCreateShaderProgramv");
2108 glad_glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)load("glBindProgramPipeline");
2109 glad_glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)load("glDeleteProgramPipelines");
2110 glad_glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)load("glGenProgramPipelines");
2111 glad_glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)load("glIsProgramPipeline");
2112 glad_glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)load("glGetProgramPipelineiv");
2113 glad_glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)load("glProgramUniform1i");
2114 glad_glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)load("glProgramUniform2i");
2115 glad_glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)load("glProgramUniform3i");
2116 glad_glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)load("glProgramUniform4i");
2117 glad_glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)load("glProgramUniform1ui");
2118 glad_glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)load("glProgramUniform2ui");
2119 glad_glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)load("glProgramUniform3ui");
2120 glad_glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)load("glProgramUniform4ui");
2121 glad_glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)load("glProgramUniform1f");
2122 glad_glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)load("glProgramUniform2f");
2123 glad_glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)load("glProgramUniform3f");
2124 glad_glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)load("glProgramUniform4f");
2125 glad_glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)load("glProgramUniform1iv");
2126 glad_glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)load("glProgramUniform2iv");
2127 glad_glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)load("glProgramUniform3iv");
2128 glad_glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)load("glProgramUniform4iv");
2129 glad_glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)load("glProgramUniform1uiv");
2130 glad_glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)load("glProgramUniform2uiv");
2131 glad_glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)load("glProgramUniform3uiv");
2132 glad_glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)load("glProgramUniform4uiv");
2133 glad_glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)load("glProgramUniform1fv");
2134 glad_glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)load("glProgramUniform2fv");
2135 glad_glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)load("glProgramUniform3fv");
2136 glad_glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)load("glProgramUniform4fv");
2137 glad_glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)load("glProgramUniformMatrix2fv");
2138 glad_glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)load("glProgramUniformMatrix3fv");
2139 glad_glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)load("glProgramUniformMatrix4fv");
2140 glad_glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)load("glProgramUniformMatrix2x3fv");
2141 glad_glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)load("glProgramUniformMatrix3x2fv");
2142 glad_glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)load("glProgramUniformMatrix2x4fv");
2143 glad_glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)load("glProgramUniformMatrix4x2fv");
2144 glad_glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)load("glProgramUniformMatrix3x4fv");
2145 glad_glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)load("glProgramUniformMatrix4x3fv");
2146 glad_glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)load("glValidateProgramPipeline");
2147 glad_glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)load("glGetProgramPipelineInfoLog");
2148 glad_glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)load("glBindImageTexture");
2149 glad_glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)load("glGetBooleani_v");
2150 glad_glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)load("glMemoryBarrier");
2151 glad_glMemoryBarrierByRegion = (PFNGLMEMORYBARRIERBYREGIONPROC)load("glMemoryBarrierByRegion");
2152 glad_glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)load("glTexStorage2DMultisample");
2153 glad_glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)load("glGetMultisamplefv");
2154 glad_glSampleMaski = (PFNGLSAMPLEMASKIPROC)load("glSampleMaski");
2155 glad_glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)load("glGetTexLevelParameteriv");
2156 glad_glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)load("glGetTexLevelParameterfv");
2157 glad_glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)load("glBindVertexBuffer");
2158 glad_glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)load("glVertexAttribFormat");
2159 glad_glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)load("glVertexAttribIFormat");
2160 glad_glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)load("glVertexAttribBinding");
2161 glad_glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)load("glVertexBindingDivisor");
2162}
2163static void load_GL_ES_VERSION_3_2(GLADloadproc load) {
2164 if(!GLAD_GL_ES_VERSION_3_2) return;
2165 glad_glBlendBarrier = (PFNGLBLENDBARRIERPROC)load("glBlendBarrier");
2166 glad_glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)load("glCopyImageSubData");
2167 glad_glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)load("glDebugMessageControl");
2168 glad_glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)load("glDebugMessageInsert");
2169 glad_glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)load("glDebugMessageCallback");
2170 glad_glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)load("glGetDebugMessageLog");
2171 glad_glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)load("glPushDebugGroup");
2172 glad_glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)load("glPopDebugGroup");
2173 glad_glObjectLabel = (PFNGLOBJECTLABELPROC)load("glObjectLabel");
2174 glad_glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)load("glGetObjectLabel");
2175 glad_glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)load("glObjectPtrLabel");
2176 glad_glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)load("glGetObjectPtrLabel");
2177 glad_glGetPointerv = (PFNGLGETPOINTERVPROC)load("glGetPointerv");
2178 glad_glEnablei = (PFNGLENABLEIPROC)load("glEnablei");
2179 glad_glDisablei = (PFNGLDISABLEIPROC)load("glDisablei");
2180 glad_glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)load("glBlendEquationi");
2181 glad_glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)load("glBlendEquationSeparatei");
2182 glad_glBlendFunci = (PFNGLBLENDFUNCIPROC)load("glBlendFunci");
2183 glad_glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)load("glBlendFuncSeparatei");
2184 glad_glColorMaski = (PFNGLCOLORMASKIPROC)load("glColorMaski");
2185 glad_glIsEnabledi = (PFNGLISENABLEDIPROC)load("glIsEnabledi");
2186 glad_glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)load("glDrawElementsBaseVertex");
2187 glad_glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)load("glDrawRangeElementsBaseVertex");
2188 glad_glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)load("glDrawElementsInstancedBaseVertex");
2189 glad_glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)load("glFramebufferTexture");
2190 glad_glPrimitiveBoundingBox = (PFNGLPRIMITIVEBOUNDINGBOXPROC)load("glPrimitiveBoundingBox");
2191 glad_glGetGraphicsResetStatus = (PFNGLGETGRAPHICSRESETSTATUSPROC)load("glGetGraphicsResetStatus");
2192 glad_glReadnPixels = (PFNGLREADNPIXELSPROC)load("glReadnPixels");
2193 glad_glGetnUniformfv = (PFNGLGETNUNIFORMFVPROC)load("glGetnUniformfv");
2194 glad_glGetnUniformiv = (PFNGLGETNUNIFORMIVPROC)load("glGetnUniformiv");
2195 glad_glGetnUniformuiv = (PFNGLGETNUNIFORMUIVPROC)load("glGetnUniformuiv");
2196 glad_glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)load("glMinSampleShading");
2197 glad_glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)load("glPatchParameteri");
2198 glad_glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)load("glTexParameterIiv");
2199 glad_glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)load("glTexParameterIuiv");
2200 glad_glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)load("glGetTexParameterIiv");
2201 glad_glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)load("glGetTexParameterIuiv");
2202 glad_glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)load("glSamplerParameterIiv");
2203 glad_glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)load("glSamplerParameterIuiv");
2204 glad_glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)load("glGetSamplerParameterIiv");
2205 glad_glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)load("glGetSamplerParameterIuiv");
2206 glad_glTexBuffer = (PFNGLTEXBUFFERPROC)load("glTexBuffer");
2207 glad_glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)load("glTexBufferRange");
2208 glad_glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)load("glTexStorage3DMultisample");
2209}
2210static int find_extensionsGLES2(void) {
2211 if (!get_exts()) return 0;
2212 (void)&has_ext;
2213 free_exts();
2214 return 1;
2215}
2216
2217static void find_coreGLES2(void) {
2218
2219 /* Thank you @elmindreda
2220 * https://github.com/elmindreda/greg/blob/master/templates/greg.c.in#L176
2221 * https://github.com/glfw/glfw/blob/master/src/context.c#L36
2222 */
2223 int i, major, minor;
2224
2225 const char* version;
2226 const char* prefixes[] = {
2227 "OpenGL ES-CM ",
2228 "OpenGL ES-CL ",
2229 "OpenGL ES ",
2230 NULL
2231 };
2232
2233 version = (const char*) glGetString(GL_VERSION);
2234 if (!version) return;
2235
2236 for (i = 0; prefixes[i]; i++) {
2237 const size_t length = strlen(prefixes[i]);
2238 if (strncmp(version, prefixes[i], length) == 0) {
2239 version += length;
2240 break;
2241 }
2242 }
2243
2244/* PR #18 */
2245#ifdef _MSC_VER
2246 sscanf_s(version, "%d.%d", &major, &minor);
2247#else
2248 sscanf(version, "%d.%d", &major, &minor);
2249#endif
2250
2251 GLVersion.major = major; GLVersion.minor = minor;
2252 max_loaded_major = major; max_loaded_minor = minor;
2253 GLAD_GL_ES_VERSION_2_0 = (major == 2 && minor >= 0) || major > 2;
2254 GLAD_GL_ES_VERSION_3_0 = (major == 3 && minor >= 0) || major > 3;
2255 GLAD_GL_ES_VERSION_3_1 = (major == 3 && minor >= 1) || major > 3;
2256 GLAD_GL_ES_VERSION_3_2 = (major == 3 && minor >= 2) || major > 3;
2257 if (GLVersion.major > 3 || (GLVersion.major >= 3 && GLVersion.minor >= 2)) {
2258 max_loaded_major = 3;
2259 max_loaded_minor = 2;
2260 }
2261}
2262
2263int gladLoadGLES2Loader(GLADloadproc load) {
2264 GLVersion.major = 0; GLVersion.minor = 0;
2265 glGetString = (PFNGLGETSTRINGPROC)load("glGetString");
2266 if(glGetString == NULL) return 0;
2267 if(glGetString(GL_VERSION) == NULL) return 0;
2268 find_coreGLES2();
2269 load_GL_ES_VERSION_2_0(load);
2270 load_GL_ES_VERSION_3_0(load);
2271 load_GL_ES_VERSION_3_1(load);
2272 load_GL_ES_VERSION_3_2(load);
2273
2274 if (!find_extensionsGLES2()) return 0;
2275 return GLVersion.major != 0 || GLVersion.minor != 0;
2276}
2277