summaryrefslogtreecommitdiff
path: root/src/glx/x11/indirect_init.c
blob: 6627edfebd81c4003fda3569f0d7ffdf66c83cd3 (plain)
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
/* DO NOT EDIT - This file generated automatically by glX_proto_send.py (from Mesa) script */

/*
 * Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
 * (C) Copyright IBM Corporation 2004
 * All Rights Reserved.
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sub license,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice (including the next
 * paragraph) shall be included in all copies or substantial portions of the
 * Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.  IN NO EVENT SHALL
 * PRECISION INSIGHT, IBM,
 * AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

/**
 * \file indirect_init.c
 * Initialize indirect rendering dispatch table.
 *
 * \author Kevin E. Martin <kevin@precisioninsight.com>
 * \author Brian Paul <brian@precisioninsight.com>
 * \author Ian Romanick <idr@us.ibm.com>
 */

#include "indirect_init.h"
#include "indirect.h"
#include "glapi.h"


/**
 * No-op function used to initialize functions that have no GLX protocol
 * support.
 */
static int NoOp(void)
{
    return 0;
}

/**
 * Create and initialize a new GL dispatch table.  The table is initialized
 * with GLX indirect rendering protocol functions.
 */
__GLapi * __glXNewIndirectAPI( void )
{
    __GLapi *glAPI;
    GLuint entries;

    entries = _glapi_get_dispatch_table_size();
    glAPI = (__GLapi *) Xmalloc(entries * sizeof(void *));

    /* first, set all entries to point to no-op functions */
    {
       int i;
       void **dispatch = (void **) glAPI;
       for (i = 0; i < entries; i++) {
          dispatch[i] = (void *) NoOp;
       }
    }

    /* now, initialize the entries we understand */

    /* 1.0 */

    glAPI->NewList = __indirect_glNewList;
    glAPI->EndList = __indirect_glEndList;
    glAPI->CallList = __indirect_glCallList;
    glAPI->CallLists = __indirect_glCallLists;
    glAPI->DeleteLists = __indirect_glDeleteLists;
    glAPI->GenLists = __indirect_glGenLists;
    glAPI->ListBase = __indirect_glListBase;
    glAPI->Begin = __indirect_glBegin;
    glAPI->Bitmap = __indirect_glBitmap;
    glAPI->Color3b = __indirect_glColor3b;
    glAPI->Color3bv = __indirect_glColor3bv;
    glAPI->Color3d = __indirect_glColor3d;
    glAPI->Color3dv = __indirect_glColor3dv;
    glAPI->Color3f = __indirect_glColor3f;
    glAPI->Color3fv = __indirect_glColor3fv;
    glAPI->Color3i = __indirect_glColor3i;
    glAPI->Color3iv = __indirect_glColor3iv;
    glAPI->Color3s = __indirect_glColor3s;
    glAPI->Color3sv = __indirect_glColor3sv;
    glAPI->Color3ub = __indirect_glColor3ub;
    glAPI->Color3ubv = __indirect_glColor3ubv;
    glAPI->Color3ui = __indirect_glColor3ui;
    glAPI->Color3uiv = __indirect_glColor3uiv;
    glAPI->Color3us = __indirect_glColor3us;
    glAPI->Color3usv = __indirect_glColor3usv;
    glAPI->Color4b = __indirect_glColor4b;
    glAPI->Color4bv = __indirect_glColor4bv;
    glAPI->Color4d = __indirect_glColor4d;
    glAPI->Color4dv = __indirect_glColor4dv;
    glAPI->Color4f = __indirect_glColor4f;
    glAPI->Color4fv = __indirect_glColor4fv;
    glAPI->Color4i = __indirect_glColor4i;
    glAPI->Color4iv = __indirect_glColor4iv;
    glAPI->Color4s = __indirect_glColor4s;
    glAPI->Color4sv = __indirect_glColor4sv;
    glAPI->Color4ub = __indirect_glColor4ub;
    glAPI->Color4ubv = __indirect_glColor4ubv;
    glAPI->Color4ui = __indirect_glColor4ui;
    glAPI->Color4uiv = __indirect_glColor4uiv;
    glAPI->Color4us = __indirect_glColor4us;
    glAPI->Color4usv = __indirect_glColor4usv;
    glAPI->EdgeFlag = __indirect_glEdgeFlag;
    glAPI->EdgeFlagv = __indirect_glEdgeFlagv;
    glAPI->End = __indirect_glEnd;
    glAPI->Indexd = __indirect_glIndexd;
    glAPI->Indexdv = __indirect_glIndexdv;
    glAPI->Indexf = __indirect_glIndexf;
    glAPI->Indexfv = __indirect_glIndexfv;
    glAPI->Indexi = __indirect_glIndexi;
    glAPI->Indexiv = __indirect_glIndexiv;
    glAPI->Indexs = __indirect_glIndexs;
    glAPI->Indexsv = __indirect_glIndexsv;
    glAPI->Normal3b = __indirect_glNormal3b;
    glAPI->Normal3bv = __indirect_glNormal3bv;
    glAPI->Normal3d = __indirect_glNormal3d;
    glAPI->Normal3dv = __indirect_glNormal3dv;
    glAPI->Normal3f = __indirect_glNormal3f;
    glAPI->Normal3fv = __indirect_glNormal3fv;
    glAPI->Normal3i = __indirect_glNormal3i;
    glAPI->Normal3iv = __indirect_glNormal3iv;
    glAPI->Normal3s = __indirect_glNormal3s;
    glAPI->Normal3sv = __indirect_glNormal3sv;
    glAPI->RasterPos2d = __indirect_glRasterPos2d;
    glAPI->RasterPos2dv = __indirect_glRasterPos2dv;
    glAPI->RasterPos2f = __indirect_glRasterPos2f;
    glAPI->RasterPos2fv = __indirect_glRasterPos2fv;
    glAPI->RasterPos2i = __indirect_glRasterPos2i;
    glAPI->RasterPos2iv = __indirect_glRasterPos2iv;
    glAPI->RasterPos2s = __indirect_glRasterPos2s;
    glAPI->RasterPos2sv = __indirect_glRasterPos2sv;
    glAPI->RasterPos3d = __indirect_glRasterPos3d;
    glAPI->RasterPos3dv = __indirect_glRasterPos3dv;
    glAPI->RasterPos3f = __indirect_glRasterPos3f;
    glAPI->RasterPos3fv = __indirect_glRasterPos3fv;
    glAPI->RasterPos3i = __indirect_glRasterPos3i;
    glAPI->RasterPos3iv = __indirect_glRasterPos3iv;
    glAPI->RasterPos3s = __indirect_glRasterPos3s;
    glAPI->RasterPos3sv = __indirect_glRasterPos3sv;
    glAPI->RasterPos4d = __indirect_glRasterPos4d;
    glAPI->RasterPos4dv = __indirect_glRasterPos4dv;
    glAPI->RasterPos4f = __indirect_glRasterPos4f;
    glAPI->RasterPos4fv = __indirect_glRasterPos4fv;
    glAPI->RasterPos4i = __indirect_glRasterPos4i;
    glAPI->RasterPos4iv = __indirect_glRasterPos4iv;
    glAPI->RasterPos4s = __indirect_glRasterPos4s;
    glAPI->RasterPos4sv = __indirect_glRasterPos4sv;
    glAPI->Rectd = __indirect_glRectd;
    glAPI->Rectdv = __indirect_glRectdv;
    glAPI->Rectf = __indirect_glRectf;
    glAPI->Rectfv = __indirect_glRectfv;
    glAPI->Recti = __indirect_glRecti;
    glAPI->Rectiv = __indirect_glRectiv;
    glAPI->Rects = __indirect_glRects;
    glAPI->Rectsv = __indirect_glRectsv;
    glAPI->TexCoord1d = __indirect_glTexCoord1d;
    glAPI->TexCoord1dv = __indirect_glTexCoord1dv;
    glAPI->TexCoord1f = __indirect_glTexCoord1f;
    glAPI->TexCoord1fv = __indirect_glTexCoord1fv;
    glAPI->TexCoord1i = __indirect_glTexCoord1i;
    glAPI->TexCoord1iv = __indirect_glTexCoord1iv;
    glAPI->TexCoord1s = __indirect_glTexCoord1s;
    glAPI->TexCoord1sv = __indirect_glTexCoord1sv;
    glAPI->TexCoord2d = __indirect_glTexCoord2d;
    glAPI->TexCoord2dv = __indirect_glTexCoord2dv;
    glAPI->TexCoord2f = __indirect_glTexCoord2f;
    glAPI->TexCoord2fv = __indirect_glTexCoord2fv;
    glAPI->TexCoord2i = __indirect_glTexCoord2i;
    glAPI->TexCoord2iv = __indirect_glTexCoord2iv;
    glAPI->TexCoord2s = __indirect_glTexCoord2s;
    glAPI->TexCoord2sv = __indirect_glTexCoord2sv;
    glAPI->TexCoord3d = __indirect_glTexCoord3d;
    glAPI->TexCoord3dv = __indirect_glTexCoord3dv;
    glAPI->TexCoord3f = __indirect_glTexCoord3f;
    glAPI->TexCoord3fv = __indirect_glTexCoord3fv;
    glAPI->TexCoord3i = __indirect_glTexCoord3i;
    glAPI->TexCoord3iv = __indirect_glTexCoord3iv;
    glAPI->TexCoord3s = __indirect_glTexCoord3s;
    glAPI->TexCoord3sv = __indirect_glTexCoord3sv;
    glAPI->TexCoord4d = __indirect_glTexCoord4d;
    glAPI->TexCoord4dv = __indirect_glTexCoord4dv;
    glAPI->TexCoord4f = __indirect_glTexCoord4f;
    glAPI->TexCoord4fv = __indirect_glTexCoord4fv;
    glAPI->TexCoord4i = __indirect_glTexCoord4i;
    glAPI->TexCoord4iv = __indirect_glTexCoord4iv;
    glAPI->TexCoord4s = __indirect_glTexCoord4s;
    glAPI->TexCoord4sv = __indirect_glTexCoord4sv;
    glAPI->Vertex2d = __indirect_glVertex2d;
    glAPI->Vertex2dv = __indirect_glVertex2dv;
    glAPI->Vertex2f = __indirect_glVertex2f;
    glAPI->Vertex2fv = __indirect_glVertex2fv;
    glAPI->Vertex2i = __indirect_glVertex2i;
    glAPI->Vertex2iv = __indirect_glVertex2iv;
    glAPI->Vertex2s = __indirect_glVertex2s;
    glAPI->Vertex2sv = __indirect_glVertex2sv;
    glAPI->Vertex3d = __indirect_glVertex3d;
    glAPI->Vertex3dv = __indirect_glVertex3dv;
    glAPI->Vertex3f = __indirect_glVertex3f;
    glAPI->Vertex3fv = __indirect_glVertex3fv;
    glAPI->Vertex3i = __indirect_glVertex3i;
    glAPI->Vertex3iv = __indirect_glVertex3iv;
    glAPI->Vertex3s = __indirect_glVertex3s;
    glAPI->Vertex3sv = __indirect_glVertex3sv;
    glAPI->Vertex4d = __indirect_glVertex4d;
    glAPI->Vertex4dv = __indirect_glVertex4dv;
    glAPI->Vertex4f = __indirect_glVertex4f;
    glAPI->Vertex4fv = __indirect_glVertex4fv;
    glAPI->Vertex4i = __indirect_glVertex4i;
    glAPI->Vertex4iv = __indirect_glVertex4iv;
    glAPI->Vertex4s = __indirect_glVertex4s;
    glAPI->Vertex4sv = __indirect_glVertex4sv;
    glAPI->ClipPlane = __indirect_glClipPlane;
    glAPI->ColorMaterial = __indirect_glColorMaterial;
    glAPI->CullFace = __indirect_glCullFace;
    glAPI->Fogf = __indirect_glFogf;
    glAPI->Fogfv = __indirect_glFogfv;
    glAPI->Fogi = __indirect_glFogi;
    glAPI->Fogiv = __indirect_glFogiv;
    glAPI->FrontFace = __indirect_glFrontFace;
    glAPI->Hint = __indirect_glHint;
    glAPI->Lightf = __indirect_glLightf;
    glAPI->Lightfv = __indirect_glLightfv;
    glAPI->Lighti = __indirect_glLighti;
    glAPI->Lightiv = __indirect_glLightiv;
    glAPI->LightModelf = __indirect_glLightModelf;
    glAPI->LightModelfv = __indirect_glLightModelfv;
    glAPI->LightModeli = __indirect_glLightModeli;
    glAPI->LightModeliv = __indirect_glLightModeliv;
    glAPI->LineStipple = __indirect_glLineStipple;
    glAPI->LineWidth = __indirect_glLineWidth;
    glAPI->Materialf = __indirect_glMaterialf;
    glAPI->Materialfv = __indirect_glMaterialfv;
    glAPI->Materiali = __indirect_glMateriali;
    glAPI->Materialiv = __indirect_glMaterialiv;
    glAPI->PointSize = __indirect_glPointSize;
    glAPI->PolygonMode = __indirect_glPolygonMode;
    glAPI->PolygonStipple = __indirect_glPolygonStipple;
    glAPI->Scissor = __indirect_glScissor;
    glAPI->ShadeModel = __indirect_glShadeModel;
    glAPI->TexParameterf = __indirect_glTexParameterf;
    glAPI->TexParameterfv = __indirect_glTexParameterfv;
    glAPI->TexParameteri = __indirect_glTexParameteri;
    glAPI->TexParameteriv = __indirect_glTexParameteriv;
    glAPI->TexImage1D = __indirect_glTexImage1D;
    glAPI->TexImage2D = __indirect_glTexImage2D;
    glAPI->TexEnvf = __indirect_glTexEnvf;
    glAPI->TexEnvfv = __indirect_glTexEnvfv;
    glAPI->TexEnvi = __indirect_glTexEnvi;
    glAPI->TexEnviv = __indirect_glTexEnviv;
    glAPI->TexGend = __indirect_glTexGend;
    glAPI->TexGendv = __indirect_glTexGendv;
    glAPI->TexGenf = __indirect_glTexGenf;
    glAPI->TexGenfv = __indirect_glTexGenfv;
    glAPI->TexGeni = __indirect_glTexGeni;
    glAPI->TexGeniv = __indirect_glTexGeniv;
    glAPI->FeedbackBuffer = __indirect_glFeedbackBuffer;
    glAPI->SelectBuffer = __indirect_glSelectBuffer;
    glAPI->RenderMode = __indirect_glRenderMode;
    glAPI->InitNames = __indirect_glInitNames;
    glAPI->LoadName = __indirect_glLoadName;
    glAPI->PassThrough = __indirect_glPassThrough;
    glAPI->PopName = __indirect_glPopName;
    glAPI->PushName = __indirect_glPushName;
    glAPI->DrawBuffer = __indirect_glDrawBuffer;
    glAPI->Clear = __indirect_glClear;
    glAPI->ClearAccum = __indirect_glClearAccum;
    glAPI->ClearIndex = __indirect_glClearIndex;
    glAPI->ClearColor = __indirect_glClearColor;
    glAPI->ClearStencil = __indirect_glClearStencil;
    glAPI->ClearDepth = __indirect_glClearDepth;
    glAPI->StencilMask = __indirect_glStencilMask;
    glAPI->ColorMask = __indirect_glColorMask;
    glAPI->DepthMask = __indirect_glDepthMask;
    glAPI->IndexMask = __indirect_glIndexMask;
    glAPI->Accum = __indirect_glAccum;
    glAPI->Disable = __indirect_glDisable;
    glAPI->Enable = __indirect_glEnable;
    glAPI->Finish = __indirect_glFinish;
    glAPI->Flush = __indirect_glFlush;
    glAPI->PopAttrib = __indirect_glPopAttrib;
    glAPI->PushAttrib = __indirect_glPushAttrib;
    glAPI->Map1d = __indirect_glMap1d;
    glAPI->Map1f = __indirect_glMap1f;
    glAPI->Map2d = __indirect_glMap2d;
    glAPI->Map2f = __indirect_glMap2f;
    glAPI->MapGrid1d = __indirect_glMapGrid1d;
    glAPI->MapGrid1f = __indirect_glMapGrid1f;
    glAPI->MapGrid2d = __indirect_glMapGrid2d;
    glAPI->MapGrid2f = __indirect_glMapGrid2f;
    glAPI->EvalCoord1d = __indirect_glEvalCoord1d;
    glAPI->EvalCoord1dv = __indirect_glEvalCoord1dv;
    glAPI->EvalCoord1f = __indirect_glEvalCoord1f;
    glAPI->EvalCoord1fv = __indirect_glEvalCoord1fv;
    glAPI->EvalCoord2d = __indirect_glEvalCoord2d;
    glAPI->EvalCoord2dv = __indirect_glEvalCoord2dv;
    glAPI->EvalCoord2f = __indirect_glEvalCoord2f;
    glAPI->EvalCoord2fv = __indirect_glEvalCoord2fv;
    glAPI->EvalMesh1 = __indirect_glEvalMesh1;
    glAPI->EvalPoint1 = __indirect_glEvalPoint1;
    glAPI->EvalMesh2 = __indirect_glEvalMesh2;
    glAPI->EvalPoint2 = __indirect_glEvalPoint2;
    glAPI->AlphaFunc = __indirect_glAlphaFunc;
    glAPI->BlendFunc = __indirect_glBlendFunc;
    glAPI->LogicOp = __indirect_glLogicOp;
    glAPI->StencilFunc = __indirect_glStencilFunc;
    glAPI->StencilOp = __indirect_glStencilOp;
    glAPI->DepthFunc = __indirect_glDepthFunc;
    glAPI->PixelZoom = __indirect_glPixelZoom;
    glAPI->PixelTransferf = __indirect_glPixelTransferf;
    glAPI->PixelTransferi = __indirect_glPixelTransferi;
    glAPI->PixelStoref = __indirect_glPixelStoref;
    glAPI->PixelStorei = __indirect_glPixelStorei;
    glAPI->PixelMapfv = __indirect_glPixelMapfv;
    glAPI->PixelMapuiv = __indirect_glPixelMapuiv;
    glAPI->PixelMapusv = __indirect_glPixelMapusv;
    glAPI->ReadBuffer = __indirect_glReadBuffer;
    glAPI->CopyPixels = __indirect_glCopyPixels;
    glAPI->ReadPixels = __indirect_glReadPixels;
    glAPI->DrawPixels = __indirect_glDrawPixels;
    glAPI->GetBooleanv = __indirect_glGetBooleanv;
    glAPI->GetClipPlane = __indirect_glGetClipPlane;
    glAPI->GetDoublev = __indirect_glGetDoublev;
    glAPI->GetError = __indirect_glGetError;
    glAPI->GetFloatv = __indirect_glGetFloatv;
    glAPI->GetIntegerv = __indirect_glGetIntegerv;
    glAPI->GetLightfv = __indirect_glGetLightfv;
    glAPI->GetLightiv = __indirect_glGetLightiv;
    glAPI->GetMapdv = __indirect_glGetMapdv;
    glAPI->GetMapfv = __indirect_glGetMapfv;
    glAPI->GetMapiv = __indirect_glGetMapiv;
    glAPI->GetMaterialfv = __indirect_glGetMaterialfv;
    glAPI->GetMaterialiv = __indirect_glGetMaterialiv;
    glAPI->GetPixelMapfv = __indirect_glGetPixelMapfv;
    glAPI->GetPixelMapuiv = __indirect_glGetPixelMapuiv;
    glAPI->GetPixelMapusv = __indirect_glGetPixelMapusv;
    glAPI->GetPolygonStipple = __indirect_glGetPolygonStipple;
    glAPI->GetString = __indirect_glGetString;
    glAPI->GetTexEnvfv = __indirect_glGetTexEnvfv;
    glAPI->GetTexEnviv = __indirect_glGetTexEnviv;
    glAPI->GetTexGendv = __indirect_glGetTexGendv;
    glAPI->GetTexGenfv = __indirect_glGetTexGenfv;
    glAPI->GetTexGeniv = __indirect_glGetTexGeniv;
    glAPI->GetTexImage = __indirect_glGetTexImage;
    glAPI->GetTexParameterfv = __indirect_glGetTexParameterfv;
    glAPI->GetTexParameteriv = __indirect_glGetTexParameteriv;
    glAPI->GetTexLevelParameterfv = __indirect_glGetTexLevelParameterfv;
    glAPI->GetTexLevelParameteriv = __indirect_glGetTexLevelParameteriv;
    glAPI->IsEnabled = __indirect_glIsEnabled;
    glAPI->IsList = __indirect_glIsList;
    glAPI->DepthRange = __indirect_glDepthRange;
    glAPI->Frustum = __indirect_glFrustum;
    glAPI->LoadIdentity = __indirect_glLoadIdentity;
    glAPI->LoadMatrixf = __indirect_glLoadMatrixf;
    glAPI->LoadMatrixd = __indirect_glLoadMatrixd;
    glAPI->MatrixMode = __indirect_glMatrixMode;
    glAPI->MultMatrixf = __indirect_glMultMatrixf;
    glAPI->MultMatrixd = __indirect_glMultMatrixd;
    glAPI->Ortho = __indirect_glOrtho;
    glAPI->PopMatrix = __indirect_glPopMatrix;
    glAPI->PushMatrix = __indirect_glPushMatrix;
    glAPI->Rotated = __indirect_glRotated;
    glAPI->Rotatef = __indirect_glRotatef;
    glAPI->Scaled = __indirect_glScaled;
    glAPI->Scalef = __indirect_glScalef;
    glAPI->Translated = __indirect_glTranslated;
    glAPI->Translatef = __indirect_glTranslatef;
    glAPI->Viewport = __indirect_glViewport;

    /* 1.1 */

    glAPI->ArrayElement = __indirect_glArrayElement;
    glAPI->BindTexture = __indirect_glBindTexture;
    glAPI->ColorPointer = __indirect_glColorPointer;
    glAPI->DisableClientState = __indirect_glDisableClientState;
    glAPI->DrawArrays = __indirect_glDrawArrays;
    glAPI->DrawElements = __indirect_glDrawElements;
    glAPI->EdgeFlagPointer = __indirect_glEdgeFlagPointer;
    glAPI->EnableClientState = __indirect_glEnableClientState;
    glAPI->IndexPointer = __indirect_glIndexPointer;
    glAPI->Indexub = __indirect_glIndexub;
    glAPI->Indexubv = __indirect_glIndexubv;
    glAPI->InterleavedArrays = __indirect_glInterleavedArrays;
    glAPI->NormalPointer = __indirect_glNormalPointer;
    glAPI->PolygonOffset = __indirect_glPolygonOffset;
    glAPI->TexCoordPointer = __indirect_glTexCoordPointer;
    glAPI->VertexPointer = __indirect_glVertexPointer;
    glAPI->AreTexturesResident = __indirect_glAreTexturesResident;
    glAPI->CopyTexImage1D = __indirect_glCopyTexImage1D;
    glAPI->CopyTexImage2D = __indirect_glCopyTexImage2D;
    glAPI->CopyTexSubImage1D = __indirect_glCopyTexSubImage1D;
    glAPI->CopyTexSubImage2D = __indirect_glCopyTexSubImage2D;
    glAPI->DeleteTextures = __indirect_glDeleteTextures;
    glAPI->GenTextures = __indirect_glGenTextures;
    glAPI->GetPointerv = __indirect_glGetPointerv;
    glAPI->IsTexture = __indirect_glIsTexture;
    glAPI->PrioritizeTextures = __indirect_glPrioritizeTextures;
    glAPI->TexSubImage1D = __indirect_glTexSubImage1D;
    glAPI->TexSubImage2D = __indirect_glTexSubImage2D;
    glAPI->PopClientAttrib = __indirect_glPopClientAttrib;
    glAPI->PushClientAttrib = __indirect_glPushClientAttrib;

    /* 1.2 */

    glAPI->BlendColor = __indirect_glBlendColor;
    glAPI->BlendEquation = __indirect_glBlendEquation;
    glAPI->DrawRangeElements = __indirect_glDrawRangeElements;
    glAPI->ColorTable = __indirect_glColorTable;
    glAPI->ColorTableParameterfv = __indirect_glColorTableParameterfv;
    glAPI->ColorTableParameteriv = __indirect_glColorTableParameteriv;
    glAPI->CopyColorTable = __indirect_glCopyColorTable;
    glAPI->GetColorTable = __indirect_glGetColorTable;
    glAPI->GetColorTableParameterfv = __indirect_glGetColorTableParameterfv;
    glAPI->GetColorTableParameteriv = __indirect_glGetColorTableParameteriv;
    glAPI->ColorSubTable = __indirect_glColorSubTable;
    glAPI->CopyColorSubTable = __indirect_glCopyColorSubTable;
    glAPI->ConvolutionFilter1D = __indirect_glConvolutionFilter1D;
    glAPI->ConvolutionFilter2D = __indirect_glConvolutionFilter2D;
    glAPI->ConvolutionParameterf = __indirect_glConvolutionParameterf;
    glAPI->ConvolutionParameterfv = __indirect_glConvolutionParameterfv;
    glAPI->ConvolutionParameteri = __indirect_glConvolutionParameteri;
    glAPI->ConvolutionParameteriv = __indirect_glConvolutionParameteriv;
    glAPI->CopyConvolutionFilter1D = __indirect_glCopyConvolutionFilter1D;
    glAPI->CopyConvolutionFilter2D = __indirect_glCopyConvolutionFilter2D;
    glAPI->GetConvolutionFilter = __indirect_glGetConvolutionFilter;
    glAPI->GetConvolutionParameterfv = __indirect_glGetConvolutionParameterfv;
    glAPI->GetConvolutionParameteriv = __indirect_glGetConvolutionParameteriv;
    glAPI->GetSeparableFilter = __indirect_glGetSeparableFilter;
    glAPI->SeparableFilter2D = __indirect_glSeparableFilter2D;
    glAPI->GetHistogram = __indirect_glGetHistogram;
    glAPI->GetHistogramParameterfv = __indirect_glGetHistogramParameterfv;
    glAPI->GetHistogramParameteriv = __indirect_glGetHistogramParameteriv;
    glAPI->GetMinmax = __indirect_glGetMinmax;
    glAPI->GetMinmaxParameterfv = __indirect_glGetMinmaxParameterfv;
    glAPI->GetMinmaxParameteriv = __indirect_glGetMinmaxParameteriv;
    glAPI->Histogram = __indirect_glHistogram;
    glAPI->Minmax = __indirect_glMinmax;
    glAPI->ResetHistogram = __indirect_glResetHistogram;
    glAPI->ResetMinmax = __indirect_glResetMinmax;
    glAPI->TexImage3D = __indirect_glTexImage3D;
    glAPI->TexSubImage3D = __indirect_glTexSubImage3D;
    glAPI->CopyTexSubImage3D = __indirect_glCopyTexSubImage3D;

    /*   1. GL_ARB_multitexture */

    glAPI->MultiTexCoord2dARB = __indirect_glMultiTexCoord2dARB;
    glAPI->MultiTexCoord2dvARB = __indirect_glMultiTexCoord2dvARB;
    glAPI->MultiTexCoord2fARB = __indirect_glMultiTexCoord2fARB;
    glAPI->MultiTexCoord2fvARB = __indirect_glMultiTexCoord2fvARB;
    glAPI->MultiTexCoord2iARB = __indirect_glMultiTexCoord2iARB;
    glAPI->MultiTexCoord2ivARB = __indirect_glMultiTexCoord2ivARB;
    glAPI->MultiTexCoord2sARB = __indirect_glMultiTexCoord2sARB;
    glAPI->MultiTexCoord2svARB = __indirect_glMultiTexCoord2svARB;
    glAPI->MultiTexCoord3dARB = __indirect_glMultiTexCoord3dARB;
    glAPI->MultiTexCoord3dvARB = __indirect_glMultiTexCoord3dvARB;
    glAPI->MultiTexCoord3fARB = __indirect_glMultiTexCoord3fARB;
    glAPI->MultiTexCoord3fvARB = __indirect_glMultiTexCoord3fvARB;
    glAPI->MultiTexCoord3iARB = __indirect_glMultiTexCoord3iARB;
    glAPI->MultiTexCoord3ivARB = __indirect_glMultiTexCoord3ivARB;
    glAPI->MultiTexCoord3sARB = __indirect_glMultiTexCoord3sARB;
    glAPI->MultiTexCoord3svARB = __indirect_glMultiTexCoord3svARB;
    glAPI->MultiTexCoord4dARB = __indirect_glMultiTexCoord4dARB;
    glAPI->MultiTexCoord4dvARB = __indirect_glMultiTexCoord4dvARB;
    glAPI->MultiTexCoord4fARB = __indirect_glMultiTexCoord4fARB;
    glAPI->MultiTexCoord4fvARB = __indirect_glMultiTexCoord4fvARB;
    glAPI->MultiTexCoord4iARB = __indirect_glMultiTexCoord4iARB;
    glAPI->MultiTexCoord4ivARB = __indirect_glMultiTexCoord4ivARB;
    glAPI->MultiTexCoord4sARB = __indirect_glMultiTexCoord4sARB;
    glAPI->MultiTexCoord4svARB = __indirect_glMultiTexCoord4svARB;
    glAPI->ActiveTextureARB = __indirect_glActiveTextureARB;
    glAPI->ClientActiveTextureARB = __indirect_glClientActiveTextureARB;
    glAPI->MultiTexCoord1dARB = __indirect_glMultiTexCoord1dARB;
    glAPI->MultiTexCoord1dvARB = __indirect_glMultiTexCoord1dvARB;
    glAPI->MultiTexCoord1fARB = __indirect_glMultiTexCoord1fARB;
    glAPI->MultiTexCoord1fvARB = __indirect_glMultiTexCoord1fvARB;
    glAPI->MultiTexCoord1iARB = __indirect_glMultiTexCoord1iARB;
    glAPI->MultiTexCoord1ivARB = __indirect_glMultiTexCoord1ivARB;
    glAPI->MultiTexCoord1sARB = __indirect_glMultiTexCoord1sARB;
    glAPI->MultiTexCoord1svARB = __indirect_glMultiTexCoord1svARB;

    /*   3. GL_ARB_transpose_matrix */

    glAPI->LoadTransposeMatrixfARB = __indirect_glLoadTransposeMatrixfARB;
    glAPI->LoadTransposeMatrixdARB = __indirect_glLoadTransposeMatrixdARB;
    glAPI->MultTransposeMatrixfARB = __indirect_glMultTransposeMatrixfARB;
    glAPI->MultTransposeMatrixdARB = __indirect_glMultTransposeMatrixdARB;

    /*   5. GL_ARB_multisample */

    glAPI->SampleCoverageARB = __indirect_glSampleCoverageARB;

    /*  12. GL_ARB_texture_compression */

    glAPI->CompressedTexImage3DARB = __indirect_glCompressedTexImage3DARB;
    glAPI->CompressedTexImage2DARB = __indirect_glCompressedTexImage2DARB;
    glAPI->CompressedTexImage1DARB = __indirect_glCompressedTexImage1DARB;
    glAPI->CompressedTexSubImage3DARB = __indirect_glCompressedTexSubImage3DARB;
    glAPI->CompressedTexSubImage2DARB = __indirect_glCompressedTexSubImage2DARB;
    glAPI->CompressedTexSubImage1DARB = __indirect_glCompressedTexSubImage1DARB;
    glAPI->GetCompressedTexImageARB = __indirect_glGetCompressedTexImageARB;

    /*  26. GL_ARB_vertex_program */

    glAPI->VertexAttrib4bvARB = __indirect_glVertexAttrib4bvARB;
    glAPI->VertexAttrib4ivARB = __indirect_glVertexAttrib4ivARB;
    glAPI->VertexAttrib4ubvARB = __indirect_glVertexAttrib4ubvARB;
    glAPI->VertexAttrib4usvARB = __indirect_glVertexAttrib4usvARB;
    glAPI->VertexAttrib4uivARB = __indirect_glVertexAttrib4uivARB;
    glAPI->VertexAttrib4NbvARB = __indirect_glVertexAttrib4NbvARB;
    glAPI->VertexAttrib4NsvARB = __indirect_glVertexAttrib4NsvARB;
    glAPI->VertexAttrib4NivARB = __indirect_glVertexAttrib4NivARB;
    glAPI->VertexAttrib4NusvARB = __indirect_glVertexAttrib4NusvARB;
    glAPI->VertexAttrib4NuivARB = __indirect_glVertexAttrib4NuivARB;
    glAPI->VertexAttribPointerARB = __indirect_glVertexAttribPointerARB;
    glAPI->EnableVertexAttribArrayARB = __indirect_glEnableVertexAttribArrayARB;
    glAPI->DisableVertexAttribArrayARB = __indirect_glDisableVertexAttribArrayARB;
    glAPI->ProgramStringARB = __indirect_glProgramStringARB;
    glAPI->ProgramEnvParameter4dARB = __indirect_glProgramEnvParameter4dARB;
    glAPI->ProgramEnvParameter4dvARB = __indirect_glProgramEnvParameter4dvARB;
    glAPI->ProgramEnvParameter4fARB = __indirect_glProgramEnvParameter4fARB;
    glAPI->ProgramEnvParameter4fvARB = __indirect_glProgramEnvParameter4fvARB;
    glAPI->ProgramLocalParameter4dARB = __indirect_glProgramLocalParameter4dARB;
    glAPI->ProgramLocalParameter4dvARB = __indirect_glProgramLocalParameter4dvARB;
    glAPI->ProgramLocalParameter4fARB = __indirect_glProgramLocalParameter4fARB;
    glAPI->ProgramLocalParameter4fvARB = __indirect_glProgramLocalParameter4fvARB;
    glAPI->GetProgramEnvParameterdvARB = __indirect_glGetProgramEnvParameterdvARB;
    glAPI->GetProgramEnvParameterfvARB = __indirect_glGetProgramEnvParameterfvARB;
    glAPI->GetProgramLocalParameterdvARB = __indirect_glGetProgramLocalParameterdvARB;
    glAPI->GetProgramLocalParameterfvARB = __indirect_glGetProgramLocalParameterfvARB;
    glAPI->GetProgramivARB = __indirect_glGetProgramivARB;
    glAPI->GetProgramStringARB = __indirect_glGetProgramStringARB;
    glAPI->GetVertexAttribdvARB = __indirect_glGetVertexAttribdvARB;
    glAPI->GetVertexAttribfvARB = __indirect_glGetVertexAttribfvARB;
    glAPI->GetVertexAttribivARB = __indirect_glGetVertexAttribivARB;
    glAPI->VertexAttrib1dARB = __indirect_glVertexAttrib1dARB;
    glAPI->VertexAttrib1dvARB = __indirect_glVertexAttrib1dvARB;
    glAPI->VertexAttrib1fARB = __indirect_glVertexAttrib1fARB;
    glAPI->VertexAttrib1fvARB = __indirect_glVertexAttrib1fvARB;
    glAPI->VertexAttrib1sARB = __indirect_glVertexAttrib1sARB;
    glAPI->VertexAttrib1svARB = __indirect_glVertexAttrib1svARB;
    glAPI->VertexAttrib2dARB = __indirect_glVertexAttrib2dARB;
    glAPI->VertexAttrib2dvARB = __indirect_glVertexAttrib2dvARB;
    glAPI->VertexAttrib2fARB = __indirect_glVertexAttrib2fARB;
    glAPI->VertexAttrib2fvARB = __indirect_glVertexAttrib2fvARB;
    glAPI->VertexAttrib2sARB = __indirect_glVertexAttrib2sARB;
    glAPI->VertexAttrib2svARB = __indirect_glVertexAttrib2svARB;
    glAPI->VertexAttrib3dARB = __indirect_glVertexAttrib3dARB;
    glAPI->VertexAttrib3dvARB = __indirect_glVertexAttrib3dvARB;
    glAPI->VertexAttrib3fARB = __indirect_glVertexAttrib3fARB;
    glAPI->VertexAttrib3fvARB = __indirect_glVertexAttrib3fvARB;
    glAPI->VertexAttrib3sARB = __indirect_glVertexAttrib3sARB;
    glAPI->VertexAttrib3svARB = __indirect_glVertexAttrib3svARB;
    glAPI->VertexAttrib4dARB = __indirect_glVertexAttrib4dARB;
    glAPI->VertexAttrib4dvARB = __indirect_glVertexAttrib4dvARB;
    glAPI->VertexAttrib4fARB = __indirect_glVertexAttrib4fARB;
    glAPI->VertexAttrib4fvARB = __indirect_glVertexAttrib4fvARB;
    glAPI->VertexAttrib4sARB = __indirect_glVertexAttrib4sARB;
    glAPI->VertexAttrib4svARB = __indirect_glVertexAttrib4svARB;
    glAPI->VertexAttrib4NubARB = __indirect_glVertexAttrib4NubARB;
    glAPI->VertexAttrib4NubvARB = __indirect_glVertexAttrib4NubvARB;

    /*  29. GL_ARB_occlusion_query */

    glAPI->EndQueryARB = __indirect_glEndQueryARB;
    glAPI->GetQueryivARB = __indirect_glGetQueryivARB;
    glAPI->GetQueryObjectivARB = __indirect_glGetQueryObjectivARB;
    glAPI->GetQueryObjectuivARB = __indirect_glGetQueryObjectuivARB;
    glAPI->GenQueriesARB = __indirect_glGenQueriesARB;
    glAPI->DeleteQueriesARB = __indirect_glDeleteQueriesARB;
    glAPI->IsQueryARB = __indirect_glIsQueryARB;
    glAPI->BeginQueryARB = __indirect_glBeginQueryARB;

    /*  37. GL_ARB_draw_buffers */

    glAPI->DrawBuffersARB = __indirect_glDrawBuffersARB;

    /*  20. GL_EXT_texture_object */

    glAPI->GenTexturesEXT = __indirect_glGenTexturesEXT;
    glAPI->IsTextureEXT = __indirect_glIsTextureEXT;
    glAPI->AreTexturesResidentEXT = __indirect_glAreTexturesResidentEXT;

    /*  25. GL_SGIS_multisample */

    glAPI->SampleMaskSGIS = __indirect_glSampleMaskSGIS;
    glAPI->SamplePatternSGIS = __indirect_glSamplePatternSGIS;

    /*  30. GL_EXT_vertex_array */

    glAPI->ColorPointerEXT = __indirect_glColorPointerEXT;
    glAPI->EdgeFlagPointerEXT = __indirect_glEdgeFlagPointerEXT;
    glAPI->IndexPointerEXT = __indirect_glIndexPointerEXT;
    glAPI->NormalPointerEXT = __indirect_glNormalPointerEXT;
    glAPI->TexCoordPointerEXT = __indirect_glTexCoordPointerEXT;
    glAPI->VertexPointerEXT = __indirect_glVertexPointerEXT;

    /*  54. GL_EXT_point_parameters */

    glAPI->PointParameterfEXT = __indirect_glPointParameterfEXT;
    glAPI->PointParameterfvEXT = __indirect_glPointParameterfvEXT;

    /* 145. GL_EXT_secondary_color */

    glAPI->SecondaryColor3usvEXT = __indirect_glSecondaryColor3usvEXT;
    glAPI->SecondaryColorPointerEXT = __indirect_glSecondaryColorPointerEXT;
    glAPI->SecondaryColor3bEXT = __indirect_glSecondaryColor3bEXT;
    glAPI->SecondaryColor3bvEXT = __indirect_glSecondaryColor3bvEXT;
    glAPI->SecondaryColor3dEXT = __indirect_glSecondaryColor3dEXT;
    glAPI->SecondaryColor3dvEXT = __indirect_glSecondaryColor3dvEXT;
    glAPI->SecondaryColor3fEXT = __indirect_glSecondaryColor3fEXT;
    glAPI->SecondaryColor3fvEXT = __indirect_glSecondaryColor3fvEXT;
    glAPI->SecondaryColor3iEXT = __indirect_glSecondaryColor3iEXT;
    glAPI->SecondaryColor3ivEXT = __indirect_glSecondaryColor3ivEXT;
    glAPI->SecondaryColor3sEXT = __indirect_glSecondaryColor3sEXT;
    glAPI->SecondaryColor3svEXT = __indirect_glSecondaryColor3svEXT;
    glAPI->SecondaryColor3ubEXT = __indirect_glSecondaryColor3ubEXT;
    glAPI->SecondaryColor3ubvEXT = __indirect_glSecondaryColor3ubvEXT;
    glAPI->SecondaryColor3uiEXT = __indirect_glSecondaryColor3uiEXT;
    glAPI->SecondaryColor3uivEXT = __indirect_glSecondaryColor3uivEXT;
    glAPI->SecondaryColor3usEXT = __indirect_glSecondaryColor3usEXT;

    /* 148. GL_EXT_multi_draw_arrays */

    glAPI->MultiDrawArraysEXT = __indirect_glMultiDrawArraysEXT;
    glAPI->MultiDrawElementsEXT = __indirect_glMultiDrawElementsEXT;

    /* 149. GL_EXT_fog_coord */

    glAPI->FogCoordfEXT = __indirect_glFogCoordfEXT;
    glAPI->FogCoordfvEXT = __indirect_glFogCoordfvEXT;
    glAPI->FogCoorddEXT = __indirect_glFogCoorddEXT;
    glAPI->FogCoorddvEXT = __indirect_glFogCoorddvEXT;
    glAPI->FogCoordPointerEXT = __indirect_glFogCoordPointerEXT;

    /* 173. GL_EXT_blend_func_separate */

    glAPI->BlendFuncSeparateEXT = __indirect_glBlendFuncSeparateEXT;

    /* 197. GL_MESA_window_pos */

    glAPI->WindowPos2dMESA = __indirect_glWindowPos2dMESA;
    glAPI->WindowPos2dvMESA = __indirect_glWindowPos2dvMESA;
    glAPI->WindowPos2fMESA = __indirect_glWindowPos2fMESA;
    glAPI->WindowPos2fvMESA = __indirect_glWindowPos2fvMESA;
    glAPI->WindowPos2iMESA = __indirect_glWindowPos2iMESA;
    glAPI->WindowPos2ivMESA = __indirect_glWindowPos2ivMESA;
    glAPI->WindowPos2sMESA = __indirect_glWindowPos2sMESA;
    glAPI->WindowPos2svMESA = __indirect_glWindowPos2svMESA;
    glAPI->WindowPos3dMESA = __indirect_glWindowPos3dMESA;
    glAPI->WindowPos3dvMESA = __indirect_glWindowPos3dvMESA;
    glAPI->WindowPos3fMESA = __indirect_glWindowPos3fMESA;
    glAPI->WindowPos3fvMESA = __indirect_glWindowPos3fvMESA;
    glAPI->WindowPos3iMESA = __indirect_glWindowPos3iMESA;
    glAPI->WindowPos3ivMESA = __indirect_glWindowPos3ivMESA;
    glAPI->WindowPos3sMESA = __indirect_glWindowPos3sMESA;
    glAPI->WindowPos3svMESA = __indirect_glWindowPos3svMESA;

    /* 233. GL_NV_vertex_program */

    glAPI->VertexAttribs4svNV = __indirect_glVertexAttribs4svNV;
    glAPI->VertexAttribs4ubvNV = __indirect_glVertexAttribs4ubvNV;
    glAPI->VertexAttrib3fNV = __indirect_glVertexAttrib3fNV;
    glAPI->VertexAttrib3fvNV = __indirect_glVertexAttrib3fvNV;
    glAPI->VertexAttrib3sNV = __indirect_glVertexAttrib3sNV;
    glAPI->VertexAttrib3svNV = __indirect_glVertexAttrib3svNV;
    glAPI->VertexAttrib4dNV = __indirect_glVertexAttrib4dNV;
    glAPI->VertexAttrib3dvNV = __indirect_glVertexAttrib3dvNV;
    glAPI->VertexAttrib4fNV = __indirect_glVertexAttrib4fNV;
    glAPI->VertexAttrib4fvNV = __indirect_glVertexAttrib4fvNV;
    glAPI->VertexAttrib4sNV = __indirect_glVertexAttrib4sNV;
    glAPI->VertexAttrib4svNV = __indirect_glVertexAttrib4svNV;
    glAPI->VertexAttrib4ubNV = __indirect_glVertexAttrib4ubNV;
    glAPI->VertexAttrib4ubvNV = __indirect_glVertexAttrib4ubvNV;
    glAPI->VertexAttrib1fvNV = __indirect_glVertexAttrib1fvNV;
    glAPI->VertexAttrib3dNV = __indirect_glVertexAttrib3dNV;
    glAPI->VertexAttrib4dvNV = __indirect_glVertexAttrib4dvNV;
    glAPI->VertexAttrib1sNV = __indirect_glVertexAttrib1sNV;
    glAPI->VertexAttrib1fNV = __indirect_glVertexAttrib1fNV;
    glAPI->VertexAttrib1svNV = __indirect_glVertexAttrib1svNV;
    glAPI->VertexAttrib1dvNV = __indirect_glVertexAttrib1dvNV;
    glAPI->AreProgramsResidentNV = __indirect_glAreProgramsResidentNV;
    glAPI->BindProgramNV = __indirect_glBindProgramNV;
    glAPI->DeleteProgramsNV = __indirect_glDeleteProgramsNV;
    glAPI->ExecuteProgramNV = __indirect_glExecuteProgramNV;
    glAPI->GenProgramsNV = __indirect_glGenProgramsNV;
    glAPI->GetProgramParameterdvNV = __indirect_glGetProgramParameterdvNV;
    glAPI->GetProgramParameterfvNV = __indirect_glGetProgramParameterfvNV;
    glAPI->GetProgramivNV = __indirect_glGetProgramivNV;
    glAPI->GetProgramStringNV = __indirect_glGetProgramStringNV;
    glAPI->GetTrackMatrixivNV = __indirect_glGetTrackMatrixivNV;
    glAPI->GetVertexAttribPointervNV = __indirect_glGetVertexAttribPointervNV;
    glAPI->IsProgramNV = __indirect_glIsProgramNV;
    glAPI->LoadProgramNV = __indirect_glLoadProgramNV;
    glAPI->ProgramParameter4dNV = __indirect_glProgramParameter4dNV;
    glAPI->ProgramParameter4dvNV = __indirect_glProgramParameter4dvNV;
    glAPI->ProgramParameter4fNV = __indirect_glProgramParameter4fNV;
    glAPI->ProgramParameter4fvNV = __indirect_glProgramParameter4fvNV;
    glAPI->ProgramParameters4dvNV = __indirect_glProgramParameters4dvNV;
    glAPI->ProgramParameters4fvNV = __indirect_glProgramParameters4fvNV;
    glAPI->RequestResidentProgramsNV = __indirect_glRequestResidentProgramsNV;
    glAPI->TrackMatrixNV = __indirect_glTrackMatrixNV;
    glAPI->VertexAttribPointerNV = __indirect_glVertexAttribPointerNV;
    glAPI->VertexAttrib2dNV = __indirect_glVertexAttrib2dNV;
    glAPI->VertexAttrib2sNV = __indirect_glVertexAttrib2sNV;
    glAPI->VertexAttrib2dvNV = __indirect_glVertexAttrib2dvNV;
    glAPI->VertexAttrib2fNV = __indirect_glVertexAttrib2fNV;
    glAPI->VertexAttrib2svNV = __indirect_glVertexAttrib2svNV;
    glAPI->VertexAttrib2fvNV = __indirect_glVertexAttrib2fvNV;
    glAPI->GetVertexAttribdvNV = __indirect_glGetVertexAttribdvNV;
    glAPI->GetVertexAttribfvNV = __indirect_glGetVertexAttribfvNV;
    glAPI->GetVertexAttribivNV = __indirect_glGetVertexAttribivNV;
    glAPI->VertexAttrib1dNV = __indirect_glVertexAttrib1dNV;
    glAPI->VertexAttribs1dvNV = __indirect_glVertexAttribs1dvNV;
    glAPI->VertexAttribs1fvNV = __indirect_glVertexAttribs1fvNV;
    glAPI->VertexAttribs1svNV = __indirect_glVertexAttribs1svNV;
    glAPI->VertexAttribs2dvNV = __indirect_glVertexAttribs2dvNV;
    glAPI->VertexAttribs2fvNV = __indirect_glVertexAttribs2fvNV;
    glAPI->VertexAttribs2svNV = __indirect_glVertexAttribs2svNV;
    glAPI->VertexAttribs3dvNV = __indirect_glVertexAttribs3dvNV;
    glAPI->VertexAttribs3fvNV = __indirect_glVertexAttribs3fvNV;
    glAPI->VertexAttribs3svNV = __indirect_glVertexAttribs3svNV;
    glAPI->VertexAttribs4dvNV = __indirect_glVertexAttribs4dvNV;
    glAPI->VertexAttribs4fvNV = __indirect_glVertexAttribs4fvNV;

    /* 262. GL_NV_point_sprite */

    glAPI->PointParameteriNV = __indirect_glPointParameteriNV;
    glAPI->PointParameterivNV = __indirect_glPointParameterivNV;

    /* 268. GL_EXT_stencil_two_side */

    glAPI->ActiveStencilFaceEXT = __indirect_glActiveStencilFaceEXT;

    /* 282. GL_NV_fragment_program */

    glAPI->ProgramNamedParameter4fNV = __indirect_glProgramNamedParameter4fNV;
    glAPI->ProgramNamedParameter4dNV = __indirect_glProgramNamedParameter4dNV;
    glAPI->ProgramNamedParameter4fvNV = __indirect_glProgramNamedParameter4fvNV;
    glAPI->ProgramNamedParameter4dvNV = __indirect_glProgramNamedParameter4dvNV;
    glAPI->GetProgramNamedParameterfvNV = __indirect_glGetProgramNamedParameterfvNV;
    glAPI->GetProgramNamedParameterdvNV = __indirect_glGetProgramNamedParameterdvNV;

    /* 310. GL_EXT_framebuffer_object */

    glAPI->RenderbufferStorageEXT = __indirect_glRenderbufferStorageEXT;
    glAPI->GetRenderbufferParameterivEXT = __indirect_glGetRenderbufferParameterivEXT;
    glAPI->IsFramebufferEXT = __indirect_glIsFramebufferEXT;
    glAPI->BindFramebufferEXT = __indirect_glBindFramebufferEXT;
    glAPI->DeleteFramebuffersEXT = __indirect_glDeleteFramebuffersEXT;
    glAPI->GenFramebuffersEXT = __indirect_glGenFramebuffersEXT;
    glAPI->CheckFramebufferStatusEXT = __indirect_glCheckFramebufferStatusEXT;
    glAPI->FramebufferTexture1DEXT = __indirect_glFramebufferTexture1DEXT;
    glAPI->FramebufferTexture2DEXT = __indirect_glFramebufferTexture2DEXT;
    glAPI->FramebufferTexture3DEXT = __indirect_glFramebufferTexture3DEXT;
    glAPI->FramebufferRenderbufferEXT = __indirect_glFramebufferRenderbufferEXT;
    glAPI->GetFramebufferAttachmentParameterivEXT = __indirect_glGetFramebufferAttachmentParameterivEXT;
    glAPI->GenerateMipmapEXT = __indirect_glGenerateMipmapEXT;
    glAPI->IsRenderbufferEXT = __indirect_glIsRenderbufferEXT;
    glAPI->BindRenderbufferEXT = __indirect_glBindRenderbufferEXT;
    glAPI->DeleteRenderbuffersEXT = __indirect_glDeleteRenderbuffersEXT;
    glAPI->GenRenderbuffersEXT = __indirect_glGenRenderbuffersEXT;

    return glAPI;
}