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