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 |
21 | extern "C" { |
22 | #endif |
23 | |
24 | |
25 | |
26 | int GLAD_GL_VERSION_1_0 = 0; |
27 | int GLAD_GL_VERSION_1_1 = 0; |
28 | int GLAD_GL_VERSION_1_2 = 0; |
29 | int GLAD_GL_VERSION_1_3 = 0; |
30 | int GLAD_GL_VERSION_1_4 = 0; |
31 | int GLAD_GL_VERSION_1_5 = 0; |
32 | int GLAD_GL_VERSION_2_0 = 0; |
33 | int GLAD_GL_VERSION_2_1 = 0; |
34 | int GLAD_GL_VERSION_3_0 = 0; |
35 | int GLAD_GL_VERSION_3_1 = 0; |
36 | int GLAD_GL_VERSION_3_2 = 0; |
37 | int GLAD_GL_VERSION_3_3 = 0; |
38 | int GLAD_GL_ARB_debug_output = 0; |
39 | int GLAD_GL_ARB_framebuffer_object = 0; |
40 | int GLAD_GL_ARB_get_program_binary = 0; |
41 | int GLAD_GL_EXT_framebuffer_blit = 0; |
42 | int GLAD_GL_EXT_framebuffer_multisample = 0; |
43 | int GLAD_GL_EXT_framebuffer_object = 0; |
44 | int GLAD_GL_OVR_multiview = 0; |
45 | int GLAD_GL_OVR_multiview2 = 0; |
46 | |
47 | |
48 | |
49 | PFNGLACCUMPROC glad_glAccum = NULL; |
50 | PFNGLACTIVETEXTUREPROC glad_glActiveTexture = NULL; |
51 | PFNGLALPHAFUNCPROC glad_glAlphaFunc = NULL; |
52 | PFNGLARETEXTURESRESIDENTPROC glad_glAreTexturesResident = NULL; |
53 | PFNGLARRAYELEMENTPROC glad_glArrayElement = NULL; |
54 | PFNGLATTACHSHADERPROC glad_glAttachShader = NULL; |
55 | PFNGLBEGINPROC glad_glBegin = NULL; |
56 | PFNGLBEGINCONDITIONALRENDERPROC glad_glBeginConditionalRender = NULL; |
57 | PFNGLBEGINQUERYPROC glad_glBeginQuery = NULL; |
58 | PFNGLBEGINTRANSFORMFEEDBACKPROC glad_glBeginTransformFeedback = NULL; |
59 | PFNGLBINDATTRIBLOCATIONPROC glad_glBindAttribLocation = NULL; |
60 | PFNGLBINDBUFFERPROC glad_glBindBuffer = NULL; |
61 | PFNGLBINDBUFFERBASEPROC glad_glBindBufferBase = NULL; |
62 | PFNGLBINDBUFFERRANGEPROC glad_glBindBufferRange = NULL; |
63 | PFNGLBINDFRAGDATALOCATIONPROC glad_glBindFragDataLocation = NULL; |
64 | PFNGLBINDFRAGDATALOCATIONINDEXEDPROC glad_glBindFragDataLocationIndexed = NULL; |
65 | PFNGLBINDFRAMEBUFFERPROC glad_glBindFramebuffer = NULL; |
66 | PFNGLBINDFRAMEBUFFEREXTPROC glad_glBindFramebufferEXT = NULL; |
67 | PFNGLBINDRENDERBUFFERPROC glad_glBindRenderbuffer = NULL; |
68 | PFNGLBINDRENDERBUFFEREXTPROC glad_glBindRenderbufferEXT = NULL; |
69 | PFNGLBINDSAMPLERPROC glad_glBindSampler = NULL; |
70 | PFNGLBINDTEXTUREPROC glad_glBindTexture = NULL; |
71 | PFNGLBINDVERTEXARRAYPROC glad_glBindVertexArray = NULL; |
72 | PFNGLBITMAPPROC glad_glBitmap = NULL; |
73 | PFNGLBLENDCOLORPROC glad_glBlendColor = NULL; |
74 | PFNGLBLENDEQUATIONPROC glad_glBlendEquation = NULL; |
75 | PFNGLBLENDEQUATIONSEPARATEPROC glad_glBlendEquationSeparate = NULL; |
76 | PFNGLBLENDFUNCPROC glad_glBlendFunc = NULL; |
77 | PFNGLBLENDFUNCSEPARATEPROC glad_glBlendFuncSeparate = NULL; |
78 | PFNGLBLITFRAMEBUFFERPROC glad_glBlitFramebuffer = NULL; |
79 | PFNGLBLITFRAMEBUFFEREXTPROC glad_glBlitFramebufferEXT = NULL; |
80 | PFNGLBUFFERDATAPROC glad_glBufferData = NULL; |
81 | PFNGLBUFFERSUBDATAPROC glad_glBufferSubData = NULL; |
82 | PFNGLCALLLISTPROC glad_glCallList = NULL; |
83 | PFNGLCALLLISTSPROC glad_glCallLists = NULL; |
84 | PFNGLCHECKFRAMEBUFFERSTATUSPROC glad_glCheckFramebufferStatus = NULL; |
85 | PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC glad_glCheckFramebufferStatusEXT = NULL; |
86 | PFNGLCLAMPCOLORPROC glad_glClampColor = NULL; |
87 | PFNGLCLEARPROC glad_glClear = NULL; |
88 | PFNGLCLEARACCUMPROC glad_glClearAccum = NULL; |
89 | PFNGLCLEARBUFFERFIPROC glad_glClearBufferfi = NULL; |
90 | PFNGLCLEARBUFFERFVPROC glad_glClearBufferfv = NULL; |
91 | PFNGLCLEARBUFFERIVPROC glad_glClearBufferiv = NULL; |
92 | PFNGLCLEARBUFFERUIVPROC glad_glClearBufferuiv = NULL; |
93 | PFNGLCLEARCOLORPROC glad_glClearColor = NULL; |
94 | PFNGLCLEARDEPTHPROC glad_glClearDepth = NULL; |
95 | PFNGLCLEARINDEXPROC glad_glClearIndex = NULL; |
96 | PFNGLCLEARSTENCILPROC glad_glClearStencil = NULL; |
97 | PFNGLCLIENTACTIVETEXTUREPROC glad_glClientActiveTexture = NULL; |
98 | PFNGLCLIENTWAITSYNCPROC glad_glClientWaitSync = NULL; |
99 | PFNGLCLIPPLANEPROC glad_glClipPlane = NULL; |
100 | PFNGLCOLOR3BPROC glad_glColor3b = NULL; |
101 | PFNGLCOLOR3BVPROC glad_glColor3bv = NULL; |
102 | PFNGLCOLOR3DPROC glad_glColor3d = NULL; |
103 | PFNGLCOLOR3DVPROC glad_glColor3dv = NULL; |
104 | PFNGLCOLOR3FPROC glad_glColor3f = NULL; |
105 | PFNGLCOLOR3FVPROC glad_glColor3fv = NULL; |
106 | PFNGLCOLOR3IPROC glad_glColor3i = NULL; |
107 | PFNGLCOLOR3IVPROC glad_glColor3iv = NULL; |
108 | PFNGLCOLOR3SPROC glad_glColor3s = NULL; |
109 | PFNGLCOLOR3SVPROC glad_glColor3sv = NULL; |
110 | PFNGLCOLOR3UBPROC glad_glColor3ub = NULL; |
111 | PFNGLCOLOR3UBVPROC glad_glColor3ubv = NULL; |
112 | PFNGLCOLOR3UIPROC glad_glColor3ui = NULL; |
113 | PFNGLCOLOR3UIVPROC glad_glColor3uiv = NULL; |
114 | PFNGLCOLOR3USPROC glad_glColor3us = NULL; |
115 | PFNGLCOLOR3USVPROC glad_glColor3usv = NULL; |
116 | PFNGLCOLOR4BPROC glad_glColor4b = NULL; |
117 | PFNGLCOLOR4BVPROC glad_glColor4bv = NULL; |
118 | PFNGLCOLOR4DPROC glad_glColor4d = NULL; |
119 | PFNGLCOLOR4DVPROC glad_glColor4dv = NULL; |
120 | PFNGLCOLOR4FPROC glad_glColor4f = NULL; |
121 | PFNGLCOLOR4FVPROC glad_glColor4fv = NULL; |
122 | PFNGLCOLOR4IPROC glad_glColor4i = NULL; |
123 | PFNGLCOLOR4IVPROC glad_glColor4iv = NULL; |
124 | PFNGLCOLOR4SPROC glad_glColor4s = NULL; |
125 | PFNGLCOLOR4SVPROC glad_glColor4sv = NULL; |
126 | PFNGLCOLOR4UBPROC glad_glColor4ub = NULL; |
127 | PFNGLCOLOR4UBVPROC glad_glColor4ubv = NULL; |
128 | PFNGLCOLOR4UIPROC glad_glColor4ui = NULL; |
129 | PFNGLCOLOR4UIVPROC glad_glColor4uiv = NULL; |
130 | PFNGLCOLOR4USPROC glad_glColor4us = NULL; |
131 | PFNGLCOLOR4USVPROC glad_glColor4usv = NULL; |
132 | PFNGLCOLORMASKPROC glad_glColorMask = NULL; |
133 | PFNGLCOLORMASKIPROC glad_glColorMaski = NULL; |
134 | PFNGLCOLORMATERIALPROC glad_glColorMaterial = NULL; |
135 | PFNGLCOLORP3UIPROC glad_glColorP3ui = NULL; |
136 | PFNGLCOLORP3UIVPROC glad_glColorP3uiv = NULL; |
137 | PFNGLCOLORP4UIPROC glad_glColorP4ui = NULL; |
138 | PFNGLCOLORP4UIVPROC glad_glColorP4uiv = NULL; |
139 | PFNGLCOLORPOINTERPROC glad_glColorPointer = NULL; |
140 | PFNGLCOMPILESHADERPROC glad_glCompileShader = NULL; |
141 | PFNGLCOMPRESSEDTEXIMAGE1DPROC glad_glCompressedTexImage1D = NULL; |
142 | PFNGLCOMPRESSEDTEXIMAGE2DPROC glad_glCompressedTexImage2D = NULL; |
143 | PFNGLCOMPRESSEDTEXIMAGE3DPROC glad_glCompressedTexImage3D = NULL; |
144 | PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC glad_glCompressedTexSubImage1D = NULL; |
145 | PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC glad_glCompressedTexSubImage2D = NULL; |
146 | PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC glad_glCompressedTexSubImage3D = NULL; |
147 | PFNGLCOPYBUFFERSUBDATAPROC glad_glCopyBufferSubData = NULL; |
148 | PFNGLCOPYPIXELSPROC glad_glCopyPixels = NULL; |
149 | PFNGLCOPYTEXIMAGE1DPROC glad_glCopyTexImage1D = NULL; |
150 | PFNGLCOPYTEXIMAGE2DPROC glad_glCopyTexImage2D = NULL; |
151 | PFNGLCOPYTEXSUBIMAGE1DPROC glad_glCopyTexSubImage1D = NULL; |
152 | PFNGLCOPYTEXSUBIMAGE2DPROC glad_glCopyTexSubImage2D = NULL; |
153 | PFNGLCOPYTEXSUBIMAGE3DPROC glad_glCopyTexSubImage3D = NULL; |
154 | PFNGLCREATEPROGRAMPROC glad_glCreateProgram = NULL; |
155 | PFNGLCREATESHADERPROC glad_glCreateShader = NULL; |
156 | PFNGLCULLFACEPROC glad_glCullFace = NULL; |
157 | PFNGLDEBUGMESSAGECALLBACKARBPROC glad_glDebugMessageCallbackARB = NULL; |
158 | PFNGLDEBUGMESSAGECONTROLARBPROC glad_glDebugMessageControlARB = NULL; |
159 | PFNGLDEBUGMESSAGEINSERTARBPROC glad_glDebugMessageInsertARB = NULL; |
160 | PFNGLDELETEBUFFERSPROC glad_glDeleteBuffers = NULL; |
161 | PFNGLDELETEFRAMEBUFFERSPROC glad_glDeleteFramebuffers = NULL; |
162 | PFNGLDELETEFRAMEBUFFERSEXTPROC glad_glDeleteFramebuffersEXT = NULL; |
163 | PFNGLDELETELISTSPROC glad_glDeleteLists = NULL; |
164 | PFNGLDELETEPROGRAMPROC glad_glDeleteProgram = NULL; |
165 | PFNGLDELETEQUERIESPROC glad_glDeleteQueries = NULL; |
166 | PFNGLDELETERENDERBUFFERSPROC glad_glDeleteRenderbuffers = NULL; |
167 | PFNGLDELETERENDERBUFFERSEXTPROC glad_glDeleteRenderbuffersEXT = NULL; |
168 | PFNGLDELETESAMPLERSPROC glad_glDeleteSamplers = NULL; |
169 | PFNGLDELETESHADERPROC glad_glDeleteShader = NULL; |
170 | PFNGLDELETESYNCPROC glad_glDeleteSync = NULL; |
171 | PFNGLDELETETEXTURESPROC glad_glDeleteTextures = NULL; |
172 | PFNGLDELETEVERTEXARRAYSPROC glad_glDeleteVertexArrays = NULL; |
173 | PFNGLDEPTHFUNCPROC glad_glDepthFunc = NULL; |
174 | PFNGLDEPTHMASKPROC glad_glDepthMask = NULL; |
175 | PFNGLDEPTHRANGEPROC glad_glDepthRange = NULL; |
176 | PFNGLDETACHSHADERPROC glad_glDetachShader = NULL; |
177 | PFNGLDISABLEPROC glad_glDisable = NULL; |
178 | PFNGLDISABLECLIENTSTATEPROC glad_glDisableClientState = NULL; |
179 | PFNGLDISABLEVERTEXATTRIBARRAYPROC glad_glDisableVertexAttribArray = NULL; |
180 | PFNGLDISABLEIPROC glad_glDisablei = NULL; |
181 | PFNGLDRAWARRAYSPROC glad_glDrawArrays = NULL; |
182 | PFNGLDRAWARRAYSINSTANCEDPROC glad_glDrawArraysInstanced = NULL; |
183 | PFNGLDRAWBUFFERPROC glad_glDrawBuffer = NULL; |
184 | PFNGLDRAWBUFFERSPROC glad_glDrawBuffers = NULL; |
185 | PFNGLDRAWELEMENTSPROC glad_glDrawElements = NULL; |
186 | PFNGLDRAWELEMENTSBASEVERTEXPROC glad_glDrawElementsBaseVertex = NULL; |
187 | PFNGLDRAWELEMENTSINSTANCEDPROC glad_glDrawElementsInstanced = NULL; |
188 | PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC glad_glDrawElementsInstancedBaseVertex = NULL; |
189 | PFNGLDRAWPIXELSPROC glad_glDrawPixels = NULL; |
190 | PFNGLDRAWRANGEELEMENTSPROC glad_glDrawRangeElements = NULL; |
191 | PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC glad_glDrawRangeElementsBaseVertex = NULL; |
192 | PFNGLEDGEFLAGPROC glad_glEdgeFlag = NULL; |
193 | PFNGLEDGEFLAGPOINTERPROC glad_glEdgeFlagPointer = NULL; |
194 | PFNGLEDGEFLAGVPROC glad_glEdgeFlagv = NULL; |
195 | PFNGLENABLEPROC glad_glEnable = NULL; |
196 | PFNGLENABLECLIENTSTATEPROC glad_glEnableClientState = NULL; |
197 | PFNGLENABLEVERTEXATTRIBARRAYPROC glad_glEnableVertexAttribArray = NULL; |
198 | PFNGLENABLEIPROC glad_glEnablei = NULL; |
199 | PFNGLENDPROC glad_glEnd = NULL; |
200 | PFNGLENDCONDITIONALRENDERPROC glad_glEndConditionalRender = NULL; |
201 | PFNGLENDLISTPROC glad_glEndList = NULL; |
202 | PFNGLENDQUERYPROC glad_glEndQuery = NULL; |
203 | PFNGLENDTRANSFORMFEEDBACKPROC glad_glEndTransformFeedback = NULL; |
204 | PFNGLEVALCOORD1DPROC glad_glEvalCoord1d = NULL; |
205 | PFNGLEVALCOORD1DVPROC glad_glEvalCoord1dv = NULL; |
206 | PFNGLEVALCOORD1FPROC glad_glEvalCoord1f = NULL; |
207 | PFNGLEVALCOORD1FVPROC glad_glEvalCoord1fv = NULL; |
208 | PFNGLEVALCOORD2DPROC glad_glEvalCoord2d = NULL; |
209 | PFNGLEVALCOORD2DVPROC glad_glEvalCoord2dv = NULL; |
210 | PFNGLEVALCOORD2FPROC glad_glEvalCoord2f = NULL; |
211 | PFNGLEVALCOORD2FVPROC glad_glEvalCoord2fv = NULL; |
212 | PFNGLEVALMESH1PROC glad_glEvalMesh1 = NULL; |
213 | PFNGLEVALMESH2PROC glad_glEvalMesh2 = NULL; |
214 | PFNGLEVALPOINT1PROC glad_glEvalPoint1 = NULL; |
215 | PFNGLEVALPOINT2PROC glad_glEvalPoint2 = NULL; |
216 | PFNGLFEEDBACKBUFFERPROC glad_glFeedbackBuffer = NULL; |
217 | PFNGLFENCESYNCPROC glad_glFenceSync = NULL; |
218 | PFNGLFINISHPROC glad_glFinish = NULL; |
219 | PFNGLFLUSHPROC glad_glFlush = NULL; |
220 | PFNGLFLUSHMAPPEDBUFFERRANGEPROC glad_glFlushMappedBufferRange = NULL; |
221 | PFNGLFOGCOORDPOINTERPROC glad_glFogCoordPointer = NULL; |
222 | PFNGLFOGCOORDDPROC glad_glFogCoordd = NULL; |
223 | PFNGLFOGCOORDDVPROC glad_glFogCoorddv = NULL; |
224 | PFNGLFOGCOORDFPROC glad_glFogCoordf = NULL; |
225 | PFNGLFOGCOORDFVPROC glad_glFogCoordfv = NULL; |
226 | PFNGLFOGFPROC glad_glFogf = NULL; |
227 | PFNGLFOGFVPROC glad_glFogfv = NULL; |
228 | PFNGLFOGIPROC glad_glFogi = NULL; |
229 | PFNGLFOGIVPROC glad_glFogiv = NULL; |
230 | PFNGLFRAMEBUFFERRENDERBUFFERPROC glad_glFramebufferRenderbuffer = NULL; |
231 | PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC glad_glFramebufferRenderbufferEXT = NULL; |
232 | PFNGLFRAMEBUFFERTEXTUREPROC glad_glFramebufferTexture = NULL; |
233 | PFNGLFRAMEBUFFERTEXTURE1DPROC glad_glFramebufferTexture1D = NULL; |
234 | PFNGLFRAMEBUFFERTEXTURE1DEXTPROC glad_glFramebufferTexture1DEXT = NULL; |
235 | PFNGLFRAMEBUFFERTEXTURE2DPROC glad_glFramebufferTexture2D = NULL; |
236 | PFNGLFRAMEBUFFERTEXTURE2DEXTPROC glad_glFramebufferTexture2DEXT = NULL; |
237 | PFNGLFRAMEBUFFERTEXTURE3DPROC glad_glFramebufferTexture3D = NULL; |
238 | PFNGLFRAMEBUFFERTEXTURE3DEXTPROC glad_glFramebufferTexture3DEXT = NULL; |
239 | PFNGLFRAMEBUFFERTEXTURELAYERPROC glad_glFramebufferTextureLayer = NULL; |
240 | PFNGLFRAMEBUFFERTEXTUREMULTIVIEWOVRPROC glad_glFramebufferTextureMultiviewOVR = NULL; |
241 | PFNGLFRONTFACEPROC glad_glFrontFace = NULL; |
242 | PFNGLFRUSTUMPROC glad_glFrustum = NULL; |
243 | PFNGLGENBUFFERSPROC glad_glGenBuffers = NULL; |
244 | PFNGLGENFRAMEBUFFERSPROC glad_glGenFramebuffers = NULL; |
245 | PFNGLGENFRAMEBUFFERSEXTPROC glad_glGenFramebuffersEXT = NULL; |
246 | PFNGLGENLISTSPROC glad_glGenLists = NULL; |
247 | PFNGLGENQUERIESPROC glad_glGenQueries = NULL; |
248 | PFNGLGENRENDERBUFFERSPROC glad_glGenRenderbuffers = NULL; |
249 | PFNGLGENRENDERBUFFERSEXTPROC glad_glGenRenderbuffersEXT = NULL; |
250 | PFNGLGENSAMPLERSPROC glad_glGenSamplers = NULL; |
251 | PFNGLGENTEXTURESPROC glad_glGenTextures = NULL; |
252 | PFNGLGENVERTEXARRAYSPROC glad_glGenVertexArrays = NULL; |
253 | PFNGLGENERATEMIPMAPPROC glad_glGenerateMipmap = NULL; |
254 | PFNGLGENERATEMIPMAPEXTPROC glad_glGenerateMipmapEXT = NULL; |
255 | PFNGLGETACTIVEATTRIBPROC glad_glGetActiveAttrib = NULL; |
256 | PFNGLGETACTIVEUNIFORMPROC glad_glGetActiveUniform = NULL; |
257 | PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC glad_glGetActiveUniformBlockName = NULL; |
258 | PFNGLGETACTIVEUNIFORMBLOCKIVPROC glad_glGetActiveUniformBlockiv = NULL; |
259 | PFNGLGETACTIVEUNIFORMNAMEPROC glad_glGetActiveUniformName = NULL; |
260 | PFNGLGETACTIVEUNIFORMSIVPROC glad_glGetActiveUniformsiv = NULL; |
261 | PFNGLGETATTACHEDSHADERSPROC glad_glGetAttachedShaders = NULL; |
262 | PFNGLGETATTRIBLOCATIONPROC glad_glGetAttribLocation = NULL; |
263 | PFNGLGETBOOLEANI_VPROC glad_glGetBooleani_v = NULL; |
264 | PFNGLGETBOOLEANVPROC glad_glGetBooleanv = NULL; |
265 | PFNGLGETBUFFERPARAMETERI64VPROC glad_glGetBufferParameteri64v = NULL; |
266 | PFNGLGETBUFFERPARAMETERIVPROC glad_glGetBufferParameteriv = NULL; |
267 | PFNGLGETBUFFERPOINTERVPROC glad_glGetBufferPointerv = NULL; |
268 | PFNGLGETBUFFERSUBDATAPROC glad_glGetBufferSubData = NULL; |
269 | PFNGLGETCLIPPLANEPROC glad_glGetClipPlane = NULL; |
270 | PFNGLGETCOMPRESSEDTEXIMAGEPROC glad_glGetCompressedTexImage = NULL; |
271 | PFNGLGETDEBUGMESSAGELOGARBPROC glad_glGetDebugMessageLogARB = NULL; |
272 | PFNGLGETDOUBLEVPROC glad_glGetDoublev = NULL; |
273 | PFNGLGETERRORPROC glad_glGetError = NULL; |
274 | PFNGLGETFLOATVPROC glad_glGetFloatv = NULL; |
275 | PFNGLGETFRAGDATAINDEXPROC glad_glGetFragDataIndex = NULL; |
276 | PFNGLGETFRAGDATALOCATIONPROC glad_glGetFragDataLocation = NULL; |
277 | PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC glad_glGetFramebufferAttachmentParameteriv = NULL; |
278 | PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC glad_glGetFramebufferAttachmentParameterivEXT = NULL; |
279 | PFNGLGETINTEGER64I_VPROC glad_glGetInteger64i_v = NULL; |
280 | PFNGLGETINTEGER64VPROC glad_glGetInteger64v = NULL; |
281 | PFNGLGETINTEGERI_VPROC glad_glGetIntegeri_v = NULL; |
282 | PFNGLGETINTEGERVPROC glad_glGetIntegerv = NULL; |
283 | PFNGLGETLIGHTFVPROC glad_glGetLightfv = NULL; |
284 | PFNGLGETLIGHTIVPROC glad_glGetLightiv = NULL; |
285 | PFNGLGETMAPDVPROC glad_glGetMapdv = NULL; |
286 | PFNGLGETMAPFVPROC glad_glGetMapfv = NULL; |
287 | PFNGLGETMAPIVPROC glad_glGetMapiv = NULL; |
288 | PFNGLGETMATERIALFVPROC glad_glGetMaterialfv = NULL; |
289 | PFNGLGETMATERIALIVPROC glad_glGetMaterialiv = NULL; |
290 | PFNGLGETMULTISAMPLEFVPROC glad_glGetMultisamplefv = NULL; |
291 | PFNGLGETPIXELMAPFVPROC glad_glGetPixelMapfv = NULL; |
292 | PFNGLGETPIXELMAPUIVPROC glad_glGetPixelMapuiv = NULL; |
293 | PFNGLGETPIXELMAPUSVPROC glad_glGetPixelMapusv = NULL; |
294 | PFNGLGETPOINTERVPROC glad_glGetPointerv = NULL; |
295 | PFNGLGETPOLYGONSTIPPLEPROC glad_glGetPolygonStipple = NULL; |
296 | PFNGLGETPROGRAMBINARYPROC glad_glGetProgramBinary = NULL; |
297 | PFNGLGETPROGRAMINFOLOGPROC glad_glGetProgramInfoLog = NULL; |
298 | PFNGLGETPROGRAMIVPROC glad_glGetProgramiv = NULL; |
299 | PFNGLGETQUERYOBJECTI64VPROC glad_glGetQueryObjecti64v = NULL; |
300 | PFNGLGETQUERYOBJECTIVPROC glad_glGetQueryObjectiv = NULL; |
301 | PFNGLGETQUERYOBJECTUI64VPROC glad_glGetQueryObjectui64v = NULL; |
302 | PFNGLGETQUERYOBJECTUIVPROC glad_glGetQueryObjectuiv = NULL; |
303 | PFNGLGETQUERYIVPROC glad_glGetQueryiv = NULL; |
304 | PFNGLGETRENDERBUFFERPARAMETERIVPROC glad_glGetRenderbufferParameteriv = NULL; |
305 | PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC glad_glGetRenderbufferParameterivEXT = NULL; |
306 | PFNGLGETSAMPLERPARAMETERIIVPROC glad_glGetSamplerParameterIiv = NULL; |
307 | PFNGLGETSAMPLERPARAMETERIUIVPROC glad_glGetSamplerParameterIuiv = NULL; |
308 | PFNGLGETSAMPLERPARAMETERFVPROC glad_glGetSamplerParameterfv = NULL; |
309 | PFNGLGETSAMPLERPARAMETERIVPROC glad_glGetSamplerParameteriv = NULL; |
310 | PFNGLGETSHADERINFOLOGPROC glad_glGetShaderInfoLog = NULL; |
311 | PFNGLGETSHADERSOURCEPROC glad_glGetShaderSource = NULL; |
312 | PFNGLGETSHADERIVPROC glad_glGetShaderiv = NULL; |
313 | PFNGLGETSTRINGPROC glad_glGetString = NULL; |
314 | PFNGLGETSTRINGIPROC glad_glGetStringi = NULL; |
315 | PFNGLGETSYNCIVPROC glad_glGetSynciv = NULL; |
316 | PFNGLGETTEXENVFVPROC glad_glGetTexEnvfv = NULL; |
317 | PFNGLGETTEXENVIVPROC glad_glGetTexEnviv = NULL; |
318 | PFNGLGETTEXGENDVPROC glad_glGetTexGendv = NULL; |
319 | PFNGLGETTEXGENFVPROC glad_glGetTexGenfv = NULL; |
320 | PFNGLGETTEXGENIVPROC glad_glGetTexGeniv = NULL; |
321 | PFNGLGETTEXIMAGEPROC glad_glGetTexImage = NULL; |
322 | PFNGLGETTEXLEVELPARAMETERFVPROC glad_glGetTexLevelParameterfv = NULL; |
323 | PFNGLGETTEXLEVELPARAMETERIVPROC glad_glGetTexLevelParameteriv = NULL; |
324 | PFNGLGETTEXPARAMETERIIVPROC glad_glGetTexParameterIiv = NULL; |
325 | PFNGLGETTEXPARAMETERIUIVPROC glad_glGetTexParameterIuiv = NULL; |
326 | PFNGLGETTEXPARAMETERFVPROC glad_glGetTexParameterfv = NULL; |
327 | PFNGLGETTEXPARAMETERIVPROC glad_glGetTexParameteriv = NULL; |
328 | PFNGLGETTRANSFORMFEEDBACKVARYINGPROC glad_glGetTransformFeedbackVarying = NULL; |
329 | PFNGLGETUNIFORMBLOCKINDEXPROC glad_glGetUniformBlockIndex = NULL; |
330 | PFNGLGETUNIFORMINDICESPROC glad_glGetUniformIndices = NULL; |
331 | PFNGLGETUNIFORMLOCATIONPROC glad_glGetUniformLocation = NULL; |
332 | PFNGLGETUNIFORMFVPROC glad_glGetUniformfv = NULL; |
333 | PFNGLGETUNIFORMIVPROC glad_glGetUniformiv = NULL; |
334 | PFNGLGETUNIFORMUIVPROC glad_glGetUniformuiv = NULL; |
335 | PFNGLGETVERTEXATTRIBIIVPROC glad_glGetVertexAttribIiv = NULL; |
336 | PFNGLGETVERTEXATTRIBIUIVPROC glad_glGetVertexAttribIuiv = NULL; |
337 | PFNGLGETVERTEXATTRIBPOINTERVPROC glad_glGetVertexAttribPointerv = NULL; |
338 | PFNGLGETVERTEXATTRIBDVPROC glad_glGetVertexAttribdv = NULL; |
339 | PFNGLGETVERTEXATTRIBFVPROC glad_glGetVertexAttribfv = NULL; |
340 | PFNGLGETVERTEXATTRIBIVPROC glad_glGetVertexAttribiv = NULL; |
341 | PFNGLHINTPROC glad_glHint = NULL; |
342 | PFNGLINDEXMASKPROC glad_glIndexMask = NULL; |
343 | PFNGLINDEXPOINTERPROC glad_glIndexPointer = NULL; |
344 | PFNGLINDEXDPROC glad_glIndexd = NULL; |
345 | PFNGLINDEXDVPROC glad_glIndexdv = NULL; |
346 | PFNGLINDEXFPROC glad_glIndexf = NULL; |
347 | PFNGLINDEXFVPROC glad_glIndexfv = NULL; |
348 | PFNGLINDEXIPROC glad_glIndexi = NULL; |
349 | PFNGLINDEXIVPROC glad_glIndexiv = NULL; |
350 | PFNGLINDEXSPROC glad_glIndexs = NULL; |
351 | PFNGLINDEXSVPROC glad_glIndexsv = NULL; |
352 | PFNGLINDEXUBPROC glad_glIndexub = NULL; |
353 | PFNGLINDEXUBVPROC glad_glIndexubv = NULL; |
354 | PFNGLINITNAMESPROC glad_glInitNames = NULL; |
355 | PFNGLINTERLEAVEDARRAYSPROC glad_glInterleavedArrays = NULL; |
356 | PFNGLISBUFFERPROC glad_glIsBuffer = NULL; |
357 | PFNGLISENABLEDPROC glad_glIsEnabled = NULL; |
358 | PFNGLISENABLEDIPROC glad_glIsEnabledi = NULL; |
359 | PFNGLISFRAMEBUFFERPROC glad_glIsFramebuffer = NULL; |
360 | PFNGLISFRAMEBUFFEREXTPROC glad_glIsFramebufferEXT = NULL; |
361 | PFNGLISLISTPROC glad_glIsList = NULL; |
362 | PFNGLISPROGRAMPROC glad_glIsProgram = NULL; |
363 | PFNGLISQUERYPROC glad_glIsQuery = NULL; |
364 | PFNGLISRENDERBUFFERPROC glad_glIsRenderbuffer = NULL; |
365 | PFNGLISRENDERBUFFEREXTPROC glad_glIsRenderbufferEXT = NULL; |
366 | PFNGLISSAMPLERPROC glad_glIsSampler = NULL; |
367 | PFNGLISSHADERPROC glad_glIsShader = NULL; |
368 | PFNGLISSYNCPROC glad_glIsSync = NULL; |
369 | PFNGLISTEXTUREPROC glad_glIsTexture = NULL; |
370 | PFNGLISVERTEXARRAYPROC glad_glIsVertexArray = NULL; |
371 | PFNGLLIGHTMODELFPROC glad_glLightModelf = NULL; |
372 | PFNGLLIGHTMODELFVPROC glad_glLightModelfv = NULL; |
373 | PFNGLLIGHTMODELIPROC glad_glLightModeli = NULL; |
374 | PFNGLLIGHTMODELIVPROC glad_glLightModeliv = NULL; |
375 | PFNGLLIGHTFPROC glad_glLightf = NULL; |
376 | PFNGLLIGHTFVPROC glad_glLightfv = NULL; |
377 | PFNGLLIGHTIPROC glad_glLighti = NULL; |
378 | PFNGLLIGHTIVPROC glad_glLightiv = NULL; |
379 | PFNGLLINESTIPPLEPROC glad_glLineStipple = NULL; |
380 | PFNGLLINEWIDTHPROC glad_glLineWidth = NULL; |
381 | PFNGLLINKPROGRAMPROC glad_glLinkProgram = NULL; |
382 | PFNGLLISTBASEPROC glad_glListBase = NULL; |
383 | PFNGLLOADIDENTITYPROC glad_glLoadIdentity = NULL; |
384 | PFNGLLOADMATRIXDPROC glad_glLoadMatrixd = NULL; |
385 | PFNGLLOADMATRIXFPROC glad_glLoadMatrixf = NULL; |
386 | PFNGLLOADNAMEPROC glad_glLoadName = NULL; |
387 | PFNGLLOADTRANSPOSEMATRIXDPROC glad_glLoadTransposeMatrixd = NULL; |
388 | PFNGLLOADTRANSPOSEMATRIXFPROC glad_glLoadTransposeMatrixf = NULL; |
389 | PFNGLLOGICOPPROC glad_glLogicOp = NULL; |
390 | PFNGLMAP1DPROC glad_glMap1d = NULL; |
391 | PFNGLMAP1FPROC glad_glMap1f = NULL; |
392 | PFNGLMAP2DPROC glad_glMap2d = NULL; |
393 | PFNGLMAP2FPROC glad_glMap2f = NULL; |
394 | PFNGLMAPBUFFERPROC glad_glMapBuffer = NULL; |
395 | PFNGLMAPBUFFERRANGEPROC glad_glMapBufferRange = NULL; |
396 | PFNGLMAPGRID1DPROC glad_glMapGrid1d = NULL; |
397 | PFNGLMAPGRID1FPROC glad_glMapGrid1f = NULL; |
398 | PFNGLMAPGRID2DPROC glad_glMapGrid2d = NULL; |
399 | PFNGLMAPGRID2FPROC glad_glMapGrid2f = NULL; |
400 | PFNGLMATERIALFPROC glad_glMaterialf = NULL; |
401 | PFNGLMATERIALFVPROC glad_glMaterialfv = NULL; |
402 | PFNGLMATERIALIPROC glad_glMateriali = NULL; |
403 | PFNGLMATERIALIVPROC glad_glMaterialiv = NULL; |
404 | PFNGLMATRIXMODEPROC glad_glMatrixMode = NULL; |
405 | PFNGLMULTMATRIXDPROC glad_glMultMatrixd = NULL; |
406 | PFNGLMULTMATRIXFPROC glad_glMultMatrixf = NULL; |
407 | PFNGLMULTTRANSPOSEMATRIXDPROC glad_glMultTransposeMatrixd = NULL; |
408 | PFNGLMULTTRANSPOSEMATRIXFPROC glad_glMultTransposeMatrixf = NULL; |
409 | PFNGLMULTIDRAWARRAYSPROC glad_glMultiDrawArrays = NULL; |
410 | PFNGLMULTIDRAWELEMENTSPROC glad_glMultiDrawElements = NULL; |
411 | PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC glad_glMultiDrawElementsBaseVertex = NULL; |
412 | PFNGLMULTITEXCOORD1DPROC glad_glMultiTexCoord1d = NULL; |
413 | PFNGLMULTITEXCOORD1DVPROC glad_glMultiTexCoord1dv = NULL; |
414 | PFNGLMULTITEXCOORD1FPROC glad_glMultiTexCoord1f = NULL; |
415 | PFNGLMULTITEXCOORD1FVPROC glad_glMultiTexCoord1fv = NULL; |
416 | PFNGLMULTITEXCOORD1IPROC glad_glMultiTexCoord1i = NULL; |
417 | PFNGLMULTITEXCOORD1IVPROC glad_glMultiTexCoord1iv = NULL; |
418 | PFNGLMULTITEXCOORD1SPROC glad_glMultiTexCoord1s = NULL; |
419 | PFNGLMULTITEXCOORD1SVPROC glad_glMultiTexCoord1sv = NULL; |
420 | PFNGLMULTITEXCOORD2DPROC glad_glMultiTexCoord2d = NULL; |
421 | PFNGLMULTITEXCOORD2DVPROC glad_glMultiTexCoord2dv = NULL; |
422 | PFNGLMULTITEXCOORD2FPROC glad_glMultiTexCoord2f = NULL; |
423 | PFNGLMULTITEXCOORD2FVPROC glad_glMultiTexCoord2fv = NULL; |
424 | PFNGLMULTITEXCOORD2IPROC glad_glMultiTexCoord2i = NULL; |
425 | PFNGLMULTITEXCOORD2IVPROC glad_glMultiTexCoord2iv = NULL; |
426 | PFNGLMULTITEXCOORD2SPROC glad_glMultiTexCoord2s = NULL; |
427 | PFNGLMULTITEXCOORD2SVPROC glad_glMultiTexCoord2sv = NULL; |
428 | PFNGLMULTITEXCOORD3DPROC glad_glMultiTexCoord3d = NULL; |
429 | PFNGLMULTITEXCOORD3DVPROC glad_glMultiTexCoord3dv = NULL; |
430 | PFNGLMULTITEXCOORD3FPROC glad_glMultiTexCoord3f = NULL; |
431 | PFNGLMULTITEXCOORD3FVPROC glad_glMultiTexCoord3fv = NULL; |
432 | PFNGLMULTITEXCOORD3IPROC glad_glMultiTexCoord3i = NULL; |
433 | PFNGLMULTITEXCOORD3IVPROC glad_glMultiTexCoord3iv = NULL; |
434 | PFNGLMULTITEXCOORD3SPROC glad_glMultiTexCoord3s = NULL; |
435 | PFNGLMULTITEXCOORD3SVPROC glad_glMultiTexCoord3sv = NULL; |
436 | PFNGLMULTITEXCOORD4DPROC glad_glMultiTexCoord4d = NULL; |
437 | PFNGLMULTITEXCOORD4DVPROC glad_glMultiTexCoord4dv = NULL; |
438 | PFNGLMULTITEXCOORD4FPROC glad_glMultiTexCoord4f = NULL; |
439 | PFNGLMULTITEXCOORD4FVPROC glad_glMultiTexCoord4fv = NULL; |
440 | PFNGLMULTITEXCOORD4IPROC glad_glMultiTexCoord4i = NULL; |
441 | PFNGLMULTITEXCOORD4IVPROC glad_glMultiTexCoord4iv = NULL; |
442 | PFNGLMULTITEXCOORD4SPROC glad_glMultiTexCoord4s = NULL; |
443 | PFNGLMULTITEXCOORD4SVPROC glad_glMultiTexCoord4sv = NULL; |
444 | PFNGLMULTITEXCOORDP1UIPROC glad_glMultiTexCoordP1ui = NULL; |
445 | PFNGLMULTITEXCOORDP1UIVPROC glad_glMultiTexCoordP1uiv = NULL; |
446 | PFNGLMULTITEXCOORDP2UIPROC glad_glMultiTexCoordP2ui = NULL; |
447 | PFNGLMULTITEXCOORDP2UIVPROC glad_glMultiTexCoordP2uiv = NULL; |
448 | PFNGLMULTITEXCOORDP3UIPROC glad_glMultiTexCoordP3ui = NULL; |
449 | PFNGLMULTITEXCOORDP3UIVPROC glad_glMultiTexCoordP3uiv = NULL; |
450 | PFNGLMULTITEXCOORDP4UIPROC glad_glMultiTexCoordP4ui = NULL; |
451 | PFNGLMULTITEXCOORDP4UIVPROC glad_glMultiTexCoordP4uiv = NULL; |
452 | PFNGLNEWLISTPROC glad_glNewList = NULL; |
453 | PFNGLNORMAL3BPROC glad_glNormal3b = NULL; |
454 | PFNGLNORMAL3BVPROC glad_glNormal3bv = NULL; |
455 | PFNGLNORMAL3DPROC glad_glNormal3d = NULL; |
456 | PFNGLNORMAL3DVPROC glad_glNormal3dv = NULL; |
457 | PFNGLNORMAL3FPROC glad_glNormal3f = NULL; |
458 | PFNGLNORMAL3FVPROC glad_glNormal3fv = NULL; |
459 | PFNGLNORMAL3IPROC glad_glNormal3i = NULL; |
460 | PFNGLNORMAL3IVPROC glad_glNormal3iv = NULL; |
461 | PFNGLNORMAL3SPROC glad_glNormal3s = NULL; |
462 | PFNGLNORMAL3SVPROC glad_glNormal3sv = NULL; |
463 | PFNGLNORMALP3UIPROC glad_glNormalP3ui = NULL; |
464 | PFNGLNORMALP3UIVPROC glad_glNormalP3uiv = NULL; |
465 | PFNGLNORMALPOINTERPROC glad_glNormalPointer = NULL; |
466 | PFNGLORTHOPROC glad_glOrtho = NULL; |
467 | PFNGLPASSTHROUGHPROC glad_glPassThrough = NULL; |
468 | PFNGLPIXELMAPFVPROC glad_glPixelMapfv = NULL; |
469 | PFNGLPIXELMAPUIVPROC glad_glPixelMapuiv = NULL; |
470 | PFNGLPIXELMAPUSVPROC glad_glPixelMapusv = NULL; |
471 | PFNGLPIXELSTOREFPROC glad_glPixelStoref = NULL; |
472 | PFNGLPIXELSTOREIPROC glad_glPixelStorei = NULL; |
473 | PFNGLPIXELTRANSFERFPROC glad_glPixelTransferf = NULL; |
474 | PFNGLPIXELTRANSFERIPROC glad_glPixelTransferi = NULL; |
475 | PFNGLPIXELZOOMPROC glad_glPixelZoom = NULL; |
476 | PFNGLPOINTPARAMETERFPROC glad_glPointParameterf = NULL; |
477 | PFNGLPOINTPARAMETERFVPROC glad_glPointParameterfv = NULL; |
478 | PFNGLPOINTPARAMETERIPROC glad_glPointParameteri = NULL; |
479 | PFNGLPOINTPARAMETERIVPROC glad_glPointParameteriv = NULL; |
480 | PFNGLPOINTSIZEPROC glad_glPointSize = NULL; |
481 | PFNGLPOLYGONMODEPROC glad_glPolygonMode = NULL; |
482 | PFNGLPOLYGONOFFSETPROC glad_glPolygonOffset = NULL; |
483 | PFNGLPOLYGONSTIPPLEPROC glad_glPolygonStipple = NULL; |
484 | PFNGLPOPATTRIBPROC glad_glPopAttrib = NULL; |
485 | PFNGLPOPCLIENTATTRIBPROC glad_glPopClientAttrib = NULL; |
486 | PFNGLPOPMATRIXPROC glad_glPopMatrix = NULL; |
487 | PFNGLPOPNAMEPROC glad_glPopName = NULL; |
488 | PFNGLPRIMITIVERESTARTINDEXPROC glad_glPrimitiveRestartIndex = NULL; |
489 | PFNGLPRIORITIZETEXTURESPROC glad_glPrioritizeTextures = NULL; |
490 | PFNGLPROGRAMBINARYPROC glad_glProgramBinary = NULL; |
491 | PFNGLPROGRAMPARAMETERIPROC glad_glProgramParameteri = NULL; |
492 | PFNGLPROVOKINGVERTEXPROC glad_glProvokingVertex = NULL; |
493 | PFNGLPUSHATTRIBPROC glad_glPushAttrib = NULL; |
494 | PFNGLPUSHCLIENTATTRIBPROC glad_glPushClientAttrib = NULL; |
495 | PFNGLPUSHMATRIXPROC glad_glPushMatrix = NULL; |
496 | PFNGLPUSHNAMEPROC glad_glPushName = NULL; |
497 | PFNGLQUERYCOUNTERPROC glad_glQueryCounter = NULL; |
498 | PFNGLRASTERPOS2DPROC glad_glRasterPos2d = NULL; |
499 | PFNGLRASTERPOS2DVPROC glad_glRasterPos2dv = NULL; |
500 | PFNGLRASTERPOS2FPROC glad_glRasterPos2f = NULL; |
501 | PFNGLRASTERPOS2FVPROC glad_glRasterPos2fv = NULL; |
502 | PFNGLRASTERPOS2IPROC glad_glRasterPos2i = NULL; |
503 | PFNGLRASTERPOS2IVPROC glad_glRasterPos2iv = NULL; |
504 | PFNGLRASTERPOS2SPROC glad_glRasterPos2s = NULL; |
505 | PFNGLRASTERPOS2SVPROC glad_glRasterPos2sv = NULL; |
506 | PFNGLRASTERPOS3DPROC glad_glRasterPos3d = NULL; |
507 | PFNGLRASTERPOS3DVPROC glad_glRasterPos3dv = NULL; |
508 | PFNGLRASTERPOS3FPROC glad_glRasterPos3f = NULL; |
509 | PFNGLRASTERPOS3FVPROC glad_glRasterPos3fv = NULL; |
510 | PFNGLRASTERPOS3IPROC glad_glRasterPos3i = NULL; |
511 | PFNGLRASTERPOS3IVPROC glad_glRasterPos3iv = NULL; |
512 | PFNGLRASTERPOS3SPROC glad_glRasterPos3s = NULL; |
513 | PFNGLRASTERPOS3SVPROC glad_glRasterPos3sv = NULL; |
514 | PFNGLRASTERPOS4DPROC glad_glRasterPos4d = NULL; |
515 | PFNGLRASTERPOS4DVPROC glad_glRasterPos4dv = NULL; |
516 | PFNGLRASTERPOS4FPROC glad_glRasterPos4f = NULL; |
517 | PFNGLRASTERPOS4FVPROC glad_glRasterPos4fv = NULL; |
518 | PFNGLRASTERPOS4IPROC glad_glRasterPos4i = NULL; |
519 | PFNGLRASTERPOS4IVPROC glad_glRasterPos4iv = NULL; |
520 | PFNGLRASTERPOS4SPROC glad_glRasterPos4s = NULL; |
521 | PFNGLRASTERPOS4SVPROC glad_glRasterPos4sv = NULL; |
522 | PFNGLREADBUFFERPROC glad_glReadBuffer = NULL; |
523 | PFNGLREADPIXELSPROC glad_glReadPixels = NULL; |
524 | PFNGLRECTDPROC glad_glRectd = NULL; |
525 | PFNGLRECTDVPROC glad_glRectdv = NULL; |
526 | PFNGLRECTFPROC glad_glRectf = NULL; |
527 | PFNGLRECTFVPROC glad_glRectfv = NULL; |
528 | PFNGLRECTIPROC glad_glRecti = NULL; |
529 | PFNGLRECTIVPROC glad_glRectiv = NULL; |
530 | PFNGLRECTSPROC glad_glRects = NULL; |
531 | PFNGLRECTSVPROC glad_glRectsv = NULL; |
532 | PFNGLRENDERMODEPROC glad_glRenderMode = NULL; |
533 | PFNGLRENDERBUFFERSTORAGEPROC glad_glRenderbufferStorage = NULL; |
534 | PFNGLRENDERBUFFERSTORAGEEXTPROC glad_glRenderbufferStorageEXT = NULL; |
535 | PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC glad_glRenderbufferStorageMultisample = NULL; |
536 | PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC glad_glRenderbufferStorageMultisampleEXT = NULL; |
537 | PFNGLROTATEDPROC glad_glRotated = NULL; |
538 | PFNGLROTATEFPROC glad_glRotatef = NULL; |
539 | PFNGLSAMPLECOVERAGEPROC glad_glSampleCoverage = NULL; |
540 | PFNGLSAMPLEMASKIPROC glad_glSampleMaski = NULL; |
541 | PFNGLSAMPLERPARAMETERIIVPROC glad_glSamplerParameterIiv = NULL; |
542 | PFNGLSAMPLERPARAMETERIUIVPROC glad_glSamplerParameterIuiv = NULL; |
543 | PFNGLSAMPLERPARAMETERFPROC glad_glSamplerParameterf = NULL; |
544 | PFNGLSAMPLERPARAMETERFVPROC glad_glSamplerParameterfv = NULL; |
545 | PFNGLSAMPLERPARAMETERIPROC glad_glSamplerParameteri = NULL; |
546 | PFNGLSAMPLERPARAMETERIVPROC glad_glSamplerParameteriv = NULL; |
547 | PFNGLSCALEDPROC glad_glScaled = NULL; |
548 | PFNGLSCALEFPROC glad_glScalef = NULL; |
549 | PFNGLSCISSORPROC glad_glScissor = NULL; |
550 | PFNGLSECONDARYCOLOR3BPROC glad_glSecondaryColor3b = NULL; |
551 | PFNGLSECONDARYCOLOR3BVPROC glad_glSecondaryColor3bv = NULL; |
552 | PFNGLSECONDARYCOLOR3DPROC glad_glSecondaryColor3d = NULL; |
553 | PFNGLSECONDARYCOLOR3DVPROC glad_glSecondaryColor3dv = NULL; |
554 | PFNGLSECONDARYCOLOR3FPROC glad_glSecondaryColor3f = NULL; |
555 | PFNGLSECONDARYCOLOR3FVPROC glad_glSecondaryColor3fv = NULL; |
556 | PFNGLSECONDARYCOLOR3IPROC glad_glSecondaryColor3i = NULL; |
557 | PFNGLSECONDARYCOLOR3IVPROC glad_glSecondaryColor3iv = NULL; |
558 | PFNGLSECONDARYCOLOR3SPROC glad_glSecondaryColor3s = NULL; |
559 | PFNGLSECONDARYCOLOR3SVPROC glad_glSecondaryColor3sv = NULL; |
560 | PFNGLSECONDARYCOLOR3UBPROC glad_glSecondaryColor3ub = NULL; |
561 | PFNGLSECONDARYCOLOR3UBVPROC glad_glSecondaryColor3ubv = NULL; |
562 | PFNGLSECONDARYCOLOR3UIPROC glad_glSecondaryColor3ui = NULL; |
563 | PFNGLSECONDARYCOLOR3UIVPROC glad_glSecondaryColor3uiv = NULL; |
564 | PFNGLSECONDARYCOLOR3USPROC glad_glSecondaryColor3us = NULL; |
565 | PFNGLSECONDARYCOLOR3USVPROC glad_glSecondaryColor3usv = NULL; |
566 | PFNGLSECONDARYCOLORP3UIPROC glad_glSecondaryColorP3ui = NULL; |
567 | PFNGLSECONDARYCOLORP3UIVPROC glad_glSecondaryColorP3uiv = NULL; |
568 | PFNGLSECONDARYCOLORPOINTERPROC glad_glSecondaryColorPointer = NULL; |
569 | PFNGLSELECTBUFFERPROC glad_glSelectBuffer = NULL; |
570 | PFNGLSHADEMODELPROC glad_glShadeModel = NULL; |
571 | PFNGLSHADERSOURCEPROC glad_glShaderSource = NULL; |
572 | PFNGLSTENCILFUNCPROC glad_glStencilFunc = NULL; |
573 | PFNGLSTENCILFUNCSEPARATEPROC glad_glStencilFuncSeparate = NULL; |
574 | PFNGLSTENCILMASKPROC glad_glStencilMask = NULL; |
575 | PFNGLSTENCILMASKSEPARATEPROC glad_glStencilMaskSeparate = NULL; |
576 | PFNGLSTENCILOPPROC glad_glStencilOp = NULL; |
577 | PFNGLSTENCILOPSEPARATEPROC glad_glStencilOpSeparate = NULL; |
578 | PFNGLTEXBUFFERPROC glad_glTexBuffer = NULL; |
579 | PFNGLTEXCOORD1DPROC glad_glTexCoord1d = NULL; |
580 | PFNGLTEXCOORD1DVPROC glad_glTexCoord1dv = NULL; |
581 | PFNGLTEXCOORD1FPROC glad_glTexCoord1f = NULL; |
582 | PFNGLTEXCOORD1FVPROC glad_glTexCoord1fv = NULL; |
583 | PFNGLTEXCOORD1IPROC glad_glTexCoord1i = NULL; |
584 | PFNGLTEXCOORD1IVPROC glad_glTexCoord1iv = NULL; |
585 | PFNGLTEXCOORD1SPROC glad_glTexCoord1s = NULL; |
586 | PFNGLTEXCOORD1SVPROC glad_glTexCoord1sv = NULL; |
587 | PFNGLTEXCOORD2DPROC glad_glTexCoord2d = NULL; |
588 | PFNGLTEXCOORD2DVPROC glad_glTexCoord2dv = NULL; |
589 | PFNGLTEXCOORD2FPROC glad_glTexCoord2f = NULL; |
590 | PFNGLTEXCOORD2FVPROC glad_glTexCoord2fv = NULL; |
591 | PFNGLTEXCOORD2IPROC glad_glTexCoord2i = NULL; |
592 | PFNGLTEXCOORD2IVPROC glad_glTexCoord2iv = NULL; |
593 | PFNGLTEXCOORD2SPROC glad_glTexCoord2s = NULL; |
594 | PFNGLTEXCOORD2SVPROC glad_glTexCoord2sv = NULL; |
595 | PFNGLTEXCOORD3DPROC glad_glTexCoord3d = NULL; |
596 | PFNGLTEXCOORD3DVPROC glad_glTexCoord3dv = NULL; |
597 | PFNGLTEXCOORD3FPROC glad_glTexCoord3f = NULL; |
598 | PFNGLTEXCOORD3FVPROC glad_glTexCoord3fv = NULL; |
599 | PFNGLTEXCOORD3IPROC glad_glTexCoord3i = NULL; |
600 | PFNGLTEXCOORD3IVPROC glad_glTexCoord3iv = NULL; |
601 | PFNGLTEXCOORD3SPROC glad_glTexCoord3s = NULL; |
602 | PFNGLTEXCOORD3SVPROC glad_glTexCoord3sv = NULL; |
603 | PFNGLTEXCOORD4DPROC glad_glTexCoord4d = NULL; |
604 | PFNGLTEXCOORD4DVPROC glad_glTexCoord4dv = NULL; |
605 | PFNGLTEXCOORD4FPROC glad_glTexCoord4f = NULL; |
606 | PFNGLTEXCOORD4FVPROC glad_glTexCoord4fv = NULL; |
607 | PFNGLTEXCOORD4IPROC glad_glTexCoord4i = NULL; |
608 | PFNGLTEXCOORD4IVPROC glad_glTexCoord4iv = NULL; |
609 | PFNGLTEXCOORD4SPROC glad_glTexCoord4s = NULL; |
610 | PFNGLTEXCOORD4SVPROC glad_glTexCoord4sv = NULL; |
611 | PFNGLTEXCOORDP1UIPROC glad_glTexCoordP1ui = NULL; |
612 | PFNGLTEXCOORDP1UIVPROC glad_glTexCoordP1uiv = NULL; |
613 | PFNGLTEXCOORDP2UIPROC glad_glTexCoordP2ui = NULL; |
614 | PFNGLTEXCOORDP2UIVPROC glad_glTexCoordP2uiv = NULL; |
615 | PFNGLTEXCOORDP3UIPROC glad_glTexCoordP3ui = NULL; |
616 | PFNGLTEXCOORDP3UIVPROC glad_glTexCoordP3uiv = NULL; |
617 | PFNGLTEXCOORDP4UIPROC glad_glTexCoordP4ui = NULL; |
618 | PFNGLTEXCOORDP4UIVPROC glad_glTexCoordP4uiv = NULL; |
619 | PFNGLTEXCOORDPOINTERPROC glad_glTexCoordPointer = NULL; |
620 | PFNGLTEXENVFPROC glad_glTexEnvf = NULL; |
621 | PFNGLTEXENVFVPROC glad_glTexEnvfv = NULL; |
622 | PFNGLTEXENVIPROC glad_glTexEnvi = NULL; |
623 | PFNGLTEXENVIVPROC glad_glTexEnviv = NULL; |
624 | PFNGLTEXGENDPROC glad_glTexGend = NULL; |
625 | PFNGLTEXGENDVPROC glad_glTexGendv = NULL; |
626 | PFNGLTEXGENFPROC glad_glTexGenf = NULL; |
627 | PFNGLTEXGENFVPROC glad_glTexGenfv = NULL; |
628 | PFNGLTEXGENIPROC glad_glTexGeni = NULL; |
629 | PFNGLTEXGENIVPROC glad_glTexGeniv = NULL; |
630 | PFNGLTEXIMAGE1DPROC glad_glTexImage1D = NULL; |
631 | PFNGLTEXIMAGE2DPROC glad_glTexImage2D = NULL; |
632 | PFNGLTEXIMAGE2DMULTISAMPLEPROC glad_glTexImage2DMultisample = NULL; |
633 | PFNGLTEXIMAGE3DPROC glad_glTexImage3D = NULL; |
634 | PFNGLTEXIMAGE3DMULTISAMPLEPROC glad_glTexImage3DMultisample = NULL; |
635 | PFNGLTEXPARAMETERIIVPROC glad_glTexParameterIiv = NULL; |
636 | PFNGLTEXPARAMETERIUIVPROC glad_glTexParameterIuiv = NULL; |
637 | PFNGLTEXPARAMETERFPROC glad_glTexParameterf = NULL; |
638 | PFNGLTEXPARAMETERFVPROC glad_glTexParameterfv = NULL; |
639 | PFNGLTEXPARAMETERIPROC glad_glTexParameteri = NULL; |
640 | PFNGLTEXPARAMETERIVPROC glad_glTexParameteriv = NULL; |
641 | PFNGLTEXSUBIMAGE1DPROC glad_glTexSubImage1D = NULL; |
642 | PFNGLTEXSUBIMAGE2DPROC glad_glTexSubImage2D = NULL; |
643 | PFNGLTEXSUBIMAGE3DPROC glad_glTexSubImage3D = NULL; |
644 | PFNGLTRANSFORMFEEDBACKVARYINGSPROC glad_glTransformFeedbackVaryings = NULL; |
645 | PFNGLTRANSLATEDPROC glad_glTranslated = NULL; |
646 | PFNGLTRANSLATEFPROC glad_glTranslatef = NULL; |
647 | PFNGLUNIFORM1FPROC glad_glUniform1f = NULL; |
648 | PFNGLUNIFORM1FVPROC glad_glUniform1fv = NULL; |
649 | PFNGLUNIFORM1IPROC glad_glUniform1i = NULL; |
650 | PFNGLUNIFORM1IVPROC glad_glUniform1iv = NULL; |
651 | PFNGLUNIFORM1UIPROC glad_glUniform1ui = NULL; |
652 | PFNGLUNIFORM1UIVPROC glad_glUniform1uiv = NULL; |
653 | PFNGLUNIFORM2FPROC glad_glUniform2f = NULL; |
654 | PFNGLUNIFORM2FVPROC glad_glUniform2fv = NULL; |
655 | PFNGLUNIFORM2IPROC glad_glUniform2i = NULL; |
656 | PFNGLUNIFORM2IVPROC glad_glUniform2iv = NULL; |
657 | PFNGLUNIFORM2UIPROC glad_glUniform2ui = NULL; |
658 | PFNGLUNIFORM2UIVPROC glad_glUniform2uiv = NULL; |
659 | PFNGLUNIFORM3FPROC glad_glUniform3f = NULL; |
660 | PFNGLUNIFORM3FVPROC glad_glUniform3fv = NULL; |
661 | PFNGLUNIFORM3IPROC glad_glUniform3i = NULL; |
662 | PFNGLUNIFORM3IVPROC glad_glUniform3iv = NULL; |
663 | PFNGLUNIFORM3UIPROC glad_glUniform3ui = NULL; |
664 | PFNGLUNIFORM3UIVPROC glad_glUniform3uiv = NULL; |
665 | PFNGLUNIFORM4FPROC glad_glUniform4f = NULL; |
666 | PFNGLUNIFORM4FVPROC glad_glUniform4fv = NULL; |
667 | PFNGLUNIFORM4IPROC glad_glUniform4i = NULL; |
668 | PFNGLUNIFORM4IVPROC glad_glUniform4iv = NULL; |
669 | PFNGLUNIFORM4UIPROC glad_glUniform4ui = NULL; |
670 | PFNGLUNIFORM4UIVPROC glad_glUniform4uiv = NULL; |
671 | PFNGLUNIFORMBLOCKBINDINGPROC glad_glUniformBlockBinding = NULL; |
672 | PFNGLUNIFORMMATRIX2FVPROC glad_glUniformMatrix2fv = NULL; |
673 | PFNGLUNIFORMMATRIX2X3FVPROC glad_glUniformMatrix2x3fv = NULL; |
674 | PFNGLUNIFORMMATRIX2X4FVPROC glad_glUniformMatrix2x4fv = NULL; |
675 | PFNGLUNIFORMMATRIX3FVPROC glad_glUniformMatrix3fv = NULL; |
676 | PFNGLUNIFORMMATRIX3X2FVPROC glad_glUniformMatrix3x2fv = NULL; |
677 | PFNGLUNIFORMMATRIX3X4FVPROC glad_glUniformMatrix3x4fv = NULL; |
678 | PFNGLUNIFORMMATRIX4FVPROC glad_glUniformMatrix4fv = NULL; |
679 | PFNGLUNIFORMMATRIX4X2FVPROC glad_glUniformMatrix4x2fv = NULL; |
680 | PFNGLUNIFORMMATRIX4X3FVPROC glad_glUniformMatrix4x3fv = NULL; |
681 | PFNGLUNMAPBUFFERPROC glad_glUnmapBuffer = NULL; |
682 | PFNGLUSEPROGRAMPROC glad_glUseProgram = NULL; |
683 | PFNGLVALIDATEPROGRAMPROC glad_glValidateProgram = NULL; |
684 | PFNGLVERTEX2DPROC glad_glVertex2d = NULL; |
685 | PFNGLVERTEX2DVPROC glad_glVertex2dv = NULL; |
686 | PFNGLVERTEX2FPROC glad_glVertex2f = NULL; |
687 | PFNGLVERTEX2FVPROC glad_glVertex2fv = NULL; |
688 | PFNGLVERTEX2IPROC glad_glVertex2i = NULL; |
689 | PFNGLVERTEX2IVPROC glad_glVertex2iv = NULL; |
690 | PFNGLVERTEX2SPROC glad_glVertex2s = NULL; |
691 | PFNGLVERTEX2SVPROC glad_glVertex2sv = NULL; |
692 | PFNGLVERTEX3DPROC glad_glVertex3d = NULL; |
693 | PFNGLVERTEX3DVPROC glad_glVertex3dv = NULL; |
694 | PFNGLVERTEX3FPROC glad_glVertex3f = NULL; |
695 | PFNGLVERTEX3FVPROC glad_glVertex3fv = NULL; |
696 | PFNGLVERTEX3IPROC glad_glVertex3i = NULL; |
697 | PFNGLVERTEX3IVPROC glad_glVertex3iv = NULL; |
698 | PFNGLVERTEX3SPROC glad_glVertex3s = NULL; |
699 | PFNGLVERTEX3SVPROC glad_glVertex3sv = NULL; |
700 | PFNGLVERTEX4DPROC glad_glVertex4d = NULL; |
701 | PFNGLVERTEX4DVPROC glad_glVertex4dv = NULL; |
702 | PFNGLVERTEX4FPROC glad_glVertex4f = NULL; |
703 | PFNGLVERTEX4FVPROC glad_glVertex4fv = NULL; |
704 | PFNGLVERTEX4IPROC glad_glVertex4i = NULL; |
705 | PFNGLVERTEX4IVPROC glad_glVertex4iv = NULL; |
706 | PFNGLVERTEX4SPROC glad_glVertex4s = NULL; |
707 | PFNGLVERTEX4SVPROC glad_glVertex4sv = NULL; |
708 | PFNGLVERTEXATTRIB1DPROC glad_glVertexAttrib1d = NULL; |
709 | PFNGLVERTEXATTRIB1DVPROC glad_glVertexAttrib1dv = NULL; |
710 | PFNGLVERTEXATTRIB1FPROC glad_glVertexAttrib1f = NULL; |
711 | PFNGLVERTEXATTRIB1FVPROC glad_glVertexAttrib1fv = NULL; |
712 | PFNGLVERTEXATTRIB1SPROC glad_glVertexAttrib1s = NULL; |
713 | PFNGLVERTEXATTRIB1SVPROC glad_glVertexAttrib1sv = NULL; |
714 | PFNGLVERTEXATTRIB2DPROC glad_glVertexAttrib2d = NULL; |
715 | PFNGLVERTEXATTRIB2DVPROC glad_glVertexAttrib2dv = NULL; |
716 | PFNGLVERTEXATTRIB2FPROC glad_glVertexAttrib2f = NULL; |
717 | PFNGLVERTEXATTRIB2FVPROC glad_glVertexAttrib2fv = NULL; |
718 | PFNGLVERTEXATTRIB2SPROC glad_glVertexAttrib2s = NULL; |
719 | PFNGLVERTEXATTRIB2SVPROC glad_glVertexAttrib2sv = NULL; |
720 | PFNGLVERTEXATTRIB3DPROC glad_glVertexAttrib3d = NULL; |
721 | PFNGLVERTEXATTRIB3DVPROC glad_glVertexAttrib3dv = NULL; |
722 | PFNGLVERTEXATTRIB3FPROC glad_glVertexAttrib3f = NULL; |
723 | PFNGLVERTEXATTRIB3FVPROC glad_glVertexAttrib3fv = NULL; |
724 | PFNGLVERTEXATTRIB3SPROC glad_glVertexAttrib3s = NULL; |
725 | PFNGLVERTEXATTRIB3SVPROC glad_glVertexAttrib3sv = NULL; |
726 | PFNGLVERTEXATTRIB4NBVPROC glad_glVertexAttrib4Nbv = NULL; |
727 | PFNGLVERTEXATTRIB4NIVPROC glad_glVertexAttrib4Niv = NULL; |
728 | PFNGLVERTEXATTRIB4NSVPROC glad_glVertexAttrib4Nsv = NULL; |
729 | PFNGLVERTEXATTRIB4NUBPROC glad_glVertexAttrib4Nub = NULL; |
730 | PFNGLVERTEXATTRIB4NUBVPROC glad_glVertexAttrib4Nubv = NULL; |
731 | PFNGLVERTEXATTRIB4NUIVPROC glad_glVertexAttrib4Nuiv = NULL; |
732 | PFNGLVERTEXATTRIB4NUSVPROC glad_glVertexAttrib4Nusv = NULL; |
733 | PFNGLVERTEXATTRIB4BVPROC glad_glVertexAttrib4bv = NULL; |
734 | PFNGLVERTEXATTRIB4DPROC glad_glVertexAttrib4d = NULL; |
735 | PFNGLVERTEXATTRIB4DVPROC glad_glVertexAttrib4dv = NULL; |
736 | PFNGLVERTEXATTRIB4FPROC glad_glVertexAttrib4f = NULL; |
737 | PFNGLVERTEXATTRIB4FVPROC glad_glVertexAttrib4fv = NULL; |
738 | PFNGLVERTEXATTRIB4IVPROC glad_glVertexAttrib4iv = NULL; |
739 | PFNGLVERTEXATTRIB4SPROC glad_glVertexAttrib4s = NULL; |
740 | PFNGLVERTEXATTRIB4SVPROC glad_glVertexAttrib4sv = NULL; |
741 | PFNGLVERTEXATTRIB4UBVPROC glad_glVertexAttrib4ubv = NULL; |
742 | PFNGLVERTEXATTRIB4UIVPROC glad_glVertexAttrib4uiv = NULL; |
743 | PFNGLVERTEXATTRIB4USVPROC glad_glVertexAttrib4usv = NULL; |
744 | PFNGLVERTEXATTRIBDIVISORPROC glad_glVertexAttribDivisor = NULL; |
745 | PFNGLVERTEXATTRIBI1IPROC glad_glVertexAttribI1i = NULL; |
746 | PFNGLVERTEXATTRIBI1IVPROC glad_glVertexAttribI1iv = NULL; |
747 | PFNGLVERTEXATTRIBI1UIPROC glad_glVertexAttribI1ui = NULL; |
748 | PFNGLVERTEXATTRIBI1UIVPROC glad_glVertexAttribI1uiv = NULL; |
749 | PFNGLVERTEXATTRIBI2IPROC glad_glVertexAttribI2i = NULL; |
750 | PFNGLVERTEXATTRIBI2IVPROC glad_glVertexAttribI2iv = NULL; |
751 | PFNGLVERTEXATTRIBI2UIPROC glad_glVertexAttribI2ui = NULL; |
752 | PFNGLVERTEXATTRIBI2UIVPROC glad_glVertexAttribI2uiv = NULL; |
753 | PFNGLVERTEXATTRIBI3IPROC glad_glVertexAttribI3i = NULL; |
754 | PFNGLVERTEXATTRIBI3IVPROC glad_glVertexAttribI3iv = NULL; |
755 | PFNGLVERTEXATTRIBI3UIPROC glad_glVertexAttribI3ui = NULL; |
756 | PFNGLVERTEXATTRIBI3UIVPROC glad_glVertexAttribI3uiv = NULL; |
757 | PFNGLVERTEXATTRIBI4BVPROC glad_glVertexAttribI4bv = NULL; |
758 | PFNGLVERTEXATTRIBI4IPROC glad_glVertexAttribI4i = NULL; |
759 | PFNGLVERTEXATTRIBI4IVPROC glad_glVertexAttribI4iv = NULL; |
760 | PFNGLVERTEXATTRIBI4SVPROC glad_glVertexAttribI4sv = NULL; |
761 | PFNGLVERTEXATTRIBI4UBVPROC glad_glVertexAttribI4ubv = NULL; |
762 | PFNGLVERTEXATTRIBI4UIPROC glad_glVertexAttribI4ui = NULL; |
763 | PFNGLVERTEXATTRIBI4UIVPROC glad_glVertexAttribI4uiv = NULL; |
764 | PFNGLVERTEXATTRIBI4USVPROC glad_glVertexAttribI4usv = NULL; |
765 | PFNGLVERTEXATTRIBIPOINTERPROC glad_glVertexAttribIPointer = NULL; |
766 | PFNGLVERTEXATTRIBP1UIPROC glad_glVertexAttribP1ui = NULL; |
767 | PFNGLVERTEXATTRIBP1UIVPROC glad_glVertexAttribP1uiv = NULL; |
768 | PFNGLVERTEXATTRIBP2UIPROC glad_glVertexAttribP2ui = NULL; |
769 | PFNGLVERTEXATTRIBP2UIVPROC glad_glVertexAttribP2uiv = NULL; |
770 | PFNGLVERTEXATTRIBP3UIPROC glad_glVertexAttribP3ui = NULL; |
771 | PFNGLVERTEXATTRIBP3UIVPROC glad_glVertexAttribP3uiv = NULL; |
772 | PFNGLVERTEXATTRIBP4UIPROC glad_glVertexAttribP4ui = NULL; |
773 | PFNGLVERTEXATTRIBP4UIVPROC glad_glVertexAttribP4uiv = NULL; |
774 | PFNGLVERTEXATTRIBPOINTERPROC glad_glVertexAttribPointer = NULL; |
775 | PFNGLVERTEXP2UIPROC glad_glVertexP2ui = NULL; |
776 | PFNGLVERTEXP2UIVPROC glad_glVertexP2uiv = NULL; |
777 | PFNGLVERTEXP3UIPROC glad_glVertexP3ui = NULL; |
778 | PFNGLVERTEXP3UIVPROC glad_glVertexP3uiv = NULL; |
779 | PFNGLVERTEXP4UIPROC glad_glVertexP4ui = NULL; |
780 | PFNGLVERTEXP4UIVPROC glad_glVertexP4uiv = NULL; |
781 | PFNGLVERTEXPOINTERPROC glad_glVertexPointer = NULL; |
782 | PFNGLVIEWPORTPROC glad_glViewport = NULL; |
783 | PFNGLWAITSYNCPROC glad_glWaitSync = NULL; |
784 | PFNGLWINDOWPOS2DPROC glad_glWindowPos2d = NULL; |
785 | PFNGLWINDOWPOS2DVPROC glad_glWindowPos2dv = NULL; |
786 | PFNGLWINDOWPOS2FPROC glad_glWindowPos2f = NULL; |
787 | PFNGLWINDOWPOS2FVPROC glad_glWindowPos2fv = NULL; |
788 | PFNGLWINDOWPOS2IPROC glad_glWindowPos2i = NULL; |
789 | PFNGLWINDOWPOS2IVPROC glad_glWindowPos2iv = NULL; |
790 | PFNGLWINDOWPOS2SPROC glad_glWindowPos2s = NULL; |
791 | PFNGLWINDOWPOS2SVPROC glad_glWindowPos2sv = NULL; |
792 | PFNGLWINDOWPOS3DPROC glad_glWindowPos3d = NULL; |
793 | PFNGLWINDOWPOS3DVPROC glad_glWindowPos3dv = NULL; |
794 | PFNGLWINDOWPOS3FPROC glad_glWindowPos3f = NULL; |
795 | PFNGLWINDOWPOS3FVPROC glad_glWindowPos3fv = NULL; |
796 | PFNGLWINDOWPOS3IPROC glad_glWindowPos3i = NULL; |
797 | PFNGLWINDOWPOS3IVPROC glad_glWindowPos3iv = NULL; |
798 | PFNGLWINDOWPOS3SPROC glad_glWindowPos3s = NULL; |
799 | PFNGLWINDOWPOS3SVPROC glad_glWindowPos3sv = NULL; |
800 | |
801 | |
802 | static 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 | } |
1111 | static 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 | } |
1144 | static 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 | } |
1151 | static 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 | } |
1200 | static 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 | } |
1250 | static 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 | } |
1272 | static 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 | } |
1368 | static 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 | } |
1377 | static 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 | } |
1464 | static 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 | } |
1482 | static 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 | } |
1504 | static 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 | } |
1565 | static 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 | } |
1572 | static 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 | } |
1595 | static 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 | } |
1601 | static 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 | } |
1605 | static 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 | } |
1609 | static 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 | } |
1629 | static 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 | |
1642 | static 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 | } |
1687 | static 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 | } |
1697 | static 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 | |
1730 | static 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 | |
1734 | static 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 | |
1754 | static 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 | |
1794 | int 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 | |
1830 | int 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 | |
1853 | static 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 | |
1883 | static 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 | |
1893 | static 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 | |
1907 | typedef void* (GLAD_API_PTR *GLADglprocaddrfunc)(const char*); |
1908 | struct _glad_gl_userptr { |
1909 | void *handle; |
1910 | GLADglprocaddrfunc gl_get_proc_address_ptr; |
1911 | }; |
1912 | |
1913 | static 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 | |
1927 | static void* _glad_GL_loader_handle = NULL; |
1928 | |
1929 | static 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 | |
1956 | static 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 | |
1973 | int 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 | |
1996 | void 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 | |