-
Notifications
You must be signed in to change notification settings - Fork 26
/
gl.c
4178 lines (3492 loc) · 232 KB
/
gl.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#include <stdio.h>
#include "gl.h"
#define LEAK_COUNTER
#ifdef LEAK_COUNTER
int leak_samplers = 0;
int leak_textures = 0;
int leak_framebuffers = 0;
int leak_renderbuffers = 0;
int leak_transformfeedbacks = 0;
int leak_buffers = 0;
int leak_vertexarrays = 0;
int leak_queries = 0;
int leak_shaderprograms = 0;
int leak_programs = 0;
int leak_shaders = 0;
int leak_programpipelines = 0;
#endif
void DumpLeakCounter()
{
const int* counter[]=
{
&leak_samplers, (const int*)"samplers",
&leak_textures, (const int*)"textures",
&leak_framebuffers, (const int*)"framebuffers",
&leak_renderbuffers, (const int*)"renderbuffers",
&leak_transformfeedbacks, (const int*)"transformfeedbacks",
&leak_buffers, (const int*)"buffers",
&leak_vertexarrays, (const int*)"vertexarrays",
&leak_queries, (const int*)"queries",
&leak_shaderprograms, (const int*)"shaderprograms",
&leak_programs, (const int*)"programs",
&leak_shaders, (const int*)"shaders",
&leak_programpipelines, (const int*)"programpipelines",
0,0
};
int i = 0;
while (counter[i])
{
printf("%s: %d\n", (const char*)counter[i + 1], *(counter[i]));
i += 2;
}
}
/* This file was auto-generated by Galogen */
#include <assert.h>
#if defined(_WIN32)
void* GalogenGetProcAddress(const char *name) {
static HMODULE opengl32module = NULL;
static PROC(WINAPI *wgl_get_proc_address)(LPCSTR name) = NULL;
if (!wgl_get_proc_address) {
if (!opengl32module) {
opengl32module = LoadLibraryA("opengl32.dll");
}
wgl_get_proc_address = (PROC(WINAPI*)(LPCSTR))GetProcAddress(opengl32module, "wglGetProcAddress");
assert(wgl_get_proc_address);
}
void *ptr = (void *)wgl_get_proc_address(name);
if(ptr == 0 || (ptr == (void*)1) || (ptr == (void*)2) || (ptr == (void*)3) ||
(ptr == (void*)-1) ) {
if (opengl32module == NULL) {
opengl32module = LoadLibraryA("opengl32.dll");
assert(opengl32module);
}
ptr = (void *)GetProcAddress(opengl32module, name);
}
return ptr;
}
#elif defined(__APPLE__)
#include <dlfcn.h>
static void* GalogenGetProcAddress (const char *name)
{
static void* lib = NULL;
if (NULL == lib)
lib = dlopen(
"/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL",
RTLD_LAZY);
return lib ? dlsym(lib, name) : NULL;
}
#elif defined(__ANDROID__)
#include <dlfcn.h>
#if GALOGEN_API_VER_MAJ == 3
#define GALOGEN_GLES_LIB "libGLESv3.so"
#elif GALOGEN_API_VER_MAJ == 2
#define GALOGEN_GLES_LIB "libGLESv2.so"
#else
#define GALOGEN_GLES_LIB "libGLESv1_CM.so"
#endif
static void* GalogenGetProcAddress(const char *name)
{
static void* lib = NULL;
if (NULL == lib) {
lib = dlopen(GALOGEN_GLES_LIB, RTLD_LAZY);
assert(lib);
}
return lib ? dlsym(lib, name) : NULL;
}
#else
#include <GL/glx.h>
#define GalogenGetProcAddress(name) (*glXGetProcAddressARB)((const GLubyte*)name)
#endif
static void GL_APIENTRY _impl_glTextureBarrier () {
_glptr_glTextureBarrier = (PFN_glTextureBarrier)GalogenGetProcAddress("glTextureBarrier");
_glptr_glTextureBarrier();
}
PFN_glTextureBarrier _glptr_glTextureBarrier = _impl_glTextureBarrier;
static void GL_APIENTRY _impl_glReadnPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLsizei bufSize, void * data) {
_glptr_glReadnPixels = (PFN_glReadnPixels)GalogenGetProcAddress("glReadnPixels");
_glptr_glReadnPixels(x, y, width, height, format, type, bufSize, data);
}
PFN_glReadnPixels _glptr_glReadnPixels = _impl_glReadnPixels;
static void GL_APIENTRY _impl_glGetnUniformuiv (GLuint program, GLint location, GLsizei bufSize, GLuint * params) {
_glptr_glGetnUniformuiv = (PFN_glGetnUniformuiv)GalogenGetProcAddress("glGetnUniformuiv");
_glptr_glGetnUniformuiv(program, location, bufSize, params);
}
PFN_glGetnUniformuiv _glptr_glGetnUniformuiv = _impl_glGetnUniformuiv;
static void GL_APIENTRY _impl_glGetnUniformfv (GLuint program, GLint location, GLsizei bufSize, GLfloat * params) {
_glptr_glGetnUniformfv = (PFN_glGetnUniformfv)GalogenGetProcAddress("glGetnUniformfv");
_glptr_glGetnUniformfv(program, location, bufSize, params);
}
PFN_glGetnUniformfv _glptr_glGetnUniformfv = _impl_glGetnUniformfv;
static void GL_APIENTRY _impl_glGetnCompressedTexImage (GLenum target, GLint lod, GLsizei bufSize, void * pixels) {
_glptr_glGetnCompressedTexImage = (PFN_glGetnCompressedTexImage)GalogenGetProcAddress("glGetnCompressedTexImage");
_glptr_glGetnCompressedTexImage(target, lod, bufSize, pixels);
}
PFN_glGetnCompressedTexImage _glptr_glGetnCompressedTexImage = _impl_glGetnCompressedTexImage;
static void GL_APIENTRY _impl_glGetCompressedTextureSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei bufSize, void * pixels) {
_glptr_glGetCompressedTextureSubImage = (PFN_glGetCompressedTextureSubImage)GalogenGetProcAddress("glGetCompressedTextureSubImage");
_glptr_glGetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, bufSize, pixels);
}
PFN_glGetCompressedTextureSubImage _glptr_glGetCompressedTextureSubImage = _impl_glGetCompressedTextureSubImage;
static void GL_APIENTRY _impl_glMemoryBarrierByRegion (GLbitfield barriers) {
_glptr_glMemoryBarrierByRegion = (PFN_glMemoryBarrierByRegion)GalogenGetProcAddress("glMemoryBarrierByRegion");
_glptr_glMemoryBarrierByRegion(barriers);
}
PFN_glMemoryBarrierByRegion _glptr_glMemoryBarrierByRegion = _impl_glMemoryBarrierByRegion;
static void GL_APIENTRY _impl_glGetQueryBufferObjectuiv (GLuint id, GLuint buffer, GLenum pname, GLintptr offset) {
_glptr_glGetQueryBufferObjectuiv = (PFN_glGetQueryBufferObjectuiv)GalogenGetProcAddress("glGetQueryBufferObjectuiv");
_glptr_glGetQueryBufferObjectuiv(id, buffer, pname, offset);
}
PFN_glGetQueryBufferObjectuiv _glptr_glGetQueryBufferObjectuiv = _impl_glGetQueryBufferObjectuiv;
static void GL_APIENTRY _impl_glGetQueryBufferObjectui64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset) {
_glptr_glGetQueryBufferObjectui64v = (PFN_glGetQueryBufferObjectui64v)GalogenGetProcAddress("glGetQueryBufferObjectui64v");
_glptr_glGetQueryBufferObjectui64v(id, buffer, pname, offset);
}
PFN_glGetQueryBufferObjectui64v _glptr_glGetQueryBufferObjectui64v = _impl_glGetQueryBufferObjectui64v;
static void GL_APIENTRY _impl_glCreateSamplers (GLsizei n, GLuint * samplers) {
#ifdef LEAK_COUNTER
leak_samplers += n;
PFN_glCreateSamplers
#endif
_glptr_glCreateSamplers = (PFN_glCreateSamplers)GalogenGetProcAddress("glCreateSamplers");
_glptr_glCreateSamplers(n, samplers);
}
PFN_glCreateSamplers _glptr_glCreateSamplers = _impl_glCreateSamplers;
static void GL_APIENTRY _impl_glGetVertexArrayIndexed64iv (GLuint vaobj, GLuint index, GLenum pname, GLint64 * param) {
_glptr_glGetVertexArrayIndexed64iv = (PFN_glGetVertexArrayIndexed64iv)GalogenGetProcAddress("glGetVertexArrayIndexed64iv");
_glptr_glGetVertexArrayIndexed64iv(vaobj, index, pname, param);
}
PFN_glGetVertexArrayIndexed64iv _glptr_glGetVertexArrayIndexed64iv = _impl_glGetVertexArrayIndexed64iv;
static void GL_APIENTRY _impl_glGetVertexArrayIndexediv (GLuint vaobj, GLuint index, GLenum pname, GLint * param) {
_glptr_glGetVertexArrayIndexediv = (PFN_glGetVertexArrayIndexediv)GalogenGetProcAddress("glGetVertexArrayIndexediv");
_glptr_glGetVertexArrayIndexediv(vaobj, index, pname, param);
}
PFN_glGetVertexArrayIndexediv _glptr_glGetVertexArrayIndexediv = _impl_glGetVertexArrayIndexediv;
static void GL_APIENTRY _impl_glGetVertexArrayiv (GLuint vaobj, GLenum pname, GLint * param) {
_glptr_glGetVertexArrayiv = (PFN_glGetVertexArrayiv)GalogenGetProcAddress("glGetVertexArrayiv");
_glptr_glGetVertexArrayiv(vaobj, pname, param);
}
PFN_glGetVertexArrayiv _glptr_glGetVertexArrayiv = _impl_glGetVertexArrayiv;
static void GL_APIENTRY _impl_glVertexArrayBindingDivisor (GLuint vaobj, GLuint bindingindex, GLuint divisor) {
_glptr_glVertexArrayBindingDivisor = (PFN_glVertexArrayBindingDivisor)GalogenGetProcAddress("glVertexArrayBindingDivisor");
_glptr_glVertexArrayBindingDivisor(vaobj, bindingindex, divisor);
}
PFN_glVertexArrayBindingDivisor _glptr_glVertexArrayBindingDivisor = _impl_glVertexArrayBindingDivisor;
static void GL_APIENTRY _impl_glVertexArrayAttribIFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) {
_glptr_glVertexArrayAttribIFormat = (PFN_glVertexArrayAttribIFormat)GalogenGetProcAddress("glVertexArrayAttribIFormat");
_glptr_glVertexArrayAttribIFormat(vaobj, attribindex, size, type, relativeoffset);
}
PFN_glVertexArrayAttribIFormat _glptr_glVertexArrayAttribIFormat = _impl_glVertexArrayAttribIFormat;
static void GL_APIENTRY _impl_glVertexArrayElementBuffer (GLuint vaobj, GLuint buffer) {
_glptr_glVertexArrayElementBuffer = (PFN_glVertexArrayElementBuffer)GalogenGetProcAddress("glVertexArrayElementBuffer");
_glptr_glVertexArrayElementBuffer(vaobj, buffer);
}
PFN_glVertexArrayElementBuffer _glptr_glVertexArrayElementBuffer = _impl_glVertexArrayElementBuffer;
static void GL_APIENTRY _impl_glEnableVertexArrayAttrib (GLuint vaobj, GLuint index) {
_glptr_glEnableVertexArrayAttrib = (PFN_glEnableVertexArrayAttrib)GalogenGetProcAddress("glEnableVertexArrayAttrib");
_glptr_glEnableVertexArrayAttrib(vaobj, index);
}
PFN_glEnableVertexArrayAttrib _glptr_glEnableVertexArrayAttrib = _impl_glEnableVertexArrayAttrib;
static void GL_APIENTRY _impl_glDisableVertexArrayAttrib (GLuint vaobj, GLuint index) {
_glptr_glDisableVertexArrayAttrib = (PFN_glDisableVertexArrayAttrib)GalogenGetProcAddress("glDisableVertexArrayAttrib");
_glptr_glDisableVertexArrayAttrib(vaobj, index);
}
PFN_glDisableVertexArrayAttrib _glptr_glDisableVertexArrayAttrib = _impl_glDisableVertexArrayAttrib;
static void GL_APIENTRY _impl_glGetTextureParameteriv (GLuint texture, GLenum pname, GLint * params) {
_glptr_glGetTextureParameteriv = (PFN_glGetTextureParameteriv)GalogenGetProcAddress("glGetTextureParameteriv");
_glptr_glGetTextureParameteriv(texture, pname, params);
}
PFN_glGetTextureParameteriv _glptr_glGetTextureParameteriv = _impl_glGetTextureParameteriv;
static void GL_APIENTRY _impl_glGetnUniformdv (GLuint program, GLint location, GLsizei bufSize, GLdouble * params) {
_glptr_glGetnUniformdv = (PFN_glGetnUniformdv)GalogenGetProcAddress("glGetnUniformdv");
_glptr_glGetnUniformdv(program, location, bufSize, params);
}
PFN_glGetnUniformdv _glptr_glGetnUniformdv = _impl_glGetnUniformdv;
static void GL_APIENTRY _impl_glGetTextureParameterIuiv (GLuint texture, GLenum pname, GLuint * params) {
_glptr_glGetTextureParameterIuiv = (PFN_glGetTextureParameterIuiv)GalogenGetProcAddress("glGetTextureParameterIuiv");
_glptr_glGetTextureParameterIuiv(texture, pname, params);
}
PFN_glGetTextureParameterIuiv _glptr_glGetTextureParameterIuiv = _impl_glGetTextureParameterIuiv;
static void GL_APIENTRY _impl_glGetTextureLevelParameterfv (GLuint texture, GLint level, GLenum pname, GLfloat * params) {
_glptr_glGetTextureLevelParameterfv = (PFN_glGetTextureLevelParameterfv)GalogenGetProcAddress("glGetTextureLevelParameterfv");
_glptr_glGetTextureLevelParameterfv(texture, level, pname, params);
}
PFN_glGetTextureLevelParameterfv _glptr_glGetTextureLevelParameterfv = _impl_glGetTextureLevelParameterfv;
static void GL_APIENTRY _impl_glGetTextureImage (GLuint texture, GLint level, GLenum format, GLenum type, GLsizei bufSize, void * pixels) {
_glptr_glGetTextureImage = (PFN_glGetTextureImage)GalogenGetProcAddress("glGetTextureImage");
_glptr_glGetTextureImage(texture, level, format, type, bufSize, pixels);
}
PFN_glGetTextureImage _glptr_glGetTextureImage = _impl_glGetTextureImage;
static void GL_APIENTRY _impl_glBindTextureUnit (GLuint unit, GLuint texture) {
_glptr_glBindTextureUnit = (PFN_glBindTextureUnit)GalogenGetProcAddress("glBindTextureUnit");
_glptr_glBindTextureUnit(unit, texture);
}
PFN_glBindTextureUnit _glptr_glBindTextureUnit = _impl_glBindTextureUnit;
static void GL_APIENTRY _impl_glGenerateTextureMipmap (GLuint texture) {
_glptr_glGenerateTextureMipmap = (PFN_glGenerateTextureMipmap)GalogenGetProcAddress("glGenerateTextureMipmap");
_glptr_glGenerateTextureMipmap(texture);
}
PFN_glGenerateTextureMipmap _glptr_glGenerateTextureMipmap = _impl_glGenerateTextureMipmap;
static void GL_APIENTRY _impl_glTextureParameterIuiv (GLuint texture, GLenum pname, const GLuint * params) {
_glptr_glTextureParameterIuiv = (PFN_glTextureParameterIuiv)GalogenGetProcAddress("glTextureParameterIuiv");
_glptr_glTextureParameterIuiv(texture, pname, params);
}
PFN_glTextureParameterIuiv _glptr_glTextureParameterIuiv = _impl_glTextureParameterIuiv;
static void GL_APIENTRY _impl_glTextureParameterfv (GLuint texture, GLenum pname, const GLfloat * param) {
_glptr_glTextureParameterfv = (PFN_glTextureParameterfv)GalogenGetProcAddress("glTextureParameterfv");
_glptr_glTextureParameterfv(texture, pname, param);
}
PFN_glTextureParameterfv _glptr_glTextureParameterfv = _impl_glTextureParameterfv;
static void GL_APIENTRY _impl_glCopyTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) {
_glptr_glCopyTextureSubImage3D = (PFN_glCopyTextureSubImage3D)GalogenGetProcAddress("glCopyTextureSubImage3D");
_glptr_glCopyTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, x, y, width, height);
}
PFN_glCopyTextureSubImage3D _glptr_glCopyTextureSubImage3D = _impl_glCopyTextureSubImage3D;
static void GL_APIENTRY _impl_glCopyTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) {
_glptr_glCopyTextureSubImage1D = (PFN_glCopyTextureSubImage1D)GalogenGetProcAddress("glCopyTextureSubImage1D");
_glptr_glCopyTextureSubImage1D(texture, level, xoffset, x, y, width);
}
PFN_glCopyTextureSubImage1D _glptr_glCopyTextureSubImage1D = _impl_glCopyTextureSubImage1D;
static void GL_APIENTRY _impl_glCompressedTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) {
_glptr_glCompressedTextureSubImage3D = (PFN_glCompressedTextureSubImage3D)GalogenGetProcAddress("glCompressedTextureSubImage3D");
_glptr_glCompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
}
PFN_glCompressedTextureSubImage3D _glptr_glCompressedTextureSubImage3D = _impl_glCompressedTextureSubImage3D;
static void GL_APIENTRY _impl_glCompressedTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data) {
_glptr_glCompressedTextureSubImage2D = (PFN_glCompressedTextureSubImage2D)GalogenGetProcAddress("glCompressedTextureSubImage2D");
_glptr_glCompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, imageSize, data);
}
PFN_glCompressedTextureSubImage2D _glptr_glCompressedTextureSubImage2D = _impl_glCompressedTextureSubImage2D;
static void GL_APIENTRY _impl_glTextureSubImage3D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) {
_glptr_glTextureSubImage3D = (PFN_glTextureSubImage3D)GalogenGetProcAddress("glTextureSubImage3D");
_glptr_glTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
}
PFN_glTextureSubImage3D _glptr_glTextureSubImage3D = _impl_glTextureSubImage3D;
static void GL_APIENTRY _impl_glTextureParameterIiv (GLuint texture, GLenum pname, const GLint * params) {
_glptr_glTextureParameterIiv = (PFN_glTextureParameterIiv)GalogenGetProcAddress("glTextureParameterIiv");
_glptr_glTextureParameterIiv(texture, pname, params);
}
PFN_glTextureParameterIiv _glptr_glTextureParameterIiv = _impl_glTextureParameterIiv;
static void GL_APIENTRY _impl_glTextureSubImage2D (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) {
_glptr_glTextureSubImage2D = (PFN_glTextureSubImage2D)GalogenGetProcAddress("glTextureSubImage2D");
_glptr_glTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, type, pixels);
}
PFN_glTextureSubImage2D _glptr_glTextureSubImage2D = _impl_glTextureSubImage2D;
static void GL_APIENTRY _impl_glTextureSubImage1D (GLuint texture, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) {
_glptr_glTextureSubImage1D = (PFN_glTextureSubImage1D)GalogenGetProcAddress("glTextureSubImage1D");
_glptr_glTextureSubImage1D(texture, level, xoffset, width, format, type, pixels);
}
PFN_glTextureSubImage1D _glptr_glTextureSubImage1D = _impl_glTextureSubImage1D;
static void GL_APIENTRY _impl_glTextureStorage2DMultisample (GLuint texture, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) {
_glptr_glTextureStorage2DMultisample = (PFN_glTextureStorage2DMultisample)GalogenGetProcAddress("glTextureStorage2DMultisample");
_glptr_glTextureStorage2DMultisample(texture, samples, internalformat, width, height, fixedsamplelocations);
}
PFN_glTextureStorage2DMultisample _glptr_glTextureStorage2DMultisample = _impl_glTextureStorage2DMultisample;
static void GL_APIENTRY _impl_glTextureStorage3D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth) {
_glptr_glTextureStorage3D = (PFN_glTextureStorage3D)GalogenGetProcAddress("glTextureStorage3D");
_glptr_glTextureStorage3D(texture, levels, internalformat, width, height, depth);
}
PFN_glTextureStorage3D _glptr_glTextureStorage3D = _impl_glTextureStorage3D;
static void GL_APIENTRY _impl_glTextureStorage2D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) {
_glptr_glTextureStorage2D = (PFN_glTextureStorage2D)GalogenGetProcAddress("glTextureStorage2D");
_glptr_glTextureStorage2D(texture, levels, internalformat, width, height);
}
PFN_glTextureStorage2D _glptr_glTextureStorage2D = _impl_glTextureStorage2D;
static void GL_APIENTRY _impl_glTextureStorage1D (GLuint texture, GLsizei levels, GLenum internalformat, GLsizei width) {
_glptr_glTextureStorage1D = (PFN_glTextureStorage1D)GalogenGetProcAddress("glTextureStorage1D");
_glptr_glTextureStorage1D(texture, levels, internalformat, width);
}
PFN_glTextureStorage1D _glptr_glTextureStorage1D = _impl_glTextureStorage1D;
static void GL_APIENTRY _impl_glTextureBuffer (GLuint texture, GLenum internalformat, GLuint buffer) {
_glptr_glTextureBuffer = (PFN_glTextureBuffer)GalogenGetProcAddress("glTextureBuffer");
_glptr_glTextureBuffer(texture, internalformat, buffer);
}
PFN_glTextureBuffer _glptr_glTextureBuffer = _impl_glTextureBuffer;
static void GL_APIENTRY _impl_glCreateTextures (GLenum target, GLsizei n, GLuint * textures) {
#ifdef LEAK_COUNTER
leak_textures += n;
PFN_glCreateTextures
#endif
_glptr_glCreateTextures = (PFN_glCreateTextures)GalogenGetProcAddress("glCreateTextures");
_glptr_glCreateTextures(target, n, textures);
}
PFN_glCreateTextures _glptr_glCreateTextures = _impl_glCreateTextures;
static void GL_APIENTRY _impl_glCreateRenderbuffers (GLsizei n, GLuint * renderbuffers) {
#ifdef LEAK_COUNTER
leak_renderbuffers += n;
PFN_glCreateRenderbuffers
#endif
_glptr_glCreateRenderbuffers = (PFN_glCreateRenderbuffers)GalogenGetProcAddress("glCreateRenderbuffers");
_glptr_glCreateRenderbuffers(n, renderbuffers);
}
PFN_glCreateRenderbuffers _glptr_glCreateRenderbuffers = _impl_glCreateRenderbuffers;
static void GL_APIENTRY _impl_glClearNamedFramebufferfi (GLuint framebuffer, GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) {
_glptr_glClearNamedFramebufferfi = (PFN_glClearNamedFramebufferfi)GalogenGetProcAddress("glClearNamedFramebufferfi");
_glptr_glClearNamedFramebufferfi(framebuffer, buffer, drawbuffer, depth, stencil);
}
PFN_glClearNamedFramebufferfi _glptr_glClearNamedFramebufferfi = _impl_glClearNamedFramebufferfi;
static void GL_APIENTRY _impl_glClearNamedFramebufferuiv (GLuint framebuffer, GLenum buffer, GLint drawbuffer, const GLuint * value) {
_glptr_glClearNamedFramebufferuiv = (PFN_glClearNamedFramebufferuiv)GalogenGetProcAddress("glClearNamedFramebufferuiv");
_glptr_glClearNamedFramebufferuiv(framebuffer, buffer, drawbuffer, value);
}
PFN_glClearNamedFramebufferuiv _glptr_glClearNamedFramebufferuiv = _impl_glClearNamedFramebufferuiv;
static void GL_APIENTRY _impl_glInvalidateNamedFramebufferSubData (GLuint framebuffer, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height) {
_glptr_glInvalidateNamedFramebufferSubData = (PFN_glInvalidateNamedFramebufferSubData)GalogenGetProcAddress("glInvalidateNamedFramebufferSubData");
_glptr_glInvalidateNamedFramebufferSubData(framebuffer, numAttachments, attachments, x, y, width, height);
}
PFN_glInvalidateNamedFramebufferSubData _glptr_glInvalidateNamedFramebufferSubData = _impl_glInvalidateNamedFramebufferSubData;
static void GL_APIENTRY _impl_glInvalidateNamedFramebufferData (GLuint framebuffer, GLsizei numAttachments, const GLenum * attachments) {
_glptr_glInvalidateNamedFramebufferData = (PFN_glInvalidateNamedFramebufferData)GalogenGetProcAddress("glInvalidateNamedFramebufferData");
_glptr_glInvalidateNamedFramebufferData(framebuffer, numAttachments, attachments);
}
PFN_glInvalidateNamedFramebufferData _glptr_glInvalidateNamedFramebufferData = _impl_glInvalidateNamedFramebufferData;
static void GL_APIENTRY _impl_glNamedFramebufferReadBuffer (GLuint framebuffer, GLenum src) {
_glptr_glNamedFramebufferReadBuffer = (PFN_glNamedFramebufferReadBuffer)GalogenGetProcAddress("glNamedFramebufferReadBuffer");
_glptr_glNamedFramebufferReadBuffer(framebuffer, src);
}
PFN_glNamedFramebufferReadBuffer _glptr_glNamedFramebufferReadBuffer = _impl_glNamedFramebufferReadBuffer;
static void GL_APIENTRY _impl_glNamedFramebufferTexture (GLuint framebuffer, GLenum attachment, GLuint texture, GLint level) {
_glptr_glNamedFramebufferTexture = (PFN_glNamedFramebufferTexture)GalogenGetProcAddress("glNamedFramebufferTexture");
_glptr_glNamedFramebufferTexture(framebuffer, attachment, texture, level);
}
PFN_glNamedFramebufferTexture _glptr_glNamedFramebufferTexture = _impl_glNamedFramebufferTexture;
static void GL_APIENTRY _impl_glNamedFramebufferRenderbuffer (GLuint framebuffer, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) {
_glptr_glNamedFramebufferRenderbuffer = (PFN_glNamedFramebufferRenderbuffer)GalogenGetProcAddress("glNamedFramebufferRenderbuffer");
_glptr_glNamedFramebufferRenderbuffer(framebuffer, attachment, renderbuffertarget, renderbuffer);
}
PFN_glNamedFramebufferRenderbuffer _glptr_glNamedFramebufferRenderbuffer = _impl_glNamedFramebufferRenderbuffer;
static void GL_APIENTRY _impl_glCreateFramebuffers (GLsizei n, GLuint * framebuffers) {
#ifdef LEAK_COUNTER
leak_framebuffers += n;
PFN_glCreateFramebuffers
#endif
_glptr_glCreateFramebuffers = (PFN_glCreateFramebuffers)GalogenGetProcAddress("glCreateFramebuffers");
_glptr_glCreateFramebuffers(n, framebuffers);
}
PFN_glCreateFramebuffers _glptr_glCreateFramebuffers = _impl_glCreateFramebuffers;
static void GL_APIENTRY _impl_glGetNamedBufferParameteri64v (GLuint buffer, GLenum pname, GLint64 * params) {
_glptr_glGetNamedBufferParameteri64v = (PFN_glGetNamedBufferParameteri64v)GalogenGetProcAddress("glGetNamedBufferParameteri64v");
_glptr_glGetNamedBufferParameteri64v(buffer, pname, params);
}
PFN_glGetNamedBufferParameteri64v _glptr_glGetNamedBufferParameteri64v = _impl_glGetNamedBufferParameteri64v;
static void * GL_APIENTRY _impl_glMapNamedBuffer (GLuint buffer, GLenum access) {
_glptr_glMapNamedBuffer = (PFN_glMapNamedBuffer)GalogenGetProcAddress("glMapNamedBuffer");
return _glptr_glMapNamedBuffer(buffer, access);
}
PFN_glMapNamedBuffer _glptr_glMapNamedBuffer = _impl_glMapNamedBuffer;
static void GL_APIENTRY _impl_glClearNamedBufferSubData (GLuint buffer, GLenum internalformat, GLintptr offset, GLsizeiptr size, GLenum format, GLenum type, const void * data) {
_glptr_glClearNamedBufferSubData = (PFN_glClearNamedBufferSubData)GalogenGetProcAddress("glClearNamedBufferSubData");
_glptr_glClearNamedBufferSubData(buffer, internalformat, offset, size, format, type, data);
}
PFN_glClearNamedBufferSubData _glptr_glClearNamedBufferSubData = _impl_glClearNamedBufferSubData;
static void GL_APIENTRY _impl_glClearNamedBufferData (GLuint buffer, GLenum internalformat, GLenum format, GLenum type, const void * data) {
_glptr_glClearNamedBufferData = (PFN_glClearNamedBufferData)GalogenGetProcAddress("glClearNamedBufferData");
_glptr_glClearNamedBufferData(buffer, internalformat, format, type, data);
}
PFN_glClearNamedBufferData _glptr_glClearNamedBufferData = _impl_glClearNamedBufferData;
static void GL_APIENTRY _impl_glCopyNamedBufferSubData (GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) {
_glptr_glCopyNamedBufferSubData = (PFN_glCopyNamedBufferSubData)GalogenGetProcAddress("glCopyNamedBufferSubData");
_glptr_glCopyNamedBufferSubData(readBuffer, writeBuffer, readOffset, writeOffset, size);
}
PFN_glCopyNamedBufferSubData _glptr_glCopyNamedBufferSubData = _impl_glCopyNamedBufferSubData;
static void GL_APIENTRY _impl_glNamedBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr size, const void * data) {
_glptr_glNamedBufferSubData = (PFN_glNamedBufferSubData)GalogenGetProcAddress("glNamedBufferSubData");
_glptr_glNamedBufferSubData(buffer, offset, size, data);
}
PFN_glNamedBufferSubData _glptr_glNamedBufferSubData = _impl_glNamedBufferSubData;
static void GL_APIENTRY _impl_glNamedBufferData (GLuint buffer, GLsizeiptr size, const void * data, GLenum usage) {
_glptr_glNamedBufferData = (PFN_glNamedBufferData)GalogenGetProcAddress("glNamedBufferData");
_glptr_glNamedBufferData(buffer, size, data, usage);
}
PFN_glNamedBufferData _glptr_glNamedBufferData = _impl_glNamedBufferData;
static void GL_APIENTRY _impl_glNamedBufferStorage (GLuint buffer, GLsizeiptr size, const void * data, GLbitfield flags) {
_glptr_glNamedBufferStorage = (PFN_glNamedBufferStorage)GalogenGetProcAddress("glNamedBufferStorage");
_glptr_glNamedBufferStorage(buffer, size, data, flags);
}
PFN_glNamedBufferStorage _glptr_glNamedBufferStorage = _impl_glNamedBufferStorage;
static void GL_APIENTRY _impl_glGetTransformFeedbacki_v (GLuint xfb, GLenum pname, GLuint index, GLint * param) {
_glptr_glGetTransformFeedbacki_v = (PFN_glGetTransformFeedbacki_v)GalogenGetProcAddress("glGetTransformFeedbacki_v");
_glptr_glGetTransformFeedbacki_v(xfb, pname, index, param);
}
PFN_glGetTransformFeedbacki_v _glptr_glGetTransformFeedbacki_v = _impl_glGetTransformFeedbacki_v;
static void GL_APIENTRY _impl_glTransformFeedbackBufferRange (GLuint xfb, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) {
_glptr_glTransformFeedbackBufferRange = (PFN_glTransformFeedbackBufferRange)GalogenGetProcAddress("glTransformFeedbackBufferRange");
_glptr_glTransformFeedbackBufferRange(xfb, index, buffer, offset, size);
}
PFN_glTransformFeedbackBufferRange _glptr_glTransformFeedbackBufferRange = _impl_glTransformFeedbackBufferRange;
static void GL_APIENTRY _impl_glVertexArrayAttribLFormat (GLuint vaobj, GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) {
_glptr_glVertexArrayAttribLFormat = (PFN_glVertexArrayAttribLFormat)GalogenGetProcAddress("glVertexArrayAttribLFormat");
_glptr_glVertexArrayAttribLFormat(vaobj, attribindex, size, type, relativeoffset);
}
PFN_glVertexArrayAttribLFormat _glptr_glVertexArrayAttribLFormat = _impl_glVertexArrayAttribLFormat;
static void GL_APIENTRY _impl_glBindImageTextures (GLuint first, GLsizei count, const GLuint * textures) {
_glptr_glBindImageTextures = (PFN_glBindImageTextures)GalogenGetProcAddress("glBindImageTextures");
_glptr_glBindImageTextures(first, count, textures);
}
PFN_glBindImageTextures _glptr_glBindImageTextures = _impl_glBindImageTextures;
static void GL_APIENTRY _impl_glBindSamplers (GLuint first, GLsizei count, const GLuint * samplers) {
_glptr_glBindSamplers = (PFN_glBindSamplers)GalogenGetProcAddress("glBindSamplers");
_glptr_glBindSamplers(first, count, samplers);
}
PFN_glBindSamplers _glptr_glBindSamplers = _impl_glBindSamplers;
static void GL_APIENTRY _impl_glBindTextures (GLuint first, GLsizei count, const GLuint * textures) {
_glptr_glBindTextures = (PFN_glBindTextures)GalogenGetProcAddress("glBindTextures");
_glptr_glBindTextures(first, count, textures);
}
PFN_glBindTextures _glptr_glBindTextures = _impl_glBindTextures;
static void GL_APIENTRY _impl_glClearTexImage (GLuint texture, GLint level, GLenum format, GLenum type, const void * data) {
_glptr_glClearTexImage = (PFN_glClearTexImage)GalogenGetProcAddress("glClearTexImage");
_glptr_glClearTexImage(texture, level, format, type, data);
}
PFN_glClearTexImage _glptr_glClearTexImage = _impl_glClearTexImage;
static void GL_APIENTRY _impl_glGetPointerv (GLenum pname, void ** params) {
_glptr_glGetPointerv = (PFN_glGetPointerv)GalogenGetProcAddress("glGetPointerv");
_glptr_glGetPointerv(pname, params);
}
PFN_glGetPointerv _glptr_glGetPointerv = _impl_glGetPointerv;
static void GL_APIENTRY _impl_glGetnUniformiv (GLuint program, GLint location, GLsizei bufSize, GLint * params) {
_glptr_glGetnUniformiv = (PFN_glGetnUniformiv)GalogenGetProcAddress("glGetnUniformiv");
_glptr_glGetnUniformiv(program, location, bufSize, params);
}
PFN_glGetnUniformiv _glptr_glGetnUniformiv = _impl_glGetnUniformiv;
static void GL_APIENTRY _impl_glGetObjectPtrLabel (const void * ptr, GLsizei bufSize, GLsizei * length, GLchar * label) {
_glptr_glGetObjectPtrLabel = (PFN_glGetObjectPtrLabel)GalogenGetProcAddress("glGetObjectPtrLabel");
_glptr_glGetObjectPtrLabel(ptr, bufSize, length, label);
}
PFN_glGetObjectPtrLabel _glptr_glGetObjectPtrLabel = _impl_glGetObjectPtrLabel;
static void GL_APIENTRY _impl_glGetQueryBufferObjecti64v (GLuint id, GLuint buffer, GLenum pname, GLintptr offset) {
_glptr_glGetQueryBufferObjecti64v = (PFN_glGetQueryBufferObjecti64v)GalogenGetProcAddress("glGetQueryBufferObjecti64v");
_glptr_glGetQueryBufferObjecti64v(id, buffer, pname, offset);
}
PFN_glGetQueryBufferObjecti64v _glptr_glGetQueryBufferObjecti64v = _impl_glGetQueryBufferObjecti64v;
static void GL_APIENTRY _impl_glGetTransformFeedbacki64_v (GLuint xfb, GLenum pname, GLuint index, GLint64 * param) {
_glptr_glGetTransformFeedbacki64_v = (PFN_glGetTransformFeedbacki64_v)GalogenGetProcAddress("glGetTransformFeedbacki64_v");
_glptr_glGetTransformFeedbacki64_v(xfb, pname, index, param);
}
PFN_glGetTransformFeedbacki64_v _glptr_glGetTransformFeedbacki64_v = _impl_glGetTransformFeedbacki64_v;
static void GL_APIENTRY _impl_glObjectPtrLabel (const void * ptr, GLsizei length, const GLchar * label) {
_glptr_glObjectPtrLabel = (PFN_glObjectPtrLabel)GalogenGetProcAddress("glObjectPtrLabel");
_glptr_glObjectPtrLabel(ptr, length, label);
}
PFN_glObjectPtrLabel _glptr_glObjectPtrLabel = _impl_glObjectPtrLabel;
static void GL_APIENTRY _impl_glPushDebugGroup (GLenum source, GLuint id, GLsizei length, const GLchar * message) {
_glptr_glPushDebugGroup = (PFN_glPushDebugGroup)GalogenGetProcAddress("glPushDebugGroup");
_glptr_glPushDebugGroup(source, id, length, message);
}
PFN_glPushDebugGroup _glptr_glPushDebugGroup = _impl_glPushDebugGroup;
static void GL_APIENTRY _impl_glDebugMessageControl (GLenum source, GLenum type, GLenum severity, GLsizei count, const GLuint * ids, GLboolean enabled) {
_glptr_glDebugMessageControl = (PFN_glDebugMessageControl)GalogenGetProcAddress("glDebugMessageControl");
_glptr_glDebugMessageControl(source, type, severity, count, ids, enabled);
}
PFN_glDebugMessageControl _glptr_glDebugMessageControl = _impl_glDebugMessageControl;
static void GL_APIENTRY _impl_glVertexAttribBinding (GLuint attribindex, GLuint bindingindex) {
_glptr_glVertexAttribBinding = (PFN_glVertexAttribBinding)GalogenGetProcAddress("glVertexAttribBinding");
_glptr_glVertexAttribBinding(attribindex, bindingindex);
}
PFN_glVertexAttribBinding _glptr_glVertexAttribBinding = _impl_glVertexAttribBinding;
static void GL_APIENTRY _impl_glVertexAttribLFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) {
_glptr_glVertexAttribLFormat = (PFN_glVertexAttribLFormat)GalogenGetProcAddress("glVertexAttribLFormat");
_glptr_glVertexAttribLFormat(attribindex, size, type, relativeoffset);
}
PFN_glVertexAttribLFormat _glptr_glVertexAttribLFormat = _impl_glVertexAttribLFormat;
static void GL_APIENTRY _impl_glVertexAttribIFormat (GLuint attribindex, GLint size, GLenum type, GLuint relativeoffset) {
_glptr_glVertexAttribIFormat = (PFN_glVertexAttribIFormat)GalogenGetProcAddress("glVertexAttribIFormat");
_glptr_glVertexAttribIFormat(attribindex, size, type, relativeoffset);
}
PFN_glVertexAttribIFormat _glptr_glVertexAttribIFormat = _impl_glVertexAttribIFormat;
static void GL_APIENTRY _impl_glVertexAttribFormat (GLuint attribindex, GLint size, GLenum type, GLboolean normalized, GLuint relativeoffset) {
_glptr_glVertexAttribFormat = (PFN_glVertexAttribFormat)GalogenGetProcAddress("glVertexAttribFormat");
_glptr_glVertexAttribFormat(attribindex, size, type, normalized, relativeoffset);
}
PFN_glVertexAttribFormat _glptr_glVertexAttribFormat = _impl_glVertexAttribFormat;
static void GL_APIENTRY _impl_glTexStorage2DMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) {
_glptr_glTexStorage2DMultisample = (PFN_glTexStorage2DMultisample)GalogenGetProcAddress("glTexStorage2DMultisample");
_glptr_glTexStorage2DMultisample(target, samples, internalformat, width, height, fixedsamplelocations);
}
PFN_glTexStorage2DMultisample _glptr_glTexStorage2DMultisample = _impl_glTexStorage2DMultisample;
static void GL_APIENTRY _impl_glShaderStorageBlockBinding (GLuint program, GLuint storageBlockIndex, GLuint storageBlockBinding) {
_glptr_glShaderStorageBlockBinding = (PFN_glShaderStorageBlockBinding)GalogenGetProcAddress("glShaderStorageBlockBinding");
_glptr_glShaderStorageBlockBinding(program, storageBlockIndex, storageBlockBinding);
}
PFN_glShaderStorageBlockBinding _glptr_glShaderStorageBlockBinding = _impl_glShaderStorageBlockBinding;
static GLint GL_APIENTRY _impl_glGetProgramResourceLocationIndex (GLuint program, GLenum programInterface, const GLchar * name) {
_glptr_glGetProgramResourceLocationIndex = (PFN_glGetProgramResourceLocationIndex)GalogenGetProcAddress("glGetProgramResourceLocationIndex");
return _glptr_glGetProgramResourceLocationIndex(program, programInterface, name);
}
PFN_glGetProgramResourceLocationIndex _glptr_glGetProgramResourceLocationIndex = _impl_glGetProgramResourceLocationIndex;
static void GL_APIENTRY _impl_glGetProgramResourceName (GLuint program, GLenum programInterface, GLuint index, GLsizei bufSize, GLsizei * length, GLchar * name) {
_glptr_glGetProgramResourceName = (PFN_glGetProgramResourceName)GalogenGetProcAddress("glGetProgramResourceName");
_glptr_glGetProgramResourceName(program, programInterface, index, bufSize, length, name);
}
PFN_glGetProgramResourceName _glptr_glGetProgramResourceName = _impl_glGetProgramResourceName;
static GLuint GL_APIENTRY _impl_glGetProgramResourceIndex (GLuint program, GLenum programInterface, const GLchar * name) {
_glptr_glGetProgramResourceIndex = (PFN_glGetProgramResourceIndex)GalogenGetProcAddress("glGetProgramResourceIndex");
return _glptr_glGetProgramResourceIndex(program, programInterface, name);
}
PFN_glGetProgramResourceIndex _glptr_glGetProgramResourceIndex = _impl_glGetProgramResourceIndex;
static void GL_APIENTRY _impl_glMultiDrawElementsIndirect (GLenum mode, GLenum type, const void * indirect, GLsizei drawcount, GLsizei stride) {
_glptr_glMultiDrawElementsIndirect = (PFN_glMultiDrawElementsIndirect)GalogenGetProcAddress("glMultiDrawElementsIndirect");
_glptr_glMultiDrawElementsIndirect(mode, type, indirect, drawcount, stride);
}
PFN_glMultiDrawElementsIndirect _glptr_glMultiDrawElementsIndirect = _impl_glMultiDrawElementsIndirect;
static void GL_APIENTRY _impl_glInvalidateSubFramebuffer (GLenum target, GLsizei numAttachments, const GLenum * attachments, GLint x, GLint y, GLsizei width, GLsizei height) {
_glptr_glInvalidateSubFramebuffer = (PFN_glInvalidateSubFramebuffer)GalogenGetProcAddress("glInvalidateSubFramebuffer");
_glptr_glInvalidateSubFramebuffer(target, numAttachments, attachments, x, y, width, height);
}
PFN_glInvalidateSubFramebuffer _glptr_glInvalidateSubFramebuffer = _impl_glInvalidateSubFramebuffer;
static void GL_APIENTRY _impl_glInvalidateBufferSubData (GLuint buffer, GLintptr offset, GLsizeiptr length) {
_glptr_glInvalidateBufferSubData = (PFN_glInvalidateBufferSubData)GalogenGetProcAddress("glInvalidateBufferSubData");
_glptr_glInvalidateBufferSubData(buffer, offset, length);
}
PFN_glInvalidateBufferSubData _glptr_glInvalidateBufferSubData = _impl_glInvalidateBufferSubData;
static void GL_APIENTRY _impl_glInvalidateTexImage (GLuint texture, GLint level) {
_glptr_glInvalidateTexImage = (PFN_glInvalidateTexImage)GalogenGetProcAddress("glInvalidateTexImage");
_glptr_glInvalidateTexImage(texture, level);
}
PFN_glInvalidateTexImage _glptr_glInvalidateTexImage = _impl_glInvalidateTexImage;
static void GL_APIENTRY _impl_glInvalidateTexSubImage (GLuint texture, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth) {
_glptr_glInvalidateTexSubImage = (PFN_glInvalidateTexSubImage)GalogenGetProcAddress("glInvalidateTexSubImage");
_glptr_glInvalidateTexSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth);
}
PFN_glInvalidateTexSubImage _glptr_glInvalidateTexSubImage = _impl_glInvalidateTexSubImage;
static void GL_APIENTRY _impl_glGetFramebufferParameteriv (GLenum target, GLenum pname, GLint * params) {
_glptr_glGetFramebufferParameteriv = (PFN_glGetFramebufferParameteriv)GalogenGetProcAddress("glGetFramebufferParameteriv");
_glptr_glGetFramebufferParameteriv(target, pname, params);
}
PFN_glGetFramebufferParameteriv _glptr_glGetFramebufferParameteriv = _impl_glGetFramebufferParameteriv;
static void GL_APIENTRY _impl_glFramebufferParameteri (GLenum target, GLenum pname, GLint param) {
_glptr_glFramebufferParameteri = (PFN_glFramebufferParameteri)GalogenGetProcAddress("glFramebufferParameteri");
_glptr_glFramebufferParameteri(target, pname, param);
}
PFN_glFramebufferParameteri _glptr_glFramebufferParameteri = _impl_glFramebufferParameteri;
static void GL_APIENTRY _impl_glNamedRenderbufferStorage (GLuint renderbuffer, GLenum internalformat, GLsizei width, GLsizei height) {
_glptr_glNamedRenderbufferStorage = (PFN_glNamedRenderbufferStorage)GalogenGetProcAddress("glNamedRenderbufferStorage");
_glptr_glNamedRenderbufferStorage(renderbuffer, internalformat, width, height);
}
PFN_glNamedRenderbufferStorage _glptr_glNamedRenderbufferStorage = _impl_glNamedRenderbufferStorage;
static void GL_APIENTRY _impl_glDispatchComputeIndirect (GLintptr indirect) {
_glptr_glDispatchComputeIndirect = (PFN_glDispatchComputeIndirect)GalogenGetProcAddress("glDispatchComputeIndirect");
_glptr_glDispatchComputeIndirect(indirect);
}
PFN_glDispatchComputeIndirect _glptr_glDispatchComputeIndirect = _impl_glDispatchComputeIndirect;
static void GL_APIENTRY _impl_glDispatchCompute (GLuint num_groups_x, GLuint num_groups_y, GLuint num_groups_z) {
_glptr_glDispatchCompute = (PFN_glDispatchCompute)GalogenGetProcAddress("glDispatchCompute");
_glptr_glDispatchCompute(num_groups_x, num_groups_y, num_groups_z);
}
PFN_glDispatchCompute _glptr_glDispatchCompute = _impl_glDispatchCompute;
static void GL_APIENTRY _impl_glDrawTransformFeedbackStreamInstanced (GLenum mode, GLuint id, GLuint stream, GLsizei instancecount) {
_glptr_glDrawTransformFeedbackStreamInstanced = (PFN_glDrawTransformFeedbackStreamInstanced)GalogenGetProcAddress("glDrawTransformFeedbackStreamInstanced");
_glptr_glDrawTransformFeedbackStreamInstanced(mode, id, stream, instancecount);
}
PFN_glDrawTransformFeedbackStreamInstanced _glptr_glDrawTransformFeedbackStreamInstanced = _impl_glDrawTransformFeedbackStreamInstanced;
static void GL_APIENTRY _impl_glTexStorage2D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width, GLsizei height) {
_glptr_glTexStorage2D = (PFN_glTexStorage2D)GalogenGetProcAddress("glTexStorage2D");
_glptr_glTexStorage2D(target, levels, internalformat, width, height);
}
PFN_glTexStorage2D _glptr_glTexStorage2D = _impl_glTexStorage2D;
static void GL_APIENTRY _impl_glTexStorage1D (GLenum target, GLsizei levels, GLenum internalformat, GLsizei width) {
_glptr_glTexStorage1D = (PFN_glTexStorage1D)GalogenGetProcAddress("glTexStorage1D");
_glptr_glTexStorage1D(target, levels, internalformat, width);
}
PFN_glTexStorage1D _glptr_glTexStorage1D = _impl_glTexStorage1D;
static void GL_APIENTRY _impl_glVertexBindingDivisor (GLuint bindingindex, GLuint divisor) {
_glptr_glVertexBindingDivisor = (PFN_glVertexBindingDivisor)GalogenGetProcAddress("glVertexBindingDivisor");
_glptr_glVertexBindingDivisor(bindingindex, divisor);
}
PFN_glVertexBindingDivisor _glptr_glVertexBindingDivisor = _impl_glVertexBindingDivisor;
static void GL_APIENTRY _impl_glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format) {
_glptr_glBindImageTexture = (PFN_glBindImageTexture)GalogenGetProcAddress("glBindImageTexture");
_glptr_glBindImageTexture(unit, texture, level, layered, layer, access, format);
}
PFN_glBindImageTexture _glptr_glBindImageTexture = _impl_glBindImageTexture;
static void GL_APIENTRY _impl_glGetInternalformativ (GLenum target, GLenum internalformat, GLenum pname, GLsizei bufSize, GLint * params) {
_glptr_glGetInternalformativ = (PFN_glGetInternalformativ)GalogenGetProcAddress("glGetInternalformativ");
_glptr_glGetInternalformativ(target, internalformat, pname, bufSize, params);
}
PFN_glGetInternalformativ _glptr_glGetInternalformativ = _impl_glGetInternalformativ;
static void GL_APIENTRY _impl_glDrawElementsInstancedBaseInstance (GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLuint baseinstance) {
_glptr_glDrawElementsInstancedBaseInstance = (PFN_glDrawElementsInstancedBaseInstance)GalogenGetProcAddress("glDrawElementsInstancedBaseInstance");
_glptr_glDrawElementsInstancedBaseInstance(mode, count, type, indices, instancecount, baseinstance);
}
PFN_glDrawElementsInstancedBaseInstance _glptr_glDrawElementsInstancedBaseInstance = _impl_glDrawElementsInstancedBaseInstance;
static void GL_APIENTRY _impl_glBufferStorage (GLenum target, GLsizeiptr size, const void * data, GLbitfield flags) {
_glptr_glBufferStorage = (PFN_glBufferStorage)GalogenGetProcAddress("glBufferStorage");
_glptr_glBufferStorage(target, size, data, flags);
}
PFN_glBufferStorage _glptr_glBufferStorage = _impl_glBufferStorage;
static void GL_APIENTRY _impl_glDrawArraysInstancedBaseInstance (GLenum mode, GLint first, GLsizei count, GLsizei instancecount, GLuint baseinstance) {
_glptr_glDrawArraysInstancedBaseInstance = (PFN_glDrawArraysInstancedBaseInstance)GalogenGetProcAddress("glDrawArraysInstancedBaseInstance");
_glptr_glDrawArraysInstancedBaseInstance(mode, first, count, instancecount, baseinstance);
}
PFN_glDrawArraysInstancedBaseInstance _glptr_glDrawArraysInstancedBaseInstance = _impl_glDrawArraysInstancedBaseInstance;
static void GL_APIENTRY _impl_glDepthRangeArrayv (GLuint first, GLsizei count, const GLdouble * v) {
_glptr_glDepthRangeArrayv = (PFN_glDepthRangeArrayv)GalogenGetProcAddress("glDepthRangeArrayv");
_glptr_glDepthRangeArrayv(first, count, v);
}
PFN_glDepthRangeArrayv _glptr_glDepthRangeArrayv = _impl_glDepthRangeArrayv;
static void GL_APIENTRY _impl_glNamedFramebufferParameteri (GLuint framebuffer, GLenum pname, GLint param) {
_glptr_glNamedFramebufferParameteri = (PFN_glNamedFramebufferParameteri)GalogenGetProcAddress("glNamedFramebufferParameteri");
_glptr_glNamedFramebufferParameteri(framebuffer, pname, param);
}
PFN_glNamedFramebufferParameteri _glptr_glNamedFramebufferParameteri = _impl_glNamedFramebufferParameteri;
static void GL_APIENTRY _impl_glScissorIndexedv (GLuint index, const GLint * v) {
_glptr_glScissorIndexedv = (PFN_glScissorIndexedv)GalogenGetProcAddress("glScissorIndexedv");
_glptr_glScissorIndexedv(index, v);
}
PFN_glScissorIndexedv _glptr_glScissorIndexedv = _impl_glScissorIndexedv;
static void GL_APIENTRY _impl_glViewportIndexedf (GLuint index, GLfloat x, GLfloat y, GLfloat w, GLfloat h) {
_glptr_glViewportIndexedf = (PFN_glViewportIndexedf)GalogenGetProcAddress("glViewportIndexedf");
_glptr_glViewportIndexedf(index, x, y, w, h);
}
PFN_glViewportIndexedf _glptr_glViewportIndexedf = _impl_glViewportIndexedf;
static void GL_APIENTRY _impl_glVertexAttribLPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer) {
_glptr_glVertexAttribLPointer = (PFN_glVertexAttribLPointer)GalogenGetProcAddress("glVertexAttribLPointer");
_glptr_glVertexAttribLPointer(index, size, type, stride, pointer);
}
PFN_glVertexAttribLPointer _glptr_glVertexAttribLPointer = _impl_glVertexAttribLPointer;
static void GL_APIENTRY _impl_glVertexAttribL4dv (GLuint index, const GLdouble * v) {
_glptr_glVertexAttribL4dv = (PFN_glVertexAttribL4dv)GalogenGetProcAddress("glVertexAttribL4dv");
_glptr_glVertexAttribL4dv(index, v);
}
PFN_glVertexAttribL4dv _glptr_glVertexAttribL4dv = _impl_glVertexAttribL4dv;
static void GL_APIENTRY _impl_glVertexAttribL3dv (GLuint index, const GLdouble * v) {
_glptr_glVertexAttribL3dv = (PFN_glVertexAttribL3dv)GalogenGetProcAddress("glVertexAttribL3dv");
_glptr_glVertexAttribL3dv(index, v);
}
PFN_glVertexAttribL3dv _glptr_glVertexAttribL3dv = _impl_glVertexAttribL3dv;
static void GL_APIENTRY _impl_glVertexAttribL2dv (GLuint index, const GLdouble * v) {
_glptr_glVertexAttribL2dv = (PFN_glVertexAttribL2dv)GalogenGetProcAddress("glVertexAttribL2dv");
_glptr_glVertexAttribL2dv(index, v);
}
PFN_glVertexAttribL2dv _glptr_glVertexAttribL2dv = _impl_glVertexAttribL2dv;
static void GL_APIENTRY _impl_glCreateTransformFeedbacks (GLsizei n, GLuint * ids) {
#ifdef LEAK_COUNTER
leak_transformfeedbacks += n;
PFN_glCreateTransformFeedbacks
#endif
_glptr_glCreateTransformFeedbacks = (PFN_glCreateTransformFeedbacks)GalogenGetProcAddress("glCreateTransformFeedbacks");
_glptr_glCreateTransformFeedbacks(n, ids);
}
PFN_glCreateTransformFeedbacks _glptr_glCreateTransformFeedbacks = _impl_glCreateTransformFeedbacks;
static void GL_APIENTRY _impl_glTexBufferRange (GLenum target, GLenum internalformat, GLuint buffer, GLintptr offset, GLsizeiptr size) {
_glptr_glTexBufferRange = (PFN_glTexBufferRange)GalogenGetProcAddress("glTexBufferRange");
_glptr_glTexBufferRange(target, internalformat, buffer, offset, size);
}
PFN_glTexBufferRange _glptr_glTexBufferRange = _impl_glTexBufferRange;
static void GL_APIENTRY _impl_glVertexAttribL4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) {
_glptr_glVertexAttribL4d = (PFN_glVertexAttribL4d)GalogenGetProcAddress("glVertexAttribL4d");
_glptr_glVertexAttribL4d(index, x, y, z, w);
}
PFN_glVertexAttribL4d _glptr_glVertexAttribL4d = _impl_glVertexAttribL4d;
static void GL_APIENTRY _impl_glVertexAttribL2d (GLuint index, GLdouble x, GLdouble y) {
_glptr_glVertexAttribL2d = (PFN_glVertexAttribL2d)GalogenGetProcAddress("glVertexAttribL2d");
_glptr_glVertexAttribL2d(index, x, y);
}
PFN_glVertexAttribL2d _glptr_glVertexAttribL2d = _impl_glVertexAttribL2d;
static void GL_APIENTRY _impl_glGetProgramPipelineInfoLog (GLuint pipeline, GLsizei bufSize, GLsizei * length, GLchar * infoLog) {
_glptr_glGetProgramPipelineInfoLog = (PFN_glGetProgramPipelineInfoLog)GalogenGetProcAddress("glGetProgramPipelineInfoLog");
_glptr_glGetProgramPipelineInfoLog(pipeline, bufSize, length, infoLog);
}
PFN_glGetProgramPipelineInfoLog _glptr_glGetProgramPipelineInfoLog = _impl_glGetProgramPipelineInfoLog;
static void GL_APIENTRY _impl_glValidateProgramPipeline (GLuint pipeline) {
_glptr_glValidateProgramPipeline = (PFN_glValidateProgramPipeline)GalogenGetProcAddress("glValidateProgramPipeline");
_glptr_glValidateProgramPipeline(pipeline);
}
PFN_glValidateProgramPipeline _glptr_glValidateProgramPipeline = _impl_glValidateProgramPipeline;
static void GL_APIENTRY _impl_glProgramUniformMatrix4x3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) {
_glptr_glProgramUniformMatrix4x3dv = (PFN_glProgramUniformMatrix4x3dv)GalogenGetProcAddress("glProgramUniformMatrix4x3dv");
_glptr_glProgramUniformMatrix4x3dv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix4x3dv _glptr_glProgramUniformMatrix4x3dv = _impl_glProgramUniformMatrix4x3dv;
static void GL_APIENTRY _impl_glProgramUniformMatrix3x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix3x4fv = (PFN_glProgramUniformMatrix3x4fv)GalogenGetProcAddress("glProgramUniformMatrix3x4fv");
_glptr_glProgramUniformMatrix3x4fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix3x4fv _glptr_glProgramUniformMatrix3x4fv = _impl_glProgramUniformMatrix3x4fv;
static void GL_APIENTRY _impl_glProgramUniformMatrix4x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix4x2fv = (PFN_glProgramUniformMatrix4x2fv)GalogenGetProcAddress("glProgramUniformMatrix4x2fv");
_glptr_glProgramUniformMatrix4x2fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix4x2fv _glptr_glProgramUniformMatrix4x2fv = _impl_glProgramUniformMatrix4x2fv;
static void GL_APIENTRY _impl_glProgramUniformMatrix2x4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix2x4fv = (PFN_glProgramUniformMatrix2x4fv)GalogenGetProcAddress("glProgramUniformMatrix2x4fv");
_glptr_glProgramUniformMatrix2x4fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix2x4fv _glptr_glProgramUniformMatrix2x4fv = _impl_glProgramUniformMatrix2x4fv;
static void GL_APIENTRY _impl_glPopDebugGroup () {
_glptr_glPopDebugGroup = (PFN_glPopDebugGroup)GalogenGetProcAddress("glPopDebugGroup");
_glptr_glPopDebugGroup();
}
PFN_glPopDebugGroup _glptr_glPopDebugGroup = _impl_glPopDebugGroup;
static void GL_APIENTRY _impl_glProgramUniformMatrix3x2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix3x2fv = (PFN_glProgramUniformMatrix3x2fv)GalogenGetProcAddress("glProgramUniformMatrix3x2fv");
_glptr_glProgramUniformMatrix3x2fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix3x2fv _glptr_glProgramUniformMatrix3x2fv = _impl_glProgramUniformMatrix3x2fv;
static void GL_APIENTRY _impl_glProgramUniformMatrix4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) {
_glptr_glProgramUniformMatrix4dv = (PFN_glProgramUniformMatrix4dv)GalogenGetProcAddress("glProgramUniformMatrix4dv");
_glptr_glProgramUniformMatrix4dv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix4dv _glptr_glProgramUniformMatrix4dv = _impl_glProgramUniformMatrix4dv;
static void GL_APIENTRY _impl_glTextureParameterf (GLuint texture, GLenum pname, GLfloat param) {
_glptr_glTextureParameterf = (PFN_glTextureParameterf)GalogenGetProcAddress("glTextureParameterf");
_glptr_glTextureParameterf(texture, pname, param);
}
PFN_glTextureParameterf _glptr_glTextureParameterf = _impl_glTextureParameterf;
static void GL_APIENTRY _impl_glProgramUniformMatrix3dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) {
_glptr_glProgramUniformMatrix3dv = (PFN_glProgramUniformMatrix3dv)GalogenGetProcAddress("glProgramUniformMatrix3dv");
_glptr_glProgramUniformMatrix3dv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix3dv _glptr_glProgramUniformMatrix3dv = _impl_glProgramUniformMatrix3dv;
static void GL_APIENTRY _impl_glProgramUniformMatrix4fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix4fv = (PFN_glProgramUniformMatrix4fv)GalogenGetProcAddress("glProgramUniformMatrix4fv");
_glptr_glProgramUniformMatrix4fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix4fv _glptr_glProgramUniformMatrix4fv = _impl_glProgramUniformMatrix4fv;
static void GL_APIENTRY _impl_glProgramUniformMatrix3fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix3fv = (PFN_glProgramUniformMatrix3fv)GalogenGetProcAddress("glProgramUniformMatrix3fv");
_glptr_glProgramUniformMatrix3fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix3fv _glptr_glProgramUniformMatrix3fv = _impl_glProgramUniformMatrix3fv;
static void GL_APIENTRY _impl_glProgramUniformMatrix2fv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) {
_glptr_glProgramUniformMatrix2fv = (PFN_glProgramUniformMatrix2fv)GalogenGetProcAddress("glProgramUniformMatrix2fv");
_glptr_glProgramUniformMatrix2fv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix2fv _glptr_glProgramUniformMatrix2fv = _impl_glProgramUniformMatrix2fv;
static void GL_APIENTRY _impl_glProgramUniform4dv (GLuint program, GLint location, GLsizei count, const GLdouble * value) {
_glptr_glProgramUniform4dv = (PFN_glProgramUniform4dv)GalogenGetProcAddress("glProgramUniform4dv");
_glptr_glProgramUniform4dv(program, location, count, value);
}
PFN_glProgramUniform4dv _glptr_glProgramUniform4dv = _impl_glProgramUniform4dv;
static void GL_APIENTRY _impl_glProgramUniform4d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2, GLdouble v3) {
_glptr_glProgramUniform4d = (PFN_glProgramUniform4d)GalogenGetProcAddress("glProgramUniform4d");
_glptr_glProgramUniform4d(program, location, v0, v1, v2, v3);
}
PFN_glProgramUniform4d _glptr_glProgramUniform4d = _impl_glProgramUniform4d;
static void GL_APIENTRY _impl_glProgramUniform4f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) {
_glptr_glProgramUniform4f = (PFN_glProgramUniform4f)GalogenGetProcAddress("glProgramUniform4f");
_glptr_glProgramUniform4f(program, location, v0, v1, v2, v3);
}
PFN_glProgramUniform4f _glptr_glProgramUniform4f = _impl_glProgramUniform4f;
static void GL_APIENTRY _impl_glProgramUniform4i (GLuint program, GLint location, GLint v0, GLint v1, GLint v2, GLint v3) {
_glptr_glProgramUniform4i = (PFN_glProgramUniform4i)GalogenGetProcAddress("glProgramUniform4i");
_glptr_glProgramUniform4i(program, location, v0, v1, v2, v3);
}
PFN_glProgramUniform4i _glptr_glProgramUniform4i = _impl_glProgramUniform4i;
static void GL_APIENTRY _impl_glProgramUniform3dv (GLuint program, GLint location, GLsizei count, const GLdouble * value) {
_glptr_glProgramUniform3dv = (PFN_glProgramUniform3dv)GalogenGetProcAddress("glProgramUniform3dv");
_glptr_glProgramUniform3dv(program, location, count, value);
}
PFN_glProgramUniform3dv _glptr_glProgramUniform3dv = _impl_glProgramUniform3dv;
static void GL_APIENTRY _impl_glProgramUniform3d (GLuint program, GLint location, GLdouble v0, GLdouble v1, GLdouble v2) {
_glptr_glProgramUniform3d = (PFN_glProgramUniform3d)GalogenGetProcAddress("glProgramUniform3d");
_glptr_glProgramUniform3d(program, location, v0, v1, v2);
}
PFN_glProgramUniform3d _glptr_glProgramUniform3d = _impl_glProgramUniform3d;
static void GL_APIENTRY _impl_glProgramUniformMatrix3x4dv (GLuint program, GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) {
_glptr_glProgramUniformMatrix3x4dv = (PFN_glProgramUniformMatrix3x4dv)GalogenGetProcAddress("glProgramUniformMatrix3x4dv");
_glptr_glProgramUniformMatrix3x4dv(program, location, count, transpose, value);
}
PFN_glProgramUniformMatrix3x4dv _glptr_glProgramUniformMatrix3x4dv = _impl_glProgramUniformMatrix3x4dv;
static void GL_APIENTRY _impl_glProgramUniform3fv (GLuint program, GLint location, GLsizei count, const GLfloat * value) {
_glptr_glProgramUniform3fv = (PFN_glProgramUniform3fv)GalogenGetProcAddress("glProgramUniform3fv");
_glptr_glProgramUniform3fv(program, location, count, value);
}
PFN_glProgramUniform3fv _glptr_glProgramUniform3fv = _impl_glProgramUniform3fv;
static void GL_APIENTRY _impl_glProgramUniform3f (GLuint program, GLint location, GLfloat v0, GLfloat v1, GLfloat v2) {
_glptr_glProgramUniform3f = (PFN_glProgramUniform3f)GalogenGetProcAddress("glProgramUniform3f");
_glptr_glProgramUniform3f(program, location, v0, v1, v2);
}
PFN_glProgramUniform3f _glptr_glProgramUniform3f = _impl_glProgramUniform3f;
static void GL_APIENTRY _impl_glProgramUniform2ui (GLuint program, GLint location, GLuint v0, GLuint v1) {
_glptr_glProgramUniform2ui = (PFN_glProgramUniform2ui)GalogenGetProcAddress("glProgramUniform2ui");
_glptr_glProgramUniform2ui(program, location, v0, v1);
}
PFN_glProgramUniform2ui _glptr_glProgramUniform2ui = _impl_glProgramUniform2ui;
static void GL_APIENTRY _impl_glProgramUniform2dv (GLuint program, GLint location, GLsizei count, const GLdouble * value) {
_glptr_glProgramUniform2dv = (PFN_glProgramUniform2dv)GalogenGetProcAddress("glProgramUniform2dv");
_glptr_glProgramUniform2dv(program, location, count, value);
}
PFN_glProgramUniform2dv _glptr_glProgramUniform2dv = _impl_glProgramUniform2dv;
static void * GL_APIENTRY _impl_glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access) {
_glptr_glMapNamedBufferRange = (PFN_glMapNamedBufferRange)GalogenGetProcAddress("glMapNamedBufferRange");
return _glptr_glMapNamedBufferRange(buffer, offset, length, access);
}
PFN_glMapNamedBufferRange _glptr_glMapNamedBufferRange = _impl_glMapNamedBufferRange;
static void GL_APIENTRY _impl_glProgramUniform2d (GLuint program, GLint location, GLdouble v0, GLdouble v1) {
_glptr_glProgramUniform2d = (PFN_glProgramUniform2d)GalogenGetProcAddress("glProgramUniform2d");
_glptr_glProgramUniform2d(program, location, v0, v1);
}
PFN_glProgramUniform2d _glptr_glProgramUniform2d = _impl_glProgramUniform2d;
static void GL_APIENTRY _impl_glProgramUniform2f (GLuint program, GLint location, GLfloat v0, GLfloat v1) {
_glptr_glProgramUniform2f = (PFN_glProgramUniform2f)GalogenGetProcAddress("glProgramUniform2f");
_glptr_glProgramUniform2f(program, location, v0, v1);
}
PFN_glProgramUniform2f _glptr_glProgramUniform2f = _impl_glProgramUniform2f;
static void GL_APIENTRY _impl_glVertexArrayVertexBuffer (GLuint vaobj, GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride) {
_glptr_glVertexArrayVertexBuffer = (PFN_glVertexArrayVertexBuffer)GalogenGetProcAddress("glVertexArrayVertexBuffer");
_glptr_glVertexArrayVertexBuffer(vaobj, bindingindex, buffer, offset, stride);
}
PFN_glVertexArrayVertexBuffer _glptr_glVertexArrayVertexBuffer = _impl_glVertexArrayVertexBuffer;
static void GL_APIENTRY _impl_glProgramUniform2i (GLuint program, GLint location, GLint v0, GLint v1) {
_glptr_glProgramUniform2i = (PFN_glProgramUniform2i)GalogenGetProcAddress("glProgramUniform2i");
_glptr_glProgramUniform2i(program, location, v0, v1);
}
PFN_glProgramUniform2i _glptr_glProgramUniform2i = _impl_glProgramUniform2i;
static void GL_APIENTRY _impl_glProgramUniform1uiv (GLuint program, GLint location, GLsizei count, const GLuint * value) {
_glptr_glProgramUniform1uiv = (PFN_glProgramUniform1uiv)GalogenGetProcAddress("glProgramUniform1uiv");
_glptr_glProgramUniform1uiv(program, location, count, value);
}
PFN_glProgramUniform1uiv _glptr_glProgramUniform1uiv = _impl_glProgramUniform1uiv;
static void GL_APIENTRY _impl_glProgramUniform1d (GLuint program, GLint location, GLdouble v0) {
_glptr_glProgramUniform1d = (PFN_glProgramUniform1d)GalogenGetProcAddress("glProgramUniform1d");