diff options
Diffstat (limited to 'app/contrib/glad/src/glad.c')
-rw-r--r-- | app/contrib/glad/src/glad.c | 2277 |
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 | |||
27 | static 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> | ||
34 | static HMODULE libGL; | ||
35 | |||
36 | typedef void* (APIENTRYP PFNWGLGETPROCADDRESSPROC_PRIVATE)(const char*); | ||
37 | static 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 | |||
56 | static | ||
57 | int 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 | |||
71 | static | ||
72 | void close_gl(void) { | ||
73 | if(libGL != NULL) { | ||
74 | FreeLibrary((HMODULE) libGL); | ||
75 | libGL = NULL; | ||
76 | } | ||
77 | } | ||
78 | #else | ||
79 | #include <dlfcn.h> | ||
80 | static void* libGL; | ||
81 | |||
82 | #if !defined(__APPLE__) && !defined(__HAIKU__) | ||
83 | typedef void* (APIENTRYP PFNGLXGETPROCADDRESSPROC_PRIVATE)(const char*); | ||
84 | static PFNGLXGETPROCADDRESSPROC_PRIVATE gladGetProcAddressPtr; | ||
85 | #endif | ||
86 | |||
87 | static | ||
88 | int 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 | |||
118 | static | ||
119 | void close_gl(void) { | ||
120 | if(libGL != NULL) { | ||
121 | dlclose(libGL); | ||
122 | libGL = NULL; | ||
123 | } | ||
124 | } | ||
125 | #endif | ||
126 | |||
127 | static | ||
128 | void* 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 | |||
148 | int 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 | |||
159 | struct 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 | |||
165 | static int max_loaded_major; | ||
166 | static int max_loaded_minor; | ||
167 | |||
168 | static const char *exts = NULL; | ||
169 | static int num_exts_i = 0; | ||
170 | static char **exts_i = NULL; | ||
171 | |||
172 | static 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 | |||
206 | static 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 | |||
217 | static 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 | } | ||
258 | int GLAD_GL_VERSION_1_0 = 0; | ||
259 | int GLAD_GL_VERSION_1_1 = 0; | ||
260 | int GLAD_GL_VERSION_1_2 = 0; | ||
261 | int GLAD_GL_VERSION_1_3 = 0; | ||
262 | int GLAD_GL_VERSION_1_4 = 0; | ||
263 | int GLAD_GL_VERSION_1_5 = 0; | ||
264 | int GLAD_GL_VERSION_2_0 = 0; | ||
265 | int GLAD_GL_VERSION_2_1 = 0; | ||
266 | int GLAD_GL_VERSION_3_0 = 0; | ||
267 | int GLAD_GL_VERSION_3_1 = 0; | ||
268 | int GLAD_GL_VERSION_3_2 = 0; | ||
269 | int GLAD_GL_VERSION_3_3 = 0; | ||
270 | int GLAD_GL_VERSION_4_0 = 0; | ||
271 | int GLAD_GL_VERSION_4_1 = 0; | ||
272 | int GLAD_GL_VERSION_4_2 = 0; | ||
273 | int GLAD_GL_VERSION_4_3 = 0; | ||
274 | int GLAD_GL_VERSION_4_4 = 0; | ||
275 | int GLAD_GL_VERSION_4_5 = 0; | ||
276 | int GLAD_GL_VERSION_4_6 = 0; | ||
277 | int GLAD_GL_ES_VERSION_2_0 = 0; | ||
278 | int GLAD_GL_ES_VERSION_3_0 = 0; | ||
279 | int GLAD_GL_ES_VERSION_3_1 = 0; | ||
280 | int GLAD_GL_ES_VERSION_3_2 = 0; | ||
281 | PFNGLACTIVESHADERPROGRAMPROC glad_glActiveShaderProgram = NULL; | ||
282 | PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL; | ||
283 | PFNGLATTACHSHADERPROC glad_glAttachShader = NULL; | ||
284 | PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL; | ||
285 | PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL; | ||
286 | PFNGLBEGINQUERYINDEXEDPROC glad_glBeginQueryIndexed = NULL; | ||
287 | PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL; | ||
288 | PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL; | ||
289 | PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL; | ||
290 | PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL; | ||
291 | PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL; | ||
292 | PFNGLBINDBUFFERSBASEPROC glad_glBindBuffersBase = NULL; | ||
293 | PFNGLBINDBUFFERSRANGEPROC glad_glBindBuffersRange = NULL; | ||
294 | PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL; | ||
295 | PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL; | ||
296 | PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL; | ||
297 | PFNGLBINDIMAGETEXTUREPROC glad_glBindImageTexture = NULL; | ||
298 | PFNGLBINDIMAGETEXTURESPROC glad_glBindImageTextures = NULL; | ||
299 | PFNGLBINDPROGRAMPIPELINEPROC glad_glBindProgramPipeline = NULL; | ||
300 | PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL; | ||
301 | PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL; | ||
302 | PFNGLBINDSAMPLERSPROC glad_glBindSamplers = NULL; | ||
303 | PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL; | ||
304 | PFNGLBINDTEXTUREUNITPROC glad_glBindTextureUnit = NULL; | ||
305 | PFNGLBINDTEXTURESPROC glad_glBindTextures = NULL; | ||
306 | PFNGLBINDTRANSFORMFEEDBACKPROC glad_glBindTransformFeedback = NULL; | ||
307 | PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL; | ||
308 | PFNGLBINDVERTEXBUFFERPROC glad_glBindVertexBuffer = NULL; | ||
309 | PFNGLBINDVERTEXBUFFERSPROC glad_glBindVertexBuffers = NULL; | ||
310 | PFNGLBLENDBARRIERPROC glad_glBlendBarrier = NULL; | ||
311 | PFNGLBLENDCOLORPROC glad_glBlendColor = NULL; | ||
312 | PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL; | ||
313 | PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL; | ||
314 | PFNGLBLENDEQUATIONSEPARATEIPROC glad_glBlendEquationSeparatei = NULL; | ||
315 | PFNGLBLENDEQUATIONIPROC glad_glBlendEquationi = NULL; | ||
316 | PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL; | ||
317 | PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL; | ||
318 | PFNGLBLENDFUNCSEPARATEIPROC glad_glBlendFuncSeparatei = NULL; | ||
319 | PFNGLBLENDFUNCIPROC glad_glBlendFunci = NULL; | ||
320 | PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL; | ||
321 | PFNGLBLITNAMEDFRAMEBUFFERPROC glad_glBlitNamedFramebuffer = NULL; | ||
322 | PFNGLBUFFERDATAPROC glad_glBufferData = NULL; | ||
323 | PFNGLBUFFERSTORAGEPROC glad_glBufferStorage = NULL; | ||
324 | PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL; | ||
325 | PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL; | ||
326 | PFNGLCHECKNAMEDFRAMEBUFFERSTATUSPROC glad_glCheckNamedFramebufferStatus = NULL; | ||
327 | PFNGLCLAMPCOLORPROC glad_glClampColor = NULL; | ||
328 | PFNGLCLEARPROC glad_glClear = NULL; | ||
329 | PFNGLCLEARBUFFERDATAPROC glad_glClearBufferData = NULL; | ||
330 | PFNGLCLEARBUFFERSUBDATAPROC glad_glClearBufferSubData = NULL; | ||
331 | PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL; | ||
332 | PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL; | ||
333 | PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL; | ||
334 | PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL; | ||
335 | PFNGLCLEARCOLORPROC glad_glClearColor = NULL; | ||
336 | PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL; | ||
337 | PFNGLCLEARDEPTHFPROC glad_glClearDepthf = NULL; | ||
338 | PFNGLCLEARNAMEDBUFFERDATAPROC glad_glClearNamedBufferData = NULL; | ||
339 | PFNGLCLEARNAMEDBUFFERSUBDATAPROC glad_glClearNamedBufferSubData = NULL; | ||
340 | PFNGLCLEARNAMEDFRAMEBUFFERFIPROC glad_glClearNamedFramebufferfi = NULL; | ||
341 | PFNGLCLEARNAMEDFRAMEBUFFERFVPROC glad_glClearNamedFramebufferfv = NULL; | ||
342 | PFNGLCLEARNAMEDFRAMEBUFFERIVPROC glad_glClearNamedFramebufferiv = NULL; | ||
343 | PFNGLCLEARNAMEDFRAMEBUFFERUIVPROC glad_glClearNamedFramebufferuiv = NULL; | ||
344 | PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL; | ||
345 | PFNGLCLEARTEXIMAGEPROC glad_glClearTexImage = NULL; | ||
346 | PFNGLCLEARTEXSUBIMAGEPROC glad_glClearTexSubImage = NULL; | ||
347 | PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL; | ||
348 | PFNGLCLIPCONTROLPROC glad_glClipControl = NULL; | ||
349 | PFNGLCOLORMASKPROC glad_glColorMask = NULL; | ||
350 | PFNGLCOLORMASKIPROC glad_glColorMaski = NULL; | ||
351 | PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL; | ||
352 | PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL; | ||
353 | PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL; | ||
354 | PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL; | ||
355 | PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL; | ||
356 | PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL; | ||
357 | PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL; | ||
358 | PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL; | ||
359 | PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL; | ||
360 | PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL; | ||
361 | PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL; | ||
362 | PFNGLCOMPRESSEDTEXTURESUBIMAGE1DPROC glad_glCompressedTextureSubImage1D = NULL; | ||
363 | PFNGLCOMPRESSEDTEXTURESUBIMAGE2DPROC glad_glCompressedTextureSubImage2D = NULL; | ||
364 | PFNGLCOMPRESSEDTEXTURESUBIMAGE3DPROC glad_glCompressedTextureSubImage3D = NULL; | ||
365 | PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL; | ||
366 | PFNGLCOPYIMAGESUBDATAPROC glad_glCopyImageSubData = NULL; | ||
367 | PFNGLCOPYNAMEDBUFFERSUBDATAPROC glad_glCopyNamedBufferSubData = NULL; | ||
368 | PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL; | ||
369 | PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL; | ||
370 | PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL; | ||
371 | PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL; | ||
372 | PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL; | ||
373 | PFNGLCOPYTEXTURESUBIMAGE1DPROC glad_glCopyTextureSubImage1D = NULL; | ||
374 | PFNGLCOPYTEXTURESUBIMAGE2DPROC glad_glCopyTextureSubImage2D = NULL; | ||
375 | PFNGLCOPYTEXTURESUBIMAGE3DPROC glad_glCopyTextureSubImage3D = NULL; | ||
376 | PFNGLCREATEBUFFERSPROC glad_glCreateBuffers = NULL; | ||
377 | PFNGLCREATEFRAMEBUFFERSPROC glad_glCreateFramebuffers = NULL; | ||
378 | PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL; | ||
379 | PFNGLCREATEPROGRAMPIPELINESPROC glad_glCreateProgramPipelines = NULL; | ||
380 | PFNGLCREATEQUERIESPROC glad_glCreateQueries = NULL; | ||
381 | PFNGLCREATERENDERBUFFERSPROC glad_glCreateRenderbuffers = NULL; | ||
382 | PFNGLCREATESAMPLERSPROC glad_glCreateSamplers = NULL; | ||
383 | PFNGLCREATESHADERPROC glad_glCreateShader = NULL; | ||
384 | PFNGLCREATESHADERPROGRAMVPROC glad_glCreateShaderProgramv = NULL; | ||
385 | PFNGLCREATETEXTURESPROC glad_glCreateTextures = NULL; | ||
386 | PFNGLCREATETRANSFORMFEEDBACKSPROC glad_glCreateTransformFeedbacks = NULL; | ||
387 | PFNGLCREATEVERTEXARRAYSPROC glad_glCreateVertexArrays = NULL; | ||
388 | PFNGLCULLFACEPROC glad_glCullFace = NULL; | ||
389 | PFNGLDEBUGMESSAGECALLBACKPROC glad_glDebugMessageCallback = NULL; | ||
390 | PFNGLDEBUGMESSAGECONTROLPROC glad_glDebugMessageControl = NULL; | ||
391 | PFNGLDEBUGMESSAGEINSERTPROC glad_glDebugMessageInsert = NULL; | ||
392 | PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL; | ||
393 | PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL; | ||
394 | PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL; | ||
395 | PFNGLDELETEPROGRAMPIPELINESPROC glad_glDeleteProgramPipelines = NULL; | ||
396 | PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL; | ||
397 | PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL; | ||
398 | PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL; | ||
399 | PFNGLDELETESHADERPROC glad_glDeleteShader = NULL; | ||
400 | PFNGLDELETESYNCPROC glad_glDeleteSync = NULL; | ||
401 | PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL; | ||
402 | PFNGLDELETETRANSFORMFEEDBACKSPROC glad_glDeleteTransformFeedbacks = NULL; | ||
403 | PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL; | ||
404 | PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL; | ||
405 | PFNGLDEPTHMASKPROC glad_glDepthMask = NULL; | ||
406 | PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL; | ||
407 | PFNGLDEPTHRANGEARRAYVPROC glad_glDepthRangeArrayv = NULL; | ||
408 | PFNGLDEPTHRANGEINDEXEDPROC glad_glDepthRangeIndexed = NULL; | ||
409 | PFNGLDEPTHRANGEFPROC glad_glDepthRangef = NULL; | ||
410 | PFNGLDETACHSHADERPROC glad_glDetachShader = NULL; | ||
411 | PFNGLDISABLEPROC glad_glDisable = NULL; | ||
412 | PFNGLDISABLEVERTEXARRAYATTRIBPROC glad_glDisableVertexArrayAttrib = NULL; | ||
413 | PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL; | ||
414 | PFNGLDISABLEIPROC glad_glDisablei = NULL; | ||
415 | PFNGLDISPATCHCOMPUTEPROC glad_glDispatchCompute = NULL; | ||
416 | PFNGLDISPATCHCOMPUTEINDIRECTPROC glad_glDispatchComputeIndirect = NULL; | ||
417 | PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL; | ||
418 | PFNGLDRAWARRAYSINDIRECTPROC glad_glDrawArraysIndirect = NULL; | ||
419 | PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL; | ||
420 | PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC glad_glDrawArraysInstancedBaseInstance = NULL; | ||
421 | PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL; | ||
422 | PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL; | ||
423 | PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL; | ||
424 | PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL; | ||
425 | PFNGLDRAWELEMENTSINDIRECTPROC glad_glDrawElementsIndirect = NULL; | ||
426 | PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL; | ||
427 | PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC glad_glDrawElementsInstancedBaseInstance = NULL; | ||
428 | PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL; | ||
429 | PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC glad_glDrawElementsInstancedBaseVertexBaseInstance = NULL; | ||
430 | PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL; | ||
431 | PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL; | ||
432 | PFNGLDRAWTRANSFORMFEEDBACKPROC glad_glDrawTransformFeedback = NULL; | ||
433 | PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC glad_glDrawTransformFeedbackInstanced = NULL; | ||
434 | PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC glad_glDrawTransformFeedbackStream = NULL; | ||
435 | PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC glad_glDrawTransformFeedbackStreamInstanced = NULL; | ||
436 | PFNGLENABLEPROC glad_glEnable = NULL; | ||
437 | PFNGLENABLEVERTEXARRAYATTRIBPROC glad_glEnableVertexArrayAttrib = NULL; | ||
438 | PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL; | ||
439 | PFNGLENABLEIPROC glad_glEnablei = NULL; | ||
440 | PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL; | ||
441 | PFNGLENDQUERYPROC glad_glEndQuery = NULL; | ||
442 | PFNGLENDQUERYINDEXEDPROC glad_glEndQueryIndexed = NULL; | ||
443 | PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL; | ||
444 | PFNGLFENCESYNCPROC glad_glFenceSync = NULL; | ||
445 | PFNGLFINISHPROC glad_glFinish = NULL; | ||
446 | PFNGLFLUSHPROC glad_glFlush = NULL; | ||
447 | PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL; | ||
448 | PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEPROC glad_glFlushMappedNamedBufferRange = NULL; | ||
449 | PFNGLFRAMEBUFFERPARAMETERIPROC glad_glFramebufferParameteri = NULL; | ||
450 | PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL; | ||
451 | PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL; | ||
452 | PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL; | ||
453 | PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL; | ||
454 | PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL; | ||
455 | PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL; | ||
456 | PFNGLFRONTFACEPROC glad_glFrontFace = NULL; | ||
457 | PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL; | ||
458 | PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL; | ||
459 | PFNGLGENPROGRAMPIPELINESPROC glad_glGenProgramPipelines = NULL; | ||
460 | PFNGLGENQUERIESPROC glad_glGenQueries = NULL; | ||
461 | PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL; | ||
462 | PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL; | ||
463 | PFNGLGENTEXTURESPROC glad_glGenTextures = NULL; | ||
464 | PFNGLGENTRANSFORMFEEDBACKSPROC glad_glGenTransformFeedbacks = NULL; | ||
465 | PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL; | ||
466 | PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL; | ||
467 | PFNGLGENERATETEXTUREMIPMAPPROC glad_glGenerateTextureMipmap = NULL; | ||
468 | PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC glad_glGetActiveAtomicCounterBufferiv = NULL; | ||
469 | PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL; | ||
470 | PFNGLGETACTIVESUBROUTINENAMEPROC glad_glGetActiveSubroutineName = NULL; | ||
471 | PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC glad_glGetActiveSubroutineUniformName = NULL; | ||
472 | PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC glad_glGetActiveSubroutineUniformiv = NULL; | ||
473 | PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL; | ||
474 | PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL; | ||
475 | PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL; | ||
476 | PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL; | ||
477 | PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL; | ||
478 | PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL; | ||
479 | PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL; | ||
480 | PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL; | ||
481 | PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL; | ||
482 | PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL; | ||
483 | PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL; | ||
484 | PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL; | ||
485 | PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL; | ||
486 | PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL; | ||
487 | PFNGLGETCOMPRESSEDTEXTUREIMAGEPROC glad_glGetCompressedTextureImage = NULL; | ||
488 | PFNGLGETCOMPRESSEDTEXTURESUBIMAGEPROC glad_glGetCompressedTextureSubImage = NULL; | ||
489 | PFNGLGETDEBUGMESSAGELOGPROC glad_glGetDebugMessageLog = NULL; | ||
490 | PFNGLGETDOUBLEI_VPROC glad_glGetDoublei_v = NULL; | ||
491 | PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL; | ||
492 | PFNGLGETERRORPROC glad_glGetError = NULL; | ||
493 | PFNGLGETFLOATI_VPROC glad_glGetFloati_v = NULL; | ||
494 | PFNGLGETFLOATVPROC glad_glGetFloatv = NULL; | ||
495 | PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL; | ||
496 | PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL; | ||
497 | PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL; | ||
498 | PFNGLGETFRAMEBUFFERPARAMETERIVPROC glad_glGetFramebufferParameteriv = NULL; | ||
499 | PFNGLGETGRAPHICSRESETSTATUSPROC glad_glGetGraphicsResetStatus = NULL; | ||
500 | PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL; | ||
501 | PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL; | ||
502 | PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL; | ||
503 | PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL; | ||
504 | PFNGLGETINTERNALFORMATI64VPROC glad_glGetInternalformati64v = NULL; | ||
505 | PFNGLGETINTERNALFORMATIVPROC glad_glGetInternalformativ = NULL; | ||
506 | PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL; | ||
507 | PFNGLGETNAMEDBUFFERPARAMETERI64VPROC glad_glGetNamedBufferParameteri64v = NULL; | ||
508 | PFNGLGETNAMEDBUFFERPARAMETERIVPROC glad_glGetNamedBufferParameteriv = NULL; | ||
509 | PFNGLGETNAMEDBUFFERPOINTERVPROC glad_glGetNamedBufferPointerv = NULL; | ||
510 | PFNGLGETNAMEDBUFFERSUBDATAPROC glad_glGetNamedBufferSubData = NULL; | ||
511 | PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetNamedFramebufferAttachmentParameteriv = NULL; | ||
512 | PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVPROC glad_glGetNamedFramebufferParameteriv = NULL; | ||
513 | PFNGLGETNAMEDRENDERBUFFERPARAMETERIVPROC glad_glGetNamedRenderbufferParameteriv = NULL; | ||
514 | PFNGLGETOBJECTLABELPROC glad_glGetObjectLabel = NULL; | ||
515 | PFNGLGETOBJECTPTRLABELPROC glad_glGetObjectPtrLabel = NULL; | ||
516 | PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL; | ||
517 | PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary = NULL; | ||
518 | PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL; | ||
519 | PFNGLGETPROGRAMINTERFACEIVPROC glad_glGetProgramInterfaceiv = NULL; | ||
520 | PFNGLGETPROGRAMPIPELINEINFOLOGPROC glad_glGetProgramPipelineInfoLog = NULL; | ||
521 | PFNGLGETPROGRAMPIPELINEIVPROC glad_glGetProgramPipelineiv = NULL; | ||
522 | PFNGLGETPROGRAMRESOURCEINDEXPROC glad_glGetProgramResourceIndex = NULL; | ||
523 | PFNGLGETPROGRAMRESOURCELOCATIONPROC glad_glGetProgramResourceLocation = NULL; | ||
524 | PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC glad_glGetProgramResourceLocationIndex = NULL; | ||
525 | PFNGLGETPROGRAMRESOURCENAMEPROC glad_glGetProgramResourceName = NULL; | ||
526 | PFNGLGETPROGRAMRESOURCEIVPROC glad_glGetProgramResourceiv = NULL; | ||
527 | PFNGLGETPROGRAMSTAGEIVPROC glad_glGetProgramStageiv = NULL; | ||
528 | PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL; | ||
529 | PFNGLGETQUERYBUFFEROBJECTI64VPROC glad_glGetQueryBufferObjecti64v = NULL; | ||
530 | PFNGLGETQUERYBUFFEROBJECTIVPROC glad_glGetQueryBufferObjectiv = NULL; | ||
531 | PFNGLGETQUERYBUFFEROBJECTUI64VPROC glad_glGetQueryBufferObjectui64v = NULL; | ||
532 | PFNGLGETQUERYBUFFEROBJECTUIVPROC glad_glGetQueryBufferObjectuiv = NULL; | ||
533 | PFNGLGETQUERYINDEXEDIVPROC glad_glGetQueryIndexediv = NULL; | ||
534 | PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL; | ||
535 | PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL; | ||
536 | PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL; | ||
537 | PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL; | ||
538 | PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL; | ||
539 | PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL; | ||
540 | PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL; | ||
541 | PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL; | ||
542 | PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL; | ||
543 | PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL; | ||
544 | PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL; | ||
545 | PFNGLGETSHADERPRECISIONFORMATPROC glad_glGetShaderPrecisionFormat = NULL; | ||
546 | PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL; | ||
547 | PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL; | ||
548 | PFNGLGETSTRINGPROC glad_glGetString = NULL; | ||
549 | PFNGLGETSTRINGIPROC glad_glGetStringi = NULL; | ||
550 | PFNGLGETSUBROUTINEINDEXPROC glad_glGetSubroutineIndex = NULL; | ||
551 | PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC glad_glGetSubroutineUniformLocation = NULL; | ||
552 | PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL; | ||
553 | PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL; | ||
554 | PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL; | ||
555 | PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL; | ||
556 | PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL; | ||
557 | PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL; | ||
558 | PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL; | ||
559 | PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL; | ||
560 | PFNGLGETTEXTUREIMAGEPROC glad_glGetTextureImage = NULL; | ||
561 | PFNGLGETTEXTURELEVELPARAMETERFVPROC glad_glGetTextureLevelParameterfv = NULL; | ||
562 | PFNGLGETTEXTURELEVELPARAMETERIVPROC glad_glGetTextureLevelParameteriv = NULL; | ||
563 | PFNGLGETTEXTUREPARAMETERIIVPROC glad_glGetTextureParameterIiv = NULL; | ||
564 | PFNGLGETTEXTUREPARAMETERIUIVPROC glad_glGetTextureParameterIuiv = NULL; | ||
565 | PFNGLGETTEXTUREPARAMETERFVPROC glad_glGetTextureParameterfv = NULL; | ||
566 | PFNGLGETTEXTUREPARAMETERIVPROC glad_glGetTextureParameteriv = NULL; | ||
567 | PFNGLGETTEXTURESUBIMAGEPROC glad_glGetTextureSubImage = NULL; | ||
568 | PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL; | ||
569 | PFNGLGETTRANSFORMFEEDBACKI64_VPROC glad_glGetTransformFeedbacki64_v = NULL; | ||
570 | PFNGLGETTRANSFORMFEEDBACKI_VPROC glad_glGetTransformFeedbacki_v = NULL; | ||
571 | PFNGLGETTRANSFORMFEEDBACKIVPROC glad_glGetTransformFeedbackiv = NULL; | ||
572 | PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL; | ||
573 | PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL; | ||
574 | PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL; | ||
575 | PFNGLGETUNIFORMSUBROUTINEUIVPROC glad_glGetUniformSubroutineuiv = NULL; | ||
576 | PFNGLGETUNIFORMDVPROC glad_glGetUniformdv = NULL; | ||
577 | PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL; | ||
578 | PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL; | ||
579 | PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL; | ||
580 | PFNGLGETVERTEXARRAYINDEXED64IVPROC glad_glGetVertexArrayIndexed64iv = NULL; | ||
581 | PFNGLGETVERTEXARRAYINDEXEDIVPROC glad_glGetVertexArrayIndexediv = NULL; | ||
582 | PFNGLGETVERTEXARRAYIVPROC glad_glGetVertexArrayiv = NULL; | ||
583 | PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL; | ||
584 | PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL; | ||
585 | PFNGLGETVERTEXATTRIBLDVPROC glad_glGetVertexAttribLdv = NULL; | ||
586 | PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL; | ||
587 | PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL; | ||
588 | PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL; | ||
589 | PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL; | ||
590 | PFNGLGETNCOLORTABLEPROC glad_glGetnColorTable = NULL; | ||
591 | PFNGLGETNCOMPRESSEDTEXIMAGEPROC glad_glGetnCompressedTexImage = NULL; | ||
592 | PFNGLGETNCONVOLUTIONFILTERPROC glad_glGetnConvolutionFilter = NULL; | ||
593 | PFNGLGETNHISTOGRAMPROC glad_glGetnHistogram = NULL; | ||
594 | PFNGLGETNMAPDVPROC glad_glGetnMapdv = NULL; | ||
595 | PFNGLGETNMAPFVPROC glad_glGetnMapfv = NULL; | ||
596 | PFNGLGETNMAPIVPROC glad_glGetnMapiv = NULL; | ||
597 | PFNGLGETNMINMAXPROC glad_glGetnMinmax = NULL; | ||
598 | PFNGLGETNPIXELMAPFVPROC glad_glGetnPixelMapfv = NULL; | ||
599 | PFNGLGETNPIXELMAPUIVPROC glad_glGetnPixelMapuiv = NULL; | ||
600 | PFNGLGETNPIXELMAPUSVPROC glad_glGetnPixelMapusv = NULL; | ||
601 | PFNGLGETNPOLYGONSTIPPLEPROC glad_glGetnPolygonStipple = NULL; | ||
602 | PFNGLGETNSEPARABLEFILTERPROC glad_glGetnSeparableFilter = NULL; | ||
603 | PFNGLGETNTEXIMAGEPROC glad_glGetnTexImage = NULL; | ||
604 | PFNGLGETNUNIFORMDVPROC glad_glGetnUniformdv = NULL; | ||
605 | PFNGLGETNUNIFORMFVPROC glad_glGetnUniformfv = NULL; | ||
606 | PFNGLGETNUNIFORMIVPROC glad_glGetnUniformiv = NULL; | ||
607 | PFNGLGETNUNIFORMUIVPROC glad_glGetnUniformuiv = NULL; | ||
608 | PFNGLHINTPROC glad_glHint = NULL; | ||
609 | PFNGLINVALIDATEBUFFERDATAPROC glad_glInvalidateBufferData = NULL; | ||
610 | PFNGLINVALIDATEBUFFERSUBDATAPROC glad_glInvalidateBufferSubData = NULL; | ||
611 | PFNGLINVALIDATEFRAMEBUFFERPROC glad_glInvalidateFramebuffer = NULL; | ||
612 | PFNGLINVALIDATENAMEDFRAMEBUFFERDATAPROC glad_glInvalidateNamedFramebufferData = NULL; | ||
613 | PFNGLINVALIDATENAMEDFRAMEBUFFERSUBDATAPROC glad_glInvalidateNamedFramebufferSubData = NULL; | ||
614 | PFNGLINVALIDATESUBFRAMEBUFFERPROC glad_glInvalidateSubFramebuffer = NULL; | ||
615 | PFNGLINVALIDATETEXIMAGEPROC glad_glInvalidateTexImage = NULL; | ||
616 | PFNGLINVALIDATETEXSUBIMAGEPROC glad_glInvalidateTexSubImage = NULL; | ||
617 | PFNGLISBUFFERPROC glad_glIsBuffer = NULL; | ||
618 | PFNGLISENABLEDPROC glad_glIsEnabled = NULL; | ||
619 | PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL; | ||
620 | PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL; | ||
621 | PFNGLISPROGRAMPROC glad_glIsProgram = NULL; | ||
622 | PFNGLISPROGRAMPIPELINEPROC glad_glIsProgramPipeline = NULL; | ||
623 | PFNGLISQUERYPROC glad_glIsQuery = NULL; | ||
624 | PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL; | ||
625 | PFNGLISSAMPLERPROC glad_glIsSampler = NULL; | ||
626 | PFNGLISSHADERPROC glad_glIsShader = NULL; | ||
627 | PFNGLISSYNCPROC glad_glIsSync = NULL; | ||
628 | PFNGLISTEXTUREPROC glad_glIsTexture = NULL; | ||
629 | PFNGLISTRANSFORMFEEDBACKPROC glad_glIsTransformFeedback = NULL; | ||
630 | PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL; | ||
631 | PFNGLLINEWIDTHPROC glad_glLineWidth = NULL; | ||
632 | PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL; | ||
633 | PFNGLLOGICOPPROC glad_glLogicOp = NULL; | ||
634 | PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL; | ||
635 | PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL; | ||
636 | PFNGLMAPNAMEDBUFFERPROC glad_glMapNamedBuffer = NULL; | ||
637 | PFNGLMAPNAMEDBUFFERRANGEPROC glad_glMapNamedBufferRange = NULL; | ||
638 | PFNGLMEMORYBARRIERPROC glad_glMemoryBarrier = NULL; | ||
639 | PFNGLMEMORYBARRIERBYREGIONPROC glad_glMemoryBarrierByRegion = NULL; | ||
640 | PFNGLMINSAMPLESHADINGPROC glad_glMinSampleShading = NULL; | ||
641 | PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL; | ||
642 | PFNGLMULTIDRAWARRAYSINDIRECTPROC glad_glMultiDrawArraysIndirect = NULL; | ||
643 | PFNGLMULTIDRAWARRAYSINDIRECTCOUNTPROC glad_glMultiDrawArraysIndirectCount = NULL; | ||
644 | PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL; | ||
645 | PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL; | ||
646 | PFNGLMULTIDRAWELEMENTSINDIRECTPROC glad_glMultiDrawElementsIndirect = NULL; | ||
647 | PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTPROC glad_glMultiDrawElementsIndirectCount = NULL; | ||
648 | PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL; | ||
649 | PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL; | ||
650 | PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL; | ||
651 | PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL; | ||
652 | PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL; | ||
653 | PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL; | ||
654 | PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL; | ||
655 | PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL; | ||
656 | PFNGLNAMEDBUFFERDATAPROC glad_glNamedBufferData = NULL; | ||
657 | PFNGLNAMEDBUFFERSTORAGEPROC glad_glNamedBufferStorage = NULL; | ||
658 | PFNGLNAMEDBUFFERSUBDATAPROC glad_glNamedBufferSubData = NULL; | ||
659 | PFNGLNAMEDFRAMEBUFFERDRAWBUFFERPROC glad_glNamedFramebufferDrawBuffer = NULL; | ||
660 | PFNGLNAMEDFRAMEBUFFERDRAWBUFFERSPROC glad_glNamedFramebufferDrawBuffers = NULL; | ||
661 | PFNGLNAMEDFRAMEBUFFERPARAMETERIPROC glad_glNamedFramebufferParameteri = NULL; | ||
662 | PFNGLNAMEDFRAMEBUFFERREADBUFFERPROC glad_glNamedFramebufferReadBuffer = NULL; | ||
663 | PFNGLNAMEDFRAMEBUFFERRENDERBUFFERPROC glad_glNamedFramebufferRenderbuffer = NULL; | ||
664 | PFNGLNAMEDFRAMEBUFFERTEXTUREPROC glad_glNamedFramebufferTexture = NULL; | ||
665 | PFNGLNAMEDFRAMEBUFFERTEXTURELAYERPROC glad_glNamedFramebufferTextureLayer = NULL; | ||
666 | PFNGLNAMEDRENDERBUFFERSTORAGEPROC glad_glNamedRenderbufferStorage = NULL; | ||
667 | PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glNamedRenderbufferStorageMultisample = NULL; | ||
668 | PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL; | ||
669 | PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL; | ||
670 | PFNGLOBJECTLABELPROC glad_glObjectLabel = NULL; | ||
671 | PFNGLOBJECTPTRLABELPROC glad_glObjectPtrLabel = NULL; | ||
672 | PFNGLPATCHPARAMETERFVPROC glad_glPatchParameterfv = NULL; | ||
673 | PFNGLPATCHPARAMETERIPROC glad_glPatchParameteri = NULL; | ||
674 | PFNGLPAUSETRANSFORMFEEDBACKPROC glad_glPauseTransformFeedback = NULL; | ||
675 | PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL; | ||
676 | PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL; | ||
677 | PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL; | ||
678 | PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL; | ||
679 | PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL; | ||
680 | PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL; | ||
681 | PFNGLPOINTSIZEPROC glad_glPointSize = NULL; | ||
682 | PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL; | ||
683 | PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL; | ||
684 | PFNGLPOLYGONOFFSETCLAMPPROC glad_glPolygonOffsetClamp = NULL; | ||
685 | PFNGLPOPDEBUGGROUPPROC glad_glPopDebugGroup = NULL; | ||
686 | PFNGLPRIMITIVEBOUNDINGBOXPROC glad_glPrimitiveBoundingBox = NULL; | ||
687 | PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL; | ||
688 | PFNGLPROGRAMBINARYPROC glad_glProgramBinary = NULL; | ||
689 | PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri = NULL; | ||
690 | PFNGLPROGRAMUNIFORM1DPROC glad_glProgramUniform1d = NULL; | ||
691 | PFNGLPROGRAMUNIFORM1DVPROC glad_glProgramUniform1dv = NULL; | ||
692 | PFNGLPROGRAMUNIFORM1FPROC glad_glProgramUniform1f = NULL; | ||
693 | PFNGLPROGRAMUNIFORM1FVPROC glad_glProgramUniform1fv = NULL; | ||
694 | PFNGLPROGRAMUNIFORM1IPROC glad_glProgramUniform1i = NULL; | ||
695 | PFNGLPROGRAMUNIFORM1IVPROC glad_glProgramUniform1iv = NULL; | ||
696 | PFNGLPROGRAMUNIFORM1UIPROC glad_glProgramUniform1ui = NULL; | ||
697 | PFNGLPROGRAMUNIFORM1UIVPROC glad_glProgramUniform1uiv = NULL; | ||
698 | PFNGLPROGRAMUNIFORM2DPROC glad_glProgramUniform2d = NULL; | ||
699 | PFNGLPROGRAMUNIFORM2DVPROC glad_glProgramUniform2dv = NULL; | ||
700 | PFNGLPROGRAMUNIFORM2FPROC glad_glProgramUniform2f = NULL; | ||
701 | PFNGLPROGRAMUNIFORM2FVPROC glad_glProgramUniform2fv = NULL; | ||
702 | PFNGLPROGRAMUNIFORM2IPROC glad_glProgramUniform2i = NULL; | ||
703 | PFNGLPROGRAMUNIFORM2IVPROC glad_glProgramUniform2iv = NULL; | ||
704 | PFNGLPROGRAMUNIFORM2UIPROC glad_glProgramUniform2ui = NULL; | ||
705 | PFNGLPROGRAMUNIFORM2UIVPROC glad_glProgramUniform2uiv = NULL; | ||
706 | PFNGLPROGRAMUNIFORM3DPROC glad_glProgramUniform3d = NULL; | ||
707 | PFNGLPROGRAMUNIFORM3DVPROC glad_glProgramUniform3dv = NULL; | ||
708 | PFNGLPROGRAMUNIFORM3FPROC glad_glProgramUniform3f = NULL; | ||
709 | PFNGLPROGRAMUNIFORM3FVPROC glad_glProgramUniform3fv = NULL; | ||
710 | PFNGLPROGRAMUNIFORM3IPROC glad_glProgramUniform3i = NULL; | ||
711 | PFNGLPROGRAMUNIFORM3IVPROC glad_glProgramUniform3iv = NULL; | ||
712 | PFNGLPROGRAMUNIFORM3UIPROC glad_glProgramUniform3ui = NULL; | ||
713 | PFNGLPROGRAMUNIFORM3UIVPROC glad_glProgramUniform3uiv = NULL; | ||
714 | PFNGLPROGRAMUNIFORM4DPROC glad_glProgramUniform4d = NULL; | ||
715 | PFNGLPROGRAMUNIFORM4DVPROC glad_glProgramUniform4dv = NULL; | ||
716 | PFNGLPROGRAMUNIFORM4FPROC glad_glProgramUniform4f = NULL; | ||
717 | PFNGLPROGRAMUNIFORM4FVPROC glad_glProgramUniform4fv = NULL; | ||
718 | PFNGLPROGRAMUNIFORM4IPROC glad_glProgramUniform4i = NULL; | ||
719 | PFNGLPROGRAMUNIFORM4IVPROC glad_glProgramUniform4iv = NULL; | ||
720 | PFNGLPROGRAMUNIFORM4UIPROC glad_glProgramUniform4ui = NULL; | ||
721 | PFNGLPROGRAMUNIFORM4UIVPROC glad_glProgramUniform4uiv = NULL; | ||
722 | PFNGLPROGRAMUNIFORMMATRIX2DVPROC glad_glProgramUniformMatrix2dv = NULL; | ||
723 | PFNGLPROGRAMUNIFORMMATRIX2FVPROC glad_glProgramUniformMatrix2fv = NULL; | ||
724 | PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC glad_glProgramUniformMatrix2x3dv = NULL; | ||
725 | PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC glad_glProgramUniformMatrix2x3fv = NULL; | ||
726 | PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC glad_glProgramUniformMatrix2x4dv = NULL; | ||
727 | PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC glad_glProgramUniformMatrix2x4fv = NULL; | ||
728 | PFNGLPROGRAMUNIFORMMATRIX3DVPROC glad_glProgramUniformMatrix3dv = NULL; | ||
729 | PFNGLPROGRAMUNIFORMMATRIX3FVPROC glad_glProgramUniformMatrix3fv = NULL; | ||
730 | PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC glad_glProgramUniformMatrix3x2dv = NULL; | ||
731 | PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC glad_glProgramUniformMatrix3x2fv = NULL; | ||
732 | PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC glad_glProgramUniformMatrix3x4dv = NULL; | ||
733 | PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC glad_glProgramUniformMatrix3x4fv = NULL; | ||
734 | PFNGLPROGRAMUNIFORMMATRIX4DVPROC glad_glProgramUniformMatrix4dv = NULL; | ||
735 | PFNGLPROGRAMUNIFORMMATRIX4FVPROC glad_glProgramUniformMatrix4fv = NULL; | ||
736 | PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC glad_glProgramUniformMatrix4x2dv = NULL; | ||
737 | PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC glad_glProgramUniformMatrix4x2fv = NULL; | ||
738 | PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC glad_glProgramUniformMatrix4x3dv = NULL; | ||
739 | PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC glad_glProgramUniformMatrix4x3fv = NULL; | ||
740 | PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL; | ||
741 | PFNGLPUSHDEBUGGROUPPROC glad_glPushDebugGroup = NULL; | ||
742 | PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL; | ||
743 | PFNGLREADBUFFERPROC glad_glReadBuffer = NULL; | ||
744 | PFNGLREADPIXELSPROC glad_glReadPixels = NULL; | ||
745 | PFNGLREADNPIXELSPROC glad_glReadnPixels = NULL; | ||
746 | PFNGLRELEASESHADERCOMPILERPROC glad_glReleaseShaderCompiler = NULL; | ||
747 | PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL; | ||
748 | PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL; | ||
749 | PFNGLRESUMETRANSFORMFEEDBACKPROC glad_glResumeTransformFeedback = NULL; | ||
750 | PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL; | ||
751 | PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL; | ||
752 | PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL; | ||
753 | PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL; | ||
754 | PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL; | ||
755 | PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL; | ||
756 | PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL; | ||
757 | PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL; | ||
758 | PFNGLSCISSORPROC glad_glScissor = NULL; | ||
759 | PFNGLSCISSORARRAYVPROC glad_glScissorArrayv = NULL; | ||
760 | PFNGLSCISSORINDEXEDPROC glad_glScissorIndexed = NULL; | ||
761 | PFNGLSCISSORINDEXEDVPROC glad_glScissorIndexedv = NULL; | ||
762 | PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL; | ||
763 | PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL; | ||
764 | PFNGLSHADERBINARYPROC glad_glShaderBinary = NULL; | ||
765 | PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL; | ||
766 | PFNGLSHADERSTORAGEBLOCKBINDINGPROC glad_glShaderStorageBlockBinding = NULL; | ||
767 | PFNGLSPECIALIZESHADERPROC glad_glSpecializeShader = NULL; | ||
768 | PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL; | ||
769 | PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL; | ||
770 | PFNGLSTENCILMASKPROC glad_glStencilMask = NULL; | ||
771 | PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL; | ||
772 | PFNGLSTENCILOPPROC glad_glStencilOp = NULL; | ||
773 | PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL; | ||
774 | PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL; | ||
775 | PFNGLTEXBUFFERRANGEPROC glad_glTexBufferRange = NULL; | ||
776 | PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL; | ||
777 | PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL; | ||
778 | PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL; | ||
779 | PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL; | ||
780 | PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL; | ||
781 | PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL; | ||
782 | PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL; | ||
783 | PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL; | ||
784 | PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL; | ||
785 | PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL; | ||
786 | PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL; | ||
787 | PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL; | ||
788 | PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL; | ||
789 | PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL; | ||
790 | PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL; | ||
791 | PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL; | ||
792 | PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL; | ||
793 | PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL; | ||
794 | PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL; | ||
795 | PFNGLTEXSTORAGE1DPROC glad_glTexStorage1D = NULL; | ||
796 | PFNGLTEXSTORAGE2DPROC glad_glTexStorage2D = NULL; | ||
797 | PFNGLTEXSTORAGE2DMULTISAMPLEPROC glad_glTexStorage2DMultisample = NULL; | ||
798 | PFNGLTEXSTORAGE3DPROC glad_glTexStorage3D = NULL; | ||
799 | PFNGLTEXSTORAGE3DMULTISAMPLEPROC glad_glTexStorage3DMultisample = NULL; | ||
800 | PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL; | ||
801 | PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL; | ||
802 | PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL; | ||
803 | PFNGLTEXTUREBARRIERPROC glad_glTextureBarrier = NULL; | ||
804 | PFNGLTEXTUREBUFFERPROC glad_glTextureBuffer = NULL; | ||
805 | PFNGLTEXTUREBUFFERRANGEPROC glad_glTextureBufferRange = NULL; | ||
806 | PFNGLTEXTUREPARAMETERIIVPROC glad_glTextureParameterIiv = NULL; | ||
807 | PFNGLTEXTUREPARAMETERIUIVPROC glad_glTextureParameterIuiv = NULL; | ||
808 | PFNGLTEXTUREPARAMETERFPROC glad_glTextureParameterf = NULL; | ||
809 | PFNGLTEXTUREPARAMETERFVPROC glad_glTextureParameterfv = NULL; | ||
810 | PFNGLTEXTUREPARAMETERIPROC glad_glTextureParameteri = NULL; | ||
811 | PFNGLTEXTUREPARAMETERIVPROC glad_glTextureParameteriv = NULL; | ||
812 | PFNGLTEXTURESTORAGE1DPROC glad_glTextureStorage1D = NULL; | ||
813 | PFNGLTEXTURESTORAGE2DPROC glad_glTextureStorage2D = NULL; | ||
814 | PFNGLTEXTURESTORAGE2DMULTISAMPLEPROC glad_glTextureStorage2DMultisample = NULL; | ||
815 | PFNGLTEXTURESTORAGE3DPROC glad_glTextureStorage3D = NULL; | ||
816 | PFNGLTEXTURESTORAGE3DMULTISAMPLEPROC glad_glTextureStorage3DMultisample = NULL; | ||
817 | PFNGLTEXTURESUBIMAGE1DPROC glad_glTextureSubImage1D = NULL; | ||
818 | PFNGLTEXTURESUBIMAGE2DPROC glad_glTextureSubImage2D = NULL; | ||
819 | PFNGLTEXTURESUBIMAGE3DPROC glad_glTextureSubImage3D = NULL; | ||
820 | PFNGLTEXTUREVIEWPROC glad_glTextureView = NULL; | ||
821 | PFNGLTRANSFORMFEEDBACKBUFFERBASEPROC glad_glTransformFeedbackBufferBase = NULL; | ||
822 | PFNGLTRANSFORMFEEDBACKBUFFERRANGEPROC glad_glTransformFeedbackBufferRange = NULL; | ||
823 | PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL; | ||
824 | PFNGLUNIFORM1DPROC glad_glUniform1d = NULL; | ||
825 | PFNGLUNIFORM1DVPROC glad_glUniform1dv = NULL; | ||
826 | PFNGLUNIFORM1FPROC glad_glUniform1f = NULL; | ||
827 | PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL; | ||
828 | PFNGLUNIFORM1IPROC glad_glUniform1i = NULL; | ||
829 | PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL; | ||
830 | PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL; | ||
831 | PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL; | ||
832 | PFNGLUNIFORM2DPROC glad_glUniform2d = NULL; | ||
833 | PFNGLUNIFORM2DVPROC glad_glUniform2dv = NULL; | ||
834 | PFNGLUNIFORM2FPROC glad_glUniform2f = NULL; | ||
835 | PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL; | ||
836 | PFNGLUNIFORM2IPROC glad_glUniform2i = NULL; | ||
837 | PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL; | ||
838 | PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL; | ||
839 | PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL; | ||
840 | PFNGLUNIFORM3DPROC glad_glUniform3d = NULL; | ||
841 | PFNGLUNIFORM3DVPROC glad_glUniform3dv = NULL; | ||
842 | PFNGLUNIFORM3FPROC glad_glUniform3f = NULL; | ||
843 | PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL; | ||
844 | PFNGLUNIFORM3IPROC glad_glUniform3i = NULL; | ||
845 | PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL; | ||
846 | PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL; | ||
847 | PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL; | ||
848 | PFNGLUNIFORM4DPROC glad_glUniform4d = NULL; | ||
849 | PFNGLUNIFORM4DVPROC glad_glUniform4dv = NULL; | ||
850 | PFNGLUNIFORM4FPROC glad_glUniform4f = NULL; | ||
851 | PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL; | ||
852 | PFNGLUNIFORM4IPROC glad_glUniform4i = NULL; | ||
853 | PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL; | ||
854 | PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL; | ||
855 | PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL; | ||
856 | PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL; | ||
857 | PFNGLUNIFORMMATRIX2DVPROC glad_glUniformMatrix2dv = NULL; | ||
858 | PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL; | ||
859 | PFNGLUNIFORMMATRIX2X3DVPROC glad_glUniformMatrix2x3dv = NULL; | ||
860 | PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL; | ||
861 | PFNGLUNIFORMMATRIX2X4DVPROC glad_glUniformMatrix2x4dv = NULL; | ||
862 | PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL; | ||
863 | PFNGLUNIFORMMATRIX3DVPROC glad_glUniformMatrix3dv = NULL; | ||
864 | PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL; | ||
865 | PFNGLUNIFORMMATRIX3X2DVPROC glad_glUniformMatrix3x2dv = NULL; | ||
866 | PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL; | ||
867 | PFNGLUNIFORMMATRIX3X4DVPROC glad_glUniformMatrix3x4dv = NULL; | ||
868 | PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL; | ||
869 | PFNGLUNIFORMMATRIX4DVPROC glad_glUniformMatrix4dv = NULL; | ||
870 | PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL; | ||
871 | PFNGLUNIFORMMATRIX4X2DVPROC glad_glUniformMatrix4x2dv = NULL; | ||
872 | PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL; | ||
873 | PFNGLUNIFORMMATRIX4X3DVPROC glad_glUniformMatrix4x3dv = NULL; | ||
874 | PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL; | ||
875 | PFNGLUNIFORMSUBROUTINESUIVPROC glad_glUniformSubroutinesuiv = NULL; | ||
876 | PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL; | ||
877 | PFNGLUNMAPNAMEDBUFFERPROC glad_glUnmapNamedBuffer = NULL; | ||
878 | PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL; | ||
879 | PFNGLUSEPROGRAMSTAGESPROC glad_glUseProgramStages = NULL; | ||
880 | PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL; | ||
881 | PFNGLVALIDATEPROGRAMPIPELINEPROC glad_glValidateProgramPipeline = NULL; | ||
882 | PFNGLVERTEXARRAYATTRIBBINDINGPROC glad_glVertexArrayAttribBinding = NULL; | ||
883 | PFNGLVERTEXARRAYATTRIBFORMATPROC glad_glVertexArrayAttribFormat = NULL; | ||
884 | PFNGLVERTEXARRAYATTRIBIFORMATPROC glad_glVertexArrayAttribIFormat = NULL; | ||
885 | PFNGLVERTEXARRAYATTRIBLFORMATPROC glad_glVertexArrayAttribLFormat = NULL; | ||
886 | PFNGLVERTEXARRAYBINDINGDIVISORPROC glad_glVertexArrayBindingDivisor = NULL; | ||
887 | PFNGLVERTEXARRAYELEMENTBUFFERPROC glad_glVertexArrayElementBuffer = NULL; | ||
888 | PFNGLVERTEXARRAYVERTEXBUFFERPROC glad_glVertexArrayVertexBuffer = NULL; | ||
889 | PFNGLVERTEXARRAYVERTEXBUFFERSPROC glad_glVertexArrayVertexBuffers = NULL; | ||
890 | PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL; | ||
891 | PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL; | ||
892 | PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL; | ||
893 | PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL; | ||
894 | PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL; | ||
895 | PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL; | ||
896 | PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL; | ||
897 | PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL; | ||
898 | PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL; | ||
899 | PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL; | ||
900 | PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL; | ||
901 | PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL; | ||
902 | PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL; | ||
903 | PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL; | ||
904 | PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL; | ||
905 | PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL; | ||
906 | PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL; | ||
907 | PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL; | ||
908 | PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL; | ||
909 | PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL; | ||
910 | PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL; | ||
911 | PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL; | ||
912 | PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL; | ||
913 | PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL; | ||
914 | PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL; | ||
915 | PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL; | ||
916 | PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL; | ||
917 | PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL; | ||
918 | PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL; | ||
919 | PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL; | ||
920 | PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL; | ||
921 | PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL; | ||
922 | PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL; | ||
923 | PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL; | ||
924 | PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL; | ||
925 | PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL; | ||
926 | PFNGLVERTEXATTRIBBINDINGPROC glad_glVertexAttribBinding = NULL; | ||
927 | PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL; | ||
928 | PFNGLVERTEXATTRIBFORMATPROC glad_glVertexAttribFormat = NULL; | ||
929 | PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL; | ||
930 | PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL; | ||
931 | PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL; | ||
932 | PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL; | ||
933 | PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL; | ||
934 | PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL; | ||
935 | PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL; | ||
936 | PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL; | ||
937 | PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL; | ||
938 | PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL; | ||
939 | PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL; | ||
940 | PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL; | ||
941 | PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL; | ||
942 | PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL; | ||
943 | PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL; | ||
944 | PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL; | ||
945 | PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL; | ||
946 | PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL; | ||
947 | PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL; | ||
948 | PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL; | ||
949 | PFNGLVERTEXATTRIBIFORMATPROC glad_glVertexAttribIFormat = NULL; | ||
950 | PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL; | ||
951 | PFNGLVERTEXATTRIBL1DPROC glad_glVertexAttribL1d = NULL; | ||
952 | PFNGLVERTEXATTRIBL1DVPROC glad_glVertexAttribL1dv = NULL; | ||
953 | PFNGLVERTEXATTRIBL2DPROC glad_glVertexAttribL2d = NULL; | ||
954 | PFNGLVERTEXATTRIBL2DVPROC glad_glVertexAttribL2dv = NULL; | ||
955 | PFNGLVERTEXATTRIBL3DPROC glad_glVertexAttribL3d = NULL; | ||
956 | PFNGLVERTEXATTRIBL3DVPROC glad_glVertexAttribL3dv = NULL; | ||
957 | PFNGLVERTEXATTRIBL4DPROC glad_glVertexAttribL4d = NULL; | ||
958 | PFNGLVERTEXATTRIBL4DVPROC glad_glVertexAttribL4dv = NULL; | ||
959 | PFNGLVERTEXATTRIBLFORMATPROC glad_glVertexAttribLFormat = NULL; | ||
960 | PFNGLVERTEXATTRIBLPOINTERPROC glad_glVertexAttribLPointer = NULL; | ||
961 | PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL; | ||
962 | PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL; | ||
963 | PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL; | ||
964 | PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL; | ||
965 | PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL; | ||
966 | PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL; | ||
967 | PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL; | ||
968 | PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL; | ||
969 | PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL; | ||
970 | PFNGLVERTEXBINDINGDIVISORPROC glad_glVertexBindingDivisor = NULL; | ||
971 | PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL; | ||
972 | PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL; | ||
973 | PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL; | ||
974 | PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL; | ||
975 | PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL; | ||
976 | PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL; | ||
977 | PFNGLVIEWPORTPROC glad_glViewport = NULL; | ||
978 | PFNGLVIEWPORTARRAYVPROC glad_glViewportArrayv = NULL; | ||
979 | PFNGLVIEWPORTINDEXEDFPROC glad_glViewportIndexedf = NULL; | ||
980 | PFNGLVIEWPORTINDEXEDFVPROC glad_glViewportIndexedfv = NULL; | ||
981 | PFNGLWAITSYNCPROC glad_glWaitSync = NULL; | ||
982 | static 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 | } | ||
1033 | static 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 | } | ||
1049 | static 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 | } | ||
1056 | static 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 | } | ||
1068 | static 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 | } | ||
1080 | static 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 | } | ||
1102 | static 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 | } | ||
1198 | static 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 | } | ||
1207 | static 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 | } | ||
1294 | static 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 | } | ||
1312 | static 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 | } | ||
1334 | static 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 | } | ||
1395 | static 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 | } | ||
1444 | static 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 | } | ||
1536 | static 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 | } | ||
1551 | static 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 | } | ||
1598 | static 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 | } | ||
1610 | static 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 | } | ||
1735 | static 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 | } | ||
1742 | static int find_extensionsGL(void) { | ||
1743 | if (!get_exts()) return 0; | ||
1744 | (void)&has_ext; | ||
1745 | free_exts(); | ||
1746 | return 1; | ||
1747 | } | ||
1748 | |||
1749 | static 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 | |||
1810 | int 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 | |||
1840 | static 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 | } | ||
1985 | static 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 | } | ||
2092 | static 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 | } | ||
2163 | static 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 | } | ||
2210 | static int find_extensionsGLES2(void) { | ||
2211 | if (!get_exts()) return 0; | ||
2212 | (void)&has_ext; | ||
2213 | free_exts(); | ||
2214 | return 1; | ||
2215 | } | ||
2216 | |||
2217 | static 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 | |||
2263 | int 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 | |||