-
Notifications
You must be signed in to change notification settings - Fork 4
/
gl.c
6171 lines (4628 loc) · 242 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 <GL/gl.h>
#include <stddef.h>
#include <dlfcn.h>
#pragma GCC diagnostic ignored "-Warray-parameter"
static void* libgl = NULL;
static void (*proc_glAccum)(GLenum op, GLfloat value) = NULL;
static void (*proc_glActiveTexture)(GLenum texture) = NULL;
static void (*proc_glAlphaFunc)(GLenum func, GLfloat ref) = NULL;
static GLboolean (*proc_glAreTexturesResident)(GLsizei n, const GLuint * textures, GLboolean * residences) = NULL;
static void (*proc_glArrayElement)(GLint i) = NULL;
static void (*proc_glAttachShader)(GLuint program, GLuint shader) = NULL;
static void (*proc_glBegin)(GLenum mode) = NULL;
static void (*proc_glBeginConditionalRender)(GLuint id, GLenum mode) = NULL;
static void (*proc_glBeginQuery)(GLenum target, GLuint id) = NULL;
static void (*proc_glBeginQueryIndexed)(GLenum target, GLuint index, GLuint id) = NULL;
static void (*proc_glBeginTransformFeedback)(GLenum primitiveMode) = NULL;
static void (*proc_glBindAttribLocation)(GLuint program, GLuint index, const GLchar * name) = NULL;
static void (*proc_glBindBuffer)(GLenum target, GLuint buffer) = NULL;
static void (*proc_glBindBufferBase)(GLenum target, GLuint index, GLuint buffer) = NULL;
static void (*proc_glBindBufferRange)(GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size) = NULL;
static void (*proc_glBindFragDataLocation)(GLuint program, GLuint color, const GLchar * name) = NULL;
static void (*proc_glBindFragDataLocationIndexed)(GLuint program, GLuint colorNumber, GLuint index, const GLchar * name) = NULL;
static void (*proc_glBindFramebuffer)(GLenum target, GLuint framebuffer) = NULL;
static void (*proc_glBindRenderbuffer)(GLenum target, GLuint renderbuffer) = NULL;
static void (*proc_glBindSampler)(GLuint unit, GLuint sampler) = NULL;
static void (*proc_glBindTexture)(GLenum target, GLuint texture) = NULL;
static void (*proc_glBindTransformFeedback)(GLenum target, GLuint id) = NULL;
static void (*proc_glBindVertexArray)(GLuint array) = NULL;
static void (*proc_glBitmap)(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap) = NULL;
static void (*proc_glBlendColor)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) = NULL;
static void (*proc_glBlendEquation)(GLenum mode) = NULL;
static void (*proc_glBlendEquationSeparate)(GLenum modeRGB, GLenum modeAlpha) = NULL;
static void (*proc_glBlendEquationSeparatei)(GLuint buf, GLenum modeRGB, GLenum modeAlpha) = NULL;
static void (*proc_glBlendEquationi)(GLuint buf, GLenum mode) = NULL;
static void (*proc_glBlendFunc)(GLenum sfactor, GLenum dfactor) = NULL;
static void (*proc_glBlendFuncSeparate)(GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha) = NULL;
static void (*proc_glBlendFuncSeparatei)(GLuint buf, GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) = NULL;
static void (*proc_glBlendFunci)(GLuint buf, GLenum src, GLenum dst) = NULL;
static void (*proc_glBlitFramebuffer)(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) = NULL;
static void (*proc_glBufferData)(GLenum target, GLsizeiptr size, const void * data, GLenum usage) = NULL;
static void (*proc_glBufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, const void * data) = NULL;
static void (*proc_glCallList)(GLuint list) = NULL;
static void (*proc_glCallLists)(GLsizei n, GLenum type, const void * lists) = NULL;
static GLenum (*proc_glCheckFramebufferStatus)(GLenum target) = NULL;
static void (*proc_glClampColor)(GLenum target, GLenum clamp) = NULL;
static void (*proc_glClear)(GLbitfield mask) = NULL;
static void (*proc_glClearAccum)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) = NULL;
static void (*proc_glClearBufferfi)(GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil) = NULL;
static void (*proc_glClearBufferfv)(GLenum buffer, GLint drawbuffer, const GLfloat * value) = NULL;
static void (*proc_glClearBufferiv)(GLenum buffer, GLint drawbuffer, const GLint * value) = NULL;
static void (*proc_glClearBufferuiv)(GLenum buffer, GLint drawbuffer, const GLuint * value) = NULL;
static void (*proc_glClearColor)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) = NULL;
static void (*proc_glClearDepth)(GLdouble depth) = NULL;
static void (*proc_glClearIndex)(GLfloat c) = NULL;
static void (*proc_glClearStencil)(GLint s) = NULL;
static void (*proc_glClientActiveTexture)(GLenum texture) = NULL;
static GLenum (*proc_glClientWaitSync)(GLsync sync, GLbitfield flags, GLuint64 timeout) = NULL;
static void (*proc_glClipPlane)(GLenum plane, const GLdouble * equation) = NULL;
static void (*proc_glColor3b)(GLbyte red, GLbyte green, GLbyte blue) = NULL;
static void (*proc_glColor3bv)(const GLbyte * v) = NULL;
static void (*proc_glColor3d)(GLdouble red, GLdouble green, GLdouble blue) = NULL;
static void (*proc_glColor3dv)(const GLdouble * v) = NULL;
static void (*proc_glColor3f)(GLfloat red, GLfloat green, GLfloat blue) = NULL;
static void (*proc_glColor3fv)(const GLfloat * v) = NULL;
static void (*proc_glColor3i)(GLint red, GLint green, GLint blue) = NULL;
static void (*proc_glColor3iv)(const GLint * v) = NULL;
static void (*proc_glColor3s)(GLshort red, GLshort green, GLshort blue) = NULL;
static void (*proc_glColor3sv)(const GLshort * v) = NULL;
static void (*proc_glColor3ub)(GLubyte red, GLubyte green, GLubyte blue) = NULL;
static void (*proc_glColor3ubv)(const GLubyte * v) = NULL;
static void (*proc_glColor3ui)(GLuint red, GLuint green, GLuint blue) = NULL;
static void (*proc_glColor3uiv)(const GLuint * v) = NULL;
static void (*proc_glColor3us)(GLushort red, GLushort green, GLushort blue) = NULL;
static void (*proc_glColor3usv)(const GLushort * v) = NULL;
static void (*proc_glColor4b)(GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha) = NULL;
static void (*proc_glColor4bv)(const GLbyte * v) = NULL;
static void (*proc_glColor4d)(GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha) = NULL;
static void (*proc_glColor4dv)(const GLdouble * v) = NULL;
static void (*proc_glColor4f)(GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha) = NULL;
static void (*proc_glColor4fv)(const GLfloat * v) = NULL;
static void (*proc_glColor4i)(GLint red, GLint green, GLint blue, GLint alpha) = NULL;
static void (*proc_glColor4iv)(const GLint * v) = NULL;
static void (*proc_glColor4s)(GLshort red, GLshort green, GLshort blue, GLshort alpha) = NULL;
static void (*proc_glColor4sv)(const GLshort * v) = NULL;
static void (*proc_glColor4ub)(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) = NULL;
static void (*proc_glColor4ubv)(const GLubyte * v) = NULL;
static void (*proc_glColor4ui)(GLuint red, GLuint green, GLuint blue, GLuint alpha) = NULL;
static void (*proc_glColor4uiv)(const GLuint * v) = NULL;
static void (*proc_glColor4us)(GLushort red, GLushort green, GLushort blue, GLushort alpha) = NULL;
static void (*proc_glColor4usv)(const GLushort * v) = NULL;
static void (*proc_glColorMask)(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) = NULL;
static void (*proc_glColorMaski)(GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a) = NULL;
static void (*proc_glColorMaterial)(GLenum face, GLenum mode) = NULL;
static void (*proc_glColorP3ui)(GLenum type, GLuint color) = NULL;
static void (*proc_glColorP3uiv)(GLenum type, const GLuint * color) = NULL;
static void (*proc_glColorP4ui)(GLenum type, GLuint color) = NULL;
static void (*proc_glColorP4uiv)(GLenum type, const GLuint * color) = NULL;
static void (*proc_glColorPointer)(GLint size, GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glCompileShader)(GLuint shader) = NULL;
static void (*proc_glCompressedTexImage1D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const void * data) = NULL;
static void (*proc_glCompressedTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const void * data) = NULL;
static void (*proc_glCompressedTexImage3D)(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const void * data) = NULL;
static void (*proc_glCompressedTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const void * data) = NULL;
static void (*proc_glCompressedTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void * data) = NULL;
static void (*proc_glCompressedTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const void * data) = NULL;
static void (*proc_glCopyBufferSubData)(GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size) = NULL;
static void (*proc_glCopyPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum type) = NULL;
static void (*proc_glCopyTexImage1D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border) = NULL;
static void (*proc_glCopyTexImage2D)(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border) = NULL;
static void (*proc_glCopyTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width) = NULL;
static void (*proc_glCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) = NULL;
static void (*proc_glCopyTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height) = NULL;
static GLuint (*proc_glCreateProgram)(void) = NULL;
static GLuint (*proc_glCreateShader)(GLenum type) = NULL;
static void (*proc_glCullFace)(GLenum mode) = NULL;
static void (*proc_glDeleteBuffers)(GLsizei n, const GLuint * buffers) = NULL;
static void (*proc_glDeleteFramebuffers)(GLsizei n, const GLuint * framebuffers) = NULL;
static void (*proc_glDeleteLists)(GLuint list, GLsizei range) = NULL;
static void (*proc_glDeleteProgram)(GLuint program) = NULL;
static void (*proc_glDeleteQueries)(GLsizei n, const GLuint * ids) = NULL;
static void (*proc_glDeleteRenderbuffers)(GLsizei n, const GLuint * renderbuffers) = NULL;
static void (*proc_glDeleteSamplers)(GLsizei count, const GLuint * samplers) = NULL;
static void (*proc_glDeleteShader)(GLuint shader) = NULL;
static void (*proc_glDeleteSync)(GLsync sync) = NULL;
static void (*proc_glDeleteTextures)(GLsizei n, const GLuint * textures) = NULL;
static void (*proc_glDeleteTransformFeedbacks)(GLsizei n, const GLuint * ids) = NULL;
static void (*proc_glDeleteVertexArrays)(GLsizei n, const GLuint * arrays) = NULL;
static void (*proc_glDepthFunc)(GLenum func) = NULL;
static void (*proc_glDepthMask)(GLboolean flag) = NULL;
static void (*proc_glDepthRange)(GLdouble n, GLdouble f) = NULL;
static void (*proc_glDetachShader)(GLuint program, GLuint shader) = NULL;
static void (*proc_glDisable)(GLenum cap) = NULL;
static void (*proc_glDisableClientState)(GLenum array) = NULL;
static void (*proc_glDisableVertexAttribArray)(GLuint index) = NULL;
static void (*proc_glDisablei)(GLenum target, GLuint index) = NULL;
static void (*proc_glDrawArrays)(GLenum mode, GLint first, GLsizei count) = NULL;
static void (*proc_glDrawArraysIndirect)(GLenum mode, const void * indirect) = NULL;
static void (*proc_glDrawArraysInstanced)(GLenum mode, GLint first, GLsizei count, GLsizei instancecount) = NULL;
static void (*proc_glDrawBuffer)(GLenum buf) = NULL;
static void (*proc_glDrawBuffers)(GLsizei n, const GLenum * bufs) = NULL;
static void (*proc_glDrawElements)(GLenum mode, GLsizei count, GLenum type, const void * indices) = NULL;
static void (*proc_glDrawElementsBaseVertex)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLint basevertex) = NULL;
static void (*proc_glDrawElementsIndirect)(GLenum mode, GLenum type, const void * indirect) = NULL;
static void (*proc_glDrawElementsInstanced)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount) = NULL;
static void (*proc_glDrawElementsInstancedBaseVertex)(GLenum mode, GLsizei count, GLenum type, const void * indices, GLsizei instancecount, GLint basevertex) = NULL;
static void (*proc_glDrawPixels)(GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glDrawRangeElements)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices) = NULL;
static void (*proc_glDrawRangeElementsBaseVertex)(GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const void * indices, GLint basevertex) = NULL;
static void (*proc_glDrawTransformFeedback)(GLenum mode, GLuint id) = NULL;
static void (*proc_glDrawTransformFeedbackStream)(GLenum mode, GLuint id, GLuint stream) = NULL;
static void (*proc_glEdgeFlag)(GLboolean flag) = NULL;
static void (*proc_glEdgeFlagPointer)(GLsizei stride, const void * pointer) = NULL;
static void (*proc_glEdgeFlagv)(const GLboolean * flag) = NULL;
static void (*proc_glEnable)(GLenum cap) = NULL;
static void (*proc_glEnableClientState)(GLenum array) = NULL;
static void (*proc_glEnableVertexAttribArray)(GLuint index) = NULL;
static void (*proc_glEnablei)(GLenum target, GLuint index) = NULL;
static void (*proc_glEnd)(void) = NULL;
static void (*proc_glEndConditionalRender)(void) = NULL;
static void (*proc_glEndList)(void) = NULL;
static void (*proc_glEndQuery)(GLenum target) = NULL;
static void (*proc_glEndQueryIndexed)(GLenum target, GLuint index) = NULL;
static void (*proc_glEndTransformFeedback)(void) = NULL;
static void (*proc_glEvalCoord1d)(GLdouble u) = NULL;
static void (*proc_glEvalCoord1dv)(const GLdouble * u) = NULL;
static void (*proc_glEvalCoord1f)(GLfloat u) = NULL;
static void (*proc_glEvalCoord1fv)(const GLfloat * u) = NULL;
static void (*proc_glEvalCoord2d)(GLdouble u, GLdouble v) = NULL;
static void (*proc_glEvalCoord2dv)(const GLdouble * u) = NULL;
static void (*proc_glEvalCoord2f)(GLfloat u, GLfloat v) = NULL;
static void (*proc_glEvalCoord2fv)(const GLfloat * u) = NULL;
static void (*proc_glEvalMesh1)(GLenum mode, GLint i1, GLint i2) = NULL;
static void (*proc_glEvalMesh2)(GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2) = NULL;
static void (*proc_glEvalPoint1)(GLint i) = NULL;
static void (*proc_glEvalPoint2)(GLint i, GLint j) = NULL;
static void (*proc_glFeedbackBuffer)(GLsizei size, GLenum type, GLfloat * buffer) = NULL;
static GLsync (*proc_glFenceSync)(GLenum condition, GLbitfield flags) = NULL;
static void (*proc_glFinish)(void) = NULL;
static void (*proc_glFlush)(void) = NULL;
static void (*proc_glFlushMappedBufferRange)(GLenum target, GLintptr offset, GLsizeiptr length) = NULL;
static void (*proc_glFogCoordPointer)(GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glFogCoordd)(GLdouble coord) = NULL;
static void (*proc_glFogCoorddv)(const GLdouble * coord) = NULL;
static void (*proc_glFogCoordf)(GLfloat coord) = NULL;
static void (*proc_glFogCoordfv)(const GLfloat * coord) = NULL;
static void (*proc_glFogf)(GLenum pname, GLfloat param) = NULL;
static void (*proc_glFogfv)(GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glFogi)(GLenum pname, GLint param) = NULL;
static void (*proc_glFogiv)(GLenum pname, const GLint * params) = NULL;
static void (*proc_glFramebufferRenderbuffer)(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) = NULL;
static void (*proc_glFramebufferTexture)(GLenum target, GLenum attachment, GLuint texture, GLint level) = NULL;
static void (*proc_glFramebufferTexture1D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) = NULL;
static void (*proc_glFramebufferTexture2D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level) = NULL;
static void (*proc_glFramebufferTexture3D)(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset) = NULL;
static void (*proc_glFramebufferTextureLayer)(GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer) = NULL;
static void (*proc_glFrontFace)(GLenum mode) = NULL;
static void (*proc_glFrustum)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) = NULL;
static void (*proc_glGenBuffers)(GLsizei n, GLuint * buffers) = NULL;
static void (*proc_glGenFramebuffers)(GLsizei n, GLuint * framebuffers) = NULL;
static GLuint (*proc_glGenLists)(GLsizei range) = NULL;
static void (*proc_glGenQueries)(GLsizei n, GLuint * ids) = NULL;
static void (*proc_glGenRenderbuffers)(GLsizei n, GLuint * renderbuffers) = NULL;
static void (*proc_glGenSamplers)(GLsizei count, GLuint * samplers) = NULL;
static void (*proc_glGenTextures)(GLsizei n, GLuint * textures) = NULL;
static void (*proc_glGenTransformFeedbacks)(GLsizei n, GLuint * ids) = NULL;
static void (*proc_glGenVertexArrays)(GLsizei n, GLuint * arrays) = NULL;
static void (*proc_glGenerateMipmap)(GLenum target) = NULL;
static void (*proc_glGetActiveAttrib)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name) = NULL;
static void (*proc_glGetActiveSubroutineName)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei * length, GLchar * name) = NULL;
static void (*proc_glGetActiveSubroutineUniformName)(GLuint program, GLenum shadertype, GLuint index, GLsizei bufSize, GLsizei * length, GLchar * name) = NULL;
static void (*proc_glGetActiveSubroutineUniformiv)(GLuint program, GLenum shadertype, GLuint index, GLenum pname, GLint * values) = NULL;
static void (*proc_glGetActiveUniform)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLint * size, GLenum * type, GLchar * name) = NULL;
static void (*proc_glGetActiveUniformBlockName)(GLuint program, GLuint uniformBlockIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformBlockName) = NULL;
static void (*proc_glGetActiveUniformBlockiv)(GLuint program, GLuint uniformBlockIndex, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetActiveUniformName)(GLuint program, GLuint uniformIndex, GLsizei bufSize, GLsizei * length, GLchar * uniformName) = NULL;
static void (*proc_glGetActiveUniformsiv)(GLuint program, GLsizei uniformCount, const GLuint * uniformIndices, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetAttachedShaders)(GLuint program, GLsizei maxCount, GLsizei * count, GLuint * shaders) = NULL;
static GLint (*proc_glGetAttribLocation)(GLuint program, const GLchar * name) = NULL;
static void (*proc_glGetBooleani_v)(GLenum target, GLuint index, GLboolean * data) = NULL;
static void (*proc_glGetBooleanv)(GLenum pname, GLboolean * data) = NULL;
static void (*proc_glGetBufferParameteri64v)(GLenum target, GLenum pname, GLint64 * params) = NULL;
static void (*proc_glGetBufferParameteriv)(GLenum target, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetBufferPointerv)(GLenum target, GLenum pname, void ** params) = NULL;
static void (*proc_glGetBufferSubData)(GLenum target, GLintptr offset, GLsizeiptr size, void * data) = NULL;
static void (*proc_glGetClipPlane)(GLenum plane, GLdouble * equation) = NULL;
static void (*proc_glGetCompressedTexImage)(GLenum target, GLint level, void * img) = NULL;
static void (*proc_glGetDoublev)(GLenum pname, GLdouble * data) = NULL;
static GLenum (*proc_glGetError)(void) = NULL;
static void (*proc_glGetFloatv)(GLenum pname, GLfloat * data) = NULL;
static GLint (*proc_glGetFragDataIndex)(GLuint program, const GLchar * name) = NULL;
static GLint (*proc_glGetFragDataLocation)(GLuint program, const GLchar * name) = NULL;
static void (*proc_glGetFramebufferAttachmentParameteriv)(GLenum target, GLenum attachment, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetInteger64i_v)(GLenum target, GLuint index, GLint64 * data) = NULL;
static void (*proc_glGetInteger64v)(GLenum pname, GLint64 * data) = NULL;
static void (*proc_glGetIntegeri_v)(GLenum target, GLuint index, GLint * data) = NULL;
static void (*proc_glGetIntegerv)(GLenum pname, GLint * data) = NULL;
static void (*proc_glGetLightfv)(GLenum light, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetLightiv)(GLenum light, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetMapdv)(GLenum target, GLenum query, GLdouble * v) = NULL;
static void (*proc_glGetMapfv)(GLenum target, GLenum query, GLfloat * v) = NULL;
static void (*proc_glGetMapiv)(GLenum target, GLenum query, GLint * v) = NULL;
static void (*proc_glGetMaterialfv)(GLenum face, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetMaterialiv)(GLenum face, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetMultisamplefv)(GLenum pname, GLuint index, GLfloat * val) = NULL;
static void (*proc_glGetPixelMapfv)(GLenum map, GLfloat * values) = NULL;
static void (*proc_glGetPixelMapuiv)(GLenum map, GLuint * values) = NULL;
static void (*proc_glGetPixelMapusv)(GLenum map, GLushort * values) = NULL;
static void (*proc_glGetPointerv)(GLenum pname, void ** params) = NULL;
static void (*proc_glGetPolygonStipple)(GLubyte * mask) = NULL;
static void (*proc_glGetProgramInfoLog)(GLuint program, GLsizei bufSize, GLsizei * length, GLchar * infoLog) = NULL;
static void (*proc_glGetProgramStageiv)(GLuint program, GLenum shadertype, GLenum pname, GLint * values) = NULL;
static void (*proc_glGetProgramiv)(GLuint program, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetQueryIndexediv)(GLenum target, GLuint index, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetQueryObjecti64v)(GLuint id, GLenum pname, GLint64 * params) = NULL;
static void (*proc_glGetQueryObjectiv)(GLuint id, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetQueryObjectui64v)(GLuint id, GLenum pname, GLuint64 * params) = NULL;
static void (*proc_glGetQueryObjectuiv)(GLuint id, GLenum pname, GLuint * params) = NULL;
static void (*proc_glGetQueryiv)(GLenum target, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetRenderbufferParameteriv)(GLenum target, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetSamplerParameterIiv)(GLuint sampler, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetSamplerParameterIuiv)(GLuint sampler, GLenum pname, GLuint * params) = NULL;
static void (*proc_glGetSamplerParameterfv)(GLuint sampler, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetSamplerParameteriv)(GLuint sampler, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetShaderInfoLog)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * infoLog) = NULL;
static void (*proc_glGetShaderSource)(GLuint shader, GLsizei bufSize, GLsizei * length, GLchar * source) = NULL;
static void (*proc_glGetShaderiv)(GLuint shader, GLenum pname, GLint * params) = NULL;
static const GLubyte * (*proc_glGetString)(GLenum name) = NULL;
static const GLubyte * (*proc_glGetStringi)(GLenum name, GLuint index) = NULL;
static GLuint (*proc_glGetSubroutineIndex)(GLuint program, GLenum shadertype, const GLchar * name) = NULL;
static GLint (*proc_glGetSubroutineUniformLocation)(GLuint program, GLenum shadertype, const GLchar * name) = NULL;
static void (*proc_glGetSynciv)(GLsync sync, GLenum pname, GLsizei count, GLsizei * length, GLint * values) = NULL;
static void (*proc_glGetTexEnvfv)(GLenum target, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetTexEnviv)(GLenum target, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetTexGendv)(GLenum coord, GLenum pname, GLdouble * params) = NULL;
static void (*proc_glGetTexGenfv)(GLenum coord, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetTexGeniv)(GLenum coord, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetTexImage)(GLenum target, GLint level, GLenum format, GLenum type, void * pixels) = NULL;
static void (*proc_glGetTexLevelParameterfv)(GLenum target, GLint level, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetTexLevelParameteriv)(GLenum target, GLint level, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetTexParameterIiv)(GLenum target, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetTexParameterIuiv)(GLenum target, GLenum pname, GLuint * params) = NULL;
static void (*proc_glGetTexParameterfv)(GLenum target, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetTexParameteriv)(GLenum target, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetTransformFeedbackVarying)(GLuint program, GLuint index, GLsizei bufSize, GLsizei * length, GLsizei * size, GLenum * type, GLchar * name) = NULL;
static GLuint (*proc_glGetUniformBlockIndex)(GLuint program, const GLchar * uniformBlockName) = NULL;
static void (*proc_glGetUniformIndices)(GLuint program, GLsizei uniformCount, const GLchar *const* uniformNames, GLuint * uniformIndices) = NULL;
static GLint (*proc_glGetUniformLocation)(GLuint program, const GLchar * name) = NULL;
static void (*proc_glGetUniformSubroutineuiv)(GLenum shadertype, GLint location, GLuint * params) = NULL;
static void (*proc_glGetUniformdv)(GLuint program, GLint location, GLdouble * params) = NULL;
static void (*proc_glGetUniformfv)(GLuint program, GLint location, GLfloat * params) = NULL;
static void (*proc_glGetUniformiv)(GLuint program, GLint location, GLint * params) = NULL;
static void (*proc_glGetUniformuiv)(GLuint program, GLint location, GLuint * params) = NULL;
static void (*proc_glGetVertexAttribIiv)(GLuint index, GLenum pname, GLint * params) = NULL;
static void (*proc_glGetVertexAttribIuiv)(GLuint index, GLenum pname, GLuint * params) = NULL;
static void (*proc_glGetVertexAttribPointerv)(GLuint index, GLenum pname, void ** pointer) = NULL;
static void (*proc_glGetVertexAttribdv)(GLuint index, GLenum pname, GLdouble * params) = NULL;
static void (*proc_glGetVertexAttribfv)(GLuint index, GLenum pname, GLfloat * params) = NULL;
static void (*proc_glGetVertexAttribiv)(GLuint index, GLenum pname, GLint * params) = NULL;
static void (*proc_glHint)(GLenum target, GLenum mode) = NULL;
static void (*proc_glIndexMask)(GLuint mask) = NULL;
static void (*proc_glIndexPointer)(GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glIndexd)(GLdouble c) = NULL;
static void (*proc_glIndexdv)(const GLdouble * c) = NULL;
static void (*proc_glIndexf)(GLfloat c) = NULL;
static void (*proc_glIndexfv)(const GLfloat * c) = NULL;
static void (*proc_glIndexi)(GLint c) = NULL;
static void (*proc_glIndexiv)(const GLint * c) = NULL;
static void (*proc_glIndexs)(GLshort c) = NULL;
static void (*proc_glIndexsv)(const GLshort * c) = NULL;
static void (*proc_glIndexub)(GLubyte c) = NULL;
static void (*proc_glIndexubv)(const GLubyte * c) = NULL;
static void (*proc_glInitNames)(void) = NULL;
static void (*proc_glInterleavedArrays)(GLenum format, GLsizei stride, const void * pointer) = NULL;
static GLboolean (*proc_glIsBuffer)(GLuint buffer) = NULL;
static GLboolean (*proc_glIsEnabled)(GLenum cap) = NULL;
static GLboolean (*proc_glIsEnabledi)(GLenum target, GLuint index) = NULL;
static GLboolean (*proc_glIsFramebuffer)(GLuint framebuffer) = NULL;
static GLboolean (*proc_glIsList)(GLuint list) = NULL;
static GLboolean (*proc_glIsProgram)(GLuint program) = NULL;
static GLboolean (*proc_glIsQuery)(GLuint id) = NULL;
static GLboolean (*proc_glIsRenderbuffer)(GLuint renderbuffer) = NULL;
static GLboolean (*proc_glIsSampler)(GLuint sampler) = NULL;
static GLboolean (*proc_glIsShader)(GLuint shader) = NULL;
static GLboolean (*proc_glIsSync)(GLsync sync) = NULL;
static GLboolean (*proc_glIsTexture)(GLuint texture) = NULL;
static GLboolean (*proc_glIsTransformFeedback)(GLuint id) = NULL;
static GLboolean (*proc_glIsVertexArray)(GLuint array) = NULL;
static void (*proc_glLightModelf)(GLenum pname, GLfloat param) = NULL;
static void (*proc_glLightModelfv)(GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glLightModeli)(GLenum pname, GLint param) = NULL;
static void (*proc_glLightModeliv)(GLenum pname, const GLint * params) = NULL;
static void (*proc_glLightf)(GLenum light, GLenum pname, GLfloat param) = NULL;
static void (*proc_glLightfv)(GLenum light, GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glLighti)(GLenum light, GLenum pname, GLint param) = NULL;
static void (*proc_glLightiv)(GLenum light, GLenum pname, const GLint * params) = NULL;
static void (*proc_glLineStipple)(GLint factor, GLushort pattern) = NULL;
static void (*proc_glLineWidth)(GLfloat width) = NULL;
static void (*proc_glLinkProgram)(GLuint program) = NULL;
static void (*proc_glListBase)(GLuint base) = NULL;
static void (*proc_glLoadIdentity)(void) = NULL;
static void (*proc_glLoadMatrixd)(const GLdouble * m) = NULL;
static void (*proc_glLoadMatrixf)(const GLfloat * m) = NULL;
static void (*proc_glLoadName)(GLuint name) = NULL;
static void (*proc_glLoadTransposeMatrixd)(const GLdouble * m) = NULL;
static void (*proc_glLoadTransposeMatrixf)(const GLfloat * m) = NULL;
static void (*proc_glLogicOp)(GLenum opcode) = NULL;
static void (*proc_glMap1d)(GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble * points) = NULL;
static void (*proc_glMap1f)(GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat * points) = NULL;
static void (*proc_glMap2d)(GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble * points) = NULL;
static void (*proc_glMap2f)(GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat * points) = NULL;
static void * (*proc_glMapBuffer)(GLenum target, GLenum access) = NULL;
static void * (*proc_glMapBufferRange)(GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access) = NULL;
static void (*proc_glMapGrid1d)(GLint un, GLdouble u1, GLdouble u2) = NULL;
static void (*proc_glMapGrid1f)(GLint un, GLfloat u1, GLfloat u2) = NULL;
static void (*proc_glMapGrid2d)(GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2) = NULL;
static void (*proc_glMapGrid2f)(GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2) = NULL;
static void (*proc_glMaterialf)(GLenum face, GLenum pname, GLfloat param) = NULL;
static void (*proc_glMaterialfv)(GLenum face, GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glMateriali)(GLenum face, GLenum pname, GLint param) = NULL;
static void (*proc_glMaterialiv)(GLenum face, GLenum pname, const GLint * params) = NULL;
static void (*proc_glMatrixMode)(GLenum mode) = NULL;
static void (*proc_glMinSampleShading)(GLfloat value) = NULL;
static void (*proc_glMultMatrixd)(const GLdouble * m) = NULL;
static void (*proc_glMultMatrixf)(const GLfloat * m) = NULL;
static void (*proc_glMultTransposeMatrixd)(const GLdouble * m) = NULL;
static void (*proc_glMultTransposeMatrixf)(const GLfloat * m) = NULL;
static void (*proc_glMultiDrawArrays)(GLenum mode, const GLint * first, const GLsizei * count, GLsizei drawcount) = NULL;
static void (*proc_glMultiDrawElements)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount) = NULL;
static void (*proc_glMultiDrawElementsBaseVertex)(GLenum mode, const GLsizei * count, GLenum type, const void *const* indices, GLsizei drawcount, const GLint * basevertex) = NULL;
static void (*proc_glMultiTexCoord1d)(GLenum target, GLdouble s) = NULL;
static void (*proc_glMultiTexCoord1dv)(GLenum target, const GLdouble * v) = NULL;
static void (*proc_glMultiTexCoord1f)(GLenum target, GLfloat s) = NULL;
static void (*proc_glMultiTexCoord1fv)(GLenum target, const GLfloat * v) = NULL;
static void (*proc_glMultiTexCoord1i)(GLenum target, GLint s) = NULL;
static void (*proc_glMultiTexCoord1iv)(GLenum target, const GLint * v) = NULL;
static void (*proc_glMultiTexCoord1s)(GLenum target, GLshort s) = NULL;
static void (*proc_glMultiTexCoord1sv)(GLenum target, const GLshort * v) = NULL;
static void (*proc_glMultiTexCoord2d)(GLenum target, GLdouble s, GLdouble t) = NULL;
static void (*proc_glMultiTexCoord2dv)(GLenum target, const GLdouble * v) = NULL;
static void (*proc_glMultiTexCoord2f)(GLenum target, GLfloat s, GLfloat t) = NULL;
static void (*proc_glMultiTexCoord2fv)(GLenum target, const GLfloat * v) = NULL;
static void (*proc_glMultiTexCoord2i)(GLenum target, GLint s, GLint t) = NULL;
static void (*proc_glMultiTexCoord2iv)(GLenum target, const GLint * v) = NULL;
static void (*proc_glMultiTexCoord2s)(GLenum target, GLshort s, GLshort t) = NULL;
static void (*proc_glMultiTexCoord2sv)(GLenum target, const GLshort * v) = NULL;
static void (*proc_glMultiTexCoord3d)(GLenum target, GLdouble s, GLdouble t, GLdouble r) = NULL;
static void (*proc_glMultiTexCoord3dv)(GLenum target, const GLdouble * v) = NULL;
static void (*proc_glMultiTexCoord3f)(GLenum target, GLfloat s, GLfloat t, GLfloat r) = NULL;
static void (*proc_glMultiTexCoord3fv)(GLenum target, const GLfloat * v) = NULL;
static void (*proc_glMultiTexCoord3i)(GLenum target, GLint s, GLint t, GLint r) = NULL;
static void (*proc_glMultiTexCoord3iv)(GLenum target, const GLint * v) = NULL;
static void (*proc_glMultiTexCoord3s)(GLenum target, GLshort s, GLshort t, GLshort r) = NULL;
static void (*proc_glMultiTexCoord3sv)(GLenum target, const GLshort * v) = NULL;
static void (*proc_glMultiTexCoord4d)(GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q) = NULL;
static void (*proc_glMultiTexCoord4dv)(GLenum target, const GLdouble * v) = NULL;
static void (*proc_glMultiTexCoord4f)(GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q) = NULL;
static void (*proc_glMultiTexCoord4fv)(GLenum target, const GLfloat * v) = NULL;
static void (*proc_glMultiTexCoord4i)(GLenum target, GLint s, GLint t, GLint r, GLint q) = NULL;
static void (*proc_glMultiTexCoord4iv)(GLenum target, const GLint * v) = NULL;
static void (*proc_glMultiTexCoord4s)(GLenum target, GLshort s, GLshort t, GLshort r, GLshort q) = NULL;
static void (*proc_glMultiTexCoord4sv)(GLenum target, const GLshort * v) = NULL;
static void (*proc_glMultiTexCoordP1ui)(GLenum texture, GLenum type, GLuint coords) = NULL;
static void (*proc_glMultiTexCoordP1uiv)(GLenum texture, GLenum type, const GLuint * coords) = NULL;
static void (*proc_glMultiTexCoordP2ui)(GLenum texture, GLenum type, GLuint coords) = NULL;
static void (*proc_glMultiTexCoordP2uiv)(GLenum texture, GLenum type, const GLuint * coords) = NULL;
static void (*proc_glMultiTexCoordP3ui)(GLenum texture, GLenum type, GLuint coords) = NULL;
static void (*proc_glMultiTexCoordP3uiv)(GLenum texture, GLenum type, const GLuint * coords) = NULL;
static void (*proc_glMultiTexCoordP4ui)(GLenum texture, GLenum type, GLuint coords) = NULL;
static void (*proc_glMultiTexCoordP4uiv)(GLenum texture, GLenum type, const GLuint * coords) = NULL;
static void (*proc_glNewList)(GLuint list, GLenum mode) = NULL;
static void (*proc_glNormal3b)(GLbyte nx, GLbyte ny, GLbyte nz) = NULL;
static void (*proc_glNormal3bv)(const GLbyte * v) = NULL;
static void (*proc_glNormal3d)(GLdouble nx, GLdouble ny, GLdouble nz) = NULL;
static void (*proc_glNormal3dv)(const GLdouble * v) = NULL;
static void (*proc_glNormal3f)(GLfloat nx, GLfloat ny, GLfloat nz) = NULL;
static void (*proc_glNormal3fv)(const GLfloat * v) = NULL;
static void (*proc_glNormal3i)(GLint nx, GLint ny, GLint nz) = NULL;
static void (*proc_glNormal3iv)(const GLint * v) = NULL;
static void (*proc_glNormal3s)(GLshort nx, GLshort ny, GLshort nz) = NULL;
static void (*proc_glNormal3sv)(const GLshort * v) = NULL;
static void (*proc_glNormalP3ui)(GLenum type, GLuint coords) = NULL;
static void (*proc_glNormalP3uiv)(GLenum type, const GLuint * coords) = NULL;
static void (*proc_glNormalPointer)(GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glOrtho)(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar) = NULL;
static void (*proc_glPassThrough)(GLfloat token) = NULL;
static void (*proc_glPatchParameterfv)(GLenum pname, const GLfloat * values) = NULL;
static void (*proc_glPatchParameteri)(GLenum pname, GLint value) = NULL;
static void (*proc_glPauseTransformFeedback)(void) = NULL;
static void (*proc_glPixelMapfv)(GLenum map, GLsizei mapsize, const GLfloat * values) = NULL;
static void (*proc_glPixelMapuiv)(GLenum map, GLsizei mapsize, const GLuint * values) = NULL;
static void (*proc_glPixelMapusv)(GLenum map, GLsizei mapsize, const GLushort * values) = NULL;
static void (*proc_glPixelStoref)(GLenum pname, GLfloat param) = NULL;
static void (*proc_glPixelStorei)(GLenum pname, GLint param) = NULL;
static void (*proc_glPixelTransferf)(GLenum pname, GLfloat param) = NULL;
static void (*proc_glPixelTransferi)(GLenum pname, GLint param) = NULL;
static void (*proc_glPixelZoom)(GLfloat xfactor, GLfloat yfactor) = NULL;
static void (*proc_glPointParameterf)(GLenum pname, GLfloat param) = NULL;
static void (*proc_glPointParameterfv)(GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glPointParameteri)(GLenum pname, GLint param) = NULL;
static void (*proc_glPointParameteriv)(GLenum pname, const GLint * params) = NULL;
static void (*proc_glPointSize)(GLfloat size) = NULL;
static void (*proc_glPolygonMode)(GLenum face, GLenum mode) = NULL;
static void (*proc_glPolygonOffset)(GLfloat factor, GLfloat units) = NULL;
static void (*proc_glPolygonStipple)(const GLubyte * mask) = NULL;
static void (*proc_glPopAttrib)(void) = NULL;
static void (*proc_glPopClientAttrib)(void) = NULL;
static void (*proc_glPopMatrix)(void) = NULL;
static void (*proc_glPopName)(void) = NULL;
static void (*proc_glPrimitiveRestartIndex)(GLuint index) = NULL;
static void (*proc_glPrioritizeTextures)(GLsizei n, const GLuint * textures, const GLfloat * priorities) = NULL;
static void (*proc_glProvokingVertex)(GLenum mode) = NULL;
static void (*proc_glPushAttrib)(GLbitfield mask) = NULL;
static void (*proc_glPushClientAttrib)(GLbitfield mask) = NULL;
static void (*proc_glPushMatrix)(void) = NULL;
static void (*proc_glPushName)(GLuint name) = NULL;
static void (*proc_glQueryCounter)(GLuint id, GLenum target) = NULL;
static void (*proc_glRasterPos2d)(GLdouble x, GLdouble y) = NULL;
static void (*proc_glRasterPos2dv)(const GLdouble * v) = NULL;
static void (*proc_glRasterPos2f)(GLfloat x, GLfloat y) = NULL;
static void (*proc_glRasterPos2fv)(const GLfloat * v) = NULL;
static void (*proc_glRasterPos2i)(GLint x, GLint y) = NULL;
static void (*proc_glRasterPos2iv)(const GLint * v) = NULL;
static void (*proc_glRasterPos2s)(GLshort x, GLshort y) = NULL;
static void (*proc_glRasterPos2sv)(const GLshort * v) = NULL;
static void (*proc_glRasterPos3d)(GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glRasterPos3dv)(const GLdouble * v) = NULL;
static void (*proc_glRasterPos3f)(GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glRasterPos3fv)(const GLfloat * v) = NULL;
static void (*proc_glRasterPos3i)(GLint x, GLint y, GLint z) = NULL;
static void (*proc_glRasterPos3iv)(const GLint * v) = NULL;
static void (*proc_glRasterPos3s)(GLshort x, GLshort y, GLshort z) = NULL;
static void (*proc_glRasterPos3sv)(const GLshort * v) = NULL;
static void (*proc_glRasterPos4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) = NULL;
static void (*proc_glRasterPos4dv)(const GLdouble * v) = NULL;
static void (*proc_glRasterPos4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) = NULL;
static void (*proc_glRasterPos4fv)(const GLfloat * v) = NULL;
static void (*proc_glRasterPos4i)(GLint x, GLint y, GLint z, GLint w) = NULL;
static void (*proc_glRasterPos4iv)(const GLint * v) = NULL;
static void (*proc_glRasterPos4s)(GLshort x, GLshort y, GLshort z, GLshort w) = NULL;
static void (*proc_glRasterPos4sv)(const GLshort * v) = NULL;
static void (*proc_glReadBuffer)(GLenum src) = NULL;
static void (*proc_glReadPixels)(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, void * pixels) = NULL;
static void (*proc_glRectd)(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2) = NULL;
static void (*proc_glRectdv)(const GLdouble * v1, const GLdouble * v2) = NULL;
static void (*proc_glRectf)(GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2) = NULL;
static void (*proc_glRectfv)(const GLfloat * v1, const GLfloat * v2) = NULL;
static void (*proc_glRecti)(GLint x1, GLint y1, GLint x2, GLint y2) = NULL;
static void (*proc_glRectiv)(const GLint * v1, const GLint * v2) = NULL;
static void (*proc_glRects)(GLshort x1, GLshort y1, GLshort x2, GLshort y2) = NULL;
static void (*proc_glRectsv)(const GLshort * v1, const GLshort * v2) = NULL;
static GLint (*proc_glRenderMode)(GLenum mode) = NULL;
static void (*proc_glRenderbufferStorage)(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) = NULL;
static void (*proc_glRenderbufferStorageMultisample)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) = NULL;
static void (*proc_glResumeTransformFeedback)(void) = NULL;
static void (*proc_glRotated)(GLdouble angle, GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glRotatef)(GLfloat angle, GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glSampleCoverage)(GLfloat value, GLboolean invert) = NULL;
static void (*proc_glSampleMaski)(GLuint maskNumber, GLbitfield mask) = NULL;
static void (*proc_glSamplerParameterIiv)(GLuint sampler, GLenum pname, const GLint * param) = NULL;
static void (*proc_glSamplerParameterIuiv)(GLuint sampler, GLenum pname, const GLuint * param) = NULL;
static void (*proc_glSamplerParameterf)(GLuint sampler, GLenum pname, GLfloat param) = NULL;
static void (*proc_glSamplerParameterfv)(GLuint sampler, GLenum pname, const GLfloat * param) = NULL;
static void (*proc_glSamplerParameteri)(GLuint sampler, GLenum pname, GLint param) = NULL;
static void (*proc_glSamplerParameteriv)(GLuint sampler, GLenum pname, const GLint * param) = NULL;
static void (*proc_glScaled)(GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glScalef)(GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glScissor)(GLint x, GLint y, GLsizei width, GLsizei height) = NULL;
static void (*proc_glSecondaryColor3b)(GLbyte red, GLbyte green, GLbyte blue) = NULL;
static void (*proc_glSecondaryColor3bv)(const GLbyte * v) = NULL;
static void (*proc_glSecondaryColor3d)(GLdouble red, GLdouble green, GLdouble blue) = NULL;
static void (*proc_glSecondaryColor3dv)(const GLdouble * v) = NULL;
static void (*proc_glSecondaryColor3f)(GLfloat red, GLfloat green, GLfloat blue) = NULL;
static void (*proc_glSecondaryColor3fv)(const GLfloat * v) = NULL;
static void (*proc_glSecondaryColor3i)(GLint red, GLint green, GLint blue) = NULL;
static void (*proc_glSecondaryColor3iv)(const GLint * v) = NULL;
static void (*proc_glSecondaryColor3s)(GLshort red, GLshort green, GLshort blue) = NULL;
static void (*proc_glSecondaryColor3sv)(const GLshort * v) = NULL;
static void (*proc_glSecondaryColor3ub)(GLubyte red, GLubyte green, GLubyte blue) = NULL;
static void (*proc_glSecondaryColor3ubv)(const GLubyte * v) = NULL;
static void (*proc_glSecondaryColor3ui)(GLuint red, GLuint green, GLuint blue) = NULL;
static void (*proc_glSecondaryColor3uiv)(const GLuint * v) = NULL;
static void (*proc_glSecondaryColor3us)(GLushort red, GLushort green, GLushort blue) = NULL;
static void (*proc_glSecondaryColor3usv)(const GLushort * v) = NULL;
static void (*proc_glSecondaryColorP3ui)(GLenum type, GLuint color) = NULL;
static void (*proc_glSecondaryColorP3uiv)(GLenum type, const GLuint * color) = NULL;
static void (*proc_glSecondaryColorPointer)(GLint size, GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glSelectBuffer)(GLsizei size, GLuint * buffer) = NULL;
static void (*proc_glShadeModel)(GLenum mode) = NULL;
static void (*proc_glShaderSource)(GLuint shader, GLsizei count, const GLchar *const* string, const GLint * length) = NULL;
static void (*proc_glStencilFunc)(GLenum func, GLint ref, GLuint mask) = NULL;
static void (*proc_glStencilFuncSeparate)(GLenum face, GLenum func, GLint ref, GLuint mask) = NULL;
static void (*proc_glStencilMask)(GLuint mask) = NULL;
static void (*proc_glStencilMaskSeparate)(GLenum face, GLuint mask) = NULL;
static void (*proc_glStencilOp)(GLenum fail, GLenum zfail, GLenum zpass) = NULL;
static void (*proc_glStencilOpSeparate)(GLenum face, GLenum sfail, GLenum dpfail, GLenum dppass) = NULL;
static void (*proc_glTexBuffer)(GLenum target, GLenum internalformat, GLuint buffer) = NULL;
static void (*proc_glTexCoord1d)(GLdouble s) = NULL;
static void (*proc_glTexCoord1dv)(const GLdouble * v) = NULL;
static void (*proc_glTexCoord1f)(GLfloat s) = NULL;
static void (*proc_glTexCoord1fv)(const GLfloat * v) = NULL;
static void (*proc_glTexCoord1i)(GLint s) = NULL;
static void (*proc_glTexCoord1iv)(const GLint * v) = NULL;
static void (*proc_glTexCoord1s)(GLshort s) = NULL;
static void (*proc_glTexCoord1sv)(const GLshort * v) = NULL;
static void (*proc_glTexCoord2d)(GLdouble s, GLdouble t) = NULL;
static void (*proc_glTexCoord2dv)(const GLdouble * v) = NULL;
static void (*proc_glTexCoord2f)(GLfloat s, GLfloat t) = NULL;
static void (*proc_glTexCoord2fv)(const GLfloat * v) = NULL;
static void (*proc_glTexCoord2i)(GLint s, GLint t) = NULL;
static void (*proc_glTexCoord2iv)(const GLint * v) = NULL;
static void (*proc_glTexCoord2s)(GLshort s, GLshort t) = NULL;
static void (*proc_glTexCoord2sv)(const GLshort * v) = NULL;
static void (*proc_glTexCoord3d)(GLdouble s, GLdouble t, GLdouble r) = NULL;
static void (*proc_glTexCoord3dv)(const GLdouble * v) = NULL;
static void (*proc_glTexCoord3f)(GLfloat s, GLfloat t, GLfloat r) = NULL;
static void (*proc_glTexCoord3fv)(const GLfloat * v) = NULL;
static void (*proc_glTexCoord3i)(GLint s, GLint t, GLint r) = NULL;
static void (*proc_glTexCoord3iv)(const GLint * v) = NULL;
static void (*proc_glTexCoord3s)(GLshort s, GLshort t, GLshort r) = NULL;
static void (*proc_glTexCoord3sv)(const GLshort * v) = NULL;
static void (*proc_glTexCoord4d)(GLdouble s, GLdouble t, GLdouble r, GLdouble q) = NULL;
static void (*proc_glTexCoord4dv)(const GLdouble * v) = NULL;
static void (*proc_glTexCoord4f)(GLfloat s, GLfloat t, GLfloat r, GLfloat q) = NULL;
static void (*proc_glTexCoord4fv)(const GLfloat * v) = NULL;
static void (*proc_glTexCoord4i)(GLint s, GLint t, GLint r, GLint q) = NULL;
static void (*proc_glTexCoord4iv)(const GLint * v) = NULL;
static void (*proc_glTexCoord4s)(GLshort s, GLshort t, GLshort r, GLshort q) = NULL;
static void (*proc_glTexCoord4sv)(const GLshort * v) = NULL;
static void (*proc_glTexCoordP1ui)(GLenum type, GLuint coords) = NULL;
static void (*proc_glTexCoordP1uiv)(GLenum type, const GLuint * coords) = NULL;
static void (*proc_glTexCoordP2ui)(GLenum type, GLuint coords) = NULL;
static void (*proc_glTexCoordP2uiv)(GLenum type, const GLuint * coords) = NULL;
static void (*proc_glTexCoordP3ui)(GLenum type, GLuint coords) = NULL;
static void (*proc_glTexCoordP3uiv)(GLenum type, const GLuint * coords) = NULL;
static void (*proc_glTexCoordP4ui)(GLenum type, GLuint coords) = NULL;
static void (*proc_glTexCoordP4uiv)(GLenum type, const GLuint * coords) = NULL;
static void (*proc_glTexCoordPointer)(GLint size, GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glTexEnvf)(GLenum target, GLenum pname, GLfloat param) = NULL;
static void (*proc_glTexEnvfv)(GLenum target, GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glTexEnvi)(GLenum target, GLenum pname, GLint param) = NULL;
static void (*proc_glTexEnviv)(GLenum target, GLenum pname, const GLint * params) = NULL;
static void (*proc_glTexGend)(GLenum coord, GLenum pname, GLdouble param) = NULL;
static void (*proc_glTexGendv)(GLenum coord, GLenum pname, const GLdouble * params) = NULL;
static void (*proc_glTexGenf)(GLenum coord, GLenum pname, GLfloat param) = NULL;
static void (*proc_glTexGenfv)(GLenum coord, GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glTexGeni)(GLenum coord, GLenum pname, GLint param) = NULL;
static void (*proc_glTexGeniv)(GLenum coord, GLenum pname, const GLint * params) = NULL;
static void (*proc_glTexImage1D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glTexImage2D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glTexImage2DMultisample)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLboolean fixedsamplelocations) = NULL;
static void (*proc_glTexImage3D)(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glTexImage3DMultisample)(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLboolean fixedsamplelocations) = NULL;
static void (*proc_glTexParameterIiv)(GLenum target, GLenum pname, const GLint * params) = NULL;
static void (*proc_glTexParameterIuiv)(GLenum target, GLenum pname, const GLuint * params) = NULL;
static void (*proc_glTexParameterf)(GLenum target, GLenum pname, GLfloat param) = NULL;
static void (*proc_glTexParameterfv)(GLenum target, GLenum pname, const GLfloat * params) = NULL;
static void (*proc_glTexParameteri)(GLenum target, GLenum pname, GLint param) = NULL;
static void (*proc_glTexParameteriv)(GLenum target, GLenum pname, const GLint * params) = NULL;
static void (*proc_glTexSubImage1D)(GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glTexSubImage3D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const void * pixels) = NULL;
static void (*proc_glTransformFeedbackVaryings)(GLuint program, GLsizei count, const GLchar *const* varyings, GLenum bufferMode) = NULL;
static void (*proc_glTranslated)(GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glTranslatef)(GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glUniform1d)(GLint location, GLdouble x) = NULL;
static void (*proc_glUniform1dv)(GLint location, GLsizei count, const GLdouble * value) = NULL;
static void (*proc_glUniform1f)(GLint location, GLfloat v0) = NULL;
static void (*proc_glUniform1fv)(GLint location, GLsizei count, const GLfloat * value) = NULL;
static void (*proc_glUniform1i)(GLint location, GLint v0) = NULL;
static void (*proc_glUniform1iv)(GLint location, GLsizei count, const GLint * value) = NULL;
static void (*proc_glUniform1ui)(GLint location, GLuint v0) = NULL;
static void (*proc_glUniform1uiv)(GLint location, GLsizei count, const GLuint * value) = NULL;
static void (*proc_glUniform2d)(GLint location, GLdouble x, GLdouble y) = NULL;
static void (*proc_glUniform2dv)(GLint location, GLsizei count, const GLdouble * value) = NULL;
static void (*proc_glUniform2f)(GLint location, GLfloat v0, GLfloat v1) = NULL;
static void (*proc_glUniform2fv)(GLint location, GLsizei count, const GLfloat * value) = NULL;
static void (*proc_glUniform2i)(GLint location, GLint v0, GLint v1) = NULL;
static void (*proc_glUniform2iv)(GLint location, GLsizei count, const GLint * value) = NULL;
static void (*proc_glUniform2ui)(GLint location, GLuint v0, GLuint v1) = NULL;
static void (*proc_glUniform2uiv)(GLint location, GLsizei count, const GLuint * value) = NULL;
static void (*proc_glUniform3d)(GLint location, GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glUniform3dv)(GLint location, GLsizei count, const GLdouble * value) = NULL;
static void (*proc_glUniform3f)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2) = NULL;
static void (*proc_glUniform3fv)(GLint location, GLsizei count, const GLfloat * value) = NULL;
static void (*proc_glUniform3i)(GLint location, GLint v0, GLint v1, GLint v2) = NULL;
static void (*proc_glUniform3iv)(GLint location, GLsizei count, const GLint * value) = NULL;
static void (*proc_glUniform3ui)(GLint location, GLuint v0, GLuint v1, GLuint v2) = NULL;
static void (*proc_glUniform3uiv)(GLint location, GLsizei count, const GLuint * value) = NULL;
static void (*proc_glUniform4d)(GLint location, GLdouble x, GLdouble y, GLdouble z, GLdouble w) = NULL;
static void (*proc_glUniform4dv)(GLint location, GLsizei count, const GLdouble * value) = NULL;
static void (*proc_glUniform4f)(GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3) = NULL;
static void (*proc_glUniform4fv)(GLint location, GLsizei count, const GLfloat * value) = NULL;
static void (*proc_glUniform4i)(GLint location, GLint v0, GLint v1, GLint v2, GLint v3) = NULL;
static void (*proc_glUniform4iv)(GLint location, GLsizei count, const GLint * value) = NULL;
static void (*proc_glUniform4ui)(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3) = NULL;
static void (*proc_glUniform4uiv)(GLint location, GLsizei count, const GLuint * value) = NULL;
static void (*proc_glUniformBlockBinding)(GLuint program, GLuint uniformBlockIndex, GLuint uniformBlockBinding) = NULL;
static void (*proc_glUniformMatrix2dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix2x3dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix2x3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix2x4dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix2x4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix3dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix3x2dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix3x2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix3x4dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix3x4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix4dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix4fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix4x2dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix4x2fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformMatrix4x3dv)(GLint location, GLsizei count, GLboolean transpose, const GLdouble * value) = NULL;
static void (*proc_glUniformMatrix4x3fv)(GLint location, GLsizei count, GLboolean transpose, const GLfloat * value) = NULL;
static void (*proc_glUniformSubroutinesuiv)(GLenum shadertype, GLsizei count, const GLuint * indices) = NULL;
static GLboolean (*proc_glUnmapBuffer)(GLenum target) = NULL;
static void (*proc_glUseProgram)(GLuint program) = NULL;
static void (*proc_glValidateProgram)(GLuint program) = NULL;
static void (*proc_glVertex2d)(GLdouble x, GLdouble y) = NULL;
static void (*proc_glVertex2dv)(const GLdouble * v) = NULL;
static void (*proc_glVertex2f)(GLfloat x, GLfloat y) = NULL;
static void (*proc_glVertex2fv)(const GLfloat * v) = NULL;
static void (*proc_glVertex2i)(GLint x, GLint y) = NULL;
static void (*proc_glVertex2iv)(const GLint * v) = NULL;
static void (*proc_glVertex2s)(GLshort x, GLshort y) = NULL;
static void (*proc_glVertex2sv)(const GLshort * v) = NULL;
static void (*proc_glVertex3d)(GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glVertex3dv)(const GLdouble * v) = NULL;
static void (*proc_glVertex3f)(GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glVertex3fv)(const GLfloat * v) = NULL;
static void (*proc_glVertex3i)(GLint x, GLint y, GLint z) = NULL;
static void (*proc_glVertex3iv)(const GLint * v) = NULL;
static void (*proc_glVertex3s)(GLshort x, GLshort y, GLshort z) = NULL;
static void (*proc_glVertex3sv)(const GLshort * v) = NULL;
static void (*proc_glVertex4d)(GLdouble x, GLdouble y, GLdouble z, GLdouble w) = NULL;
static void (*proc_glVertex4dv)(const GLdouble * v) = NULL;
static void (*proc_glVertex4f)(GLfloat x, GLfloat y, GLfloat z, GLfloat w) = NULL;
static void (*proc_glVertex4fv)(const GLfloat * v) = NULL;
static void (*proc_glVertex4i)(GLint x, GLint y, GLint z, GLint w) = NULL;
static void (*proc_glVertex4iv)(const GLint * v) = NULL;
static void (*proc_glVertex4s)(GLshort x, GLshort y, GLshort z, GLshort w) = NULL;
static void (*proc_glVertex4sv)(const GLshort * v) = NULL;
static void (*proc_glVertexAttrib1d)(GLuint index, GLdouble x) = NULL;
static void (*proc_glVertexAttrib1dv)(GLuint index, const GLdouble * v) = NULL;
static void (*proc_glVertexAttrib1f)(GLuint index, GLfloat x) = NULL;
static void (*proc_glVertexAttrib1fv)(GLuint index, const GLfloat * v) = NULL;
static void (*proc_glVertexAttrib1s)(GLuint index, GLshort x) = NULL;
static void (*proc_glVertexAttrib1sv)(GLuint index, const GLshort * v) = NULL;
static void (*proc_glVertexAttrib2d)(GLuint index, GLdouble x, GLdouble y) = NULL;
static void (*proc_glVertexAttrib2dv)(GLuint index, const GLdouble * v) = NULL;
static void (*proc_glVertexAttrib2f)(GLuint index, GLfloat x, GLfloat y) = NULL;
static void (*proc_glVertexAttrib2fv)(GLuint index, const GLfloat * v) = NULL;
static void (*proc_glVertexAttrib2s)(GLuint index, GLshort x, GLshort y) = NULL;
static void (*proc_glVertexAttrib2sv)(GLuint index, const GLshort * v) = NULL;
static void (*proc_glVertexAttrib3d)(GLuint index, GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glVertexAttrib3dv)(GLuint index, const GLdouble * v) = NULL;
static void (*proc_glVertexAttrib3f)(GLuint index, GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glVertexAttrib3fv)(GLuint index, const GLfloat * v) = NULL;
static void (*proc_glVertexAttrib3s)(GLuint index, GLshort x, GLshort y, GLshort z) = NULL;
static void (*proc_glVertexAttrib3sv)(GLuint index, const GLshort * v) = NULL;
static void (*proc_glVertexAttrib4Nbv)(GLuint index, const GLbyte * v) = NULL;
static void (*proc_glVertexAttrib4Niv)(GLuint index, const GLint * v) = NULL;
static void (*proc_glVertexAttrib4Nsv)(GLuint index, const GLshort * v) = NULL;
static void (*proc_glVertexAttrib4Nub)(GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w) = NULL;
static void (*proc_glVertexAttrib4Nubv)(GLuint index, const GLubyte * v) = NULL;
static void (*proc_glVertexAttrib4Nuiv)(GLuint index, const GLuint * v) = NULL;
static void (*proc_glVertexAttrib4Nusv)(GLuint index, const GLushort * v) = NULL;
static void (*proc_glVertexAttrib4bv)(GLuint index, const GLbyte * v) = NULL;
static void (*proc_glVertexAttrib4d)(GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w) = NULL;
static void (*proc_glVertexAttrib4dv)(GLuint index, const GLdouble * v) = NULL;
static void (*proc_glVertexAttrib4f)(GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w) = NULL;
static void (*proc_glVertexAttrib4fv)(GLuint index, const GLfloat * v) = NULL;
static void (*proc_glVertexAttrib4iv)(GLuint index, const GLint * v) = NULL;
static void (*proc_glVertexAttrib4s)(GLuint index, GLshort x, GLshort y, GLshort z, GLshort w) = NULL;
static void (*proc_glVertexAttrib4sv)(GLuint index, const GLshort * v) = NULL;
static void (*proc_glVertexAttrib4ubv)(GLuint index, const GLubyte * v) = NULL;
static void (*proc_glVertexAttrib4uiv)(GLuint index, const GLuint * v) = NULL;
static void (*proc_glVertexAttrib4usv)(GLuint index, const GLushort * v) = NULL;
static void (*proc_glVertexAttribDivisor)(GLuint index, GLuint divisor) = NULL;
static void (*proc_glVertexAttribI1i)(GLuint index, GLint x) = NULL;
static void (*proc_glVertexAttribI1iv)(GLuint index, const GLint * v) = NULL;
static void (*proc_glVertexAttribI1ui)(GLuint index, GLuint x) = NULL;
static void (*proc_glVertexAttribI1uiv)(GLuint index, const GLuint * v) = NULL;
static void (*proc_glVertexAttribI2i)(GLuint index, GLint x, GLint y) = NULL;
static void (*proc_glVertexAttribI2iv)(GLuint index, const GLint * v) = NULL;
static void (*proc_glVertexAttribI2ui)(GLuint index, GLuint x, GLuint y) = NULL;
static void (*proc_glVertexAttribI2uiv)(GLuint index, const GLuint * v) = NULL;
static void (*proc_glVertexAttribI3i)(GLuint index, GLint x, GLint y, GLint z) = NULL;
static void (*proc_glVertexAttribI3iv)(GLuint index, const GLint * v) = NULL;
static void (*proc_glVertexAttribI3ui)(GLuint index, GLuint x, GLuint y, GLuint z) = NULL;
static void (*proc_glVertexAttribI3uiv)(GLuint index, const GLuint * v) = NULL;
static void (*proc_glVertexAttribI4bv)(GLuint index, const GLbyte * v) = NULL;
static void (*proc_glVertexAttribI4i)(GLuint index, GLint x, GLint y, GLint z, GLint w) = NULL;
static void (*proc_glVertexAttribI4iv)(GLuint index, const GLint * v) = NULL;
static void (*proc_glVertexAttribI4sv)(GLuint index, const GLshort * v) = NULL;
static void (*proc_glVertexAttribI4ubv)(GLuint index, const GLubyte * v) = NULL;
static void (*proc_glVertexAttribI4ui)(GLuint index, GLuint x, GLuint y, GLuint z, GLuint w) = NULL;
static void (*proc_glVertexAttribI4uiv)(GLuint index, const GLuint * v) = NULL;
static void (*proc_glVertexAttribI4usv)(GLuint index, const GLushort * v) = NULL;
static void (*proc_glVertexAttribIPointer)(GLuint index, GLint size, GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glVertexAttribP1ui)(GLuint index, GLenum type, GLboolean normalized, GLuint value) = NULL;
static void (*proc_glVertexAttribP1uiv)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value) = NULL;
static void (*proc_glVertexAttribP2ui)(GLuint index, GLenum type, GLboolean normalized, GLuint value) = NULL;
static void (*proc_glVertexAttribP2uiv)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value) = NULL;
static void (*proc_glVertexAttribP3ui)(GLuint index, GLenum type, GLboolean normalized, GLuint value) = NULL;
static void (*proc_glVertexAttribP3uiv)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value) = NULL;
static void (*proc_glVertexAttribP4ui)(GLuint index, GLenum type, GLboolean normalized, GLuint value) = NULL;
static void (*proc_glVertexAttribP4uiv)(GLuint index, GLenum type, GLboolean normalized, const GLuint * value) = NULL;
static void (*proc_glVertexAttribPointer)(GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glVertexP2ui)(GLenum type, GLuint value) = NULL;
static void (*proc_glVertexP2uiv)(GLenum type, const GLuint * value) = NULL;
static void (*proc_glVertexP3ui)(GLenum type, GLuint value) = NULL;
static void (*proc_glVertexP3uiv)(GLenum type, const GLuint * value) = NULL;
static void (*proc_glVertexP4ui)(GLenum type, GLuint value) = NULL;
static void (*proc_glVertexP4uiv)(GLenum type, const GLuint * value) = NULL;
static void (*proc_glVertexPointer)(GLint size, GLenum type, GLsizei stride, const void * pointer) = NULL;
static void (*proc_glViewport)(GLint x, GLint y, GLsizei width, GLsizei height) = NULL;
static void (*proc_glWaitSync)(GLsync sync, GLbitfield flags, GLuint64 timeout) = NULL;
static void (*proc_glWindowPos2d)(GLdouble x, GLdouble y) = NULL;
static void (*proc_glWindowPos2dv)(const GLdouble * v) = NULL;
static void (*proc_glWindowPos2f)(GLfloat x, GLfloat y) = NULL;
static void (*proc_glWindowPos2fv)(const GLfloat * v) = NULL;
static void (*proc_glWindowPos2i)(GLint x, GLint y) = NULL;
static void (*proc_glWindowPos2iv)(const GLint * v) = NULL;
static void (*proc_glWindowPos2s)(GLshort x, GLshort y) = NULL;
static void (*proc_glWindowPos2sv)(const GLshort * v) = NULL;
static void (*proc_glWindowPos3d)(GLdouble x, GLdouble y, GLdouble z) = NULL;
static void (*proc_glWindowPos3dv)(const GLdouble * v) = NULL;
static void (*proc_glWindowPos3f)(GLfloat x, GLfloat y, GLfloat z) = NULL;
static void (*proc_glWindowPos3fv)(const GLfloat * v) = NULL;
static void (*proc_glWindowPos3i)(GLint x, GLint y, GLint z) = NULL;
static void (*proc_glWindowPos3iv)(const GLint * v) = NULL;
static void (*proc_glWindowPos3s)(GLshort x, GLshort y, GLshort z) = NULL;
static void (*proc_glWindowPos3sv)(const GLshort * v) = NULL;
static void load_gl_shims(void) {
libgl = cosmo_dlopen("libgl.so", RTLD_NOW | RTLD_GLOBAL);
proc_glAccum = cosmo_dltramp(cosmo_dlsym(libgl, "glAccum"));
proc_glActiveTexture = cosmo_dltramp(cosmo_dlsym(libgl, "glActiveTexture"));
proc_glAlphaFunc = cosmo_dltramp(cosmo_dlsym(libgl, "glAlphaFunc"));
proc_glAreTexturesResident = cosmo_dltramp(cosmo_dlsym(libgl, "glAreTexturesResident"));
proc_glArrayElement = cosmo_dltramp(cosmo_dlsym(libgl, "glArrayElement"));
proc_glAttachShader = cosmo_dltramp(cosmo_dlsym(libgl, "glAttachShader"));
proc_glBegin = cosmo_dltramp(cosmo_dlsym(libgl, "glBegin"));
proc_glBeginConditionalRender = cosmo_dltramp(cosmo_dlsym(libgl, "glBeginConditionalRender"));
proc_glBeginQuery = cosmo_dltramp(cosmo_dlsym(libgl, "glBeginQuery"));
proc_glBeginQueryIndexed = cosmo_dltramp(cosmo_dlsym(libgl, "glBeginQueryIndexed"));
proc_glBeginTransformFeedback = cosmo_dltramp(cosmo_dlsym(libgl, "glBeginTransformFeedback"));
proc_glBindAttribLocation = cosmo_dltramp(cosmo_dlsym(libgl, "glBindAttribLocation"));
proc_glBindBuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glBindBuffer"));
proc_glBindBufferBase = cosmo_dltramp(cosmo_dlsym(libgl, "glBindBufferBase"));
proc_glBindBufferRange = cosmo_dltramp(cosmo_dlsym(libgl, "glBindBufferRange"));
proc_glBindFragDataLocation = cosmo_dltramp(cosmo_dlsym(libgl, "glBindFragDataLocation"));
proc_glBindFragDataLocationIndexed = cosmo_dltramp(cosmo_dlsym(libgl, "glBindFragDataLocationIndexed"));
proc_glBindFramebuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glBindFramebuffer"));
proc_glBindRenderbuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glBindRenderbuffer"));
proc_glBindSampler = cosmo_dltramp(cosmo_dlsym(libgl, "glBindSampler"));
proc_glBindTexture = cosmo_dltramp(cosmo_dlsym(libgl, "glBindTexture"));
proc_glBindTransformFeedback = cosmo_dltramp(cosmo_dlsym(libgl, "glBindTransformFeedback"));
proc_glBindVertexArray = cosmo_dltramp(cosmo_dlsym(libgl, "glBindVertexArray"));
proc_glBitmap = cosmo_dltramp(cosmo_dlsym(libgl, "glBitmap"));
proc_glBlendColor = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendColor"));
proc_glBlendEquation = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendEquation"));
proc_glBlendEquationSeparate = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendEquationSeparate"));
proc_glBlendEquationSeparatei = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendEquationSeparatei"));
proc_glBlendEquationi = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendEquationi"));
proc_glBlendFunc = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendFunc"));
proc_glBlendFuncSeparate = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendFuncSeparate"));
proc_glBlendFuncSeparatei = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendFuncSeparatei"));
proc_glBlendFunci = cosmo_dltramp(cosmo_dlsym(libgl, "glBlendFunci"));
proc_glBlitFramebuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glBlitFramebuffer"));
proc_glBufferData = cosmo_dltramp(cosmo_dlsym(libgl, "glBufferData"));
proc_glBufferSubData = cosmo_dltramp(cosmo_dlsym(libgl, "glBufferSubData"));
proc_glCallList = cosmo_dltramp(cosmo_dlsym(libgl, "glCallList"));
proc_glCallLists = cosmo_dltramp(cosmo_dlsym(libgl, "glCallLists"));
proc_glCheckFramebufferStatus = cosmo_dltramp(cosmo_dlsym(libgl, "glCheckFramebufferStatus"));
proc_glClampColor = cosmo_dltramp(cosmo_dlsym(libgl, "glClampColor"));
proc_glClear = cosmo_dltramp(cosmo_dlsym(libgl, "glClear"));
proc_glClearAccum = cosmo_dltramp(cosmo_dlsym(libgl, "glClearAccum"));
proc_glClearBufferfi = cosmo_dltramp(cosmo_dlsym(libgl, "glClearBufferfi"));
proc_glClearBufferfv = cosmo_dltramp(cosmo_dlsym(libgl, "glClearBufferfv"));
proc_glClearBufferiv = cosmo_dltramp(cosmo_dlsym(libgl, "glClearBufferiv"));
proc_glClearBufferuiv = cosmo_dltramp(cosmo_dlsym(libgl, "glClearBufferuiv"));
proc_glClearColor = cosmo_dltramp(cosmo_dlsym(libgl, "glClearColor"));
proc_glClearDepth = cosmo_dltramp(cosmo_dlsym(libgl, "glClearDepth"));
proc_glClearIndex = cosmo_dltramp(cosmo_dlsym(libgl, "glClearIndex"));
proc_glClearStencil = cosmo_dltramp(cosmo_dlsym(libgl, "glClearStencil"));
proc_glClientActiveTexture = cosmo_dltramp(cosmo_dlsym(libgl, "glClientActiveTexture"));
proc_glClientWaitSync = cosmo_dltramp(cosmo_dlsym(libgl, "glClientWaitSync"));
proc_glClipPlane = cosmo_dltramp(cosmo_dlsym(libgl, "glClipPlane"));
proc_glColor3b = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3b"));
proc_glColor3bv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3bv"));
proc_glColor3d = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3d"));
proc_glColor3dv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3dv"));
proc_glColor3f = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3f"));
proc_glColor3fv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3fv"));
proc_glColor3i = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3i"));
proc_glColor3iv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3iv"));
proc_glColor3s = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3s"));
proc_glColor3sv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3sv"));
proc_glColor3ub = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3ub"));
proc_glColor3ubv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3ubv"));
proc_glColor3ui = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3ui"));
proc_glColor3uiv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3uiv"));
proc_glColor3us = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3us"));
proc_glColor3usv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor3usv"));
proc_glColor4b = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4b"));
proc_glColor4bv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4bv"));
proc_glColor4d = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4d"));
proc_glColor4dv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4dv"));
proc_glColor4f = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4f"));
proc_glColor4fv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4fv"));
proc_glColor4i = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4i"));
proc_glColor4iv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4iv"));
proc_glColor4s = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4s"));
proc_glColor4sv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4sv"));
proc_glColor4ub = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4ub"));
proc_glColor4ubv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4ubv"));
proc_glColor4ui = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4ui"));
proc_glColor4uiv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4uiv"));
proc_glColor4us = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4us"));
proc_glColor4usv = cosmo_dltramp(cosmo_dlsym(libgl, "glColor4usv"));
proc_glColorMask = cosmo_dltramp(cosmo_dlsym(libgl, "glColorMask"));
proc_glColorMaski = cosmo_dltramp(cosmo_dlsym(libgl, "glColorMaski"));
proc_glColorMaterial = cosmo_dltramp(cosmo_dlsym(libgl, "glColorMaterial"));
proc_glColorP3ui = cosmo_dltramp(cosmo_dlsym(libgl, "glColorP3ui"));
proc_glColorP3uiv = cosmo_dltramp(cosmo_dlsym(libgl, "glColorP3uiv"));
proc_glColorP4ui = cosmo_dltramp(cosmo_dlsym(libgl, "glColorP4ui"));
proc_glColorP4uiv = cosmo_dltramp(cosmo_dlsym(libgl, "glColorP4uiv"));
proc_glColorPointer = cosmo_dltramp(cosmo_dlsym(libgl, "glColorPointer"));
proc_glCompileShader = cosmo_dltramp(cosmo_dlsym(libgl, "glCompileShader"));
proc_glCompressedTexImage1D = cosmo_dltramp(cosmo_dlsym(libgl, "glCompressedTexImage1D"));
proc_glCompressedTexImage2D = cosmo_dltramp(cosmo_dlsym(libgl, "glCompressedTexImage2D"));
proc_glCompressedTexImage3D = cosmo_dltramp(cosmo_dlsym(libgl, "glCompressedTexImage3D"));
proc_glCompressedTexSubImage1D = cosmo_dltramp(cosmo_dlsym(libgl, "glCompressedTexSubImage1D"));
proc_glCompressedTexSubImage2D = cosmo_dltramp(cosmo_dlsym(libgl, "glCompressedTexSubImage2D"));
proc_glCompressedTexSubImage3D = cosmo_dltramp(cosmo_dlsym(libgl, "glCompressedTexSubImage3D"));
proc_glCopyBufferSubData = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyBufferSubData"));
proc_glCopyPixels = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyPixels"));
proc_glCopyTexImage1D = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyTexImage1D"));
proc_glCopyTexImage2D = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyTexImage2D"));
proc_glCopyTexSubImage1D = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyTexSubImage1D"));
proc_glCopyTexSubImage2D = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyTexSubImage2D"));
proc_glCopyTexSubImage3D = cosmo_dltramp(cosmo_dlsym(libgl, "glCopyTexSubImage3D"));
proc_glCreateProgram = cosmo_dltramp(cosmo_dlsym(libgl, "glCreateProgram"));
proc_glCreateShader = cosmo_dltramp(cosmo_dlsym(libgl, "glCreateShader"));
proc_glCullFace = cosmo_dltramp(cosmo_dlsym(libgl, "glCullFace"));
proc_glDeleteBuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteBuffers"));
proc_glDeleteFramebuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteFramebuffers"));
proc_glDeleteLists = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteLists"));
proc_glDeleteProgram = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteProgram"));
proc_glDeleteQueries = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteQueries"));
proc_glDeleteRenderbuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteRenderbuffers"));
proc_glDeleteSamplers = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteSamplers"));
proc_glDeleteShader = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteShader"));
proc_glDeleteSync = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteSync"));
proc_glDeleteTextures = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteTextures"));
proc_glDeleteTransformFeedbacks = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteTransformFeedbacks"));
proc_glDeleteVertexArrays = cosmo_dltramp(cosmo_dlsym(libgl, "glDeleteVertexArrays"));
proc_glDepthFunc = cosmo_dltramp(cosmo_dlsym(libgl, "glDepthFunc"));
proc_glDepthMask = cosmo_dltramp(cosmo_dlsym(libgl, "glDepthMask"));
proc_glDepthRange = cosmo_dltramp(cosmo_dlsym(libgl, "glDepthRange"));
proc_glDetachShader = cosmo_dltramp(cosmo_dlsym(libgl, "glDetachShader"));
proc_glDisable = cosmo_dltramp(cosmo_dlsym(libgl, "glDisable"));
proc_glDisableClientState = cosmo_dltramp(cosmo_dlsym(libgl, "glDisableClientState"));
proc_glDisableVertexAttribArray = cosmo_dltramp(cosmo_dlsym(libgl, "glDisableVertexAttribArray"));
proc_glDisablei = cosmo_dltramp(cosmo_dlsym(libgl, "glDisablei"));
proc_glDrawArrays = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawArrays"));
proc_glDrawArraysIndirect = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawArraysIndirect"));
proc_glDrawArraysInstanced = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawArraysInstanced"));
proc_glDrawBuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawBuffer"));
proc_glDrawBuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawBuffers"));
proc_glDrawElements = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawElements"));
proc_glDrawElementsBaseVertex = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawElementsBaseVertex"));
proc_glDrawElementsIndirect = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawElementsIndirect"));
proc_glDrawElementsInstanced = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawElementsInstanced"));
proc_glDrawElementsInstancedBaseVertex = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawElementsInstancedBaseVertex"));
proc_glDrawPixels = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawPixels"));
proc_glDrawRangeElements = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawRangeElements"));
proc_glDrawRangeElementsBaseVertex = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawRangeElementsBaseVertex"));
proc_glDrawTransformFeedback = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawTransformFeedback"));
proc_glDrawTransformFeedbackStream = cosmo_dltramp(cosmo_dlsym(libgl, "glDrawTransformFeedbackStream"));
proc_glEdgeFlag = cosmo_dltramp(cosmo_dlsym(libgl, "glEdgeFlag"));
proc_glEdgeFlagPointer = cosmo_dltramp(cosmo_dlsym(libgl, "glEdgeFlagPointer"));
proc_glEdgeFlagv = cosmo_dltramp(cosmo_dlsym(libgl, "glEdgeFlagv"));
proc_glEnable = cosmo_dltramp(cosmo_dlsym(libgl, "glEnable"));
proc_glEnableClientState = cosmo_dltramp(cosmo_dlsym(libgl, "glEnableClientState"));
proc_glEnableVertexAttribArray = cosmo_dltramp(cosmo_dlsym(libgl, "glEnableVertexAttribArray"));
proc_glEnablei = cosmo_dltramp(cosmo_dlsym(libgl, "glEnablei"));
proc_glEnd = cosmo_dltramp(cosmo_dlsym(libgl, "glEnd"));
proc_glEndConditionalRender = cosmo_dltramp(cosmo_dlsym(libgl, "glEndConditionalRender"));
proc_glEndList = cosmo_dltramp(cosmo_dlsym(libgl, "glEndList"));
proc_glEndQuery = cosmo_dltramp(cosmo_dlsym(libgl, "glEndQuery"));
proc_glEndQueryIndexed = cosmo_dltramp(cosmo_dlsym(libgl, "glEndQueryIndexed"));
proc_glEndTransformFeedback = cosmo_dltramp(cosmo_dlsym(libgl, "glEndTransformFeedback"));
proc_glEvalCoord1d = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord1d"));
proc_glEvalCoord1dv = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord1dv"));
proc_glEvalCoord1f = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord1f"));
proc_glEvalCoord1fv = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord1fv"));
proc_glEvalCoord2d = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord2d"));
proc_glEvalCoord2dv = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord2dv"));
proc_glEvalCoord2f = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord2f"));
proc_glEvalCoord2fv = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalCoord2fv"));
proc_glEvalMesh1 = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalMesh1"));
proc_glEvalMesh2 = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalMesh2"));
proc_glEvalPoint1 = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalPoint1"));
proc_glEvalPoint2 = cosmo_dltramp(cosmo_dlsym(libgl, "glEvalPoint2"));
proc_glFeedbackBuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glFeedbackBuffer"));
proc_glFenceSync = cosmo_dltramp(cosmo_dlsym(libgl, "glFenceSync"));
proc_glFinish = cosmo_dltramp(cosmo_dlsym(libgl, "glFinish"));
proc_glFlush = cosmo_dltramp(cosmo_dlsym(libgl, "glFlush"));
proc_glFlushMappedBufferRange = cosmo_dltramp(cosmo_dlsym(libgl, "glFlushMappedBufferRange"));
proc_glFogCoordPointer = cosmo_dltramp(cosmo_dlsym(libgl, "glFogCoordPointer"));
proc_glFogCoordd = cosmo_dltramp(cosmo_dlsym(libgl, "glFogCoordd"));
proc_glFogCoorddv = cosmo_dltramp(cosmo_dlsym(libgl, "glFogCoorddv"));
proc_glFogCoordf = cosmo_dltramp(cosmo_dlsym(libgl, "glFogCoordf"));
proc_glFogCoordfv = cosmo_dltramp(cosmo_dlsym(libgl, "glFogCoordfv"));
proc_glFogf = cosmo_dltramp(cosmo_dlsym(libgl, "glFogf"));
proc_glFogfv = cosmo_dltramp(cosmo_dlsym(libgl, "glFogfv"));
proc_glFogi = cosmo_dltramp(cosmo_dlsym(libgl, "glFogi"));
proc_glFogiv = cosmo_dltramp(cosmo_dlsym(libgl, "glFogiv"));
proc_glFramebufferRenderbuffer = cosmo_dltramp(cosmo_dlsym(libgl, "glFramebufferRenderbuffer"));
proc_glFramebufferTexture = cosmo_dltramp(cosmo_dlsym(libgl, "glFramebufferTexture"));
proc_glFramebufferTexture1D = cosmo_dltramp(cosmo_dlsym(libgl, "glFramebufferTexture1D"));
proc_glFramebufferTexture2D = cosmo_dltramp(cosmo_dlsym(libgl, "glFramebufferTexture2D"));
proc_glFramebufferTexture3D = cosmo_dltramp(cosmo_dlsym(libgl, "glFramebufferTexture3D"));
proc_glFramebufferTextureLayer = cosmo_dltramp(cosmo_dlsym(libgl, "glFramebufferTextureLayer"));
proc_glFrontFace = cosmo_dltramp(cosmo_dlsym(libgl, "glFrontFace"));
proc_glFrustum = cosmo_dltramp(cosmo_dlsym(libgl, "glFrustum"));
proc_glGenBuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glGenBuffers"));
proc_glGenFramebuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glGenFramebuffers"));
proc_glGenLists = cosmo_dltramp(cosmo_dlsym(libgl, "glGenLists"));
proc_glGenQueries = cosmo_dltramp(cosmo_dlsym(libgl, "glGenQueries"));
proc_glGenRenderbuffers = cosmo_dltramp(cosmo_dlsym(libgl, "glGenRenderbuffers"));
proc_glGenSamplers = cosmo_dltramp(cosmo_dlsym(libgl, "glGenSamplers"));
proc_glGenTextures = cosmo_dltramp(cosmo_dlsym(libgl, "glGenTextures"));
proc_glGenTransformFeedbacks = cosmo_dltramp(cosmo_dlsym(libgl, "glGenTransformFeedbacks"));
proc_glGenVertexArrays = cosmo_dltramp(cosmo_dlsym(libgl, "glGenVertexArrays"));
proc_glGenerateMipmap = cosmo_dltramp(cosmo_dlsym(libgl, "glGenerateMipmap"));
proc_glGetActiveAttrib = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveAttrib"));
proc_glGetActiveSubroutineName = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveSubroutineName"));
proc_glGetActiveSubroutineUniformName = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveSubroutineUniformName"));
proc_glGetActiveSubroutineUniformiv = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveSubroutineUniformiv"));
proc_glGetActiveUniform = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveUniform"));
proc_glGetActiveUniformBlockName = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveUniformBlockName"));
proc_glGetActiveUniformBlockiv = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveUniformBlockiv"));
proc_glGetActiveUniformName = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveUniformName"));
proc_glGetActiveUniformsiv = cosmo_dltramp(cosmo_dlsym(libgl, "glGetActiveUniformsiv"));
proc_glGetAttachedShaders = cosmo_dltramp(cosmo_dlsym(libgl, "glGetAttachedShaders"));
proc_glGetAttribLocation = cosmo_dltramp(cosmo_dlsym(libgl, "glGetAttribLocation"));
proc_glGetBooleani_v = cosmo_dltramp(cosmo_dlsym(libgl, "glGetBooleani_v"));
proc_glGetBooleanv = cosmo_dltramp(cosmo_dlsym(libgl, "glGetBooleanv"));
proc_glGetBufferParameteri64v = cosmo_dltramp(cosmo_dlsym(libgl, "glGetBufferParameteri64v"));
proc_glGetBufferParameteriv = cosmo_dltramp(cosmo_dlsym(libgl, "glGetBufferParameteriv"));
proc_glGetBufferPointerv = cosmo_dltramp(cosmo_dlsym(libgl, "glGetBufferPointerv"));
proc_glGetBufferSubData = cosmo_dltramp(cosmo_dlsym(libgl, "glGetBufferSubData"));
proc_glGetClipPlane = cosmo_dltramp(cosmo_dlsym(libgl, "glGetClipPlane"));