source: OGRE/trunk/ogrenew/RenderSystems/GL/src/glprocs.c @ 657

Revision 657, 187.3 KB checked in by mattausch, 18 years ago (diff)

added ogre dependencies and patched ogre sources

Line 
1#ifdef _WIN32
2/*
3** GLprocs utility for getting function addresses for OpenGL(R) 1.2,
4** OpenGL 1.3 and OpenGL extension functions.
5**
6** Version:  1.0
7**
8** License Applicability. Except to the extent portions of this file are
9** made subject to an alternative license as permitted in the SGI Free
10** Software License B, Version 1.1 (the "License"), the contents of this
11** file are subject only to the provisions of the License. You may not use
12** this file except in compliance with the License. You may obtain a copy
13** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
14** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
15**
16** http://oss.sgi.com/projects/FreeB
17**
18** Note that, as provided in the License, the Software is distributed on an
19** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
20** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
21** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
22** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
23**
24** Original Code. The Original Code is: OpenGL Sample Implementation,
25** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
26** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
27** Copyright in any portions created by third parties is as indicated
28** elsewhere herein. All Rights Reserved.
29**
30** Additional Notice Provisions: This software was created using the
31** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
32** not been independently verified as being compliant with the OpenGL(R)
33** version 1.2.1 Specification.
34**
35** Initial version of glprocs.{c,h} contributed by Intel(R) Corporation.
36*/
37
38#include <assert.h>
39#include <stdlib.h>
40
41#ifdef _WIN32
42  #include <windows.h>
43  #include <GL/gl.h> 
44  #include "glprocs.h"
45#else /* GLX */
46  #include <GL/gl.h>
47  #include <GL/glx.h>
48  #include <GL/glprocs.h>
49  #define wglGetProcAddress glXGetProcAddresARB
50#endif
51
52#define _ASSERT(a) assert(a)
53
54static void APIENTRY InitBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
55{
56        void *extproc;
57
58        extproc = (void *) wglGetProcAddress("glBlendColor");
59
60        if (extproc == NULL) {
61                _ASSERT(0);
62                return;
63        }
64
65        glBlendColor = extproc;
66
67        glBlendColor(red, green, blue, alpha);
68}
69
70static void APIENTRY InitBlendEquation (GLenum mode)
71{
72        void *extproc;
73
74        extproc = (void *) wglGetProcAddress("glBlendEquation");
75
76        if (extproc == NULL) {
77                _ASSERT(0);
78                return;
79        }
80
81        glBlendEquation = extproc;
82
83        glBlendEquation(mode);
84}
85
86static void APIENTRY InitDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
87{
88        void *extproc;
89
90        extproc = (void *) wglGetProcAddress("glDrawRangeElements");
91
92        if (extproc == NULL) {
93                _ASSERT(0);
94                return;
95        }
96
97        glDrawRangeElements = extproc;
98
99        glDrawRangeElements(mode, start, end, count, type, indices);
100}
101
102static void APIENTRY InitColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
103{
104        void *extproc;
105
106        extproc = (void *) wglGetProcAddress("glColorTable");
107
108        if (extproc == NULL) {
109                _ASSERT(0);
110                return;
111        }
112
113        glColorTable = extproc;
114
115        glColorTable(target, internalformat, width, format, type, table);
116}
117
118static void APIENTRY InitColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params)
119{
120        void *extproc;
121
122        extproc = (void *) wglGetProcAddress("glColorTableParameterfv");
123
124        if (extproc == NULL) {
125                _ASSERT(0);
126                return;
127        }
128
129        glColorTableParameterfv = extproc;
130
131        glColorTableParameterfv(target, pname, params);
132}
133
134static void APIENTRY InitColorTableParameteriv (GLenum target, GLenum pname, const GLint *params)
135{
136        void *extproc;
137
138        extproc = (void *) wglGetProcAddress("glColorTableParameteriv");
139
140        if (extproc == NULL) {
141                _ASSERT(0);
142                return;
143        }
144
145        glColorTableParameteriv = extproc;
146
147        glColorTableParameteriv(target, pname, params);
148}
149
150static void APIENTRY InitCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
151{
152        void *extproc;
153
154        extproc = (void *) wglGetProcAddress("glCopyColorTable");
155
156        if (extproc == NULL) {
157                _ASSERT(0);
158                return;
159        }
160
161        glCopyColorTable = extproc;
162
163        glCopyColorTable(target, internalformat, x, y, width);
164}
165
166static void APIENTRY InitGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table)
167{
168        void *extproc;
169
170        extproc = (void *) wglGetProcAddress("glGetColorTable");
171
172        if (extproc == NULL) {
173                _ASSERT(0);
174                return;
175        }
176
177        glGetColorTable = extproc;
178
179        glGetColorTable(target, format, type, table);
180}
181
182static void APIENTRY InitGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params)
183{
184        void *extproc;
185
186        extproc = (void *) wglGetProcAddress("glGetColorTableParameterfv");
187
188        if (extproc == NULL) {
189                _ASSERT(0);
190                return;
191        }
192
193        glGetColorTableParameterfv = extproc;
194
195        glGetColorTableParameterfv(target, pname, params);
196}
197
198static void APIENTRY InitGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params)
199{
200        void *extproc;
201
202        extproc = (void *) wglGetProcAddress("glGetColorTableParameteriv");
203
204        if (extproc == NULL) {
205                _ASSERT(0);
206                return;
207        }
208
209        glGetColorTableParameteriv = extproc;
210
211        glGetColorTableParameteriv(target, pname, params);
212}
213
214static void APIENTRY InitColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
215{
216        void *extproc;
217
218        extproc = (void *) wglGetProcAddress("glColorSubTable");
219
220        if (extproc == NULL) {
221                _ASSERT(0);
222                return;
223        }
224
225        glColorSubTable = extproc;
226
227        glColorSubTable(target, start, count, format, type, data);
228}
229
230static void APIENTRY InitCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
231{
232        void *extproc;
233
234        extproc = (void *) wglGetProcAddress("glCopyColorSubTable");
235
236        if (extproc == NULL) {
237                _ASSERT(0);
238                return;
239        }
240
241        glCopyColorSubTable = extproc;
242
243        glCopyColorSubTable(target, start, x, y, width);
244}
245
246static void APIENTRY InitConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)
247{
248        void *extproc;
249
250        extproc = (void *) wglGetProcAddress("glConvolutionFilter1D");
251
252        if (extproc == NULL) {
253                _ASSERT(0);
254                return;
255        }
256
257        glConvolutionFilter1D = extproc;
258
259        glConvolutionFilter1D(target, internalformat, width, format, type, image);
260}
261
262static void APIENTRY InitConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)
263{
264        void *extproc;
265
266        extproc = (void *) wglGetProcAddress("glConvolutionFilter2D");
267
268        if (extproc == NULL) {
269                _ASSERT(0);
270                return;
271        }
272
273        glConvolutionFilter2D = extproc;
274
275        glConvolutionFilter2D(target, internalformat, width, height, format, type, image);
276}
277
278static void APIENTRY InitConvolutionParameterf (GLenum target, GLenum pname, GLfloat params)
279{
280        void *extproc;
281
282        extproc = (void *) wglGetProcAddress("glConvolutionParameterf");
283
284        if (extproc == NULL) {
285                _ASSERT(0);
286                return;
287        }
288
289        glConvolutionParameterf = extproc;
290
291        glConvolutionParameterf(target, pname, params);
292}
293
294static void APIENTRY InitConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params)
295{
296        void *extproc;
297
298        extproc = (void *) wglGetProcAddress("glConvolutionParameterfv");
299
300        if (extproc == NULL) {
301                _ASSERT(0);
302                return;
303        }
304
305        glConvolutionParameterfv = extproc;
306
307        glConvolutionParameterfv(target, pname, params);
308}
309
310static void APIENTRY InitConvolutionParameteri (GLenum target, GLenum pname, GLint params)
311{
312        void *extproc;
313
314        extproc = (void *) wglGetProcAddress("glConvolutionParameteri");
315
316        if (extproc == NULL) {
317                _ASSERT(0);
318                return;
319        }
320
321        glConvolutionParameteri = extproc;
322
323        glConvolutionParameteri(target, pname, params);
324}
325
326static void APIENTRY InitConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params)
327{
328        void *extproc;
329
330        extproc = (void *) wglGetProcAddress("glConvolutionParameteriv");
331
332        if (extproc == NULL) {
333                _ASSERT(0);
334                return;
335        }
336
337        glConvolutionParameteriv = extproc;
338
339        glConvolutionParameteriv(target, pname, params);
340}
341
342static void APIENTRY InitCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
343{
344        void *extproc;
345
346        extproc = (void *) wglGetProcAddress("glCopyConvolutionFilter1D");
347
348        if (extproc == NULL) {
349                _ASSERT(0);
350                return;
351        }
352
353        glCopyConvolutionFilter1D = extproc;
354
355        glCopyConvolutionFilter1D(target, internalformat, x, y, width);
356}
357
358static void APIENTRY InitCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
359{
360        void *extproc;
361
362        extproc = (void *) wglGetProcAddress("glCopyConvolutionFilter2D");
363
364        if (extproc == NULL) {
365                _ASSERT(0);
366                return;
367        }
368
369        glCopyConvolutionFilter2D = extproc;
370
371        glCopyConvolutionFilter2D(target, internalformat, x, y, width, height);
372}
373
374static void APIENTRY InitGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image)
375{
376        void *extproc;
377
378        extproc = (void *) wglGetProcAddress("glGetConvolutionFilter");
379
380        if (extproc == NULL) {
381                _ASSERT(0);
382                return;
383        }
384
385        glGetConvolutionFilter = extproc;
386
387        glGetConvolutionFilter(target, format, type, image);
388}
389
390static void APIENTRY InitGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params)
391{
392        void *extproc;
393
394        extproc = (void *) wglGetProcAddress("glGetConvolutionParameterfv");
395
396        if (extproc == NULL) {
397                _ASSERT(0);
398                return;
399        }
400
401        glGetConvolutionParameterfv = extproc;
402
403        glGetConvolutionParameterfv(target, pname, params);
404}
405
406static void APIENTRY InitGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params)
407{
408        void *extproc;
409
410        extproc = (void *) wglGetProcAddress("glGetConvolutionParameteriv");
411
412        if (extproc == NULL) {
413                _ASSERT(0);
414                return;
415        }
416
417        glGetConvolutionParameteriv = extproc;
418
419        glGetConvolutionParameteriv(target, pname, params);
420}
421
422static void APIENTRY InitGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)
423{
424        void *extproc;
425
426        extproc = (void *) wglGetProcAddress("glGetSeparableFilter");
427
428        if (extproc == NULL) {
429                _ASSERT(0);
430                return;
431        }
432
433        glGetSeparableFilter = extproc;
434
435        glGetSeparableFilter(target, format, type, row, column, span);
436}
437
438static void APIENTRY InitSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)
439{
440        void *extproc;
441
442        extproc = (void *) wglGetProcAddress("glSeparableFilter2D");
443
444        if (extproc == NULL) {
445                _ASSERT(0);
446                return;
447        }
448
449        glSeparableFilter2D = extproc;
450
451        glSeparableFilter2D(target, internalformat, width, height, format, type, row, column);
452}
453
454static void APIENTRY InitGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
455{
456        void *extproc;
457
458        extproc = (void *) wglGetProcAddress("glGetHistogram");
459
460        if (extproc == NULL) {
461                _ASSERT(0);
462                return;
463        }
464
465        glGetHistogram = extproc;
466
467        glGetHistogram(target, reset, format, type, values);
468}
469
470static void APIENTRY InitGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params)
471{
472        void *extproc;
473
474        extproc = (void *) wglGetProcAddress("glGetHistogramParameterfv");
475
476        if (extproc == NULL) {
477                _ASSERT(0);
478                return;
479        }
480
481        glGetHistogramParameterfv = extproc;
482
483        glGetHistogramParameterfv(target, pname, params);
484}
485
486static void APIENTRY InitGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params)
487{
488        void *extproc;
489
490        extproc = (void *) wglGetProcAddress("glGetHistogramParameteriv");
491
492        if (extproc == NULL) {
493                _ASSERT(0);
494                return;
495        }
496
497        glGetHistogramParameteriv = extproc;
498
499        glGetHistogramParameteriv(target, pname, params);
500}
501
502static void APIENTRY InitGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
503{
504        void *extproc;
505
506        extproc = (void *) wglGetProcAddress("glGetMinmax");
507
508        if (extproc == NULL) {
509                _ASSERT(0);
510                return;
511        }
512
513        glGetMinmax = extproc;
514
515        glGetMinmax(target, reset, format, type, values);
516}
517
518static void APIENTRY InitGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params)
519{
520        void *extproc;
521
522        extproc = (void *) wglGetProcAddress("glGetMinmaxParameterfv");
523
524        if (extproc == NULL) {
525                _ASSERT(0);
526                return;
527        }
528
529        glGetMinmaxParameterfv = extproc;
530
531        glGetMinmaxParameterfv(target, pname, params);
532}
533
534static void APIENTRY InitGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params)
535{
536        void *extproc;
537
538        extproc = (void *) wglGetProcAddress("glGetMinmaxParameteriv");
539
540        if (extproc == NULL) {
541                _ASSERT(0);
542                return;
543        }
544
545        glGetMinmaxParameteriv = extproc;
546
547        glGetMinmaxParameteriv(target, pname, params);
548}
549
550static void APIENTRY InitHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
551{
552        void *extproc;
553
554        extproc = (void *) wglGetProcAddress("glHistogram");
555
556        if (extproc == NULL) {
557                _ASSERT(0);
558                return;
559        }
560
561        glHistogram = extproc;
562
563        glHistogram(target, width, internalformat, sink);
564}
565
566static void APIENTRY InitMinmax (GLenum target, GLenum internalformat, GLboolean sink)
567{
568        void *extproc;
569
570        extproc = (void *) wglGetProcAddress("glMinmax");
571
572        if (extproc == NULL) {
573                _ASSERT(0);
574                return;
575        }
576
577        glMinmax = extproc;
578
579        glMinmax(target, internalformat, sink);
580}
581
582static void APIENTRY InitResetHistogram (GLenum target)
583{
584        void *extproc;
585
586        extproc = (void *) wglGetProcAddress("glResetHistogram");
587
588        if (extproc == NULL) {
589                _ASSERT(0);
590                return;
591        }
592
593        glResetHistogram = extproc;
594
595        glResetHistogram(target);
596}
597
598static void APIENTRY InitResetMinmax (GLenum target)
599{
600        void *extproc;
601
602        extproc = (void *) wglGetProcAddress("glResetMinmax");
603
604        if (extproc == NULL) {
605                _ASSERT(0);
606                return;
607        }
608
609        glResetMinmax = extproc;
610
611        glResetMinmax(target);
612}
613
614static void APIENTRY InitTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
615{
616        void *extproc;
617
618        extproc = (void *) wglGetProcAddress("glTexImage3D");
619
620        if (extproc == NULL) {
621                _ASSERT(0);
622                return;
623        }
624
625        glTexImage3D = extproc;
626
627        glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels);
628}
629
630static void APIENTRY InitTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
631{
632        void *extproc;
633
634        extproc = (void *) wglGetProcAddress("glTexSubImage3D");
635
636        if (extproc == NULL) {
637                _ASSERT(0);
638                return;
639        }
640
641        glTexSubImage3D = extproc;
642
643        glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
644}
645
646static void APIENTRY InitCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
647{
648        void *extproc;
649
650        extproc = (void *) wglGetProcAddress("glCopyTexSubImage3D");
651
652        if (extproc == NULL) {
653                _ASSERT(0);
654                return;
655        }
656
657        glCopyTexSubImage3D = extproc;
658
659        glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
660}
661
662static void APIENTRY InitActiveTextureARB (GLenum texture)
663{
664        void *extproc;
665
666        extproc = (void *) wglGetProcAddress("glActiveTextureARB");
667
668        if (extproc == NULL) {
669                _ASSERT(0);
670                return;
671        }
672
673        glActiveTextureARB = extproc;
674
675        glActiveTextureARB(texture);
676}
677
678static void APIENTRY InitClientActiveTextureARB (GLenum texture)
679{
680        void *extproc;
681
682        extproc = (void *) wglGetProcAddress("glClientActiveTextureARB");
683
684        if (extproc == NULL) {
685                _ASSERT(0);
686                return;
687        }
688
689        glClientActiveTextureARB = extproc;
690
691        glClientActiveTextureARB(texture);
692}
693
694static void APIENTRY InitMultiTexCoord1dARB (GLenum target, GLdouble s)
695{
696        void *extproc;
697
698        extproc = (void *) wglGetProcAddress("glMultiTexCoord1dARB");
699
700        if (extproc == NULL) {
701                _ASSERT(0);
702                return;
703        }
704
705        glMultiTexCoord1dARB = extproc;
706
707        glMultiTexCoord1dARB(target, s);
708}
709
710static void APIENTRY InitMultiTexCoord1dvARB (GLenum target, const GLdouble *v)
711{
712        void *extproc;
713
714        extproc = (void *) wglGetProcAddress("glMultiTexCoord1dvARB");
715
716        if (extproc == NULL) {
717                _ASSERT(0);
718                return;
719        }
720
721        glMultiTexCoord1dvARB = extproc;
722
723        glMultiTexCoord1dvARB(target, v);
724}
725
726static void APIENTRY InitMultiTexCoord1fARB (GLenum target, GLfloat s)
727{
728        void *extproc;
729
730        extproc = (void *) wglGetProcAddress("glMultiTexCoord1fARB");
731
732        if (extproc == NULL) {
733                _ASSERT(0);
734                return;
735        }
736
737        glMultiTexCoord1fARB = extproc;
738
739        glMultiTexCoord1fARB(target, s);
740}
741
742static void APIENTRY InitMultiTexCoord1fvARB (GLenum target, const GLfloat *v)
743{
744        void *extproc;
745
746        extproc = (void *) wglGetProcAddress("glMultiTexCoord1fvARB");
747
748        if (extproc == NULL) {
749                _ASSERT(0);
750                return;
751        }
752
753        glMultiTexCoord1fvARB = extproc;
754
755        glMultiTexCoord1fvARB(target, v);
756}
757
758static void APIENTRY InitMultiTexCoord1iARB (GLenum target, GLint s)
759{
760        void *extproc;
761
762        extproc = (void *) wglGetProcAddress("glMultiTexCoord1iARB");
763
764        if (extproc == NULL) {
765                _ASSERT(0);
766                return;
767        }
768
769        glMultiTexCoord1iARB = extproc;
770
771        glMultiTexCoord1iARB(target, s);
772}
773
774static void APIENTRY InitMultiTexCoord1ivARB (GLenum target, const GLint *v)
775{
776        void *extproc;
777
778        extproc = (void *) wglGetProcAddress("glMultiTexCoord1ivARB");
779
780        if (extproc == NULL) {
781                _ASSERT(0);
782                return;
783        }
784
785        glMultiTexCoord1ivARB = extproc;
786
787        glMultiTexCoord1ivARB(target, v);
788}
789
790static void APIENTRY InitMultiTexCoord1sARB (GLenum target, GLshort s)
791{
792        void *extproc;
793
794        extproc = (void *) wglGetProcAddress("glMultiTexCoord1sARB");
795
796        if (extproc == NULL) {
797                _ASSERT(0);
798                return;
799        }
800
801        glMultiTexCoord1sARB = extproc;
802
803        glMultiTexCoord1sARB(target, s);
804}
805
806static void APIENTRY InitMultiTexCoord1svARB (GLenum target, const GLshort *v)
807{
808        void *extproc;
809
810        extproc = (void *) wglGetProcAddress("glMultiTexCoord1svARB");
811
812        if (extproc == NULL) {
813                _ASSERT(0);
814                return;
815        }
816
817        glMultiTexCoord1svARB = extproc;
818
819        glMultiTexCoord1svARB(target, v);
820}
821
822static void APIENTRY InitMultiTexCoord2dARB (GLenum target, GLdouble s, GLdouble t)
823{
824        void *extproc;
825
826        extproc = (void *) wglGetProcAddress("glMultiTexCoord2dARB");
827
828        if (extproc == NULL) {
829                _ASSERT(0);
830                return;
831        }
832
833        glMultiTexCoord2dARB = extproc;
834
835        glMultiTexCoord2dARB(target, s, t);
836}
837
838static void APIENTRY InitMultiTexCoord2dvARB (GLenum target, const GLdouble *v)
839{
840        void *extproc;
841
842        extproc = (void *) wglGetProcAddress("glMultiTexCoord2dvARB");
843
844        if (extproc == NULL) {
845                _ASSERT(0);
846                return;
847        }
848
849        glMultiTexCoord2dvARB = extproc;
850
851        glMultiTexCoord2dvARB(target, v);
852}
853
854static void APIENTRY InitMultiTexCoord2fARB (GLenum target, GLfloat s, GLfloat t)
855{
856        void *extproc;
857
858        extproc = (void *) wglGetProcAddress("glMultiTexCoord2fARB");
859
860        if (extproc == NULL) {
861                _ASSERT(0);
862                return;
863        }
864
865        glMultiTexCoord2fARB = extproc;
866
867        glMultiTexCoord2fARB(target, s, t);
868}
869
870static void APIENTRY InitMultiTexCoord2fvARB (GLenum target, const GLfloat *v)
871{
872        void *extproc;
873
874        extproc = (void *) wglGetProcAddress("glMultiTexCoord2fvARB");
875
876        if (extproc == NULL) {
877                _ASSERT(0);
878                return;
879        }
880
881        glMultiTexCoord2fvARB = extproc;
882
883        glMultiTexCoord2fvARB(target, v);
884}
885
886static void APIENTRY InitMultiTexCoord2iARB (GLenum target, GLint s, GLint t)
887{
888        void *extproc;
889
890        extproc = (void *) wglGetProcAddress("glMultiTexCoord2iARB");
891
892        if (extproc == NULL) {
893                _ASSERT(0);
894                return;
895        }
896
897        glMultiTexCoord2iARB = extproc;
898
899        glMultiTexCoord2iARB(target, s, t);
900}
901
902static void APIENTRY InitMultiTexCoord2ivARB (GLenum target, const GLint *v)
903{
904        void *extproc;
905
906        extproc = (void *) wglGetProcAddress("glMultiTexCoord2ivARB");
907
908        if (extproc == NULL) {
909                _ASSERT(0);
910                return;
911        }
912
913        glMultiTexCoord2ivARB = extproc;
914
915        glMultiTexCoord2ivARB(target, v);
916}
917
918static void APIENTRY InitMultiTexCoord2sARB (GLenum target, GLshort s, GLshort t)
919{
920        void *extproc;
921
922        extproc = (void *) wglGetProcAddress("glMultiTexCoord2sARB");
923
924        if (extproc == NULL) {
925                _ASSERT(0);
926                return;
927        }
928
929        glMultiTexCoord2sARB = extproc;
930
931        glMultiTexCoord2sARB(target, s, t);
932}
933
934static void APIENTRY InitMultiTexCoord2svARB (GLenum target, const GLshort *v)
935{
936        void *extproc;
937
938        extproc = (void *) wglGetProcAddress("glMultiTexCoord2svARB");
939
940        if (extproc == NULL) {
941                _ASSERT(0);
942                return;
943        }
944
945        glMultiTexCoord2svARB = extproc;
946
947        glMultiTexCoord2svARB(target, v);
948}
949
950static void APIENTRY InitMultiTexCoord3dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r)
951{
952        void *extproc;
953
954        extproc = (void *) wglGetProcAddress("glMultiTexCoord3dARB");
955
956        if (extproc == NULL) {
957                _ASSERT(0);
958                return;
959        }
960
961        glMultiTexCoord3dARB = extproc;
962
963        glMultiTexCoord3dARB(target, s, t, r);
964}
965
966static void APIENTRY InitMultiTexCoord3dvARB (GLenum target, const GLdouble *v)
967{
968        void *extproc;
969
970        extproc = (void *) wglGetProcAddress("glMultiTexCoord3dvARB");
971
972        if (extproc == NULL) {
973                _ASSERT(0);
974                return;
975        }
976
977        glMultiTexCoord3dvARB = extproc;
978
979        glMultiTexCoord3dvARB(target, v);
980}
981
982static void APIENTRY InitMultiTexCoord3fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r)
983{
984        void *extproc;
985
986        extproc = (void *) wglGetProcAddress("glMultiTexCoord3fARB");
987
988        if (extproc == NULL) {
989                _ASSERT(0);
990                return;
991        }
992
993        glMultiTexCoord3fARB = extproc;
994
995        glMultiTexCoord3fARB(target, s, t, r);
996}
997
998static void APIENTRY InitMultiTexCoord3fvARB (GLenum target, const GLfloat *v)
999{
1000        void *extproc;
1001
1002        extproc = (void *) wglGetProcAddress("glMultiTexCoord3fvARB");
1003
1004        if (extproc == NULL) {
1005                _ASSERT(0);
1006                return;
1007        }
1008
1009        glMultiTexCoord3fvARB = extproc;
1010
1011        glMultiTexCoord3fvARB(target, v);
1012}
1013
1014static void APIENTRY InitMultiTexCoord3iARB (GLenum target, GLint s, GLint t, GLint r)
1015{
1016        void *extproc;
1017
1018        extproc = (void *) wglGetProcAddress("glMultiTexCoord3iARB");
1019
1020        if (extproc == NULL) {
1021                _ASSERT(0);
1022                return;
1023        }
1024
1025        glMultiTexCoord3iARB = extproc;
1026
1027        glMultiTexCoord3iARB(target, s, t, r);
1028}
1029
1030static void APIENTRY InitMultiTexCoord3ivARB (GLenum target, const GLint *v)
1031{
1032        void *extproc;
1033
1034        extproc = (void *) wglGetProcAddress("glMultiTexCoord3ivARB");
1035
1036        if (extproc == NULL) {
1037                _ASSERT(0);
1038                return;
1039        }
1040
1041        glMultiTexCoord3ivARB = extproc;
1042
1043        glMultiTexCoord3ivARB(target, v);
1044}
1045
1046static void APIENTRY InitMultiTexCoord3sARB (GLenum target, GLshort s, GLshort t, GLshort r)
1047{
1048        void *extproc;
1049
1050        extproc = (void *) wglGetProcAddress("glMultiTexCoord3sARB");
1051
1052        if (extproc == NULL) {
1053                _ASSERT(0);
1054                return;
1055        }
1056
1057        glMultiTexCoord3sARB = extproc;
1058
1059        glMultiTexCoord3sARB(target, s, t, r);
1060}
1061
1062static void APIENTRY InitMultiTexCoord3svARB (GLenum target, const GLshort *v)
1063{
1064        void *extproc;
1065
1066        extproc = (void *) wglGetProcAddress("glMultiTexCoord3svARB");
1067
1068        if (extproc == NULL) {
1069                _ASSERT(0);
1070                return;
1071        }
1072
1073        glMultiTexCoord3svARB = extproc;
1074
1075        glMultiTexCoord3svARB(target, v);
1076}
1077
1078static void APIENTRY InitMultiTexCoord4dARB (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q)
1079{
1080        void *extproc;
1081
1082        extproc = (void *) wglGetProcAddress("glMultiTexCoord4dARB");
1083
1084        if (extproc == NULL) {
1085                _ASSERT(0);
1086                return;
1087        }
1088
1089        glMultiTexCoord4dARB = extproc;
1090
1091        glMultiTexCoord4dARB(target, s, t, r, q);
1092}
1093
1094static void APIENTRY InitMultiTexCoord4dvARB (GLenum target, const GLdouble *v)
1095{
1096        void *extproc;
1097
1098        extproc = (void *) wglGetProcAddress("glMultiTexCoord4dvARB");
1099
1100        if (extproc == NULL) {
1101                _ASSERT(0);
1102                return;
1103        }
1104
1105        glMultiTexCoord4dvARB = extproc;
1106
1107        glMultiTexCoord4dvARB(target, v);
1108}
1109
1110static void APIENTRY InitMultiTexCoord4fARB (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q)
1111{
1112        void *extproc;
1113
1114        extproc = (void *) wglGetProcAddress("glMultiTexCoord4fARB");
1115
1116        if (extproc == NULL) {
1117                _ASSERT(0);
1118                return;
1119        }
1120
1121        glMultiTexCoord4fARB = extproc;
1122
1123        glMultiTexCoord4fARB(target, s, t, r, q);
1124}
1125
1126static void APIENTRY InitMultiTexCoord4fvARB (GLenum target, const GLfloat *v)
1127{
1128        void *extproc;
1129
1130        extproc = (void *) wglGetProcAddress("glMultiTexCoord4fvARB");
1131
1132        if (extproc == NULL) {
1133                _ASSERT(0);
1134                return;
1135        }
1136
1137        glMultiTexCoord4fvARB = extproc;
1138
1139        glMultiTexCoord4fvARB(target, v);
1140}
1141
1142static void APIENTRY InitMultiTexCoord4iARB (GLenum target, GLint s, GLint t, GLint r, GLint q)
1143{
1144        void *extproc;
1145
1146        extproc = (void *) wglGetProcAddress("glMultiTexCoord4iARB");
1147
1148        if (extproc == NULL) {
1149                _ASSERT(0);
1150                return;
1151        }
1152
1153        glMultiTexCoord4iARB = extproc;
1154
1155        glMultiTexCoord4iARB(target, s, t, r, q);
1156}
1157
1158static void APIENTRY InitMultiTexCoord4ivARB (GLenum target, const GLint *v)
1159{
1160        void *extproc;
1161
1162        extproc = (void *) wglGetProcAddress("glMultiTexCoord4ivARB");
1163
1164        if (extproc == NULL) {
1165                _ASSERT(0);
1166                return;
1167        }
1168
1169        glMultiTexCoord4ivARB = extproc;
1170
1171        glMultiTexCoord4ivARB(target, v);
1172}
1173
1174static void APIENTRY InitMultiTexCoord4sARB (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q)
1175{
1176        void *extproc;
1177
1178        extproc = (void *) wglGetProcAddress("glMultiTexCoord4sARB");
1179
1180        if (extproc == NULL) {
1181                _ASSERT(0);
1182                return;
1183        }
1184
1185        glMultiTexCoord4sARB = extproc;
1186
1187        glMultiTexCoord4sARB(target, s, t, r, q);
1188}
1189
1190static void APIENTRY InitMultiTexCoord4svARB (GLenum target, const GLshort *v)
1191{
1192        void *extproc;
1193
1194        extproc = (void *) wglGetProcAddress("glMultiTexCoord4svARB");
1195
1196        if (extproc == NULL) {
1197                _ASSERT(0);
1198                return;
1199        }
1200
1201        glMultiTexCoord4svARB = extproc;
1202
1203        glMultiTexCoord4svARB(target, v);
1204}
1205
1206static void APIENTRY InitLoadTransposeMatrixfARB (const GLfloat *m)
1207{
1208        void *extproc;
1209
1210        extproc = (void *) wglGetProcAddress("glLoadTransposeMatrixfARB");
1211
1212        if (extproc == NULL) {
1213                _ASSERT(0);
1214                return;
1215        }
1216
1217        glLoadTransposeMatrixfARB = extproc;
1218
1219        glLoadTransposeMatrixfARB(m);
1220}
1221
1222static void APIENTRY InitLoadTransposeMatrixdARB (const GLdouble *m)
1223{
1224        void *extproc;
1225
1226        extproc = (void *) wglGetProcAddress("glLoadTransposeMatrixdARB");
1227
1228        if (extproc == NULL) {
1229                _ASSERT(0);
1230                return;
1231        }
1232
1233        glLoadTransposeMatrixdARB = extproc;
1234
1235        glLoadTransposeMatrixdARB(m);
1236}
1237
1238static void APIENTRY InitMultTransposeMatrixfARB (const GLfloat *m)
1239{
1240        void *extproc;
1241
1242        extproc = (void *) wglGetProcAddress("glMultTransposeMatrixfARB");
1243
1244        if (extproc == NULL) {
1245                _ASSERT(0);
1246                return;
1247        }
1248
1249        glMultTransposeMatrixfARB = extproc;
1250
1251        glMultTransposeMatrixfARB(m);
1252}
1253
1254static void APIENTRY InitMultTransposeMatrixdARB (const GLdouble *m)
1255{
1256        void *extproc;
1257
1258        extproc = (void *) wglGetProcAddress("glMultTransposeMatrixdARB");
1259
1260        if (extproc == NULL) {
1261                _ASSERT(0);
1262                return;
1263        }
1264
1265        glMultTransposeMatrixdARB = extproc;
1266
1267        glMultTransposeMatrixdARB(m);
1268}
1269
1270static void APIENTRY InitSampleCoverageARB (GLclampf value, GLboolean invert)
1271{
1272        void *extproc;
1273
1274        extproc = (void *) wglGetProcAddress("glSampleCoverageARB");
1275
1276        if (extproc == NULL) {
1277                _ASSERT(0);
1278                return;
1279        }
1280
1281        glSampleCoverageARB = extproc;
1282
1283        glSampleCoverageARB(value, invert);
1284}
1285
1286static void APIENTRY InitCompressedTexImage3DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data)
1287{
1288        void *extproc;
1289
1290        extproc = (void *) wglGetProcAddress("glCompressedTexImage3DARB");
1291
1292        if (extproc == NULL) {
1293                _ASSERT(0);
1294                return;
1295        }
1296
1297        glCompressedTexImage3DARB = extproc;
1298
1299        glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, data);
1300}
1301
1302static void APIENTRY InitCompressedTexImage2DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data)
1303{
1304        void *extproc;
1305
1306        extproc = (void *) wglGetProcAddress("glCompressedTexImage2DARB");
1307
1308        if (extproc == NULL) {
1309                _ASSERT(0);
1310                return;
1311        }
1312
1313        glCompressedTexImage2DARB = extproc;
1314
1315        glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, data);
1316}
1317
1318static void APIENTRY InitCompressedTexImage1DARB (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data)
1319{
1320        void *extproc;
1321
1322        extproc = (void *) wglGetProcAddress("glCompressedTexImage1DARB");
1323
1324        if (extproc == NULL) {
1325                _ASSERT(0);
1326                return;
1327        }
1328
1329        glCompressedTexImage1DARB = extproc;
1330
1331        glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, data);
1332}
1333
1334static void APIENTRY InitCompressedTexSubImage3DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data)
1335{
1336        void *extproc;
1337
1338        extproc = (void *) wglGetProcAddress("glCompressedTexSubImage3DARB");
1339
1340        if (extproc == NULL) {
1341                _ASSERT(0);
1342                return;
1343        }
1344
1345        glCompressedTexSubImage3DARB = extproc;
1346
1347        glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data);
1348}
1349
1350static void APIENTRY InitCompressedTexSubImage2DARB (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data)
1351{
1352        void *extproc;
1353
1354        extproc = (void *) wglGetProcAddress("glCompressedTexSubImage2DARB");
1355
1356        if (extproc == NULL) {
1357                _ASSERT(0);
1358                return;
1359        }
1360
1361        glCompressedTexSubImage2DARB = extproc;
1362
1363        glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, format, imageSize, data);
1364}
1365
1366static void APIENTRY InitCompressedTexSubImage1DARB (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data)
1367{
1368        void *extproc;
1369
1370        extproc = (void *) wglGetProcAddress("glCompressedTexSubImage1DARB");
1371
1372        if (extproc == NULL) {
1373                _ASSERT(0);
1374                return;
1375        }
1376
1377        glCompressedTexSubImage1DARB = extproc;
1378
1379        glCompressedTexSubImage1DARB(target, level, xoffset, width, format, imageSize, data);
1380}
1381
1382static void APIENTRY InitGetCompressedTexImageARB (GLenum target, GLint level)
1383{
1384        void *extproc;
1385
1386        extproc = (void *) wglGetProcAddress("glGetCompressedTexImageARB");
1387
1388        if (extproc == NULL) {
1389                _ASSERT(0);
1390                return;
1391        }
1392
1393        glGetCompressedTexImageARB = extproc;
1394
1395        glGetCompressedTexImageARB(target, level);
1396}
1397
1398static void APIENTRY InitWeightbvARB (GLint size, const GLbyte *weights)
1399{
1400        void *extproc;
1401
1402        extproc = (void *) wglGetProcAddress("glWeightbvARB");
1403
1404        if (extproc == NULL) {
1405                _ASSERT(0);
1406                return;
1407        }
1408
1409        glWeightbvARB = extproc;
1410
1411        glWeightbvARB(size, weights);
1412}
1413
1414static void APIENTRY InitWeightsvARB (GLint size, const GLshort *weights)
1415{
1416        void *extproc;
1417
1418        extproc = (void *) wglGetProcAddress("glWeightsvARB");
1419
1420        if (extproc == NULL) {
1421                _ASSERT(0);
1422                return;
1423        }
1424
1425        glWeightsvARB = extproc;
1426
1427        glWeightsvARB(size, weights);
1428}
1429
1430static void APIENTRY InitWeightivARB (GLint size, const GLint *weights)
1431{
1432        void *extproc;
1433
1434        extproc = (void *) wglGetProcAddress("glWeightivARB");
1435
1436        if (extproc == NULL) {
1437                _ASSERT(0);
1438                return;
1439        }
1440
1441        glWeightivARB = extproc;
1442
1443        glWeightivARB(size, weights);
1444}
1445
1446static void APIENTRY InitWeightfvARB (GLint size, const GLfloat *weights)
1447{
1448        void *extproc;
1449
1450        extproc = (void *) wglGetProcAddress("glWeightfvARB");
1451
1452        if (extproc == NULL) {
1453                _ASSERT(0);
1454                return;
1455        }
1456
1457        glWeightfvARB = extproc;
1458
1459        glWeightfvARB(size, weights);
1460}
1461
1462static void APIENTRY InitWeightdvARB (GLint size, const GLdouble *weights)
1463{
1464        void *extproc;
1465
1466        extproc = (void *) wglGetProcAddress("glWeightdvARB");
1467
1468        if (extproc == NULL) {
1469                _ASSERT(0);
1470                return;
1471        }
1472
1473        glWeightdvARB = extproc;
1474
1475        glWeightdvARB(size, weights);
1476}
1477
1478static void APIENTRY InitWeightubvARB (GLint size, const GLubyte *weights)
1479{
1480        void *extproc;
1481
1482        extproc = (void *) wglGetProcAddress("glWeightubvARB");
1483
1484        if (extproc == NULL) {
1485                _ASSERT(0);
1486                return;
1487        }
1488
1489        glWeightubvARB = extproc;
1490
1491        glWeightubvARB(size, weights);
1492}
1493
1494static void APIENTRY InitWeightusvARB (GLint size, const GLushort *weights)
1495{
1496        void *extproc;
1497
1498        extproc = (void *) wglGetProcAddress("glWeightusvARB");
1499
1500        if (extproc == NULL) {
1501                _ASSERT(0);
1502                return;
1503        }
1504
1505        glWeightusvARB = extproc;
1506
1507        glWeightusvARB(size, weights);
1508}
1509
1510static void APIENTRY InitWeightuivARB (GLint size, const GLuint *weights)
1511{
1512        void *extproc;
1513
1514        extproc = (void *) wglGetProcAddress("glWeightuivARB");
1515
1516        if (extproc == NULL) {
1517                _ASSERT(0);
1518                return;
1519        }
1520
1521        glWeightuivARB = extproc;
1522
1523        glWeightuivARB(size, weights);
1524}
1525
1526static void APIENTRY InitWeightPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
1527{
1528        void *extproc;
1529
1530        extproc = (void *) wglGetProcAddress("glWeightPointerARB");
1531
1532        if (extproc == NULL) {
1533                _ASSERT(0);
1534                return;
1535        }
1536
1537        glWeightPointerARB = extproc;
1538
1539        glWeightPointerARB(size, type, stride, pointer);
1540}
1541
1542static void APIENTRY InitVertexBlendARB (GLint count)
1543{
1544        void *extproc;
1545
1546        extproc = (void *) wglGetProcAddress("glVertexBlendARB");
1547
1548        if (extproc == NULL) {
1549                _ASSERT(0);
1550                return;
1551        }
1552
1553        glVertexBlendARB = extproc;
1554
1555        glVertexBlendARB(count);
1556}
1557
1558static void APIENTRY InitCurrentPaletteMatrixARB (GLint index)
1559{
1560        void *extproc;
1561
1562        extproc = (void *) wglGetProcAddress("glCurrentPaletteMatrixARB");
1563
1564        if (extproc == NULL) {
1565                _ASSERT(0);
1566                return;
1567        }
1568
1569        glCurrentPaletteMatrixARB = extproc;
1570
1571        glCurrentPaletteMatrixARB(index);
1572}
1573
1574static void APIENTRY InitMatrixIndexubvARB (GLint size, const GLubyte *indices)
1575{
1576        void *extproc;
1577
1578        extproc = (void *) wglGetProcAddress("glMatrixIndexubvARB");
1579
1580        if (extproc == NULL) {
1581                _ASSERT(0);
1582                return;
1583        }
1584
1585        glMatrixIndexubvARB = extproc;
1586
1587        glMatrixIndexubvARB(size, indices);
1588}
1589
1590static void APIENTRY InitMatrixIndexusvARB (GLint size, const GLushort *indices)
1591{
1592        void *extproc;
1593
1594        extproc = (void *) wglGetProcAddress("glMatrixIndexusvARB");
1595
1596        if (extproc == NULL) {
1597                _ASSERT(0);
1598                return;
1599        }
1600
1601        glMatrixIndexusvARB = extproc;
1602
1603        glMatrixIndexusvARB(size, indices);
1604}
1605
1606static void APIENTRY InitMatrixIndexuivARB (GLint size, const GLuint *indices)
1607{
1608        void *extproc;
1609
1610        extproc = (void *) wglGetProcAddress("glMatrixIndexuivARB");
1611
1612        if (extproc == NULL) {
1613                _ASSERT(0);
1614                return;
1615        }
1616
1617        glMatrixIndexuivARB = extproc;
1618
1619        glMatrixIndexuivARB(size, indices);
1620}
1621
1622static void APIENTRY InitMatrixIndexPointerARB (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
1623{
1624        void *extproc;
1625
1626        extproc = (void *) wglGetProcAddress("glMatrixIndexPointerARB");
1627
1628        if (extproc == NULL) {
1629                _ASSERT(0);
1630                return;
1631        }
1632
1633        glMatrixIndexPointerARB = extproc;
1634
1635        glMatrixIndexPointerARB(size, type, stride, pointer);
1636}
1637
1638static void APIENTRY InitBlendColorEXT (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha)
1639{
1640        void *extproc;
1641
1642        extproc = (void *) wglGetProcAddress("glBlendColorEXT");
1643
1644        if (extproc == NULL) {
1645                _ASSERT(0);
1646                return;
1647        }
1648
1649        glBlendColorEXT = extproc;
1650
1651        glBlendColorEXT(red, green, blue, alpha);
1652}
1653
1654static void APIENTRY InitPolygonOffsetEXT (GLfloat factor, GLfloat bias)
1655{
1656        void *extproc;
1657
1658        extproc = (void *) wglGetProcAddress("glPolygonOffsetEXT");
1659
1660        if (extproc == NULL) {
1661                _ASSERT(0);
1662                return;
1663        }
1664
1665        glPolygonOffsetEXT = extproc;
1666
1667        glPolygonOffsetEXT(factor, bias);
1668}
1669
1670static void APIENTRY InitTexImage3DEXT (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
1671{
1672        void *extproc;
1673
1674        extproc = (void *) wglGetProcAddress("glTexImage3DEXT");
1675
1676        if (extproc == NULL) {
1677                _ASSERT(0);
1678                return;
1679        }
1680
1681        glTexImage3DEXT = extproc;
1682
1683        glTexImage3DEXT(target, level, internalformat, width, height, depth, border, format, type, pixels);
1684}
1685
1686static void APIENTRY InitTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels)
1687{
1688        void *extproc;
1689
1690        extproc = (void *) wglGetProcAddress("glTexSubImage3DEXT");
1691
1692        if (extproc == NULL) {
1693                _ASSERT(0);
1694                return;
1695        }
1696
1697        glTexSubImage3DEXT = extproc;
1698
1699        glTexSubImage3DEXT(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels);
1700}
1701
1702static void APIENTRY InitGetTexFilterFuncSGIS (GLenum target, GLenum filter, GLfloat *weights)
1703{
1704        void *extproc;
1705
1706        extproc = (void *) wglGetProcAddress("glGetTexFilterFuncSGIS");
1707
1708        if (extproc == NULL) {
1709                _ASSERT(0);
1710                return;
1711        }
1712
1713        glGetTexFilterFuncSGIS = extproc;
1714
1715        glGetTexFilterFuncSGIS(target, filter, weights);
1716}
1717
1718static void APIENTRY InitTexFilterFuncSGIS (GLenum target, GLenum filter, GLsizei n, const GLfloat *weights)
1719{
1720        void *extproc;
1721
1722        extproc = (void *) wglGetProcAddress("glTexFilterFuncSGIS");
1723
1724        if (extproc == NULL) {
1725                _ASSERT(0);
1726                return;
1727        }
1728
1729        glTexFilterFuncSGIS = extproc;
1730
1731        glTexFilterFuncSGIS(target, filter, n, weights);
1732}
1733
1734static void APIENTRY InitTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels)
1735{
1736        void *extproc;
1737
1738        extproc = (void *) wglGetProcAddress("glTexSubImage1DEXT");
1739
1740        if (extproc == NULL) {
1741                _ASSERT(0);
1742                return;
1743        }
1744
1745        glTexSubImage1DEXT = extproc;
1746
1747        glTexSubImage1DEXT(target, level, xoffset, width, format, type, pixels);
1748}
1749
1750static void APIENTRY InitTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels)
1751{
1752        void *extproc;
1753
1754        extproc = (void *) wglGetProcAddress("glTexSubImage2DEXT");
1755
1756        if (extproc == NULL) {
1757                _ASSERT(0);
1758                return;
1759        }
1760
1761        glTexSubImage2DEXT = extproc;
1762
1763        glTexSubImage2DEXT(target, level, xoffset, yoffset, width, height, format, type, pixels);
1764}
1765
1766static void APIENTRY InitCopyTexImage1DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border)
1767{
1768        void *extproc;
1769
1770        extproc = (void *) wglGetProcAddress("glCopyTexImage1DEXT");
1771
1772        if (extproc == NULL) {
1773                _ASSERT(0);
1774                return;
1775        }
1776
1777        glCopyTexImage1DEXT = extproc;
1778
1779        glCopyTexImage1DEXT(target, level, internalformat, x, y, width, border);
1780}
1781
1782static void APIENTRY InitCopyTexImage2DEXT (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border)
1783{
1784        void *extproc;
1785
1786        extproc = (void *) wglGetProcAddress("glCopyTexImage2DEXT");
1787
1788        if (extproc == NULL) {
1789                _ASSERT(0);
1790                return;
1791        }
1792
1793        glCopyTexImage2DEXT = extproc;
1794
1795        glCopyTexImage2DEXT(target, level, internalformat, x, y, width, height, border);
1796}
1797
1798static void APIENTRY InitCopyTexSubImage1DEXT (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width)
1799{
1800        void *extproc;
1801
1802        extproc = (void *) wglGetProcAddress("glCopyTexSubImage1DEXT");
1803
1804        if (extproc == NULL) {
1805                _ASSERT(0);
1806                return;
1807        }
1808
1809        glCopyTexSubImage1DEXT = extproc;
1810
1811        glCopyTexSubImage1DEXT(target, level, xoffset, x, y, width);
1812}
1813
1814static void APIENTRY InitCopyTexSubImage2DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height)
1815{
1816        void *extproc;
1817
1818        extproc = (void *) wglGetProcAddress("glCopyTexSubImage2DEXT");
1819
1820        if (extproc == NULL) {
1821                _ASSERT(0);
1822                return;
1823        }
1824
1825        glCopyTexSubImage2DEXT = extproc;
1826
1827        glCopyTexSubImage2DEXT(target, level, xoffset, yoffset, x, y, width, height);
1828}
1829
1830static void APIENTRY InitCopyTexSubImage3DEXT (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height)
1831{
1832        void *extproc;
1833
1834        extproc = (void *) wglGetProcAddress("glCopyTexSubImage3DEXT");
1835
1836        if (extproc == NULL) {
1837                _ASSERT(0);
1838                return;
1839        }
1840
1841        glCopyTexSubImage3DEXT = extproc;
1842
1843        glCopyTexSubImage3DEXT(target, level, xoffset, yoffset, zoffset, x, y, width, height);
1844}
1845
1846static void APIENTRY InitGetHistogramEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
1847{
1848        void *extproc;
1849
1850        extproc = (void *) wglGetProcAddress("glGetHistogramEXT");
1851
1852        if (extproc == NULL) {
1853                _ASSERT(0);
1854                return;
1855        }
1856
1857        glGetHistogramEXT = extproc;
1858
1859        glGetHistogramEXT(target, reset, format, type, values);
1860}
1861
1862static void APIENTRY InitGetHistogramParameterfvEXT (GLenum target, GLenum pname, GLfloat *params)
1863{
1864        void *extproc;
1865
1866        extproc = (void *) wglGetProcAddress("glGetHistogramParameterfvEXT");
1867
1868        if (extproc == NULL) {
1869                _ASSERT(0);
1870                return;
1871        }
1872
1873        glGetHistogramParameterfvEXT = extproc;
1874
1875        glGetHistogramParameterfvEXT(target, pname, params);
1876}
1877
1878static void APIENTRY InitGetHistogramParameterivEXT (GLenum target, GLenum pname, GLint *params)
1879{
1880        void *extproc;
1881
1882        extproc = (void *) wglGetProcAddress("glGetHistogramParameterivEXT");
1883
1884        if (extproc == NULL) {
1885                _ASSERT(0);
1886                return;
1887        }
1888
1889        glGetHistogramParameterivEXT = extproc;
1890
1891        glGetHistogramParameterivEXT(target, pname, params);
1892}
1893
1894static void APIENTRY InitGetMinmaxEXT (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values)
1895{
1896        void *extproc;
1897
1898        extproc = (void *) wglGetProcAddress("glGetMinmaxEXT");
1899
1900        if (extproc == NULL) {
1901                _ASSERT(0);
1902                return;
1903        }
1904
1905        glGetMinmaxEXT = extproc;
1906
1907        glGetMinmaxEXT(target, reset, format, type, values);
1908}
1909
1910static void APIENTRY InitGetMinmaxParameterfvEXT (GLenum target, GLenum pname, GLfloat *params)
1911{
1912        void *extproc;
1913
1914        extproc = (void *) wglGetProcAddress("glGetMinmaxParameterfvEXT");
1915
1916        if (extproc == NULL) {
1917                _ASSERT(0);
1918                return;
1919        }
1920
1921        glGetMinmaxParameterfvEXT = extproc;
1922
1923        glGetMinmaxParameterfvEXT(target, pname, params);
1924}
1925
1926static void APIENTRY InitGetMinmaxParameterivEXT (GLenum target, GLenum pname, GLint *params)
1927{
1928        void *extproc;
1929
1930        extproc = (void *) wglGetProcAddress("glGetMinmaxParameterivEXT");
1931
1932        if (extproc == NULL) {
1933                _ASSERT(0);
1934                return;
1935        }
1936
1937        glGetMinmaxParameterivEXT = extproc;
1938
1939        glGetMinmaxParameterivEXT(target, pname, params);
1940}
1941
1942static void APIENTRY InitHistogramEXT (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink)
1943{
1944        void *extproc;
1945
1946        extproc = (void *) wglGetProcAddress("glHistogramEXT");
1947
1948        if (extproc == NULL) {
1949                _ASSERT(0);
1950                return;
1951        }
1952
1953        glHistogramEXT = extproc;
1954
1955        glHistogramEXT(target, width, internalformat, sink);
1956}
1957
1958static void APIENTRY InitMinmaxEXT (GLenum target, GLenum internalformat, GLboolean sink)
1959{
1960        void *extproc;
1961
1962        extproc = (void *) wglGetProcAddress("glMinmaxEXT");
1963
1964        if (extproc == NULL) {
1965                _ASSERT(0);
1966                return;
1967        }
1968
1969        glMinmaxEXT = extproc;
1970
1971        glMinmaxEXT(target, internalformat, sink);
1972}
1973
1974static void APIENTRY InitResetHistogramEXT (GLenum target)
1975{
1976        void *extproc;
1977
1978        extproc = (void *) wglGetProcAddress("glResetHistogramEXT");
1979
1980        if (extproc == NULL) {
1981                _ASSERT(0);
1982                return;
1983        }
1984
1985        glResetHistogramEXT = extproc;
1986
1987        glResetHistogramEXT(target);
1988}
1989
1990static void APIENTRY InitResetMinmaxEXT (GLenum target)
1991{
1992        void *extproc;
1993
1994        extproc = (void *) wglGetProcAddress("glResetMinmaxEXT");
1995
1996        if (extproc == NULL) {
1997                _ASSERT(0);
1998                return;
1999        }
2000
2001        glResetMinmaxEXT = extproc;
2002
2003        glResetMinmaxEXT(target);
2004}
2005
2006static void APIENTRY InitConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image)
2007{
2008        void *extproc;
2009
2010        extproc = (void *) wglGetProcAddress("glConvolutionFilter1DEXT");
2011
2012        if (extproc == NULL) {
2013                _ASSERT(0);
2014                return;
2015        }
2016
2017        glConvolutionFilter1DEXT = extproc;
2018
2019        glConvolutionFilter1DEXT(target, internalformat, width, format, type, image);
2020}
2021
2022static void APIENTRY InitConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image)
2023{
2024        void *extproc;
2025
2026        extproc = (void *) wglGetProcAddress("glConvolutionFilter2DEXT");
2027
2028        if (extproc == NULL) {
2029                _ASSERT(0);
2030                return;
2031        }
2032
2033        glConvolutionFilter2DEXT = extproc;
2034
2035        glConvolutionFilter2DEXT(target, internalformat, width, height, format, type, image);
2036}
2037
2038static void APIENTRY InitConvolutionParameterfEXT (GLenum target, GLenum pname, GLfloat params)
2039{
2040        void *extproc;
2041
2042        extproc = (void *) wglGetProcAddress("glConvolutionParameterfEXT");
2043
2044        if (extproc == NULL) {
2045                _ASSERT(0);
2046                return;
2047        }
2048
2049        glConvolutionParameterfEXT = extproc;
2050
2051        glConvolutionParameterfEXT(target, pname, params);
2052}
2053
2054static void APIENTRY InitConvolutionParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params)
2055{
2056        void *extproc;
2057
2058        extproc = (void *) wglGetProcAddress("glConvolutionParameterfvEXT");
2059
2060        if (extproc == NULL) {
2061                _ASSERT(0);
2062                return;
2063        }
2064
2065        glConvolutionParameterfvEXT = extproc;
2066
2067        glConvolutionParameterfvEXT(target, pname, params);
2068}
2069
2070static void APIENTRY InitConvolutionParameteriEXT (GLenum target, GLenum pname, GLint params)
2071{
2072        void *extproc;
2073
2074        extproc = (void *) wglGetProcAddress("glConvolutionParameteriEXT");
2075
2076        if (extproc == NULL) {
2077                _ASSERT(0);
2078                return;
2079        }
2080
2081        glConvolutionParameteriEXT = extproc;
2082
2083        glConvolutionParameteriEXT(target, pname, params);
2084}
2085
2086static void APIENTRY InitConvolutionParameterivEXT (GLenum target, GLenum pname, const GLint *params)
2087{
2088        void *extproc;
2089
2090        extproc = (void *) wglGetProcAddress("glConvolutionParameterivEXT");
2091
2092        if (extproc == NULL) {
2093                _ASSERT(0);
2094                return;
2095        }
2096
2097        glConvolutionParameterivEXT = extproc;
2098
2099        glConvolutionParameterivEXT(target, pname, params);
2100}
2101
2102static void APIENTRY InitCopyConvolutionFilter1DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
2103{
2104        void *extproc;
2105
2106        extproc = (void *) wglGetProcAddress("glCopyConvolutionFilter1DEXT");
2107
2108        if (extproc == NULL) {
2109                _ASSERT(0);
2110                return;
2111        }
2112
2113        glCopyConvolutionFilter1DEXT = extproc;
2114
2115        glCopyConvolutionFilter1DEXT(target, internalformat, x, y, width);
2116}
2117
2118static void APIENTRY InitCopyConvolutionFilter2DEXT (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height)
2119{
2120        void *extproc;
2121
2122        extproc = (void *) wglGetProcAddress("glCopyConvolutionFilter2DEXT");
2123
2124        if (extproc == NULL) {
2125                _ASSERT(0);
2126                return;
2127        }
2128
2129        glCopyConvolutionFilter2DEXT = extproc;
2130
2131        glCopyConvolutionFilter2DEXT(target, internalformat, x, y, width, height);
2132}
2133
2134static void APIENTRY InitGetConvolutionFilterEXT (GLenum target, GLenum format, GLenum type, GLvoid *image)
2135{
2136        void *extproc;
2137
2138        extproc = (void *) wglGetProcAddress("glGetConvolutionFilterEXT");
2139
2140        if (extproc == NULL) {
2141                _ASSERT(0);
2142                return;
2143        }
2144
2145        glGetConvolutionFilterEXT = extproc;
2146
2147        glGetConvolutionFilterEXT(target, format, type, image);
2148}
2149
2150static void APIENTRY InitGetConvolutionParameterfvEXT (GLenum target, GLenum pname, GLfloat *params)
2151{
2152        void *extproc;
2153
2154        extproc = (void *) wglGetProcAddress("glGetConvolutionParameterfvEXT");
2155
2156        if (extproc == NULL) {
2157                _ASSERT(0);
2158                return;
2159        }
2160
2161        glGetConvolutionParameterfvEXT = extproc;
2162
2163        glGetConvolutionParameterfvEXT(target, pname, params);
2164}
2165
2166static void APIENTRY InitGetConvolutionParameterivEXT (GLenum target, GLenum pname, GLint *params)
2167{
2168        void *extproc;
2169
2170        extproc = (void *) wglGetProcAddress("glGetConvolutionParameterivEXT");
2171
2172        if (extproc == NULL) {
2173                _ASSERT(0);
2174                return;
2175        }
2176
2177        glGetConvolutionParameterivEXT = extproc;
2178
2179        glGetConvolutionParameterivEXT(target, pname, params);
2180}
2181
2182static void APIENTRY InitGetSeparableFilterEXT (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span)
2183{
2184        void *extproc;
2185
2186        extproc = (void *) wglGetProcAddress("glGetSeparableFilterEXT");
2187
2188        if (extproc == NULL) {
2189                _ASSERT(0);
2190                return;
2191        }
2192
2193        glGetSeparableFilterEXT = extproc;
2194
2195        glGetSeparableFilterEXT(target, format, type, row, column, span);
2196}
2197
2198static void APIENTRY InitSeparableFilter2DEXT (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column)
2199{
2200        void *extproc;
2201
2202        extproc = (void *) wglGetProcAddress("glSeparableFilter2DEXT");
2203
2204        if (extproc == NULL) {
2205                _ASSERT(0);
2206                return;
2207        }
2208
2209        glSeparableFilter2DEXT = extproc;
2210
2211        glSeparableFilter2DEXT(target, internalformat, width, height, format, type, row, column);
2212}
2213
2214static void APIENTRY InitColorTableSGI (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
2215{
2216        void *extproc;
2217
2218        extproc = (void *) wglGetProcAddress("glColorTableSGI");
2219
2220        if (extproc == NULL) {
2221                _ASSERT(0);
2222                return;
2223        }
2224
2225        glColorTableSGI = extproc;
2226
2227        glColorTableSGI(target, internalformat, width, format, type, table);
2228}
2229
2230static void APIENTRY InitColorTableParameterfvSGI (GLenum target, GLenum pname, const GLfloat *params)
2231{
2232        void *extproc;
2233
2234        extproc = (void *) wglGetProcAddress("glColorTableParameterfvSGI");
2235
2236        if (extproc == NULL) {
2237                _ASSERT(0);
2238                return;
2239        }
2240
2241        glColorTableParameterfvSGI = extproc;
2242
2243        glColorTableParameterfvSGI(target, pname, params);
2244}
2245
2246static void APIENTRY InitColorTableParameterivSGI (GLenum target, GLenum pname, const GLint *params)
2247{
2248        void *extproc;
2249
2250        extproc = (void *) wglGetProcAddress("glColorTableParameterivSGI");
2251
2252        if (extproc == NULL) {
2253                _ASSERT(0);
2254                return;
2255        }
2256
2257        glColorTableParameterivSGI = extproc;
2258
2259        glColorTableParameterivSGI(target, pname, params);
2260}
2261
2262static void APIENTRY InitCopyColorTableSGI (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width)
2263{
2264        void *extproc;
2265
2266        extproc = (void *) wglGetProcAddress("glCopyColorTableSGI");
2267
2268        if (extproc == NULL) {
2269                _ASSERT(0);
2270                return;
2271        }
2272
2273        glCopyColorTableSGI = extproc;
2274
2275        glCopyColorTableSGI(target, internalformat, x, y, width);
2276}
2277
2278static void APIENTRY InitGetColorTableSGI (GLenum target, GLenum format, GLenum type, GLvoid *table)
2279{
2280        void *extproc;
2281
2282        extproc = (void *) wglGetProcAddress("glGetColorTableSGI");
2283
2284        if (extproc == NULL) {
2285                _ASSERT(0);
2286                return;
2287        }
2288
2289        glGetColorTableSGI = extproc;
2290
2291        glGetColorTableSGI(target, format, type, table);
2292}
2293
2294static void APIENTRY InitGetColorTableParameterfvSGI (GLenum target, GLenum pname, GLfloat *params)
2295{
2296        void *extproc;
2297
2298        extproc = (void *) wglGetProcAddress("glGetColorTableParameterfvSGI");
2299
2300        if (extproc == NULL) {
2301                _ASSERT(0);
2302                return;
2303        }
2304
2305        glGetColorTableParameterfvSGI = extproc;
2306
2307        glGetColorTableParameterfvSGI(target, pname, params);
2308}
2309
2310static void APIENTRY InitGetColorTableParameterivSGI (GLenum target, GLenum pname, GLint *params)
2311{
2312        void *extproc;
2313
2314        extproc = (void *) wglGetProcAddress("glGetColorTableParameterivSGI");
2315
2316        if (extproc == NULL) {
2317                _ASSERT(0);
2318                return;
2319        }
2320
2321        glGetColorTableParameterivSGI = extproc;
2322
2323        glGetColorTableParameterivSGI(target, pname, params);
2324}
2325
2326static void APIENTRY InitPixelTexGenSGIX (GLenum mode)
2327{
2328        void *extproc;
2329
2330        extproc = (void *) wglGetProcAddress("glPixelTexGenSGIX");
2331
2332        if (extproc == NULL) {
2333                _ASSERT(0);
2334                return;
2335        }
2336
2337        glPixelTexGenSGIX = extproc;
2338
2339        glPixelTexGenSGIX(mode);
2340}
2341
2342static void APIENTRY InitPixelTexGenParameteriSGIS (GLenum pname, GLint param)
2343{
2344        void *extproc;
2345
2346        extproc = (void *) wglGetProcAddress("glPixelTexGenParameteriSGIS");
2347
2348        if (extproc == NULL) {
2349                _ASSERT(0);
2350                return;
2351        }
2352
2353        glPixelTexGenParameteriSGIS = extproc;
2354
2355        glPixelTexGenParameteriSGIS(pname, param);
2356}
2357
2358static void APIENTRY InitPixelTexGenParameterivSGIS (GLenum pname, const GLint *params)
2359{
2360        void *extproc;
2361
2362        extproc = (void *) wglGetProcAddress("glPixelTexGenParameterivSGIS");
2363
2364        if (extproc == NULL) {
2365                _ASSERT(0);
2366                return;
2367        }
2368
2369        glPixelTexGenParameterivSGIS = extproc;
2370
2371        glPixelTexGenParameterivSGIS(pname, params);
2372}
2373
2374static void APIENTRY InitPixelTexGenParameterfSGIS (GLenum pname, GLfloat param)
2375{
2376        void *extproc;
2377
2378        extproc = (void *) wglGetProcAddress("glPixelTexGenParameterfSGIS");
2379
2380        if (extproc == NULL) {
2381                _ASSERT(0);
2382                return;
2383        }
2384
2385        glPixelTexGenParameterfSGIS = extproc;
2386
2387        glPixelTexGenParameterfSGIS(pname, param);
2388}
2389
2390static void APIENTRY InitPixelTexGenParameterfvSGIS (GLenum pname, const GLfloat *params)
2391{
2392        void *extproc;
2393
2394        extproc = (void *) wglGetProcAddress("glPixelTexGenParameterfvSGIS");
2395
2396        if (extproc == NULL) {
2397                _ASSERT(0);
2398                return;
2399        }
2400
2401        glPixelTexGenParameterfvSGIS = extproc;
2402
2403        glPixelTexGenParameterfvSGIS(pname, params);
2404}
2405
2406static void APIENTRY InitGetPixelTexGenParameterivSGIS (GLenum pname, GLint *params)
2407{
2408        void *extproc;
2409
2410        extproc = (void *) wglGetProcAddress("glGetPixelTexGenParameterivSGIS");
2411
2412        if (extproc == NULL) {
2413                _ASSERT(0);
2414                return;
2415        }
2416
2417        glGetPixelTexGenParameterivSGIS = extproc;
2418
2419        glGetPixelTexGenParameterivSGIS(pname, params);
2420}
2421
2422static void APIENTRY InitGetPixelTexGenParameterfvSGIS (GLenum pname, GLfloat *params)
2423{
2424        void *extproc;
2425
2426        extproc = (void *) wglGetProcAddress("glGetPixelTexGenParameterfvSGIS");
2427
2428        if (extproc == NULL) {
2429                _ASSERT(0);
2430                return;
2431        }
2432
2433        glGetPixelTexGenParameterfvSGIS = extproc;
2434
2435        glGetPixelTexGenParameterfvSGIS(pname, params);
2436}
2437
2438static void APIENTRY InitTexImage4DSGIS (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
2439{
2440        void *extproc;
2441
2442        extproc = (void *) wglGetProcAddress("glTexImage4DSGIS");
2443
2444        if (extproc == NULL) {
2445                _ASSERT(0);
2446                return;
2447        }
2448
2449        glTexImage4DSGIS = extproc;
2450
2451        glTexImage4DSGIS(target, level, internalformat, width, height, depth, size4d, border, format, type, pixels);
2452}
2453
2454static void APIENTRY InitTexSubImage4DSGIS (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint woffset, GLsizei width, GLsizei height, GLsizei depth, GLsizei size4d, GLenum format, GLenum type, const GLvoid *pixels)
2455{
2456        void *extproc;
2457
2458        extproc = (void *) wglGetProcAddress("glTexSubImage4DSGIS");
2459
2460        if (extproc == NULL) {
2461                _ASSERT(0);
2462                return;
2463        }
2464
2465        glTexSubImage4DSGIS = extproc;
2466
2467        glTexSubImage4DSGIS(target, level, xoffset, yoffset, zoffset, woffset, width, height, depth, size4d, format, type, pixels);
2468}
2469
2470static GLboolean APIENTRY InitAreTexturesResidentEXT (GLsizei n, const GLuint *textures, GLboolean *residences)
2471{
2472        void *extproc;
2473
2474        extproc = (void *) wglGetProcAddress("glAreTexturesResidentEXT");
2475
2476        if (extproc == NULL) {
2477                _ASSERT(0);
2478                return 0;
2479        }
2480
2481        glAreTexturesResidentEXT = extproc;
2482
2483        return glAreTexturesResidentEXT(n, textures, residences);
2484}
2485
2486static void APIENTRY InitBindTextureEXT (GLenum target, GLuint texture)
2487{
2488        void *extproc;
2489
2490        extproc = (void *) wglGetProcAddress("glBindTextureEXT");
2491
2492        if (extproc == NULL) {
2493                _ASSERT(0);
2494                return;
2495        }
2496
2497        glBindTextureEXT = extproc;
2498
2499        glBindTextureEXT(target, texture);
2500}
2501
2502static void APIENTRY InitDeleteTexturesEXT (GLsizei n, const GLuint *textures)
2503{
2504        void *extproc;
2505
2506        extproc = (void *) wglGetProcAddress("glDeleteTexturesEXT");
2507
2508        if (extproc == NULL) {
2509                _ASSERT(0);
2510                return;
2511        }
2512
2513        glDeleteTexturesEXT = extproc;
2514
2515        glDeleteTexturesEXT(n, textures);
2516}
2517
2518static void APIENTRY InitGenTexturesEXT (GLsizei n, GLuint *textures)
2519{
2520        void *extproc;
2521
2522        extproc = (void *) wglGetProcAddress("glGenTexturesEXT");
2523
2524        if (extproc == NULL) {
2525                _ASSERT(0);
2526                return;
2527        }
2528
2529        glGenTexturesEXT = extproc;
2530
2531        glGenTexturesEXT(n, textures);
2532}
2533
2534static GLboolean APIENTRY InitIsTextureEXT (GLuint texture)
2535{
2536        void *extproc;
2537
2538        extproc = (void *) wglGetProcAddress("glIsTextureEXT");
2539
2540        if (extproc == NULL) {
2541                _ASSERT(0);
2542                return 0;
2543        }
2544
2545        glIsTextureEXT = extproc;
2546
2547        return glIsTextureEXT(texture);
2548}
2549
2550static void APIENTRY InitPrioritizeTexturesEXT (GLsizei n, const GLuint *textures, const GLclampf *priorities)
2551{
2552        void *extproc;
2553
2554        extproc = (void *) wglGetProcAddress("glPrioritizeTexturesEXT");
2555
2556        if (extproc == NULL) {
2557                _ASSERT(0);
2558                return;
2559        }
2560
2561        glPrioritizeTexturesEXT = extproc;
2562
2563        glPrioritizeTexturesEXT(n, textures, priorities);
2564}
2565
2566static void APIENTRY InitDetailTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points)
2567{
2568        void *extproc;
2569
2570        extproc = (void *) wglGetProcAddress("glDetailTexFuncSGIS");
2571
2572        if (extproc == NULL) {
2573                _ASSERT(0);
2574                return;
2575        }
2576
2577        glDetailTexFuncSGIS = extproc;
2578
2579        glDetailTexFuncSGIS(target, n, points);
2580}
2581
2582static void APIENTRY InitGetDetailTexFuncSGIS (GLenum target, GLfloat *points)
2583{
2584        void *extproc;
2585
2586        extproc = (void *) wglGetProcAddress("glGetDetailTexFuncSGIS");
2587
2588        if (extproc == NULL) {
2589                _ASSERT(0);
2590                return;
2591        }
2592
2593        glGetDetailTexFuncSGIS = extproc;
2594
2595        glGetDetailTexFuncSGIS(target, points);
2596}
2597
2598static void APIENTRY InitSharpenTexFuncSGIS (GLenum target, GLsizei n, const GLfloat *points)
2599{
2600        void *extproc;
2601
2602        extproc = (void *) wglGetProcAddress("glSharpenTexFuncSGIS");
2603
2604        if (extproc == NULL) {
2605                _ASSERT(0);
2606                return;
2607        }
2608
2609        glSharpenTexFuncSGIS = extproc;
2610
2611        glSharpenTexFuncSGIS(target, n, points);
2612}
2613
2614static void APIENTRY InitGetSharpenTexFuncSGIS (GLenum target, GLfloat *points)
2615{
2616        void *extproc;
2617
2618        extproc = (void *) wglGetProcAddress("glGetSharpenTexFuncSGIS");
2619
2620        if (extproc == NULL) {
2621                _ASSERT(0);
2622                return;
2623        }
2624
2625        glGetSharpenTexFuncSGIS = extproc;
2626
2627        glGetSharpenTexFuncSGIS(target, points);
2628}
2629
2630static void APIENTRY InitSampleMaskSGIS (GLclampf value, GLboolean invert)
2631{
2632        void *extproc;
2633
2634        extproc = (void *) wglGetProcAddress("glSampleMaskSGIS");
2635
2636        if (extproc == NULL) {
2637                _ASSERT(0);
2638                return;
2639        }
2640
2641        glSampleMaskSGIS = extproc;
2642
2643        glSampleMaskSGIS(value, invert);
2644}
2645
2646static void APIENTRY InitSamplePatternSGIS (GLenum pattern)
2647{
2648        void *extproc;
2649
2650        extproc = (void *) wglGetProcAddress("glSamplePatternSGIS");
2651
2652        if (extproc == NULL) {
2653                _ASSERT(0);
2654                return;
2655        }
2656
2657        glSamplePatternSGIS = extproc;
2658
2659        glSamplePatternSGIS(pattern);
2660}
2661
2662static void APIENTRY InitArrayElementEXT (GLint i)
2663{
2664        void *extproc;
2665
2666        extproc = (void *) wglGetProcAddress("glArrayElementEXT");
2667
2668        if (extproc == NULL) {
2669                _ASSERT(0);
2670                return;
2671        }
2672
2673        glArrayElementEXT = extproc;
2674
2675        glArrayElementEXT(i);
2676}
2677
2678static void APIENTRY InitColorPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
2679{
2680        void *extproc;
2681
2682        extproc = (void *) wglGetProcAddress("glColorPointerEXT");
2683
2684        if (extproc == NULL) {
2685                _ASSERT(0);
2686                return;
2687        }
2688
2689        glColorPointerEXT = extproc;
2690
2691        glColorPointerEXT(size, type, stride, count, pointer);
2692}
2693
2694static void APIENTRY InitDrawArraysEXT (GLenum mode, GLint first, GLsizei count)
2695{
2696        void *extproc;
2697
2698        extproc = (void *) wglGetProcAddress("glDrawArraysEXT");
2699
2700        if (extproc == NULL) {
2701                _ASSERT(0);
2702                return;
2703        }
2704
2705        glDrawArraysEXT = extproc;
2706
2707        glDrawArraysEXT(mode, first, count);
2708}
2709
2710static void APIENTRY InitEdgeFlagPointerEXT (GLsizei stride, GLsizei count, const GLboolean *pointer)
2711{
2712        void *extproc;
2713
2714        extproc = (void *) wglGetProcAddress("glEdgeFlagPointerEXT");
2715
2716        if (extproc == NULL) {
2717                _ASSERT(0);
2718                return;
2719        }
2720
2721        glEdgeFlagPointerEXT = extproc;
2722
2723        glEdgeFlagPointerEXT(stride, count, pointer);
2724}
2725
2726static void APIENTRY InitGetPointervEXT (GLenum pname, GLvoid* *params)
2727{
2728        void *extproc;
2729
2730        extproc = (void *) wglGetProcAddress("glGetPointervEXT");
2731
2732        if (extproc == NULL) {
2733                _ASSERT(0);
2734                return;
2735        }
2736
2737        glGetPointervEXT = extproc;
2738
2739        glGetPointervEXT(pname, params);
2740}
2741
2742static void APIENTRY InitIndexPointerEXT (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
2743{
2744        void *extproc;
2745
2746        extproc = (void *) wglGetProcAddress("glIndexPointerEXT");
2747
2748        if (extproc == NULL) {
2749                _ASSERT(0);
2750                return;
2751        }
2752
2753        glIndexPointerEXT = extproc;
2754
2755        glIndexPointerEXT(type, stride, count, pointer);
2756}
2757
2758static void APIENTRY InitNormalPointerEXT (GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
2759{
2760        void *extproc;
2761
2762        extproc = (void *) wglGetProcAddress("glNormalPointerEXT");
2763
2764        if (extproc == NULL) {
2765                _ASSERT(0);
2766                return;
2767        }
2768
2769        glNormalPointerEXT = extproc;
2770
2771        glNormalPointerEXT(type, stride, count, pointer);
2772}
2773
2774static void APIENTRY InitTexCoordPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
2775{
2776        void *extproc;
2777
2778        extproc = (void *) wglGetProcAddress("glTexCoordPointerEXT");
2779
2780        if (extproc == NULL) {
2781                _ASSERT(0);
2782                return;
2783        }
2784
2785        glTexCoordPointerEXT = extproc;
2786
2787        glTexCoordPointerEXT(size, type, stride, count, pointer);
2788}
2789
2790static void APIENTRY InitVertexPointerEXT (GLint size, GLenum type, GLsizei stride, GLsizei count, const GLvoid *pointer)
2791{
2792        void *extproc;
2793
2794        extproc = (void *) wglGetProcAddress("glVertexPointerEXT");
2795
2796        if (extproc == NULL) {
2797                _ASSERT(0);
2798                return;
2799        }
2800
2801        glVertexPointerEXT = extproc;
2802
2803        glVertexPointerEXT(size, type, stride, count, pointer);
2804}
2805
2806static void APIENTRY InitBlendEquationEXT (GLenum mode)
2807{
2808        void *extproc;
2809
2810        extproc = (void *) wglGetProcAddress("glBlendEquationEXT");
2811
2812        if (extproc == NULL) {
2813                _ASSERT(0);
2814                return;
2815        }
2816
2817        glBlendEquationEXT = extproc;
2818
2819        glBlendEquationEXT(mode);
2820}
2821
2822static void APIENTRY InitSpriteParameterfSGIX (GLenum pname, GLfloat param)
2823{
2824        void *extproc;
2825
2826        extproc = (void *) wglGetProcAddress("glSpriteParameterfSGIX");
2827
2828        if (extproc == NULL) {
2829                _ASSERT(0);
2830                return;
2831        }
2832
2833        glSpriteParameterfSGIX = extproc;
2834
2835        glSpriteParameterfSGIX(pname, param);
2836}
2837
2838static void APIENTRY InitSpriteParameterfvSGIX (GLenum pname, const GLfloat *params)
2839{
2840        void *extproc;
2841
2842        extproc = (void *) wglGetProcAddress("glSpriteParameterfvSGIX");
2843
2844        if (extproc == NULL) {
2845                _ASSERT(0);
2846                return;
2847        }
2848
2849        glSpriteParameterfvSGIX = extproc;
2850
2851        glSpriteParameterfvSGIX(pname, params);
2852}
2853
2854static void APIENTRY InitSpriteParameteriSGIX (GLenum pname, GLint param)
2855{
2856        void *extproc;
2857
2858        extproc = (void *) wglGetProcAddress("glSpriteParameteriSGIX");
2859
2860        if (extproc == NULL) {
2861                _ASSERT(0);
2862                return;
2863        }
2864
2865        glSpriteParameteriSGIX = extproc;
2866
2867        glSpriteParameteriSGIX(pname, param);
2868}
2869
2870static void APIENTRY InitSpriteParameterivSGIX (GLenum pname, const GLint *params)
2871{
2872        void *extproc;
2873
2874        extproc = (void *) wglGetProcAddress("glSpriteParameterivSGIX");
2875
2876        if (extproc == NULL) {
2877                _ASSERT(0);
2878                return;
2879        }
2880
2881        glSpriteParameterivSGIX = extproc;
2882
2883        glSpriteParameterivSGIX(pname, params);
2884}
2885
2886static void APIENTRY InitPointParameterfARB (GLenum pname, GLfloat param)
2887{
2888        void *extproc;
2889
2890        extproc = (void *) wglGetProcAddress("glPointParameterfARB");
2891
2892        if (extproc == NULL) {
2893                _ASSERT(0);
2894                return;
2895        }
2896
2897        glPointParameterfARB = extproc;
2898
2899        glPointParameterfARB(pname, param);
2900}
2901
2902static void APIENTRY InitPointParameterfvARB (GLenum pname, const GLfloat *params)
2903{
2904        void *extproc;
2905
2906        extproc = (void *) wglGetProcAddress("glPointParameterfvARB");
2907
2908        if (extproc == NULL) {
2909                _ASSERT(0);
2910                return;
2911        }
2912
2913        glPointParameterfvARB = extproc;
2914
2915        glPointParameterfvARB(pname, params);
2916}
2917
2918static void APIENTRY InitPointParameterfEXT (GLenum pname, GLfloat param)
2919{
2920        void *extproc;
2921
2922        extproc = (void *) wglGetProcAddress("glPointParameterfEXT");
2923
2924        if (extproc == NULL) {
2925                _ASSERT(0);
2926                return;
2927        }
2928
2929        glPointParameterfEXT = extproc;
2930
2931        glPointParameterfEXT(pname, param);
2932}
2933
2934static void APIENTRY InitPointParameterfvEXT (GLenum pname, const GLfloat *params)
2935{
2936        void *extproc;
2937
2938        extproc = (void *) wglGetProcAddress("glPointParameterfvEXT");
2939
2940        if (extproc == NULL) {
2941                _ASSERT(0);
2942                return;
2943        }
2944
2945        glPointParameterfvEXT = extproc;
2946
2947        glPointParameterfvEXT(pname, params);
2948}
2949
2950static void APIENTRY InitPointParameterfSGIS (GLenum pname, GLfloat param)
2951{
2952        void *extproc;
2953
2954        extproc = (void *) wglGetProcAddress("glPointParameterfSGIS");
2955
2956        if (extproc == NULL) {
2957                _ASSERT(0);
2958                return;
2959        }
2960
2961        glPointParameterfSGIS = extproc;
2962
2963        glPointParameterfSGIS(pname, param);
2964}
2965
2966static void APIENTRY InitPointParameterfvSGIS (GLenum pname, const GLfloat *params)
2967{
2968        void *extproc;
2969
2970        extproc = (void *) wglGetProcAddress("glPointParameterfvSGIS");
2971
2972        if (extproc == NULL) {
2973                _ASSERT(0);
2974                return;
2975        }
2976
2977        glPointParameterfvSGIS = extproc;
2978
2979        glPointParameterfvSGIS(pname, params);
2980}
2981
2982static GLint APIENTRY InitGetInstrumentsSGIX (void)
2983{
2984        void *extproc;
2985
2986        extproc = (void *) wglGetProcAddress("glGetInstrumentsSGIX");
2987
2988        if (extproc == NULL) {
2989                _ASSERT(0);
2990                return 0;
2991        }
2992
2993        glGetInstrumentsSGIX = extproc;
2994
2995        return glGetInstrumentsSGIX();
2996}
2997
2998static void APIENTRY InitInstrumentsBufferSGIX (GLsizei size, GLint *buffer)
2999{
3000        void *extproc;
3001
3002        extproc = (void *) wglGetProcAddress("glInstrumentsBufferSGIX");
3003
3004        if (extproc == NULL) {
3005                _ASSERT(0);
3006                return;
3007        }
3008
3009        glInstrumentsBufferSGIX = extproc;
3010
3011        glInstrumentsBufferSGIX(size, buffer);
3012}
3013
3014static GLint APIENTRY InitPollInstrumentsSGIX (GLint *marker_p)
3015{
3016        void *extproc;
3017
3018        extproc = (void *) wglGetProcAddress("glPollInstrumentsSGIX");
3019
3020        if (extproc == NULL) {
3021                _ASSERT(0);
3022                return 0;
3023        }
3024
3025        glPollInstrumentsSGIX = extproc;
3026
3027        return glPollInstrumentsSGIX(marker_p);
3028}
3029
3030static void APIENTRY InitReadInstrumentsSGIX (GLint marker)
3031{
3032        void *extproc;
3033
3034        extproc = (void *) wglGetProcAddress("glReadInstrumentsSGIX");
3035
3036        if (extproc == NULL) {
3037                _ASSERT(0);
3038                return;
3039        }
3040
3041        glReadInstrumentsSGIX = extproc;
3042
3043        glReadInstrumentsSGIX(marker);
3044}
3045
3046static void APIENTRY InitStartInstrumentsSGIX (void)
3047{
3048        void *extproc;
3049
3050        extproc = (void *) wglGetProcAddress("glStartInstrumentsSGIX");
3051
3052        if (extproc == NULL) {
3053                _ASSERT(0);
3054                return;
3055        }
3056
3057        glStartInstrumentsSGIX = extproc;
3058
3059        glStartInstrumentsSGIX();
3060}
3061
3062static void APIENTRY InitStopInstrumentsSGIX (GLint marker)
3063{
3064        void *extproc;
3065
3066        extproc = (void *) wglGetProcAddress("glStopInstrumentsSGIX");
3067
3068        if (extproc == NULL) {
3069                _ASSERT(0);
3070                return;
3071        }
3072
3073        glStopInstrumentsSGIX = extproc;
3074
3075        glStopInstrumentsSGIX(marker);
3076}
3077
3078static void APIENTRY InitFrameZoomSGIX (GLint factor)
3079{
3080        void *extproc;
3081
3082        extproc = (void *) wglGetProcAddress("glFrameZoomSGIX");
3083
3084        if (extproc == NULL) {
3085                _ASSERT(0);
3086                return;
3087        }
3088
3089        glFrameZoomSGIX = extproc;
3090
3091        glFrameZoomSGIX(factor);
3092}
3093
3094static void APIENTRY InitTagSampleBufferSGIX (void)
3095{
3096        void *extproc;
3097
3098        extproc = (void *) wglGetProcAddress("glTagSampleBufferSGIX");
3099
3100        if (extproc == NULL) {
3101                _ASSERT(0);
3102                return;
3103        }
3104
3105        glTagSampleBufferSGIX = extproc;
3106
3107        glTagSampleBufferSGIX();
3108}
3109
3110static void APIENTRY InitDeformationMap3dSGIX (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, GLdouble w1, GLdouble w2, GLint wstride, GLint worder, const GLdouble *points)
3111{
3112        void *extproc;
3113
3114        extproc = (void *) wglGetProcAddress("glDeformationMap3dSGIX");
3115
3116        if (extproc == NULL) {
3117                _ASSERT(0);
3118                return;
3119        }
3120
3121        glDeformationMap3dSGIX = extproc;
3122
3123        glDeformationMap3dSGIX(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points);
3124}
3125
3126static void APIENTRY InitDeformationMap3fSGIX (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, GLfloat w1, GLfloat w2, GLint wstride, GLint worder, const GLfloat *points)
3127{
3128        void *extproc;
3129
3130        extproc = (void *) wglGetProcAddress("glDeformationMap3fSGIX");
3131
3132        if (extproc == NULL) {
3133                _ASSERT(0);
3134                return;
3135        }
3136
3137        glDeformationMap3fSGIX = extproc;
3138
3139        glDeformationMap3fSGIX(target, u1, u2, ustride, uorder, v1, v2, vstride, vorder, w1, w2, wstride, worder, points);
3140}
3141
3142static void APIENTRY InitDeformSGIX (GLbitfield mask)
3143{
3144        void *extproc;
3145
3146        extproc = (void *) wglGetProcAddress("glDeformSGIX");
3147
3148        if (extproc == NULL) {
3149                _ASSERT(0);
3150                return;
3151        }
3152
3153        glDeformSGIX = extproc;
3154
3155        glDeformSGIX(mask);
3156}
3157
3158static void APIENTRY InitLoadIdentityDeformationMapSGIX (GLbitfield mask)
3159{
3160        void *extproc;
3161
3162        extproc = (void *) wglGetProcAddress("glLoadIdentityDeformationMapSGIX");
3163
3164        if (extproc == NULL) {
3165                _ASSERT(0);
3166                return;
3167        }
3168
3169        glLoadIdentityDeformationMapSGIX = extproc;
3170
3171        glLoadIdentityDeformationMapSGIX(mask);
3172}
3173
3174static void APIENTRY InitReferencePlaneSGIX (const GLdouble *equation)
3175{
3176        void *extproc;
3177
3178        extproc = (void *) wglGetProcAddress("glReferencePlaneSGIX");
3179
3180        if (extproc == NULL) {
3181                _ASSERT(0);
3182                return;
3183        }
3184
3185        glReferencePlaneSGIX = extproc;
3186
3187        glReferencePlaneSGIX(equation);
3188}
3189
3190static void APIENTRY InitFlushRasterSGIX (void)
3191{
3192        void *extproc;
3193
3194        extproc = (void *) wglGetProcAddress("glFlushRasterSGIX");
3195
3196        if (extproc == NULL) {
3197                _ASSERT(0);
3198                return;
3199        }
3200
3201        glFlushRasterSGIX = extproc;
3202
3203        glFlushRasterSGIX();
3204}
3205
3206static void APIENTRY InitFogFuncSGIS (GLsizei n, const GLfloat *points)
3207{
3208        void *extproc;
3209
3210        extproc = (void *) wglGetProcAddress("glFogFuncSGIS");
3211
3212        if (extproc == NULL) {
3213                _ASSERT(0);
3214                return;
3215        }
3216
3217        glFogFuncSGIS = extproc;
3218
3219        glFogFuncSGIS(n, points);
3220}
3221
3222static void APIENTRY InitGetFogFuncSGIS (GLfloat *points)
3223{
3224        void *extproc;
3225
3226        extproc = (void *) wglGetProcAddress("glGetFogFuncSGIS");
3227
3228        if (extproc == NULL) {
3229                _ASSERT(0);
3230                return;
3231        }
3232
3233        glGetFogFuncSGIS = extproc;
3234
3235        glGetFogFuncSGIS(points);
3236}
3237
3238static void APIENTRY InitImageTransformParameteriHP (GLenum target, GLenum pname, GLint param)
3239{
3240        void *extproc;
3241
3242        extproc = (void *) wglGetProcAddress("glImageTransformParameteriHP");
3243
3244        if (extproc == NULL) {
3245                _ASSERT(0);
3246                return;
3247        }
3248
3249        glImageTransformParameteriHP = extproc;
3250
3251        glImageTransformParameteriHP(target, pname, param);
3252}
3253
3254static void APIENTRY InitImageTransformParameterfHP (GLenum target, GLenum pname, GLfloat param)
3255{
3256        void *extproc;
3257
3258        extproc = (void *) wglGetProcAddress("glImageTransformParameterfHP");
3259
3260        if (extproc == NULL) {
3261                _ASSERT(0);
3262                return;
3263        }
3264
3265        glImageTransformParameterfHP = extproc;
3266
3267        glImageTransformParameterfHP(target, pname, param);
3268}
3269
3270static void APIENTRY InitImageTransformParameterivHP (GLenum target, GLenum pname, const GLint *params)
3271{
3272        void *extproc;
3273
3274        extproc = (void *) wglGetProcAddress("glImageTransformParameterivHP");
3275
3276        if (extproc == NULL) {
3277                _ASSERT(0);
3278                return;
3279        }
3280
3281        glImageTransformParameterivHP = extproc;
3282
3283        glImageTransformParameterivHP(target, pname, params);
3284}
3285
3286static void APIENTRY InitImageTransformParameterfvHP (GLenum target, GLenum pname, const GLfloat *params)
3287{
3288        void *extproc;
3289
3290        extproc = (void *) wglGetProcAddress("glImageTransformParameterfvHP");
3291
3292        if (extproc == NULL) {
3293                _ASSERT(0);
3294                return;
3295        }
3296
3297        glImageTransformParameterfvHP = extproc;
3298
3299        glImageTransformParameterfvHP(target, pname, params);
3300}
3301
3302static void APIENTRY InitGetImageTransformParameterivHP (GLenum target, GLenum pname, GLint *params)
3303{
3304        void *extproc;
3305
3306        extproc = (void *) wglGetProcAddress("glGetImageTransformParameterivHP");
3307
3308        if (extproc == NULL) {
3309                _ASSERT(0);
3310                return;
3311        }
3312
3313        glGetImageTransformParameterivHP = extproc;
3314
3315        glGetImageTransformParameterivHP(target, pname, params);
3316}
3317
3318static void APIENTRY InitGetImageTransformParameterfvHP (GLenum target, GLenum pname, GLfloat *params)
3319{
3320        void *extproc;
3321
3322        extproc = (void *) wglGetProcAddress("glGetImageTransformParameterfvHP");
3323
3324        if (extproc == NULL) {
3325                _ASSERT(0);
3326                return;
3327        }
3328
3329        glGetImageTransformParameterfvHP = extproc;
3330
3331        glGetImageTransformParameterfvHP(target, pname, params);
3332}
3333
3334static void APIENTRY InitColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data)
3335{
3336        void *extproc;
3337
3338        extproc = (void *) wglGetProcAddress("glColorSubTableEXT");
3339
3340        if (extproc == NULL) {
3341                _ASSERT(0);
3342                return;
3343        }
3344
3345        glColorSubTableEXT = extproc;
3346
3347        glColorSubTableEXT(target, start, count, format, type, data);
3348}
3349
3350static void APIENTRY InitCopyColorSubTableEXT (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width)
3351{
3352        void *extproc;
3353
3354        extproc = (void *) wglGetProcAddress("glCopyColorSubTableEXT");
3355
3356        if (extproc == NULL) {
3357                _ASSERT(0);
3358                return;
3359        }
3360
3361        glCopyColorSubTableEXT = extproc;
3362
3363        glCopyColorSubTableEXT(target, start, x, y, width);
3364}
3365
3366static void APIENTRY InitHintPGI (GLenum target, GLint mode)
3367{
3368        void *extproc;
3369
3370        extproc = (void *) wglGetProcAddress("glHintPGI");
3371
3372        if (extproc == NULL) {
3373                _ASSERT(0);
3374                return;
3375        }
3376
3377        glHintPGI = extproc;
3378
3379        glHintPGI(target, mode);
3380}
3381
3382static void APIENTRY InitColorTableEXT (GLenum target, GLenum internalFormat, GLsizei width, GLenum format, GLenum type, const GLvoid *table)
3383{
3384        void *extproc;
3385
3386        extproc = (void *) wglGetProcAddress("glColorTableEXT");
3387
3388        if (extproc == NULL) {
3389                _ASSERT(0);
3390                return;
3391        }
3392
3393        glColorTableEXT = extproc;
3394
3395        glColorTableEXT(target, internalFormat, width, format, type, table);
3396}
3397
3398static void APIENTRY InitGetColorTableEXT (GLenum target, GLenum format, GLenum type, GLvoid *data)
3399{
3400        void *extproc;
3401
3402        extproc = (void *) wglGetProcAddress("glGetColorTableEXT");
3403
3404        if (extproc == NULL) {
3405                _ASSERT(0);
3406                return;
3407        }
3408
3409        glGetColorTableEXT = extproc;
3410
3411        glGetColorTableEXT(target, format, type, data);
3412}
3413
3414static void APIENTRY InitGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params)
3415{
3416        void *extproc;
3417
3418        extproc = (void *) wglGetProcAddress("glGetColorTableParameterivEXT");
3419
3420        if (extproc == NULL) {
3421                _ASSERT(0);
3422                return;
3423        }
3424
3425        glGetColorTableParameterivEXT = extproc;
3426
3427        glGetColorTableParameterivEXT(target, pname, params);
3428}
3429
3430static void APIENTRY InitGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params)
3431{
3432        void *extproc;
3433
3434        extproc = (void *) wglGetProcAddress("glGetColorTableParameterfvEXT");
3435
3436        if (extproc == NULL) {
3437                _ASSERT(0);
3438                return;
3439        }
3440
3441        glGetColorTableParameterfvEXT = extproc;
3442
3443        glGetColorTableParameterfvEXT(target, pname, params);
3444}
3445
3446static void APIENTRY InitGetListParameterfvSGIX (GLuint list, GLenum pname, GLfloat *params)
3447{
3448        void *extproc;
3449
3450        extproc = (void *) wglGetProcAddress("glGetListParameterfvSGIX");
3451
3452        if (extproc == NULL) {
3453                _ASSERT(0);
3454                return;
3455        }
3456
3457        glGetListParameterfvSGIX = extproc;
3458
3459        glGetListParameterfvSGIX(list, pname, params);
3460}
3461
3462static void APIENTRY InitGetListParameterivSGIX (GLuint list, GLenum pname, GLint *params)
3463{
3464        void *extproc;
3465
3466        extproc = (void *) wglGetProcAddress("glGetListParameterivSGIX");
3467
3468        if (extproc == NULL) {
3469                _ASSERT(0);
3470                return;
3471        }
3472
3473        glGetListParameterivSGIX = extproc;
3474
3475        glGetListParameterivSGIX(list, pname, params);
3476}
3477
3478static void APIENTRY InitListParameterfSGIX (GLuint list, GLenum pname, GLfloat param)
3479{
3480        void *extproc;
3481
3482        extproc = (void *) wglGetProcAddress("glListParameterfSGIX");
3483
3484        if (extproc == NULL) {
3485                _ASSERT(0);
3486                return;
3487        }
3488
3489        glListParameterfSGIX = extproc;
3490
3491        glListParameterfSGIX(list, pname, param);
3492}
3493
3494static void APIENTRY InitListParameterfvSGIX (GLuint list, GLenum pname, const GLfloat *params)
3495{
3496        void *extproc;
3497
3498        extproc = (void *) wglGetProcAddress("glListParameterfvSGIX");
3499
3500        if (extproc == NULL) {
3501                _ASSERT(0);
3502                return;
3503        }
3504
3505        glListParameterfvSGIX = extproc;
3506
3507        glListParameterfvSGIX(list, pname, params);
3508}
3509
3510static void APIENTRY InitListParameteriSGIX (GLuint list, GLenum pname, GLint param)
3511{
3512        void *extproc;
3513
3514        extproc = (void *) wglGetProcAddress("glListParameteriSGIX");
3515
3516        if (extproc == NULL) {
3517                _ASSERT(0);
3518                return;
3519        }
3520
3521        glListParameteriSGIX = extproc;
3522
3523        glListParameteriSGIX(list, pname, param);
3524}
3525
3526static void APIENTRY InitListParameterivSGIX (GLuint list, GLenum pname, const GLint *params)
3527{
3528        void *extproc;
3529
3530        extproc = (void *) wglGetProcAddress("glListParameterivSGIX");
3531
3532        if (extproc == NULL) {
3533                _ASSERT(0);
3534                return;
3535        }
3536
3537        glListParameterivSGIX = extproc;
3538
3539        glListParameterivSGIX(list, pname, params);
3540}
3541
3542static void APIENTRY InitIndexMaterialEXT (GLenum face, GLenum mode)
3543{
3544        void *extproc;
3545
3546        extproc = (void *) wglGetProcAddress("glIndexMaterialEXT");
3547
3548        if (extproc == NULL) {
3549                _ASSERT(0);
3550                return;
3551        }
3552
3553        glIndexMaterialEXT = extproc;
3554
3555        glIndexMaterialEXT(face, mode);
3556}
3557
3558static void APIENTRY InitIndexFuncEXT (GLenum func, GLclampf ref)
3559{
3560        void *extproc;
3561
3562        extproc = (void *) wglGetProcAddress("glIndexFuncEXT");
3563
3564        if (extproc == NULL) {
3565                _ASSERT(0);
3566                return;
3567        }
3568
3569        glIndexFuncEXT = extproc;
3570
3571        glIndexFuncEXT(func, ref);
3572}
3573
3574static void APIENTRY InitLockArraysEXT (GLint first, GLsizei count)
3575{
3576        void *extproc;
3577
3578        extproc = (void *) wglGetProcAddress("glLockArraysEXT");
3579
3580        if (extproc == NULL) {
3581                _ASSERT(0);
3582                return;
3583        }
3584
3585        glLockArraysEXT = extproc;
3586
3587        glLockArraysEXT(first, count);
3588}
3589
3590static void APIENTRY InitUnlockArraysEXT (void)
3591{
3592        void *extproc;
3593
3594        extproc = (void *) wglGetProcAddress("glUnlockArraysEXT");
3595
3596        if (extproc == NULL) {
3597                _ASSERT(0);
3598                return;
3599        }
3600
3601        glUnlockArraysEXT = extproc;
3602
3603        glUnlockArraysEXT();
3604}
3605
3606static void APIENTRY InitCullParameterdvEXT (GLenum pname, GLdouble *params)
3607{
3608        void *extproc;
3609
3610        extproc = (void *) wglGetProcAddress("glCullParameterdvEXT");
3611
3612        if (extproc == NULL) {
3613                _ASSERT(0);
3614                return;
3615        }
3616
3617        glCullParameterdvEXT = extproc;
3618
3619        glCullParameterdvEXT(pname, params);
3620}
3621
3622static void APIENTRY InitCullParameterfvEXT (GLenum pname, GLfloat *params)
3623{
3624        void *extproc;
3625
3626        extproc = (void *) wglGetProcAddress("glCullParameterfvEXT");
3627
3628        if (extproc == NULL) {
3629                _ASSERT(0);
3630                return;
3631        }
3632
3633        glCullParameterfvEXT = extproc;
3634
3635        glCullParameterfvEXT(pname, params);
3636}
3637
3638static void APIENTRY InitFragmentColorMaterialSGIX (GLenum face, GLenum mode)
3639{
3640        void *extproc;
3641
3642        extproc = (void *) wglGetProcAddress("glFragmentColorMaterialSGIX");
3643
3644        if (extproc == NULL) {
3645                _ASSERT(0);
3646                return;
3647        }
3648
3649        glFragmentColorMaterialSGIX = extproc;
3650
3651        glFragmentColorMaterialSGIX(face, mode);
3652}
3653
3654static void APIENTRY InitFragmentLightfSGIX (GLenum light, GLenum pname, GLfloat param)
3655{
3656        void *extproc;
3657
3658        extproc = (void *) wglGetProcAddress("glFragmentLightfSGIX");
3659
3660        if (extproc == NULL) {
3661                _ASSERT(0);
3662                return;
3663        }
3664
3665        glFragmentLightfSGIX = extproc;
3666
3667        glFragmentLightfSGIX(light, pname, param);
3668}
3669
3670static void APIENTRY InitFragmentLightfvSGIX (GLenum light, GLenum pname, const GLfloat *params)
3671{
3672        void *extproc;
3673
3674        extproc = (void *) wglGetProcAddress("glFragmentLightfvSGIX");
3675
3676        if (extproc == NULL) {
3677                _ASSERT(0);
3678                return;
3679        }
3680
3681        glFragmentLightfvSGIX = extproc;
3682
3683        glFragmentLightfvSGIX(light, pname, params);
3684}
3685
3686static void APIENTRY InitFragmentLightiSGIX (GLenum light, GLenum pname, GLint param)
3687{
3688        void *extproc;
3689
3690        extproc = (void *) wglGetProcAddress("glFragmentLightiSGIX");
3691
3692        if (extproc == NULL) {
3693                _ASSERT(0);
3694                return;
3695        }
3696
3697        glFragmentLightiSGIX = extproc;
3698
3699        glFragmentLightiSGIX(light, pname, param);
3700}
3701
3702static void APIENTRY InitFragmentLightivSGIX (GLenum light, GLenum pname, const GLint *params)
3703{
3704        void *extproc;
3705
3706        extproc = (void *) wglGetProcAddress("glFragmentLightivSGIX");
3707
3708        if (extproc == NULL) {
3709                _ASSERT(0);
3710                return;
3711        }
3712
3713        glFragmentLightivSGIX = extproc;
3714
3715        glFragmentLightivSGIX(light, pname, params);
3716}
3717
3718static void APIENTRY InitFragmentLightModelfSGIX (GLenum pname, GLfloat param)
3719{
3720        void *extproc;
3721
3722        extproc = (void *) wglGetProcAddress("glFragmentLightModelfSGIX");
3723
3724        if (extproc == NULL) {
3725                _ASSERT(0);
3726                return;
3727        }
3728
3729        glFragmentLightModelfSGIX = extproc;
3730
3731        glFragmentLightModelfSGIX(pname, param);
3732}
3733
3734static void APIENTRY InitFragmentLightModelfvSGIX (GLenum pname, const GLfloat *params)
3735{
3736        void *extproc;
3737
3738        extproc = (void *) wglGetProcAddress("glFragmentLightModelfvSGIX");
3739
3740        if (extproc == NULL) {
3741                _ASSERT(0);
3742                return;
3743        }
3744
3745        glFragmentLightModelfvSGIX = extproc;
3746
3747        glFragmentLightModelfvSGIX(pname, params);
3748}
3749
3750static void APIENTRY InitFragmentLightModeliSGIX (GLenum pname, GLint param)
3751{
3752        void *extproc;
3753
3754        extproc = (void *) wglGetProcAddress("glFragmentLightModeliSGIX");
3755
3756        if (extproc == NULL) {
3757                _ASSERT(0);
3758                return;
3759        }
3760
3761        glFragmentLightModeliSGIX = extproc;
3762
3763        glFragmentLightModeliSGIX(pname, param);
3764}
3765
3766static void APIENTRY InitFragmentLightModelivSGIX (GLenum pname, const GLint *params)
3767{
3768        void *extproc;
3769
3770        extproc = (void *) wglGetProcAddress("glFragmentLightModelivSGIX");
3771
3772        if (extproc == NULL) {
3773                _ASSERT(0);
3774                return;
3775        }
3776
3777        glFragmentLightModelivSGIX = extproc;
3778
3779        glFragmentLightModelivSGIX(pname, params);
3780}
3781
3782static void APIENTRY InitFragmentMaterialfSGIX (GLenum face, GLenum pname, GLfloat param)
3783{
3784        void *extproc;
3785
3786        extproc = (void *) wglGetProcAddress("glFragmentMaterialfSGIX");
3787
3788        if (extproc == NULL) {
3789                _ASSERT(0);
3790                return;
3791        }
3792
3793        glFragmentMaterialfSGIX = extproc;
3794
3795        glFragmentMaterialfSGIX(face, pname, param);
3796}
3797
3798static void APIENTRY InitFragmentMaterialfvSGIX (GLenum face, GLenum pname, const GLfloat *params)
3799{
3800        void *extproc;
3801
3802        extproc = (void *) wglGetProcAddress("glFragmentMaterialfvSGIX");
3803
3804        if (extproc == NULL) {
3805                _ASSERT(0);
3806                return;
3807        }
3808
3809        glFragmentMaterialfvSGIX = extproc;
3810
3811        glFragmentMaterialfvSGIX(face, pname, params);
3812}
3813
3814static void APIENTRY InitFragmentMaterialiSGIX (GLenum face, GLenum pname, GLint param)
3815{
3816        void *extproc;
3817
3818        extproc = (void *) wglGetProcAddress("glFragmentMaterialiSGIX");
3819
3820        if (extproc == NULL) {
3821                _ASSERT(0);
3822                return;
3823        }
3824
3825        glFragmentMaterialiSGIX = extproc;
3826
3827        glFragmentMaterialiSGIX(face, pname, param);
3828}
3829
3830static void APIENTRY InitFragmentMaterialivSGIX (GLenum face, GLenum pname, const GLint *params)
3831{
3832        void *extproc;
3833
3834        extproc = (void *) wglGetProcAddress("glFragmentMaterialivSGIX");
3835
3836        if (extproc == NULL) {
3837                _ASSERT(0);
3838                return;
3839        }
3840
3841        glFragmentMaterialivSGIX = extproc;
3842
3843        glFragmentMaterialivSGIX(face, pname, params);
3844}
3845
3846static void APIENTRY InitGetFragmentLightfvSGIX (GLenum light, GLenum pname, GLfloat *params)
3847{
3848        void *extproc;
3849
3850        extproc = (void *) wglGetProcAddress("glGetFragmentLightfvSGIX");
3851
3852        if (extproc == NULL) {
3853                _ASSERT(0);
3854                return;
3855        }
3856
3857        glGetFragmentLightfvSGIX = extproc;
3858
3859        glGetFragmentLightfvSGIX(light, pname, params);
3860}
3861
3862static void APIENTRY InitGetFragmentLightivSGIX (GLenum light, GLenum pname, GLint *params)
3863{
3864        void *extproc;
3865
3866        extproc = (void *) wglGetProcAddress("glGetFragmentLightivSGIX");
3867
3868        if (extproc == NULL) {
3869                _ASSERT(0);
3870                return;
3871        }
3872
3873        glGetFragmentLightivSGIX = extproc;
3874
3875        glGetFragmentLightivSGIX(light, pname, params);
3876}
3877
3878static void APIENTRY InitGetFragmentMaterialfvSGIX (GLenum face, GLenum pname, GLfloat *params)
3879{
3880        void *extproc;
3881
3882        extproc = (void *) wglGetProcAddress("glGetFragmentMaterialfvSGIX");
3883
3884        if (extproc == NULL) {
3885                _ASSERT(0);
3886                return;
3887        }
3888
3889        glGetFragmentMaterialfvSGIX = extproc;
3890
3891        glGetFragmentMaterialfvSGIX(face, pname, params);
3892}
3893
3894static void APIENTRY InitGetFragmentMaterialivSGIX (GLenum face, GLenum pname, GLint *params)
3895{
3896        void *extproc;
3897
3898        extproc = (void *) wglGetProcAddress("glGetFragmentMaterialivSGIX");
3899
3900        if (extproc == NULL) {
3901                _ASSERT(0);
3902                return;
3903        }
3904
3905        glGetFragmentMaterialivSGIX = extproc;
3906
3907        glGetFragmentMaterialivSGIX(face, pname, params);
3908}
3909
3910static void APIENTRY InitLightEnviSGIX (GLenum pname, GLint param)
3911{
3912        void *extproc;
3913
3914        extproc = (void *) wglGetProcAddress("glLightEnviSGIX");
3915
3916        if (extproc == NULL) {
3917                _ASSERT(0);
3918                return;
3919        }
3920
3921        glLightEnviSGIX = extproc;
3922
3923        glLightEnviSGIX(pname, param);
3924}
3925
3926static void APIENTRY InitDrawRangeElementsEXT (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices)
3927{
3928        void *extproc;
3929
3930        extproc = (void *) wglGetProcAddress("glDrawRangeElementsEXT");
3931
3932        if (extproc == NULL) {
3933                _ASSERT(0);
3934                return;
3935        }
3936
3937        glDrawRangeElementsEXT = extproc;
3938
3939        glDrawRangeElementsEXT(mode, start, end, count, type, indices);
3940}
3941
3942static void APIENTRY InitApplyTextureEXT (GLenum mode)
3943{
3944        void *extproc;
3945
3946        extproc = (void *) wglGetProcAddress("glApplyTextureEXT");
3947
3948        if (extproc == NULL) {
3949                _ASSERT(0);
3950                return;
3951        }
3952
3953        glApplyTextureEXT = extproc;
3954
3955        glApplyTextureEXT(mode);
3956}
3957
3958static void APIENTRY InitTextureLightEXT (GLenum pname)
3959{
3960        void *extproc;
3961
3962        extproc = (void *) wglGetProcAddress("glTextureLightEXT");
3963
3964        if (extproc == NULL) {
3965                _ASSERT(0);
3966                return;
3967        }
3968
3969        glTextureLightEXT = extproc;
3970
3971        glTextureLightEXT(pname);
3972}
3973
3974static void APIENTRY InitTextureMaterialEXT (GLenum face, GLenum mode)
3975{
3976        void *extproc;
3977
3978        extproc = (void *) wglGetProcAddress("glTextureMaterialEXT");
3979
3980        if (extproc == NULL) {
3981                _ASSERT(0);
3982                return;
3983        }
3984
3985        glTextureMaterialEXT = extproc;
3986
3987        glTextureMaterialEXT(face, mode);
3988}
3989
3990static void APIENTRY InitAsyncMarkerSGIX (GLuint marker)
3991{
3992        void *extproc;
3993
3994        extproc = (void *) wglGetProcAddress("glAsyncMarkerSGIX");
3995
3996        if (extproc == NULL) {
3997                _ASSERT(0);
3998                return;
3999        }
4000
4001        glAsyncMarkerSGIX = extproc;
4002
4003        glAsyncMarkerSGIX(marker);
4004}
4005
4006static GLint APIENTRY InitFinishAsyncSGIX (GLuint *markerp)
4007{
4008        void *extproc;
4009
4010        extproc = (void *) wglGetProcAddress("glFinishAsyncSGIX");
4011
4012        if (extproc == NULL) {
4013                _ASSERT(0);
4014                return 0;
4015        }
4016
4017        glFinishAsyncSGIX = extproc;
4018
4019        return glFinishAsyncSGIX(markerp);
4020}
4021
4022static GLint APIENTRY InitPollAsyncSGIX (GLuint *markerp)
4023{
4024        void *extproc;
4025
4026        extproc = (void *) wglGetProcAddress("glPollAsyncSGIX");
4027
4028        if (extproc == NULL) {
4029                _ASSERT(0);
4030                return 0;
4031        }
4032
4033        glPollAsyncSGIX = extproc;
4034
4035        return glPollAsyncSGIX(markerp);
4036}
4037
4038static GLuint APIENTRY InitGenAsyncMarkersSGIX (GLsizei range)
4039{
4040        void *extproc;
4041
4042        extproc = (void *) wglGetProcAddress("glGenAsyncMarkersSGIX");
4043
4044        if (extproc == NULL) {
4045                _ASSERT(0);
4046                return 0;
4047        }
4048
4049        glGenAsyncMarkersSGIX = extproc;
4050
4051        return glGenAsyncMarkersSGIX(range);
4052}
4053
4054static void APIENTRY InitDeleteAsyncMarkersSGIX (GLuint marker, GLsizei range)
4055{
4056        void *extproc;
4057
4058        extproc = (void *) wglGetProcAddress("glDeleteAsyncMarkersSGIX");
4059
4060        if (extproc == NULL) {
4061                _ASSERT(0);
4062                return;
4063        }
4064
4065        glDeleteAsyncMarkersSGIX = extproc;
4066
4067        glDeleteAsyncMarkersSGIX(marker, range);
4068}
4069
4070static GLboolean APIENTRY InitIsAsyncMarkerSGIX (GLuint marker)
4071{
4072        void *extproc;
4073
4074        extproc = (void *) wglGetProcAddress("glIsAsyncMarkerSGIX");
4075
4076        if (extproc == NULL) {
4077                _ASSERT(0);
4078                return 0;
4079        }
4080
4081        glIsAsyncMarkerSGIX = extproc;
4082
4083        return glIsAsyncMarkerSGIX(marker);
4084}
4085
4086static void APIENTRY InitVertexPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer)
4087{
4088        void *extproc;
4089
4090        extproc = (void *) wglGetProcAddress("glVertexPointervINTEL");
4091
4092        if (extproc == NULL) {
4093                _ASSERT(0);
4094                return;
4095        }
4096
4097        glVertexPointervINTEL = extproc;
4098
4099        glVertexPointervINTEL(size, type, pointer);
4100}
4101
4102static void APIENTRY InitNormalPointervINTEL (GLenum type, const GLvoid* *pointer)
4103{
4104        void *extproc;
4105
4106        extproc = (void *) wglGetProcAddress("glNormalPointervINTEL");
4107
4108        if (extproc == NULL) {
4109                _ASSERT(0);
4110                return;
4111        }
4112
4113        glNormalPointervINTEL = extproc;
4114
4115        glNormalPointervINTEL(type, pointer);
4116}
4117
4118static void APIENTRY InitColorPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer)
4119{
4120        void *extproc;
4121
4122        extproc = (void *) wglGetProcAddress("glColorPointervINTEL");
4123
4124        if (extproc == NULL) {
4125                _ASSERT(0);
4126                return;
4127        }
4128
4129        glColorPointervINTEL = extproc;
4130
4131        glColorPointervINTEL(size, type, pointer);
4132}
4133
4134static void APIENTRY InitTexCoordPointervINTEL (GLint size, GLenum type, const GLvoid* *pointer)
4135{
4136        void *extproc;
4137
4138        extproc = (void *) wglGetProcAddress("glTexCoordPointervINTEL");
4139
4140        if (extproc == NULL) {
4141                _ASSERT(0);
4142                return;
4143        }
4144
4145        glTexCoordPointervINTEL = extproc;
4146
4147        glTexCoordPointervINTEL(size, type, pointer);
4148}
4149
4150static void APIENTRY InitPixelTransformParameteriEXT (GLenum target, GLenum pname, GLint param)
4151{
4152        void *extproc;
4153
4154        extproc = (void *) wglGetProcAddress("glPixelTransformParameteriEXT");
4155
4156        if (extproc == NULL) {
4157                _ASSERT(0);
4158                return;
4159        }
4160
4161        glPixelTransformParameteriEXT = extproc;
4162
4163        glPixelTransformParameteriEXT(target, pname, param);
4164}
4165
4166static void APIENTRY InitPixelTransformParameterfEXT (GLenum target, GLenum pname, GLfloat param)
4167{
4168        void *extproc;
4169
4170        extproc = (void *) wglGetProcAddress("glPixelTransformParameterfEXT");
4171
4172        if (extproc == NULL) {
4173                _ASSERT(0);
4174                return;
4175        }
4176
4177        glPixelTransformParameterfEXT = extproc;
4178
4179        glPixelTransformParameterfEXT(target, pname, param);
4180}
4181
4182static void APIENTRY InitPixelTransformParameterivEXT (GLenum target, GLenum pname, const GLint *params)
4183{
4184        void *extproc;
4185
4186        extproc = (void *) wglGetProcAddress("glPixelTransformParameterivEXT");
4187
4188        if (extproc == NULL) {
4189                _ASSERT(0);
4190                return;
4191        }
4192
4193        glPixelTransformParameterivEXT = extproc;
4194
4195        glPixelTransformParameterivEXT(target, pname, params);
4196}
4197
4198static void APIENTRY InitPixelTransformParameterfvEXT (GLenum target, GLenum pname, const GLfloat *params)
4199{
4200        void *extproc;
4201
4202        extproc = (void *) wglGetProcAddress("glPixelTransformParameterfvEXT");
4203
4204        if (extproc == NULL) {
4205                _ASSERT(0);
4206                return;
4207        }
4208
4209        glPixelTransformParameterfvEXT = extproc;
4210
4211        glPixelTransformParameterfvEXT(target, pname, params);
4212}
4213
4214static void APIENTRY InitSecondaryColor3bEXT (GLbyte red, GLbyte green, GLbyte blue)
4215{
4216        void *extproc;
4217
4218        extproc = (void *) wglGetProcAddress("glSecondaryColor3bEXT");
4219
4220        if (extproc == NULL) {
4221                _ASSERT(0);
4222                return;
4223        }
4224
4225        glSecondaryColor3bEXT = extproc;
4226
4227        glSecondaryColor3bEXT(red, green, blue);
4228}
4229
4230static void APIENTRY InitSecondaryColor3bvEXT (const GLbyte *v)
4231{
4232        void *extproc;
4233
4234        extproc = (void *) wglGetProcAddress("glSecondaryColor3bvEXT");
4235
4236        if (extproc == NULL) {
4237                _ASSERT(0);
4238                return;
4239        }
4240
4241        glSecondaryColor3bvEXT = extproc;
4242
4243        glSecondaryColor3bvEXT(v);
4244}
4245
4246static void APIENTRY InitSecondaryColor3dEXT (GLdouble red, GLdouble green, GLdouble blue)
4247{
4248        void *extproc;
4249
4250        extproc = (void *) wglGetProcAddress("glSecondaryColor3dEXT");
4251
4252        if (extproc == NULL) {
4253                _ASSERT(0);
4254                return;
4255        }
4256
4257        glSecondaryColor3dEXT = extproc;
4258
4259        glSecondaryColor3dEXT(red, green, blue);
4260}
4261
4262static void APIENTRY InitSecondaryColor3dvEXT (const GLdouble *v)
4263{
4264        void *extproc;
4265
4266        extproc = (void *) wglGetProcAddress("glSecondaryColor3dvEXT");
4267
4268        if (extproc == NULL) {
4269                _ASSERT(0);
4270                return;
4271        }
4272
4273        glSecondaryColor3dvEXT = extproc;
4274
4275        glSecondaryColor3dvEXT(v);
4276}
4277
4278static void APIENTRY InitSecondaryColor3fEXT (GLfloat red, GLfloat green, GLfloat blue)
4279{
4280        void *extproc;
4281
4282        extproc = (void *) wglGetProcAddress("glSecondaryColor3fEXT");
4283
4284        if (extproc == NULL) {
4285                _ASSERT(0);
4286                return;
4287        }
4288
4289        glSecondaryColor3fEXT = extproc;
4290
4291        glSecondaryColor3fEXT(red, green, blue);
4292}
4293
4294static void APIENTRY InitSecondaryColor3fvEXT (const GLfloat *v)
4295{
4296        void *extproc;
4297
4298        extproc = (void *) wglGetProcAddress("glSecondaryColor3fvEXT");
4299
4300        if (extproc == NULL) {
4301                _ASSERT(0);
4302                return;
4303        }
4304
4305        glSecondaryColor3fvEXT = extproc;
4306
4307        glSecondaryColor3fvEXT(v);
4308}
4309
4310static void APIENTRY InitSecondaryColor3iEXT (GLint red, GLint green, GLint blue)
4311{
4312        void *extproc;
4313
4314        extproc = (void *) wglGetProcAddress("glSecondaryColor3iEXT");
4315
4316        if (extproc == NULL) {
4317                _ASSERT(0);
4318                return;
4319        }
4320
4321        glSecondaryColor3iEXT = extproc;
4322
4323        glSecondaryColor3iEXT(red, green, blue);
4324}
4325
4326static void APIENTRY InitSecondaryColor3ivEXT (const GLint *v)
4327{
4328        void *extproc;
4329
4330        extproc = (void *) wglGetProcAddress("glSecondaryColor3ivEXT");
4331
4332        if (extproc == NULL) {
4333                _ASSERT(0);
4334                return;
4335        }
4336
4337        glSecondaryColor3ivEXT = extproc;
4338
4339        glSecondaryColor3ivEXT(v);
4340}
4341
4342static void APIENTRY InitSecondaryColor3sEXT (GLshort red, GLshort green, GLshort blue)
4343{
4344        void *extproc;
4345
4346        extproc = (void *) wglGetProcAddress("glSecondaryColor3sEXT");
4347
4348        if (extproc == NULL) {
4349                _ASSERT(0);
4350                return;
4351        }
4352
4353        glSecondaryColor3sEXT = extproc;
4354
4355        glSecondaryColor3sEXT(red, green, blue);
4356}
4357
4358static void APIENTRY InitSecondaryColor3svEXT (const GLshort *v)
4359{
4360        void *extproc;
4361
4362        extproc = (void *) wglGetProcAddress("glSecondaryColor3svEXT");
4363
4364        if (extproc == NULL) {
4365                _ASSERT(0);
4366                return;
4367        }
4368
4369        glSecondaryColor3svEXT = extproc;
4370
4371        glSecondaryColor3svEXT(v);
4372}
4373
4374static void APIENTRY InitSecondaryColor3ubEXT (GLubyte red, GLubyte green, GLubyte blue)
4375{
4376        void *extproc;
4377
4378        extproc = (void *) wglGetProcAddress("glSecondaryColor3ubEXT");
4379
4380        if (extproc == NULL) {
4381                _ASSERT(0);
4382                return;
4383        }
4384
4385        glSecondaryColor3ubEXT = extproc;
4386
4387        glSecondaryColor3ubEXT(red, green, blue);
4388}
4389
4390static void APIENTRY InitSecondaryColor3ubvEXT (const GLubyte *v)
4391{
4392        void *extproc;
4393
4394        extproc = (void *) wglGetProcAddress("glSecondaryColor3ubvEXT");
4395
4396        if (extproc == NULL) {
4397                _ASSERT(0);
4398                return;
4399        }
4400
4401        glSecondaryColor3ubvEXT = extproc;
4402
4403        glSecondaryColor3ubvEXT(v);
4404}
4405
4406static void APIENTRY InitSecondaryColor3uiEXT (GLuint red, GLuint green, GLuint blue)
4407{
4408        void *extproc;
4409
4410        extproc = (void *) wglGetProcAddress("glSecondaryColor3uiEXT");
4411
4412        if (extproc == NULL) {
4413                _ASSERT(0);
4414                return;
4415        }
4416
4417        glSecondaryColor3uiEXT = extproc;
4418
4419        glSecondaryColor3uiEXT(red, green, blue);
4420}
4421
4422static void APIENTRY InitSecondaryColor3uivEXT (const GLuint *v)
4423{
4424        void *extproc;
4425
4426        extproc = (void *) wglGetProcAddress("glSecondaryColor3uivEXT");
4427
4428        if (extproc == NULL) {
4429                _ASSERT(0);
4430                return;
4431        }
4432
4433        glSecondaryColor3uivEXT = extproc;
4434
4435        glSecondaryColor3uivEXT(v);
4436}
4437
4438static void APIENTRY InitSecondaryColor3usEXT (GLushort red, GLushort green, GLushort blue)
4439{
4440        void *extproc;
4441
4442        extproc = (void *) wglGetProcAddress("glSecondaryColor3usEXT");
4443
4444        if (extproc == NULL) {
4445                _ASSERT(0);
4446                return;
4447        }
4448
4449        glSecondaryColor3usEXT = extproc;
4450
4451        glSecondaryColor3usEXT(red, green, blue);
4452}
4453
4454static void APIENTRY InitSecondaryColor3usvEXT (const GLushort *v)
4455{
4456        void *extproc;
4457
4458        extproc = (void *) wglGetProcAddress("glSecondaryColor3usvEXT");
4459
4460        if (extproc == NULL) {
4461                _ASSERT(0);
4462                return;
4463        }
4464
4465        glSecondaryColor3usvEXT = extproc;
4466
4467        glSecondaryColor3usvEXT(v);
4468}
4469
4470static void APIENTRY InitSecondaryColorPointerEXT (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
4471{
4472        void *extproc;
4473
4474        extproc = (void *) wglGetProcAddress("glSecondaryColorPointerEXT");
4475
4476        if (extproc == NULL) {
4477                _ASSERT(0);
4478                return;
4479        }
4480
4481        glSecondaryColorPointerEXT = extproc;
4482
4483        glSecondaryColorPointerEXT(size, type, stride, pointer);
4484}
4485
4486static void APIENTRY InitTextureNormalEXT (GLenum mode)
4487{
4488        void *extproc;
4489
4490        extproc = (void *) wglGetProcAddress("glTextureNormalEXT");
4491
4492        if (extproc == NULL) {
4493                _ASSERT(0);
4494                return;
4495        }
4496
4497        glTextureNormalEXT = extproc;
4498
4499        glTextureNormalEXT(mode);
4500}
4501
4502static void APIENTRY InitMultiDrawArraysEXT (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount)
4503{
4504        void *extproc;
4505
4506        extproc = (void *) wglGetProcAddress("glMultiDrawArraysEXT");
4507
4508        if (extproc == NULL) {
4509                _ASSERT(0);
4510                return;
4511        }
4512
4513        glMultiDrawArraysEXT = extproc;
4514
4515        glMultiDrawArraysEXT(mode, first, count, primcount);
4516}
4517
4518static void APIENTRY InitMultiDrawElementsEXT (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount)
4519{
4520        void *extproc;
4521
4522        extproc = (void *) wglGetProcAddress("glMultiDrawElementsEXT");
4523
4524        if (extproc == NULL) {
4525                _ASSERT(0);
4526                return;
4527        }
4528
4529        glMultiDrawElementsEXT = extproc;
4530
4531        glMultiDrawElementsEXT(mode, count, type, indices, primcount);
4532}
4533
4534static void APIENTRY InitFogCoordfEXT (GLfloat coord)
4535{
4536        void *extproc;
4537
4538        extproc = (void *) wglGetProcAddress("glFogCoordfEXT");
4539
4540        if (extproc == NULL) {
4541                _ASSERT(0);
4542                return;
4543        }
4544
4545        glFogCoordfEXT = extproc;
4546
4547        glFogCoordfEXT(coord);
4548}
4549
4550static void APIENTRY InitFogCoordfvEXT (const GLfloat *coord)
4551{
4552        void *extproc;
4553
4554        extproc = (void *) wglGetProcAddress("glFogCoordfvEXT");
4555
4556        if (extproc == NULL) {
4557                _ASSERT(0);
4558                return;
4559        }
4560
4561        glFogCoordfvEXT = extproc;
4562
4563        glFogCoordfvEXT(coord);
4564}
4565
4566static void APIENTRY InitFogCoorddEXT (GLdouble coord)
4567{
4568        void *extproc;
4569
4570        extproc = (void *) wglGetProcAddress("glFogCoorddEXT");
4571
4572        if (extproc == NULL) {
4573                _ASSERT(0);
4574                return;
4575        }
4576
4577        glFogCoorddEXT = extproc;
4578
4579        glFogCoorddEXT(coord);
4580}
4581
4582static void APIENTRY InitFogCoorddvEXT (const GLdouble *coord)
4583{
4584        void *extproc;
4585
4586        extproc = (void *) wglGetProcAddress("glFogCoorddvEXT");
4587
4588        if (extproc == NULL) {
4589                _ASSERT(0);
4590                return;
4591        }
4592
4593        glFogCoorddvEXT = extproc;
4594
4595        glFogCoorddvEXT(coord);
4596}
4597
4598static void APIENTRY InitFogCoordPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer)
4599{
4600        void *extproc;
4601
4602        extproc = (void *) wglGetProcAddress("glFogCoordPointerEXT");
4603
4604        if (extproc == NULL) {
4605                _ASSERT(0);
4606                return;
4607        }
4608
4609        glFogCoordPointerEXT = extproc;
4610
4611        glFogCoordPointerEXT(type, stride, pointer);
4612}
4613
4614static void APIENTRY InitTangent3bEXT (GLbyte tx, GLbyte ty, GLbyte tz)
4615{
4616        void *extproc;
4617
4618        extproc = (void *) wglGetProcAddress("glTangent3bEXT");
4619
4620        if (extproc == NULL) {
4621                _ASSERT(0);
4622                return;
4623        }
4624
4625        glTangent3bEXT = extproc;
4626
4627        glTangent3bEXT(tx, ty, tz);
4628}
4629
4630static void APIENTRY InitTangent3bvEXT (const GLbyte *v)
4631{
4632        void *extproc;
4633
4634        extproc = (void *) wglGetProcAddress("glTangent3bvEXT");
4635
4636        if (extproc == NULL) {
4637                _ASSERT(0);
4638                return;
4639        }
4640
4641        glTangent3bvEXT = extproc;
4642
4643        glTangent3bvEXT(v);
4644}
4645
4646static void APIENTRY InitTangent3dEXT (GLdouble tx, GLdouble ty, GLdouble tz)
4647{
4648        void *extproc;
4649
4650        extproc = (void *) wglGetProcAddress("glTangent3dEXT");
4651
4652        if (extproc == NULL) {
4653                _ASSERT(0);
4654                return;
4655        }
4656
4657        glTangent3dEXT = extproc;
4658
4659        glTangent3dEXT(tx, ty, tz);
4660}
4661
4662static void APIENTRY InitTangent3dvEXT (const GLdouble *v)
4663{
4664        void *extproc;
4665
4666        extproc = (void *) wglGetProcAddress("glTangent3dvEXT");
4667
4668        if (extproc == NULL) {
4669                _ASSERT(0);
4670                return;
4671        }
4672
4673        glTangent3dvEXT = extproc;
4674
4675        glTangent3dvEXT(v);
4676}
4677
4678static void APIENTRY InitTangent3fEXT (GLfloat tx, GLfloat ty, GLfloat tz)
4679{
4680        void *extproc;
4681
4682        extproc = (void *) wglGetProcAddress("glTangent3fEXT");
4683
4684        if (extproc == NULL) {
4685                _ASSERT(0);
4686                return;
4687        }
4688
4689        glTangent3fEXT = extproc;
4690
4691        glTangent3fEXT(tx, ty, tz);
4692}
4693
4694static void APIENTRY InitTangent3fvEXT (const GLfloat *v)
4695{
4696        void *extproc;
4697
4698        extproc = (void *) wglGetProcAddress("glTangent3fvEXT");
4699
4700        if (extproc == NULL) {
4701                _ASSERT(0);
4702                return;
4703        }
4704
4705        glTangent3fvEXT = extproc;
4706
4707        glTangent3fvEXT(v);
4708}
4709
4710static void APIENTRY InitTangent3iEXT (GLint tx, GLint ty, GLint tz)
4711{
4712        void *extproc;
4713
4714        extproc = (void *) wglGetProcAddress("glTangent3iEXT");
4715
4716        if (extproc == NULL) {
4717                _ASSERT(0);
4718                return;
4719        }
4720
4721        glTangent3iEXT = extproc;
4722
4723        glTangent3iEXT(tx, ty, tz);
4724}
4725
4726static void APIENTRY InitTangent3ivEXT (const GLint *v)
4727{
4728        void *extproc;
4729
4730        extproc = (void *) wglGetProcAddress("glTangent3ivEXT");
4731
4732        if (extproc == NULL) {
4733                _ASSERT(0);
4734                return;
4735        }
4736
4737        glTangent3ivEXT = extproc;
4738
4739        glTangent3ivEXT(v);
4740}
4741
4742static void APIENTRY InitTangent3sEXT (GLshort tx, GLshort ty, GLshort tz)
4743{
4744        void *extproc;
4745
4746        extproc = (void *) wglGetProcAddress("glTangent3sEXT");
4747
4748        if (extproc == NULL) {
4749                _ASSERT(0);
4750                return;
4751        }
4752
4753        glTangent3sEXT = extproc;
4754
4755        glTangent3sEXT(tx, ty, tz);
4756}
4757
4758static void APIENTRY InitTangent3svEXT (const GLshort *v)
4759{
4760        void *extproc;
4761
4762        extproc = (void *) wglGetProcAddress("glTangent3svEXT");
4763
4764        if (extproc == NULL) {
4765                _ASSERT(0);
4766                return;
4767        }
4768
4769        glTangent3svEXT = extproc;
4770
4771        glTangent3svEXT(v);
4772}
4773
4774static void APIENTRY InitBinormal3bEXT (GLbyte bx, GLbyte by, GLbyte bz)
4775{
4776        void *extproc;
4777
4778        extproc = (void *) wglGetProcAddress("glBinormal3bEXT");
4779
4780        if (extproc == NULL) {
4781                _ASSERT(0);
4782                return;
4783        }
4784
4785        glBinormal3bEXT = extproc;
4786
4787        glBinormal3bEXT(bx, by, bz);
4788}
4789
4790static void APIENTRY InitBinormal3bvEXT (const GLbyte *v)
4791{
4792        void *extproc;
4793
4794        extproc = (void *) wglGetProcAddress("glBinormal3bvEXT");
4795
4796        if (extproc == NULL) {
4797                _ASSERT(0);
4798                return;
4799        }
4800
4801        glBinormal3bvEXT = extproc;
4802
4803        glBinormal3bvEXT(v);
4804}
4805
4806static void APIENTRY InitBinormal3dEXT (GLdouble bx, GLdouble by, GLdouble bz)
4807{
4808        void *extproc;
4809
4810        extproc = (void *) wglGetProcAddress("glBinormal3dEXT");
4811
4812        if (extproc == NULL) {
4813                _ASSERT(0);
4814                return;
4815        }
4816
4817        glBinormal3dEXT = extproc;
4818
4819        glBinormal3dEXT(bx, by, bz);
4820}
4821
4822static void APIENTRY InitBinormal3dvEXT (const GLdouble *v)
4823{
4824        void *extproc;
4825
4826        extproc = (void *) wglGetProcAddress("glBinormal3dvEXT");
4827
4828        if (extproc == NULL) {
4829                _ASSERT(0);
4830                return;
4831        }
4832
4833        glBinormal3dvEXT = extproc;
4834
4835        glBinormal3dvEXT(v);
4836}
4837
4838static void APIENTRY InitBinormal3fEXT (GLfloat bx, GLfloat by, GLfloat bz)
4839{
4840        void *extproc;
4841
4842        extproc = (void *) wglGetProcAddress("glBinormal3fEXT");
4843
4844        if (extproc == NULL) {
4845                _ASSERT(0);
4846                return;
4847        }
4848
4849        glBinormal3fEXT = extproc;
4850
4851        glBinormal3fEXT(bx, by, bz);
4852}
4853
4854static void APIENTRY InitBinormal3fvEXT (const GLfloat *v)
4855{
4856        void *extproc;
4857
4858        extproc = (void *) wglGetProcAddress("glBinormal3fvEXT");
4859
4860        if (extproc == NULL) {
4861                _ASSERT(0);
4862                return;
4863        }
4864
4865        glBinormal3fvEXT = extproc;
4866
4867        glBinormal3fvEXT(v);
4868}
4869
4870static void APIENTRY InitBinormal3iEXT (GLint bx, GLint by, GLint bz)
4871{
4872        void *extproc;
4873
4874        extproc = (void *) wglGetProcAddress("glBinormal3iEXT");
4875
4876        if (extproc == NULL) {
4877                _ASSERT(0);
4878                return;
4879        }
4880
4881        glBinormal3iEXT = extproc;
4882
4883        glBinormal3iEXT(bx, by, bz);
4884}
4885
4886static void APIENTRY InitBinormal3ivEXT (const GLint *v)
4887{
4888        void *extproc;
4889
4890        extproc = (void *) wglGetProcAddress("glBinormal3ivEXT");
4891
4892        if (extproc == NULL) {
4893                _ASSERT(0);
4894                return;
4895        }
4896
4897        glBinormal3ivEXT = extproc;
4898
4899        glBinormal3ivEXT(v);
4900}
4901
4902static void APIENTRY InitBinormal3sEXT (GLshort bx, GLshort by, GLshort bz)
4903{
4904        void *extproc;
4905
4906        extproc = (void *) wglGetProcAddress("glBinormal3sEXT");
4907
4908        if (extproc == NULL) {
4909                _ASSERT(0);
4910                return;
4911        }
4912
4913        glBinormal3sEXT = extproc;
4914
4915        glBinormal3sEXT(bx, by, bz);
4916}
4917
4918static void APIENTRY InitBinormal3svEXT (const GLshort *v)
4919{
4920        void *extproc;
4921
4922        extproc = (void *) wglGetProcAddress("glBinormal3svEXT");
4923
4924        if (extproc == NULL) {
4925                _ASSERT(0);
4926                return;
4927        }
4928
4929        glBinormal3svEXT = extproc;
4930
4931        glBinormal3svEXT(v);
4932}
4933
4934static void APIENTRY InitTangentPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer)
4935{
4936        void *extproc;
4937
4938        extproc = (void *) wglGetProcAddress("glTangentPointerEXT");
4939
4940        if (extproc == NULL) {
4941                _ASSERT(0);
4942                return;
4943        }
4944
4945        glTangentPointerEXT = extproc;
4946
4947        glTangentPointerEXT(type, stride, pointer);
4948}
4949
4950static void APIENTRY InitBinormalPointerEXT (GLenum type, GLsizei stride, const GLvoid *pointer)
4951{
4952        void *extproc;
4953
4954        extproc = (void *) wglGetProcAddress("glBinormalPointerEXT");
4955
4956        if (extproc == NULL) {
4957                _ASSERT(0);
4958                return;
4959        }
4960
4961        glBinormalPointerEXT = extproc;
4962
4963        glBinormalPointerEXT(type, stride, pointer);
4964}
4965
4966static void APIENTRY InitFinishTextureSUNX (void)
4967{
4968        void *extproc;
4969
4970        extproc = (void *) wglGetProcAddress("glFinishTextureSUNX");
4971
4972        if (extproc == NULL) {
4973                _ASSERT(0);
4974                return;
4975        }
4976
4977        glFinishTextureSUNX = extproc;
4978
4979        glFinishTextureSUNX();
4980}
4981
4982static void APIENTRY InitGlobalAlphaFactorbSUN (GLbyte factor)
4983{
4984        void *extproc;
4985
4986        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactorbSUN");
4987
4988        if (extproc == NULL) {
4989                _ASSERT(0);
4990                return;
4991        }
4992
4993        glGlobalAlphaFactorbSUN = extproc;
4994
4995        glGlobalAlphaFactorbSUN(factor);
4996}
4997
4998static void APIENTRY InitGlobalAlphaFactorsSUN (GLshort factor)
4999{
5000        void *extproc;
5001
5002        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactorsSUN");
5003
5004        if (extproc == NULL) {
5005                _ASSERT(0);
5006                return;
5007        }
5008
5009        glGlobalAlphaFactorsSUN = extproc;
5010
5011        glGlobalAlphaFactorsSUN(factor);
5012}
5013
5014static void APIENTRY InitGlobalAlphaFactoriSUN (GLint factor)
5015{
5016        void *extproc;
5017
5018        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactoriSUN");
5019
5020        if (extproc == NULL) {
5021                _ASSERT(0);
5022                return;
5023        }
5024
5025        glGlobalAlphaFactoriSUN = extproc;
5026
5027        glGlobalAlphaFactoriSUN(factor);
5028}
5029
5030static void APIENTRY InitGlobalAlphaFactorfSUN (GLfloat factor)
5031{
5032        void *extproc;
5033
5034        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactorfSUN");
5035
5036        if (extproc == NULL) {
5037                _ASSERT(0);
5038                return;
5039        }
5040
5041        glGlobalAlphaFactorfSUN = extproc;
5042
5043        glGlobalAlphaFactorfSUN(factor);
5044}
5045
5046static void APIENTRY InitGlobalAlphaFactordSUN (GLdouble factor)
5047{
5048        void *extproc;
5049
5050        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactordSUN");
5051
5052        if (extproc == NULL) {
5053                _ASSERT(0);
5054                return;
5055        }
5056
5057        glGlobalAlphaFactordSUN = extproc;
5058
5059        glGlobalAlphaFactordSUN(factor);
5060}
5061
5062static void APIENTRY InitGlobalAlphaFactorubSUN (GLubyte factor)
5063{
5064        void *extproc;
5065
5066        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactorubSUN");
5067
5068        if (extproc == NULL) {
5069                _ASSERT(0);
5070                return;
5071        }
5072
5073        glGlobalAlphaFactorubSUN = extproc;
5074
5075        glGlobalAlphaFactorubSUN(factor);
5076}
5077
5078static void APIENTRY InitGlobalAlphaFactorusSUN (GLushort factor)
5079{
5080        void *extproc;
5081
5082        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactorusSUN");
5083
5084        if (extproc == NULL) {
5085                _ASSERT(0);
5086                return;
5087        }
5088
5089        glGlobalAlphaFactorusSUN = extproc;
5090
5091        glGlobalAlphaFactorusSUN(factor);
5092}
5093
5094static void APIENTRY InitGlobalAlphaFactoruiSUN (GLuint factor)
5095{
5096        void *extproc;
5097
5098        extproc = (void *) wglGetProcAddress("glGlobalAlphaFactoruiSUN");
5099
5100        if (extproc == NULL) {
5101                _ASSERT(0);
5102                return;
5103        }
5104
5105        glGlobalAlphaFactoruiSUN = extproc;
5106
5107        glGlobalAlphaFactoruiSUN(factor);
5108}
5109
5110static void APIENTRY InitReplacementCodeuiSUN (GLuint code)
5111{
5112        void *extproc;
5113
5114        extproc = (void *) wglGetProcAddress("glReplacementCodeuiSUN");
5115
5116        if (extproc == NULL) {
5117                _ASSERT(0);
5118                return;
5119        }
5120
5121        glReplacementCodeuiSUN = extproc;
5122
5123        glReplacementCodeuiSUN(code);
5124}
5125
5126static void APIENTRY InitReplacementCodeusSUN (GLushort code)
5127{
5128        void *extproc;
5129
5130        extproc = (void *) wglGetProcAddress("glReplacementCodeusSUN");
5131
5132        if (extproc == NULL) {
5133                _ASSERT(0);
5134                return;
5135        }
5136
5137        glReplacementCodeusSUN = extproc;
5138
5139        glReplacementCodeusSUN(code);
5140}
5141
5142static void APIENTRY InitReplacementCodeubSUN (GLubyte code)
5143{
5144        void *extproc;
5145
5146        extproc = (void *) wglGetProcAddress("glReplacementCodeubSUN");
5147
5148        if (extproc == NULL) {
5149                _ASSERT(0);
5150                return;
5151        }
5152
5153        glReplacementCodeubSUN = extproc;
5154
5155        glReplacementCodeubSUN(code);
5156}
5157
5158static void APIENTRY InitReplacementCodeuivSUN (const GLuint *code)
5159{
5160        void *extproc;
5161
5162        extproc = (void *) wglGetProcAddress("glReplacementCodeuivSUN");
5163
5164        if (extproc == NULL) {
5165                _ASSERT(0);
5166                return;
5167        }
5168
5169        glReplacementCodeuivSUN = extproc;
5170
5171        glReplacementCodeuivSUN(code);
5172}
5173
5174static void APIENTRY InitReplacementCodeusvSUN (const GLushort *code)
5175{
5176        void *extproc;
5177
5178        extproc = (void *) wglGetProcAddress("glReplacementCodeusvSUN");
5179
5180        if (extproc == NULL) {
5181                _ASSERT(0);
5182                return;
5183        }
5184
5185        glReplacementCodeusvSUN = extproc;
5186
5187        glReplacementCodeusvSUN(code);
5188}
5189
5190static void APIENTRY InitReplacementCodeubvSUN (const GLubyte *code)
5191{
5192        void *extproc;
5193
5194        extproc = (void *) wglGetProcAddress("glReplacementCodeubvSUN");
5195
5196        if (extproc == NULL) {
5197                _ASSERT(0);
5198                return;
5199        }
5200
5201        glReplacementCodeubvSUN = extproc;
5202
5203        glReplacementCodeubvSUN(code);
5204}
5205
5206static void APIENTRY InitReplacementCodePointerSUN (GLenum type, GLsizei stride, const GLvoid* *pointer)
5207{
5208        void *extproc;
5209
5210        extproc = (void *) wglGetProcAddress("glReplacementCodePointerSUN");
5211
5212        if (extproc == NULL) {
5213                _ASSERT(0);
5214                return;
5215        }
5216
5217        glReplacementCodePointerSUN = extproc;
5218
5219        glReplacementCodePointerSUN(type, stride, pointer);
5220}
5221
5222static void APIENTRY InitColor4ubVertex2fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y)
5223{
5224        void *extproc;
5225
5226        extproc = (void *) wglGetProcAddress("glColor4ubVertex2fSUN");
5227
5228        if (extproc == NULL) {
5229                _ASSERT(0);
5230                return;
5231        }
5232
5233        glColor4ubVertex2fSUN = extproc;
5234
5235        glColor4ubVertex2fSUN(r, g, b, a, x, y);
5236}
5237
5238static void APIENTRY InitColor4ubVertex2fvSUN (const GLubyte *c, const GLfloat *v)
5239{
5240        void *extproc;
5241
5242        extproc = (void *) wglGetProcAddress("glColor4ubVertex2fvSUN");
5243
5244        if (extproc == NULL) {
5245                _ASSERT(0);
5246                return;
5247        }
5248
5249        glColor4ubVertex2fvSUN = extproc;
5250
5251        glColor4ubVertex2fvSUN(c, v);
5252}
5253
5254static void APIENTRY InitColor4ubVertex3fSUN (GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z)
5255{
5256        void *extproc;
5257
5258        extproc = (void *) wglGetProcAddress("glColor4ubVertex3fSUN");
5259
5260        if (extproc == NULL) {
5261                _ASSERT(0);
5262                return;
5263        }
5264
5265        glColor4ubVertex3fSUN = extproc;
5266
5267        glColor4ubVertex3fSUN(r, g, b, a, x, y, z);
5268}
5269
5270static void APIENTRY InitColor4ubVertex3fvSUN (const GLubyte *c, const GLfloat *v)
5271{
5272        void *extproc;
5273
5274        extproc = (void *) wglGetProcAddress("glColor4ubVertex3fvSUN");
5275
5276        if (extproc == NULL) {
5277                _ASSERT(0);
5278                return;
5279        }
5280
5281        glColor4ubVertex3fvSUN = extproc;
5282
5283        glColor4ubVertex3fvSUN(c, v);
5284}
5285
5286static void APIENTRY InitColor3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z)
5287{
5288        void *extproc;
5289
5290        extproc = (void *) wglGetProcAddress("glColor3fVertex3fSUN");
5291
5292        if (extproc == NULL) {
5293                _ASSERT(0);
5294                return;
5295        }
5296
5297        glColor3fVertex3fSUN = extproc;
5298
5299        glColor3fVertex3fSUN(r, g, b, x, y, z);
5300}
5301
5302static void APIENTRY InitColor3fVertex3fvSUN (const GLfloat *c, const GLfloat *v)
5303{
5304        void *extproc;
5305
5306        extproc = (void *) wglGetProcAddress("glColor3fVertex3fvSUN");
5307
5308        if (extproc == NULL) {
5309                _ASSERT(0);
5310                return;
5311        }
5312
5313        glColor3fVertex3fvSUN = extproc;
5314
5315        glColor3fVertex3fvSUN(c, v);
5316}
5317
5318static void APIENTRY InitNormal3fVertex3fSUN (GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5319{
5320        void *extproc;
5321
5322        extproc = (void *) wglGetProcAddress("glNormal3fVertex3fSUN");
5323
5324        if (extproc == NULL) {
5325                _ASSERT(0);
5326                return;
5327        }
5328
5329        glNormal3fVertex3fSUN = extproc;
5330
5331        glNormal3fVertex3fSUN(nx, ny, nz, x, y, z);
5332}
5333
5334static void APIENTRY InitNormal3fVertex3fvSUN (const GLfloat *n, const GLfloat *v)
5335{
5336        void *extproc;
5337
5338        extproc = (void *) wglGetProcAddress("glNormal3fVertex3fvSUN");
5339
5340        if (extproc == NULL) {
5341                _ASSERT(0);
5342                return;
5343        }
5344
5345        glNormal3fVertex3fvSUN = extproc;
5346
5347        glNormal3fVertex3fvSUN(n, v);
5348}
5349
5350static void APIENTRY InitColor4fNormal3fVertex3fSUN (GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5351{
5352        void *extproc;
5353
5354        extproc = (void *) wglGetProcAddress("glColor4fNormal3fVertex3fSUN");
5355
5356        if (extproc == NULL) {
5357                _ASSERT(0);
5358                return;
5359        }
5360
5361        glColor4fNormal3fVertex3fSUN = extproc;
5362
5363        glColor4fNormal3fVertex3fSUN(r, g, b, a, nx, ny, nz, x, y, z);
5364}
5365
5366static void APIENTRY InitColor4fNormal3fVertex3fvSUN (const GLfloat *c, const GLfloat *n, const GLfloat *v)
5367{
5368        void *extproc;
5369
5370        extproc = (void *) wglGetProcAddress("glColor4fNormal3fVertex3fvSUN");
5371
5372        if (extproc == NULL) {
5373                _ASSERT(0);
5374                return;
5375        }
5376
5377        glColor4fNormal3fVertex3fvSUN = extproc;
5378
5379        glColor4fNormal3fVertex3fvSUN(c, n, v);
5380}
5381
5382static void APIENTRY InitTexCoord2fVertex3fSUN (GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z)
5383{
5384        void *extproc;
5385
5386        extproc = (void *) wglGetProcAddress("glTexCoord2fVertex3fSUN");
5387
5388        if (extproc == NULL) {
5389                _ASSERT(0);
5390                return;
5391        }
5392
5393        glTexCoord2fVertex3fSUN = extproc;
5394
5395        glTexCoord2fVertex3fSUN(s, t, x, y, z);
5396}
5397
5398static void APIENTRY InitTexCoord2fVertex3fvSUN (const GLfloat *tc, const GLfloat *v)
5399{
5400        void *extproc;
5401
5402        extproc = (void *) wglGetProcAddress("glTexCoord2fVertex3fvSUN");
5403
5404        if (extproc == NULL) {
5405                _ASSERT(0);
5406                return;
5407        }
5408
5409        glTexCoord2fVertex3fvSUN = extproc;
5410
5411        glTexCoord2fVertex3fvSUN(tc, v);
5412}
5413
5414static void APIENTRY InitTexCoord4fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
5415{
5416        void *extproc;
5417
5418        extproc = (void *) wglGetProcAddress("glTexCoord4fVertex4fSUN");
5419
5420        if (extproc == NULL) {
5421                _ASSERT(0);
5422                return;
5423        }
5424
5425        glTexCoord4fVertex4fSUN = extproc;
5426
5427        glTexCoord4fVertex4fSUN(s, t, p, q, x, y, z, w);
5428}
5429
5430static void APIENTRY InitTexCoord4fVertex4fvSUN (const GLfloat *tc, const GLfloat *v)
5431{
5432        void *extproc;
5433
5434        extproc = (void *) wglGetProcAddress("glTexCoord4fVertex4fvSUN");
5435
5436        if (extproc == NULL) {
5437                _ASSERT(0);
5438                return;
5439        }
5440
5441        glTexCoord4fVertex4fvSUN = extproc;
5442
5443        glTexCoord4fVertex4fvSUN(tc, v);
5444}
5445
5446static void APIENTRY InitTexCoord2fColor4ubVertex3fSUN (GLfloat s, GLfloat t, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z)
5447{
5448        void *extproc;
5449
5450        extproc = (void *) wglGetProcAddress("glTexCoord2fColor4ubVertex3fSUN");
5451
5452        if (extproc == NULL) {
5453                _ASSERT(0);
5454                return;
5455        }
5456
5457        glTexCoord2fColor4ubVertex3fSUN = extproc;
5458
5459        glTexCoord2fColor4ubVertex3fSUN(s, t, r, g, b, a, x, y, z);
5460}
5461
5462static void APIENTRY InitTexCoord2fColor4ubVertex3fvSUN (const GLfloat *tc, const GLubyte *c, const GLfloat *v)
5463{
5464        void *extproc;
5465
5466        extproc = (void *) wglGetProcAddress("glTexCoord2fColor4ubVertex3fvSUN");
5467
5468        if (extproc == NULL) {
5469                _ASSERT(0);
5470                return;
5471        }
5472
5473        glTexCoord2fColor4ubVertex3fvSUN = extproc;
5474
5475        glTexCoord2fColor4ubVertex3fvSUN(tc, c, v);
5476}
5477
5478static void APIENTRY InitTexCoord2fColor3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z)
5479{
5480        void *extproc;
5481
5482        extproc = (void *) wglGetProcAddress("glTexCoord2fColor3fVertex3fSUN");
5483
5484        if (extproc == NULL) {
5485                _ASSERT(0);
5486                return;
5487        }
5488
5489        glTexCoord2fColor3fVertex3fSUN = extproc;
5490
5491        glTexCoord2fColor3fVertex3fSUN(s, t, r, g, b, x, y, z);
5492}
5493
5494static void APIENTRY InitTexCoord2fColor3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *v)
5495{
5496        void *extproc;
5497
5498        extproc = (void *) wglGetProcAddress("glTexCoord2fColor3fVertex3fvSUN");
5499
5500        if (extproc == NULL) {
5501                _ASSERT(0);
5502                return;
5503        }
5504
5505        glTexCoord2fColor3fVertex3fvSUN = extproc;
5506
5507        glTexCoord2fColor3fVertex3fvSUN(tc, c, v);
5508}
5509
5510static void APIENTRY InitTexCoord2fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5511{
5512        void *extproc;
5513
5514        extproc = (void *) wglGetProcAddress("glTexCoord2fNormal3fVertex3fSUN");
5515
5516        if (extproc == NULL) {
5517                _ASSERT(0);
5518                return;
5519        }
5520
5521        glTexCoord2fNormal3fVertex3fSUN = extproc;
5522
5523        glTexCoord2fNormal3fVertex3fSUN(s, t, nx, ny, nz, x, y, z);
5524}
5525
5526static void APIENTRY InitTexCoord2fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *n, const GLfloat *v)
5527{
5528        void *extproc;
5529
5530        extproc = (void *) wglGetProcAddress("glTexCoord2fNormal3fVertex3fvSUN");
5531
5532        if (extproc == NULL) {
5533                _ASSERT(0);
5534                return;
5535        }
5536
5537        glTexCoord2fNormal3fVertex3fvSUN = extproc;
5538
5539        glTexCoord2fNormal3fVertex3fvSUN(tc, n, v);
5540}
5541
5542static void APIENTRY InitTexCoord2fColor4fNormal3fVertex3fSUN (GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5543{
5544        void *extproc;
5545
5546        extproc = (void *) wglGetProcAddress("glTexCoord2fColor4fNormal3fVertex3fSUN");
5547
5548        if (extproc == NULL) {
5549                _ASSERT(0);
5550                return;
5551        }
5552
5553        glTexCoord2fColor4fNormal3fVertex3fSUN = extproc;
5554
5555        glTexCoord2fColor4fNormal3fVertex3fSUN(s, t, r, g, b, a, nx, ny, nz, x, y, z);
5556}
5557
5558static void APIENTRY InitTexCoord2fColor4fNormal3fVertex3fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v)
5559{
5560        void *extproc;
5561
5562        extproc = (void *) wglGetProcAddress("glTexCoord2fColor4fNormal3fVertex3fvSUN");
5563
5564        if (extproc == NULL) {
5565                _ASSERT(0);
5566                return;
5567        }
5568
5569        glTexCoord2fColor4fNormal3fVertex3fvSUN = extproc;
5570
5571        glTexCoord2fColor4fNormal3fVertex3fvSUN(tc, c, n, v);
5572}
5573
5574static void APIENTRY InitTexCoord4fColor4fNormal3fVertex4fSUN (GLfloat s, GLfloat t, GLfloat p, GLfloat q, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
5575{
5576        void *extproc;
5577
5578        extproc = (void *) wglGetProcAddress("glTexCoord4fColor4fNormal3fVertex4fSUN");
5579
5580        if (extproc == NULL) {
5581                _ASSERT(0);
5582                return;
5583        }
5584
5585        glTexCoord4fColor4fNormal3fVertex4fSUN = extproc;
5586
5587        glTexCoord4fColor4fNormal3fVertex4fSUN(s, t, p, q, r, g, b, a, nx, ny, nz, x, y, z, w);
5588}
5589
5590static void APIENTRY InitTexCoord4fColor4fNormal3fVertex4fvSUN (const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v)
5591{
5592        void *extproc;
5593
5594        extproc = (void *) wglGetProcAddress("glTexCoord4fColor4fNormal3fVertex4fvSUN");
5595
5596        if (extproc == NULL) {
5597                _ASSERT(0);
5598                return;
5599        }
5600
5601        glTexCoord4fColor4fNormal3fVertex4fvSUN = extproc;
5602
5603        glTexCoord4fColor4fNormal3fVertex4fvSUN(tc, c, n, v);
5604}
5605
5606static void APIENTRY InitReplacementCodeuiVertex3fSUN (GLenum rc, GLfloat x, GLfloat y, GLfloat z)
5607{
5608        void *extproc;
5609
5610        extproc = (void *) wglGetProcAddress("glReplacementCodeuiVertex3fSUN");
5611
5612        if (extproc == NULL) {
5613                _ASSERT(0);
5614                return;
5615        }
5616
5617        glReplacementCodeuiVertex3fSUN = extproc;
5618
5619        glReplacementCodeuiVertex3fSUN(rc, x, y, z);
5620}
5621
5622static void APIENTRY InitReplacementCodeuiVertex3fvSUN (const GLenum *rc, const GLfloat *v)
5623{
5624        void *extproc;
5625
5626        extproc = (void *) wglGetProcAddress("glReplacementCodeuiVertex3fvSUN");
5627
5628        if (extproc == NULL) {
5629                _ASSERT(0);
5630                return;
5631        }
5632
5633        glReplacementCodeuiVertex3fvSUN = extproc;
5634
5635        glReplacementCodeuiVertex3fvSUN(rc, v);
5636}
5637
5638static void APIENTRY InitReplacementCodeuiColor4ubVertex3fSUN (GLenum rc, GLubyte r, GLubyte g, GLubyte b, GLubyte a, GLfloat x, GLfloat y, GLfloat z)
5639{
5640        void *extproc;
5641
5642        extproc = (void *) wglGetProcAddress("glReplacementCodeuiColor4ubVertex3fSUN");
5643
5644        if (extproc == NULL) {
5645                _ASSERT(0);
5646                return;
5647        }
5648
5649        glReplacementCodeuiColor4ubVertex3fSUN = extproc;
5650
5651        glReplacementCodeuiColor4ubVertex3fSUN(rc, r, g, b, a, x, y, z);
5652}
5653
5654static void APIENTRY InitReplacementCodeuiColor4ubVertex3fvSUN (const GLenum *rc, const GLubyte *c, const GLfloat *v)
5655{
5656        void *extproc;
5657
5658        extproc = (void *) wglGetProcAddress("glReplacementCodeuiColor4ubVertex3fvSUN");
5659
5660        if (extproc == NULL) {
5661                _ASSERT(0);
5662                return;
5663        }
5664
5665        glReplacementCodeuiColor4ubVertex3fvSUN = extproc;
5666
5667        glReplacementCodeuiColor4ubVertex3fvSUN(rc, c, v);
5668}
5669
5670static void APIENTRY InitReplacementCodeuiColor3fVertex3fSUN (GLenum rc, GLfloat r, GLfloat g, GLfloat b, GLfloat x, GLfloat y, GLfloat z)
5671{
5672        void *extproc;
5673
5674        extproc = (void *) wglGetProcAddress("glReplacementCodeuiColor3fVertex3fSUN");
5675
5676        if (extproc == NULL) {
5677                _ASSERT(0);
5678                return;
5679        }
5680
5681        glReplacementCodeuiColor3fVertex3fSUN = extproc;
5682
5683        glReplacementCodeuiColor3fVertex3fSUN(rc, r, g, b, x, y, z);
5684}
5685
5686static void APIENTRY InitReplacementCodeuiColor3fVertex3fvSUN (const GLenum *rc, const GLfloat *c, const GLfloat *v)
5687{
5688        void *extproc;
5689
5690        extproc = (void *) wglGetProcAddress("glReplacementCodeuiColor3fVertex3fvSUN");
5691
5692        if (extproc == NULL) {
5693                _ASSERT(0);
5694                return;
5695        }
5696
5697        glReplacementCodeuiColor3fVertex3fvSUN = extproc;
5698
5699        glReplacementCodeuiColor3fVertex3fvSUN(rc, c, v);
5700}
5701
5702static void APIENTRY InitReplacementCodeuiNormal3fVertex3fSUN (GLenum rc, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5703{
5704        void *extproc;
5705
5706        extproc = (void *) wglGetProcAddress("glReplacementCodeuiNormal3fVertex3fSUN");
5707
5708        if (extproc == NULL) {
5709                _ASSERT(0);
5710                return;
5711        }
5712
5713        glReplacementCodeuiNormal3fVertex3fSUN = extproc;
5714
5715        glReplacementCodeuiNormal3fVertex3fSUN(rc, nx, ny, nz, x, y, z);
5716}
5717
5718static void APIENTRY InitReplacementCodeuiNormal3fVertex3fvSUN (const GLenum *rc, const GLfloat *n, const GLfloat *v)
5719{
5720        void *extproc;
5721
5722        extproc = (void *) wglGetProcAddress("glReplacementCodeuiNormal3fVertex3fvSUN");
5723
5724        if (extproc == NULL) {
5725                _ASSERT(0);
5726                return;
5727        }
5728
5729        glReplacementCodeuiNormal3fVertex3fvSUN = extproc;
5730
5731        glReplacementCodeuiNormal3fVertex3fvSUN(rc, n, v);
5732}
5733
5734static void APIENTRY InitReplacementCodeuiColor4fNormal3fVertex3fSUN (GLenum rc, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5735{
5736        void *extproc;
5737
5738        extproc = (void *) wglGetProcAddress("glReplacementCodeuiColor4fNormal3fVertex3fSUN");
5739
5740        if (extproc == NULL) {
5741                _ASSERT(0);
5742                return;
5743        }
5744
5745        glReplacementCodeuiColor4fNormal3fVertex3fSUN = extproc;
5746
5747        glReplacementCodeuiColor4fNormal3fVertex3fSUN(rc, r, g, b, a, nx, ny, nz, x, y, z);
5748}
5749
5750static void APIENTRY InitReplacementCodeuiColor4fNormal3fVertex3fvSUN (const GLenum *rc, const GLfloat *c, const GLfloat *n, const GLfloat *v)
5751{
5752        void *extproc;
5753
5754        extproc = (void *) wglGetProcAddress("glReplacementCodeuiColor4fNormal3fVertex3fvSUN");
5755
5756        if (extproc == NULL) {
5757                _ASSERT(0);
5758                return;
5759        }
5760
5761        glReplacementCodeuiColor4fNormal3fVertex3fvSUN = extproc;
5762
5763        glReplacementCodeuiColor4fNormal3fVertex3fvSUN(rc, c, n, v);
5764}
5765
5766static void APIENTRY InitReplacementCodeuiTexCoord2fVertex3fSUN (GLenum rc, GLfloat s, GLfloat t, GLfloat x, GLfloat y, GLfloat z)
5767{
5768        void *extproc;
5769
5770        extproc = (void *) wglGetProcAddress("glReplacementCodeuiTexCoord2fVertex3fSUN");
5771
5772        if (extproc == NULL) {
5773                _ASSERT(0);
5774                return;
5775        }
5776
5777        glReplacementCodeuiTexCoord2fVertex3fSUN = extproc;
5778
5779        glReplacementCodeuiTexCoord2fVertex3fSUN(rc, s, t, x, y, z);
5780}
5781
5782static void APIENTRY InitReplacementCodeuiTexCoord2fVertex3fvSUN (const GLenum *rc, const GLfloat *tc, const GLfloat *v)
5783{
5784        void *extproc;
5785
5786        extproc = (void *) wglGetProcAddress("glReplacementCodeuiTexCoord2fVertex3fvSUN");
5787
5788        if (extproc == NULL) {
5789                _ASSERT(0);
5790                return;
5791        }
5792
5793        glReplacementCodeuiTexCoord2fVertex3fvSUN = extproc;
5794
5795        glReplacementCodeuiTexCoord2fVertex3fvSUN(rc, tc, v);
5796}
5797
5798static void APIENTRY InitReplacementCodeuiTexCoord2fNormal3fVertex3fSUN (GLenum rc, GLfloat s, GLfloat t, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5799{
5800        void *extproc;
5801
5802        extproc = (void *) wglGetProcAddress("glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN");
5803
5804        if (extproc == NULL) {
5805                _ASSERT(0);
5806                return;
5807        }
5808
5809        glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = extproc;
5810
5811        glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN(rc, s, t, nx, ny, nz, x, y, z);
5812}
5813
5814static void APIENTRY InitReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN (const GLenum *rc, const GLfloat *tc, const GLfloat *n, const GLfloat *v)
5815{
5816        void *extproc;
5817
5818        extproc = (void *) wglGetProcAddress("glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN");
5819
5820        if (extproc == NULL) {
5821                _ASSERT(0);
5822                return;
5823        }
5824
5825        glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = extproc;
5826
5827        glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN(rc, tc, n, v);
5828}
5829
5830static void APIENTRY InitReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN (GLenum rc, GLfloat s, GLfloat t, GLfloat r, GLfloat g, GLfloat b, GLfloat a, GLfloat nx, GLfloat ny, GLfloat nz, GLfloat x, GLfloat y, GLfloat z)
5831{
5832        void *extproc;
5833
5834        extproc = (void *) wglGetProcAddress("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN");
5835
5836        if (extproc == NULL) {
5837                _ASSERT(0);
5838                return;
5839        }
5840
5841        glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = extproc;
5842
5843        glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN(rc, s, t, r, g, b, a, nx, ny, nz, x, y, z);
5844}
5845
5846static void APIENTRY InitReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN (const GLenum *rc, const GLfloat *tc, const GLfloat *c, const GLfloat *n, const GLfloat *v)
5847{
5848        void *extproc;
5849
5850        extproc = (void *) wglGetProcAddress("glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN");
5851
5852        if (extproc == NULL) {
5853                _ASSERT(0);
5854                return;
5855        }
5856
5857        glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = extproc;
5858
5859        glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN(rc, tc, c, n, v);
5860}
5861
5862static void APIENTRY InitBlendFuncSeparateEXT (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
5863{
5864        void *extproc;
5865
5866        extproc = (void *) wglGetProcAddress("glBlendFuncSeparateEXT");
5867
5868        if (extproc == NULL) {
5869                _ASSERT(0);
5870                return;
5871        }
5872
5873        glBlendFuncSeparateEXT = extproc;
5874
5875        glBlendFuncSeparateEXT(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
5876}
5877
5878static void APIENTRY InitBlendFuncSeparateINGR (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha)
5879{
5880        void *extproc;
5881
5882        extproc = (void *) wglGetProcAddress("glBlendFuncSeparateINGR");
5883
5884        if (extproc == NULL) {
5885                _ASSERT(0);
5886                return;
5887        }
5888
5889        glBlendFuncSeparateINGR = extproc;
5890
5891        glBlendFuncSeparateINGR(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
5892}
5893
5894static void APIENTRY InitVertexWeightfEXT (GLfloat weight)
5895{
5896        void *extproc;
5897
5898        extproc = (void *) wglGetProcAddress("glVertexWeightfEXT");
5899
5900        if (extproc == NULL) {
5901                _ASSERT(0);
5902                return;
5903        }
5904
5905        glVertexWeightfEXT = extproc;
5906
5907        glVertexWeightfEXT(weight);
5908}
5909
5910static void APIENTRY InitVertexWeightfvEXT (const GLfloat *weight)
5911{
5912        void *extproc;
5913
5914        extproc = (void *) wglGetProcAddress("glVertexWeightfvEXT");
5915
5916        if (extproc == NULL) {
5917                _ASSERT(0);
5918                return;
5919        }
5920
5921        glVertexWeightfvEXT = extproc;
5922
5923        glVertexWeightfvEXT(weight);
5924}
5925
5926static void APIENTRY InitVertexWeightPointerEXT (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer)
5927{
5928        void *extproc;
5929
5930        extproc = (void *) wglGetProcAddress("glVertexWeightPointerEXT");
5931
5932        if (extproc == NULL) {
5933                _ASSERT(0);
5934                return;
5935        }
5936
5937        glVertexWeightPointerEXT = extproc;
5938
5939        glVertexWeightPointerEXT(size, type, stride, pointer);
5940}
5941
5942static void APIENTRY InitFlushVertexArrayRangeNV (void)
5943{
5944        void *extproc;
5945
5946        extproc = (void *) wglGetProcAddress("glFlushVertexArrayRangeNV");
5947
5948        if (extproc == NULL) {
5949                _ASSERT(0);
5950                return;
5951        }
5952
5953        glFlushVertexArrayRangeNV = extproc;
5954
5955        glFlushVertexArrayRangeNV();
5956}
5957
5958static void APIENTRY InitVertexArrayRangeNV (GLsizei length, const GLvoid *pointer)
5959{
5960        void *extproc;
5961
5962        extproc = (void *) wglGetProcAddress("glVertexArrayRangeNV");
5963
5964        if (extproc == NULL) {
5965                _ASSERT(0);
5966                return;
5967        }
5968
5969        glVertexArrayRangeNV = extproc;
5970
5971        glVertexArrayRangeNV(length, pointer);
5972}
5973
5974static void APIENTRY InitCombinerParameterfvNV (GLenum pname, const GLfloat *params)
5975{
5976        void *extproc;
5977
5978        extproc = (void *) wglGetProcAddress("glCombinerParameterfvNV");
5979
5980        if (extproc == NULL) {
5981                _ASSERT(0);
5982                return;
5983        }
5984
5985        glCombinerParameterfvNV = extproc;
5986
5987        glCombinerParameterfvNV(pname, params);
5988}
5989
5990static void APIENTRY InitCombinerParameterfNV (GLenum pname, GLfloat param)
5991{
5992        void *extproc;
5993
5994        extproc = (void *) wglGetProcAddress("glCombinerParameterfNV");
5995
5996        if (extproc == NULL) {
5997                _ASSERT(0);
5998                return;
5999        }
6000
6001        glCombinerParameterfNV = extproc;
6002
6003        glCombinerParameterfNV(pname, param);
6004}
6005
6006static void APIENTRY InitCombinerParameterivNV (GLenum pname, const GLint *params)
6007{
6008        void *extproc;
6009
6010        extproc = (void *) wglGetProcAddress("glCombinerParameterivNV");
6011
6012        if (extproc == NULL) {
6013                _ASSERT(0);
6014                return;
6015        }
6016
6017        glCombinerParameterivNV = extproc;
6018
6019        glCombinerParameterivNV(pname, params);
6020}
6021
6022static void APIENTRY InitCombinerParameteriNV (GLenum pname, GLint param)
6023{
6024        void *extproc;
6025
6026        extproc = (void *) wglGetProcAddress("glCombinerParameteriNV");
6027
6028        if (extproc == NULL) {
6029                _ASSERT(0);
6030                return;
6031        }
6032
6033        glCombinerParameteriNV = extproc;
6034
6035        glCombinerParameteriNV(pname, param);
6036}
6037
6038static void APIENTRY InitCombinerInputNV (GLenum stage, GLenum portion, GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage)
6039{
6040        void *extproc;
6041
6042        extproc = (void *) wglGetProcAddress("glCombinerInputNV");
6043
6044        if (extproc == NULL) {
6045                _ASSERT(0);
6046                return;
6047        }
6048
6049        glCombinerInputNV = extproc;
6050
6051        glCombinerInputNV(stage, portion, variable, input, mapping, componentUsage);
6052}
6053
6054static void APIENTRY InitCombinerOutputNV (GLenum stage, GLenum portion, GLenum abOutput, GLenum cdOutput, GLenum sumOutput, GLenum scale, GLenum bias, GLboolean abDotProduct, GLboolean cdDotProduct, GLboolean muxSum)
6055{
6056        void *extproc;
6057
6058        extproc = (void *) wglGetProcAddress("glCombinerOutputNV");
6059
6060        if (extproc == NULL) {
6061                _ASSERT(0);
6062                return;
6063        }
6064
6065        glCombinerOutputNV = extproc;
6066
6067        glCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum);
6068}
6069
6070static void APIENTRY InitFinalCombinerInputNV (GLenum variable, GLenum input, GLenum mapping, GLenum componentUsage)
6071{
6072        void *extproc;
6073
6074        extproc = (void *) wglGetProcAddress("glFinalCombinerInputNV");
6075
6076        if (extproc == NULL) {
6077                _ASSERT(0);
6078                return;
6079        }
6080
6081        glFinalCombinerInputNV = extproc;
6082
6083        glFinalCombinerInputNV(variable, input, mapping, componentUsage);
6084}
6085
6086static void APIENTRY InitGetCombinerInputParameterfvNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLfloat *params)
6087{
6088        void *extproc;
6089
6090        extproc = (void *) wglGetProcAddress("glGetCombinerInputParameterfvNV");
6091
6092        if (extproc == NULL) {
6093                _ASSERT(0);
6094                return;
6095        }
6096
6097        glGetCombinerInputParameterfvNV = extproc;
6098
6099        glGetCombinerInputParameterfvNV(stage, portion, variable, pname, params);
6100}
6101
6102static void APIENTRY InitGetCombinerInputParameterivNV (GLenum stage, GLenum portion, GLenum variable, GLenum pname, GLint *params)
6103{
6104        void *extproc;
6105
6106        extproc = (void *) wglGetProcAddress("glGetCombinerInputParameterivNV");
6107
6108        if (extproc == NULL) {
6109                _ASSERT(0);
6110                return;
6111        }
6112
6113        glGetCombinerInputParameterivNV = extproc;
6114
6115        glGetCombinerInputParameterivNV(stage, portion, variable, pname, params);
6116}
6117
6118static void APIENTRY InitGetCombinerOutputParameterfvNV (GLenum stage, GLenum portion, GLenum pname, GLfloat *params)
6119{
6120        void *extproc;
6121
6122        extproc = (void *) wglGetProcAddress("glGetCombinerOutputParameterfvNV");
6123
6124        if (extproc == NULL) {
6125                _ASSERT(0);
6126                return;
6127        }
6128
6129        glGetCombinerOutputParameterfvNV = extproc;
6130
6131        glGetCombinerOutputParameterfvNV(stage, portion, pname, params);
6132}
6133
6134static void APIENTRY InitGetCombinerOutputParameterivNV (GLenum stage, GLenum portion, GLenum pname, GLint *params)
6135{
6136        void *extproc;
6137
6138        extproc = (void *) wglGetProcAddress("glGetCombinerOutputParameterivNV");
6139
6140        if (extproc == NULL) {
6141                _ASSERT(0);
6142                return;
6143        }
6144
6145        glGetCombinerOutputParameterivNV = extproc;
6146
6147        glGetCombinerOutputParameterivNV(stage, portion, pname, params);
6148}
6149
6150static void APIENTRY InitGetFinalCombinerInputParameterfvNV (GLenum variable, GLenum pname, GLfloat *params)
6151{
6152        void *extproc;
6153
6154        extproc = (void *) wglGetProcAddress("glGetFinalCombinerInputParameterfvNV");
6155
6156        if (extproc == NULL) {
6157                _ASSERT(0);
6158                return;
6159        }
6160
6161        glGetFinalCombinerInputParameterfvNV = extproc;
6162
6163        glGetFinalCombinerInputParameterfvNV(variable, pname, params);
6164}
6165
6166static void APIENTRY InitGetFinalCombinerInputParameterivNV (GLenum variable, GLenum pname, GLint *params)
6167{
6168        void *extproc;
6169
6170        extproc = (void *) wglGetProcAddress("glGetFinalCombinerInputParameterivNV");
6171
6172        if (extproc == NULL) {
6173                _ASSERT(0);
6174                return;
6175        }
6176
6177        glGetFinalCombinerInputParameterivNV = extproc;
6178
6179        glGetFinalCombinerInputParameterivNV(variable, pname, params);
6180}
6181
6182static void APIENTRY InitResizeBuffersMESA (void)
6183{
6184        void *extproc;
6185
6186        extproc = (void *) wglGetProcAddress("glResizeBuffersMESA");
6187
6188        if (extproc == NULL) {
6189                _ASSERT(0);
6190                return;
6191        }
6192
6193        glResizeBuffersMESA = extproc;
6194
6195        glResizeBuffersMESA();
6196}
6197
6198static void APIENTRY InitWindowPos2dMESA (GLdouble x, GLdouble y)
6199{
6200        void *extproc;
6201
6202        extproc = (void *) wglGetProcAddress("glWindowPos2dMESA");
6203
6204        if (extproc == NULL) {
6205                _ASSERT(0);
6206                return;
6207        }
6208
6209        glWindowPos2dMESA = extproc;
6210
6211        glWindowPos2dMESA(x, y);
6212}
6213
6214static void APIENTRY InitWindowPos2dvMESA (const GLdouble *v)
6215{
6216        void *extproc;
6217
6218        extproc = (void *) wglGetProcAddress("glWindowPos2dvMESA");
6219
6220        if (extproc == NULL) {
6221                _ASSERT(0);
6222                return;
6223        }
6224
6225        glWindowPos2dvMESA = extproc;
6226
6227        glWindowPos2dvMESA(v);
6228}
6229
6230static void APIENTRY InitWindowPos2fMESA (GLfloat x, GLfloat y)
6231{
6232        void *extproc;
6233
6234        extproc = (void *) wglGetProcAddress("glWindowPos2fMESA");
6235
6236        if (extproc == NULL) {
6237                _ASSERT(0);
6238                return;
6239        }
6240
6241        glWindowPos2fMESA = extproc;
6242
6243        glWindowPos2fMESA(x, y);
6244}
6245
6246static void APIENTRY InitWindowPos2fvMESA (const GLfloat *v)
6247{
6248        void *extproc;
6249
6250        extproc = (void *) wglGetProcAddress("glWindowPos2fvMESA");
6251
6252        if (extproc == NULL) {
6253                _ASSERT(0);
6254                return;
6255        }
6256
6257        glWindowPos2fvMESA = extproc;
6258
6259        glWindowPos2fvMESA(v);
6260}
6261
6262static void APIENTRY InitWindowPos2iMESA (GLint x, GLint y)
6263{
6264        void *extproc;
6265
6266        extproc = (void *) wglGetProcAddress("glWindowPos2iMESA");
6267
6268        if (extproc == NULL) {
6269                _ASSERT(0);
6270                return;
6271        }
6272
6273        glWindowPos2iMESA = extproc;
6274
6275        glWindowPos2iMESA(x, y);
6276}
6277
6278static void APIENTRY InitWindowPos2ivMESA (const GLint *v)
6279{
6280        void *extproc;
6281
6282        extproc = (void *) wglGetProcAddress("glWindowPos2ivMESA");
6283
6284        if (extproc == NULL) {
6285                _ASSERT(0);
6286                return;
6287        }
6288
6289        glWindowPos2ivMESA = extproc;
6290
6291        glWindowPos2ivMESA(v);
6292}
6293
6294static void APIENTRY InitWindowPos2sMESA (GLshort x, GLshort y)
6295{
6296        void *extproc;
6297
6298        extproc = (void *) wglGetProcAddress("glWindowPos2sMESA");
6299
6300        if (extproc == NULL) {
6301                _ASSERT(0);
6302                return;
6303        }
6304
6305        glWindowPos2sMESA = extproc;
6306
6307        glWindowPos2sMESA(x, y);
6308}
6309
6310static void APIENTRY InitWindowPos2svMESA (const GLshort *v)
6311{
6312        void *extproc;
6313
6314        extproc = (void *) wglGetProcAddress("glWindowPos2svMESA");
6315
6316        if (extproc == NULL) {
6317                _ASSERT(0);
6318                return;
6319        }
6320
6321        glWindowPos2svMESA = extproc;
6322
6323        glWindowPos2svMESA(v);
6324}
6325
6326static void APIENTRY InitWindowPos3dMESA (GLdouble x, GLdouble y, GLdouble z)
6327{
6328        void *extproc;
6329
6330        extproc = (void *) wglGetProcAddress("glWindowPos3dMESA");
6331
6332        if (extproc == NULL) {
6333                _ASSERT(0);
6334                return;
6335        }
6336
6337        glWindowPos3dMESA = extproc;
6338
6339        glWindowPos3dMESA(x, y, z);
6340}
6341
6342static void APIENTRY InitWindowPos3dvMESA (const GLdouble *v)
6343{
6344        void *extproc;
6345
6346        extproc = (void *) wglGetProcAddress("glWindowPos3dvMESA");
6347
6348        if (extproc == NULL) {
6349                _ASSERT(0);
6350                return;
6351        }
6352
6353        glWindowPos3dvMESA = extproc;
6354
6355        glWindowPos3dvMESA(v);
6356}
6357
6358static void APIENTRY InitWindowPos3fMESA (GLfloat x, GLfloat y, GLfloat z)
6359{
6360        void *extproc;
6361
6362        extproc = (void *) wglGetProcAddress("glWindowPos3fMESA");
6363
6364        if (extproc == NULL) {
6365                _ASSERT(0);
6366                return;
6367        }
6368
6369        glWindowPos3fMESA = extproc;
6370
6371        glWindowPos3fMESA(x, y, z);
6372}
6373
6374static void APIENTRY InitWindowPos3fvMESA (const GLfloat *v)
6375{
6376        void *extproc;
6377
6378        extproc = (void *) wglGetProcAddress("glWindowPos3fvMESA");
6379
6380        if (extproc == NULL) {
6381                _ASSERT(0);
6382                return;
6383        }
6384
6385        glWindowPos3fvMESA = extproc;
6386
6387        glWindowPos3fvMESA(v);
6388}
6389
6390static void APIENTRY InitWindowPos3iMESA (GLint x, GLint y, GLint z)
6391{
6392        void *extproc;
6393
6394        extproc = (void *) wglGetProcAddress("glWindowPos3iMESA");
6395
6396        if (extproc == NULL) {
6397                _ASSERT(0);
6398                return;
6399        }
6400
6401        glWindowPos3iMESA = extproc;
6402
6403        glWindowPos3iMESA(x, y, z);
6404}
6405
6406static void APIENTRY InitWindowPos3ivMESA (const GLint *v)
6407{
6408        void *extproc;
6409
6410        extproc = (void *) wglGetProcAddress("glWindowPos3ivMESA");
6411
6412        if (extproc == NULL) {
6413                _ASSERT(0);
6414                return;
6415        }
6416
6417        glWindowPos3ivMESA = extproc;
6418
6419        glWindowPos3ivMESA(v);
6420}
6421
6422static void APIENTRY InitWindowPos3sMESA (GLshort x, GLshort y, GLshort z)
6423{
6424        void *extproc;
6425
6426        extproc = (void *) wglGetProcAddress("glWindowPos3sMESA");
6427
6428        if (extproc == NULL) {
6429                _ASSERT(0);
6430                return;
6431        }
6432
6433        glWindowPos3sMESA = extproc;
6434
6435        glWindowPos3sMESA(x, y, z);
6436}
6437
6438static void APIENTRY InitWindowPos3svMESA (const GLshort *v)
6439{
6440        void *extproc;
6441
6442        extproc = (void *) wglGetProcAddress("glWindowPos3svMESA");
6443
6444        if (extproc == NULL) {
6445                _ASSERT(0);
6446                return;
6447        }
6448
6449        glWindowPos3svMESA = extproc;
6450
6451        glWindowPos3svMESA(v);
6452}
6453
6454static void APIENTRY InitWindowPos4dMESA (GLdouble x, GLdouble y, GLdouble z, GLdouble w)
6455{
6456        void *extproc;
6457
6458        extproc = (void *) wglGetProcAddress("glWindowPos4dMESA");
6459
6460        if (extproc == NULL) {
6461                _ASSERT(0);
6462                return;
6463        }
6464
6465        glWindowPos4dMESA = extproc;
6466
6467        glWindowPos4dMESA(x, y, z, w);
6468}
6469
6470static void APIENTRY InitWindowPos4dvMESA (const GLdouble *v)
6471{
6472        void *extproc;
6473
6474        extproc = (void *) wglGetProcAddress("glWindowPos4dvMESA");
6475
6476        if (extproc == NULL) {
6477                _ASSERT(0);
6478                return;
6479        }
6480
6481        glWindowPos4dvMESA = extproc;
6482
6483        glWindowPos4dvMESA(v);
6484}
6485
6486static void APIENTRY InitWindowPos4fMESA (GLfloat x, GLfloat y, GLfloat z, GLfloat w)
6487{
6488        void *extproc;
6489
6490        extproc = (void *) wglGetProcAddress("glWindowPos4fMESA");
6491
6492        if (extproc == NULL) {
6493                _ASSERT(0);
6494                return;
6495        }
6496
6497        glWindowPos4fMESA = extproc;
6498
6499        glWindowPos4fMESA(x, y, z, w);
6500}
6501
6502static void APIENTRY InitWindowPos4fvMESA (const GLfloat *v)
6503{
6504        void *extproc;
6505
6506        extproc = (void *) wglGetProcAddress("glWindowPos4fvMESA");
6507
6508        if (extproc == NULL) {
6509                _ASSERT(0);
6510                return;
6511        }
6512
6513        glWindowPos4fvMESA = extproc;
6514
6515        glWindowPos4fvMESA(v);
6516}
6517
6518static void APIENTRY InitWindowPos4iMESA (GLint x, GLint y, GLint z, GLint w)
6519{
6520        void *extproc;
6521
6522        extproc = (void *) wglGetProcAddress("glWindowPos4iMESA");
6523
6524        if (extproc == NULL) {
6525                _ASSERT(0);
6526                return;
6527        }
6528
6529        glWindowPos4iMESA = extproc;
6530
6531        glWindowPos4iMESA(x, y, z, w);
6532}
6533
6534static void APIENTRY InitWindowPos4ivMESA (const GLint *v)
6535{
6536        void *extproc;
6537
6538        extproc = (void *) wglGetProcAddress("glWindowPos4ivMESA");
6539
6540        if (extproc == NULL) {
6541                _ASSERT(0);
6542                return;
6543        }
6544
6545        glWindowPos4ivMESA = extproc;
6546
6547        glWindowPos4ivMESA(v);
6548}
6549
6550static void APIENTRY InitWindowPos4sMESA (GLshort x, GLshort y, GLshort z, GLshort w)
6551{
6552        void *extproc;
6553
6554        extproc = (void *) wglGetProcAddress("glWindowPos4sMESA");
6555
6556        if (extproc == NULL) {
6557                _ASSERT(0);
6558                return;
6559        }
6560
6561        glWindowPos4sMESA = extproc;
6562
6563        glWindowPos4sMESA(x, y, z, w);
6564}
6565
6566static void APIENTRY InitWindowPos4svMESA (const GLshort *v)
6567{
6568        void *extproc;
6569
6570        extproc = (void *) wglGetProcAddress("glWindowPos4svMESA");
6571
6572        if (extproc == NULL) {
6573                _ASSERT(0);
6574                return;
6575        }
6576
6577        glWindowPos4svMESA = extproc;
6578
6579        glWindowPos4svMESA(v);
6580}
6581
6582static void APIENTRY InitMultiModeDrawArraysIBM (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount, GLint modestride)
6583{
6584        void *extproc;
6585
6586        extproc = (void *) wglGetProcAddress("glMultiModeDrawArraysIBM");
6587
6588        if (extproc == NULL) {
6589                _ASSERT(0);
6590                return;
6591        }
6592
6593        glMultiModeDrawArraysIBM = extproc;
6594
6595        glMultiModeDrawArraysIBM(mode, first, count, primcount, modestride);
6596}
6597
6598static void APIENTRY InitMultiModeDrawElementsIBM (const GLenum *mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount, GLint modestride)
6599{
6600        void *extproc;
6601
6602        extproc = (void *) wglGetProcAddress("glMultiModeDrawElementsIBM");
6603
6604        if (extproc == NULL) {
6605                _ASSERT(0);
6606                return;
6607        }
6608
6609        glMultiModeDrawElementsIBM = extproc;
6610
6611        glMultiModeDrawElementsIBM(mode, count, type, indices, primcount, modestride);
6612}
6613
6614static void APIENTRY InitColorPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6615{
6616        void *extproc;
6617
6618        extproc = (void *) wglGetProcAddress("glColorPointerListIBM");
6619
6620        if (extproc == NULL) {
6621                _ASSERT(0);
6622                return;
6623        }
6624
6625        glColorPointerListIBM = extproc;
6626
6627        glColorPointerListIBM(size, type, stride, pointer, ptrstride);
6628}
6629
6630static void APIENTRY InitSecondaryColorPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6631{
6632        void *extproc;
6633
6634        extproc = (void *) wglGetProcAddress("glSecondaryColorPointerListIBM");
6635
6636        if (extproc == NULL) {
6637                _ASSERT(0);
6638                return;
6639        }
6640
6641        glSecondaryColorPointerListIBM = extproc;
6642
6643        glSecondaryColorPointerListIBM(size, type, stride, pointer, ptrstride);
6644}
6645
6646static void APIENTRY InitEdgeFlagPointerListIBM (GLint stride, const GLboolean* *pointer, GLint ptrstride)
6647{
6648        void *extproc;
6649
6650        extproc = (void *) wglGetProcAddress("glEdgeFlagPointerListIBM");
6651
6652        if (extproc == NULL) {
6653                _ASSERT(0);
6654                return;
6655        }
6656
6657        glEdgeFlagPointerListIBM = extproc;
6658
6659        glEdgeFlagPointerListIBM(stride, pointer, ptrstride);
6660}
6661
6662static void APIENTRY InitFogCoordPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6663{
6664        void *extproc;
6665
6666        extproc = (void *) wglGetProcAddress("glFogCoordPointerListIBM");
6667
6668        if (extproc == NULL) {
6669                _ASSERT(0);
6670                return;
6671        }
6672
6673        glFogCoordPointerListIBM = extproc;
6674
6675        glFogCoordPointerListIBM(type, stride, pointer, ptrstride);
6676}
6677
6678static void APIENTRY InitIndexPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6679{
6680        void *extproc;
6681
6682        extproc = (void *) wglGetProcAddress("glIndexPointerListIBM");
6683
6684        if (extproc == NULL) {
6685                _ASSERT(0);
6686                return;
6687        }
6688
6689        glIndexPointerListIBM = extproc;
6690
6691        glIndexPointerListIBM(type, stride, pointer, ptrstride);
6692}
6693
6694static void APIENTRY InitNormalPointerListIBM (GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6695{
6696        void *extproc;
6697
6698        extproc = (void *) wglGetProcAddress("glNormalPointerListIBM");
6699
6700        if (extproc == NULL) {
6701                _ASSERT(0);
6702                return;
6703        }
6704
6705        glNormalPointerListIBM = extproc;
6706
6707        glNormalPointerListIBM(type, stride, pointer, ptrstride);
6708}
6709
6710static void APIENTRY InitTexCoordPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6711{
6712        void *extproc;
6713
6714        extproc = (void *) wglGetProcAddress("glTexCoordPointerListIBM");
6715
6716        if (extproc == NULL) {
6717                _ASSERT(0);
6718                return;
6719        }
6720
6721        glTexCoordPointerListIBM = extproc;
6722
6723        glTexCoordPointerListIBM(size, type, stride, pointer, ptrstride);
6724}
6725
6726static void APIENTRY InitVertexPointerListIBM (GLint size, GLenum type, GLint stride, const GLvoid* *pointer, GLint ptrstride)
6727{
6728        void *extproc;
6729
6730        extproc = (void *) wglGetProcAddress("glVertexPointerListIBM");
6731
6732        if (extproc == NULL) {
6733                _ASSERT(0);
6734                return;
6735        }
6736
6737        glVertexPointerListIBM = extproc;
6738
6739        glVertexPointerListIBM(size, type, stride, pointer, ptrstride);
6740}
6741
6742static void APIENTRY InitTbufferMask3DFX (GLuint mask)
6743{
6744        void *extproc;
6745
6746        extproc = (void *) wglGetProcAddress("glTbufferMask3DFX");
6747
6748        if (extproc == NULL) {
6749                _ASSERT(0);
6750                return;
6751        }
6752
6753        glTbufferMask3DFX = extproc;
6754
6755        glTbufferMask3DFX(mask);
6756}
6757
6758static void APIENTRY InitSampleMaskEXT (GLclampf value, GLboolean invert)
6759{
6760        void *extproc;
6761
6762        extproc = (void *) wglGetProcAddress("glSampleMaskEXT");
6763
6764        if (extproc == NULL) {
6765                _ASSERT(0);
6766                return;
6767        }
6768
6769        glSampleMaskEXT = extproc;
6770
6771        glSampleMaskEXT(value, invert);
6772}
6773
6774static void APIENTRY InitSamplePatternEXT (GLenum pattern)
6775{
6776        void *extproc;
6777
6778        extproc = (void *) wglGetProcAddress("glSamplePatternEXT");
6779
6780        if (extproc == NULL) {
6781                _ASSERT(0);
6782                return;
6783        }
6784
6785        glSamplePatternEXT = extproc;
6786
6787        glSamplePatternEXT(pattern);
6788}
6789
6790static void APIENTRY InitTextureColorMaskSGIS (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha)
6791{
6792        void *extproc;
6793
6794        extproc = (void *) wglGetProcAddress("glTextureColorMaskSGIS");
6795
6796        if (extproc == NULL) {
6797                _ASSERT(0);
6798                return;
6799        }
6800
6801        glTextureColorMaskSGIS = extproc;
6802
6803        glTextureColorMaskSGIS(red, green, blue, alpha);
6804}
6805
6806static void APIENTRY InitIglooInterfaceSGIX (GLenum pname, const GLvoid *params)
6807{
6808        void *extproc;
6809
6810        extproc = (void *) wglGetProcAddress("glIglooInterfaceSGIX");
6811
6812        if (extproc == NULL) {
6813                _ASSERT(0);
6814                return;
6815        }
6816
6817        glIglooInterfaceSGIX = extproc;
6818
6819        glIglooInterfaceSGIX(pname, params);
6820}
6821
6822static void APIENTRY InitGenFencesNV (GLsizei n, GLuint *fences)
6823{
6824        void *extproc;
6825
6826        extproc = (void *) wglGetProcAddress("glGenFencesNV");
6827
6828        if (extproc == NULL) {
6829                _ASSERT(0);
6830                return;
6831        }
6832
6833        glGenFencesNV = extproc;
6834
6835        glGenFencesNV(n, fences);
6836}
6837
6838static void APIENTRY InitDeleteFencesNV (GLsizei n, const GLuint *fences)
6839{
6840        void *extproc;
6841
6842        extproc = (void *) wglGetProcAddress("glDeleteFencesNV");
6843
6844        if (extproc == NULL) {
6845                _ASSERT(0);
6846                return;
6847        }
6848
6849        glDeleteFencesNV = extproc;
6850
6851        glDeleteFencesNV(n, fences);
6852}
6853
6854static void APIENTRY InitSetFenceNV (GLuint fence, GLenum condition)
6855{
6856        void *extproc;
6857
6858        extproc = (void *) wglGetProcAddress("glSetFenceNV");
6859
6860        if (extproc == NULL) {
6861                _ASSERT(0);
6862                return;
6863        }
6864
6865        glSetFenceNV = extproc;
6866
6867        glSetFenceNV(fence, condition);
6868}
6869
6870static GLboolean APIENTRY InitTestFenceNV (GLuint fence)
6871{
6872        void *extproc;
6873
6874        extproc = (void *) wglGetProcAddress("glTestFenceNV");
6875
6876        if (extproc == NULL) {
6877                _ASSERT(0);
6878                return 0;
6879        }
6880
6881        glTestFenceNV = extproc;
6882
6883        return glTestFenceNV(fence);
6884}
6885
6886static void APIENTRY InitFinishFenceNV (GLuint fence)
6887{
6888        void *extproc;
6889
6890        extproc = (void *) wglGetProcAddress("glFinishFenceNV");
6891
6892        if (extproc == NULL) {
6893                _ASSERT(0);
6894                return;
6895        }
6896
6897        glFinishFenceNV = extproc;
6898
6899        glFinishFenceNV(fence);
6900}
6901
6902static GLboolean APIENTRY InitIsFenceNV (GLuint fence)
6903{
6904        void *extproc;
6905
6906        extproc = (void *) wglGetProcAddress("glIsFenceNV");
6907
6908        if (extproc == NULL) {
6909                _ASSERT(0);
6910                return 0;
6911        }
6912
6913        glIsFenceNV = extproc;
6914
6915        return glIsFenceNV(fence);
6916}
6917
6918static void APIENTRY InitGetFenceivNV (GLuint fence, GLenum pname, GLint *params)
6919{
6920        void *extproc;
6921
6922        extproc = (void *) wglGetProcAddress("glGetFenceivNV");
6923
6924        if (extproc == NULL) {
6925                _ASSERT(0);
6926                return;
6927        }
6928
6929        glGetFenceivNV = extproc;
6930
6931        glGetFenceivNV(fence, pname, params);
6932}
6933
6934static void APIENTRY InitMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLint uorder, GLint vorder, GLboolean packed, const GLvoid *points)
6935{
6936        void *extproc;
6937
6938        extproc = (void *) wglGetProcAddress("glMapControlPointsNV");
6939
6940        if (extproc == NULL) {
6941                _ASSERT(0);
6942                return;
6943        }
6944
6945        glMapControlPointsNV = extproc;
6946
6947        glMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, points);
6948}
6949
6950static void APIENTRY InitMapParameterivNV (GLenum target, GLenum pname, const GLint *params)
6951{
6952        void *extproc;
6953
6954        extproc = (void *) wglGetProcAddress("glMapParameterivNV");
6955
6956        if (extproc == NULL) {
6957                _ASSERT(0);
6958                return;
6959        }
6960
6961        glMapParameterivNV = extproc;
6962
6963        glMapParameterivNV(target, pname, params);
6964}
6965
6966static void APIENTRY InitMapParameterfvNV (GLenum target, GLenum pname, const GLfloat *params)
6967{
6968        void *extproc;
6969
6970        extproc = (void *) wglGetProcAddress("glMapParameterfvNV");
6971
6972        if (extproc == NULL) {
6973                _ASSERT(0);
6974                return;
6975        }
6976
6977        glMapParameterfvNV = extproc;
6978
6979        glMapParameterfvNV(target, pname, params);
6980}
6981
6982static void APIENTRY InitGetMapControlPointsNV (GLenum target, GLuint index, GLenum type, GLsizei ustride, GLsizei vstride, GLboolean packed, GLvoid *points)
6983{
6984        void *extproc;
6985
6986        extproc = (void *) wglGetProcAddress("glGetMapControlPointsNV");
6987
6988        if (extproc == NULL) {
6989                _ASSERT(0);
6990                return;
6991        }
6992
6993        glGetMapControlPointsNV = extproc;
6994
6995        glGetMapControlPointsNV(target, index, type, ustride, vstride, packed, points);
6996}
6997
6998static void APIENTRY InitGetMapParameterivNV (GLenum target, GLenum pname, GLint *params)
6999{
7000        void *extproc;
7001
7002        extproc = (void *) wglGetProcAddress("glGetMapParameterivNV");
7003
7004        if (extproc == NULL) {
7005                _ASSERT(0);
7006                return;
7007        }
7008
7009        glGetMapParameterivNV = extproc;
7010
7011        glGetMapParameterivNV(target, pname, params);
7012}
7013
7014static void APIENTRY InitGetMapParameterfvNV (GLenum target, GLenum pname, GLfloat *params)
7015{
7016        void *extproc;
7017
7018        extproc = (void *) wglGetProcAddress("glGetMapParameterfvNV");
7019
7020        if (extproc == NULL) {
7021                _ASSERT(0);
7022                return;
7023        }
7024
7025        glGetMapParameterfvNV = extproc;
7026
7027        glGetMapParameterfvNV(target, pname, params);
7028}
7029
7030static void APIENTRY InitGetMapAttribParameterivNV (GLenum target, GLuint index, GLenum pname, GLint *params)
7031{
7032        void *extproc;
7033
7034        extproc = (void *) wglGetProcAddress("glGetMapAttribParameterivNV");
7035
7036        if (extproc == NULL) {
7037                _ASSERT(0);
7038                return;
7039        }
7040
7041        glGetMapAttribParameterivNV = extproc;
7042
7043        glGetMapAttribParameterivNV(target, index, pname, params);
7044}
7045
7046static void APIENTRY InitGetMapAttribParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params)
7047{
7048        void *extproc;
7049
7050        extproc = (void *) wglGetProcAddress("glGetMapAttribParameterfvNV");
7051
7052        if (extproc == NULL) {
7053                _ASSERT(0);
7054                return;
7055        }
7056
7057        glGetMapAttribParameterfvNV = extproc;
7058
7059        glGetMapAttribParameterfvNV(target, index, pname, params);
7060}
7061
7062static void APIENTRY InitEvalMapsNV (GLenum target, GLenum mode)
7063{
7064        void *extproc;
7065
7066        extproc = (void *) wglGetProcAddress("glEvalMapsNV");
7067
7068        if (extproc == NULL) {
7069                _ASSERT(0);
7070                return;
7071        }
7072
7073        glEvalMapsNV = extproc;
7074
7075        glEvalMapsNV(target, mode);
7076}
7077
7078static void APIENTRY InitCombinerStageParameterfvNV (GLenum stage, GLenum pname, const GLfloat *params)
7079{
7080        void *extproc;
7081
7082        extproc = (void *) wglGetProcAddress("glCombinerStageParameterfvNV");
7083
7084        if (extproc == NULL) {
7085                _ASSERT(0);
7086                return;
7087        }
7088
7089        glCombinerStageParameterfvNV = extproc;
7090
7091        glCombinerStageParameterfvNV(stage, pname, params);
7092}
7093
7094static void APIENTRY InitGetCombinerStageParameterfvNV (GLenum stage, GLenum pname, GLfloat *params)
7095{
7096        void *extproc;
7097
7098        extproc = (void *) wglGetProcAddress("glGetCombinerStageParameterfvNV");
7099
7100        if (extproc == NULL) {
7101                _ASSERT(0);
7102                return;
7103        }
7104
7105        glGetCombinerStageParameterfvNV = extproc;
7106
7107        glGetCombinerStageParameterfvNV(stage, pname, params);
7108}
7109
7110static void APIENTRY InitBindProgramNV (GLenum target, GLuint id)
7111{
7112        void *extproc;
7113
7114        extproc = (void *) wglGetProcAddress("glBindProgramNV");
7115
7116        if (extproc == NULL) {
7117                _ASSERT(0);
7118                return;
7119        }
7120
7121        glBindProgramNV = extproc;
7122
7123        glBindProgramNV(target, id);
7124}
7125
7126static void APIENTRY InitDeleteProgramsNV (GLsizei n, const GLuint *ids)
7127{
7128        void *extproc;
7129
7130        extproc = (void *) wglGetProcAddress("glDeleteProgramsNV");
7131
7132        if (extproc == NULL) {
7133                _ASSERT(0);
7134                return;
7135        }
7136
7137        glDeleteProgramsNV = extproc;
7138
7139        glDeleteProgramsNV(n, ids);
7140}
7141
7142static void APIENTRY InitExecuteProgramNV (GLenum target, GLuint id, const GLfloat *params)
7143{
7144        void *extproc;
7145
7146        extproc = (void *) wglGetProcAddress("glExecuteProgramNV");
7147
7148        if (extproc == NULL) {
7149                _ASSERT(0);
7150                return;
7151        }
7152
7153        glExecuteProgramNV = extproc;
7154
7155        glExecuteProgramNV(target, id, params);
7156}
7157
7158static void APIENTRY InitGenProgramsNV (GLsizei n, GLuint *ids)
7159{
7160        void *extproc;
7161
7162        extproc = (void *) wglGetProcAddress("glGenProgramsNV");
7163
7164        if (extproc == NULL) {
7165                _ASSERT(0);
7166                return;
7167        }
7168
7169        glGenProgramsNV = extproc;
7170
7171        glGenProgramsNV(n, ids);
7172}
7173
7174static GLboolean APIENTRY InitAreProgramsResidentNV (GLsizei n, const GLuint *ids, GLboolean *residences)
7175{
7176        void *extproc;
7177
7178        extproc = (void *) wglGetProcAddress("glAreProgramsResidentNV");
7179
7180        if (extproc == NULL) {
7181                _ASSERT(0);
7182                return 0;
7183        }
7184
7185        glAreProgramsResidentNV = extproc;
7186
7187        return glAreProgramsResidentNV(n, ids, residences);
7188}
7189
7190static void APIENTRY InitRequestResidentProgramsNV (GLsizei n, const GLuint *ids)
7191{
7192        void *extproc;
7193
7194        extproc = (void *) wglGetProcAddress("glRequestResidentProgramsNV");
7195
7196        if (extproc == NULL) {
7197                _ASSERT(0);
7198                return;
7199        }
7200
7201        glRequestResidentProgramsNV = extproc;
7202
7203        glRequestResidentProgramsNV(n, ids);
7204}
7205
7206static void APIENTRY InitGetProgramParameterfvNV (GLenum target, GLuint index, GLenum pname, GLfloat *params)
7207{
7208        void *extproc;
7209
7210        extproc = (void *) wglGetProcAddress("glGetProgramParameterfvNV");
7211
7212        if (extproc == NULL) {
7213                _ASSERT(0);
7214                return;
7215        }
7216
7217        glGetProgramParameterfvNV = extproc;
7218
7219        glGetProgramParameterfvNV(target, index, pname, params);
7220}
7221
7222static void APIENTRY InitGetProgramParameterdvNV (GLenum target, GLuint index, GLenum pname, GLdouble *params)
7223{
7224        void *extproc;
7225
7226        extproc = (void *) wglGetProcAddress("glGetProgramParameterdvNV");
7227
7228        if (extproc == NULL) {
7229                _ASSERT(0);
7230                return;
7231        }
7232
7233        glGetProgramParameterdvNV = extproc;
7234
7235        glGetProgramParameterdvNV(target, index, pname, params);
7236}
7237
7238static void APIENTRY InitGetProgramivNV (GLuint id, GLenum pname, GLint *params)
7239{
7240        void *extproc;
7241
7242        extproc = (void *) wglGetProcAddress("glGetProgramivNV");
7243
7244        if (extproc == NULL) {
7245                _ASSERT(0);
7246                return;
7247        }
7248
7249        glGetProgramivNV = extproc;
7250
7251        glGetProgramivNV(id, pname, params);
7252}
7253
7254static void APIENTRY InitGetProgramStringNV (GLuint id, GLenum pname, GLubyte *program)
7255{
7256        void *extproc;
7257
7258        extproc = (void *) wglGetProcAddress("glGetProgramStringNV");
7259
7260        if (extproc == NULL) {
7261                _ASSERT(0);
7262                return;
7263        }
7264
7265        glGetProgramStringNV = extproc;
7266
7267        glGetProgramStringNV(id, pname, program);
7268}
7269
7270static void APIENTRY InitGetTrackMatrixivNV (GLenum target, GLuint address, GLenum pname, GLint *params)
7271{
7272        void *extproc;
7273
7274        extproc = (void *) wglGetProcAddress("glGetTrackMatrixivNV");
7275
7276        if (extproc == NULL) {
7277                _ASSERT(0);
7278                return;
7279        }
7280
7281        glGetTrackMatrixivNV = extproc;
7282
7283        glGetTrackMatrixivNV(target, address, pname, params);
7284}
7285
7286static void APIENTRY InitGetVertexAttribdvNV (GLuint index, GLenum pname, GLdouble *params)
7287{
7288        void *extproc;
7289
7290        extproc = (void *) wglGetProcAddress("glGetVertexAttribdvNV");
7291
7292        if (extproc == NULL) {
7293                _ASSERT(0);
7294                return;
7295        }
7296
7297        glGetVertexAttribdvNV = extproc;
7298
7299        glGetVertexAttribdvNV(index, pname, params);
7300}
7301
7302static void APIENTRY InitGetVertexAttribfvNV (GLuint index, GLenum pname, GLfloat *params)
7303{
7304        void *extproc;
7305
7306        extproc = (void *) wglGetProcAddress("glGetVertexAttribfvNV");
7307
7308        if (extproc == NULL) {
7309                _ASSERT(0);
7310                return;
7311        }
7312
7313        glGetVertexAttribfvNV = extproc;
7314
7315        glGetVertexAttribfvNV(index, pname, params);
7316}
7317
7318static void APIENTRY InitGetVertexAttribivNV (GLuint index, GLenum pname, GLint *params)
7319{
7320        void *extproc;
7321
7322        extproc = (void *) wglGetProcAddress("glGetVertexAttribivNV");
7323
7324        if (extproc == NULL) {
7325                _ASSERT(0);
7326                return;
7327        }
7328
7329        glGetVertexAttribivNV = extproc;
7330
7331        glGetVertexAttribivNV(index, pname, params);
7332}
7333
7334static void APIENTRY InitGetVertexAttribPointervNV (GLuint index, GLenum pname, GLvoid* *pointer)
7335{
7336        void *extproc;
7337
7338        extproc = (void *) wglGetProcAddress("glGetVertexAttribPointervNV");
7339
7340        if (extproc == NULL) {
7341                _ASSERT(0);
7342                return;
7343        }
7344
7345        glGetVertexAttribPointervNV = extproc;
7346
7347        glGetVertexAttribPointervNV(index, pname, pointer);
7348}
7349
7350static GLboolean APIENTRY InitIsProgramNV (GLuint id)
7351{
7352        void *extproc;
7353
7354        extproc = (void *) wglGetProcAddress("glIsProgramNV");
7355
7356        if (extproc == NULL) {
7357                _ASSERT(0);
7358                return 0;
7359        }
7360
7361        glIsProgramNV = extproc;
7362
7363        return glIsProgramNV(id);
7364}
7365
7366static void APIENTRY InitLoadProgramNV (GLenum target, GLuint id, GLsizei len, const GLubyte *program)
7367{
7368        void *extproc;
7369
7370        extproc = (void *) wglGetProcAddress("glLoadProgramNV");
7371
7372        if (extproc == NULL) {
7373                _ASSERT(0);
7374                return;
7375        }
7376
7377        glLoadProgramNV = extproc;
7378
7379        glLoadProgramNV(target, id, len, program);
7380}
7381
7382static void APIENTRY InitProgramParameter4fNV (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
7383{
7384        void *extproc;
7385
7386        extproc = (void *) wglGetProcAddress("glProgramParameter4fNV");
7387
7388        if (extproc == NULL) {
7389                _ASSERT(0);
7390                return;
7391        }
7392
7393        glProgramParameter4fNV = extproc;
7394
7395        glProgramParameter4fNV(target, index, x, y, z, w);
7396}
7397
7398static void APIENTRY InitProgramParameter4dNV (GLenum target, GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
7399{
7400        void *extproc;
7401
7402        extproc = (void *) wglGetProcAddress("glProgramParameter4dNV");
7403
7404        if (extproc == NULL) {
7405                _ASSERT(0);
7406                return;
7407        }
7408
7409        glProgramParameter4dNV = extproc;
7410
7411        glProgramParameter4dNV(target, index, x, y, z, w);
7412}
7413
7414static void APIENTRY InitProgramParameter4dvNV (GLenum target, GLuint index, const GLdouble *params)
7415{
7416        void *extproc;
7417
7418        extproc = (void *) wglGetProcAddress("glProgramParameter4dvNV");
7419
7420        if (extproc == NULL) {
7421                _ASSERT(0);
7422                return;
7423        }
7424
7425        glProgramParameter4dvNV = extproc;
7426
7427        glProgramParameter4dvNV(target, index, params);
7428}
7429
7430static void APIENTRY InitProgramParameter4fvNV (GLenum target, GLuint index, const GLfloat *params)
7431{
7432        void *extproc;
7433
7434        extproc = (void *) wglGetProcAddress("glProgramParameter4fvNV");
7435
7436        if (extproc == NULL) {
7437                _ASSERT(0);
7438                return;
7439        }
7440
7441        glProgramParameter4fvNV = extproc;
7442
7443        glProgramParameter4fvNV(target, index, params);
7444}
7445
7446static void APIENTRY InitProgramParameters4dvNV (GLenum target, GLuint index, GLuint num, const GLdouble *params)
7447{
7448        void *extproc;
7449
7450        extproc = (void *) wglGetProcAddress("glProgramParameters4dvNV");
7451
7452        if (extproc == NULL) {
7453                _ASSERT(0);
7454                return;
7455        }
7456
7457        glProgramParameters4dvNV = extproc;
7458
7459        glProgramParameters4dvNV(target, index, num, params);
7460}
7461
7462static void APIENTRY InitProgramParameters4fvNV (GLenum target, GLuint index, GLuint num, const GLfloat *params)
7463{
7464        void *extproc;
7465
7466        extproc = (void *) wglGetProcAddress("glProgramParameters4fvNV");
7467
7468        if (extproc == NULL) {
7469                _ASSERT(0);
7470                return;
7471        }
7472
7473        glProgramParameters4fvNV = extproc;
7474
7475        glProgramParameters4fvNV(target, index, num, params);
7476}
7477
7478static void APIENTRY InitTrackMatrixNV (GLenum target, GLuint address, GLenum matrix, GLenum transform)
7479{
7480        void *extproc;
7481
7482        extproc = (void *) wglGetProcAddress("glTrackMatrixNV");
7483
7484        if (extproc == NULL) {
7485                _ASSERT(0);
7486                return;
7487        }
7488
7489        glTrackMatrixNV = extproc;
7490
7491        glTrackMatrixNV(target, address, matrix, transform);
7492}
7493
7494static void APIENTRY InitVertexAttribPointerNV (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer)
7495{
7496        void *extproc;
7497
7498        extproc = (void *) wglGetProcAddress("glVertexAttribPointerNV");
7499
7500        if (extproc == NULL) {
7501                _ASSERT(0);
7502                return;
7503        }
7504
7505        glVertexAttribPointerNV = extproc;
7506
7507        glVertexAttribPointerNV(index, size, type, stride, pointer);
7508}
7509
7510static void APIENTRY InitVertexAttrib1sNV (GLuint index, GLshort x)
7511{
7512        void *extproc;
7513
7514        extproc = (void *) wglGetProcAddress("glVertexAttrib1sNV");
7515
7516        if (extproc == NULL) {
7517                _ASSERT(0);
7518                return;
7519        }
7520
7521        glVertexAttrib1sNV = extproc;
7522
7523        glVertexAttrib1sNV(index, x);
7524}
7525
7526static void APIENTRY InitVertexAttrib1fNV (GLuint index, GLfloat x)
7527{
7528        void *extproc;
7529
7530        extproc = (void *) wglGetProcAddress("glVertexAttrib1fNV");
7531
7532        if (extproc == NULL) {
7533                _ASSERT(0);
7534                return;
7535        }
7536
7537        glVertexAttrib1fNV = extproc;
7538
7539        glVertexAttrib1fNV(index, x);
7540}
7541
7542static void APIENTRY InitVertexAttrib1dNV (GLuint index, GLdouble x)
7543{
7544        void *extproc;
7545
7546        extproc = (void *) wglGetProcAddress("glVertexAttrib1dNV");
7547
7548        if (extproc == NULL) {
7549                _ASSERT(0);
7550                return;
7551        }
7552
7553        glVertexAttrib1dNV = extproc;
7554
7555        glVertexAttrib1dNV(index, x);
7556}
7557
7558static void APIENTRY InitVertexAttrib2sNV (GLuint index, GLshort x, GLshort y)
7559{
7560        void *extproc;
7561
7562        extproc = (void *) wglGetProcAddress("glVertexAttrib2sNV");
7563
7564        if (extproc == NULL) {
7565                _ASSERT(0);
7566                return;
7567        }
7568
7569        glVertexAttrib2sNV = extproc;
7570
7571        glVertexAttrib2sNV(index, x, y);
7572}
7573
7574static void APIENTRY InitVertexAttrib2fNV (GLuint index, GLfloat x, GLfloat y)
7575{
7576        void *extproc;
7577
7578        extproc = (void *) wglGetProcAddress("glVertexAttrib2fNV");
7579
7580        if (extproc == NULL) {
7581                _ASSERT(0);
7582                return;
7583        }
7584
7585        glVertexAttrib2fNV = extproc;
7586
7587        glVertexAttrib2fNV(index, x, y);
7588}
7589
7590static void APIENTRY InitVertexAttrib2dNV (GLuint index, GLdouble x, GLdouble y)
7591{
7592        void *extproc;
7593
7594        extproc = (void *) wglGetProcAddress("glVertexAttrib2dNV");
7595
7596        if (extproc == NULL) {
7597                _ASSERT(0);
7598                return;
7599        }
7600
7601        glVertexAttrib2dNV = extproc;
7602
7603        glVertexAttrib2dNV(index, x, y);
7604}
7605
7606static void APIENTRY InitVertexAttrib3sNV (GLuint index, GLshort x, GLshort y, GLshort z)
7607{
7608        void *extproc;
7609
7610        extproc = (void *) wglGetProcAddress("glVertexAttrib3sNV");
7611
7612        if (extproc == NULL) {
7613                _ASSERT(0);
7614                return;
7615        }
7616
7617        glVertexAttrib3sNV = extproc;
7618
7619        glVertexAttrib3sNV(index, x, y, z);
7620}
7621
7622static void APIENTRY InitVertexAttrib3fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z)
7623{
7624        void *extproc;
7625
7626        extproc = (void *) wglGetProcAddress("glVertexAttrib3fNV");
7627
7628        if (extproc == NULL) {
7629                _ASSERT(0);
7630                return;
7631        }
7632
7633        glVertexAttrib3fNV = extproc;
7634
7635        glVertexAttrib3fNV(index, x, y, z);
7636}
7637
7638static void APIENTRY InitVertexAttrib3dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z)
7639{
7640        void *extproc;
7641
7642        extproc = (void *) wglGetProcAddress("glVertexAttrib3dNV");
7643
7644        if (extproc == NULL) {
7645                _ASSERT(0);
7646                return;
7647        }
7648
7649        glVertexAttrib3dNV = extproc;
7650
7651        glVertexAttrib3dNV(index, x, y, z);
7652}
7653
7654static void APIENTRY InitVertexAttrib4sNV (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w)
7655{
7656        void *extproc;
7657
7658        extproc = (void *) wglGetProcAddress("glVertexAttrib4sNV");
7659
7660        if (extproc == NULL) {
7661                _ASSERT(0);
7662                return;
7663        }
7664
7665        glVertexAttrib4sNV = extproc;
7666
7667        glVertexAttrib4sNV(index, x, y, z, w);
7668}
7669
7670static void APIENTRY InitVertexAttrib4fNV (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
7671{
7672        void *extproc;
7673
7674        extproc = (void *) wglGetProcAddress("glVertexAttrib4fNV");
7675
7676        if (extproc == NULL) {
7677                _ASSERT(0);
7678                return;
7679        }
7680
7681        glVertexAttrib4fNV = extproc;
7682
7683        glVertexAttrib4fNV(index, x, y, z, w);
7684}
7685
7686static void APIENTRY InitVertexAttrib4dNV (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w)
7687{
7688        void *extproc;
7689
7690        extproc = (void *) wglGetProcAddress("glVertexAttrib4dNV");
7691
7692        if (extproc == NULL) {
7693                _ASSERT(0);
7694                return;
7695        }
7696
7697        glVertexAttrib4dNV = extproc;
7698
7699        glVertexAttrib4dNV(index, x, y, z, w);
7700}
7701
7702static void APIENTRY InitVertexAttrib4ubNV (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w)
7703{
7704        void *extproc;
7705
7706        extproc = (void *) wglGetProcAddress("glVertexAttrib4ubNV");
7707
7708        if (extproc == NULL) {
7709                _ASSERT(0);
7710                return;
7711        }
7712
7713        glVertexAttrib4ubNV = extproc;
7714
7715        glVertexAttrib4ubNV(index, x, y, z, w);
7716}
7717
7718static void APIENTRY InitVertexAttrib1svNV (GLuint index, const GLshort *v)
7719{
7720        void *extproc;
7721
7722        extproc = (void *) wglGetProcAddress("glVertexAttrib1svNV");
7723
7724        if (extproc == NULL) {
7725                _ASSERT(0);
7726                return;
7727        }
7728
7729        glVertexAttrib1svNV = extproc;
7730
7731        glVertexAttrib1svNV(index, v);
7732}
7733
7734static void APIENTRY InitVertexAttrib1fvNV (GLuint index, const GLfloat *v)
7735{
7736        void *extproc;
7737
7738        extproc = (void *) wglGetProcAddress("glVertexAttrib1fvNV");
7739
7740        if (extproc == NULL) {
7741                _ASSERT(0);
7742                return;
7743        }
7744
7745        glVertexAttrib1fvNV = extproc;
7746
7747        glVertexAttrib1fvNV(index, v);
7748}
7749
7750static void APIENTRY InitVertexAttrib1dvNV (GLuint index, const GLdouble *v)
7751{
7752        void *extproc;
7753
7754        extproc = (void *) wglGetProcAddress("glVertexAttrib1dvNV");
7755
7756        if (extproc == NULL) {
7757                _ASSERT(0);
7758                return;
7759        }
7760
7761        glVertexAttrib1dvNV = extproc;
7762
7763        glVertexAttrib1dvNV(index, v);
7764}
7765
7766static void APIENTRY InitVertexAttrib2svNV (GLuint index, const GLshort *v)
7767{
7768        void *extproc;
7769
7770        extproc = (void *) wglGetProcAddress("glVertexAttrib2svNV");
7771
7772        if (extproc == NULL) {
7773                _ASSERT(0);
7774                return;
7775        }
7776
7777        glVertexAttrib2svNV = extproc;
7778
7779        glVertexAttrib2svNV(index, v);
7780}
7781
7782static void APIENTRY InitVertexAttrib2fvNV (GLuint index, const GLfloat *v)
7783{
7784        void *extproc;
7785
7786        extproc = (void *) wglGetProcAddress("glVertexAttrib2fvNV");
7787
7788        if (extproc == NULL) {
7789                _ASSERT(0);
7790                return;
7791        }
7792
7793        glVertexAttrib2fvNV = extproc;
7794
7795        glVertexAttrib2fvNV(index, v);
7796}
7797
7798static void APIENTRY InitVertexAttrib2dvNV (GLuint index, const GLdouble *v)
7799{
7800        void *extproc;
7801
7802        extproc = (void *) wglGetProcAddress("glVertexAttrib2dvNV");
7803
7804        if (extproc == NULL) {
7805                _ASSERT(0);
7806                return;
7807        }
7808
7809        glVertexAttrib2dvNV = extproc;
7810
7811        glVertexAttrib2dvNV(index, v);
7812}
7813
7814static void APIENTRY InitVertexAttrib3svNV (GLuint index, const GLshort *v)
7815{
7816        void *extproc;
7817
7818        extproc = (void *) wglGetProcAddress("glVertexAttrib3svNV");
7819
7820        if (extproc == NULL) {
7821                _ASSERT(0);
7822                return;
7823        }
7824
7825        glVertexAttrib3svNV = extproc;
7826
7827        glVertexAttrib3svNV(index, v);
7828}
7829
7830static void APIENTRY InitVertexAttrib3fvNV (GLuint index, const GLfloat *v)
7831{
7832        void *extproc;
7833
7834        extproc = (void *) wglGetProcAddress("glVertexAttrib3fvNV");
7835
7836        if (extproc == NULL) {
7837                _ASSERT(0);
7838                return;
7839        }
7840
7841        glVertexAttrib3fvNV = extproc;
7842
7843        glVertexAttrib3fvNV(index, v);
7844}
7845
7846static void APIENTRY InitVertexAttrib3dvNV (GLuint index, const GLdouble *v)
7847{
7848        void *extproc;
7849
7850        extproc = (void *) wglGetProcAddress("glVertexAttrib3dvNV");
7851
7852        if (extproc == NULL) {
7853                _ASSERT(0);
7854                return;
7855        }
7856
7857        glVertexAttrib3dvNV = extproc;
7858
7859        glVertexAttrib3dvNV(index, v);
7860}
7861
7862static void APIENTRY InitVertexAttrib4svNV (GLuint index, const GLshort *v)
7863{
7864        void *extproc;
7865
7866        extproc = (void *) wglGetProcAddress("glVertexAttrib4svNV");
7867
7868        if (extproc == NULL) {
7869                _ASSERT(0);
7870                return;
7871        }
7872
7873        glVertexAttrib4svNV = extproc;
7874
7875        glVertexAttrib4svNV(index, v);
7876}
7877
7878static void APIENTRY InitVertexAttrib4fvNV (GLuint index, const GLfloat *v)
7879{
7880        void *extproc;
7881
7882        extproc = (void *) wglGetProcAddress("glVertexAttrib4fvNV");
7883
7884        if (extproc == NULL) {
7885                _ASSERT(0);
7886                return;
7887        }
7888
7889        glVertexAttrib4fvNV = extproc;
7890
7891        glVertexAttrib4fvNV(index, v);
7892}
7893
7894static void APIENTRY InitVertexAttrib4dvNV (GLuint index, const GLdouble *v)
7895{
7896        void *extproc;
7897
7898        extproc = (void *) wglGetProcAddress("glVertexAttrib4dvNV");
7899
7900        if (extproc == NULL) {
7901                _ASSERT(0);
7902                return;
7903        }
7904
7905        glVertexAttrib4dvNV = extproc;
7906
7907        glVertexAttrib4dvNV(index, v);
7908}
7909
7910static void APIENTRY InitVertexAttrib4ubvNV (GLuint index, const GLubyte *v)
7911{
7912        void *extproc;
7913
7914        extproc = (void *) wglGetProcAddress("glVertexAttrib4ubvNV");
7915
7916        if (extproc == NULL) {
7917                _ASSERT(0);
7918                return;
7919        }
7920
7921        glVertexAttrib4ubvNV = extproc;
7922
7923        glVertexAttrib4ubvNV(index, v);
7924}
7925
7926static void APIENTRY InitVertexAttribs1svNV (GLuint index, GLsizei n, const GLshort *v)
7927{
7928        void *extproc;
7929
7930        extproc = (void *) wglGetProcAddress("glVertexAttribs1svNV");
7931
7932        if (extproc == NULL) {
7933                _ASSERT(0);
7934                return;
7935        }
7936
7937        glVertexAttribs1svNV = extproc;
7938
7939        glVertexAttribs1svNV(index, n, v);
7940}
7941
7942static void APIENTRY InitVertexAttribs1fvNV (GLuint index, GLsizei n, const GLfloat *v)
7943{
7944        void *extproc;
7945
7946        extproc = (void *) wglGetProcAddress("glVertexAttribs1fvNV");
7947
7948        if (extproc == NULL) {
7949                _ASSERT(0);
7950                return;
7951        }
7952
7953        glVertexAttribs1fvNV = extproc;
7954
7955        glVertexAttribs1fvNV(index, n, v);
7956}
7957
7958static void APIENTRY InitVertexAttribs1dvNV (GLuint index, GLsizei n, const GLdouble *v)
7959{
7960        void *extproc;
7961
7962        extproc = (void *) wglGetProcAddress("glVertexAttribs1dvNV");
7963
7964        if (extproc == NULL) {
7965                _ASSERT(0);
7966                return;
7967        }
7968
7969        glVertexAttribs1dvNV = extproc;
7970
7971        glVertexAttribs1dvNV(index, n, v);
7972}
7973
7974static void APIENTRY InitVertexAttribs2svNV (GLuint index, GLsizei n, const GLshort *v)
7975{
7976        void *extproc;
7977
7978        extproc = (void *) wglGetProcAddress("glVertexAttribs2svNV");
7979
7980        if (extproc == NULL) {
7981                _ASSERT(0);
7982                return;
7983        }
7984
7985        glVertexAttribs2svNV = extproc;
7986
7987        glVertexAttribs2svNV(index, n, v);
7988}
7989
7990static void APIENTRY InitVertexAttribs2fvNV (GLuint index, GLsizei n, const GLfloat *v)
7991{
7992        void *extproc;
7993
7994        extproc = (void *) wglGetProcAddress("glVertexAttribs2fvNV");
7995
7996        if (extproc == NULL) {
7997                _ASSERT(0);
7998                return;
7999        }
8000
8001        glVertexAttribs2fvNV = extproc;
8002
8003        glVertexAttribs2fvNV(index, n, v);
8004}
8005
8006static void APIENTRY InitVertexAttribs2dvNV (GLuint index, GLsizei n, const GLdouble *v)
8007{
8008        void *extproc;
8009
8010        extproc = (void *) wglGetProcAddress("glVertexAttribs2dvNV");
8011
8012        if (extproc == NULL) {
8013                _ASSERT(0);
8014                return;
8015        }
8016
8017        glVertexAttribs2dvNV = extproc;
8018
8019        glVertexAttribs2dvNV(index, n, v);
8020}
8021
8022static void APIENTRY InitVertexAttribs3svNV (GLuint index, GLsizei n, const GLshort *v)
8023{
8024        void *extproc;
8025
8026        extproc = (void *) wglGetProcAddress("glVertexAttribs3svNV");
8027
8028        if (extproc == NULL) {
8029                _ASSERT(0);
8030                return;
8031        }
8032
8033        glVertexAttribs3svNV = extproc;
8034
8035        glVertexAttribs3svNV(index, n, v);
8036}
8037
8038static void APIENTRY InitVertexAttribs3fvNV (GLuint index, GLsizei n, const GLfloat *v)
8039{
8040        void *extproc;
8041
8042        extproc = (void *) wglGetProcAddress("glVertexAttribs3fvNV");
8043
8044        if (extproc == NULL) {
8045                _ASSERT(0);
8046                return;
8047        }
8048
8049        glVertexAttribs3fvNV = extproc;
8050
8051        glVertexAttribs3fvNV(index, n, v);
8052}
8053
8054static void APIENTRY InitVertexAttribs3dvNV (GLuint index, GLsizei n, const GLdouble *v)
8055{
8056        void *extproc;
8057
8058        extproc = (void *) wglGetProcAddress("glVertexAttribs3dvNV");
8059
8060        if (extproc == NULL) {
8061                _ASSERT(0);
8062                return;
8063        }
8064
8065        glVertexAttribs3dvNV = extproc;
8066
8067        glVertexAttribs3dvNV(index, n, v);
8068}
8069
8070static void APIENTRY InitVertexAttribs4svNV (GLuint index, GLsizei n, const GLshort *v)
8071{
8072        void *extproc;
8073
8074        extproc = (void *) wglGetProcAddress("glVertexAttribs4svNV");
8075
8076        if (extproc == NULL) {
8077                _ASSERT(0);
8078                return;
8079        }
8080
8081        glVertexAttribs4svNV = extproc;
8082
8083        glVertexAttribs4svNV(index, n, v);
8084}
8085
8086static void APIENTRY InitVertexAttribs4fvNV (GLuint index, GLsizei n, const GLfloat *v)
8087{
8088        void *extproc;
8089
8090        extproc = (void *) wglGetProcAddress("glVertexAttribs4fvNV");
8091
8092        if (extproc == NULL) {
8093                _ASSERT(0);
8094                return;
8095        }
8096
8097        glVertexAttribs4fvNV = extproc;
8098
8099        glVertexAttribs4fvNV(index, n, v);
8100}
8101
8102static void APIENTRY InitVertexAttribs4dvNV (GLuint index, GLsizei n, const GLdouble *v)
8103{
8104        void *extproc;
8105
8106        extproc = (void *) wglGetProcAddress("glVertexAttribs4dvNV");
8107
8108        if (extproc == NULL) {
8109                _ASSERT(0);
8110                return;
8111        }
8112
8113        glVertexAttribs4dvNV = extproc;
8114
8115        glVertexAttribs4dvNV(index, n, v);
8116}
8117
8118static void APIENTRY InitVertexAttribs4ubvNV (GLuint index, GLsizei n, const GLubyte *v)
8119{
8120        void *extproc;
8121
8122        extproc = (void *) wglGetProcAddress("glVertexAttribs4ubvNV");
8123
8124        if (extproc == NULL) {
8125                _ASSERT(0);
8126                return;
8127        }
8128
8129        glVertexAttribs4ubvNV = extproc;
8130
8131        glVertexAttribs4ubvNV(index, n, v);
8132}
8133
8134static void APIENTRY InitAddSwapHintRectWIN (GLint x, GLint y, GLsizei width, GLsizei height)
8135{
8136        void *extproc;
8137
8138        extproc = (void *) wglGetProcAddress("glAddSwapHintRectWIN");
8139
8140        if (extproc == NULL) {
8141                _ASSERT(0);
8142                return;
8143        }
8144
8145        glAddSwapHintRectWIN = extproc;
8146
8147        glAddSwapHintRectWIN(x, y, width, height);
8148}
8149
8150#ifdef _WIN32
8151
8152static HANDLE WINAPI InitCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType)
8153{
8154        void *extproc;
8155
8156        extproc = (void *) wglGetProcAddress("wglCreateBufferRegionARB");
8157
8158        if (extproc == NULL) {
8159                _ASSERT(0);
8160                return 0;
8161        }
8162
8163        wglCreateBufferRegionARB = extproc;
8164
8165        return wglCreateBufferRegionARB(hDC, iLayerPlane, uType);
8166}
8167
8168static VOID WINAPI InitDeleteBufferRegionARB (HANDLE hRegion)
8169{
8170        void *extproc;
8171
8172        extproc = (void *) wglGetProcAddress("wglDeleteBufferRegionARB");
8173
8174        if (extproc == NULL) {
8175                _ASSERT(0);
8176                return;
8177        }
8178
8179        wglDeleteBufferRegionARB = extproc;
8180
8181        wglDeleteBufferRegionARB(hRegion);
8182}
8183
8184static BOOL WINAPI InitSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height)
8185{
8186        void *extproc;
8187
8188        extproc = (void *) wglGetProcAddress("wglSaveBufferRegionARB");
8189
8190        if (extproc == NULL) {
8191                _ASSERT(0);
8192                return 0;
8193        }
8194
8195        wglSaveBufferRegionARB = extproc;
8196
8197        return wglSaveBufferRegionARB(hRegion, x, y, width, height);
8198}
8199
8200static BOOL WINAPI InitRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc)
8201{
8202        void *extproc;
8203
8204        extproc = (void *) wglGetProcAddress("wglRestoreBufferRegionARB");
8205
8206        if (extproc == NULL) {
8207                _ASSERT(0);
8208                return 0;
8209        }
8210
8211        wglRestoreBufferRegionARB = extproc;
8212
8213        return wglRestoreBufferRegionARB(hRegion, x, y, width, height, xSrc, ySrc);
8214}
8215
8216static const WINAPI InitGetExtensionsStringARB (HDC hdc)
8217{
8218        void *extproc;
8219
8220        extproc = (void *) wglGetProcAddress("wglGetExtensionsStringARB");
8221
8222        if (extproc == NULL) {
8223                _ASSERT(0);
8224                return 0;
8225        }
8226
8227        wglGetExtensionsStringARB = extproc;
8228
8229        return wglGetExtensionsStringARB(hdc);
8230}
8231
8232static BOOL WINAPI InitGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues)
8233{
8234        void *extproc;
8235
8236        extproc = (void *) wglGetProcAddress("wglGetPixelFormatAttribivARB");
8237
8238        if (extproc == NULL) {
8239                _ASSERT(0);
8240                return 0;
8241        }
8242
8243        wglGetPixelFormatAttribivARB = extproc;
8244
8245        return wglGetPixelFormatAttribivARB(hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, piValues);
8246}
8247
8248static BOOL WINAPI InitGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues)
8249{
8250        void *extproc;
8251
8252        extproc = (void *) wglGetProcAddress("wglGetPixelFormatAttribfvARB");
8253
8254        if (extproc == NULL) {
8255                _ASSERT(0);
8256                return 0;
8257        }
8258
8259        wglGetPixelFormatAttribfvARB = extproc;
8260
8261        return wglGetPixelFormatAttribfvARB(hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, pfValues);
8262}
8263
8264static BOOL WINAPI InitChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
8265{
8266        void *extproc;
8267
8268        extproc = (void *) wglGetProcAddress("wglChoosePixelFormatARB");
8269
8270        if (extproc == NULL) {
8271                _ASSERT(0);
8272                return 0;
8273        }
8274
8275        wglChoosePixelFormatARB = extproc;
8276
8277        return wglChoosePixelFormatARB(hdc, piAttribIList, pfAttribFList, nMaxFormats, piFormats, nNumFormats);
8278}
8279
8280static BOOL WINAPI InitMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc)
8281{
8282        void *extproc;
8283
8284        extproc = (void *) wglGetProcAddress("wglMakeContextCurrentARB");
8285
8286        if (extproc == NULL) {
8287                _ASSERT(0);
8288                return 0;
8289        }
8290
8291        wglMakeContextCurrentARB = extproc;
8292
8293        return wglMakeContextCurrentARB(hDrawDC, hReadDC, hglrc);
8294}
8295
8296static HDC WINAPI InitGetCurrentReadDCARB (void)
8297{
8298        void *extproc;
8299
8300        extproc = (void *) wglGetProcAddress("wglGetCurrentReadDCARB");
8301
8302        if (extproc == NULL) {
8303                _ASSERT(0);
8304                return 0;
8305        }
8306
8307        wglGetCurrentReadDCARB = extproc;
8308
8309        return wglGetCurrentReadDCARB();
8310}
8311
8312static HPBUFFERARB WINAPI InitCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList)
8313{
8314        void *extproc;
8315
8316        extproc = (void *) wglGetProcAddress("wglCreatePbufferARB");
8317
8318        if (extproc == NULL) {
8319                _ASSERT(0);
8320                return 0;
8321        }
8322
8323        wglCreatePbufferARB = extproc;
8324
8325        return wglCreatePbufferARB(hDC, iPixelFormat, iWidth, iHeight, piAttribList);
8326}
8327
8328static HDC WINAPI InitGetPbufferDCARB (HPBUFFERARB hPbuffer)
8329{
8330        void *extproc;
8331
8332        extproc = (void *) wglGetProcAddress("wglGetPbufferDCARB");
8333
8334        if (extproc == NULL) {
8335                _ASSERT(0);
8336                return 0;
8337        }
8338
8339        wglGetPbufferDCARB = extproc;
8340
8341        return wglGetPbufferDCARB(hPbuffer);
8342}
8343
8344static int WINAPI InitReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC)
8345{
8346        void *extproc;
8347
8348        extproc = (void *) wglGetProcAddress("wglReleasePbufferDCARB");
8349
8350        if (extproc == NULL) {
8351                _ASSERT(0);
8352                return 0;
8353        }
8354
8355        wglReleasePbufferDCARB = extproc;
8356
8357        return wglReleasePbufferDCARB(hPbuffer, hDC);
8358}
8359
8360static BOOL WINAPI InitDestroyPbufferARB (HPBUFFERARB hPbuffer)
8361{
8362        void *extproc;
8363
8364        extproc = (void *) wglGetProcAddress("wglDestroyPbufferARB");
8365
8366        if (extproc == NULL) {
8367                _ASSERT(0);
8368                return 0;
8369        }
8370
8371        wglDestroyPbufferARB = extproc;
8372
8373        return wglDestroyPbufferARB(hPbuffer);
8374}
8375
8376static BOOL WINAPI InitQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue)
8377{
8378        void *extproc;
8379
8380        extproc = (void *) wglGetProcAddress("wglQueryPbufferARB");
8381
8382        if (extproc == NULL) {
8383                _ASSERT(0);
8384                return 0;
8385        }
8386
8387        wglQueryPbufferARB = extproc;
8388
8389        return wglQueryPbufferARB(hPbuffer, iAttribute, piValue);
8390}
8391
8392static GLboolean WINAPI InitCreateDisplayColorTableEXT (GLushort id)
8393{
8394        void *extproc;
8395
8396        extproc = (void *) wglGetProcAddress("wglCreateDisplayColorTableEXT");
8397
8398        if (extproc == NULL) {
8399                _ASSERT(0);
8400                return 0;
8401        }
8402
8403        wglCreateDisplayColorTableEXT = extproc;
8404
8405        return wglCreateDisplayColorTableEXT(id);
8406}
8407
8408static GLboolean WINAPI InitLoadDisplayColorTableEXT (const GLushort *table, GLuint length)
8409{
8410        void *extproc;
8411
8412        extproc = (void *) wglGetProcAddress("wglLoadDisplayColorTableEXT");
8413
8414        if (extproc == NULL) {
8415                _ASSERT(0);
8416                return 0;
8417        }
8418
8419        wglLoadDisplayColorTableEXT = extproc;
8420
8421        return wglLoadDisplayColorTableEXT(table, length);
8422}
8423
8424static GLboolean WINAPI InitBindDisplayColorTableEXT (GLushort id)
8425{
8426        void *extproc;
8427
8428        extproc = (void *) wglGetProcAddress("wglBindDisplayColorTableEXT");
8429
8430        if (extproc == NULL) {
8431                _ASSERT(0);
8432                return 0;
8433        }
8434
8435        wglBindDisplayColorTableEXT = extproc;
8436
8437        return wglBindDisplayColorTableEXT(id);
8438}
8439
8440static VOID WINAPI InitDestroyDisplayColorTableEXT (GLushort id)
8441{
8442        void *extproc;
8443
8444        extproc = (void *) wglGetProcAddress("wglDestroyDisplayColorTableEXT");
8445
8446        if (extproc == NULL) {
8447                _ASSERT(0);
8448                return;
8449        }
8450
8451        wglDestroyDisplayColorTableEXT = extproc;
8452
8453        wglDestroyDisplayColorTableEXT(id);
8454}
8455
8456static const WINAPI InitGetExtensionsStringEXT (void)
8457{
8458        void *extproc;
8459
8460        extproc = (void *) wglGetProcAddress("wglGetExtensionsStringEXT");
8461
8462        if (extproc == NULL) {
8463                _ASSERT(0);
8464                return 0;
8465        }
8466
8467        wglGetExtensionsStringEXT = extproc;
8468
8469        return wglGetExtensionsStringEXT();
8470}
8471
8472static BOOL WINAPI InitMakeContextCurrentEXT (HDC hDrawDC, HDC hReadDC, HGLRC hglrc)
8473{
8474        void *extproc;
8475
8476        extproc = (void *) wglGetProcAddress("wglMakeContextCurrentEXT");
8477
8478        if (extproc == NULL) {
8479                _ASSERT(0);
8480                return 0;
8481        }
8482
8483        wglMakeContextCurrentEXT = extproc;
8484
8485        return wglMakeContextCurrentEXT(hDrawDC, hReadDC, hglrc);
8486}
8487
8488static HDC WINAPI InitGetCurrentReadDCEXT (void)
8489{
8490        void *extproc;
8491
8492        extproc = (void *) wglGetProcAddress("wglGetCurrentReadDCEXT");
8493
8494        if (extproc == NULL) {
8495                _ASSERT(0);
8496                return 0;
8497        }
8498
8499        wglGetCurrentReadDCEXT = extproc;
8500
8501        return wglGetCurrentReadDCEXT();
8502}
8503
8504static HPBUFFEREXT WINAPI InitCreatePbufferEXT (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList)
8505{
8506        void *extproc;
8507
8508        extproc = (void *) wglGetProcAddress("wglCreatePbufferEXT");
8509
8510        if (extproc == NULL) {
8511                _ASSERT(0);
8512                return 0;
8513        }
8514
8515        wglCreatePbufferEXT = extproc;
8516
8517        return wglCreatePbufferEXT(hDC, iPixelFormat, iWidth, iHeight, piAttribList);
8518}
8519
8520static HDC WINAPI InitGetPbufferDCEXT (HPBUFFEREXT hPbuffer)
8521{
8522        void *extproc;
8523
8524        extproc = (void *) wglGetProcAddress("wglGetPbufferDCEXT");
8525
8526        if (extproc == NULL) {
8527                _ASSERT(0);
8528                return 0;
8529        }
8530
8531        wglGetPbufferDCEXT = extproc;
8532
8533        return wglGetPbufferDCEXT(hPbuffer);
8534}
8535
8536static int WINAPI InitReleasePbufferDCEXT (HPBUFFEREXT hPbuffer, HDC hDC)
8537{
8538        void *extproc;
8539
8540        extproc = (void *) wglGetProcAddress("wglReleasePbufferDCEXT");
8541
8542        if (extproc == NULL) {
8543                _ASSERT(0);
8544                return 0;
8545        }
8546
8547        wglReleasePbufferDCEXT = extproc;
8548
8549        return wglReleasePbufferDCEXT(hPbuffer, hDC);
8550}
8551
8552static BOOL WINAPI InitDestroyPbufferEXT (HPBUFFEREXT hPbuffer)
8553{
8554        void *extproc;
8555
8556        extproc = (void *) wglGetProcAddress("wglDestroyPbufferEXT");
8557
8558        if (extproc == NULL) {
8559                _ASSERT(0);
8560                return 0;
8561        }
8562
8563        wglDestroyPbufferEXT = extproc;
8564
8565        return wglDestroyPbufferEXT(hPbuffer);
8566}
8567
8568static BOOL WINAPI InitQueryPbufferEXT (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue)
8569{
8570        void *extproc;
8571
8572        extproc = (void *) wglGetProcAddress("wglQueryPbufferEXT");
8573
8574        if (extproc == NULL) {
8575                _ASSERT(0);
8576                return 0;
8577        }
8578
8579        wglQueryPbufferEXT = extproc;
8580
8581        return wglQueryPbufferEXT(hPbuffer, iAttribute, piValue);
8582}
8583
8584static BOOL WINAPI InitGetPixelFormatAttribivEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues)
8585{
8586        void *extproc;
8587
8588        extproc = (void *) wglGetProcAddress("wglGetPixelFormatAttribivEXT");
8589
8590        if (extproc == NULL) {
8591                _ASSERT(0);
8592                return 0;
8593        }
8594
8595        wglGetPixelFormatAttribivEXT = extproc;
8596
8597        return wglGetPixelFormatAttribivEXT(hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, piValues);
8598}
8599
8600static BOOL WINAPI InitGetPixelFormatAttribfvEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues)
8601{
8602        void *extproc;
8603
8604        extproc = (void *) wglGetProcAddress("wglGetPixelFormatAttribfvEXT");
8605
8606        if (extproc == NULL) {
8607                _ASSERT(0);
8608                return 0;
8609        }
8610
8611        wglGetPixelFormatAttribfvEXT = extproc;
8612
8613        return wglGetPixelFormatAttribfvEXT(hdc, iPixelFormat, iLayerPlane, nAttributes, piAttributes, pfValues);
8614}
8615
8616static BOOL WINAPI InitChoosePixelFormatEXT (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
8617{
8618        void *extproc;
8619
8620        extproc = (void *) wglGetProcAddress("wglChoosePixelFormatEXT");
8621
8622        if (extproc == NULL) {
8623                _ASSERT(0);
8624                return 0;
8625        }
8626
8627        wglChoosePixelFormatEXT = extproc;
8628
8629        return wglChoosePixelFormatEXT(hdc, piAttribIList, pfAttribFList, nMaxFormats, piFormats, nNumFormats);
8630}
8631
8632static BOOL WINAPI InitSwapIntervalEXT (int interval)
8633{
8634        void *extproc;
8635
8636        extproc = (void *) wglGetProcAddress("wglSwapIntervalEXT");
8637
8638        if (extproc == NULL) {
8639                _ASSERT(0);
8640                return 0;
8641        }
8642
8643        wglSwapIntervalEXT = extproc;
8644
8645        return wglSwapIntervalEXT(interval);
8646}
8647
8648static int WINAPI InitGetSwapIntervalEXT (void)
8649{
8650        void *extproc;
8651
8652        extproc = (void *) wglGetProcAddress("wglGetSwapIntervalEXT");
8653
8654        if (extproc == NULL) {
8655                _ASSERT(0);
8656                return 0;
8657        }
8658
8659        wglGetSwapIntervalEXT = extproc;
8660
8661        return wglGetSwapIntervalEXT();
8662}
8663
8664#endif /* _WIN32 */
8665
8666// BEGIN OGRE CHANGES
8667static void APIENTRY InitBindBufferARB (GLenum a, GLuint b)
8668{
8669        void *extproc;
8670
8671        extproc = (void *) wglGetProcAddress("glBindBufferARB");
8672
8673        if (extproc == NULL) {
8674                _ASSERT(0);
8675                return;
8676        }
8677
8678        glBindBufferARB = extproc;
8679
8680        glBindBufferARB(a, b);
8681}
8682static void APIENTRY InitDeleteBuffersARB (GLsizei a, const GLuint * b)
8683{
8684        void *extproc;
8685
8686        extproc = (void *) wglGetProcAddress("glDeleteBuffersARB");
8687
8688        if (extproc == NULL) {
8689                _ASSERT(0);
8690                return;
8691        }
8692
8693        glDeleteBuffersARB = extproc;
8694
8695        glDeleteBuffersARB(a, b);
8696}
8697static void APIENTRY InitGenBuffersARB (GLsizei a, GLuint * b)
8698{
8699        void *extproc;
8700
8701        extproc = (void *) wglGetProcAddress("glGenBuffersARB");
8702
8703        if (extproc == NULL) {
8704                _ASSERT(0);
8705                return;
8706        }
8707
8708        glGenBuffersARB = extproc;
8709
8710        glGenBuffersARB(a, b);
8711}
8712static GLboolean APIENTRY InitIsBufferARB (GLuint a)
8713{
8714        void *extproc;
8715
8716        extproc = (void *) wglGetProcAddress("glIsBufferARB");
8717
8718        if (extproc == NULL) {
8719                _ASSERT(0);
8720                return GL_FALSE;
8721        }
8722
8723        glIsBufferARB = extproc;
8724
8725        return glIsBufferARB(a);
8726}
8727static void APIENTRY InitBufferDataARB (GLenum a, GLsizeiptrARB b, const GLvoid *c, GLenum d)
8728{
8729        void *extproc;
8730
8731        extproc = (void *) wglGetProcAddress("glBufferDataARB");
8732
8733        if (extproc == NULL) {
8734                _ASSERT(0);
8735                return;
8736        }
8737
8738        glBufferDataARB = extproc;
8739
8740        glBufferDataARB(a, b, c, d);
8741}
8742       
8743static void APIENTRY InitBufferSubDataARB (GLenum a, GLintptrARB b, GLsizeiptrARB c, const GLvoid *d)
8744{
8745        void *extproc;
8746
8747        extproc = (void *) wglGetProcAddress("glBufferSubDataARB");
8748
8749        if (extproc == NULL) {
8750                _ASSERT(0);
8751                return;
8752        }
8753
8754        glBufferSubDataARB = extproc;
8755
8756        glBufferSubDataARB(a, b, c, d);
8757}
8758       
8759static void APIENTRY InitGetBufferSubDataARB (GLenum a, GLintptrARB b, GLsizeiptrARB c, GLvoid *d)
8760{
8761        void *extproc;
8762
8763        extproc = (void *) wglGetProcAddress("glGetBufferSubDataARB");
8764
8765        if (extproc == NULL) {
8766                _ASSERT(0);
8767                return;
8768        }
8769
8770        glGetBufferSubDataARB = extproc;
8771
8772        glGetBufferSubDataARB(a, b, c, d);
8773}
8774static GLvoid* APIENTRY InitMapBufferARB (GLenum a, GLenum b)
8775{
8776        void *extproc;
8777
8778        extproc = (void *) wglGetProcAddress("glMapBufferARB");
8779
8780        if (extproc == NULL) {
8781                _ASSERT(0);
8782                return NULL;
8783        }
8784
8785        glMapBufferARB = extproc;
8786
8787        return glMapBufferARB(a, b);
8788}
8789static GLboolean APIENTRY InitUnmapBufferARB (GLenum a)
8790{
8791        void *extproc;
8792
8793        extproc = (void *) wglGetProcAddress("glUnmapBufferARB");
8794
8795        if (extproc == NULL) {
8796                _ASSERT(0);
8797                return GL_FALSE;
8798        }
8799
8800        glUnmapBufferARB = extproc;
8801
8802        return glUnmapBufferARB(a);
8803}
8804static void APIENTRY InitGetBufferParameterivARB (GLenum a, GLenum b, GLint *c)
8805{
8806        void *extproc;
8807
8808        extproc = (void *) wglGetProcAddress("glGetBufferParameterivARB");
8809
8810        if (extproc == NULL) {
8811                _ASSERT(0);
8812                return;
8813        }
8814
8815        glGetBufferParameterivARB = extproc;
8816
8817        glGetBufferParameterivARB(a, b, c);
8818}
8819
8820static void APIENTRY InitGetBufferPointervARB (GLenum a, GLenum b, GLvoid* *c)
8821{
8822        void *extproc;
8823
8824        extproc = (void *) wglGetProcAddress("glGetBufferPointervARB");
8825
8826        if (extproc == NULL) {
8827                _ASSERT(0);
8828                return;
8829        }
8830
8831        glGetBufferPointervARB = extproc;
8832
8833        glGetBufferPointervARB(a, b, c);
8834}
8835
8836void APIENTRY InitProgramStringARB (GLenum a, GLenum b, GLsizei c, const GLvoid *d)
8837{
8838        void *extproc;
8839
8840        extproc = (void *) wglGetProcAddress("glProgramStringARB");
8841
8842        if (extproc == NULL) {
8843                _ASSERT(0);
8844                return;
8845        }
8846
8847        glProgramStringARB = extproc;
8848
8849        glProgramStringARB(a, b, c, d);
8850}
8851
8852void APIENTRY InitBindProgramARB (GLenum a, GLuint b)
8853{
8854        void *extproc;
8855
8856        extproc = (void *) wglGetProcAddress("glBindProgramARB");
8857
8858        if (extproc == NULL) {
8859                _ASSERT(0);
8860                return;
8861        }
8862
8863        glBindProgramARB = extproc;
8864
8865        glBindProgramARB(a, b);
8866}
8867void APIENTRY InitDeleteProgramsARB (GLsizei a, const GLuint * b)
8868{
8869        void *extproc;
8870
8871        extproc = (void *) wglGetProcAddress("glDeleteProgramsARB");
8872
8873        if (extproc == NULL) {
8874                _ASSERT(0);
8875                return;
8876        }
8877
8878        glDeleteProgramsARB = extproc;
8879
8880        glDeleteProgramsARB(a, b);
8881}
8882void APIENTRY InitGenProgramsARB (GLsizei a, GLuint *b)
8883{
8884        void *extproc;
8885
8886        extproc = (void *) wglGetProcAddress("glGenProgramsARB");
8887
8888        if (extproc == NULL) {
8889                _ASSERT(0);
8890                return;
8891        }
8892
8893        glGenProgramsARB = extproc;
8894
8895        glGenProgramsARB(a, b);
8896}
8897void APIENTRY InitProgramLocalParameter4fvARB (GLenum a, GLuint b, const GLfloat *c)
8898{
8899        void *extproc;
8900
8901        extproc = (void *) wglGetProcAddress("glProgramLocalParameter4fvARB");
8902
8903        if (extproc == NULL) {
8904                _ASSERT(0);
8905                return;
8906        }
8907
8908        glProgramLocalParameter4fvARB = extproc;
8909
8910        glProgramLocalParameter4fvARB(a, b, c);
8911}
8912
8913void APIENTRY InitGetProgramivARB (GLenum a, GLenum b, GLint *c)
8914{
8915        void *extproc;
8916
8917        extproc = (void *) wglGetProcAddress("glGetProgramivARB");
8918
8919        if (extproc == NULL) {
8920                _ASSERT(0);
8921                return;
8922        }
8923
8924        glGetProgramivARB = extproc;
8925
8926        glGetProgramivARB(a, b, c);
8927}
8928// END OGRE CHANGES
8929
8930_GLextensionProcs _extensionProcs = {
8931        InitBlendColor,
8932        InitBlendEquation,
8933        InitDrawRangeElements,
8934        InitColorTable,
8935        InitColorTableParameterfv,
8936        InitColorTableParameteriv,
8937        InitCopyColorTable,
8938        InitGetColorTable,
8939        InitGetColorTableParameterfv,
8940        InitGetColorTableParameteriv,
8941        InitColorSubTable,
8942        InitCopyColorSubTable,
8943        InitConvolutionFilter1D,
8944        InitConvolutionFilter2D,
8945        InitConvolutionParameterf,
8946        InitConvolutionParameterfv,
8947        InitConvolutionParameteri,
8948        InitConvolutionParameteriv,
8949        InitCopyConvolutionFilter1D,
8950        InitCopyConvolutionFilter2D,
8951        InitGetConvolutionFilter,
8952        InitGetConvolutionParameterfv,
8953        InitGetConvolutionParameteriv,
8954        InitGetSeparableFilter,
8955        InitSeparableFilter2D,
8956        InitGetHistogram,
8957        InitGetHistogramParameterfv,
8958        InitGetHistogramParameteriv,
8959        InitGetMinmax,
8960        InitGetMinmaxParameterfv,
8961        InitGetMinmaxParameteriv,
8962        InitHistogram,
8963        InitMinmax,
8964        InitResetHistogram,
8965        InitResetMinmax,
8966        InitTexImage3D,
8967        InitTexSubImage3D,
8968        InitCopyTexSubImage3D,
8969        InitActiveTextureARB,
8970        InitClientActiveTextureARB,
8971        InitMultiTexCoord1dARB,
8972        InitMultiTexCoord1dvARB,
8973        InitMultiTexCoord1fARB,
8974        InitMultiTexCoord1fvARB,
8975        InitMultiTexCoord1iARB,
8976        InitMultiTexCoord1ivARB,
8977        InitMultiTexCoord1sARB,
8978        InitMultiTexCoord1svARB,
8979        InitMultiTexCoord2dARB,
8980        InitMultiTexCoord2dvARB,
8981        InitMultiTexCoord2fARB,
8982        InitMultiTexCoord2fvARB,
8983        InitMultiTexCoord2iARB,
8984        InitMultiTexCoord2ivARB,
8985        InitMultiTexCoord2sARB,
8986        InitMultiTexCoord2svARB,
8987        InitMultiTexCoord3dARB,
8988        InitMultiTexCoord3dvARB,
8989        InitMultiTexCoord3fARB,
8990        InitMultiTexCoord3fvARB,
8991        InitMultiTexCoord3iARB,
8992        InitMultiTexCoord3ivARB,
8993        InitMultiTexCoord3sARB,
8994        InitMultiTexCoord3svARB,
8995        InitMultiTexCoord4dARB,
8996        InitMultiTexCoord4dvARB,
8997        InitMultiTexCoord4fARB,
8998        InitMultiTexCoord4fvARB,
8999        InitMultiTexCoord4iARB,
9000        InitMultiTexCoord4ivARB,
9001        InitMultiTexCoord4sARB,
9002        InitMultiTexCoord4svARB,
9003        InitLoadTransposeMatrixfARB,
9004        InitLoadTransposeMatrixdARB,
9005        InitMultTransposeMatrixfARB,
9006        InitMultTransposeMatrixdARB,
9007        InitSampleCoverageARB,
9008        InitCompressedTexImage3DARB,
9009        InitCompressedTexImage2DARB,
9010        InitCompressedTexImage1DARB,
9011        InitCompressedTexSubImage3DARB,
9012        InitCompressedTexSubImage2DARB,
9013        InitCompressedTexSubImage1DARB,
9014        InitGetCompressedTexImageARB,
9015        InitWeightbvARB,
9016        InitWeightsvARB,
9017        InitWeightivARB,
9018        InitWeightfvARB,
9019        InitWeightdvARB,
9020        InitWeightubvARB,
9021        InitWeightusvARB,
9022        InitWeightuivARB,
9023        InitWeightPointerARB,
9024        InitVertexBlendARB,
9025        InitCurrentPaletteMatrixARB,
9026        InitMatrixIndexubvARB,
9027        InitMatrixIndexusvARB,
9028        InitMatrixIndexuivARB,
9029        InitMatrixIndexPointerARB,
9030        InitBlendColorEXT,
9031        InitPolygonOffsetEXT,
9032        InitTexImage3DEXT,
9033        InitTexSubImage3DEXT,
9034        InitGetTexFilterFuncSGIS,
9035        InitTexFilterFuncSGIS,
9036        InitTexSubImage1DEXT,
9037        InitTexSubImage2DEXT,
9038        InitCopyTexImage1DEXT,
9039        InitCopyTexImage2DEXT,
9040        InitCopyTexSubImage1DEXT,
9041        InitCopyTexSubImage2DEXT,
9042        InitCopyTexSubImage3DEXT,
9043        InitGetHistogramEXT,
9044        InitGetHistogramParameterfvEXT,
9045        InitGetHistogramParameterivEXT,
9046        InitGetMinmaxEXT,
9047        InitGetMinmaxParameterfvEXT,
9048        InitGetMinmaxParameterivEXT,
9049        InitHistogramEXT,
9050        InitMinmaxEXT,
9051        InitResetHistogramEXT,
9052        InitResetMinmaxEXT,
9053        InitConvolutionFilter1DEXT,
9054        InitConvolutionFilter2DEXT,
9055        InitConvolutionParameterfEXT,
9056        InitConvolutionParameterfvEXT,
9057        InitConvolutionParameteriEXT,
9058        InitConvolutionParameterivEXT,
9059        InitCopyConvolutionFilter1DEXT,
9060        InitCopyConvolutionFilter2DEXT,
9061        InitGetConvolutionFilterEXT,
9062        InitGetConvolutionParameterfvEXT,
9063        InitGetConvolutionParameterivEXT,
9064        InitGetSeparableFilterEXT,
9065        InitSeparableFilter2DEXT,
9066        InitColorTableSGI,
9067        InitColorTableParameterfvSGI,
9068        InitColorTableParameterivSGI,
9069        InitCopyColorTableSGI,
9070        InitGetColorTableSGI,
9071        InitGetColorTableParameterfvSGI,
9072        InitGetColorTableParameterivSGI,
9073        InitPixelTexGenSGIX,
9074        InitPixelTexGenParameteriSGIS,
9075        InitPixelTexGenParameterivSGIS,
9076        InitPixelTexGenParameterfSGIS,
9077        InitPixelTexGenParameterfvSGIS,
9078        InitGetPixelTexGenParameterivSGIS,
9079        InitGetPixelTexGenParameterfvSGIS,
9080        InitTexImage4DSGIS,
9081        InitTexSubImage4DSGIS,
9082        InitAreTexturesResidentEXT,
9083        InitBindTextureEXT,
9084        InitDeleteTexturesEXT,
9085        InitGenTexturesEXT,
9086        InitIsTextureEXT,
9087        InitPrioritizeTexturesEXT,
9088        InitDetailTexFuncSGIS,
9089        InitGetDetailTexFuncSGIS,
9090        InitSharpenTexFuncSGIS,
9091        InitGetSharpenTexFuncSGIS,
9092        InitSampleMaskSGIS,
9093        InitSamplePatternSGIS,
9094        InitArrayElementEXT,
9095        InitColorPointerEXT,
9096        InitDrawArraysEXT,
9097        InitEdgeFlagPointerEXT,
9098        InitGetPointervEXT,
9099        InitIndexPointerEXT,
9100        InitNormalPointerEXT,
9101        InitTexCoordPointerEXT,
9102        InitVertexPointerEXT,
9103        InitBlendEquationEXT,
9104        InitSpriteParameterfSGIX,
9105        InitSpriteParameterfvSGIX,
9106        InitSpriteParameteriSGIX,
9107        InitSpriteParameterivSGIX,
9108        InitPointParameterfARB,
9109        InitPointParameterfvARB,
9110        InitPointParameterfEXT,
9111        InitPointParameterfvEXT,
9112        InitPointParameterfSGIS,
9113        InitPointParameterfvSGIS,
9114        InitGetInstrumentsSGIX,
9115        InitInstrumentsBufferSGIX,
9116        InitPollInstrumentsSGIX,
9117        InitReadInstrumentsSGIX,
9118        InitStartInstrumentsSGIX,
9119        InitStopInstrumentsSGIX,
9120        InitFrameZoomSGIX,
9121        InitTagSampleBufferSGIX,
9122        InitDeformationMap3dSGIX,
9123        InitDeformationMap3fSGIX,
9124        InitDeformSGIX,
9125        InitLoadIdentityDeformationMapSGIX,
9126        InitReferencePlaneSGIX,
9127        InitFlushRasterSGIX,
9128        InitFogFuncSGIS,
9129        InitGetFogFuncSGIS,
9130        InitImageTransformParameteriHP,
9131        InitImageTransformParameterfHP,
9132        InitImageTransformParameterivHP,
9133        InitImageTransformParameterfvHP,
9134        InitGetImageTransformParameterivHP,
9135        InitGetImageTransformParameterfvHP,
9136        InitColorSubTableEXT,
9137        InitCopyColorSubTableEXT,
9138        InitHintPGI,
9139        InitColorTableEXT,
9140        InitGetColorTableEXT,
9141        InitGetColorTableParameterivEXT,
9142        InitGetColorTableParameterfvEXT,
9143        InitGetListParameterfvSGIX,
9144        InitGetListParameterivSGIX,
9145        InitListParameterfSGIX,
9146        InitListParameterfvSGIX,
9147        InitListParameteriSGIX,
9148        InitListParameterivSGIX,
9149        InitIndexMaterialEXT,
9150        InitIndexFuncEXT,
9151        InitLockArraysEXT,
9152        InitUnlockArraysEXT,
9153        InitCullParameterdvEXT,
9154        InitCullParameterfvEXT,
9155        InitFragmentColorMaterialSGIX,
9156        InitFragmentLightfSGIX,
9157        InitFragmentLightfvSGIX,
9158        InitFragmentLightiSGIX,
9159        InitFragmentLightivSGIX,
9160        InitFragmentLightModelfSGIX,
9161        InitFragmentLightModelfvSGIX,
9162        InitFragmentLightModeliSGIX,
9163        InitFragmentLightModelivSGIX,
9164        InitFragmentMaterialfSGIX,
9165        InitFragmentMaterialfvSGIX,
9166        InitFragmentMaterialiSGIX,
9167        InitFragmentMaterialivSGIX,
9168        InitGetFragmentLightfvSGIX,
9169        InitGetFragmentLightivSGIX,
9170        InitGetFragmentMaterialfvSGIX,
9171        InitGetFragmentMaterialivSGIX,
9172        InitLightEnviSGIX,
9173        InitDrawRangeElementsEXT,
9174        InitApplyTextureEXT,
9175        InitTextureLightEXT,
9176        InitTextureMaterialEXT,
9177        InitAsyncMarkerSGIX,
9178        InitFinishAsyncSGIX,
9179        InitPollAsyncSGIX,
9180        InitGenAsyncMarkersSGIX,
9181        InitDeleteAsyncMarkersSGIX,
9182        InitIsAsyncMarkerSGIX,
9183        InitVertexPointervINTEL,
9184        InitNormalPointervINTEL,
9185        InitColorPointervINTEL,
9186        InitTexCoordPointervINTEL,
9187        InitPixelTransformParameteriEXT,
9188        InitPixelTransformParameterfEXT,
9189        InitPixelTransformParameterivEXT,
9190        InitPixelTransformParameterfvEXT,
9191        InitSecondaryColor3bEXT,
9192        InitSecondaryColor3bvEXT,
9193        InitSecondaryColor3dEXT,
9194        InitSecondaryColor3dvEXT,
9195        InitSecondaryColor3fEXT,
9196        InitSecondaryColor3fvEXT,
9197        InitSecondaryColor3iEXT,
9198        InitSecondaryColor3ivEXT,
9199        InitSecondaryColor3sEXT,
9200        InitSecondaryColor3svEXT,
9201        InitSecondaryColor3ubEXT,
9202        InitSecondaryColor3ubvEXT,
9203        InitSecondaryColor3uiEXT,
9204        InitSecondaryColor3uivEXT,
9205        InitSecondaryColor3usEXT,
9206        InitSecondaryColor3usvEXT,
9207        InitSecondaryColorPointerEXT,
9208        InitTextureNormalEXT,
9209        InitMultiDrawArraysEXT,
9210        InitMultiDrawElementsEXT,
9211        InitFogCoordfEXT,
9212        InitFogCoordfvEXT,
9213        InitFogCoorddEXT,
9214        InitFogCoorddvEXT,
9215        InitFogCoordPointerEXT,
9216        InitTangent3bEXT,
9217        InitTangent3bvEXT,
9218        InitTangent3dEXT,
9219        InitTangent3dvEXT,
9220        InitTangent3fEXT,
9221        InitTangent3fvEXT,
9222        InitTangent3iEXT,
9223        InitTangent3ivEXT,
9224        InitTangent3sEXT,
9225        InitTangent3svEXT,
9226        InitBinormal3bEXT,
9227        InitBinormal3bvEXT,
9228        InitBinormal3dEXT,
9229        InitBinormal3dvEXT,
9230        InitBinormal3fEXT,
9231        InitBinormal3fvEXT,
9232        InitBinormal3iEXT,
9233        InitBinormal3ivEXT,
9234        InitBinormal3sEXT,
9235        InitBinormal3svEXT,
9236        InitTangentPointerEXT,
9237        InitBinormalPointerEXT,
9238        InitFinishTextureSUNX,
9239        InitGlobalAlphaFactorbSUN,
9240        InitGlobalAlphaFactorsSUN,
9241        InitGlobalAlphaFactoriSUN,
9242        InitGlobalAlphaFactorfSUN,
9243        InitGlobalAlphaFactordSUN,
9244        InitGlobalAlphaFactorubSUN,
9245        InitGlobalAlphaFactorusSUN,
9246        InitGlobalAlphaFactoruiSUN,
9247        InitReplacementCodeuiSUN,
9248        InitReplacementCodeusSUN,
9249        InitReplacementCodeubSUN,
9250        InitReplacementCodeuivSUN,
9251        InitReplacementCodeusvSUN,
9252        InitReplacementCodeubvSUN,
9253        InitReplacementCodePointerSUN,
9254        InitColor4ubVertex2fSUN,
9255        InitColor4ubVertex2fvSUN,
9256        InitColor4ubVertex3fSUN,
9257        InitColor4ubVertex3fvSUN,
9258        InitColor3fVertex3fSUN,
9259        InitColor3fVertex3fvSUN,
9260        InitNormal3fVertex3fSUN,
9261        InitNormal3fVertex3fvSUN,
9262        InitColor4fNormal3fVertex3fSUN,
9263        InitColor4fNormal3fVertex3fvSUN,
9264        InitTexCoord2fVertex3fSUN,
9265        InitTexCoord2fVertex3fvSUN,
9266        InitTexCoord4fVertex4fSUN,
9267        InitTexCoord4fVertex4fvSUN,
9268        InitTexCoord2fColor4ubVertex3fSUN,
9269        InitTexCoord2fColor4ubVertex3fvSUN,
9270        InitTexCoord2fColor3fVertex3fSUN,
9271        InitTexCoord2fColor3fVertex3fvSUN,
9272        InitTexCoord2fNormal3fVertex3fSUN,
9273        InitTexCoord2fNormal3fVertex3fvSUN,
9274        InitTexCoord2fColor4fNormal3fVertex3fSUN,
9275        InitTexCoord2fColor4fNormal3fVertex3fvSUN,
9276        InitTexCoord4fColor4fNormal3fVertex4fSUN,
9277        InitTexCoord4fColor4fNormal3fVertex4fvSUN,
9278        InitReplacementCodeuiVertex3fSUN,
9279        InitReplacementCodeuiVertex3fvSUN,
9280        InitReplacementCodeuiColor4ubVertex3fSUN,
9281        InitReplacementCodeuiColor4ubVertex3fvSUN,
9282        InitReplacementCodeuiColor3fVertex3fSUN,
9283        InitReplacementCodeuiColor3fVertex3fvSUN,
9284        InitReplacementCodeuiNormal3fVertex3fSUN,
9285        InitReplacementCodeuiNormal3fVertex3fvSUN,
9286        InitReplacementCodeuiColor4fNormal3fVertex3fSUN,
9287        InitReplacementCodeuiColor4fNormal3fVertex3fvSUN,
9288        InitReplacementCodeuiTexCoord2fVertex3fSUN,
9289        InitReplacementCodeuiTexCoord2fVertex3fvSUN,
9290        InitReplacementCodeuiTexCoord2fNormal3fVertex3fSUN,
9291        InitReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN,
9292        InitReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN,
9293        InitReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN,
9294        InitBlendFuncSeparateEXT,
9295        InitBlendFuncSeparateINGR,
9296        InitVertexWeightfEXT,
9297        InitVertexWeightfvEXT,
9298        InitVertexWeightPointerEXT,
9299        InitFlushVertexArrayRangeNV,
9300        InitVertexArrayRangeNV,
9301        InitCombinerParameterfvNV,
9302        InitCombinerParameterfNV,
9303        InitCombinerParameterivNV,
9304        InitCombinerParameteriNV,
9305        InitCombinerInputNV,
9306        InitCombinerOutputNV,
9307        InitFinalCombinerInputNV,
9308        InitGetCombinerInputParameterfvNV,
9309        InitGetCombinerInputParameterivNV,
9310        InitGetCombinerOutputParameterfvNV,
9311        InitGetCombinerOutputParameterivNV,
9312        InitGetFinalCombinerInputParameterfvNV,
9313        InitGetFinalCombinerInputParameterivNV,
9314        InitResizeBuffersMESA,
9315        InitWindowPos2dMESA,
9316        InitWindowPos2dvMESA,
9317        InitWindowPos2fMESA,
9318        InitWindowPos2fvMESA,
9319        InitWindowPos2iMESA,
9320        InitWindowPos2ivMESA,
9321        InitWindowPos2sMESA,
9322        InitWindowPos2svMESA,
9323        InitWindowPos3dMESA,
9324        InitWindowPos3dvMESA,
9325        InitWindowPos3fMESA,
9326        InitWindowPos3fvMESA,
9327        InitWindowPos3iMESA,
9328        InitWindowPos3ivMESA,
9329        InitWindowPos3sMESA,
9330        InitWindowPos3svMESA,
9331        InitWindowPos4dMESA,
9332        InitWindowPos4dvMESA,
9333        InitWindowPos4fMESA,
9334        InitWindowPos4fvMESA,
9335        InitWindowPos4iMESA,
9336        InitWindowPos4ivMESA,
9337        InitWindowPos4sMESA,
9338        InitWindowPos4svMESA,
9339        InitMultiModeDrawArraysIBM,
9340        InitMultiModeDrawElementsIBM,
9341        InitColorPointerListIBM,
9342        InitSecondaryColorPointerListIBM,
9343        InitEdgeFlagPointerListIBM,
9344        InitFogCoordPointerListIBM,
9345        InitIndexPointerListIBM,
9346        InitNormalPointerListIBM,
9347        InitTexCoordPointerListIBM,
9348        InitVertexPointerListIBM,
9349        InitTbufferMask3DFX,
9350        InitSampleMaskEXT,
9351        InitSamplePatternEXT,
9352        InitTextureColorMaskSGIS,
9353        InitIglooInterfaceSGIX,
9354        InitGenFencesNV,
9355        InitDeleteFencesNV,
9356        InitSetFenceNV,
9357        InitTestFenceNV,
9358        InitFinishFenceNV,
9359        InitIsFenceNV,
9360        InitGetFenceivNV,
9361        InitMapControlPointsNV,
9362        InitMapParameterivNV,
9363        InitMapParameterfvNV,
9364        InitGetMapControlPointsNV,
9365        InitGetMapParameterivNV,
9366        InitGetMapParameterfvNV,
9367        InitGetMapAttribParameterivNV,
9368        InitGetMapAttribParameterfvNV,
9369        InitEvalMapsNV,
9370        InitCombinerStageParameterfvNV,
9371        InitGetCombinerStageParameterfvNV,
9372        InitBindProgramNV,
9373        InitDeleteProgramsNV,
9374        InitExecuteProgramNV,
9375        InitGenProgramsNV,
9376        InitAreProgramsResidentNV,
9377        InitRequestResidentProgramsNV,
9378        InitGetProgramParameterfvNV,
9379        InitGetProgramParameterdvNV,
9380        InitGetProgramivNV,
9381        InitGetProgramStringNV,
9382        InitGetTrackMatrixivNV,
9383        InitGetVertexAttribdvNV,
9384        InitGetVertexAttribfvNV,
9385        InitGetVertexAttribivNV,
9386        InitGetVertexAttribPointervNV,
9387        InitIsProgramNV,
9388        InitLoadProgramNV,
9389        InitProgramParameter4fNV,
9390        InitProgramParameter4dNV,
9391        InitProgramParameter4dvNV,
9392        InitProgramParameter4fvNV,
9393        InitProgramParameters4dvNV,
9394        InitProgramParameters4fvNV,
9395        InitTrackMatrixNV,
9396        InitVertexAttribPointerNV,
9397        InitVertexAttrib1sNV,
9398        InitVertexAttrib1fNV,
9399        InitVertexAttrib1dNV,
9400        InitVertexAttrib2sNV,
9401        InitVertexAttrib2fNV,
9402        InitVertexAttrib2dNV,
9403        InitVertexAttrib3sNV,
9404        InitVertexAttrib3fNV,
9405        InitVertexAttrib3dNV,
9406        InitVertexAttrib4sNV,
9407        InitVertexAttrib4fNV,
9408        InitVertexAttrib4dNV,
9409        InitVertexAttrib4ubNV,
9410        InitVertexAttrib1svNV,
9411        InitVertexAttrib1fvNV,
9412        InitVertexAttrib1dvNV,
9413        InitVertexAttrib2svNV,
9414        InitVertexAttrib2fvNV,
9415        InitVertexAttrib2dvNV,
9416        InitVertexAttrib3svNV,
9417        InitVertexAttrib3fvNV,
9418        InitVertexAttrib3dvNV,
9419        InitVertexAttrib4svNV,
9420        InitVertexAttrib4fvNV,
9421        InitVertexAttrib4dvNV,
9422        InitVertexAttrib4ubvNV,
9423        InitVertexAttribs1svNV,
9424        InitVertexAttribs1fvNV,
9425        InitVertexAttribs1dvNV,
9426        InitVertexAttribs2svNV,
9427        InitVertexAttribs2fvNV,
9428        InitVertexAttribs2dvNV,
9429        InitVertexAttribs3svNV,
9430        InitVertexAttribs3fvNV,
9431        InitVertexAttribs3dvNV,
9432        InitVertexAttribs4svNV,
9433        InitVertexAttribs4fvNV,
9434        InitVertexAttribs4dvNV,
9435        InitVertexAttribs4ubvNV,
9436        InitAddSwapHintRectWIN,
9437#ifdef _WIN32
9438        InitCreateBufferRegionARB,
9439        InitDeleteBufferRegionARB,
9440        InitSaveBufferRegionARB,
9441        InitRestoreBufferRegionARB,
9442        InitGetExtensionsStringARB,
9443        InitGetPixelFormatAttribivARB,
9444        InitGetPixelFormatAttribfvARB,
9445        InitChoosePixelFormatARB,
9446        InitMakeContextCurrentARB,
9447        InitGetCurrentReadDCARB,
9448        InitCreatePbufferARB,
9449        InitGetPbufferDCARB,
9450        InitReleasePbufferDCARB,
9451        InitDestroyPbufferARB,
9452        InitQueryPbufferARB,
9453        InitCreateDisplayColorTableEXT,
9454        InitLoadDisplayColorTableEXT,
9455        InitBindDisplayColorTableEXT,
9456        InitDestroyDisplayColorTableEXT,
9457        InitGetExtensionsStringEXT,
9458        InitMakeContextCurrentEXT,
9459        InitGetCurrentReadDCEXT,
9460        InitCreatePbufferEXT,
9461        InitGetPbufferDCEXT,
9462        InitReleasePbufferDCEXT,
9463        InitDestroyPbufferEXT,
9464        InitQueryPbufferEXT,
9465        InitGetPixelFormatAttribivEXT,
9466        InitGetPixelFormatAttribfvEXT,
9467        InitChoosePixelFormatEXT,
9468        InitSwapIntervalEXT,
9469        InitGetSwapIntervalEXT,
9470#endif /* _WIN32 */
9471        // BEGIN OGRE CHANGES
9472        InitBindBufferARB,
9473        InitDeleteBuffersARB,
9474        InitGenBuffersARB,
9475        InitIsBufferARB,
9476        InitBufferDataARB,
9477        InitBufferSubDataARB,
9478        InitGetBufferSubDataARB,
9479        InitMapBufferARB,
9480        InitUnmapBufferARB,
9481        InitGetBufferParameterivARB,
9482        InitGetBufferPointervARB,
9483    InitProgramStringARB,
9484    InitBindProgramARB,
9485    InitDeleteProgramsARB,
9486    InitGenProgramsARB,
9487    InitProgramLocalParameter4fvARB,
9488    InitGetProgramivARB
9489        // END OGRE CHANGES
9490};
9491
9492#endif
Note: See TracBrowser for help on using the repository browser.