import NVIDIA-FreeBSD-x86-190.42
authorSimon Schubert <simon.schubert@epfl.ch>
Tue, 3 Nov 2009 14:12:54 +0000 (15:12 +0100)
committerSimon Schubert <simon.schubert@epfl.ch>
Tue, 3 Nov 2009 14:12:54 +0000 (15:12 +0100)
69 files changed:
Makefile
doc/Makefile
doc/README
doc/gl.h [changed mode: 0755->0644]
doc/glext.h [changed mode: 0755->0644]
doc/glx.h [changed mode: 0755->0644]
doc/glxext.h [new file with mode: 0644]
doc/html/appendix-a.html
doc/html/appendix-b.html
doc/html/appendix-c.html
doc/html/appendix-d.html
doc/html/appendix-g-section-02.html
doc/html/appendix-g-section-03.html
doc/html/appendix-g-section-04.html
doc/html/appendix-g-section-05.html
doc/html/appendix-g.html
doc/html/chapter-04.html
doc/html/chapter-07.html
doc/html/chapter-09.html
doc/html/chapter-12.html
doc/html/chapter-13.html
doc/html/chapter-24.html
doc/html/chapter-26.html
doc/html/chapter-30.html
doc/html/index.html
doc/html/part-02.html
doc/vdpau.h
lib/compat/libGL/Makefile
lib/compat/libGLcore/Makefile
lib/compat/libcuda/Makefile
lib/compat/libnvidia-tls/Makefile
lib/compat/libvdpau/Makefile
lib/compat/libvdpau_nvidia/Makefile
lib/compat/libvdpau_trace/Makefile
obj/libGL.so.1
obj/libGLcore.so.1
obj/libXvMCNVIDIA.a
obj/libXvMCNVIDIA.so.1
obj/libglx.so.1
obj/libnvidia-cfg.so.1
obj/libnvidia-tls.so.1
obj/libvdpau.so.1
obj/libvdpau_nvidia.so.1
obj/libvdpau_trace.so.1
obj/linux/libGL.so.190.42 [new file with mode: 0755]
obj/linux/libGLcore.so.190.42 [copied from obj/libGLcore.so.1 with 58% similarity]
obj/linux/libcuda.so.190.42 [new file with mode: 0755]
obj/linux/libnvidia-cfg.so.190.42 [new file with mode: 0755]
obj/linux/libnvidia-tls.so.190.42 [new file with mode: 0755]
obj/linux/libvdpau.so.190.42 [new file with mode: 0755]
obj/linux/libvdpau_nvidia.so.190.42 [copied from obj/libvdpau_nvidia.so.1 with 53% similarity]
obj/linux/libvdpau_trace.so.190.42 [new file with mode: 0755]
obj/linux/tls/libnvidia-tls.so.190.42 [new file with mode: 0755]
obj/nvidia-settings
obj/nvidia-xconfig
obj/nvidia_drv.so
src/Makefile
src/cpuopsys.h
src/nv-kernel.o
src/nv-reg.h
src/nv.h
src/nvidia_os.c
src/nvidia_subr.c
src/nvtypes.h
src/os-interface.h
src/rmretval.h
src/xapi-sdk.h [new file with mode: 0644]
x11/man/nvidia-settings.1
x11/man/nvidia-xconfig.1

index 6838606..e45b763 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ afterinstall:
        @${.CURDIR}/scripts/linux.sh
        @echo
        @echo "Installation of the NVIDIA Accelerated Graphics Driver"
-       @echo "185.18.36 for FreeBSD is now complete.  You can now"
+       @echo "190.42 for FreeBSD is now complete.  You can now"
        @echo "run the nvidia-xconfig utility to automatically update"
        @echo "your X server configuration file.  Please see the README"
        @echo "for details if you wish to update your X configuration"
index e3fad2d..a8633d8 100644 (file)
@@ -15,7 +15,7 @@ DOCS= README \
        XF86Config.sample \
        license.txt \
        gl.h glx.h glext.h \
-       glxtokens.h \
+       glxext.h \
        vdpau.h vdpau_x11.h
 
 HTMLDOCS!=(ls ${NVIDIA_ROOT}/doc/html/)
index ab49613..54e0466 100644 (file)
@@ -1,8 +1,8 @@
 NVIDIA Accelerated FreeBSD Graphics Driver README and Installation Guide
 
     NVIDIA Corporation
-    Last Updated: Fri Aug 14 16:24:14 PDT 2009
-    Most Recent Driver Version: 185.18.36
+    Last Updated: Tue Oct 20 19:10:26 PDT 2009
+    Most Recent Driver Version: 190.42
 
 Published by
 NVIDIA Corporation
@@ -214,12 +214,12 @@ components.
     nvidia2                               /dev
     nvidia3                               /dev
     nvidiactl                             /dev
-    libGL.so.185.18.36                    /compat/linux/usr/lib
-    libnvidia-tls.so.185.18.36            /compat/linux/usr/lib
-    libGLcore.so.185.18.36                /compat/linux/usr/lib
-    libvdpau.so.185.18.36                 /compat/linux/usr/lib
-    libvdpau_trace.so.185.18.36           /compat/linux/usr/lib
-    libvdpau_nvidia.so.185.18.36          /compat/linux/usr/lib
+    libGL.so.190.42                       /compat/linux/usr/lib
+    libnvidia-tls.so.190.42               /compat/linux/usr/lib
+    libGLcore.so.190.42                   /compat/linux/usr/lib
+    libvdpau.so.190.42                    /compat/linux/usr/lib
+    libvdpau_trace.so.190.42              /compat/linux/usr/lib
+    libvdpau_nvidia.so.190.42             /compat/linux/usr/lib
 
 
 ______________________________________________________________________________
@@ -1056,6 +1056,24 @@ VDPAU initialization failures on supported GPUs
     software problems, NVIDIA recommends returning the GPU to the manufacturer
     for a replacement.
 
+Some applications, such as Quake 3, crash after querying the OpenGL extension
+string
+
+    Some applications have bugs that are triggered when the extension string
+    is longer than a certain size. As more features are added to the driver,
+    the length of this string increases and can trigger these sorts of bugs.
+
+    You can limit the extensions listed in the OpenGL extension string to the
+    ones that appeared in a particular version of the driver by setting the
+    "__GL_ExtensionStringVersion" environment variable to a particular version
+    number. For example,
+    
+    __GL_ExtensionStringVersion=17700 quake3
+    
+    will run Quake 3 with the extension string that appeared in the 177.*
+    driver series. Limiting the size of the extension string can work around
+    this sort of application bug.
+
 
 ______________________________________________________________________________
 
@@ -1813,7 +1831,15 @@ Requirements:
 
 
 
-   o The NVIDIA X driver must be used for all X screens in the server.
+   o NVIDIA's GLX implementation only supports Xinerama when physical X screen
+     0 is driven by the NVIDIA X driver. This is because the X.Org X server
+     bases the visuals of the logical Xinerama X screen on the visuals of
+     physical X screen 0.
+
+     When physical X screen 0 is not being driven by the NVIDIA X driver and
+     Xinerama is enabled, then GLX will be disabled. If physical X screens
+     other than screen 0 are not being driven by the NVIDIA X driver, OpenGL
+     rendering will be disabled on them.
 
    o Only the intersection of capabilities across all GPUs will be advertised.
 
@@ -3797,6 +3823,10 @@ option). E.g.,
 The mode names are reported in the nvidia-settings Display Configuration page
 when in advanced mode.
 
+As well, the initial output data format, sync mode and sync source can be set
+via the Appendix B, Appendix B, and Appendix B. See Appendix B for
+instructions on how to set these X options.
+
 Note that SDI "Clone Mode" as configured through the Graphics to Video Out
 page in nvidia-settings is mutually exclusive with using the SDI video output
 in TwinView or as a separate X screen.
@@ -3875,9 +3905,36 @@ http://libpng.org/pub/png/libpng.html
 This NVIDIA FreeBSD driver contains code from the int10 module of the X.Org
 project.
 
-The BSD implementations of the following compiler intrinsics are used for
+The NetBSD implementations of the following compiler intrinsics are used for
 better portability: __udivdi3, __umoddi3, __divdi3, __moddi3, __ucmpdi2,
-__cmpdi2, __fixunssfdi, __fixunsdfdi, __ashldi3 and __lshrdi3.
+__cmpdi2, __fixunssfdi, __fixunsdfdi, __ashldi3 and __lshrdi3. These carry the
+following copyright notice:
+
+Copyright (c) 1992, 1993 The Regents of the University of California. All
+rights reserved. This software was developed by the Computer Systems
+Engineering group at Lawrence Berkeley Laboratory under DARPA contract BG
+91-66 and contributed to Berkeley. Redistribution and use in source and binary
+forms, with or without modification, are permitted provided that the following
+conditions are met: 1. Redistributions of source code must retain the above
+copyright notice, this list of conditions and the following disclaimer. 2.
+Redistributions in binary form must reproduce the above copyright notice, this
+list of conditions and the following disclaimer in the documentation and/or
+other materials provided with the distribution. 3. All advertising materials
+mentioning features or use of this software must display the following
+acknowledgement: This product includes software developed by the University of
+California, Berkeley and its contributors. 4. Neither the name of the
+University nor the names of its contributors may be used to endorse or promote
+products derived from this software without specific prior written permission.
+THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
+EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 ______________________________________________________________________________
 
@@ -3887,276 +3944,288 @@ ______________________________________________________________________________
 For the most complete and accurate listing of supported GPUs, please see the
 Supported Products List, available from the NVIDIA FreeBSD x86 Graphics Driver
 download page. Please go to http://www.nvidia.com/object/unix.html, follow the
-Archive link under the FreeBSD x86 heading, follow the link for the 185.18.36
+Archive link under the FreeBSD x86 heading, follow the link for the 190.42
 driver, and then go to the Supported Products List.
 
+For an explanation of the VDPAU features column, please refer to the section
+called "VdpDecoder" of Appendix G.
+
 
 A1. NVIDIA GEFORCE GPUS
 
 
-    NVIDIA GPU product                    Device PCI ID
-    ----------------------------------    ----------------------------------
-    GeForce 6800 Ultra                    0x0040
-    GeForce 6800                          0x0041
-    GeForce 6800 LE                       0x0042
-    GeForce 6800 XE                       0x0043
-    GeForce 6800 XT                       0x0044
-    GeForce 6800 GT                       0x0045
-    GeForce 6800 GT                       0x0046
-    GeForce 6800 GS                       0x0047
-    GeForce 6800 XT                       0x0048
-    GeForce 7800 GTX                      0x0090
-    GeForce 7800 GTX                      0x0091
-    GeForce 7800 GT                       0x0092
-    GeForce 7800 GS                       0x0093
-    GeForce 7800 SLI                      0x0095
-    GeForce Go 7800                       0x0098
-    GeForce Go 7800 GTX                   0x0099
-    GeForce 6800 GS                       0x00C0
-    GeForce 6800                          0x00C1
-    GeForce 6800 LE                       0x00C2
-    GeForce 6800 XT                       0x00C3
-    GeForce Go 6800                       0x00C8
-    GeForce Go 6800 Ultra                 0x00C9
-    GeForce 6600 GT                       0x00F1
-    GeForce 6600                          0x00F2
-    GeForce 6200                          0x00F3
-    GeForce 6600 LE                       0x00F4
-    GeForce 7800 GS                       0x00F5
-    GeForce 6800 GS                       0x00F6
-    GeForce 6800 Ultra                    0x00F9
-    GeForce 6600 GT                       0x0140
-    GeForce 6600                          0x0141
-    GeForce 6600 LE                       0x0142
-    GeForce 6600 VE                       0x0143
-    GeForce Go 6600                       0x0144
-    GeForce 6610 XL                       0x0145
-    GeForce Go 6600 TE/6200 TE            0x0146
-    GeForce 6700 XL                       0x0147
-    GeForce Go 6600                       0x0148
-    GeForce Go 6600 GT                    0x0149
-    GeForce 6200                          0x014F
-    GeForce 6500                          0x0160
-    GeForce 6200 TurboCache(TM)           0x0161
-    GeForce 6200SE TurboCache(TM)         0x0162
-    GeForce 6200 LE                       0x0163
-    GeForce Go 6200                       0x0164
-    GeForce Go 6400                       0x0166
-    GeForce Go 6200                       0x0167
-    GeForce Go 6400                       0x0168
-    GeForce 6250                          0x0169
-    GeForce 7100 GS                       0x016A
-    GeForce 8800 GTX                      0x0191
-    GeForce 8800 GTS                      0x0193
-    GeForce 8800 Ultra                    0x0194
-    Tesla C870                            0x0197
-    GeForce 7350 LE                       0x01D0
-    GeForce 7300 LE                       0x01D1
-    GeForce 7300 SE/7200 GS               0x01D3
-    GeForce Go 7200                       0x01D6
-    GeForce Go 7300                       0x01D7
-    GeForce Go 7400                       0x01D8
-    GeForce 7500 LE                       0x01DD
-    GeForce 7300 GS                       0x01DF
-    GeForce 6200                          0x0221
-    GeForce 6200 A-LE                     0x0222
-    GeForce 6150                          0x0240
-    GeForce 6150 LE                       0x0241
-    GeForce 6100                          0x0242
-    GeForce Go 6150                       0x0244
-    GeForce Go 6100                       0x0247
-    GeForce 7900 GTX                      0x0290
-    GeForce 7900 GT/GTO                   0x0291
-    GeForce 7900 GS                       0x0292
-    GeForce 7950 GX2                      0x0293
-    GeForce 7950 GX2                      0x0294
-    GeForce 7950 GT                       0x0295
-    GeForce Go 7950 GTX                   0x0297
-    GeForce Go 7900 GS                    0x0298
-    GeForce 7600 GT                       0x02E0
-    GeForce 7600 GS                       0x02E1
-    GeForce 7300 GT                       0x02E2
-    GeForce 7900 GS                       0x02E3
-    GeForce 7950 GT                       0x02E4
-    GeForce 7650 GS                       0x0390
-    GeForce 7600 GT                       0x0391
-    GeForce 7600 GS                       0x0392
-    GeForce 7300 GT                       0x0393
-    GeForce 7600 LE                       0x0394
-    GeForce 7300 GT                       0x0395
-    GeForce Go 7700                       0x0397
-    GeForce Go 7600                       0x0398
-    GeForce Go 7600 GT                    0x0399
-    GeForce 6150SE nForce 430             0x03D0
-    GeForce 6100 nForce 405               0x03D1
-    GeForce 6100 nForce 400               0x03D2
-    GeForce 6100 nForce 420               0x03D5
-    GeForce 8600 GTS                      0x0400
-    GeForce 8600 GT                       0x0401
-    GeForce 8600 GT                       0x0402
-    GeForce 8600 GS                       0x0403
-    GeForce 8400 GS                       0x0404
-    GeForce 9500M GS                      0x0405
-    GeForce 8600M GT                      0x0407
-    GeForce 9650M GS                      0x0408
-    GeForce 8700M GT                      0x0409
-    GeForce 8400 SE                       0x0420
-    GeForce 8500 GT                       0x0421
-    GeForce 8400 GS                       0x0422
-    GeForce 8300 GS                       0x0423
-    GeForce 8400 GS                       0x0424
-    GeForce 8600M GS                      0x0425
-    GeForce 8400M GT                      0x0426
-    GeForce 8400M GS                      0x0427
-    GeForce 8400M G                       0x0428
-    GeForce 9400 GT                       0x042C
-    GeForce 9300M G                       0x042E
-    GeForce 7150M / nForce 630M           0x0531
-    GeForce 7000M / nForce 610M           0x0533
-    GeForce 7050 PV / nForce 630a         0x053A
-    GeForce 7050 PV / nForce 630a         0x053B
-    GeForce 7025 / nForce 630a            0x053E
-    GeForce GTX 295                       0x05E0
-    GeForce GTX 280                       0x05E1
-    GeForce GTX 260                       0x05E2
-    GeForce GTX 285                       0x05E3
-    GeForce GTX 275                       0x05E6
-    GeForce GTX 295                       0x05EB
-    GeForce 8800 GTS 512                  0x0600
-    GeForce 9800 GT                       0x0601
-    GeForce 8800 GT                       0x0602
-    GeForce 9800 GX2                      0x0604
-    GeForce 9800 GT                       0x0605
-    GeForce 8800 GS                       0x0606
-    GeForce 9800M GTX                     0x0608
-    GeForce 8800M GTS                     0x0609
-    GeForce GTX 280M                      0x060A
-    GeForce 9800M GT                      0x060B
-    GeForce 8800M GTX                     0x060C
-    GeForce 8800 GS                       0x060D
-    GeForce 9600 GSO                      0x0610
-    GeForce 8800 GT                       0x0611
-    GeForce 9800 GTX/9800 GTX+            0x0612
-    GeForce 9800 GTX+                     0x0613
-    GeForce 9800 GT                       0x0614
-    GeForce GTS 250                       0x0615
-    GeForce 9800M GTX                     0x0617
-    GeForce GTX 260M                      0x0618
-    GeForce 9600 GT                       0x0622
-    GeForce 9600 GS                       0x0623
-    GeForce 9600 GSO 512                  0x0625
-    GeForce GT 130                        0x0626
-    GeForce GT 140                        0x0627
-    GeForce 9800M GTS                     0x0628
-    GeForce 9700M GTS                     0x062A
-    GeForce 9800M GS                      0x062B
-    GeForce 9800M GTS                     0x062C
-    GeForce 9500 GT                       0x0640
-    GeForce 9400 GT                       0x0641
-    GeForce 9500 GT                       0x0643
-    GeForce 9500 GS                       0x0644
-    GeForce GT 120                        0x0646
-    GeForce 9600M GT                      0x0647
-    GeForce 9600M GS                      0x0648
-    GeForce 9600M GT                      0x0649
-    GeForce 9700M GT                      0x064A
-    GeForce 9500M G                       0x064B
-    GeForce 9650M GT                      0x064C
-    GeForce GT 130M                       0x0652
-    GeForce 9650 S                        0x0656
-    GeForce 9300 GE                       0x06E0
-    GeForce 9300 GS                       0x06E1
-    GeForce 8400 GS                       0x06E4
-    GeForce 9300M GS                      0x06E5
-    GeForce G100                          0x06E6
-    GeForce 9200M GS                      0x06E8
-    GeForce 9300M GS                      0x06E9
-    GeForce G 103M                        0x06EF
-    GeForce 7150 / nForce 630i            0x07E0
-    GeForce 7100 / nForce 630i            0x07E1
-    GeForce 7050 / nForce 610i            0x07E3
-    GeForce 9100M G                       0x0844
-    GeForce 8200M G                       0x0845
-    GeForce 9100                          0x0847
-    GeForce 8300                          0x0848
-    GeForce 8200                          0x0849
-    nForce 730a                           0x084A
-    GeForce 9200                          0x084B
-    nForce 980a/780a SLI                  0x084C
-    nForce 750a SLI                       0x084D
-    GeForce 8100 / nForce 720a            0x084F
-    GeForce 9400M G                       0x0862
-    GeForce 9400M                         0x0863
-    GeForce 9300 / nForce 730i            0x086C
-    GeForce GT 230M                       0x0A2A
-    GeForce GT 240M                       0x0A34
-    GeForce G210M                         0x0A74
-    GeForce GTS 260M                      0x0CA8
-    GeForce GTS 250M                      0x0CA9
+    NVIDIA GPU product                    Device PCI ID      VDPAU features
+    ----------------------------------    ---------------    ---------------
+    GeForce 6800 Ultra                    0x0040             -
+    GeForce 6800                          0x0041             -
+    GeForce 6800 LE                       0x0042             -
+    GeForce 6800 XE                       0x0043             -
+    GeForce 6800 XT                       0x0044             -
+    GeForce 6800 GT                       0x0045             -
+    GeForce 6800 GT                       0x0046             -
+    GeForce 6800 GS                       0x0047             -
+    GeForce 6800 XT                       0x0048             -
+    GeForce 7800 GTX                      0x0090             -
+    GeForce 7800 GTX                      0x0091             -
+    GeForce 7800 GT                       0x0092             -
+    GeForce 7800 GS                       0x0093             -
+    GeForce 7800 SLI                      0x0095             -
+    GeForce Go 7800                       0x0098             -
+    GeForce Go 7800 GTX                   0x0099             -
+    GeForce 6800 GS                       0x00C0             -
+    GeForce 6800                          0x00C1             -
+    GeForce 6800 LE                       0x00C2             -
+    GeForce 6800 XT                       0x00C3             -
+    GeForce Go 6800                       0x00C8             -
+    GeForce Go 6800 Ultra                 0x00C9             -
+    GeForce 6600 GT                       0x00F1             -
+    GeForce 6600                          0x00F2             -
+    GeForce 6200                          0x00F3             -
+    GeForce 6600 LE                       0x00F4             -
+    GeForce 7800 GS                       0x00F5             -
+    GeForce 6800 GS                       0x00F6             -
+    GeForce 6800 Ultra                    0x00F9             -
+    GeForce 6600 GT                       0x0140             -
+    GeForce 6600                          0x0141             -
+    GeForce 6600 LE                       0x0142             -
+    GeForce 6600 VE                       0x0143             -
+    GeForce Go 6600                       0x0144             -
+    GeForce 6610 XL                       0x0145             -
+    GeForce Go 6600 TE/6200 TE            0x0146             -
+    GeForce 6700 XL                       0x0147             -
+    GeForce Go 6600                       0x0148             -
+    GeForce Go 6600 GT                    0x0149             -
+    GeForce 6200                          0x014F             -
+    GeForce 6500                          0x0160             -
+    GeForce 6200 TurboCache(TM)           0x0161             -
+    GeForce 6200SE TurboCache(TM)         0x0162             -
+    GeForce 6200 LE                       0x0163             -
+    GeForce Go 6200                       0x0164             -
+    GeForce Go 6400                       0x0166             -
+    GeForce Go 6200                       0x0167             -
+    GeForce Go 6400                       0x0168             -
+    GeForce 6250                          0x0169             -
+    GeForce 7100 GS                       0x016A             -
+    GeForce 8800 GTX                      0x0191             -
+    GeForce 8800 GTS                      0x0193             -
+    GeForce 8800 Ultra                    0x0194             -
+    Tesla C870                            0x0197             -
+    GeForce 7350 LE                       0x01D0             -
+    GeForce 7300 LE                       0x01D1             -
+    GeForce 7300 SE/7200 GS               0x01D3             -
+    GeForce Go 7200                       0x01D6             -
+    GeForce Go 7300                       0x01D7             -
+    GeForce Go 7400                       0x01D8             -
+    GeForce 7500 LE                       0x01DD             -
+    GeForce 7300 GS                       0x01DF             -
+    GeForce 6200                          0x0221             -
+    GeForce 6200 A-LE                     0x0222             -
+    GeForce 6150                          0x0240             -
+    GeForce 6150 LE                       0x0241             -
+    GeForce 6100                          0x0242             -
+    GeForce Go 6150                       0x0244             -
+    GeForce Go 6100                       0x0247             -
+    GeForce 7900 GTX                      0x0290             -
+    GeForce 7900 GT/GTO                   0x0291             -
+    GeForce 7900 GS                       0x0292             -
+    GeForce 7950 GX2                      0x0293             -
+    GeForce 7950 GX2                      0x0294             -
+    GeForce 7950 GT                       0x0295             -
+    GeForce Go 7950 GTX                   0x0297             -
+    GeForce Go 7900 GS                    0x0298             -
+    GeForce 7600 GT                       0x02E0             -
+    GeForce 7600 GS                       0x02E1             -
+    GeForce 7300 GT                       0x02E2             -
+    GeForce 7900 GS                       0x02E3             -
+    GeForce 7950 GT                       0x02E4             -
+    GeForce 7650 GS                       0x0390             -
+    GeForce 7600 GT                       0x0391             -
+    GeForce 7600 GS                       0x0392             -
+    GeForce 7300 GT                       0x0393             -
+    GeForce 7600 LE                       0x0394             -
+    GeForce 7300 GT                       0x0395             -
+    GeForce Go 7700                       0x0397             -
+    GeForce Go 7600                       0x0398             -
+    GeForce Go 7600 GT                    0x0399             -
+    GeForce 6150SE nForce 430             0x03D0             -
+    GeForce 6100 nForce 405               0x03D1             -
+    GeForce 6100 nForce 400               0x03D2             -
+    GeForce 6100 nForce 420               0x03D5             -
+    GeForce 8600 GTS                      0x0400             A
+    GeForce 8600 GT                       0x0401             A
+    GeForce 8600 GT                       0x0402             A
+    GeForce 8600 GS                       0x0403             A
+    GeForce 8400 GS                       0x0404             A
+    GeForce 9500M GS                      0x0405             A
+    GeForce 8600M GT                      0x0407             A
+    GeForce 9650M GS                      0x0408             A
+    GeForce 8700M GT                      0x0409             A
+    GeForce 8400 SE                       0x0420             -
+    GeForce 8500 GT                       0x0421             A
+    GeForce 8400 GS                       0x0422             A
+    GeForce 8300 GS                       0x0423             -
+    GeForce 8400 GS                       0x0424             A
+    GeForce 8600M GS                      0x0425             A
+    GeForce 8400M GT                      0x0426             A
+    GeForce 8400M GS                      0x0427             A
+    GeForce 8400M G                       0x0428             A
+    GeForce 9400 GT                       0x042C             A
+    GeForce 9300M G                       0x042E             A
+    GeForce 7150M / nForce 630M           0x0531             -
+    GeForce 7000M / nForce 610M           0x0533             -
+    GeForce 7050 PV / nForce 630a         0x053A             -
+    GeForce 7050 PV / nForce 630a         0x053B             -
+    GeForce 7025 / nForce 630a            0x053E             -
+    GeForce GTX 295                       0x05E0             A
+    GeForce GTX 280                       0x05E1             A
+    GeForce GTX 260                       0x05E2             A
+    GeForce GTX 285                       0x05E3             A
+    GeForce GTX 275                       0x05E6             A
+    GeForce GTX 295                       0x05EB             A
+    GeForce 8800 GTS 512                  0x0600             A
+    GeForce 9800 GT                       0x0601             A
+    GeForce 8800 GT                       0x0602             A
+    GeForce 9800 GX2                      0x0604             A
+    GeForce 9800 GT                       0x0605             A
+    GeForce 8800 GS                       0x0606             A
+    GeForce 9800M GTX                     0x0608             A
+    GeForce 8800M GTS                     0x0609             A
+    GeForce GTX 280M                      0x060A             A
+    GeForce 9800M GT                      0x060B             A
+    GeForce 8800M GTX                     0x060C             A
+    GeForce 8800 GS                       0x060D             A
+    GeForce 9600 GSO                      0x0610             A
+    GeForce 8800 GT                       0x0611             A
+    GeForce 9800 GTX/9800 GTX+            0x0612             A
+    GeForce 9800 GTX+                     0x0613             A
+    GeForce 9800 GT                       0x0614             A
+    GeForce GTS 250                       0x0615             A
+    GeForce 9800M GTX                     0x0617             A
+    GeForce GTX 260M                      0x0618             A
+    GeForce 9600 GT                       0x0622             A
+    GeForce 9600 GS                       0x0623             A
+    GeForce 9600 GSO 512                  0x0625             A
+    GeForce GT 130                        0x0626             A
+    GeForce GT 140                        0x0627             A
+    GeForce 9800M GTS                     0x0628             A
+    GeForce 9700M GTS                     0x062A             A
+    GeForce 9800M GS                      0x062B             A
+    GeForce 9800M GTS                     0x062C             A
+    GeForce 9500 GT                       0x0640             A
+    GeForce 9400 GT                       0x0641             A
+    GeForce 9500 GT                       0x0643             A
+    GeForce 9500 GS                       0x0644             A
+    GeForce GT 120                        0x0646             A
+    GeForce 9600M GT                      0x0647             A
+    GeForce 9600M GS                      0x0648             A
+    GeForce 9600M GT                      0x0649             A
+    GeForce 9700M GT                      0x064A             A
+    GeForce 9500M G                       0x064B             A
+    GeForce 9650M GT                      0x064C             A
+    GeForce GT 130M                       0x0652             A
+    GeForce 9650 S                        0x0656             A
+    GeForce 9300 GE                       0x06E0             B 1
+    GeForce 9300 GS                       0x06E1             B 1
+    GeForce 8400 GS                       0x06E4             A 1
+    GeForce 9300M GS                      0x06E5             B 1
+    GeForce G100                          0x06E6             B 1
+    GeForce 9200M GS                      0x06E8             B 1
+    GeForce 9300M GS                      0x06E9             B 1
+    GeForce G 105M                        0x06EC             B 1
+    GeForce G 103M                        0x06EF             B 1
+    GeForce 7150 / nForce 630i            0x07E0             -
+    GeForce 7100 / nForce 630i            0x07E1             -
+    GeForce 7050 / nForce 610i            0x07E3             -
+    GeForce 9100M G                       0x0844             B 1
+    GeForce 8200M G                       0x0845             B 1
+    GeForce 9100                          0x0847             B 1
+    GeForce 8300                          0x0848             B 1
+    GeForce 8200                          0x0849             B 1
+    nForce 730a                           0x084A             B 1
+    GeForce 9200                          0x084B             B 1
+    nForce 980a/780a SLI                  0x084C             B 1
+    nForce 750a SLI                       0x084D             B 1
+    GeForce 8100 / nForce 720a            0x084F             -
+    GeForce 9400M G                       0x0862             B 1
+    GeForce 9400M                         0x0863             B 1
+    GeForce 9300 / nForce 730i            0x086C             B 1
+    GeForce G102M                         0x0872             B 1
+    GeForce G102M                         0x0873             B 1
+    ION                                   0x087D             B 1
+    GeForce GT 220                        0x0A20             C
+    GeForce GT 230M                       0x0A2A             C
+    GeForce GT 240M                       0x0A34             C
+    GeForce G210                          0x0A60             C
+    GeForce G210M                         0x0A74             C
+    GeForce GTS 260M                      0x0CA8             C
+    GeForce GTS 250M                      0x0CA9             C
 
 
 
 A2. NVIDIA QUADRO GPUS
 
 
-    NVIDIA GPU product                    Device PCI ID
-    ----------------------------------    ----------------------------------
-    Quadro FX 4000                        0x004E
-    Quadro FX 4500                        0x009D
-    Quadro FX Go1400                      0x00CC
-    Quadro FX 3450/4000 SDI               0x00CD
-    Quadro FX 1400                        0x00CE
-    Quadro FX 3400/Quadro FX 4000         0x00F8
-    Quadro NVS 440                        0x014A
-    Quadro FX 540M                        0x014C
-    Quadro FX 550                         0x014D
-    Quadro FX 540                         0x014E
-    Quadro NVS 285                        0x0165
-    Quadro FX 5600                        0x019D
-    Quadro FX 4600                        0x019E
-    Quadro NVS 110M                       0x01DA
-    Quadro NVS 120M                       0x01DB
-    Quadro FX 350M                        0x01DC
-    Quadro FX 350                         0x01DE
-    Quadro NVS 210S / GeForce 6150LE      0x0245
-    Quadro NVS 510M                       0x0299
-    Quadro FX 2500M                       0x029A
-    Quadro FX 1500M                       0x029B
-    Quadro FX 5500                        0x029C
-    Quadro FX 3500                        0x029D
-    Quadro FX 1500                        0x029E
-    Quadro FX 4500 X2                     0x029F
-    Quadro FX 560                         0x039E
-    Quadro FX 370                         0x040A
-    Quadro NVS 320M                       0x040B
-    Quadro FX 570M                        0x040C
-    Quadro FX 1600M                       0x040D
-    Quadro FX 570                         0x040E
-    Quadro FX 1700                        0x040F
-    Quadro NVS 140M                       0x0429
-    Quadro NVS 130M                       0x042A
-    Quadro NVS 135M                       0x042B
-    Quadro FX 360M                        0x042D
-    Quadro NVS 290                        0x042F
-    Quadro CX                             0x05F9
-    Quadro FX 5800                        0x05FD
-    Quadro FX 4800                        0x05FE
-    Quadro FX 3800                        0x05FF
-    Quadro FX 3700                        0x061A
-    Quadro FX 3600M                       0x061C
-    Quadro FX 3700M                       0x061E
-    Quadro FX 1800                        0x0638
-    Quadro FX 2700M                       0x063A
-    Quadro FX 380                         0x0658
-    Quadro FX 580                         0x0659
-    Quadro FX 770M                        0x065C
-    Quadro NVS 150M                       0x06EA
-    Quadro NVS 160M                       0x06EB
-    Quadro NVS 420                        0x06F8
-    Quadro FX 370 LP                      0x06F9
-    Quadro NVS 450                        0x06FA
-    Quadro NVS 295                        0x06FD
-    Quadro FX 470                         0x087A
+    NVIDIA GPU product                    Device PCI ID      VDPAU features
+    ----------------------------------    ---------------    ---------------
+    Quadro FX 4000                        0x004E             -
+    Quadro FX 4500                        0x009D             -
+    Quadro FX Go1400                      0x00CC             -
+    Quadro FX 3450/4000 SDI               0x00CD             -
+    Quadro FX 1400                        0x00CE             -
+    Quadro FX 3400/Quadro FX 4000         0x00F8             -
+    Quadro NVS 440                        0x014A             -
+    Quadro FX 540M                        0x014C             -
+    Quadro FX 550                         0x014D             -
+    Quadro FX 540                         0x014E             -
+    Quadro NVS 285                        0x0165             -
+    Quadro FX 5600                        0x019D             -
+    Quadro FX 4600                        0x019E             -
+    Quadro NVS 110M                       0x01DA             -
+    Quadro NVS 120M                       0x01DB             -
+    Quadro FX 350M                        0x01DC             -
+    Quadro FX 350                         0x01DE             -
+    Quadro NVS 210S / GeForce 6150LE      0x0245             -
+    Quadro NVS 510M                       0x0299             -
+    Quadro FX 2500M                       0x029A             -
+    Quadro FX 1500M                       0x029B             -
+    Quadro FX 5500                        0x029C             -
+    Quadro FX 3500                        0x029D             -
+    Quadro FX 1500                        0x029E             -
+    Quadro FX 4500 X2                     0x029F             -
+    Quadro FX 560                         0x039E             -
+    Quadro FX 370                         0x040A             A
+    Quadro NVS 320M                       0x040B             A
+    Quadro FX 570M                        0x040C             A
+    Quadro FX 1600M                       0x040D             A
+    Quadro FX 570                         0x040E             A
+    Quadro FX 1700                        0x040F             A
+    Quadro NVS 140M                       0x0429             A
+    Quadro NVS 130M                       0x042A             A
+    Quadro NVS 135M                       0x042B             A
+    Quadro FX 360M                        0x042D             A
+    Quadro NVS 290                        0x042F             A
+    Quadro CX                             0x05F9             A
+    Quadro FX 5800                        0x05FD             A
+    Quadro FX 4800                        0x05FE             A
+    Quadro FX 3800                        0x05FF             A
+    Quadro FX 3700                        0x061A             A
+    Quadro FX 3600M                       0x061C             A
+    Quadro FX 2800M                       0x061D             A
+    Quadro FX 3700M                       0x061E             A
+    Quadro FX 3800M                       0x061F             A
+    Quadro FX 1800                        0x0638             A
+    Quadro FX 2700M                       0x063A             A
+    Quadro FX 380                         0x0658             A
+    Quadro FX 580                         0x0659             A
+    Quadro FX 1700M                       0x065A             A
+    Quadro FX 770M                        0x065C             A
+    Quadro NVS 150M                       0x06EA             B 1
+    Quadro NVS 160M                       0x06EB             B 1
+    Quadro NVS 420                        0x06F8             B 1
+    Quadro FX 370 LP                      0x06F9             B 1
+    Quadro NVS 450                        0x06FA             B 1
+    Quadro NVS 295                        0x06FD             B 1
+    Quadro FX 470                         0x087A             B 1
 
 
 Below are the legacy GPUs that are no longer supported in the unified driver.
@@ -4372,12 +4441,16 @@ Option "Overlay" "boolean"
 Option "CIOverlay" "boolean"
 
     Enables Color Index workstation overlay visuals with identical
-    restrictions to Option "Overlay" above. The server will offer visuals both
-    with and without a transparency key. These are depth 8 PseudoColor
-    visuals. Enabling Color Index overlays on X servers older than XFree86 4.3
-    will force the RENDER extension to be disabled due to bugs in the RENDER
-    extension in older X servers. Color Index workstation overlays are not
-    supported when the Composite extension is enabled. Default: off.
+    restrictions to Option "Overlay" above. This option causes the server to
+    advertise the SERVER_OVERLAY_VISUALS root window property. Some of the
+    visuals advertised that way may be listed in the main plane (layer 0) for
+    compatibility purposes. They however belong to the overlay (layer 1). The
+    server will offer visuals both with and without a transparency key. These
+    are depth 8 PseudoColor visuals. Enabling Color Index overlays on X
+    servers older than XFree86 4.3 will force the RENDER extension to be
+    disabled due to bugs in the RENDER extension in older X servers. Color
+    Index workstation overlays are not supported when the Composite extension
+    is enabled. Default: off.
 
     UBB must be enabled when overlays are enabled (this is the default
     behavior).
@@ -4969,15 +5042,6 @@ Option "Coolbits" "integer"
     manipulation in the NV-CONTROL X extension. This option accepts a bit mask
     of features to enable.
 
-    When "1" (Bit 0) is set in the "Coolbits" option value, the
-    nvidia-settings utility will contain a page labeled "Clock Frequencies"
-    through which clock settings can be manipulated. "Coolbits" is only
-    available on GeForce FX, Quadro FX and newer desktop GPUs. On GeForce FX
-    and newer mobile GPUs, limited clock manipulation support is available
-    when "1" is set in the "Coolbits" option value: clocks can be lowered
-    relative to the default settings; overclocking is not supported due to the
-    thermal constraints of notebook designs.
-
     WARNING: this may cause system damage and void warranties. This utility
     can run your computer system out of the manufacturer's design
     specifications, including, but not limited to: higher system voltages,
@@ -4992,10 +5056,23 @@ Option "Coolbits" "integer"
     suitability of the utility for your intended use, and you shall assume all
     responsibility in connection therewith.
 
+    When "1" (Bit 0) is set in the "Coolbits" option value, the
+    nvidia-settings utility will contain a page labeled "Clock Frequencies"
+    through which clock settings can be manipulated. "Coolbits" is only
+    available on GeForce FX, Quadro FX and newer desktop GPUs. On GeForce FX
+    and newer mobile GPUs, limited clock manipulation support is available
+    when "1" is set in the "Coolbits" option value: clocks can be lowered
+    relative to the default settings; overclocking is not supported due to the
+    thermal constraints of notebook designs.
+
     When "2" (Bit 1) is set in the "Coolbits" option value, the NVIDIA driver
     will attempt to initialize SLI when using GPUs with different amounts of
     video memory.
 
+    When "4" (Bit 2) is set in the "Coolbits" option value, the
+    nvidia-settings Thermal Monitor page will allow configuration of GPU fan
+    speed, on graphics boards with programmable fan capability.
+
     The default for this option is 0 (unsupported features are disabled).
 
 Option "MultiGPU" "string"
@@ -5113,11 +5190,12 @@ Option "CustomEDID" "string"
 
     This option forces the X driver to use the EDID specified in a file rather
     than the display's EDID. You may specify a semicolon separated list of
-    display names and filename pairs. The display name is any of "CRT-0",
-    "CRT-1", "DFP-0", "DFP-1", "TV-0", "TV-1", or one of the generic names
-    "CRT", "DFP", "TV", which apply the EDID to all devices of the specified
-    type. The file contains a raw EDID (e.g., a file generated by
-    nvidia-settings).
+    display names and filename pairs. Valid display device names include
+    "CRT-0", "CRT-1", "DFP-0", "DFP-1", "TV-0", "TV-1", or one of the generic
+    names "CRT", "DFP", "TV", which apply the EDID to all devices of the
+    specified type. Additionally, if SLI Mosaic is enabled, this name can be
+    prefixed by a GPU name (e.g., "GPU-0.CRT-0"). The file contains a raw EDID
+    (e.g., a file generated by nvidia-settings).
 
     For example:
     
@@ -5132,6 +5210,27 @@ Option "CustomEDID" "string"
     damage your hardware, as it allows the driver to specify timings beyond
     the capabilities of your display. Use with care.
 
+Option "IgnoreEDIDChecksum" "string"
+
+    This option forces the X driver to accept an EDID even if the checksum is
+    invalid. You may specify a comma separated list of display names. Valid
+    display device names include "CRT-0", "CRT-1", "DFP-0", "DFP-1", "TV-0",
+    "TV-1", or one of the generic names "CRT", "DFP", "TV", which ignore the
+    EDID checksum on all devices of the specified type. Additionally, if SLI
+    Mosaic is enabled, this name can be prefixed by a GPU name (e.g.,
+    "GPU-0.CRT-0").
+
+    For example:
+    
+        Option "IgnoreEDIDChecksum" "CRT, DFP-0"
+    
+    will cause the nvidia driver to ignore the EDID checksum for all CRT
+    monitors and the displays DFP-0 and TV-0.
+
+    Caution: An invalid EDID checksum may indicate a corrupt EDID. A corrupt
+    EDID may have mode timings beyond the capabilities of your display, and
+    using it could damage your hardware. Use with care.
+
 Option "ModeValidation" "string"
 
     This option provides fine-grained control over each stage of the mode
@@ -5253,6 +5352,13 @@ Option "ModeValidation" "string"
          will implicitly modify the mode timings to meet the GPU's dual link
          DVI requirements. This token disables this dual link DVI checking.
     
+       o "NoDisplayPortBandwidthCheck": for mode timings used on DisplayPort
+         devices, the driver must verify that the DisplayPort link can be
+         configured to carry enough bandwidth to support a given mode's pixel
+         clock. For example, some DisplayPort-to-VGA adapters only support 2
+         DisplayPort lanes, limiting the resolutions they can display. This
+         token disables this DisplayPort bandwidth check.
+    
     
     Examples:
     
@@ -5465,6 +5571,53 @@ Option "PanAllDisplays" "boolean"
 
     Default: enabled (all displays are panned when the pointer is moved).
 
+Option "GvoDataFormat" "string"
+
+    This option controls the initial configuration of SDI (GVO) device's
+    output data format.
+    
+        Valid Values
+        ---------------------------------------------------------------------
+        R8G8B8_To_YCrCb444
+        R8G8B8_To_YCrCb422
+        X8X8X8_To_PassThru444
+    
+    
+    Default: R8G8B8_To_YCrCb444.
+
+Option "GvoSyncMode" "string"
+
+    This option controls the initial synchronization mode of the SDI (GVO)
+    device.
+    
+        Value             Behavior
+        --------------    ---------------------------------------------------
+        FreeRunning       The SDI output will be synchronized with the
+                          timing chosen from the SDI signal format list.
+        GenLock           SDI output will be synchronized with the external
+                          sync signal (if present/detected) with pixel
+                          accuracy.
+        FrameLock         SDI output will be synchronized with the external
+                          sync signal (if present/detected) with frame
+                          accuracy.
+    
+    
+    Default: FreeRunning (Will not lock to an input signal).
+
+Option "GvoSyncSource" "string"
+
+    This option controls the initial synchronization source (type) of the SDI
+    (GVO) device. Note that the GvoSyncMode should be set to either GenLock or
+    FrameLock for this option to take effect.
+    
+        Value             Behavior
+        --------------    ---------------------------------------------------
+        Composite         Interpret sync source as composite.
+        SDI               Interpret sync source as SDI.
+    
+    
+    Default: SDI.
+
 
 ______________________________________________________________________________
 
@@ -5512,6 +5665,15 @@ reference them in the MetaMode string as follows:
     Option "MetaModes"   "CRT: 1600x1200,  DFP: 1024x768"
 
 
+In SLI Mosaic Mode, it may be possible for the same name to be used for
+multiple display devices connected to different GPUs. In order to distinguish
+between these devices, you can prefix them with a GPU qualifier. For example:
+
+    Option "MetaModes"   "GPU-0.CRT-0: 1600x1200, GPU-1.CRT-0: 1024x768"
+
+If no GPU is specified for a particular display device name, the setting will
+apply to any devices with that name across all GPUs.
+
 ______________________________________________________________________________
 
 Appendix D. GLX Support
@@ -5547,12 +5709,74 @@ Additionally, the following GLX extensions are supported on appropriate GPUs:
 
    o GLX_EXT_texture_from_pixmap
 
+   o GLX_NV_copy_image
+
+   o GLX_ARB_create_context
+
+   o GLX_EXT_import_context
+
+   o GLX_EXT_fbconfig_packed_float
+
+   o GLX_EXT_framebuffer_sRGB
+
+   o GLX_NV_present_video
+
+   o GLX_NV_multisample_coverage
+
+   o GLX_EXT_swap_control
+
+   o GLX_NV_video_capture
+
+   o GLX_ARB_create_context_profile
+
 For a description of these extensions, see the OpenGL extension registry at
 http://www.opengl.org/registry/
 
 Some of the above extensions exist as part of core GLX 1.4 functionality,
 however, they are also exported as extensions for backwards compatibility.
 
+Unofficial GLX protocol support exists in NVIDIA's GLX client and GLX server
+implementations for the following OpenGL extensions:
+
+   o GL_ARB_geometry_shader4
+
+   o GL_ARB_shader_objects
+
+   o GL_ARB_texture_buffer_object
+
+   o GL_ARB_vertex_buffer_object
+
+   o GL_ARB_vertex_shader
+
+   o GL_EXT_bindable_uniform
+
+   o GL_EXT_compiled_vertex_array
+
+   o GL_EXT_geometry_shader4
+
+   o GL_EXT_gpu_shader4
+
+   o GL_EXT_texture_buffer_object
+
+   o GL_NV_geometry_program4
+
+   o GL_NV_vertex_program
+
+   o GL_NV_parameter_buffer_object
+
+   o GL_NV_vertex_program4
+
+Until the GLX protocol for these OpenGL extensions is finalized, using these
+extensions through GLX indirect rendering will require the
+AllowUnofficialGLXProtocol X configuration option, and the
+__GL_ALLOW_UNOFFICIAL_PROTOCOL environment variable in the environment of the
+client application. Unofficial protocol requires the use of NVIDIA GLX
+libraries on both the client and the server. Note: GLX protocol is used when
+an OpenGL application indirect renders (i.e., runs on one computer, but
+submits protocol requests such that the rendering is performed on another
+computer). The above OpenGL extensions are fully supported when doing direct
+rendering.
+
 ______________________________________________________________________________
 
 Appendix E. Dots Per Inch
@@ -5768,18 +5992,20 @@ VDPDECODER
 In all cases, VdpDecoder objects solely support 8-bit 4:2:0 streams, and only
 support writing to VDP_CHROMA_TYPE_420 surfaces.
 
-The exact set of supported VdpDecoderProfile values depends on the hardware
-model in use. Hardware-specific support is listed below. When reading these
-lists, please note that VC1_SIMPLE and VC1_MAIN may be referred to as WMV,
-WMV3, or WMV9 in other contexts. Partial acceleration means that VLD
-(bitstream) decoding is performed on the CPU, with the GPU performing IDCT and
-motion compensation. Complete acceleration means that the GPU performs all of
-VLD, IDCT, and motion compensation.
+The exact set of supported VdpDecoderProfile values depends on the GPU in use.
+Appendix A lists which GPUs support which video feature set. An explanation of
+each video feature set may be found below. When reading these lists, please
+note that VC1_SIMPLE and VC1_MAIN may be referred to as WMV, WMV3, or WMV9 in
+other contexts. Partial acceleration means that VLD (bitstream) decoding is
+performed on the CPU, with the GPU performing IDCT and motion compensation.
+Complete acceleration means that the GPU performs all of VLD, IDCT, and motion
+compensation.
 
 
-G84, G86, G92, G94, G96, GT200
+VDPAU FEATURE SET A
 
-These chips support the following VdpDecoderProfile values:
+GPUs with VDPAU feature set A support at least the following VdpDecoderProfile
+values, and associated limits:
 
    o VDP_DECODER_PROFILE_MPEG1, VDP_DECODER_PROFILE_MPEG2_SIMPLE,
      VDP_DECODER_PROFILE_MPEG2_MAIN:
@@ -5818,9 +6044,10 @@ These chips support the following VdpDecoderProfile values:
      
 
 
-G98, MCP77, MCP78, MCP79, MCP7A
+VDPAU FEATURE SET B
 
-These chips support the following VdpDecoderProfile values:
+GPUs with VDPAU feature set B support at least the following VdpDecoderProfile
+values, and associated limits:
 
    o VDP_DECODER_PROFILE_MPEG1, VDP_DECODER_PROFILE_MPEG2_SIMPLE,
      VDP_DECODER_PROFILE_MPEG2_MAIN:
@@ -5846,8 +6073,47 @@ These chips support the following VdpDecoderProfile values:
      
         o Maximum macroblocks: 8190
      
-        o Unsupported widths: 49, 54, 59, 64, 113, 118, 123 macroblocks (784,
-          864, 944, 1024, 1808, 1888 pixels).
+     
+   o VDP_DECODER_PROFILE_VC1_SIMPLE, VDP_DECODER_PROFILE_VC1_MAIN,
+     VDP_DECODER_PROFILE_VC1_ADVANCED:
+     
+        o Complete acceleration.
+     
+        o Minimum width or height: 3 macroblocks (48 pixels).
+     
+        o Maximum width or height: 128 macroblocks (2048 pixels).
+     
+        o Maximum macroblocks: 8190
+     
+     
+
+
+VDPAU FEATURE SET C
+
+GPUs with VDPAU feature set C support at least the following VdpDecoderProfile
+values, and associated limits:
+
+   o VDP_DECODER_PROFILE_MPEG1, VDP_DECODER_PROFILE_MPEG2_SIMPLE,
+     VDP_DECODER_PROFILE_MPEG2_MAIN:
+     
+        o Complete acceleration.
+     
+        o Minimum width or height: 3 macroblocks (48 pixels).
+     
+        o Maximum width or height: 128 macroblocks (2048 pixels).
+     
+        o Maximum macroblocks: 8192
+     
+     
+   o VDP_DECODER_PROFILE_H264_MAIN, VDP_DECODER_PROFILE_H264_HIGH:
+     
+        o Complete acceleration.
+     
+        o Minimum width or height: 3 macroblocks (48 pixels).
+     
+        o Maximum width or height: 128 macroblocks (2048 pixels).
+     
+        o Maximum macroblocks: 8192
      
      
    o VDP_DECODER_PROFILE_VC1_SIMPLE, VDP_DECODER_PROFILE_VC1_MAIN,
@@ -5862,6 +6128,39 @@ These chips support the following VdpDecoderProfile values:
         o Maximum macroblocks: 8190
      
      
+   o VDP_DECODER_PROFILE_MPEG4_PART2_SP, VDP_DECODER_PROFILE_MPEG4_PART2_ASP,
+     VDP_DECODER_PROFILE_DIVX4_QMOBILE, VDP_DECODER_PROFILE_DIVX4_MOBILE,
+     VDP_DECODER_PROFILE_DIVX4_HOME_THEATER,
+     VDP_DECODER_PROFILE_DIVX4_HD_1080P, VDP_DECODER_PROFILE_DIVX5_QMOBILE,
+     VDP_DECODER_PROFILE_DIVX5_MOBILE, VDP_DECODER_PROFILE_DIVX5_HOME_THEATER,
+     VDP_DECODER_PROFILE_DIVX5_HD_1080P
+     
+        o Complete acceleration.
+     
+        o Minimum width or height: 3 macroblocks (48 pixels).
+     
+        o Maximum width or height: 128 macroblocks (2048 pixels).
+     
+        o Maximum macroblocks: 8192
+     
+     The following features are currently not supported:
+     
+        o GMC (Global Motion Compensation)
+     
+        o Data partitioning
+     
+        o reversible VLC
+     
+     
+
+These GPUs also support VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1.
+
+
+VDPAU FEATURES NOTE 1
+
+GPUs with this note may not support H.264 streams with the following widths:
+49, 54, 59, 64, 113, 118, 123, 128 macroblocks (769-784, 849-864, 929-944,
+1009-1024, 1793-1808, 1873-1888, 1953-1968, 2033-2048 pixels).
 
 
 VDPVIDEOMIXER
@@ -5905,9 +6204,9 @@ enabled. Inverse telecine has the same requirement on the minimum number of
 past/future fields that must be provided. Inverse telecine will not operate
 when "half-rate" de-interlacing is used.
 
-Whilst is is possible to apply de-interlacing algorithms to progressive
-streams using the techniques outlined in the VDPAU documentation, NVIDIA does
-not recommend doing so. One is likely to introduce more artifacts due to the
+While is is possible to apply de-interlacing algorithms to progressive streams
+using the techniques outlined in the VDPAU documentation, NVIDIA does not
+recommend doing so. One is likely to introduce more artifacts due to the
 inverse telecine process than are removed by detection of bad edits etc.
 
 
@@ -6011,13 +6310,13 @@ the pipeline requires at least 2 output surfaces; one that is being actively
 displayed by the presentation queue, and one being rendered to for subsequent
 display. As before, using this minimum number of surfaces may not be optimal.
 For some video streams, the hardware may only achieve real-time decoding on
-average, not for each individual frame. Using compositing APIs to render OSD,
-GUIs, etc., may introduce extra jitter and latency into the pipeline.
-Similarly, system level issues such as scheduler algorithms and system load
-may prevent the CPU portion of the driver from operating for short periods of
-time. All of these potential issues may be solved by allocating more output
-surfaces, and queuing more than one outstanding output surface into the
-presentation queue.
+average, not for each individual frame. Using compositing APIs to render
+on-screen displays, graphical user interfaces, etc., may introduce extra
+jitter and latency into the pipeline. Similarly, system level issues such as
+scheduler algorithms and system load may prevent the CPU portion of the driver
+from operating for short periods of time. All of these potential issues may be
+solved by allocating more output surfaces, and queuing more than one
+outstanding output surface into the presentation queue.
 
 The reason for using more than the minimum number of video surfaces is to
 ensure that the decoding and post-processing pipeline is not stalled, and
old mode 100755 (executable)
new mode 100644 (file)
index 290baa2..914e645
--- a/doc/gl.h
+++ b/doc/gl.h
@@ -31,24 +31,21 @@ extern "C" {
 ** the United States.
 */
 
-#ifndef GLAPIENTRY
-# ifdef _WIN32
-#  if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)  /* Mimic <windef.h> */
-#   define GLAPIENTRY __stdcall
-#  else
-#   define GLAPIENTRY
-#  endif
-# else
-#  define GLAPIENTRY
-# endif
+#ifndef APIENTRY
+#define APIENTRY
 #endif
 
-#ifndef GLAPI
-# define GLAPI extern
+#ifndef WIN32
+#define WINGDIAPI
 #endif
 
-#ifndef GLAPIENTRYP
-# define GLAPIENTRYP GLAPIENTRY *
+#ifndef GLAPI
+# ifdef _WIN32
+#  define GLAPI __stdcall
+# else
+#  define GLAPI
+# endif
+# define __DEFINED_GLAPI
 #endif
 
 /*************************************************************/
@@ -69,63 +66,34 @@ typedef double GLdouble;
 typedef double GLclampd;
 typedef void GLvoid;
 
-#ifndef GL_TYPEDEFS_1_5
-# define GL_TYPEDEFS_1_5
-# if defined(_WIN64)
-    typedef __int64 GLintptr;
-    typedef __int64 GLsizeiptr;
-# elif defined(__x86_64__)
-    typedef long int GLintptr;
-    typedef long int GLsizeiptr;
-# else
-    typedef int GLintptr;
-    typedef int GLsizeiptr;
-# endif
-#endif
-
-#ifndef GL_TYPEDEFS_2_0
-# define GL_TYPEDEFS_2_0
-    typedef char GLchar;
-#endif
-
-#ifndef GL_GLEXT_LEGACY
-# include <GL/glext.h>
-#endif
 
 /*************************************************************/
 
 /* Version */
 #define GL_VERSION_1_1                    1
-#define GL_VERSION_1_2                    1
-#define GL_VERSION_1_3                    1
-#define GL_VERSION_1_4                    1
-#define GL_VERSION_1_5                    1
-#define GL_VERSION_2_0                    1
-#define GL_VERSION_2_1                    1
-#define GL_VERSION_3_0                    1
 
 /* AttribMask */
-#define GL_CURRENT_BIT                                      0x00000001
-#define GL_POINT_BIT                                        0x00000002
-#define GL_LINE_BIT                                         0x00000004
-#define GL_POLYGON_BIT                                      0x00000008
-#define GL_POLYGON_STIPPLE_BIT                              0x00000010
-#define GL_PIXEL_MODE_BIT                                   0x00000020
-#define GL_LIGHTING_BIT                                     0x00000040
-#define GL_FOG_BIT                                          0x00000080
-#define GL_DEPTH_BUFFER_BIT                                 0x00000100
-#define GL_ACCUM_BUFFER_BIT                                 0x00000200
-#define GL_STENCIL_BUFFER_BIT                               0x00000400
-#define GL_VIEWPORT_BIT                                     0x00000800
-#define GL_TRANSFORM_BIT                                    0x00001000
-#define GL_ENABLE_BIT                                       0x00002000
-#define GL_COLOR_BUFFER_BIT                                 0x00004000
-#define GL_HINT_BIT                                         0x00008000
-#define GL_EVAL_BIT                                         0x00010000
-#define GL_LIST_BIT                                         0x00020000
-#define GL_TEXTURE_BIT                                      0x00040000
-#define GL_SCISSOR_BIT                                      0x00080000
-#define GL_ALL_ATTRIB_BITS                                  0xFFFFFFFF
+#define GL_CURRENT_BIT                    0x00000001
+#define GL_POINT_BIT                      0x00000002
+#define GL_LINE_BIT                       0x00000004
+#define GL_POLYGON_BIT                    0x00000008
+#define GL_POLYGON_STIPPLE_BIT            0x00000010
+#define GL_PIXEL_MODE_BIT                 0x00000020
+#define GL_LIGHTING_BIT                   0x00000040
+#define GL_FOG_BIT                        0x00000080
+#define GL_DEPTH_BUFFER_BIT               0x00000100
+#define GL_ACCUM_BUFFER_BIT               0x00000200
+#define GL_STENCIL_BUFFER_BIT             0x00000400
+#define GL_VIEWPORT_BIT                   0x00000800
+#define GL_TRANSFORM_BIT                  0x00001000
+#define GL_ENABLE_BIT                     0x00002000
+#define GL_COLOR_BUFFER_BIT               0x00004000
+#define GL_HINT_BIT                       0x00008000
+#define GL_EVAL_BIT                       0x00010000
+#define GL_LIST_BIT                       0x00020000
+#define GL_TEXTURE_BIT                    0x00040000
+#define GL_SCISSOR_BIT                    0x00080000
+#define GL_ALL_ATTRIB_BITS                0xFFFFFFFF
 
 /* ClearBufferMask */
 /*      GL_COLOR_BUFFER_BIT */
@@ -134,59 +102,59 @@ typedef void GLvoid;
 /*      GL_DEPTH_BUFFER_BIT */
 
 /* ClientAttribMask */
-#define GL_CLIENT_PIXEL_STORE_BIT                           0x00000001
-#define GL_CLIENT_VERTEX_ARRAY_BIT                          0x00000002
-#define GL_CLIENT_ALL_ATTRIB_BITS                           0xFFFFFFFF
+#define GL_CLIENT_PIXEL_STORE_BIT         0x00000001
+#define GL_CLIENT_VERTEX_ARRAY_BIT        0x00000002
+#define GL_CLIENT_ALL_ATTRIB_BITS         0xFFFFFFFF
 
 /* Boolean */
-#define GL_FALSE                                            0
-#define GL_TRUE                                             1
+#define GL_FALSE                          0
+#define GL_TRUE                           1
 
 /* BeginMode */
-#define GL_POINTS                                           0x0000
-#define GL_LINES                                            0x0001
-#define GL_LINE_LOOP                                        0x0002
-#define GL_LINE_STRIP                                       0x0003
-#define GL_TRIANGLES                                        0x0004
-#define GL_TRIANGLE_STRIP                                   0x0005
-#define GL_TRIANGLE_FAN                                     0x0006
-#define GL_QUADS                                            0x0007
-#define GL_QUAD_STRIP                                       0x0008
-#define GL_POLYGON                                          0x0009
+#define GL_POINTS                         0x0000
+#define GL_LINES                          0x0001
+#define GL_LINE_LOOP                      0x0002
+#define GL_LINE_STRIP                     0x0003
+#define GL_TRIANGLES                      0x0004
+#define GL_TRIANGLE_STRIP                 0x0005
+#define GL_TRIANGLE_FAN                   0x0006
+#define GL_QUADS                          0x0007
+#define GL_QUAD_STRIP                     0x0008
+#define GL_POLYGON                        0x0009
 
 /* AccumOp */
-#define GL_ACCUM                                            0x0100
-#define GL_LOAD                                             0x0101
-#define GL_RETURN                                           0x0102
-#define GL_MULT                                             0x0103
-#define GL_ADD                                              0x0104
+#define GL_ACCUM                          0x0100
+#define GL_LOAD                           0x0101
+#define GL_RETURN                         0x0102
+#define GL_MULT                           0x0103
+#define GL_ADD                            0x0104
 
 /* AlphaFunction */
-#define GL_NEVER                                            0x0200
-#define GL_LESS                                             0x0201
-#define GL_EQUAL                                            0x0202
-#define GL_LEQUAL                                           0x0203
-#define GL_GREATER                                          0x0204
-#define GL_NOTEQUAL                                         0x0205
-#define GL_GEQUAL                                           0x0206
-#define GL_ALWAYS                                           0x0207
+#define GL_NEVER                          0x0200
+#define GL_LESS                           0x0201
+#define GL_EQUAL                          0x0202
+#define GL_LEQUAL                         0x0203
+#define GL_GREATER                        0x0204
+#define GL_NOTEQUAL                       0x0205
+#define GL_GEQUAL                         0x0206
+#define GL_ALWAYS                         0x0207
 
 /* BlendingFactorDest */
-#define GL_ZERO                                             0
-#define GL_ONE                                              1
-#define GL_SRC_COLOR                                        0x0300
-#define GL_ONE_MINUS_SRC_COLOR                              0x0301
-#define GL_SRC_ALPHA                                        0x0302
-#define GL_ONE_MINUS_SRC_ALPHA                              0x0303
-#define GL_DST_ALPHA                                        0x0304
-#define GL_ONE_MINUS_DST_ALPHA                              0x0305
+#define GL_ZERO                           0
+#define GL_ONE                            1
+#define GL_SRC_COLOR                      0x0300
+#define GL_ONE_MINUS_SRC_COLOR            0x0301
+#define GL_SRC_ALPHA                      0x0302
+#define GL_ONE_MINUS_SRC_ALPHA            0x0303
+#define GL_DST_ALPHA                      0x0304
+#define GL_ONE_MINUS_DST_ALPHA            0x0305
 
 /* BlendingFactorSrc */
 /*      GL_ZERO */
 /*      GL_ONE */
-#define GL_DST_COLOR                                        0x0306
-#define GL_ONE_MINUS_DST_COLOR                              0x0307
-#define GL_SRC_ALPHA_SATURATE                               0x0308
+#define GL_DST_COLOR                      0x0306
+#define GL_ONE_MINUS_DST_COLOR            0x0307
+#define GL_SRC_ALPHA_SATURATE             0x0308
 /*      GL_SRC_ALPHA */
 /*      GL_ONE_MINUS_SRC_ALPHA */
 /*      GL_DST_ALPHA */
@@ -230,24 +198,20 @@ typedef void GLvoid;
 /*      GL_ALWAYS */
 
 /* DrawBufferMode */
-#define GL_NONE                                             0
-#define GL_FRONT_LEFT                                       0x0400
-#define GL_FRONT_RIGHT                                      0x0401
-#define GL_BACK_LEFT                                        0x0402
-#define GL_BACK_RIGHT                                       0x0403
-#define GL_FRONT                                            0x0404
-#define GL_BACK                                             0x0405
-#define GL_LEFT                                             0x0406
-#define GL_RIGHT                                            0x0407
-#define GL_FRONT_AND_BACK                                   0x0408
-#define GL_AUX0                                             0x0409
-#define GL_AUX1                                             0x040A
-#define GL_AUX2                                             0x040B
-#define GL_AUX3                                             0x040C
-#define GL_AUX4                                             0x040D
-#define GL_AUX5                                             0x040E
-#define GL_AUX6                                             0x040F
-#define GL_AUX7                                             0x0410
+#define GL_NONE                           0
+#define GL_FRONT_LEFT                     0x0400
+#define GL_FRONT_RIGHT                    0x0401
+#define GL_BACK_LEFT                      0x0402
+#define GL_BACK_RIGHT                     0x0403
+#define GL_FRONT                          0x0404
+#define GL_BACK                           0x0405
+#define GL_LEFT                           0x0406
+#define GL_RIGHT                          0x0407
+#define GL_FRONT_AND_BACK                 0x0408
+#define GL_AUX0                           0x0409
+#define GL_AUX1                           0x040A
+#define GL_AUX2                           0x040B
+#define GL_AUX3                           0x040C
 
 /* EnableCap */
 /*      GL_FOG */
@@ -318,36 +282,36 @@ typedef void GLvoid;
 /*      GL_EDGE_FLAG_ARRAY */
 
 /* ErrorCode */
-#define GL_NO_ERROR                                         0
-#define GL_INVALID_ENUM                                     0x0500
-#define GL_INVALID_VALUE                                    0x0501
-#define GL_INVALID_OPERATION                                0x0502
-#define GL_STACK_OVERFLOW                                   0x0503
-#define GL_STACK_UNDERFLOW                                  0x0504
-#define GL_OUT_OF_MEMORY                                    0x0505
-#define GL_TABLE_TOO_LARGE                                  0x8031
+#define GL_NO_ERROR                       0
+#define GL_INVALID_ENUM                   0x0500
+#define GL_INVALID_VALUE                  0x0501
+#define GL_INVALID_OPERATION              0x0502
+#define GL_STACK_OVERFLOW                 0x0503
+#define GL_STACK_UNDERFLOW                0x0504
+#define GL_OUT_OF_MEMORY                  0x0505
+#define GL_TABLE_TOO_LARGE                0x8031
 
 /* FeedbackType */
-#define GL_2D                                               0x0600
-#define GL_3D                                               0x0601
-#define GL_3D_COLOR                                         0x0602
-#define GL_3D_COLOR_TEXTURE                                 0x0603
-#define GL_4D_COLOR_TEXTURE                                 0x0604
+#define GL_2D                             0x0600
+#define GL_3D                             0x0601
+#define GL_3D_COLOR                       0x0602
+#define GL_3D_COLOR_TEXTURE               0x0603
+#define GL_4D_COLOR_TEXTURE               0x0604
 
 /* FeedBackToken */
-#define GL_PASS_THROUGH_TOKEN                               0x0700
-#define GL_POINT_TOKEN                                      0x0701
-#define GL_LINE_TOKEN                                       0x0702
-#define GL_POLYGON_TOKEN                                    0x0703
-#define GL_BITMAP_TOKEN                                     0x0704
-#define GL_DRAW_PIXEL_TOKEN                                 0x0705
-#define GL_COPY_PIXEL_TOKEN                                 0x0706
-#define GL_LINE_RESET_TOKEN                                 0x0707
+#define GL_PASS_THROUGH_TOKEN             0x0700
+#define GL_POINT_TOKEN                    0x0701
+#define GL_LINE_TOKEN                     0x0702
+#define GL_POLYGON_TOKEN                  0x0703
+#define GL_BITMAP_TOKEN                   0x0704
+#define GL_DRAW_PIXEL_TOKEN               0x0705
+#define GL_COPY_PIXEL_TOKEN               0x0706
+#define GL_LINE_RESET_TOKEN               0x0707
 
 /* FogMode */
 /*      GL_LINEAR */
-#define GL_EXP                                              0x0800
-#define GL_EXP2                                             0x0801
+#define GL_EXP                            0x0800
+#define GL_EXP2                           0x0801
 
 /* FogParameter */
 /*      GL_FOG_COLOR */
@@ -358,267 +322,267 @@ typedef void GLvoid;
 /*      GL_FOG_START */
 
 /* FrontFaceDirection */
-#define GL_CW                                               0x0900
-#define GL_CCW                                              0x0901
+#define GL_CW                             0x0900
+#define GL_CCW                            0x0901
 
 /* GetMapQuery */
-#define GL_COEFF                                            0x0A00
-#define GL_ORDER                                            0x0A01
-#define GL_DOMAIN                                           0x0A02
+#define GL_COEFF                          0x0A00
+#define GL_ORDER                          0x0A01
+#define GL_DOMAIN                         0x0A02
 
 /* GetPixelMap */
-#define GL_PIXEL_MAP_I_TO_I                                 0x0C70
-#define GL_PIXEL_MAP_S_TO_S                                 0x0C71
-#define GL_PIXEL_MAP_I_TO_R                                 0x0C72
-#define GL_PIXEL_MAP_I_TO_G                                 0x0C73
-#define GL_PIXEL_MAP_I_TO_B                                 0x0C74
-#define GL_PIXEL_MAP_I_TO_A                                 0x0C75
-#define GL_PIXEL_MAP_R_TO_R                                 0x0C76
-#define GL_PIXEL_MAP_G_TO_G                                 0x0C77
-#define GL_PIXEL_MAP_B_TO_B                                 0x0C78
-#define GL_PIXEL_MAP_A_TO_A                                 0x0C79
+#define GL_PIXEL_MAP_I_TO_I               0x0C70
+#define GL_PIXEL_MAP_S_TO_S               0x0C71
+#define GL_PIXEL_MAP_I_TO_R               0x0C72
+#define GL_PIXEL_MAP_I_TO_G               0x0C73
+#define GL_PIXEL_MAP_I_TO_B               0x0C74
+#define GL_PIXEL_MAP_I_TO_A               0x0C75
+#define GL_PIXEL_MAP_R_TO_R               0x0C76
+#define GL_PIXEL_MAP_G_TO_G               0x0C77
+#define GL_PIXEL_MAP_B_TO_B               0x0C78
+#define GL_PIXEL_MAP_A_TO_A               0x0C79
 
 /* GetPointervPName */
-#define GL_VERTEX_ARRAY_POINTER                             0x808E
-#define GL_NORMAL_ARRAY_POINTER                             0x808F
-#define GL_COLOR_ARRAY_POINTER                              0x8090
-#define GL_INDEX_ARRAY_POINTER                              0x8091
-#define GL_TEXTURE_COORD_ARRAY_POINTER                      0x8092
-#define GL_EDGE_FLAG_ARRAY_POINTER                          0x8093
+#define GL_VERTEX_ARRAY_POINTER           0x808E
+#define GL_NORMAL_ARRAY_POINTER           0x808F
+#define GL_COLOR_ARRAY_POINTER            0x8090
+#define GL_INDEX_ARRAY_POINTER            0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER    0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER        0x8093
 
 /* GetPName */
-#define GL_CURRENT_COLOR                                    0x0B00
-#define GL_CURRENT_INDEX                                    0x0B01
-#define GL_CURRENT_NORMAL                                   0x0B02
-#define GL_CURRENT_TEXTURE_COORDS                           0x0B03
-#define GL_CURRENT_RASTER_COLOR                             0x0B04
-#define GL_CURRENT_RASTER_INDEX                             0x0B05
-#define GL_CURRENT_RASTER_TEXTURE_COORDS                    0x0B06
-#define GL_CURRENT_RASTER_POSITION                          0x0B07
-#define GL_CURRENT_RASTER_POSITION_VALID                    0x0B08
-#define GL_CURRENT_RASTER_DISTANCE                          0x0B09
-#define GL_POINT_SMOOTH                                     0x0B10
-#define GL_POINT_SIZE                                       0x0B11
-#define GL_SMOOTH_POINT_SIZE_RANGE                          0x0B12
-#define GL_SMOOTH_POINT_SIZE_GRANULARITY                    0x0B13
-#define GL_POINT_SIZE_RANGE                                 GL_SMOOTH_POINT_SIZE_RANGE
-#define GL_POINT_SIZE_GRANULARITY                           GL_SMOOTH_POINT_SIZE_GRANULARITY
-#define GL_LINE_SMOOTH                                      0x0B20
-#define GL_LINE_WIDTH                                       0x0B21
-#define GL_SMOOTH_LINE_WIDTH_RANGE                          0x0B22
-#define GL_SMOOTH_LINE_WIDTH_GRANULARITY                    0x0B23
-#define GL_LINE_WIDTH_RANGE                                 GL_SMOOTH_LINE_WIDTH_RANGE
-#define GL_LINE_WIDTH_GRANULARITY                           GL_SMOOTH_LINE_WIDTH_GRANULARITY
-#define GL_LINE_STIPPLE                                     0x0B24
-#define GL_LINE_STIPPLE_PATTERN                             0x0B25
-#define GL_LINE_STIPPLE_REPEAT                              0x0B26
-#define GL_LIST_MODE                                        0x0B30
-#define GL_MAX_LIST_NESTING                                 0x0B31
-#define GL_LIST_BASE                                        0x0B32
-#define GL_LIST_INDEX                                       0x0B33
-#define GL_POLYGON_MODE                                     0x0B40
-#define GL_POLYGON_SMOOTH                                   0x0B41
-#define GL_POLYGON_STIPPLE                                  0x0B42
-#define GL_EDGE_FLAG                                        0x0B43
-#define GL_CULL_FACE                                        0x0B44
-#define GL_CULL_FACE_MODE                                   0x0B45
-#define GL_FRONT_FACE                                       0x0B46
-#define GL_LIGHTING                                         0x0B50
-#define GL_LIGHT_MODEL_LOCAL_VIEWER                         0x0B51
-#define GL_LIGHT_MODEL_TWO_SIDE                             0x0B52
-#define GL_LIGHT_MODEL_AMBIENT                              0x0B53
-#define GL_SHADE_MODEL                                      0x0B54
-#define GL_COLOR_MATERIAL_FACE                              0x0B55
-#define GL_COLOR_MATERIAL_PARAMETER                         0x0B56
-#define GL_COLOR_MATERIAL                                   0x0B57
-#define GL_FOG                                              0x0B60
-#define GL_FOG_INDEX                                        0x0B61
-#define GL_FOG_DENSITY                                      0x0B62
-#define GL_FOG_START                                        0x0B63
-#define GL_FOG_END                                          0x0B64
-#define GL_FOG_MODE                                         0x0B65
-#define GL_FOG_COLOR                                        0x0B66
-#define GL_DEPTH_RANGE                                      0x0B70
-#define GL_DEPTH_TEST                                       0x0B71
-#define GL_DEPTH_WRITEMASK                                  0x0B72
-#define GL_DEPTH_CLEAR_VALUE                                0x0B73
-#define GL_DEPTH_FUNC                                       0x0B74
-#define GL_ACCUM_CLEAR_VALUE                                0x0B80
-#define GL_STENCIL_TEST                                     0x0B90
-#define GL_STENCIL_CLEAR_VALUE                              0x0B91
-#define GL_STENCIL_FUNC                                     0x0B92
-#define GL_STENCIL_VALUE_MASK                               0x0B93
-#define GL_STENCIL_FAIL                                     0x0B94
-#define GL_STENCIL_PASS_DEPTH_FAIL                          0x0B95
-#define GL_STENCIL_PASS_DEPTH_PASS                          0x0B96
-#define GL_STENCIL_REF                                      0x0B97
-#define GL_STENCIL_WRITEMASK                                0x0B98
-#define GL_MATRIX_MODE                                      0x0BA0
-#define GL_NORMALIZE                                        0x0BA1
-#define GL_VIEWPORT                                         0x0BA2
-#define GL_MODELVIEW_STACK_DEPTH                            0x0BA3
-#define GL_PROJECTION_STACK_DEPTH                           0x0BA4
-#define GL_TEXTURE_STACK_DEPTH                              0x0BA5
-#define GL_MODELVIEW_MATRIX                                 0x0BA6
-#define GL_PROJECTION_MATRIX                                0x0BA7
-#define GL_TEXTURE_MATRIX                                   0x0BA8
-#define GL_ATTRIB_STACK_DEPTH                               0x0BB0
-#define GL_CLIENT_ATTRIB_STACK_DEPTH                        0x0BB1
-#define GL_ALPHA_TEST                                       0x0BC0
-#define GL_ALPHA_TEST_FUNC                                  0x0BC1
-#define GL_ALPHA_TEST_REF                                   0x0BC2
-#define GL_DITHER                                           0x0BD0
-#define GL_BLEND_DST                                        0x0BE0
-#define GL_BLEND_SRC                                        0x0BE1
-#define GL_BLEND                                            0x0BE2
-#define GL_LOGIC_OP_MODE                                    0x0BF0
-#define GL_INDEX_LOGIC_OP                                   0x0BF1
-#define GL_LOGIC_OP                                         GL_INDEX_LOGIC_OP
-#define GL_COLOR_LOGIC_OP                                   0x0BF2
-#define GL_AUX_BUFFERS                                      0x0C00
-#define GL_DRAW_BUFFER                                      0x0C01
-#define GL_READ_BUFFER                                      0x0C02
-#define GL_SCISSOR_BOX                                      0x0C10
-#define GL_SCISSOR_TEST                                     0x0C11
-#define GL_INDEX_CLEAR_VALUE                                0x0C20
-#define GL_INDEX_WRITEMASK                                  0x0C21
-#define GL_COLOR_CLEAR_VALUE                                0x0C22
-#define GL_COLOR_WRITEMASK                                  0x0C23
-#define GL_INDEX_MODE                                       0x0C30
-#define GL_RGBA_MODE                                        0x0C31
-#define GL_DOUBLEBUFFER                                     0x0C32
-#define GL_STEREO                                           0x0C33
-#define GL_RENDER_MODE                                      0x0C40
-#define GL_PERSPECTIVE_CORRECTION_HINT                      0x0C50
-#define GL_POINT_SMOOTH_HINT                                0x0C51
-#define GL_LINE_SMOOTH_HINT                                 0x0C52
-#define GL_POLYGON_SMOOTH_HINT                              0x0C53
-#define GL_FOG_HINT                                         0x0C54
-#define GL_TEXTURE_GEN_S                                    0x0C60
-#define GL_TEXTURE_GEN_T                                    0x0C61
-#define GL_TEXTURE_GEN_R                                    0x0C62
-#define GL_TEXTURE_GEN_Q                                    0x0C63
-#define GL_PIXEL_MAP_I_TO_I_SIZE                            0x0CB0
-#define GL_PIXEL_MAP_S_TO_S_SIZE                            0x0CB1
-#define GL_PIXEL_MAP_I_TO_R_SIZE                            0x0CB2
-#define GL_PIXEL_MAP_I_TO_G_SIZE                            0x0CB3
-#define GL_PIXEL_MAP_I_TO_B_SIZE                            0x0CB4
-#define GL_PIXEL_MAP_I_TO_A_SIZE                            0x0CB5
-#define GL_PIXEL_MAP_R_TO_R_SIZE                            0x0CB6
-#define GL_PIXEL_MAP_G_TO_G_SIZE                            0x0CB7
-#define GL_PIXEL_MAP_B_TO_B_SIZE                            0x0CB8
-#define GL_PIXEL_MAP_A_TO_A_SIZE                            0x0CB9
-#define GL_UNPACK_SWAP_BYTES                                0x0CF0
-#define GL_UNPACK_LSB_FIRST                                 0x0CF1
-#define GL_UNPACK_ROW_LENGTH                                0x0CF2
-#define GL_UNPACK_SKIP_ROWS                                 0x0CF3
-#define GL_UNPACK_SKIP_PIXELS                               0x0CF4
-#define GL_UNPACK_ALIGNMENT                                 0x0CF5
-#define GL_PACK_SWAP_BYTES                                  0x0D00
-#define GL_PACK_LSB_FIRST                                   0x0D01
-#define GL_PACK_ROW_LENGTH                                  0x0D02
-#define GL_PACK_SKIP_ROWS                                   0x0D03
-#define GL_PACK_SKIP_PIXELS                                 0x0D04
-#define GL_PACK_ALIGNMENT                                   0x0D05
-#define GL_MAP_COLOR                                        0x0D10
-#define GL_MAP_STENCIL                                      0x0D11
-#define GL_INDEX_SHIFT                                      0x0D12
-#define GL_INDEX_OFFSET                                     0x0D13
-#define GL_RED_SCALE                                        0x0D14
-#define GL_RED_BIAS                                         0x0D15
-#define GL_ZOOM_X                                           0x0D16
-#define GL_ZOOM_Y                                           0x0D17
-#define GL_GREEN_SCALE                                      0x0D18
-#define GL_GREEN_BIAS                                       0x0D19
-#define GL_BLUE_SCALE                                       0x0D1A
-#define GL_BLUE_BIAS                                        0x0D1B
-#define GL_ALPHA_SCALE                                      0x0D1C
-#define GL_ALPHA_BIAS                                       0x0D1D
-#define GL_DEPTH_SCALE                                      0x0D1E
-#define GL_DEPTH_BIAS                                       0x0D1F
-#define GL_MAX_EVAL_ORDER                                   0x0D30
-#define GL_MAX_LIGHTS                                       0x0D31
-#define GL_MAX_CLIP_PLANES                                  0x0D32
-#define GL_MAX_TEXTURE_SIZE                                 0x0D33
-#define GL_MAX_PIXEL_MAP_TABLE                              0x0D34
-#define GL_MAX_ATTRIB_STACK_DEPTH                           0x0D35
-#define GL_MAX_MODELVIEW_STACK_DEPTH                        0x0D36
-#define GL_MAX_NAME_STACK_DEPTH                             0x0D37
-#define GL_MAX_PROJECTION_STACK_DEPTH                       0x0D38
-#define GL_MAX_TEXTURE_STACK_DEPTH                          0x0D39
-#define GL_MAX_VIEWPORT_DIMS                                0x0D3A
-#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH                    0x0D3B
-#define GL_SUBPIXEL_BITS                                    0x0D50
-#define GL_INDEX_BITS                                       0x0D51
-#define GL_RED_BITS                                         0x0D52
-#define GL_GREEN_BITS                                       0x0D53
-#define GL_BLUE_BITS                                        0x0D54
-#define GL_ALPHA_BITS                                       0x0D55
-#define GL_DEPTH_BITS                                       0x0D56
-#define GL_STENCIL_BITS                                     0x0D57
-#define GL_ACCUM_RED_BITS                                   0x0D58
-#define GL_ACCUM_GREEN_BITS                                 0x0D59
-#define GL_ACCUM_BLUE_BITS                                  0x0D5A
-#define GL_ACCUM_ALPHA_BITS                                 0x0D5B
-#define GL_NAME_STACK_DEPTH                                 0x0D70
-#define GL_AUTO_NORMAL                                      0x0D80
-#define GL_MAP1_COLOR_4                                     0x0D90
-#define GL_MAP1_INDEX                                       0x0D91
-#define GL_MAP1_NORMAL                                      0x0D92
-#define GL_MAP1_TEXTURE_COORD_1                             0x0D93
-#define GL_MAP1_TEXTURE_COORD_2                             0x0D94
-#define GL_MAP1_TEXTURE_COORD_3                             0x0D95
-#define GL_MAP1_TEXTURE_COORD_4                             0x0D96
-#define GL_MAP1_VERTEX_3                                    0x0D97
-#define GL_MAP1_VERTEX_4                                    0x0D98
-#define GL_MAP2_COLOR_4                                     0x0DB0
-#define GL_MAP2_INDEX                                       0x0DB1
-#define GL_MAP2_NORMAL                                      0x0DB2
-#define GL_MAP2_TEXTURE_COORD_1                             0x0DB3
-#define GL_MAP2_TEXTURE_COORD_2                             0x0DB4
-#define GL_MAP2_TEXTURE_COORD_3                             0x0DB5
-#define GL_MAP2_TEXTURE_COORD_4                             0x0DB6
-#define GL_MAP2_VERTEX_3                                    0x0DB7
-#define GL_MAP2_VERTEX_4                                    0x0DB8
-#define GL_MAP1_GRID_DOMAIN                                 0x0DD0
-#define GL_MAP1_GRID_SEGMENTS                               0x0DD1
-#define GL_MAP2_GRID_DOMAIN                                 0x0DD2
-#define GL_MAP2_GRID_SEGMENTS                               0x0DD3
-#define GL_TEXTURE_1D                                       0x0DE0
-#define GL_TEXTURE_2D                                       0x0DE1
-#define GL_FEEDBACK_BUFFER_POINTER                          0x0DF0
-#define GL_FEEDBACK_BUFFER_SIZE                             0x0DF1
-#define GL_FEEDBACK_BUFFER_TYPE                             0x0DF2
-#define GL_SELECTION_BUFFER_POINTER                         0x0DF3
-#define GL_SELECTION_BUFFER_SIZE                            0x0DF4
-#define GL_POLYGON_OFFSET_UNITS                             0x2A00
-#define GL_POLYGON_OFFSET_POINT                             0x2A01
-#define GL_POLYGON_OFFSET_LINE                              0x2A02
-#define GL_POLYGON_OFFSET_FILL                              0x8037
-#define GL_POLYGON_OFFSET_FACTOR                            0x8038
-#define GL_TEXTURE_BINDING_1D                               0x8068
-#define GL_TEXTURE_BINDING_2D                               0x8069
-#define GL_TEXTURE_BINDING_3D                               0x806A
-#define GL_VERTEX_ARRAY                                     0x8074
-#define GL_NORMAL_ARRAY                                     0x8075
-#define GL_COLOR_ARRAY                                      0x8076
-#define GL_INDEX_ARRAY                                      0x8077
-#define GL_TEXTURE_COORD_ARRAY                              0x8078
-#define GL_EDGE_FLAG_ARRAY                                  0x8079
-#define GL_VERTEX_ARRAY_SIZE                                0x807A
-#define GL_VERTEX_ARRAY_TYPE                                0x807B
-#define GL_VERTEX_ARRAY_STRIDE                              0x807C
-#define GL_NORMAL_ARRAY_TYPE                                0x807E
-#define GL_NORMAL_ARRAY_STRIDE                              0x807F
-#define GL_COLOR_ARRAY_SIZE                                 0x8081
-#define GL_COLOR_ARRAY_TYPE                                 0x8082
-#define GL_COLOR_ARRAY_STRIDE                               0x8083
-#define GL_INDEX_ARRAY_TYPE                                 0x8085
-#define GL_INDEX_ARRAY_STRIDE                               0x8086
-#define GL_TEXTURE_COORD_ARRAY_SIZE                         0x8088
-#define GL_TEXTURE_COORD_ARRAY_TYPE                         0x8089
-#define GL_TEXTURE_COORD_ARRAY_STRIDE                       0x808A
-#define GL_EDGE_FLAG_ARRAY_STRIDE                           0x808C
+#define GL_CURRENT_COLOR                  0x0B00
+#define GL_CURRENT_INDEX                  0x0B01
+#define GL_CURRENT_NORMAL                 0x0B02
+#define GL_CURRENT_TEXTURE_COORDS         0x0B03
+#define GL_CURRENT_RASTER_COLOR           0x0B04
+#define GL_CURRENT_RASTER_INDEX           0x0B05
+#define GL_CURRENT_RASTER_TEXTURE_COORDS  0x0B06
+#define GL_CURRENT_RASTER_POSITION        0x0B07
+#define GL_CURRENT_RASTER_POSITION_VALID  0x0B08
+#define GL_CURRENT_RASTER_DISTANCE        0x0B09
+#define GL_POINT_SMOOTH                   0x0B10
+#define GL_POINT_SIZE                     0x0B11
+#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
+#define GL_POINT_SIZE_RANGE               GL_SMOOTH_POINT_SIZE_RANGE
+#define GL_POINT_SIZE_GRANULARITY         GL_SMOOTH_POINT_SIZE_GRANULARITY
+#define GL_LINE_SMOOTH                    0x0B20
+#define GL_LINE_WIDTH                     0x0B21
+#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
+#define GL_LINE_WIDTH_RANGE               GL_SMOOTH_LINE_WIDTH_RANGE
+#define GL_LINE_WIDTH_GRANULARITY         GL_SMOOTH_LINE_WIDTH_GRANULARITY
+#define GL_LINE_STIPPLE                   0x0B24
+#define GL_LINE_STIPPLE_PATTERN           0x0B25
+#define GL_LINE_STIPPLE_REPEAT            0x0B26
+#define GL_LIST_MODE                      0x0B30
+#define GL_MAX_LIST_NESTING               0x0B31
+#define GL_LIST_BASE                      0x0B32
+#define GL_LIST_INDEX                     0x0B33
+#define GL_POLYGON_MODE                   0x0B40
+#define GL_POLYGON_SMOOTH                 0x0B41
+#define GL_POLYGON_STIPPLE                0x0B42
+#define GL_EDGE_FLAG                      0x0B43
+#define GL_CULL_FACE                      0x0B44
+#define GL_CULL_FACE_MODE                 0x0B45
+#define GL_FRONT_FACE                     0x0B46
+#define GL_LIGHTING                       0x0B50
+#define GL_LIGHT_MODEL_LOCAL_VIEWER       0x0B51
+#define GL_LIGHT_MODEL_TWO_SIDE           0x0B52
+#define GL_LIGHT_MODEL_AMBIENT            0x0B53
+#define GL_SHADE_MODEL                    0x0B54
+#define GL_COLOR_MATERIAL_FACE            0x0B55
+#define GL_COLOR_MATERIAL_PARAMETER       0x0B56
+#define GL_COLOR_MATERIAL                 0x0B57
+#define GL_FOG                            0x0B60
+#define GL_FOG_INDEX                      0x0B61
+#define GL_FOG_DENSITY                    0x0B62
+#define GL_FOG_START                      0x0B63
+#define GL_FOG_END                        0x0B64
+#define GL_FOG_MODE                       0x0B65
+#define GL_FOG_COLOR                      0x0B66
+#define GL_DEPTH_RANGE                    0x0B70
+#define GL_DEPTH_TEST                     0x0B71
+#define GL_DEPTH_WRITEMASK                0x0B72
+#define GL_DEPTH_CLEAR_VALUE              0x0B73
+#define GL_DEPTH_FUNC                     0x0B74
+#define GL_ACCUM_CLEAR_VALUE              0x0B80
+#define GL_STENCIL_TEST                   0x0B90
+#define GL_STENCIL_CLEAR_VALUE            0x0B91
+#define GL_STENCIL_FUNC                   0x0B92
+#define GL_STENCIL_VALUE_MASK             0x0B93
+#define GL_STENCIL_FAIL                   0x0B94
+#define GL_STENCIL_PASS_DEPTH_FAIL        0x0B95
+#define GL_STENCIL_PASS_DEPTH_PASS        0x0B96
+#define GL_STENCIL_REF                    0x0B97
+#define GL_STENCIL_WRITEMASK              0x0B98
+#define GL_MATRIX_MODE                    0x0BA0
+#define GL_NORMALIZE                      0x0BA1
+#define GL_VIEWPORT                       0x0BA2
+#define GL_MODELVIEW_STACK_DEPTH          0x0BA3
+#define GL_PROJECTION_STACK_DEPTH         0x0BA4
+#define GL_TEXTURE_STACK_DEPTH            0x0BA5
+#define GL_MODELVIEW_MATRIX               0x0BA6
+#define GL_PROJECTION_MATRIX              0x0BA7
+#define GL_TEXTURE_MATRIX                 0x0BA8
+#define GL_ATTRIB_STACK_DEPTH             0x0BB0
+#define GL_CLIENT_ATTRIB_STACK_DEPTH      0x0BB1
+#define GL_ALPHA_TEST                     0x0BC0
+#define GL_ALPHA_TEST_FUNC                0x0BC1
+#define GL_ALPHA_TEST_REF                 0x0BC2
+#define GL_DITHER                         0x0BD0
+#define GL_BLEND_DST                      0x0BE0
+#define GL_BLEND_SRC                      0x0BE1
+#define GL_BLEND                          0x0BE2
+#define GL_LOGIC_OP_MODE                  0x0BF0
+#define GL_INDEX_LOGIC_OP                 0x0BF1
+#define GL_LOGIC_OP                       GL_INDEX_LOGIC_OP
+#define GL_COLOR_LOGIC_OP                 0x0BF2
+#define GL_AUX_BUFFERS                    0x0C00
+#define GL_DRAW_BUFFER                    0x0C01
+#define GL_READ_BUFFER                    0x0C02
+#define GL_SCISSOR_BOX                    0x0C10
+#define GL_SCISSOR_TEST                   0x0C11
+#define GL_INDEX_CLEAR_VALUE              0x0C20
+#define GL_INDEX_WRITEMASK                0x0C21
+#define GL_COLOR_CLEAR_VALUE              0x0C22
+#define GL_COLOR_WRITEMASK                0x0C23
+#define GL_INDEX_MODE                     0x0C30
+#define GL_RGBA_MODE                      0x0C31
+#define GL_DOUBLEBUFFER                   0x0C32
+#define GL_STEREO                         0x0C33
+#define GL_RENDER_MODE                    0x0C40
+#define GL_PERSPECTIVE_CORRECTION_HINT    0x0C50
+#define GL_POINT_SMOOTH_HINT              0x0C51
+#define GL_LINE_SMOOTH_HINT               0x0C52
+#define GL_POLYGON_SMOOTH_HINT            0x0C53
+#define GL_FOG_HINT                       0x0C54
+#define GL_TEXTURE_GEN_S                  0x0C60
+#define GL_TEXTURE_GEN_T                  0x0C61
+#define GL_TEXTURE_GEN_R                  0x0C62
+#define GL_TEXTURE_GEN_Q                  0x0C63
+#define GL_PIXEL_MAP_I_TO_I_SIZE          0x0CB0
+#define GL_PIXEL_MAP_S_TO_S_SIZE          0x0CB1
+#define GL_PIXEL_MAP_I_TO_R_SIZE          0x0CB2
+#define GL_PIXEL_MAP_I_TO_G_SIZE          0x0CB3
+#define GL_PIXEL_MAP_I_TO_B_SIZE          0x0CB4
+#define GL_PIXEL_MAP_I_TO_A_SIZE          0x0CB5
+#define GL_PIXEL_MAP_R_TO_R_SIZE          0x0CB6
+#define GL_PIXEL_MAP_G_TO_G_SIZE          0x0CB7
+#define GL_PIXEL_MAP_B_TO_B_SIZE          0x0CB8
+#define GL_PIXEL_MAP_A_TO_A_SIZE          0x0CB9
+#define GL_UNPACK_SWAP_BYTES              0x0CF0
+#define GL_UNPACK_LSB_FIRST               0x0CF1
+#define GL_UNPACK_ROW_LENGTH              0x0CF2
+#define GL_UNPACK_SKIP_ROWS               0x0CF3
+#define GL_UNPACK_SKIP_PIXELS             0x0CF4
+#define GL_UNPACK_ALIGNMENT               0x0CF5
+#define GL_PACK_SWAP_BYTES                0x0D00
+#define GL_PACK_LSB_FIRST                 0x0D01
+#define GL_PACK_ROW_LENGTH                0x0D02
+#define GL_PACK_SKIP_ROWS                 0x0D03
+#define GL_PACK_SKIP_PIXELS               0x0D04
+#define GL_PACK_ALIGNMENT                 0x0D05
+#define GL_MAP_COLOR                      0x0D10
+#define GL_MAP_STENCIL                    0x0D11
+#define GL_INDEX_SHIFT                    0x0D12
+#define GL_INDEX_OFFSET                   0x0D13
+#define GL_RED_SCALE                      0x0D14
+#define GL_RED_BIAS                       0x0D15
+#define GL_ZOOM_X                         0x0D16
+#define GL_ZOOM_Y                         0x0D17
+#define GL_GREEN_SCALE                    0x0D18
+#define GL_GREEN_BIAS                     0x0D19
+#define GL_BLUE_SCALE                     0x0D1A
+#define GL_BLUE_BIAS                      0x0D1B
+#define GL_ALPHA_SCALE                    0x0D1C
+#define GL_ALPHA_BIAS                     0x0D1D
+#define GL_DEPTH_SCALE                    0x0D1E
+#define GL_DEPTH_BIAS                     0x0D1F
+#define GL_MAX_EVAL_ORDER                 0x0D30
+#define GL_MAX_LIGHTS                     0x0D31
+#define GL_MAX_CLIP_PLANES                0x0D32
+#define GL_MAX_TEXTURE_SIZE               0x0D33
+#define GL_MAX_PIXEL_MAP_TABLE            0x0D34
+#define GL_MAX_ATTRIB_STACK_DEPTH         0x0D35
+#define GL_MAX_MODELVIEW_STACK_DEPTH      0x0D36
+#define GL_MAX_NAME_STACK_DEPTH           0x0D37
+#define GL_MAX_PROJECTION_STACK_DEPTH     0x0D38
+#define GL_MAX_TEXTURE_STACK_DEPTH        0x0D39
+#define GL_MAX_VIEWPORT_DIMS              0x0D3A
+#define GL_MAX_CLIENT_ATTRIB_STACK_DEPTH  0x0D3B
+#define GL_SUBPIXEL_BITS                  0x0D50
+#define GL_INDEX_BITS                     0x0D51
+#define GL_RED_BITS                       0x0D52
+#define GL_GREEN_BITS                     0x0D53
+#define GL_BLUE_BITS                      0x0D54
+#define GL_ALPHA_BITS                     0x0D55
+#define GL_DEPTH_BITS                     0x0D56
+#define GL_STENCIL_BITS                   0x0D57
+#define GL_ACCUM_RED_BITS                 0x0D58
+#define GL_ACCUM_GREEN_BITS               0x0D59
+#define GL_ACCUM_BLUE_BITS                0x0D5A
+#define GL_ACCUM_ALPHA_BITS               0x0D5B
+#define GL_NAME_STACK_DEPTH               0x0D70
+#define GL_AUTO_NORMAL                    0x0D80
+#define GL_MAP1_COLOR_4                   0x0D90
+#define GL_MAP1_INDEX                     0x0D91
+#define GL_MAP1_NORMAL                    0x0D92
+#define GL_MAP1_TEXTURE_COORD_1           0x0D93
+#define GL_MAP1_TEXTURE_COORD_2           0x0D94
+#define GL_MAP1_TEXTURE_COORD_3           0x0D95
+#define GL_MAP1_TEXTURE_COORD_4           0x0D96
+#define GL_MAP1_VERTEX_3                  0x0D97
+#define GL_MAP1_VERTEX_4                  0x0D98
+#define GL_MAP2_COLOR_4                   0x0DB0
+#define GL_MAP2_INDEX                     0x0DB1
+#define GL_MAP2_NORMAL                    0x0DB2
+#define GL_MAP2_TEXTURE_COORD_1           0x0DB3
+#define GL_MAP2_TEXTURE_COORD_2           0x0DB4
+#define GL_MAP2_TEXTURE_COORD_3           0x0DB5
+#define GL_MAP2_TEXTURE_COORD_4           0x0DB6
+#define GL_MAP2_VERTEX_3                  0x0DB7
+#define GL_MAP2_VERTEX_4                  0x0DB8
+#define GL_MAP1_GRID_DOMAIN               0x0DD0
+#define GL_MAP1_GRID_SEGMENTS             0x0DD1
+#define GL_MAP2_GRID_DOMAIN               0x0DD2
+#define GL_MAP2_GRID_SEGMENTS             0x0DD3
+#define GL_TEXTURE_1D                     0x0DE0
+#define GL_TEXTURE_2D                     0x0DE1
+#define GL_FEEDBACK_BUFFER_POINTER        0x0DF0
+#define GL_FEEDBACK_BUFFER_SIZE           0x0DF1
+#define GL_FEEDBACK_BUFFER_TYPE           0x0DF2
+#define GL_SELECTION_BUFFER_POINTER       0x0DF3
+#define GL_SELECTION_BUFFER_SIZE          0x0DF4
+#define GL_POLYGON_OFFSET_UNITS           0x2A00
+#define GL_POLYGON_OFFSET_POINT           0x2A01
+#define GL_POLYGON_OFFSET_LINE            0x2A02
+#define GL_POLYGON_OFFSET_FILL            0x8037
+#define GL_POLYGON_OFFSET_FACTOR          0x8038
+#define GL_TEXTURE_BINDING_1D             0x8068
+#define GL_TEXTURE_BINDING_2D             0x8069
+#define GL_TEXTURE_BINDING_3D             0x806A
+#define GL_VERTEX_ARRAY                   0x8074
+#define GL_NORMAL_ARRAY                   0x8075
+#define GL_COLOR_ARRAY                    0x8076
+#define GL_INDEX_ARRAY                    0x8077
+#define GL_TEXTURE_COORD_ARRAY            0x8078
+#define GL_EDGE_FLAG_ARRAY                0x8079
+#define GL_VERTEX_ARRAY_SIZE              0x807A
+#define GL_VERTEX_ARRAY_TYPE              0x807B
+#define GL_VERTEX_ARRAY_STRIDE            0x807C
+#define GL_NORMAL_ARRAY_TYPE              0x807E
+#define GL_NORMAL_ARRAY_STRIDE            0x807F
+#define GL_COLOR_ARRAY_SIZE               0x8081
+#define GL_COLOR_ARRAY_TYPE               0x8082
+#define GL_COLOR_ARRAY_STRIDE             0x8083
+#define GL_INDEX_ARRAY_TYPE               0x8085
+#define GL_INDEX_ARRAY_STRIDE             0x8086
+#define GL_TEXTURE_COORD_ARRAY_SIZE       0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE       0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE     0x808A
+#define GL_EDGE_FLAG_ARRAY_STRIDE         0x808C
 /*      GL_VERTEX_ARRAY_COUNT_EXT */
 /*      GL_NORMAL_ARRAY_COUNT_EXT */
 /*      GL_COLOR_ARRAY_COUNT_EXT */
@@ -631,25 +595,25 @@ typedef void GLvoid;
 /*      GL_TEXTURE_MIN_FILTER */
 /*      GL_TEXTURE_WRAP_S */
 /*      GL_TEXTURE_WRAP_T */
-#define GL_TEXTURE_WIDTH                                    0x1000
-#define GL_TEXTURE_HEIGHT                                   0x1001
-#define GL_TEXTURE_INTERNAL_FORMAT                          0x1003
-#define GL_TEXTURE_COMPONENTS                               GL_TEXTURE_INTERNAL_FORMAT
-#define GL_TEXTURE_BORDER_COLOR                             0x1004
-#define GL_TEXTURE_BORDER                                   0x1005
-#define GL_TEXTURE_RED_SIZE                                 0x805C
-#define GL_TEXTURE_GREEN_SIZE                               0x805D
-#define GL_TEXTURE_BLUE_SIZE                                0x805E
-#define GL_TEXTURE_ALPHA_SIZE                               0x805F
-#define GL_TEXTURE_LUMINANCE_SIZE                           0x8060
-#define GL_TEXTURE_INTENSITY_SIZE                           0x8061
-#define GL_TEXTURE_PRIORITY                                 0x8066
-#define GL_TEXTURE_RESIDENT                                 0x8067
+#define GL_TEXTURE_WIDTH                  0x1000
+#define GL_TEXTURE_HEIGHT                 0x1001
+#define GL_TEXTURE_INTERNAL_FORMAT        0x1003
+#define GL_TEXTURE_COMPONENTS             GL_TEXTURE_INTERNAL_FORMAT
+#define GL_TEXTURE_BORDER_COLOR           0x1004
+#define GL_TEXTURE_BORDER                 0x1005
+#define GL_TEXTURE_RED_SIZE               0x805C
+#define GL_TEXTURE_GREEN_SIZE             0x805D
+#define GL_TEXTURE_BLUE_SIZE              0x805E
+#define GL_TEXTURE_ALPHA_SIZE             0x805F
+#define GL_TEXTURE_LUMINANCE_SIZE         0x8060
+#define GL_TEXTURE_INTENSITY_SIZE         0x8061
+#define GL_TEXTURE_PRIORITY               0x8066
+#define GL_TEXTURE_RESIDENT               0x8067
 
 /* HintMode */
-#define GL_DONT_CARE                                        0x1100
-#define GL_FASTEST                                          0x1101
-#define GL_NICEST                                           0x1102
+#define GL_DONT_CARE                      0x1100
+#define GL_FASTEST                        0x1101
+#define GL_NICEST                         0x1102
 
 /* HintTarget */
 /*      GL_PERSPECTIVE_CORRECTION_HINT */
@@ -683,34 +647,34 @@ typedef void GLvoid;
 /*      GL_LIGHT_MODEL_TWO_SIDE */
 
 /* LightParameter */
-#define GL_AMBIENT                                          0x1200
-#define GL_DIFFUSE                                          0x1201
-#define GL_SPECULAR                                         0x1202
-#define GL_POSITION                                         0x1203
-#define GL_SPOT_DIRECTION                                   0x1204
-#define GL_SPOT_EXPONENT                                    0x1205
-#define GL_SPOT_CUTOFF                                      0x1206
-#define GL_CONSTANT_ATTENUATION                             0x1207
-#define GL_LINEAR_ATTENUATION                               0x1208
-#define GL_QUADRATIC_ATTENUATION                            0x1209
+#define GL_AMBIENT                        0x1200
+#define GL_DIFFUSE                        0x1201
+#define GL_SPECULAR                       0x1202
+#define GL_POSITION                       0x1203
+#define GL_SPOT_DIRECTION                 0x1204
+#define GL_SPOT_EXPONENT                  0x1205
+#define GL_SPOT_CUTOFF                    0x1206
+#define GL_CONSTANT_ATTENUATION           0x1207
+#define GL_LINEAR_ATTENUATION             0x1208
+#define GL_QUADRATIC_ATTENUATION          0x1209
 
 /* ListMode */
-#define GL_COMPILE                                          0x1300
-#define GL_COMPILE_AND_EXECUTE                              0x1301
+#define GL_COMPILE                        0x1300
+#define GL_COMPILE_AND_EXECUTE            0x1301
 
 /* DataType */
-#define GL_BYTE                                             0x1400
-#define GL_UNSIGNED_BYTE                                    0x1401
-#define GL_SHORT                                            0x1402
-#define GL_UNSIGNED_SHORT                                   0x1403
-#define GL_INT                                              0x1404
-#define GL_UNSIGNED_INT                                     0x1405
-#define GL_FLOAT                                            0x1406
-#define GL_2_BYTES                                          0x1407
-#define GL_3_BYTES                                          0x1408
-#define GL_4_BYTES                                          0x1409
-#define GL_DOUBLE                                           0x140A
-#define GL_DOUBLE_EXT                                       0x140A
+#define GL_BYTE                           0x1400
+#define GL_UNSIGNED_BYTE                  0x1401
+#define GL_SHORT                          0x1402
+#define GL_UNSIGNED_SHORT                 0x1403
+#define GL_INT                            0x1404
+#define GL_UNSIGNED_INT                   0x1405
+#define GL_FLOAT                          0x1406
+#define GL_2_BYTES                        0x1407
+#define GL_3_BYTES                        0x1408
+#define GL_4_BYTES                        0x1409
+#define GL_DOUBLE                         0x140A
+#define GL_DOUBLE_EXT                     0x140A
 
 /* ListNameType */
 /*      GL_BYTE */
@@ -725,22 +689,22 @@ typedef void GLvoid;
 /*      GL_4_BYTES */
 
 /* LogicOp */
-#define GL_CLEAR                                            0x1500
-#define GL_AND                                              0x1501
-#define GL_AND_REVERSE                                      0x1502
-#define GL_COPY                                             0x1503
-#define GL_AND_INVERTED                                     0x1504
-#define GL_NOOP                                             0x1505
-#define GL_XOR                                              0x1506
-#define GL_OR                                               0x1507
-#define GL_NOR                                              0x1508
-#define GL_EQUIV                                            0x1509
-#define GL_INVERT                                           0x150A
-#define GL_OR_REVERSE                                       0x150B
-#define GL_COPY_INVERTED                                    0x150C
-#define GL_OR_INVERTED                                      0x150D
-#define GL_NAND                                             0x150E
-#define GL_SET                                              0x150F
+#define GL_CLEAR                          0x1500
+#define GL_AND                            0x1501
+#define GL_AND_REVERSE                    0x1502
+#define GL_COPY                           0x1503
+#define GL_AND_INVERTED                   0x1504
+#define GL_NOOP                           0x1505
+#define GL_XOR                            0x1506
+#define GL_OR                             0x1507
+#define GL_NOR                            0x1508
+#define GL_EQUIV                          0x1509
+#define GL_INVERT                         0x150A
+#define GL_OR_REVERSE                     0x150B
+#define GL_COPY_INVERTED                  0x150C
+#define GL_OR_INVERTED                    0x150D
+#define GL_NAND                           0x150E
+#define GL_SET                            0x150F
 
 /* MapTarget */
 /*      GL_MAP1_COLOR_4 */
@@ -768,18 +732,18 @@ typedef void GLvoid;
 /*      GL_FRONT_AND_BACK */
 
 /* MaterialParameter */
-#define GL_EMISSION                                         0x1600
-#define GL_SHININESS                                        0x1601
-#define GL_AMBIENT_AND_DIFFUSE                              0x1602
-#define GL_COLOR_INDEXES                                    0x1603
+#define GL_EMISSION                       0x1600
+#define GL_SHININESS                      0x1601
+#define GL_AMBIENT_AND_DIFFUSE            0x1602
+#define GL_COLOR_INDEXES                  0x1603
 /*      GL_AMBIENT */
 /*      GL_DIFFUSE */
 /*      GL_SPECULAR */
 
 /* MatrixMode */
-#define GL_MODELVIEW                                        0x1700
-#define GL_PROJECTION                                       0x1701
-#define GL_TEXTURE                                          0x1702
+#define GL_MODELVIEW                      0x1700
+#define GL_PROJECTION                     0x1701
+#define GL_TEXTURE                        0x1702
 
 /* MeshMode1 */
 /*      GL_POINT */
@@ -798,22 +762,22 @@ typedef void GLvoid;
 /*      GL_DOUBLE */
 
 /* PixelCopyType */
-#define GL_COLOR                                            0x1800
-#define GL_DEPTH                                            0x1801
-#define GL_STENCIL                                          0x1802
+#define GL_COLOR                          0x1800
+#define GL_DEPTH                          0x1801
+#define GL_STENCIL                        0x1802
 
 /* PixelFormat */
-#define GL_COLOR_INDEX                                      0x1900
-#define GL_STENCIL_INDEX                                    0x1901
-#define GL_DEPTH_COMPONENT                                  0x1902
-#define GL_RED                                              0x1903
-#define GL_GREEN                                            0x1904
-#define GL_BLUE                                             0x1905
-#define GL_ALPHA                                            0x1906
-#define GL_RGB                                              0x1907
-#define GL_RGBA                                             0x1908
-#define GL_LUMINANCE                                        0x1909
-#define GL_LUMINANCE_ALPHA                                  0x190A
+#define GL_COLOR_INDEX                    0x1900
+#define GL_STENCIL_INDEX                  0x1901
+#define GL_DEPTH_COMPONENT                0x1902
+#define GL_RED                            0x1903
+#define GL_GREEN                          0x1904
+#define GL_BLUE                           0x1905
+#define GL_ALPHA                          0x1906
+#define GL_RGB                            0x1907
+#define GL_RGBA                           0x1908
+#define GL_LUMINANCE                      0x1909
+#define GL_LUMINANCE_ALPHA                0x190A
 /*      GL_ABGR_EXT */
 
 /* PixelMap */
@@ -859,7 +823,7 @@ typedef void GLvoid;
 /*      GL_DEPTH_BIAS */
 
 /* PixelType */
-#define GL_BITMAP                                           0x1A00
+#define GL_BITMAP                         0x1A00
 /*      GL_BYTE */
 /*      GL_UNSIGNED_BYTE */
 /*      GL_SHORT */
@@ -874,9 +838,9 @@ typedef void GLvoid;
 /*      GL_UNSIGNED_INT_10_10_10_2_EXT */
 
 /* PolygonMode */
-#define GL_POINT                                            0x1B00
-#define GL_LINE                                             0x1B01
-#define GL_FILL                                             0x1B02
+#define GL_POINT                          0x1B00
+#define GL_LINE                           0x1B01
+#define GL_FILL                           0x1B02
 
 /* ReadBufferMode */
 /*      GL_FRONT_LEFT */
@@ -891,19 +855,15 @@ typedef void GLvoid;
 /*      GL_AUX1 */
 /*      GL_AUX2 */
 /*      GL_AUX3 */
-/*      GL_AUX4 */
-/*      GL_AUX5 */
-/*      GL_AUX6 */
-/*      GL_AUX7 */
 
 /* RenderingMode */
-#define GL_RENDER                                           0x1C00
-#define GL_FEEDBACK                                         0x1C01
-#define GL_SELECT                                           0x1C02
+#define GL_RENDER                         0x1C00
+#define GL_FEEDBACK                       0x1C01
+#define GL_SELECT                         0x1C02
 
 /* ShadingModel */
-#define GL_FLAT                                             0x1D00
-#define GL_SMOOTH                                           0x1D01
+#define GL_FLAT                           0x1D00
+#define GL_SMOOTH                         0x1D01
 
 /* StencilFunction */
 /*      GL_NEVER */
@@ -917,17 +877,17 @@ typedef void GLvoid;
 
 /* StencilOp */
 /*      GL_ZERO */
-#define GL_KEEP                                             0x1E00
-#define GL_REPLACE                                          0x1E01
-#define GL_INCR                                             0x1E02
-#define GL_DECR                                             0x1E03
+#define GL_KEEP                           0x1E00
+#define GL_REPLACE                        0x1E01
+#define GL_INCR                           0x1E02
+#define GL_DECR                           0x1E03
 /*      GL_INVERT */
 
 /* StringName */
-#define GL_VENDOR                                           0x1F00
-#define GL_RENDERER                                         0x1F01
-#define GL_VERSION                                          0x1F02
-#define GL_EXTENSIONS                                       0x1F03
+#define GL_VENDOR                         0x1F00
+#define GL_RENDERER                       0x1F01
+#define GL_VERSION                        0x1F02
+#define GL_EXTENSIONS                     0x1F03
 
 /* TexCoordPointerType */
 /*      GL_SHORT */
@@ -936,115 +896,115 @@ typedef void GLvoid;
 /*      GL_DOUBLE */
 
 /* TextureCoordName */
-#define GL_S                                                0x2000
-#define GL_T                                                0x2001
-#define GL_R                                                0x2002
-#define GL_Q                                                0x2003
+#define GL_S                              0x2000
+#define GL_T                              0x2001
+#define GL_R                              0x2002
+#define GL_Q                              0x2003
 
 /* TextureEnvMode */
-#define GL_MODULATE                                         0x2100
-#define GL_DECAL                                            0x2101
+#define GL_MODULATE                       0x2100
+#define GL_DECAL                          0x2101
 /*      GL_BLEND */
 /*      GL_REPLACE */
 /*      GL_ADD */
 
 /* TextureEnvParameter */
-#define GL_TEXTURE_ENV_MODE                                 0x2200
-#define GL_TEXTURE_ENV_COLOR                                0x2201
+#define GL_TEXTURE_ENV_MODE               0x2200
+#define GL_TEXTURE_ENV_COLOR              0x2201
 
 /* TextureEnvTarget */
-#define GL_TEXTURE_ENV                                      0x2300
+#define GL_TEXTURE_ENV                    0x2300
 
 /* TextureGenMode */
-#define GL_EYE_LINEAR                                       0x2400
-#define GL_OBJECT_LINEAR                                    0x2401
-#define GL_SPHERE_MAP                                       0x2402
+#define GL_EYE_LINEAR                     0x2400
+#define GL_OBJECT_LINEAR                  0x2401
+#define GL_SPHERE_MAP                     0x2402
 
 /* TextureGenParameter */
-#define GL_TEXTURE_GEN_MODE                                 0x2500
-#define GL_OBJECT_PLANE                                     0x2501
-#define GL_EYE_PLANE                                        0x2502
+#define GL_TEXTURE_GEN_MODE               0x2500
+#define GL_OBJECT_PLANE                   0x2501
+#define GL_EYE_PLANE                      0x2502
 
 /* TextureMagFilter */
-#define GL_NEAREST                                          0x2600
-#define GL_LINEAR                                           0x2601
+#define GL_NEAREST                        0x2600
+#define GL_LINEAR                         0x2601
 
 /* TextureMinFilter */
 /*      GL_NEAREST */
 /*      GL_LINEAR */
-#define GL_NEAREST_MIPMAP_NEAREST                           0x2700
-#define GL_LINEAR_MIPMAP_NEAREST                            0x2701
-#define GL_NEAREST_MIPMAP_LINEAR                            0x2702
-#define GL_LINEAR_MIPMAP_LINEAR                             0x2703
+#define GL_NEAREST_MIPMAP_NEAREST         0x2700
+#define GL_LINEAR_MIPMAP_NEAREST          0x2701
+#define GL_NEAREST_MIPMAP_LINEAR          0x2702
+#define GL_LINEAR_MIPMAP_LINEAR           0x2703
 
 /* TextureParameterName */
-#define GL_TEXTURE_MAG_FILTER                               0x2800
-#define GL_TEXTURE_MIN_FILTER                               0x2801
-#define GL_TEXTURE_WRAP_S                                   0x2802
-#define GL_TEXTURE_WRAP_T                                   0x2803
+#define GL_TEXTURE_MAG_FILTER             0x2800
+#define GL_TEXTURE_MIN_FILTER             0x2801
+#define GL_TEXTURE_WRAP_S                 0x2802
+#define GL_TEXTURE_WRAP_T                 0x2803
 /*      GL_TEXTURE_BORDER_COLOR */
 /*      GL_TEXTURE_PRIORITY */
 
 /* TextureTarget */
 /*      GL_TEXTURE_1D */
 /*      GL_TEXTURE_2D */
-#define GL_PROXY_TEXTURE_1D                                 0x8063
-#define GL_PROXY_TEXTURE_2D                                 0x8064
+#define GL_PROXY_TEXTURE_1D               0x8063
+#define GL_PROXY_TEXTURE_2D               0x8064
 
 /* TextureWrapMode */
-#define GL_CLAMP                                            0x2900
-#define GL_REPEAT                                           0x2901
+#define GL_CLAMP                          0x2900
+#define GL_REPEAT                         0x2901
 
 /* PixelInternalFormat */
-#define GL_R3_G3_B2                                         0x2A10
-#define GL_ALPHA4                                           0x803B
-#define GL_ALPHA8                                           0x803C
-#define GL_ALPHA12                                          0x803D
-#define GL_ALPHA16                                          0x803E
-#define GL_LUMINANCE4                                       0x803F
-#define GL_LUMINANCE8                                       0x8040
-#define GL_LUMINANCE12                                      0x8041
-#define GL_LUMINANCE16                                      0x8042
-#define GL_LUMINANCE4_ALPHA4                                0x8043
-#define GL_LUMINANCE6_ALPHA2                                0x8044
-#define GL_LUMINANCE8_ALPHA8                                0x8045
-#define GL_LUMINANCE12_ALPHA4                               0x8046
-#define GL_LUMINANCE12_ALPHA12                              0x8047
-#define GL_LUMINANCE16_ALPHA16                              0x8048
-#define GL_INTENSITY                                        0x8049
-#define GL_INTENSITY4                                       0x804A
-#define GL_INTENSITY8                                       0x804B
-#define GL_INTENSITY12                                      0x804C
-#define GL_INTENSITY16                                      0x804D
-#define GL_RGB4                                             0x804F
-#define GL_RGB5                                             0x8050
-#define GL_RGB8                                             0x8051
-#define GL_RGB10                                            0x8052
-#define GL_RGB12                                            0x8053
-#define GL_RGB16                                            0x8054
-#define GL_RGBA2                                            0x8055
-#define GL_RGBA4                                            0x8056
-#define GL_RGB5_A1                                          0x8057
-#define GL_RGBA8                                            0x8058
-#define GL_RGB10_A2                                         0x8059
-#define GL_RGBA12                                           0x805A
-#define GL_RGBA16                                           0x805B
+#define GL_R3_G3_B2                       0x2A10
+#define GL_ALPHA4                         0x803B
+#define GL_ALPHA8                         0x803C
+#define GL_ALPHA12                        0x803D
+#define GL_ALPHA16                        0x803E
+#define GL_LUMINANCE4                     0x803F
+#define GL_LUMINANCE8                     0x8040
+#define GL_LUMINANCE12                    0x8041
+#define GL_LUMINANCE16                    0x8042
+#define GL_LUMINANCE4_ALPHA4              0x8043
+#define GL_LUMINANCE6_ALPHA2              0x8044
+#define GL_LUMINANCE8_ALPHA8              0x8045
+#define GL_LUMINANCE12_ALPHA4             0x8046
+#define GL_LUMINANCE12_ALPHA12            0x8047
+#define GL_LUMINANCE16_ALPHA16            0x8048
+#define GL_INTENSITY                      0x8049
+#define GL_INTENSITY4                     0x804A
+#define GL_INTENSITY8                     0x804B
+#define GL_INTENSITY12                    0x804C
+#define GL_INTENSITY16                    0x804D
+#define GL_RGB4                           0x804F
+#define GL_RGB5                           0x8050
+#define GL_RGB8                           0x8051
+#define GL_RGB10                          0x8052
+#define GL_RGB12                          0x8053
+#define GL_RGB16                          0x8054
+#define GL_RGBA2                          0x8055
+#define GL_RGBA4                          0x8056
+#define GL_RGB5_A1                        0x8057
+#define GL_RGBA8                          0x8058
+#define GL_RGB10_A2                       0x8059
+#define GL_RGBA12                         0x805A
+#define GL_RGBA16                         0x805B
 
 /* InterleavedArrayFormat */
-#define GL_V2F                                              0x2A20
-#define GL_V3F                                              0x2A21
-#define GL_C4UB_V2F                                         0x2A22
-#define GL_C4UB_V3F                                         0x2A23
-#define GL_C3F_V3F                                          0x2A24
-#define GL_N3F_V3F                                          0x2A25
-#define GL_C4F_N3F_V3F                                      0x2A26
-#define GL_T2F_V3F                                          0x2A27
-#define GL_T4F_V4F                                          0x2A28
-#define GL_T2F_C4UB_V3F                                     0x2A29
-#define GL_T2F_C3F_V3F                                      0x2A2A
-#define GL_T2F_N3F_V3F                                      0x2A2B
-#define GL_T2F_C4F_N3F_V3F                                  0x2A2C
-#define GL_T4F_C4F_N3F_V4F                                  0x2A2D
+#define GL_V2F                            0x2A20
+#define GL_V3F                            0x2A21
+#define GL_C4UB_V2F                       0x2A22
+#define GL_C4UB_V3F                       0x2A23
+#define GL_C3F_V3F                        0x2A24
+#define GL_N3F_V3F                        0x2A25
+#define GL_C4F_N3F_V3F                    0x2A26
+#define GL_T2F_V3F                        0x2A27
+#define GL_T4F_V4F                        0x2A28
+#define GL_T2F_C4UB_V3F                   0x2A29
+#define GL_T2F_C3F_V3F                    0x2A2A
+#define GL_T2F_N3F_V3F                    0x2A2B
+#define GL_T2F_C4F_N3F_V3F                0x2A2C
+#define GL_T4F_C4F_N3F_V4F                0x2A2D
 
 /* VertexPointerType */
 /*      GL_SHORT */
@@ -1053,1341 +1013,622 @@ typedef void GLvoid;
 /*      GL_DOUBLE */
 
 /* ClipPlaneName */
-#define GL_CLIP_PLANE0                                      0x3000
-#define GL_CLIP_PLANE1                                      0x3001
-#define GL_CLIP_PLANE2                                      0x3002
-#define GL_CLIP_PLANE3                                      0x3003
-#define GL_CLIP_PLANE4                                      0x3004
-#define GL_CLIP_PLANE5                                      0x3005
+#define GL_CLIP_PLANE0                    0x3000
+#define GL_CLIP_PLANE1                    0x3001
+#define GL_CLIP_PLANE2                    0x3002
+#define GL_CLIP_PLANE3                    0x3003
+#define GL_CLIP_PLANE4                    0x3004
+#define GL_CLIP_PLANE5                    0x3005
 
 /* LightName */
-#define GL_LIGHT0                                           0x4000
-#define GL_LIGHT1                                           0x4001
-#define GL_LIGHT2                                           0x4002
-#define GL_LIGHT3                                           0x4003
-#define GL_LIGHT4                                           0x4004
-#define GL_LIGHT5                                           0x4005
-#define GL_LIGHT6                                           0x4006
-#define GL_LIGHT7                                           0x4007
+#define GL_LIGHT0                         0x4000
+#define GL_LIGHT1                         0x4001
+#define GL_LIGHT2                         0x4002
+#define GL_LIGHT3                         0x4003
+#define GL_LIGHT4                         0x4004
+#define GL_LIGHT5                         0x4005
+#define GL_LIGHT6                         0x4006
+#define GL_LIGHT7                         0x4007
 
 /* EXT_abgr */
-#define GL_ABGR_EXT                                         0x8000
+#define GL_ABGR_EXT                       0x8000
 
 /* EXT_blend_subtract */
-#define GL_FUNC_SUBTRACT_EXT                                0x800A
-#define GL_FUNC_REVERSE_SUBTRACT_EXT                        0x800B
+#define GL_FUNC_SUBTRACT_EXT              0x800A
+#define GL_FUNC_REVERSE_SUBTRACT_EXT      0x800B
 
 /* EXT_packed_pixels */
-#define GL_UNSIGNED_BYTE_3_3_2_EXT                          0x8032
-#define GL_UNSIGNED_SHORT_4_4_4_4_EXT                       0x8033
-#define GL_UNSIGNED_SHORT_5_5_5_1_EXT                       0x8034
-#define GL_UNSIGNED_INT_8_8_8_8_EXT                         0x8035
-#define GL_UNSIGNED_INT_10_10_10_2_EXT                      0x8036
+#define GL_UNSIGNED_BYTE_3_3_2_EXT        0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4_EXT     0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1_EXT     0x8034
+#define GL_UNSIGNED_INT_8_8_8_8_EXT       0x8035
+#define GL_UNSIGNED_INT_10_10_10_2_EXT    0x8036
 
 /* OpenGL12 */
-#define GL_PACK_SKIP_IMAGES                                 0x806B
-#define GL_PACK_IMAGE_HEIGHT                                0x806C
-#define GL_UNPACK_SKIP_IMAGES                               0x806D
-#define GL_UNPACK_IMAGE_HEIGHT                              0x806E
-#define GL_TEXTURE_3D                                       0x806F
-#define GL_PROXY_TEXTURE_3D                                 0x8070
-#define GL_TEXTURE_DEPTH                                    0x8071
-#define GL_TEXTURE_WRAP_R                                   0x8072
-#define GL_MAX_3D_TEXTURE_SIZE                              0x8073
-#define GL_BGR                                              0x80E0
-#define GL_BGRA                                             0x80E1
-#define GL_UNSIGNED_BYTE_3_3_2                              0x8032
-#define GL_UNSIGNED_BYTE_2_3_3_REV                          0x8362
-#define GL_UNSIGNED_SHORT_5_6_5                             0x8363
-#define GL_UNSIGNED_SHORT_5_6_5_REV                         0x8364
-#define GL_UNSIGNED_SHORT_4_4_4_4                           0x8033
-#define GL_UNSIGNED_SHORT_4_4_4_4_REV                       0x8365
-#define GL_UNSIGNED_SHORT_5_5_5_1                           0x8034
-#define GL_UNSIGNED_SHORT_1_5_5_5_REV                       0x8366
-#define GL_UNSIGNED_INT_8_8_8_8                             0x8035
-#define GL_UNSIGNED_INT_8_8_8_8_REV                         0x8367
-#define GL_UNSIGNED_INT_10_10_10_2                          0x8036
-#define GL_UNSIGNED_INT_2_10_10_10_REV                      0x8368
-#define GL_RESCALE_NORMAL                                   0x803A
-#define GL_LIGHT_MODEL_COLOR_CONTROL                        0x81F8
-#define GL_SINGLE_COLOR                                     0x81F9
-#define GL_SEPARATE_SPECULAR_COLOR                          0x81FA
-#define GL_CLAMP_TO_EDGE                                    0x812F
-#define GL_TEXTURE_MIN_LOD                                  0x813A
-#define GL_TEXTURE_MAX_LOD                                  0x813B
-#define GL_TEXTURE_BASE_LEVEL                               0x813C
-#define GL_TEXTURE_MAX_LEVEL                                0x813D
-#define GL_MAX_ELEMENTS_VERTICES                            0x80E8
-#define GL_MAX_ELEMENTS_INDICES                             0x80E9
-#define GL_ALIASED_POINT_SIZE_RANGE                         0x846D
-#define GL_ALIASED_LINE_WIDTH_RANGE                         0x846E
+#define GL_PACK_SKIP_IMAGES               0x806B
+#define GL_PACK_IMAGE_HEIGHT              0x806C
+#define GL_UNPACK_SKIP_IMAGES             0x806D
+#define GL_UNPACK_IMAGE_HEIGHT            0x806E
+#define GL_TEXTURE_3D                     0x806F
+#define GL_PROXY_TEXTURE_3D               0x8070
+#define GL_TEXTURE_DEPTH                  0x8071
+#define GL_TEXTURE_WRAP_R                 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE            0x8073
+#define GL_BGR                            0x80E0
+#define GL_BGRA                           0x80E1
+#define GL_UNSIGNED_BYTE_3_3_2            0x8032
+#define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
+#define GL_UNSIGNED_SHORT_5_6_5           0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
+#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
+#define GL_UNSIGNED_INT_8_8_8_8           0x8035
+#define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
+#define GL_UNSIGNED_INT_10_10_10_2        0x8036
+#define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
+#define GL_RESCALE_NORMAL                 0x803A
+#define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
+#define GL_SINGLE_COLOR                   0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR        0x81FA
+#define GL_CLAMP_TO_EDGE                  0x812F
+#define GL_TEXTURE_MIN_LOD                0x813A
+#define GL_TEXTURE_MAX_LOD                0x813B
+#define GL_TEXTURE_BASE_LEVEL             0x813C
+#define GL_TEXTURE_MAX_LEVEL              0x813D
+#define GL_MAX_ELEMENTS_VERTICES          0x80E8
+#define GL_MAX_ELEMENTS_INDICES           0x80E9
+#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
 
 /* OpenGL13 */
-#define GL_ACTIVE_TEXTURE                                   0x84E0
-#define GL_CLIENT_ACTIVE_TEXTURE                            0x84E1
-#define GL_MAX_TEXTURE_UNITS                                0x84E2
-#define GL_TEXTURE0                                         0x84C0
-#define GL_TEXTURE1                                         0x84C1
-#define GL_TEXTURE2                                         0x84C2
-#define GL_TEXTURE3                                         0x84C3
-#define GL_TEXTURE4                                         0x84C4
-#define GL_TEXTURE5                                         0x84C5
-#define GL_TEXTURE6                                         0x84C6
-#define GL_TEXTURE7                                         0x84C7
-#define GL_TEXTURE8                                         0x84C8
-#define GL_TEXTURE9                                         0x84C9
-#define GL_TEXTURE10                                        0x84CA
-#define GL_TEXTURE11                                        0x84CB
-#define GL_TEXTURE12                                        0x84CC
-#define GL_TEXTURE13                                        0x84CD
-#define GL_TEXTURE14                                        0x84CE
-#define GL_TEXTURE15                                        0x84CF
-#define GL_TEXTURE16                                        0x84D0
-#define GL_TEXTURE17                                        0x84D1
-#define GL_TEXTURE18                                        0x84D2
-#define GL_TEXTURE19                                        0x84D3
-#define GL_TEXTURE20                                        0x84D4
-#define GL_TEXTURE21                                        0x84D5
-#define GL_TEXTURE22                                        0x84D6
-#define GL_TEXTURE23                                        0x84D7
-#define GL_TEXTURE24                                        0x84D8
-#define GL_TEXTURE25                                        0x84D9
-#define GL_TEXTURE26                                        0x84DA
-#define GL_TEXTURE27                                        0x84DB
-#define GL_TEXTURE28                                        0x84DC
-#define GL_TEXTURE29                                        0x84DD
-#define GL_TEXTURE30                                        0x84DE
-#define GL_TEXTURE31                                        0x84DF
-#define GL_NORMAL_MAP                                       0x8511
-#define GL_REFLECTION_MAP                                   0x8512
-#define GL_TEXTURE_CUBE_MAP                                 0x8513
-#define GL_TEXTURE_BINDING_CUBE_MAP                         0x8514
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_X                      0x8515
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X                      0x8516
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y                      0x8517
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y                      0x8518
-#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z                      0x8519
-#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z                      0x851A
-#define GL_PROXY_TEXTURE_CUBE_MAP                           0x851B
-#define GL_MAX_CUBE_MAP_TEXTURE_SIZE                        0x851C
-#define GL_COMBINE                                          0x8570
-#define GL_COMBINE_RGB                                      0x8571
-#define GL_COMBINE_ALPHA                                    0x8572
-#define GL_RGB_SCALE                                        0x8573
-#define GL_ADD_SIGNED                                       0x8574
-#define GL_INTERPOLATE                                      0x8575
-#define GL_CONSTANT                                         0x8576
-#define GL_PRIMARY_COLOR                                    0x8577
-#define GL_PREVIOUS                                         0x8578
-#define GL_SOURCE0_RGB                                      0x8580
-#define GL_SOURCE1_RGB                                      0x8581
-#define GL_SOURCE2_RGB                                      0x8582
-#define GL_SOURCE0_ALPHA                                    0x8588
-#define GL_SOURCE1_ALPHA                                    0x8589
-#define GL_SOURCE2_ALPHA                                    0x858A
-#define GL_OPERAND0_RGB                                     0x8590
-#define GL_OPERAND1_RGB                                     0x8591
-#define GL_OPERAND2_RGB                                     0x8592
-#define GL_OPERAND0_ALPHA                                   0x8598
-#define GL_OPERAND1_ALPHA                                   0x8599
-#define GL_OPERAND2_ALPHA                                   0x859A
-#define GL_SUBTRACT                                         0x84E7
-#define GL_TRANSPOSE_MODELVIEW_MATRIX                       0x84E3
-#define GL_TRANSPOSE_PROJECTION_MATRIX                      0x84E4
-#define GL_TRANSPOSE_TEXTURE_MATRIX                         0x84E5
-#define GL_TRANSPOSE_COLOR_MATRIX                           0x84E6
-#define GL_COMPRESSED_ALPHA                                 0x84E9
-#define GL_COMPRESSED_LUMINANCE                             0x84EA
-#define GL_COMPRESSED_LUMINANCE_ALPHA                       0x84EB
-#define GL_COMPRESSED_INTENSITY                             0x84EC
-#define GL_COMPRESSED_RGB                                   0x84ED
-#define GL_COMPRESSED_RGBA                                  0x84EE
-#define GL_TEXTURE_COMPRESSION_HINT                         0x84EF
-#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE                    0x86A0
-#define GL_TEXTURE_COMPRESSED                               0x86A1
-#define GL_NUM_COMPRESSED_TEXTURE_FORMATS                   0x86A2
-#define GL_COMPRESSED_TEXTURE_FORMATS                       0x86A3
-#define GL_DOT3_RGB                                         0x86AE
-#define GL_DOT3_RGBA                                        0x86AF
-#define GL_CLAMP_TO_BORDER                                  0x812D
-#define GL_MULTISAMPLE                                      0x809D
-#define GL_SAMPLE_ALPHA_TO_COVERAGE                         0x809E
-#define GL_SAMPLE_ALPHA_TO_ONE                              0x809F
-#define GL_SAMPLE_COVERAGE                                  0x80A0
-#define GL_SAMPLE_BUFFERS                                   0x80A8
-#define GL_SAMPLES                                          0x80A9
-#define GL_SAMPLE_COVERAGE_VALUE                            0x80AA
-#define GL_SAMPLE_COVERAGE_INVERT                           0x80AB
-#define GL_MULTISAMPLE_BIT                                  0x20000000
-
-/* ATI_element_array */
-#define GL_ELEMENT_ARRAY_ATI                                0x8768
+#define GL_ACTIVE_TEXTURE                 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
+#define GL_MAX_TEXTURE_UNITS              0x84E2
+#define GL_TEXTURE0                       0x84C0
+#define GL_TEXTURE1                       0x84C1
+#define GL_TEXTURE2                       0x84C2
+#define GL_TEXTURE3                       0x84C3
+#define GL_TEXTURE4                       0x84C4
+#define GL_TEXTURE5                       0x84C5
+#define GL_TEXTURE6                       0x84C6
+#define GL_TEXTURE7                       0x84C7
+#define GL_TEXTURE8                       0x84C8
+#define GL_TEXTURE9                       0x84C9
+#define GL_TEXTURE10                      0x84CA
+#define GL_TEXTURE11                      0x84CB
+#define GL_TEXTURE12                      0x84CC
+#define GL_TEXTURE13                      0x84CD
+#define GL_TEXTURE14                      0x84CE
+#define GL_TEXTURE15                      0x84CF
+#define GL_TEXTURE16                      0x84D0
+#define GL_TEXTURE17                      0x84D1
+#define GL_TEXTURE18                      0x84D2
+#define GL_TEXTURE19                      0x84D3
+#define GL_TEXTURE20                      0x84D4
+#define GL_TEXTURE21                      0x84D5
+#define GL_TEXTURE22                      0x84D6
+#define GL_TEXTURE23                      0x84D7
+#define GL_TEXTURE24                      0x84D8
+#define GL_TEXTURE25                      0x84D9
+#define GL_TEXTURE26                      0x84DA
+#define GL_TEXTURE27                      0x84DB
+#define GL_TEXTURE28                      0x84DC
+#define GL_TEXTURE29                      0x84DD
+#define GL_TEXTURE30                      0x84DE
+#define GL_TEXTURE31                      0x84DF
+#define GL_NORMAL_MAP                     0x8511
+#define GL_REFLECTION_MAP                 0x8512
+#define GL_TEXTURE_CUBE_MAP               0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
+#define GL_COMBINE                        0x8570
+#define GL_COMBINE_RGB                    0x8571
+#define GL_COMBINE_ALPHA                  0x8572
+#define GL_RGB_SCALE                      0x8573
+#define GL_ADD_SIGNED                     0x8574
+#define GL_INTERPOLATE                    0x8575
+#define GL_CONSTANT                       0x8576
+#define GL_PRIMARY_COLOR                  0x8577
+#define GL_PREVIOUS                       0x8578
+#define GL_SOURCE0_RGB                    0x8580
+#define GL_SOURCE1_RGB                    0x8581
+#define GL_SOURCE2_RGB                    0x8582
+#define GL_SOURCE0_ALPHA                  0x8588
+#define GL_SOURCE1_ALPHA                  0x8589
+#define GL_SOURCE2_ALPHA                  0x858A
+#define GL_OPERAND0_RGB                   0x8590
+#define GL_OPERAND1_RGB                   0x8591
+#define GL_OPERAND2_RGB                   0x8592
+#define GL_OPERAND0_ALPHA                 0x8598
+#define GL_OPERAND1_ALPHA                 0x8599
+#define GL_OPERAND2_ALPHA                 0x859A
+#define GL_SUBTRACT                       0x84E7
+#define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
+#define GL_COMPRESSED_ALPHA               0x84E9
+#define GL_COMPRESSED_LUMINANCE           0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
+#define GL_COMPRESSED_INTENSITY           0x84EC
+#define GL_COMPRESSED_RGB                 0x84ED
+#define GL_COMPRESSED_RGBA                0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT       0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
+#define GL_TEXTURE_COMPRESSED             0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
+#define GL_DOT3_RGB                       0x86AE
+#define GL_DOT3_RGBA                      0x86AF
+#define GL_CLAMP_TO_BORDER                0x812D
+#define GL_MULTISAMPLE                    0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
+#define GL_SAMPLE_COVERAGE                0x80A0
+#define GL_SAMPLE_BUFFERS                 0x80A8
+#define GL_SAMPLES                        0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
+#define GL_MULTISAMPLE_BIT                0x20000000
 
 /* EXT_vertex_array */
-#define GL_VERTEX_ARRAY_EXT                                 0x8074
-#define GL_NORMAL_ARRAY_EXT                                 0x8075
-#define GL_COLOR_ARRAY_EXT                                  0x8076
-#define GL_INDEX_ARRAY_EXT                                  0x8077
-#define GL_TEXTURE_COORD_ARRAY_EXT                          0x8078
-#define GL_EDGE_FLAG_ARRAY_EXT                              0x8079
-#define GL_VERTEX_ARRAY_SIZE_EXT                            0x807A
-#define GL_VERTEX_ARRAY_TYPE_EXT                            0x807B
-#define GL_VERTEX_ARRAY_STRIDE_EXT                          0x807C
-#define GL_VERTEX_ARRAY_COUNT_EXT                           0x807D
-#define GL_NORMAL_ARRAY_TYPE_EXT                            0x807E
-#define GL_NORMAL_ARRAY_STRIDE_EXT                          0x807F
-#define GL_NORMAL_ARRAY_COUNT_EXT                           0x8080
-#define GL_COLOR_ARRAY_SIZE_EXT                             0x8081
-#define GL_COLOR_ARRAY_TYPE_EXT                             0x8082
-#define GL_COLOR_ARRAY_STRIDE_EXT                           0x8083
-#define GL_COLOR_ARRAY_COUNT_EXT                            0x8084
-#define GL_INDEX_ARRAY_TYPE_EXT                             0x8085
-#define GL_INDEX_ARRAY_STRIDE_EXT                           0x8086
-#define GL_INDEX_ARRAY_COUNT_EXT                            0x8087
-#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT                     0x8088
-#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT                     0x8089
-#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT                   0x808A
-#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT                    0x808B
-#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT                       0x808C
-#define GL_EDGE_FLAG_ARRAY_COUNT_EXT                        0x808D
-#define GL_VERTEX_ARRAY_POINTER_EXT                         0x808E
-#define GL_NORMAL_ARRAY_POINTER_EXT                         0x808F
-#define GL_COLOR_ARRAY_POINTER_EXT                          0x8090
-#define GL_INDEX_ARRAY_POINTER_EXT                          0x8091
-#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT                  0x8092
-#define GL_EDGE_FLAG_ARRAY_POINTER_EXT                      0x8093
+#define GL_VERTEX_ARRAY_EXT               0x8074
+#define GL_NORMAL_ARRAY_EXT               0x8075
+#define GL_COLOR_ARRAY_EXT                0x8076
+#define GL_INDEX_ARRAY_EXT                0x8077
+#define GL_TEXTURE_COORD_ARRAY_EXT        0x8078
+#define GL_EDGE_FLAG_ARRAY_EXT            0x8079
+#define GL_VERTEX_ARRAY_SIZE_EXT          0x807A
+#define GL_VERTEX_ARRAY_TYPE_EXT          0x807B
+#define GL_VERTEX_ARRAY_STRIDE_EXT        0x807C
+#define GL_VERTEX_ARRAY_COUNT_EXT         0x807D
+#define GL_NORMAL_ARRAY_TYPE_EXT          0x807E
+#define GL_NORMAL_ARRAY_STRIDE_EXT        0x807F
+#define GL_NORMAL_ARRAY_COUNT_EXT         0x8080
+#define GL_COLOR_ARRAY_SIZE_EXT           0x8081
+#define GL_COLOR_ARRAY_TYPE_EXT           0x8082
+#define GL_COLOR_ARRAY_STRIDE_EXT         0x8083
+#define GL_COLOR_ARRAY_COUNT_EXT          0x8084
+#define GL_INDEX_ARRAY_TYPE_EXT           0x8085
+#define GL_INDEX_ARRAY_STRIDE_EXT         0x8086
+#define GL_INDEX_ARRAY_COUNT_EXT          0x8087
+#define GL_TEXTURE_COORD_ARRAY_SIZE_EXT   0x8088
+#define GL_TEXTURE_COORD_ARRAY_TYPE_EXT   0x8089
+#define GL_TEXTURE_COORD_ARRAY_STRIDE_EXT 0x808A
+#define GL_TEXTURE_COORD_ARRAY_COUNT_EXT  0x808B
+#define GL_EDGE_FLAG_ARRAY_STRIDE_EXT     0x808C
+#define GL_EDGE_FLAG_ARRAY_COUNT_EXT      0x808D
+#define GL_VERTEX_ARRAY_POINTER_EXT       0x808E
+#define GL_NORMAL_ARRAY_POINTER_EXT       0x808F
+#define GL_COLOR_ARRAY_POINTER_EXT        0x8090
+#define GL_INDEX_ARRAY_POINTER_EXT        0x8091
+#define GL_TEXTURE_COORD_ARRAY_POINTER_EXT 0x8092
+#define GL_EDGE_FLAG_ARRAY_POINTER_EXT    0x8093
 
 /* SGIS_texture_lod */
-#define GL_TEXTURE_MIN_LOD_SGIS                             0x813A
-#define GL_TEXTURE_MAX_LOD_SGIS                             0x813B
-#define GL_TEXTURE_BASE_LEVEL_SGIS                          0x813C
-#define GL_TEXTURE_MAX_LEVEL_SGIS                           0x813D
+#define GL_TEXTURE_MIN_LOD_SGIS           0x813A
+#define GL_TEXTURE_MAX_LOD_SGIS           0x813B
+#define GL_TEXTURE_BASE_LEVEL_SGIS        0x813C
+#define GL_TEXTURE_MAX_LEVEL_SGIS         0x813D
+
+/* EXT_shared_texture_palette */
+#define GL_SHARED_TEXTURE_PALETTE_EXT     0x81FB
 
 /* EXT_rescale_normal */
-#define GL_RESCALE_NORMAL_EXT                               0x803A
+#define GL_RESCALE_NORMAL_EXT             0x803A
 
 /* SGIX_shadow */
-#define GL_TEXTURE_COMPARE_SGIX                             0x819A
-#define GL_TEXTURE_COMPARE_OPERATOR_SGIX                    0x819B
-#define GL_TEXTURE_LEQUAL_R_SGIX                            0x819C
-#define GL_TEXTURE_GEQUAL_R_SGIX                            0x819D
+#define GL_TEXTURE_COMPARE_SGIX           0x819A
+#define GL_TEXTURE_COMPARE_OPERATOR_SGIX  0x819B
+#define GL_TEXTURE_LEQUAL_R_SGIX          0x819C
+#define GL_TEXTURE_GEQUAL_R_SGIX          0x819D
 
 /* SGIX_depth_texture */
-#define GL_DEPTH_COMPONENT16_SGIX                           0x81A5
-#define GL_DEPTH_COMPONENT24_SGIX                           0x81A6
-#define GL_DEPTH_COMPONENT32_SGIX                           0x81A7
+#define GL_DEPTH_COMPONENT16_SGIX         0x81A5
+#define GL_DEPTH_COMPONENT24_SGIX         0x81A6
+#define GL_DEPTH_COMPONENT32_SGIX         0x81A7
 
 /* SGIS_generate_mipmap */
-#define GL_GENERATE_MIPMAP_SGIS                             0x8191
-#define GL_GENERATE_MIPMAP_HINT_SGIS                        0x8192
+#define GL_GENERATE_MIPMAP_SGIS           0x8191
+#define GL_GENERATE_MIPMAP_HINT_SGIS      0x8192
 
 /* OpenGL14 */
-#define GL_POINT_SIZE_MIN                                   0x8126
-#define GL_POINT_SIZE_MAX                                   0x8127
-#define GL_POINT_FADE_THRESHOLD_SIZE                        0x8128
-#define GL_POINT_DISTANCE_ATTENUATION                       0x8129
-#define GL_FOG_COORDINATE_SOURCE                            0x8450
-#define GL_FOG_COORDINATE                                   0x8451
-#define GL_FRAGMENT_DEPTH                                   0x8452
-#define GL_CURRENT_FOG_COORDINATE                           0x8453
-#define GL_FOG_COORDINATE_ARRAY_TYPE                        0x8454
-#define GL_FOG_COORDINATE_ARRAY_STRIDE                      0x8455
-#define GL_FOG_COORDINATE_ARRAY_POINTER                     0x8456
-#define GL_FOG_COORDINATE_ARRAY                             0x8457
-#define GL_COLOR_SUM                                        0x8458
-#define GL_CURRENT_SECONDARY_COLOR                          0x8459
-#define GL_SECONDARY_COLOR_ARRAY_SIZE                       0x845A
-#define GL_SECONDARY_COLOR_ARRAY_TYPE                       0x845B
-#define GL_SECONDARY_COLOR_ARRAY_STRIDE                     0x845C
-#define GL_SECONDARY_COLOR_ARRAY_POINTER                    0x845D
-#define GL_SECONDARY_COLOR_ARRAY                            0x845E
-#define GL_INCR_WRAP                                        0x8507
-#define GL_DECR_WRAP                                        0x8508
-#define GL_MAX_TEXTURE_LOD_BIAS                             0x84FD
-#define GL_TEXTURE_FILTER_CONTROL                           0x8500
-#define GL_TEXTURE_LOD_BIAS                                 0x8501
-#define GL_GENERATE_MIPMAP                                  0x8191
-#define GL_GENERATE_MIPMAP_HINT                             0x8192
-#define GL_CONSTANT_COLOR                                   0x8001
-#define GL_ONE_MINUS_CONSTANT_COLOR                         0x8002
-#define GL_CONSTANT_ALPHA                                   0x8003
-#define GL_ONE_MINUS_CONSTANT_ALPHA                         0x8004
-#define GL_BLEND_COLOR                                      0x8005
-#define GL_BLEND_EQUATION                                   0x8009
-#define GL_FUNC_ADD                                         0x8006
-#define GL_MIN                                              0x8007
-#define GL_MAX                                              0x8008
-#define GL_FUNC_SUBTRACT                                    0x800A
-#define GL_FUNC_REVERSE_SUBTRACT                            0x800B
-#define GL_BLEND_DST_RGB                                    0x80C8
-#define GL_BLEND_SRC_RGB                                    0x80C9
-#define GL_BLEND_DST_ALPHA                                  0x80CA
-#define GL_BLEND_SRC_ALPHA                                  0x80CB
-#define GL_MIRRORED_REPEAT                                  0x8370
-#define GL_DEPTH_COMPONENT16                                0x81A5
-#define GL_DEPTH_COMPONENT24                                0x81A6
-#define GL_DEPTH_COMPONENT32                                0x81A7
-#define GL_TEXTURE_DEPTH_SIZE                               0x884A
-#define GL_DEPTH_TEXTURE_MODE                               0x884B
-#define GL_TEXTURE_COMPARE_MODE                             0x884C
-#define GL_TEXTURE_COMPARE_FUNC                             0x884D
-#define GL_COMPARE_R_TO_TEXTURE                             0x884E
-
-/* OpenGL15 */
-#define GL_FOG_COORD_SRC                                    0x8450
-#define GL_FOG_COORD                                        0x8451
-#define GL_CURRENT_FOG_COORD                                0x8453
-#define GL_FOG_COORD_ARRAY_TYPE                             0x8454
-#define GL_FOG_COORD_ARRAY_STRIDE                           0x8455
-#define GL_FOG_COORD_ARRAY_POINTER                          0x8456
-#define GL_FOG_COORD_ARRAY                                  0x8457
-#define GL_SRC0_RGB                                         0x8580
-#define GL_SRC1_RGB                                         0x8581
-#define GL_SRC2_RGB                                         0x8582
-#define GL_SRC0_ALPHA                                       0x8588
-#define GL_SRC1_ALPHA                                       0x8589
-#define GL_SRC2_ALPHA                                       0x858A
-#define GL_QUERY_COUNTER_BITS                               0x8864
-#define GL_CURRENT_QUERY                                    0x8865
-#define GL_QUERY_RESULT                                     0x8866
-#define GL_QUERY_RESULT_AVAILABLE                           0x8867
-#define GL_SAMPLES_PASSED                                   0x8914
-#define GL_ARRAY_BUFFER                                     0x8892
-#define GL_ELEMENT_ARRAY_BUFFER                             0x8893
-#define GL_ARRAY_BUFFER_BINDING                             0x8894
-#define GL_ELEMENT_ARRAY_BUFFER_BINDING                     0x8895
-#define GL_VERTEX_ARRAY_BUFFER_BINDING                      0x8896
-#define GL_NORMAL_ARRAY_BUFFER_BINDING                      0x8897
-#define GL_COLOR_ARRAY_BUFFER_BINDING                       0x8898
-#define GL_INDEX_ARRAY_BUFFER_BINDING                       0x8899
-#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING               0x889A
-#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING                   0x889B
-#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING             0x889C
-#define GL_FOG_COORD_ARRAY_BUFFER_BINDING                   0x889D
-#define GL_STREAM_DRAW                                      0x88E0
-#define GL_STREAM_READ                                      0x88E1
-#define GL_STREAM_COPY                                      0x88E2
-#define GL_STATIC_DRAW                                      0x88E4
-#define GL_STATIC_READ                                      0x88E5
-#define GL_STATIC_COPY                                      0x88E6
-#define GL_DYNAMIC_DRAW                                     0x88E8
-#define GL_DYNAMIC_READ                                     0x88E9
-#define GL_DYNAMIC_COPY                                     0x88EA
-#define GL_READ_ONLY                                        0x88B8
-#define GL_WRITE_ONLY                                       0x88B9
-#define GL_READ_WRITE                                       0x88BA
-#define GL_BUFFER_SIZE                                      0x8764
-#define GL_BUFFER_USAGE                                     0x8765
-#define GL_BUFFER_ACCESS                                    0x88BB
-#define GL_BUFFER_MAPPED                                    0x88BC
-#define GL_BUFFER_MAP_POINTER                               0x88BD
-
-/* OpenGL20 */
-#define GL_CURRENT_PROGRAM                                  0x8B8D
-#define GL_SHADER_TYPE                                      0x8B4F
-#define GL_DELETE_STATUS                                    0x8B80
-#define GL_COMPILE_STATUS                                   0x8B81
-#define GL_LINK_STATUS                                      0x8B82
-#define GL_VALIDATE_STATUS                                  0x8B83
-#define GL_INFO_LOG_LENGTH                                  0x8B84
-#define GL_ATTACHED_SHADERS                                 0x8B85
-#define GL_ACTIVE_UNIFORMS                                  0x8B86
-#define GL_ACTIVE_UNIFORM_MAX_LENGTH                        0x8B87
-#define GL_SHADER_SOURCE_LENGTH                             0x8B88
-#define GL_FLOAT_VEC2                                       0x8B50
-#define GL_FLOAT_VEC3                                       0x8B51
-#define GL_FLOAT_VEC4                                       0x8B52
-#define GL_INT_VEC2                                         0x8B53
-#define GL_INT_VEC3                                         0x8B54
-#define GL_INT_VEC4                                         0x8B55
-#define GL_BOOL                                             0x8B56
-#define GL_BOOL_VEC2                                        0x8B57
-#define GL_BOOL_VEC3                                        0x8B58
-#define GL_BOOL_VEC4                                        0x8B59
-#define GL_FLOAT_MAT2                                       0x8B5A
-#define GL_FLOAT_MAT3                                       0x8B5B
-#define GL_FLOAT_MAT4                                       0x8B5C
-#define GL_SAMPLER_1D                                       0x8B5D
-#define GL_SAMPLER_2D                                       0x8B5E
-#define GL_SAMPLER_3D                                       0x8B5F
-#define GL_SAMPLER_CUBE                                     0x8B60
-#define GL_SAMPLER_1D_SHADOW                                0x8B61
-#define GL_SAMPLER_2D_SHADOW                                0x8B62
-#define GL_SHADING_LANGUAGE_VERSION                         0x8B8C
-#define GL_VERTEX_SHADER                                    0x8B31
-#define GL_MAX_VERTEX_UNIFORM_COMPONENTS                    0x8B4A
-#define GL_MAX_VARYING_FLOATS                               0x8B4B
-#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS                   0x8B4C
-#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS                 0x8B4D
-#define GL_ACTIVE_ATTRIBUTES                                0x8B89
-#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH                      0x8B8A
-#define GL_FRAGMENT_SHADER                                  0x8B30
-#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS                  0x8B49
-#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT                  0x8B8B
-#define GL_MAX_VERTEX_ATTRIBS                               0x8869
-#define GL_VERTEX_ATTRIB_ARRAY_ENABLED                      0x8622
-#define GL_VERTEX_ATTRIB_ARRAY_SIZE                         0x8623
-#define GL_VERTEX_ATTRIB_ARRAY_STRIDE                       0x8624
-#define GL_VERTEX_ATTRIB_ARRAY_TYPE                         0x8625
-#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED                   0x886A
-#define GL_CURRENT_VERTEX_ATTRIB                            0x8626
-#define GL_VERTEX_ATTRIB_ARRAY_POINTER                      0x8645
-#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING               0x889F
-#define GL_VERTEX_PROGRAM_POINT_SIZE                        0x8642
-#define GL_VERTEX_PROGRAM_TWO_SIDE                          0x8643
-#define GL_MAX_TEXTURE_COORDS                               0x8871
-#define GL_MAX_TEXTURE_IMAGE_UNITS                          0x8872
-#define GL_MAX_DRAW_BUFFERS                                 0x8824
-#define GL_DRAW_BUFFER0                                     0x8825
-#define GL_DRAW_BUFFER1                                     0x8826
-#define GL_DRAW_BUFFER2                                     0x8827
-#define GL_DRAW_BUFFER3                                     0x8828
-#define GL_DRAW_BUFFER4                                     0x8829
-#define GL_DRAW_BUFFER5                                     0x882A
-#define GL_DRAW_BUFFER6                                     0x882B
-#define GL_DRAW_BUFFER7                                     0x882C
-#define GL_DRAW_BUFFER8                                     0x882D
-#define GL_DRAW_BUFFER9                                     0x882E
-#define GL_DRAW_BUFFER10                                    0x882F
-#define GL_DRAW_BUFFER11                                    0x8830
-#define GL_DRAW_BUFFER12                                    0x8831
-#define GL_DRAW_BUFFER13                                    0x8832
-#define GL_DRAW_BUFFER14                                    0x8833
-#define GL_DRAW_BUFFER15                                    0x8834
-#define GL_POINT_SPRITE                                     0x8861
-#define GL_COORD_REPLACE                                    0x8862
-#define GL_POINT_SPRITE_COORD_ORIGIN                        0x8CA0
-#define GL_LOWER_LEFT                                       0x8CA1
-#define GL_UPPER_LEFT                                       0x8CA2
-#define GL_STENCIL_BACK_FUNC                                0x8800
-#define GL_STENCIL_BACK_VALUE_MASK                          0x8CA4
-#define GL_STENCIL_BACK_REF                                 0x8CA3
-#define GL_STENCIL_BACK_FAIL                                0x8801
-#define GL_STENCIL_BACK_PASS_DEPTH_FAIL                     0x8802
-#define GL_STENCIL_BACK_PASS_DEPTH_PASS                     0x8803
-#define GL_STENCIL_BACK_WRITEMASK                           0x8CA5
-#define GL_BLEND_EQUATION_RGB                               0x8009
-#define GL_BLEND_EQUATION_ALPHA                             0x883D
-
-/* OpenGL21 */
-#define GL_PIXEL_PACK_BUFFER                                0x88EB
-#define GL_PIXEL_UNPACK_BUFFER                              0x88EC
-#define GL_PIXEL_PACK_BUFFER_BINDING                        0x88ED
-#define GL_PIXEL_UNPACK_BUFFER_BINDING                      0x88EF
-#define GL_SRGB                                             0x8C40
-#define GL_SRGB8                                            0x8C41
-#define GL_SRGB_ALPHA                                       0x8C42
-#define GL_SRGB8_ALPHA8                                     0x8C43
-#define GL_SLUMINANCE_ALPHA                                 0x8C44
-#define GL_SLUMINANCE8_ALPHA8                               0x8C45
-#define GL_SLUMINANCE                                       0x8C46
-#define GL_SLUMINANCE8                                      0x8C47
-#define GL_COMPRESSED_SRGB                                  0x8C48
-#define GL_COMPRESSED_SRGB_ALPHA                            0x8C49
-#define GL_COMPRESSED_SLUMINANCE                            0x8C4A
-#define GL_COMPRESSED_SLUMINANCE_ALPHA                      0x8C4B
-#define GL_FLOAT_MAT2x3                                     0x8B65
-#define GL_FLOAT_MAT2x4                                     0x8B66
-#define GL_FLOAT_MAT3x2                                     0x8B67
-#define GL_FLOAT_MAT3x4                                     0x8B68
-#define GL_FLOAT_MAT4x2                                     0x8B69
-#define GL_FLOAT_MAT4x3                                     0x8B6A
-#define GL_CURRENT_RASTER_SECONDARY_COLOR                   0x845F
-
-/* OpenGL30 */
-#define GL_MAP_READ_BIT                                     0x0001
-#define GL_MAP_WRITE_BIT                                    0x0002
-#define GL_MAP_INVALIDATE_RANGE_BIT                         0x0004
-#define GL_MAP_INVALIDATE_BUFFER_BIT                        0x0008
-#define GL_MAP_FLUSH_EXPLICIT_BIT                           0x0010
-#define GL_MAP_UNSYNCHRONIZED_BIT                           0x0020
-#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT              0x0001
-#define GL_INVALID_FRAMEBUFFER_OPERATION                    0x0506
-#define GL_MAX_CLIP_DISTANCES                               GL_MAX_CLIP_PLANES
-#define GL_HALF_FLOAT                                       0x140B
-#define GL_CLIP_DISTANCE0                                   GL_CLIP_PLANE0
-#define GL_CLIP_DISTANCE1                                   GL_CLIP_PLANE1
-#define GL_CLIP_DISTANCE2                                   GL_CLIP_PLANE2
-#define GL_CLIP_DISTANCE3                                   GL_CLIP_PLANE3
-#define GL_CLIP_DISTANCE4                                   GL_CLIP_PLANE4
-#define GL_CLIP_DISTANCE5                                   GL_CLIP_PLANE5
-#define GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING            0x8210
-#define GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE            0x8211
-#define GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE                  0x8212
-#define GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE                0x8213
-#define GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE                 0x8214
-#define GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE                0x8215
-#define GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE                0x8216
-#define GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE              0x8217
-#define GL_FRAMEBUFFER_DEFAULT                              0x8218
-#define GL_FRAMEBUFFER_UNDEFINED                            0x8219
-#define GL_DEPTH_STENCIL_ATTACHMENT                         0x821A
-#define GL_MAJOR_VERSION                                    0x821B
-#define GL_MINOR_VERSION                                    0x821C
-#define GL_NUM_EXTENSIONS                                   0x821D
-#define GL_CONTEXT_FLAGS                                    0x821E
-#define GL_INDEX                                            0x8222
-#define GL_DEPTH_BUFFER                                     0x8223
-#define GL_STENCIL_BUFFER                                   0x8224
-#define GL_COMPRESSED_RED                                   0x8225
-#define GL_COMPRESSED_RG                                    0x8226
-#define GL_RG                                               0x8227
-#define GL_RG_INTEGER                                       0x8228
-#define GL_R8                                               0x8229
-#define GL_R16                                              0x822A
-#define GL_RG8                                              0x822B
-#define GL_RG16                                             0x822C
-#define GL_R16F                                             0x822D
-#define GL_R32F                                             0x822E
-#define GL_RG16F                                            0x822F
-#define GL_RG32F                                            0x8230
-#define GL_R8I                                              0x8231
-#define GL_R8UI                                             0x8232
-#define GL_R16I                                             0x8233
-#define GL_R16UI                                            0x8234
-#define GL_R32I                                             0x8235
-#define GL_R32UI                                            0x8236
-#define GL_RG8I                                             0x8237
-#define GL_RG8UI                                            0x8238
-#define GL_RG16I                                            0x8239
-#define GL_RG16UI                                           0x823A
-#define GL_RG32I                                            0x823B
-#define GL_RG32UI                                           0x823C
-#define GL_MAX_RENDERBUFFER_SIZE                            0x84E8
-#define GL_DEPTH_STENCIL                                    0x84F9
-#define GL_UNSIGNED_INT_24_8                                0x84FA
-#define GL_VERTEX_ARRAY_BINDING                             0x85B5
-#define GL_RGBA32F                                          0x8814
-#define GL_RGB32F                                           0x8815
-#define GL_RGBA16F                                          0x881A
-#define GL_RGB16F                                           0x881B
-#define GL_COMPARE_REF_TO_TEXTURE                           GL_ARB_COMPARE_R_TO_TEXTURE
-#define GL_DEPTH24_STENCIL8                                 0x88F0
-#define GL_TEXTURE_STENCIL_SIZE                             0x88F1
-#define GL_VERTEX_ATTRIB_ARRAY_INTEGER                      0x88FD
-#define GL_MAX_ARRAY_TEXTURE_LAYERS                         0x88FF
-#define GL_MIN_PROGRAM_TEXEL_OFFSET                         0x8904
-#define GL_MAX_PROGRAM_TEXEL_OFFSET                         0x8905
-#define GL_CLAMP_VERTEX_COLOR                               0x891A
-#define GL_CLAMP_FRAGMENT_COLOR                             0x891B
-#define GL_CLAMP_READ_COLOR                                 0x891C
-#define GL_FIXED_ONLY                                       0x891D
-#define GL_MAX_VARYING_COMPONENTS                           GL_MAX_VARYING_FLOATS
-#define GL_TEXTURE_RED_TYPE                                 0x8C10
-#define GL_TEXTURE_GREEN_TYPE                               0x8C11
-#define GL_TEXTURE_BLUE_TYPE                                0x8C12
-#define GL_TEXTURE_ALPHA_TYPE                               0x8C13
-#define GL_TEXTURE_LUMINANCE_TYPE                           0x8C14
-#define GL_TEXTURE_INTENSITY_TYPE                           0x8C15
-#define GL_TEXTURE_DEPTH_TYPE                               0x8C16
-#define GL_UNSIGNED_NORMALIZED                              0x8C17
-#define GL_TEXTURE_1D_ARRAY                                 0x8C18
-#define GL_PROXY_TEXTURE_1D_ARRAY                           0x8C19
-#define GL_TEXTURE_2D_ARRAY                                 0x8C1A
-#define GL_PROXY_TEXTURE_2D_ARRAY                           0x8C1B
-#define GL_TEXTURE_BINDING_1D_ARRAY                         0x8C1C
-#define GL_TEXTURE_BINDING_2D_ARRAY                         0x8C1D
-#define GL_R11F_G11F_B10F                                   0x8C3A
-#define GL_UNSIGNED_INT_10F_11F_11F_REV                     0x8C3B
-#define GL_RGB9_E5                                          0x8C3D
-#define GL_UNSIGNED_INT_5_9_9_9_REV                         0x8C3E
-#define GL_TEXTURE_SHARED_SIZE                              0x8C3F
-#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH            0x8C76
-#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE                   0x8C7F
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS       0x8C80
-#define GL_TRANSFORM_FEEDBACK_VARYINGS                      0x8C83
-#define GL_TRANSFORM_FEEDBACK_BUFFER_START                  0x8C84
-#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE                   0x8C85
-#define GL_PRIMITIVES_GENERATED                             0x8C87
-#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN            0x8C88
-#define GL_RASTERIZER_DISCARD                               0x8C89
-#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS    0x8C8A
-#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS          0x8C8B
-#define GL_INTERLEAVED_ATTRIBS                              0x8C8C
-#define GL_SEPARATE_ATTRIBS                                 0x8C8D
-#define GL_TRANSFORM_FEEDBACK_BUFFER                        0x8C8E
-#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING                0x8C8F
-#define GL_FRAMEBUFFER_BINDING                              0x8CA6
-#define GL_DRAW_FRAMEBUFFER_BINDING                         GL_FRAMEBUFFER_BINDING
-#define GL_RENDERBUFFER_BINDING                             0x8CA7
-#define GL_READ_FRAMEBUFFER                                 0x8CA8
-#define GL_DRAW_FRAMEBUFFER                                 0x8CA9
-#define GL_READ_FRAMEBUFFER_BINDING                         0x8CAA
-#define GL_RENDERBUFFER_SAMPLES                             0x8CAB
-#define GL_DEPTH_COMPONENT32F                               0x8CAC
-#define GL_DEPTH32F_STENCIL8                                0x8CAD
-#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE               0x8CD0
-#define GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME               0x8CD1
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL             0x8CD2
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE     0x8CD3
-#define GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER             0x8CD4
-#define GL_FRAMEBUFFER_COMPLETE                             0x8CD5
-#define GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT                0x8CD6
-#define GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT        0x8CD7
-#define GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER               0x8CDB
-#define GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER               0x8CDC
-#define GL_FRAMEBUFFER_UNSUPPORTED                          0x8CDD
-#define GL_MAX_COLOR_ATTACHMENTS                            0x8CDF
-#define GL_COLOR_ATTACHMENT0                                0x8CE0
-#define GL_COLOR_ATTACHMENT1                                0x8CE1
-#define GL_COLOR_ATTACHMENT2                                0x8CE2
-#define GL_COLOR_ATTACHMENT3                                0x8CE3
-#define GL_COLOR_ATTACHMENT4                                0x8CE4
-#define GL_COLOR_ATTACHMENT5                                0x8CE5
-#define GL_COLOR_ATTACHMENT6                                0x8CE6
-#define GL_COLOR_ATTACHMENT7                                0x8CE7
-#define GL_COLOR_ATTACHMENT8                                0x8CE8
-#define GL_COLOR_ATTACHMENT9                                0x8CE9
-#define GL_COLOR_ATTACHMENT10                               0x8CEA
-#define GL_COLOR_ATTACHMENT11                               0x8CEB
-#define GL_COLOR_ATTACHMENT12                               0x8CEC
-#define GL_COLOR_ATTACHMENT13                               0x8CED
-#define GL_COLOR_ATTACHMENT14                               0x8CEE
-#define GL_COLOR_ATTACHMENT15                               0x8CEF
-#define GL_DEPTH_ATTACHMENT                                 0x8D00
-#define GL_STENCIL_ATTACHMENT                               0x8D20
-#define GL_FRAMEBUFFER                                      0x8D40
-#define GL_RENDERBUFFER                                     0x8D41
-#define GL_RENDERBUFFER_WIDTH                               0x8D42
-#define GL_RENDERBUFFER_HEIGHT                              0x8D43
-#define GL_RENDERBUFFER_INTERNAL_FORMAT                     0x8D44
-#define GL_STENCIL_INDEX1                                   0x8D46
-#define GL_STENCIL_INDEX4                                   0x8D47
-#define GL_STENCIL_INDEX8                                   0x8D48
-#define GL_STENCIL_INDEX16                                  0x8D49
-#define GL_RENDERBUFFER_RED_SIZE                            0x8D50
-#define GL_RENDERBUFFER_GREEN_SIZE                          0x8D51
-#define GL_RENDERBUFFER_BLUE_SIZE                           0x8D52
-#define GL_RENDERBUFFER_ALPHA_SIZE                          0x8D53
-#define GL_RENDERBUFFER_DEPTH_SIZE                          0x8D54
-#define GL_RENDERBUFFER_STENCIL_SIZE                        0x8D55
-#define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE               0x8D56
-#define GL_MAX_SAMPLES                                      0x8D57
-#define GL_RGBA32UI                                         0x8D70
-#define GL_RGB32UI                                          0x8D71
-#define GL_RGBA16UI                                         0x8D76
-#define GL_RGB16UI                                          0x8D77
-#define GL_RGBA8UI                                          0x8D7C
-#define GL_RGB8UI                                           0x8D7D
-#define GL_RGBA32I                                          0x8D82
-#define GL_RGB32I                                           0x8D83
-#define GL_RGBA16I                                          0x8D88
-#define GL_RGB16I                                           0x8D89
-#define GL_RGBA8I                                           0x8D8E
-#define GL_RGB8I                                            0x8D8F
-#define GL_RED_INTEGER                                      0x8D94
-#define GL_GREEN_INTEGER                                    0x8D95
-#define GL_BLUE_INTEGER                                     0x8D96
-#define GL_ALPHA_INTEGER                                    0x8D97
-#define GL_RGB_INTEGER                                      0x8D98
-#define GL_RGBA_INTEGER                                     0x8D99
-#define GL_BGR_INTEGER                                      0x8D9A
-#define GL_BGRA_INTEGER                                     0x8D9B
-#define GL_FLOAT_32_UNSIGNED_INT_24_8_REV                   0x8DAD
-#define GL_FRAMEBUFFER_SRGB                                 0x8DB9
-#define GL_COMPRESSED_RED_RGTC1                             0x8DBB
-#define GL_COMPRESSED_SIGNED_RED_RGTC1                      0x8DBC
-#define GL_COMPRESSED_RG_RGTC2                              0x8DBD
-#define GL_COMPRESSED_SIGNED_RG_RGTC2                       0x8DBE
-#define GL_SAMPLER_1D_ARRAY                                 0x8DC0
-#define GL_SAMPLER_2D_ARRAY                                 0x8DC1
-#define GL_SAMPLER_1D_ARRAY_SHADOW                          0x8DC3
-#define GL_SAMPLER_2D_ARRAY_SHADOW                          0x8DC4
-#define GL_SAMPLER_CUBE_SHADOW                              0x8DC5
-#define GL_UNSIGNED_INT_VEC2                                0x8DC6
-#define GL_UNSIGNED_INT_VEC3                                0x8DC7
-#define GL_UNSIGNED_INT_VEC4                                0x8DC8
-#define GL_INT_SAMPLER_1D                                   0x8DC9
-#define GL_INT_SAMPLER_2D                                   0x8DCA
-#define GL_INT_SAMPLER_3D                                   0x8DCB
-#define GL_INT_SAMPLER_CUBE                                 0x8DCC
-#define GL_INT_SAMPLER_1D_ARRAY                             0x8DCE
-#define GL_INT_SAMPLER_2D_ARRAY                             0x8DCF
-#define GL_UNSIGNED_INT_SAMPLER_1D                          0x8DD1
-#define GL_UNSIGNED_INT_SAMPLER_2D                          0x8DD2
-#define GL_UNSIGNED_INT_SAMPLER_3D                          0x8DD3
-#define GL_UNSIGNED_INT_SAMPLER_CUBE                        0x8DD4
-#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY                    0x8DD6
-#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY                    0x8DD7
-#define GL_QUERY_WAIT                                       0x8E13
-#define GL_QUERY_NO_WAIT                                    0x8E14
-#define GL_QUERY_BY_REGION_WAIT                             0x8E15
-#define GL_QUERY_BY_REGION_NO_WAIT                          0x8E16
-#define GL_CLAMP_VERTEX_COLOR                               0x891A
-#define GL_CLAMP_FRAGMENT_COLOR                             0x891B
-#define GL_CLAMP_READ_COLOR                                 0x891C
-#define GL_FIXED_ONLY                                       0x891D
+#define GL_POINT_SIZE_MIN                 0x8126
+#define GL_POINT_SIZE_MAX                 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
+#define GL_POINT_DISTANCE_ATTENUATION     0x8129
+#define GL_FOG_COORDINATE_SOURCE          0x8450
+#define GL_FOG_COORDINATE                 0x8451
+#define GL_FRAGMENT_DEPTH                 0x8452
+#define GL_CURRENT_FOG_COORDINATE         0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
+#define GL_FOG_COORDINATE_ARRAY           0x8457
+#define GL_COLOR_SUM                      0x8458
+#define GL_CURRENT_SECONDARY_COLOR        0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
+#define GL_SECONDARY_COLOR_ARRAY          0x845E
+#define GL_INCR_WRAP                      0x8507
+#define GL_DECR_WRAP                      0x8508
+#define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
+#define GL_TEXTURE_FILTER_CONTROL         0x8500
+#define GL_TEXTURE_LOD_BIAS               0x8501
+#define GL_GENERATE_MIPMAP                0x8191
+#define GL_GENERATE_MIPMAP_HINT           0x8192
+#define GL_BLEND_DST_RGB                  0x80C8
+#define GL_BLEND_SRC_RGB                  0x80C9
+#define GL_BLEND_DST_ALPHA                0x80CA
+#define GL_BLEND_SRC_ALPHA                0x80CB
+#define GL_MIRRORED_REPEAT                0x8370
+#define GL_DEPTH_COMPONENT16              0x81A5
+#define GL_DEPTH_COMPONENT24              0x81A6
+#define GL_DEPTH_COMPONENT32              0x81A7
+#define GL_TEXTURE_DEPTH_SIZE             0x884A
+#define GL_DEPTH_TEXTURE_MODE             0x884B
+#define GL_TEXTURE_COMPARE_MODE           0x884C
+#define GL_TEXTURE_COMPARE_FUNC           0x884D
+#define GL_COMPARE_R_TO_TEXTURE           0x884E
 
 /*************************************************************/
 
-GLAPI void GLAPIENTRY glNewList (GLuint list, GLenum mode);
-GLAPI void GLAPIENTRY glEndList (void);
-GLAPI void GLAPIENTRY glCallList (GLuint list);
-GLAPI void GLAPIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
-GLAPI void GLAPIENTRY glDeleteLists (GLuint list, GLsizei range);
-GLAPI GLuint GLAPIENTRY glGenLists (GLsizei range);
-GLAPI void GLAPIENTRY glListBase (GLuint base);
-GLAPI void GLAPIENTRY glBegin (GLenum mode);
-GLAPI void GLAPIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
-GLAPI void GLAPIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue);
-GLAPI void GLAPIENTRY glColor3bv (const GLbyte *v);
-GLAPI void GLAPIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue);
-GLAPI void GLAPIENTRY glColor3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue);
-GLAPI void GLAPIENTRY glColor3fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glColor3i (GLint red, GLint green, GLint blue);
-GLAPI void GLAPIENTRY glColor3iv (const GLint *v);
-GLAPI void GLAPIENTRY glColor3s (GLshort red, GLshort green, GLshort blue);
-GLAPI void GLAPIENTRY glColor3sv (const GLshort *v);
-GLAPI void GLAPIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
-GLAPI void GLAPIENTRY glColor3ubv (const GLubyte *v);
-GLAPI void GLAPIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue);
-GLAPI void GLAPIENTRY glColor3uiv (const GLuint *v);
-GLAPI void GLAPIENTRY glColor3us (GLushort red, GLushort green, GLushort blue);
-GLAPI void GLAPIENTRY glColor3usv (const GLushort *v);
-GLAPI void GLAPIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
-GLAPI void GLAPIENTRY glColor4bv (const GLbyte *v);
-GLAPI void GLAPIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
-GLAPI void GLAPIENTRY glColor4dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-GLAPI void GLAPIENTRY glColor4fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
-GLAPI void GLAPIENTRY glColor4iv (const GLint *v);
-GLAPI void GLAPIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
-GLAPI void GLAPIENTRY glColor4sv (const GLshort *v);
-GLAPI void GLAPIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
-GLAPI void GLAPIENTRY glColor4ubv (const GLubyte *v);
-GLAPI void GLAPIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
-GLAPI void GLAPIENTRY glColor4uiv (const GLuint *v);
-GLAPI void GLAPIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
-GLAPI void GLAPIENTRY glColor4usv (const GLushort *v);
-GLAPI void GLAPIENTRY glEdgeFlag (GLboolean flag);
-GLAPI void GLAPIENTRY glEdgeFlagv (const GLboolean *flag);
-GLAPI void GLAPIENTRY glEnd (void);
-GLAPI void GLAPIENTRY glIndexd (GLdouble c);
-GLAPI void GLAPIENTRY glIndexdv (const GLdouble *c);
-GLAPI void GLAPIENTRY glIndexf (GLfloat c);
-GLAPI void GLAPIENTRY glIndexfv (const GLfloat *c);
-GLAPI void GLAPIENTRY glIndexi (GLint c);
-GLAPI void GLAPIENTRY glIndexiv (const GLint *c);
-GLAPI void GLAPIENTRY glIndexs (GLshort c);
-GLAPI void GLAPIENTRY glIndexsv (const GLshort *c);
-GLAPI void GLAPIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
-GLAPI void GLAPIENTRY glNormal3bv (const GLbyte *v);
-GLAPI void GLAPIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
-GLAPI void GLAPIENTRY glNormal3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
-GLAPI void GLAPIENTRY glNormal3fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);
-GLAPI void GLAPIENTRY glNormal3iv (const GLint *v);
-GLAPI void GLAPIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);
-GLAPI void GLAPIENTRY glNormal3sv (const GLshort *v);
-GLAPI void GLAPIENTRY glRasterPos2d (GLdouble x, GLdouble y);
-GLAPI void GLAPIENTRY glRasterPos2dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glRasterPos2f (GLfloat x, GLfloat y);
-GLAPI void GLAPIENTRY glRasterPos2fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glRasterPos2i (GLint x, GLint y);
-GLAPI void GLAPIENTRY glRasterPos2iv (const GLint *v);
-GLAPI void GLAPIENTRY glRasterPos2s (GLshort x, GLshort y);
-GLAPI void GLAPIENTRY glRasterPos2sv (const GLshort *v);
-GLAPI void GLAPIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glRasterPos3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glRasterPos3fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glRasterPos3i (GLint x, GLint y, GLint z);
-GLAPI void GLAPIENTRY glRasterPos3iv (const GLint *v);
-GLAPI void GLAPIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z);
-GLAPI void GLAPIENTRY glRasterPos3sv (const GLshort *v);
-GLAPI void GLAPIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void GLAPIENTRY glRasterPos4dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void GLAPIENTRY glRasterPos4fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
-GLAPI void GLAPIENTRY glRasterPos4iv (const GLint *v);
-GLAPI void GLAPIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void GLAPIENTRY glRasterPos4sv (const GLshort *v);
-GLAPI void GLAPIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
-GLAPI void GLAPIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
-GLAPI void GLAPIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
-GLAPI void GLAPIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);
-GLAPI void GLAPIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
-GLAPI void GLAPIENTRY glRectiv (const GLint *v1, const GLint *v2);
-GLAPI void GLAPIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
-GLAPI void GLAPIENTRY glRectsv (const GLshort *v1, const GLshort *v2);
-GLAPI void GLAPIENTRY glTexCoord1d (GLdouble s);
-GLAPI void GLAPIENTRY glTexCoord1dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glTexCoord1f (GLfloat s);
-GLAPI void GLAPIENTRY glTexCoord1fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glTexCoord1i (GLint s);
-GLAPI void GLAPIENTRY glTexCoord1iv (const GLint *v);
-GLAPI void GLAPIENTRY glTexCoord1s (GLshort s);
-GLAPI void GLAPIENTRY glTexCoord1sv (const GLshort *v);
-GLAPI void GLAPIENTRY glTexCoord2d (GLdouble s, GLdouble t);
-GLAPI void GLAPIENTRY glTexCoord2dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glTexCoord2f (GLfloat s, GLfloat t);
-GLAPI void GLAPIENTRY glTexCoord2fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glTexCoord2i (GLint s, GLint t);
-GLAPI void GLAPIENTRY glTexCoord2iv (const GLint *v);
-GLAPI void GLAPIENTRY glTexCoord2s (GLshort s, GLshort t);
-GLAPI void GLAPIENTRY glTexCoord2sv (const GLshort *v);
-GLAPI void GLAPIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
-GLAPI void GLAPIENTRY glTexCoord3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
-GLAPI void GLAPIENTRY glTexCoord3fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glTexCoord3i (GLint s, GLint t, GLint r);
-GLAPI void GLAPIENTRY glTexCoord3iv (const GLint *v);
-GLAPI void GLAPIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r);
-GLAPI void GLAPIENTRY glTexCoord3sv (const GLshort *v);
-GLAPI void GLAPIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-GLAPI void GLAPIENTRY glTexCoord4dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-GLAPI void GLAPIENTRY glTexCoord4fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
-GLAPI void GLAPIENTRY glTexCoord4iv (const GLint *v);
-GLAPI void GLAPIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
-GLAPI void GLAPIENTRY glTexCoord4sv (const GLshort *v);
-GLAPI void GLAPIENTRY glVertex2d (GLdouble x, GLdouble y);
-GLAPI void GLAPIENTRY glVertex2dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glVertex2f (GLfloat x, GLfloat y);
-GLAPI void GLAPIENTRY glVertex2fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glVertex2i (GLint x, GLint y);
-GLAPI void GLAPIENTRY glVertex2iv (const GLint *v);
-GLAPI void GLAPIENTRY glVertex2s (GLshort x, GLshort y);
-GLAPI void GLAPIENTRY glVertex2sv (const GLshort *v);
-GLAPI void GLAPIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glVertex3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glVertex3fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glVertex3i (GLint x, GLint y, GLint z);
-GLAPI void GLAPIENTRY glVertex3iv (const GLint *v);
-GLAPI void GLAPIENTRY glVertex3s (GLshort x, GLshort y, GLshort z);
-GLAPI void GLAPIENTRY glVertex3sv (const GLshort *v);
-GLAPI void GLAPIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void GLAPIENTRY glVertex4dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void GLAPIENTRY glVertex4fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);
-GLAPI void GLAPIENTRY glVertex4iv (const GLint *v);
-GLAPI void GLAPIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void GLAPIENTRY glVertex4sv (const GLshort *v);
-GLAPI void GLAPIENTRY glClipPlane (GLenum plane, const GLdouble *equation);
-GLAPI void GLAPIENTRY glColorMaterial (GLenum face, GLenum mode);
-GLAPI void GLAPIENTRY glCullFace (GLenum mode);
-GLAPI void GLAPIENTRY glFogf (GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glFogfv (GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glFogi (GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glFogiv (GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glFrontFace (GLenum mode);
-GLAPI void GLAPIENTRY glHint (GLenum target, GLenum mode);
-GLAPI void GLAPIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glLighti (GLenum light, GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glLightModelf (GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glLightModeli (GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glLightModeliv (GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glLineStipple (GLint factor, GLushort pattern);
-GLAPI void GLAPIENTRY glLineWidth (GLfloat width);
-GLAPI void GLAPIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glMateriali (GLenum face, GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glPointSize (GLfloat size);
-GLAPI void GLAPIENTRY glPolygonMode (GLenum face, GLenum mode);
-GLAPI void GLAPIENTRY glPolygonStipple (const GLubyte *mask);
-GLAPI void GLAPIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glShadeModel (GLenum mode);
-GLAPI void GLAPIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param);
-GLAPI void GLAPIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
-GLAPI void GLAPIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
-GLAPI void GLAPIENTRY glSelectBuffer (GLsizei size, GLuint *buffer);
-GLAPI GLint GLAPIENTRY glRenderMode (GLenum mode);
-GLAPI void GLAPIENTRY glInitNames (void);
-GLAPI void GLAPIENTRY glLoadName (GLuint name);
-GLAPI void GLAPIENTRY glPassThrough (GLfloat token);
-GLAPI void GLAPIENTRY glPopName (void);
-GLAPI void GLAPIENTRY glPushName (GLuint name);
-GLAPI void GLAPIENTRY glDrawBuffer (GLenum mode);
-GLAPI void GLAPIENTRY glClear (GLbitfield mask);
-GLAPI void GLAPIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
-GLAPI void GLAPIENTRY glClearIndex (GLfloat c);
-GLAPI void GLAPIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-GLAPI void GLAPIENTRY glClearStencil (GLint s);
-GLAPI void GLAPIENTRY glClearDepth (GLclampd depth);
-GLAPI void GLAPIENTRY glStencilMask (GLuint mask);
-GLAPI void GLAPIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
-GLAPI void GLAPIENTRY glDepthMask (GLboolean flag);
-GLAPI void GLAPIENTRY glIndexMask (GLuint mask);
-GLAPI void GLAPIENTRY glAccum (GLenum op, GLfloat value);
-GLAPI void GLAPIENTRY glDisable (GLenum cap);
-GLAPI void GLAPIENTRY glEnable (GLenum cap);
-GLAPI void GLAPIENTRY glFinish (void);
-GLAPI void GLAPIENTRY glFlush (void);
-GLAPI void GLAPIENTRY glPopAttrib (void);
-GLAPI void GLAPIENTRY glPushAttrib (GLbitfield mask);
-GLAPI void GLAPIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
-GLAPI void GLAPIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
-GLAPI void GLAPIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
-GLAPI void GLAPIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
-GLAPI void GLAPIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
-GLAPI void GLAPIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
-GLAPI void GLAPIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
-GLAPI void GLAPIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
-GLAPI void GLAPIENTRY glEvalCoord1d (GLdouble u);
-GLAPI void GLAPIENTRY glEvalCoord1dv (const GLdouble *u);
-GLAPI void GLAPIENTRY glEvalCoord1f (GLfloat u);
-GLAPI void GLAPIENTRY glEvalCoord1fv (const GLfloat *u);
-GLAPI void GLAPIENTRY glEvalCoord2d (GLdouble u, GLdouble v);
-GLAPI void GLAPIENTRY glEvalCoord2dv (const GLdouble *u);
-GLAPI void GLAPIENTRY glEvalCoord2f (GLfloat u, GLfloat v);
-GLAPI void GLAPIENTRY glEvalCoord2fv (const GLfloat *u);
-GLAPI void GLAPIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
-GLAPI void GLAPIENTRY glEvalPoint1 (GLint i);
-GLAPI void GLAPIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
-GLAPI void GLAPIENTRY glEvalPoint2 (GLint i, GLint j);
-GLAPI void GLAPIENTRY glAlphaFunc (GLenum func, GLclampf ref);
-GLAPI void GLAPIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
-GLAPI void GLAPIENTRY glLogicOp (GLenum opcode);
-GLAPI void GLAPIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
-GLAPI void GLAPIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
-GLAPI void GLAPIENTRY glDepthFunc (GLenum func);
-GLAPI void GLAPIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);
-GLAPI void GLAPIENTRY glPixelTransferf (GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glPixelTransferi (GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glPixelStoref (GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glPixelStorei (GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glPixelMapfv (GLenum map, GLint mapsize, const GLfloat *values);
-GLAPI void GLAPIENTRY glPixelMapuiv (GLenum map, GLint mapsize, const GLuint *values);
-GLAPI void GLAPIENTRY glPixelMapusv (GLenum map, GLint mapsize, const GLushort *values);
-GLAPI void GLAPIENTRY glReadBuffer (GLenum mode);
-GLAPI void GLAPIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
-GLAPI void GLAPIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
-GLAPI void GLAPIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
-GLAPI void GLAPIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);
-GLAPI void GLAPIENTRY glGetDoublev (GLenum pname, GLdouble *params);
-GLAPI GLenum GLAPIENTRY glGetError (void);
-GLAPI void GLAPIENTRY glGetFloatv (GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetIntegerv (GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);
-GLAPI void GLAPIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);
-GLAPI void GLAPIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);
-GLAPI void GLAPIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);
-GLAPI void GLAPIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);
-GLAPI void GLAPIENTRY glGetPixelMapusv (GLenum map, GLushort *values);
-GLAPI void GLAPIENTRY glGetPolygonStipple (GLubyte *mask);
-GLAPI const GLubyte * GLAPIENTRY glGetString (GLenum name);
-GLAPI void GLAPIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
-GLAPI void GLAPIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
-GLAPI void GLAPIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
-GLAPI GLboolean GLAPIENTRY glIsEnabled (GLenum cap);
-GLAPI GLboolean GLAPIENTRY glIsList (GLuint list);
-GLAPI void GLAPIENTRY glDepthRange (GLclampd zNear, GLclampd zFar);
-GLAPI void GLAPIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-GLAPI void GLAPIENTRY glLoadIdentity (void);
-GLAPI void GLAPIENTRY glLoadMatrixf (const GLfloat *m);
-GLAPI void GLAPIENTRY glLoadMatrixd (const GLdouble *m);
-GLAPI void GLAPIENTRY glMatrixMode (GLenum mode);
-GLAPI void GLAPIENTRY glMultMatrixf (const GLfloat *m);
-GLAPI void GLAPIENTRY glMultMatrixd (const GLdouble *m);
-GLAPI void GLAPIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
-GLAPI void GLAPIENTRY glPopMatrix (void);
-GLAPI void GLAPIENTRY glPushMatrix (void);
-GLAPI void GLAPIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glArrayElement (GLint i);
-GLAPI void GLAPIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glDisableClientState (GLenum array);
-GLAPI void GLAPIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
-GLAPI void GLAPIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
-GLAPI void GLAPIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glEnableClientState (GLenum array);
-GLAPI void GLAPIENTRY glGetPointerv (GLenum pname, GLvoid* *params);
-GLAPI void GLAPIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
-GLAPI void GLAPIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLint border);
-GLAPI void GLAPIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
-GLAPI void GLAPIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI GLboolean GLAPIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
-GLAPI void GLAPIENTRY glBindTexture (GLenum target, GLuint texture);
-GLAPI void GLAPIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
-GLAPI void GLAPIENTRY glGenTextures (GLsizei n, GLuint *textures);
-GLAPI GLboolean GLAPIENTRY glIsTexture (GLuint texture);
-GLAPI void GLAPIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
-GLAPI void GLAPIENTRY glIndexub (GLubyte c);
-GLAPI void GLAPIENTRY glIndexubv (const GLubyte *c);
-GLAPI void GLAPIENTRY glPopClientAttrib (void);
-GLAPI void GLAPIENTRY glPushClientAttrib (GLbitfield mask);
-GLAPI void GLAPIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-GLAPI void GLAPIENTRY glBlendEquation (GLenum mode);
-GLAPI void GLAPIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-GLAPI void GLAPIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void GLAPIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table);
-GLAPI void GLAPIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-GLAPI void GLAPIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void GLAPIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void GLAPIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
-GLAPI void GLAPIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
-GLAPI void GLAPIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image);
-GLAPI void GLAPIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-GLAPI void GLAPIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-GLAPI void GLAPIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void GLAPIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void GLAPIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-GLAPI void GLAPIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
-GLAPI void GLAPIENTRY glResetHistogram (GLenum target);
-GLAPI void GLAPIENTRY glResetMinmax (GLenum target);
-GLAPI void GLAPIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glActiveTexture (GLenum texture);
-GLAPI void GLAPIENTRY glClientActiveTexture (GLenum texture);
-GLAPI void GLAPIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
-GLAPI void GLAPIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
-GLAPI void GLAPIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord1i (GLenum target, GLint s);
-GLAPI void GLAPIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
-GLAPI void GLAPIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
-GLAPI void GLAPIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
-GLAPI void GLAPIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
-GLAPI void GLAPIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
-GLAPI void GLAPIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-GLAPI void GLAPIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-GLAPI void GLAPIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
-GLAPI void GLAPIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
-GLAPI void GLAPIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-GLAPI void GLAPIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-GLAPI void GLAPIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
-GLAPI void GLAPIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-GLAPI void GLAPIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glLoadTransposeMatrixf (const GLfloat *m);
-GLAPI void GLAPIENTRY glLoadTransposeMatrixd (const GLdouble *m);
-GLAPI void GLAPIENTRY glMultTransposeMatrixf (const GLfloat *m);
-GLAPI void GLAPIENTRY glMultTransposeMatrixd (const GLdouble *m);
-GLAPI void GLAPIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glGetCompressedTexImage (GLenum target, GLint lod, GLvoid *img);
-GLAPI void GLAPIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
-GLAPI void GLAPIENTRY glPointParameterf (GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glPointParameteri (GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glPointParameteriv (GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glWindowPos2d (GLdouble x, GLdouble y);
-GLAPI void GLAPIENTRY glWindowPos2f (GLfloat x, GLfloat y);
-GLAPI void GLAPIENTRY glWindowPos2i (GLint x, GLint y);
-GLAPI void GLAPIENTRY glWindowPos2s (GLshort x, GLshort y);
-GLAPI void GLAPIENTRY glWindowPos2dv (const GLdouble *p);
-GLAPI void GLAPIENTRY glWindowPos2fv (const GLfloat *p);
-GLAPI void GLAPIENTRY glWindowPos2iv (const GLint *p);
-GLAPI void GLAPIENTRY glWindowPos2sv (const GLshort *p);
-GLAPI void GLAPIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
-GLAPI void GLAPIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
-GLAPI void GLAPIENTRY glWindowPos3dv (const GLdouble *p);
-GLAPI void GLAPIENTRY glWindowPos3fv (const GLfloat *p);
-GLAPI void GLAPIENTRY glWindowPos3iv (const GLint *p);
-GLAPI void GLAPIENTRY glWindowPos3sv (const GLshort *p);
-GLAPI void GLAPIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-GLAPI void GLAPIENTRY glFogCoordd (GLdouble fog);
-GLAPI void GLAPIENTRY glFogCoorddv (const GLdouble *fog);
-GLAPI void GLAPIENTRY glFogCoordf (GLfloat fog);
-GLAPI void GLAPIENTRY glFogCoordfv (const GLfloat *fog);
-GLAPI void GLAPIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
-GLAPI void GLAPIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
-GLAPI void GLAPIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
-GLAPI void GLAPIENTRY glSecondaryColor3bv (const GLbyte *v);
-GLAPI void GLAPIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
-GLAPI void GLAPIENTRY glSecondaryColor3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
-GLAPI void GLAPIENTRY glSecondaryColor3fv (const GLfloat *v);
-GLAPI void GLAPIENTRY glSecondaryColor3i (GLint red, GLint green, GLint blue);
-GLAPI void GLAPIENTRY glSecondaryColor3iv (const GLint *v);
-GLAPI void GLAPIENTRY glSecondaryColor3s (GLshort red, GLshort green, GLshort blue);
-GLAPI void GLAPIENTRY glSecondaryColor3sv (const GLshort *v);
-GLAPI void GLAPIENTRY glSecondaryColor3ub (GLubyte red, GLubyte green, GLubyte blue);
-GLAPI void GLAPIENTRY glSecondaryColor3ubv (const GLubyte *v);
-GLAPI void GLAPIENTRY glSecondaryColor3ui (GLuint red, GLuint green, GLuint blue);
-GLAPI void GLAPIENTRY glSecondaryColor3uiv (const GLuint *v);
-GLAPI void GLAPIENTRY glSecondaryColor3us (GLushort red, GLushort green, GLushort blue);
-GLAPI void GLAPIENTRY glSecondaryColor3usv (const GLushort *v);
-GLAPI void GLAPIENTRY glSecondaryColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glBindBuffer (GLenum target, GLuint buffer);
-GLAPI void GLAPIENTRY glBufferData (GLenum target, GLsizeiptr size, const GLvoid *data, GLenum usage);
-GLAPI void GLAPIENTRY glBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, const GLvoid *data);
-GLAPI void GLAPIENTRY glDeleteBuffers (GLsizei n, const GLuint *buffers);
-GLAPI void GLAPIENTRY glGenBuffers (GLsizei n, GLuint *buffers);
-GLAPI void GLAPIENTRY glGetBufferParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetBufferPointerv (GLenum target, GLenum pname, GLvoid* *params);
-GLAPI void GLAPIENTRY glGetBufferSubData (GLenum target, GLintptr offset, GLsizeiptr size, GLvoid *data);
-GLAPI GLboolean GLAPIENTRY glIsBuffer (GLuint buffer);
-GLAPI GLvoid* GLAPIENTRY glMapBuffer (GLenum target, GLenum access);
-GLAPI GLboolean GLAPIENTRY glUnmapBuffer (GLenum target);
-GLAPI void GLAPIENTRY glGenQueries (GLsizei n, GLuint *ids);
-GLAPI void GLAPIENTRY glDeleteQueries (GLsizei n, const GLuint *ids);
-GLAPI GLboolean GLAPIENTRY glIsQuery (GLuint id);
-GLAPI void GLAPIENTRY glBeginQuery (GLenum target, GLuint id);
-GLAPI void GLAPIENTRY glEndQuery (GLenum target);
-GLAPI void GLAPIENTRY glGetQueryObjectiv (GLuint id, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetQueryObjectuiv (GLuint id, GLenum pname, GLuint *params);
-GLAPI void GLAPIENTRY glGetQueryiv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glDrawBuffers (GLsizei n, const GLenum *bufs);
-GLAPI void GLAPIENTRY glVertexAttrib1d (GLuint index, GLdouble x);
-GLAPI void GLAPIENTRY glVertexAttrib1dv (GLuint index, const GLdouble *v);
-GLAPI void GLAPIENTRY glVertexAttrib1f (GLuint index, GLfloat x);
-GLAPI void GLAPIENTRY glVertexAttrib1fv (GLuint index, const GLfloat *v);
-GLAPI void GLAPIENTRY glVertexAttrib1s (GLuint index, GLshort x);
-GLAPI void GLAPIENTRY glVertexAttrib1sv (GLuint index, const GLshort *v);
-GLAPI void GLAPIENTRY glVertexAttrib2d (GLuint index, GLdouble x, GLdouble y);
-GLAPI void GLAPIENTRY glVertexAttrib2dv (GLuint index, const GLdouble *v);
-GLAPI void GLAPIENTRY glVertexAttrib2f (GLuint index, GLfloat x, GLfloat y);
-GLAPI void GLAPIENTRY glVertexAttrib2fv (GLuint index, const GLfloat *v);
-GLAPI void GLAPIENTRY glVertexAttrib2s (GLuint index, GLshort x, GLshort y);
-GLAPI void GLAPIENTRY glVertexAttrib2sv (GLuint index, const GLshort *v);
-GLAPI void GLAPIENTRY glVertexAttrib3d (GLuint index, GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glVertexAttrib3dv (GLuint index, const GLdouble *v);
-GLAPI void GLAPIENTRY glVertexAttrib3f (GLuint index, GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glVertexAttrib3fv (GLuint index, const GLfloat *v);
-GLAPI void GLAPIENTRY glVertexAttrib3s (GLuint index, GLshort x, GLshort y, GLshort z);
-GLAPI void GLAPIENTRY glVertexAttrib3sv (GLuint index, const GLshort *v);
-GLAPI void GLAPIENTRY glVertexAttrib4Nbv (GLuint index, const GLbyte *v);
-GLAPI void GLAPIENTRY glVertexAttrib4Niv (GLuint index, const GLint *v);
-GLAPI void GLAPIENTRY glVertexAttrib4Nsv (GLuint index, const GLshort *v);
-GLAPI void GLAPIENTRY glVertexAttrib4Nub (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w);
-GLAPI void GLAPIENTRY glVertexAttrib4Nubv (GLuint index, const GLubyte *v);
-GLAPI void GLAPIENTRY glVertexAttrib4Nuiv (GLuint index, const GLuint *v);
-GLAPI void GLAPIENTRY glVertexAttrib4Nusv (GLuint index, const GLushort *v);
-GLAPI void GLAPIENTRY glVertexAttrib4bv (GLuint index, const GLbyte *v);
-GLAPI void GLAPIENTRY glVertexAttrib4d (GLuint index, GLdouble x, GLdouble y, GLdouble z, GLdouble w);
-GLAPI void GLAPIENTRY glVertexAttrib4dv (GLuint index, const GLdouble *v);
-GLAPI void GLAPIENTRY glVertexAttrib4f (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w);
-GLAPI void GLAPIENTRY glVertexAttrib4fv (GLuint index, const GLfloat *v);
-GLAPI void GLAPIENTRY glVertexAttrib4iv (GLuint index, const GLint *v);
-GLAPI void GLAPIENTRY glVertexAttrib4s (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w);
-GLAPI void GLAPIENTRY glVertexAttrib4sv (GLuint index, const GLshort *v);
-GLAPI void GLAPIENTRY glVertexAttrib4ubv (GLuint index, const GLubyte *v);
-GLAPI void GLAPIENTRY glVertexAttrib4uiv (GLuint index, const GLuint *v);
-GLAPI void GLAPIENTRY glVertexAttrib4usv (GLuint index, const GLushort *v);
-GLAPI void GLAPIENTRY glVertexAttribPointer (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glEnableVertexAttribArray (GLuint index);
-GLAPI void GLAPIENTRY glDisableVertexAttribArray (GLuint index);
-GLAPI void GLAPIENTRY glGetVertexAttribdv (GLuint index, GLenum pname, GLdouble *params);
-GLAPI void GLAPIENTRY glGetVertexAttribfv (GLuint index, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetVertexAttribiv (GLuint index, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetVertexAttribPointerv (GLuint index, GLenum pname, GLvoid* *pointer);
-GLAPI void GLAPIENTRY glDeleteShader (GLuint shader);
-GLAPI void GLAPIENTRY glDetachShader (GLuint program, GLuint shader);
-GLAPI GLuint GLAPIENTRY glCreateShader (GLenum type);
-GLAPI void GLAPIENTRY glShaderSource (GLuint shader, GLsizei count, const GLchar* *string, const GLint *length);
-GLAPI void GLAPIENTRY glCompileShader (GLuint shader);
-GLAPI GLuint GLAPIENTRY glCreateProgram (void);
-GLAPI void GLAPIENTRY glAttachShader (GLuint program, GLuint shader);
-GLAPI void GLAPIENTRY glLinkProgram (GLuint program);
-GLAPI void GLAPIENTRY glUseProgram (GLuint program);
-GLAPI void GLAPIENTRY glDeleteProgram (GLuint program);
-GLAPI void GLAPIENTRY glValidateProgram (GLuint program);
-GLAPI void GLAPIENTRY glUniform1f (GLint location, GLfloat v0);
-GLAPI void GLAPIENTRY glUniform2f (GLint location, GLfloat v0, GLfloat v1);
-GLAPI void GLAPIENTRY glUniform3f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2);
-GLAPI void GLAPIENTRY glUniform4f (GLint location, GLfloat v0, GLfloat v1, GLfloat v2, GLfloat v3);
-GLAPI void GLAPIENTRY glUniform1i (GLint location, GLint v0);
-GLAPI void GLAPIENTRY glUniform2i (GLint location, GLint v0, GLint v1);
-GLAPI void GLAPIENTRY glUniform3i (GLint location, GLint v0, GLint v1, GLint v2);
-GLAPI void GLAPIENTRY glUniform4i (GLint location, GLint v0, GLint v1, GLint v2, GLint v3);
-GLAPI void GLAPIENTRY glUniform1fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniform2fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniform3fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniform4fv (GLint location, GLsizei count, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniform1iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void GLAPIENTRY glUniform2iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void GLAPIENTRY glUniform3iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void GLAPIENTRY glUniform4iv (GLint location, GLsizei count, const GLint *value);
-GLAPI void GLAPIENTRY glUniformMatrix2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI GLboolean GLAPIENTRY glIsShader (GLuint shader);
-GLAPI GLboolean GLAPIENTRY glIsProgram (GLuint program);
-GLAPI void GLAPIENTRY glGetShaderiv (GLuint program, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetProgramiv (GLuint program, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetAttachedShaders (GLuint program, GLsizei maxCount, GLsizei *count, GLuint *shaders);
-GLAPI void GLAPIENTRY glGetShaderInfoLog (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-GLAPI void GLAPIENTRY glGetProgramInfoLog (GLuint program, GLsizei bufSize, GLsizei *length, GLchar *infoLog);
-GLAPI GLint GLAPIENTRY glGetUniformLocation (GLuint program, const GLchar *name);
-GLAPI void GLAPIENTRY glGetActiveUniform (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-GLAPI void GLAPIENTRY glGetUniformfv (GLuint program, GLint location, GLfloat *params);
-GLAPI void GLAPIENTRY glGetUniformiv (GLuint program, GLint location, GLint *params);
-GLAPI void GLAPIENTRY glGetShaderSource (GLuint shader, GLsizei bufSize, GLsizei *length, GLchar *source);
-GLAPI void GLAPIENTRY glBindAttribLocation (GLuint program, GLuint index, const GLchar *name);
-GLAPI void GLAPIENTRY glGetActiveAttrib (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-GLAPI GLint GLAPIENTRY glGetAttribLocation (GLuint program, const GLchar *name);
-GLAPI void GLAPIENTRY glStencilFuncSeparate (GLenum face, GLenum func, GLint ref, GLuint mask);
-GLAPI void GLAPIENTRY glStencilOpSeparate (GLenum face, GLenum fail, GLenum zfail, GLenum zpass);
-GLAPI void GLAPIENTRY glStencilMaskSeparate (GLenum face, GLuint mask);
-GLAPI void GLAPIENTRY glBlendEquationSeparate (GLenum modeRGB, GLenum modeAlpha);
-GLAPI void GLAPIENTRY glUniformMatrix2x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix3x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix2x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix4x2fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix3x4fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glUniformMatrix4x3fv (GLint location, GLsizei count, GLboolean transpose, const GLfloat *value);
-GLAPI void GLAPIENTRY glVertexAttribI1i (GLuint index, GLint x);
-GLAPI void GLAPIENTRY glVertexAttribI2i (GLuint index, GLint x, GLint y);
-GLAPI void GLAPIENTRY glVertexAttribI3i (GLuint index, GLint x, GLint y, GLint z);
-GLAPI void GLAPIENTRY glVertexAttribI4i (GLuint index, GLint x, GLint y, GLint z, GLint w);
-GLAPI void GLAPIENTRY glVertexAttribI1ui (GLuint index, GLuint x);
-GLAPI void GLAPIENTRY glVertexAttribI2ui (GLuint index, GLuint x, GLuint y);
-GLAPI void GLAPIENTRY glVertexAttribI3ui (GLuint index, GLuint x, GLuint y, GLuint z);
-GLAPI void GLAPIENTRY glVertexAttribI4ui (GLuint index, GLuint x, GLuint y, GLuint z, GLuint w);
-GLAPI void GLAPIENTRY glVertexAttribI1iv (GLuint index, const GLint *v);
-GLAPI void GLAPIENTRY glVertexAttribI2iv (GLuint index, const GLint *v);
-GLAPI void GLAPIENTRY glVertexAttribI3iv (GLuint index, const GLint *v);
-GLAPI void GLAPIENTRY glVertexAttribI4iv (GLuint index, const GLint *v);
-GLAPI void GLAPIENTRY glVertexAttribI1uiv (GLuint index, const GLuint *v);
-GLAPI void GLAPIENTRY glVertexAttribI2uiv (GLuint index, const GLuint *v);
-GLAPI void GLAPIENTRY glVertexAttribI3uiv (GLuint index, const GLuint *v);
-GLAPI void GLAPIENTRY glVertexAttribI4uiv (GLuint index, const GLuint *v);
-GLAPI void GLAPIENTRY glVertexAttribI4bv (GLuint index, const GLbyte *v);
-GLAPI void GLAPIENTRY glVertexAttribI4sv (GLuint index, const GLshort *v);
-GLAPI void GLAPIENTRY glVertexAttribI4ubv (GLuint index, const GLubyte *v);
-GLAPI void GLAPIENTRY glVertexAttribI4usv (GLuint index, const GLushort *v);
-GLAPI void GLAPIENTRY glVertexAttribIPointer (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glGetVertexAttribIiv (GLuint index, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetVertexAttribIuiv (GLuint index, GLenum pname, GLuint *params);
-GLAPI void GLAPIENTRY glGetUniformuiv (GLuint program, GLint location, GLuint *params);
-GLAPI void GLAPIENTRY glBindFragDataLocation (GLuint program, GLuint color, const GLchar *name);
-GLAPI GLint GLAPIENTRY glGetFragDataLocation (GLuint program, const GLchar *name);
-GLAPI void GLAPIENTRY glTexParameterIiv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glTexParameterIuiv (GLenum target, GLenum pname, const GLuint *params);
-GLAPI void GLAPIENTRY glGetTexParameterIiv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetTexParameterIuiv (GLenum target, GLenum pname, GLuint *params);
-GLAPI void GLAPIENTRY glBindBufferRange (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
-GLAPI void GLAPIENTRY glBindBufferBase (GLenum target, GLuint index, GLuint buffer);
-GLAPI void GLAPIENTRY glGetBooleani_v (GLenum target, GLuint index, GLboolean *data);
-GLAPI void GLAPIENTRY glGetIntegeri_v (GLenum target, GLuint index, GLint *data);
-GLAPI GLboolean GLAPIENTRY glIsEnabledi (GLenum target, GLuint index);
-GLAPI void GLAPIENTRY glColorMaski (GLuint index, GLboolean r, GLboolean g, GLboolean b, GLboolean a);
-GLAPI void GLAPIENTRY glEnablei (GLenum target, GLuint index);
-GLAPI void GLAPIENTRY glDisablei (GLenum target, GLuint index);
-GLAPI const GLubyte * GLAPIENTRY glGetStringi (GLenum name, GLuint index);
-GLAPI void GLAPIENTRY glBlitFramebuffer (GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
-GLAPI GLboolean GLAPIENTRY glIsRenderbuffer (GLuint renderbuffer);
-GLAPI void GLAPIENTRY glBindRenderbuffer (GLenum target, GLuint renderbuffer);
-GLAPI void GLAPIENTRY glDeleteRenderbuffers (GLsizei n, const GLuint *renderbuffers);
-GLAPI void GLAPIENTRY glGenRenderbuffers (GLsizei n, GLuint *renderbuffers);
-GLAPI void GLAPIENTRY glRenderbufferStorageMultisample (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glGetRenderbufferParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI GLboolean GLAPIENTRY glIsFramebuffer (GLuint framebuffer);
-GLAPI void GLAPIENTRY glBindFramebuffer (GLenum target, GLuint framebuffer);
-GLAPI void GLAPIENTRY glDeleteFramebuffers (GLsizei n, const GLuint *framebuffers);
-GLAPI void GLAPIENTRY glGenFramebuffers (GLsizei n, GLuint *framebuffers);
-GLAPI GLenum GLAPIENTRY glCheckFramebufferStatus (GLenum target);
-GLAPI void GLAPIENTRY glFramebufferTexture1D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void GLAPIENTRY glFramebufferTexture2D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level);
-GLAPI void GLAPIENTRY glFramebufferTexture3D (GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level, GLint zoffset);
-GLAPI void GLAPIENTRY glFramebufferRenderbuffer (GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer);
-GLAPI void GLAPIENTRY glGetFramebufferAttachmentParameteriv (GLenum target, GLenum attachment, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glFramebufferTextureLayer (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer);
-GLAPI void GLAPIENTRY glGenerateMipmap (GLenum target);
-GLAPI void GLAPIENTRY glRenderbufferStorage (GLenum target, GLenum internalformat, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glBindVertexArray (GLuint array);
-GLAPI void GLAPIENTRY glDeleteVertexArrays (GLsizei n, const GLuint *arrays);
-GLAPI void GLAPIENTRY glGenVertexArrays (GLsizei n, GLuint *arrays);
-GLAPI GLboolean GLAPIENTRY glIsVertexArray (GLuint array);
-GLAPI GLvoid* GLAPIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
-GLAPI void GLAPIENTRY glFlushMappedBufferRange (GLenum target, GLintptr offset, GLsizeiptr length);
-GLAPI void GLAPIENTRY glBeginConditionalRender (GLuint id, GLenum mode);
-GLAPI void GLAPIENTRY glEndConditionalRender (void);
-GLAPI void GLAPIENTRY glBeginTransformFeedback (GLenum primitiveMode);
-GLAPI void GLAPIENTRY glEndTransformFeedback (void);
-GLAPI void GLAPIENTRY glTransformFeedbackVaryings (GLuint program, GLsizei count, const GLchar* *varyings, GLenum bufferMode);
-GLAPI void GLAPIENTRY glGetTransformFeedbackVarying (GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLsizei *size, GLenum *type, GLchar *name);
-GLAPI void GLAPIENTRY glUniform1ui (GLint location, GLuint v0);
-GLAPI void GLAPIENTRY glUniform2ui (GLint location, GLuint v0, GLuint v1);
-GLAPI void GLAPIENTRY glUniform3ui (GLint location, GLuint v0, GLuint v1, GLuint v2);
-GLAPI void GLAPIENTRY glUniform4ui (GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3);
-GLAPI void GLAPIENTRY glUniform1uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void GLAPIENTRY glUniform2uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void GLAPIENTRY glUniform3uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void GLAPIENTRY glUniform4uiv (GLint location, GLsizei count, const GLuint *value);
-GLAPI void GLAPIENTRY glClearBufferfi (GLenum buffer, GLint drawbuffer, GLfloat depth, GLint stencil);
-GLAPI void GLAPIENTRY glClearBufferfv (GLenum buffer, GLint drawbuffer, const GLfloat *value);
-GLAPI void GLAPIENTRY glClearBufferiv (GLenum buffer, GLint drawbuffer, const GLint *value);
-GLAPI void GLAPIENTRY glClearBufferuiv (GLenum buffer, GLint drawbuffer, const GLuint *value);
-GLAPI void GLAPIENTRY glClampColor (GLenum target, GLenum clamp);
+WINGDIAPI void APIENTRY glAccum (GLenum op, GLfloat value);
+WINGDIAPI void APIENTRY glAlphaFunc (GLenum func, GLclampf ref);
+WINGDIAPI GLboolean APIENTRY glAreTexturesResident (GLsizei n, const GLuint *textures, GLboolean *residences);
+WINGDIAPI void APIENTRY glArrayElement (GLint i);
+WINGDIAPI void APIENTRY glBegin (GLenum mode);
+WINGDIAPI void APIENTRY glBindTexture (GLenum target, GLuint texture);
+WINGDIAPI void APIENTRY glBitmap (GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte *bitmap);
+WINGDIAPI void APIENTRY glBlendFunc (GLenum sfactor, GLenum dfactor);
+WINGDIAPI void APIENTRY glCallList (GLuint list);
+WINGDIAPI void APIENTRY glCallLists (GLsizei n, GLenum type, const GLvoid *lists);
+WINGDIAPI void APIENTRY glClear (GLbitfield mask);
+WINGDIAPI void APIENTRY glClearAccum (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+WINGDIAPI void APIENTRY glClearColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
+WINGDIAPI void APIENTRY glClearDepth (GLclampd depth);
+WINGDIAPI void APIENTRY glClearIndex (GLfloat c);
+WINGDIAPI void APIENTRY glClearStencil (GLint s);
+WINGDIAPI void APIENTRY glClipPlane (GLenum plane, const GLdouble *equation);
+WINGDIAPI void APIENTRY glColor3b (GLbyte red, GLbyte green, GLbyte blue);
+WINGDIAPI void APIENTRY glColor3bv (const GLbyte *v);
+WINGDIAPI void APIENTRY glColor3d (GLdouble red, GLdouble green, GLdouble blue);
+WINGDIAPI void APIENTRY glColor3dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glColor3f (GLfloat red, GLfloat green, GLfloat blue);
+WINGDIAPI void APIENTRY glColor3fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glColor3i (GLint red, GLint green, GLint blue);
+WINGDIAPI void APIENTRY glColor3iv (const GLint *v);
+WINGDIAPI void APIENTRY glColor3s (GLshort red, GLshort green, GLshort blue);
+WINGDIAPI void APIENTRY glColor3sv (const GLshort *v);
+WINGDIAPI void APIENTRY glColor3ub (GLubyte red, GLubyte green, GLubyte blue);
+WINGDIAPI void APIENTRY glColor3ubv (const GLubyte *v);
+WINGDIAPI void APIENTRY glColor3ui (GLuint red, GLuint green, GLuint blue);
+WINGDIAPI void APIENTRY glColor3uiv (const GLuint *v);
+WINGDIAPI void APIENTRY glColor3us (GLushort red, GLushort green, GLushort blue);
+WINGDIAPI void APIENTRY glColor3usv (const GLushort *v);
+WINGDIAPI void APIENTRY glColor4b (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha);
+WINGDIAPI void APIENTRY glColor4bv (const GLbyte *v);
+WINGDIAPI void APIENTRY glColor4d (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha);
+WINGDIAPI void APIENTRY glColor4dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glColor4f (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha);
+WINGDIAPI void APIENTRY glColor4fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glColor4i (GLint red, GLint green, GLint blue, GLint alpha);
+WINGDIAPI void APIENTRY glColor4iv (const GLint *v);
+WINGDIAPI void APIENTRY glColor4s (GLshort red, GLshort green, GLshort blue, GLshort alpha);
+WINGDIAPI void APIENTRY glColor4sv (const GLshort *v);
+WINGDIAPI void APIENTRY glColor4ub (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha);
+WINGDIAPI void APIENTRY glColor4ubv (const GLubyte *v);
+WINGDIAPI void APIENTRY glColor4ui (GLuint red, GLuint green, GLuint blue, GLuint alpha);
+WINGDIAPI void APIENTRY glColor4uiv (const GLuint *v);
+WINGDIAPI void APIENTRY glColor4us (GLushort red, GLushort green, GLushort blue, GLushort alpha);
+WINGDIAPI void APIENTRY glColor4usv (const GLushort *v);
+WINGDIAPI void APIENTRY glColorMask (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha);
+WINGDIAPI void APIENTRY glColorMaterial (GLenum face, GLenum mode);
+WINGDIAPI void APIENTRY glColorPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+WINGDIAPI void APIENTRY glCopyPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum type);
+WINGDIAPI void APIENTRY glCopyTexImage1D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLint border);
+WINGDIAPI void APIENTRY glCopyTexImage2D (GLenum target, GLint level, GLenum internalFormat, GLint x, GLint y, GLsizei width, GLsizei height, GLint border);
+WINGDIAPI void APIENTRY glCopyTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLint x, GLint y, GLsizei width);
+WINGDIAPI void APIENTRY glCopyTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+WINGDIAPI void APIENTRY glCullFace (GLenum mode);
+WINGDIAPI void APIENTRY glDeleteLists (GLuint list, GLsizei range);
+WINGDIAPI void APIENTRY glDeleteTextures (GLsizei n, const GLuint *textures);
+WINGDIAPI void APIENTRY glDepthFunc (GLenum func);
+WINGDIAPI void APIENTRY glDepthMask (GLboolean flag);
+WINGDIAPI void APIENTRY glDepthRange (GLclampd zNear, GLclampd zFar);
+WINGDIAPI void APIENTRY glDisable (GLenum cap);
+WINGDIAPI void APIENTRY glDisableClientState (GLenum array);
+WINGDIAPI void APIENTRY glDrawArrays (GLenum mode, GLint first, GLsizei count);
+WINGDIAPI void APIENTRY glDrawBuffer (GLenum mode);
+WINGDIAPI void APIENTRY glDrawElements (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices);
+WINGDIAPI void APIENTRY glDrawPixels (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
+WINGDIAPI void APIENTRY glEdgeFlag (GLboolean flag);
+WINGDIAPI void APIENTRY glEdgeFlagPointer (GLsizei stride, const GLvoid *pointer);
+WINGDIAPI void APIENTRY glEdgeFlagv (const GLboolean *flag);
+WINGDIAPI void APIENTRY glEnable (GLenum cap);
+WINGDIAPI void APIENTRY glEnableClientState (GLenum array);
+WINGDIAPI void APIENTRY glEnd (void);
+WINGDIAPI void APIENTRY glEndList (void);
+WINGDIAPI void APIENTRY glEvalCoord1d (GLdouble u);
+WINGDIAPI void APIENTRY glEvalCoord1dv (const GLdouble *u);
+WINGDIAPI void APIENTRY glEvalCoord1f (GLfloat u);
+WINGDIAPI void APIENTRY glEvalCoord1fv (const GLfloat *u);
+WINGDIAPI void APIENTRY glEvalCoord2d (GLdouble u, GLdouble v);
+WINGDIAPI void APIENTRY glEvalCoord2dv (const GLdouble *u);
+WINGDIAPI void APIENTRY glEvalCoord2f (GLfloat u, GLfloat v);
+WINGDIAPI void APIENTRY glEvalCoord2fv (const GLfloat *u);
+WINGDIAPI void APIENTRY glEvalMesh1 (GLenum mode, GLint i1, GLint i2);
+WINGDIAPI void APIENTRY glEvalMesh2 (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2);
+WINGDIAPI void APIENTRY glEvalPoint1 (GLint i);
+WINGDIAPI void APIENTRY glEvalPoint2 (GLint i, GLint j);
+WINGDIAPI void APIENTRY glFeedbackBuffer (GLsizei size, GLenum type, GLfloat *buffer);
+WINGDIAPI void APIENTRY glFinish (void);
+WINGDIAPI void APIENTRY glFlush (void);
+WINGDIAPI void APIENTRY glFogf (GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glFogfv (GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glFogi (GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glFogiv (GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glFrontFace (GLenum mode);
+WINGDIAPI void APIENTRY glFrustum (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+WINGDIAPI GLuint APIENTRY glGenLists (GLsizei range);
+WINGDIAPI void APIENTRY glGenTextures (GLsizei n, GLuint *textures);
+WINGDIAPI void APIENTRY glGetBooleanv (GLenum pname, GLboolean *params);
+WINGDIAPI void APIENTRY glGetClipPlane (GLenum plane, GLdouble *equation);
+WINGDIAPI void APIENTRY glGetDoublev (GLenum pname, GLdouble *params);
+WINGDIAPI GLenum APIENTRY glGetError (void);
+WINGDIAPI void APIENTRY glGetFloatv (GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetIntegerv (GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glGetLightfv (GLenum light, GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetLightiv (GLenum light, GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glGetMapdv (GLenum target, GLenum query, GLdouble *v);
+WINGDIAPI void APIENTRY glGetMapfv (GLenum target, GLenum query, GLfloat *v);
+WINGDIAPI void APIENTRY glGetMapiv (GLenum target, GLenum query, GLint *v);
+WINGDIAPI void APIENTRY glGetMaterialfv (GLenum face, GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetMaterialiv (GLenum face, GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glGetPixelMapfv (GLenum map, GLfloat *values);
+WINGDIAPI void APIENTRY glGetPixelMapuiv (GLenum map, GLuint *values);
+WINGDIAPI void APIENTRY glGetPixelMapusv (GLenum map, GLushort *values);
+WINGDIAPI void APIENTRY glGetPointerv (GLenum pname, GLvoid* *params);
+WINGDIAPI void APIENTRY glGetPolygonStipple (GLubyte *mask);
+WINGDIAPI const GLubyte * APIENTRY glGetString (GLenum name);
+WINGDIAPI void APIENTRY glGetTexEnvfv (GLenum target, GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetTexEnviv (GLenum target, GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glGetTexGendv (GLenum coord, GLenum pname, GLdouble *params);
+WINGDIAPI void APIENTRY glGetTexGenfv (GLenum coord, GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetTexGeniv (GLenum coord, GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glGetTexImage (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels);
+WINGDIAPI void APIENTRY glGetTexLevelParameterfv (GLenum target, GLint level, GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetTexLevelParameteriv (GLenum target, GLint level, GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glGetTexParameterfv (GLenum target, GLenum pname, GLfloat *params);
+WINGDIAPI void APIENTRY glGetTexParameteriv (GLenum target, GLenum pname, GLint *params);
+WINGDIAPI void APIENTRY glHint (GLenum target, GLenum mode);
+WINGDIAPI void APIENTRY glIndexMask (GLuint mask);
+WINGDIAPI void APIENTRY glIndexPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
+WINGDIAPI void APIENTRY glIndexd (GLdouble c);
+WINGDIAPI void APIENTRY glIndexdv (const GLdouble *c);
+WINGDIAPI void APIENTRY glIndexf (GLfloat c);
+WINGDIAPI void APIENTRY glIndexfv (const GLfloat *c);
+WINGDIAPI void APIENTRY glIndexi (GLint c);
+WINGDIAPI void APIENTRY glIndexiv (const GLint *c);
+WINGDIAPI void APIENTRY glIndexs (GLshort c);
+WINGDIAPI void APIENTRY glIndexsv (const GLshort *c);
+WINGDIAPI void APIENTRY glIndexub (GLubyte c);
+WINGDIAPI void APIENTRY glIndexubv (const GLubyte *c);
+WINGDIAPI void APIENTRY glInitNames (void);
+WINGDIAPI void APIENTRY glInterleavedArrays (GLenum format, GLsizei stride, const GLvoid *pointer);
+WINGDIAPI GLboolean APIENTRY glIsEnabled (GLenum cap);
+WINGDIAPI GLboolean APIENTRY glIsList (GLuint list);
+WINGDIAPI GLboolean APIENTRY glIsTexture (GLuint texture);
+WINGDIAPI void APIENTRY glLightModelf (GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glLightModelfv (GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glLightModeli (GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glLightModeliv (GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glLightf (GLenum light, GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glLightfv (GLenum light, GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glLighti (GLenum light, GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glLightiv (GLenum light, GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glLineStipple (GLint factor, GLushort pattern);
+WINGDIAPI void APIENTRY glLineWidth (GLfloat width);
+WINGDIAPI void APIENTRY glListBase (GLuint base);
+WINGDIAPI void APIENTRY glLoadIdentity (void);
+WINGDIAPI void APIENTRY glLoadMatrixd (const GLdouble *m);
+WINGDIAPI void APIENTRY glLoadMatrixf (const GLfloat *m);
+WINGDIAPI void APIENTRY glLoadName (GLuint name);
+WINGDIAPI void APIENTRY glLogicOp (GLenum opcode);
+WINGDIAPI void APIENTRY glMap1d (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points);
+WINGDIAPI void APIENTRY glMap1f (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points);
+WINGDIAPI void APIENTRY glMap2d (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points);
+WINGDIAPI void APIENTRY glMap2f (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points);
+WINGDIAPI void APIENTRY glMapGrid1d (GLint un, GLdouble u1, GLdouble u2);
+WINGDIAPI void APIENTRY glMapGrid1f (GLint un, GLfloat u1, GLfloat u2);
+WINGDIAPI void APIENTRY glMapGrid2d (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2);
+WINGDIAPI void APIENTRY glMapGrid2f (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2);
+WINGDIAPI void APIENTRY glMaterialf (GLenum face, GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glMaterialfv (GLenum face, GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glMateriali (GLenum face, GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glMaterialiv (GLenum face, GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glMatrixMode (GLenum mode);
+WINGDIAPI void APIENTRY glMultMatrixd (const GLdouble *m);
+WINGDIAPI void APIENTRY glMultMatrixf (const GLfloat *m);
+WINGDIAPI void APIENTRY glNewList (GLuint list, GLenum mode);
+WINGDIAPI void APIENTRY glNormal3b (GLbyte nx, GLbyte ny, GLbyte nz);
+WINGDIAPI void APIENTRY glNormal3bv (const GLbyte *v);
+WINGDIAPI void APIENTRY glNormal3d (GLdouble nx, GLdouble ny, GLdouble nz);
+WINGDIAPI void APIENTRY glNormal3dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glNormal3f (GLfloat nx, GLfloat ny, GLfloat nz);
+WINGDIAPI void APIENTRY glNormal3fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glNormal3i (GLint nx, GLint ny, GLint nz);
+WINGDIAPI void APIENTRY glNormal3iv (const GLint *v);
+WINGDIAPI void APIENTRY glNormal3s (GLshort nx, GLshort ny, GLshort nz);
+WINGDIAPI void APIENTRY glNormal3sv (const GLshort *v);
+WINGDIAPI void APIENTRY glNormalPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
+WINGDIAPI void APIENTRY glOrtho (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar);
+WINGDIAPI void APIENTRY glPassThrough (GLfloat token);
+WINGDIAPI void APIENTRY glPixelMapfv (GLenum map, GLsizei mapsize, const GLfloat *values);
+WINGDIAPI void APIENTRY glPixelMapuiv (GLenum map, GLsizei mapsize, const GLuint *values);
+WINGDIAPI void APIENTRY glPixelMapusv (GLenum map, GLsizei mapsize, const GLushort *values);
+WINGDIAPI void APIENTRY glPixelStoref (GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glPixelStorei (GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glPixelTransferf (GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glPixelTransferi (GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glPixelZoom (GLfloat xfactor, GLfloat yfactor);
+WINGDIAPI void APIENTRY glPointSize (GLfloat size);
+WINGDIAPI void APIENTRY glPolygonMode (GLenum face, GLenum mode);
+WINGDIAPI void APIENTRY glPolygonOffset (GLfloat factor, GLfloat units);
+WINGDIAPI void APIENTRY glPolygonStipple (const GLubyte *mask);
+WINGDIAPI void APIENTRY glPopAttrib (void);
+WINGDIAPI void APIENTRY glPopClientAttrib (void);
+WINGDIAPI void APIENTRY glPopMatrix (void);
+WINGDIAPI void APIENTRY glPopName (void);
+WINGDIAPI void APIENTRY glPrioritizeTextures (GLsizei n, const GLuint *textures, const GLclampf *priorities);
+WINGDIAPI void APIENTRY glPushAttrib (GLbitfield mask);
+WINGDIAPI void APIENTRY glPushClientAttrib (GLbitfield mask);
+WINGDIAPI void APIENTRY glPushMatrix (void);
+WINGDIAPI void APIENTRY glPushName (GLuint name);
+WINGDIAPI void APIENTRY glRasterPos2d (GLdouble x, GLdouble y);
+WINGDIAPI void APIENTRY glRasterPos2dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glRasterPos2f (GLfloat x, GLfloat y);
+WINGDIAPI void APIENTRY glRasterPos2fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glRasterPos2i (GLint x, GLint y);
+WINGDIAPI void APIENTRY glRasterPos2iv (const GLint *v);
+WINGDIAPI void APIENTRY glRasterPos2s (GLshort x, GLshort y);
+WINGDIAPI void APIENTRY glRasterPos2sv (const GLshort *v);
+WINGDIAPI void APIENTRY glRasterPos3d (GLdouble x, GLdouble y, GLdouble z);
+WINGDIAPI void APIENTRY glRasterPos3dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glRasterPos3f (GLfloat x, GLfloat y, GLfloat z);
+WINGDIAPI void APIENTRY glRasterPos3fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glRasterPos3i (GLint x, GLint y, GLint z);
+WINGDIAPI void APIENTRY glRasterPos3iv (const GLint *v);
+WINGDIAPI void APIENTRY glRasterPos3s (GLshort x, GLshort y, GLshort z);
+WINGDIAPI void APIENTRY glRasterPos3sv (const GLshort *v);
+WINGDIAPI void APIENTRY glRasterPos4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+WINGDIAPI void APIENTRY glRasterPos4dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glRasterPos4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+WINGDIAPI void APIENTRY glRasterPos4fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glRasterPos4i (GLint x, GLint y, GLint z, GLint w);
+WINGDIAPI void APIENTRY glRasterPos4iv (const GLint *v);
+WINGDIAPI void APIENTRY glRasterPos4s (GLshort x, GLshort y, GLshort z, GLshort w);
+WINGDIAPI void APIENTRY glRasterPos4sv (const GLshort *v);
+WINGDIAPI void APIENTRY glReadBuffer (GLenum mode);
+WINGDIAPI void APIENTRY glReadPixels (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels);
+WINGDIAPI void APIENTRY glRectd (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2);
+WINGDIAPI void APIENTRY glRectdv (const GLdouble *v1, const GLdouble *v2);
+WINGDIAPI void APIENTRY glRectf (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2);
+WINGDIAPI void APIENTRY glRectfv (const GLfloat *v1, const GLfloat *v2);
+WINGDIAPI void APIENTRY glRecti (GLint x1, GLint y1, GLint x2, GLint y2);
+WINGDIAPI void APIENTRY glRectiv (const GLint *v1, const GLint *v2);
+WINGDIAPI void APIENTRY glRects (GLshort x1, GLshort y1, GLshort x2, GLshort y2);
+WINGDIAPI void APIENTRY glRectsv (const GLshort *v1, const GLshort *v2);
+WINGDIAPI GLint APIENTRY glRenderMode (GLenum mode);
+WINGDIAPI void APIENTRY glRotated (GLdouble angle, GLdouble x, GLdouble y, GLdouble z);
+WINGDIAPI void APIENTRY glRotatef (GLfloat angle, GLfloat x, GLfloat y, GLfloat z);
+WINGDIAPI void APIENTRY glScaled (GLdouble x, GLdouble y, GLdouble z);
+WINGDIAPI void APIENTRY glScalef (GLfloat x, GLfloat y, GLfloat z);
+WINGDIAPI void APIENTRY glScissor (GLint x, GLint y, GLsizei width, GLsizei height);
+WINGDIAPI void APIENTRY glSelectBuffer (GLsizei size, GLuint *buffer);
+WINGDIAPI void APIENTRY glShadeModel (GLenum mode);
+WINGDIAPI void APIENTRY glStencilFunc (GLenum func, GLint ref, GLuint mask);
+WINGDIAPI void APIENTRY glStencilMask (GLuint mask);
+WINGDIAPI void APIENTRY glStencilOp (GLenum fail, GLenum zfail, GLenum zpass);
+WINGDIAPI void APIENTRY glTexCoord1d (GLdouble s);
+WINGDIAPI void APIENTRY glTexCoord1dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glTexCoord1f (GLfloat s);
+WINGDIAPI void APIENTRY glTexCoord1fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glTexCoord1i (GLint s);
+WINGDIAPI void APIENTRY glTexCoord1iv (const GLint *v);
+WINGDIAPI void APIENTRY glTexCoord1s (GLshort s);
+WINGDIAPI void APIENTRY glTexCoord1sv (const GLshort *v);
+WINGDIAPI void APIENTRY glTexCoord2d (GLdouble s, GLdouble t);
+WINGDIAPI void APIENTRY glTexCoord2dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glTexCoord2f (GLfloat s, GLfloat t);
+WINGDIAPI void APIENTRY glTexCoord2fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glTexCoord2i (GLint s, GLint t);
+WINGDIAPI void APIENTRY glTexCoord2iv (const GLint *v);
+WINGDIAPI void APIENTRY glTexCoord2s (GLshort s, GLshort t);
+WINGDIAPI void APIENTRY glTexCoord2sv (const GLshort *v);
+WINGDIAPI void APIENTRY glTexCoord3d (GLdouble s, GLdouble t, GLdouble r);
+WINGDIAPI void APIENTRY glTexCoord3dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glTexCoord3f (GLfloat s, GLfloat t, GLfloat r);
+WINGDIAPI void APIENTRY glTexCoord3fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glTexCoord3i (GLint s, GLint t, GLint r);
+WINGDIAPI void APIENTRY glTexCoord3iv (const GLint *v);
+WINGDIAPI void APIENTRY glTexCoord3s (GLshort s, GLshort t, GLshort r);
+WINGDIAPI void APIENTRY glTexCoord3sv (const GLshort *v);
+WINGDIAPI void APIENTRY glTexCoord4d (GLdouble s, GLdouble t, GLdouble r, GLdouble q);
+WINGDIAPI void APIENTRY glTexCoord4dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glTexCoord4f (GLfloat s, GLfloat t, GLfloat r, GLfloat q);
+WINGDIAPI void APIENTRY glTexCoord4fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glTexCoord4i (GLint s, GLint t, GLint r, GLint q);
+WINGDIAPI void APIENTRY glTexCoord4iv (const GLint *v);
+WINGDIAPI void APIENTRY glTexCoord4s (GLshort s, GLshort t, GLshort r, GLshort q);
+WINGDIAPI void APIENTRY glTexCoord4sv (const GLshort *v);
+WINGDIAPI void APIENTRY glTexCoordPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+WINGDIAPI void APIENTRY glTexEnvf (GLenum target, GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glTexEnvfv (GLenum target, GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glTexEnvi (GLenum target, GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glTexEnviv (GLenum target, GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glTexGend (GLenum coord, GLenum pname, GLdouble param);
+WINGDIAPI void APIENTRY glTexGendv (GLenum coord, GLenum pname, const GLdouble *params);
+WINGDIAPI void APIENTRY glTexGenf (GLenum coord, GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glTexGenfv (GLenum coord, GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glTexGeni (GLenum coord, GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glTexGeniv (GLenum coord, GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glTexImage1D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
+WINGDIAPI void APIENTRY glTexImage2D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
+WINGDIAPI void APIENTRY glTexParameterf (GLenum target, GLenum pname, GLfloat param);
+WINGDIAPI void APIENTRY glTexParameterfv (GLenum target, GLenum pname, const GLfloat *params);
+WINGDIAPI void APIENTRY glTexParameteri (GLenum target, GLenum pname, GLint param);
+WINGDIAPI void APIENTRY glTexParameteriv (GLenum target, GLenum pname, const GLint *params);
+WINGDIAPI void APIENTRY glTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels);
+WINGDIAPI void APIENTRY glTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels);
+WINGDIAPI void APIENTRY glTranslated (GLdouble x, GLdouble y, GLdouble z);
+WINGDIAPI void APIENTRY glTranslatef (GLfloat x, GLfloat y, GLfloat z);
+WINGDIAPI void APIENTRY glVertex2d (GLdouble x, GLdouble y);
+WINGDIAPI void APIENTRY glVertex2dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glVertex2f (GLfloat x, GLfloat y);
+WINGDIAPI void APIENTRY glVertex2fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glVertex2i (GLint x, GLint y);
+WINGDIAPI void APIENTRY glVertex2iv (const GLint *v);
+WINGDIAPI void APIENTRY glVertex2s (GLshort x, GLshort y);
+WINGDIAPI void APIENTRY glVertex2sv (const GLshort *v);
+WINGDIAPI void APIENTRY glVertex3d (GLdouble x, GLdouble y, GLdouble z);
+WINGDIAPI void APIENTRY glVertex3dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glVertex3f (GLfloat x, GLfloat y, GLfloat z);
+WINGDIAPI void APIENTRY glVertex3fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glVertex3i (GLint x, GLint y, GLint z);
+WINGDIAPI void APIENTRY glVertex3iv (const GLint *v);
+WINGDIAPI void APIENTRY glVertex3s (GLshort x, GLshort y, GLshort z);
+WINGDIAPI void APIENTRY glVertex3sv (const GLshort *v);
+WINGDIAPI void APIENTRY glVertex4d (GLdouble x, GLdouble y, GLdouble z, GLdouble w);
+WINGDIAPI void APIENTRY glVertex4dv (const GLdouble *v);
+WINGDIAPI void APIENTRY glVertex4f (GLfloat x, GLfloat y, GLfloat z, GLfloat w);
+WINGDIAPI void APIENTRY glVertex4fv (const GLfloat *v);
+WINGDIAPI void APIENTRY glVertex4i (GLint x, GLint y, GLint z, GLint w);
+WINGDIAPI void APIENTRY glVertex4iv (const GLint *v);
+WINGDIAPI void APIENTRY glVertex4s (GLshort x, GLshort y, GLshort z, GLshort w);
+WINGDIAPI void APIENTRY glVertex4sv (const GLshort *v);
+WINGDIAPI void APIENTRY glVertexPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer);
+WINGDIAPI void APIENTRY glViewport (GLint x, GLint y, GLsizei width, GLsizei height);
+
+#ifdef __DEFINED_GLAPI
+# undef GLAPI
+# undef __DEFINED_GLAPI
+#endif
 
+#ifndef GL_GLEXT_LEGACY
+#include <GL/glext.h>
+#endif
 
 #ifdef __cplusplus
 }
old mode 100755 (executable)
new mode 100644 (file)
index 58fef0b..3ee6df8
 #ifndef __glext_h_
 #define __glext_h_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/******************************************************************************
+
+ Copyright NVIDIA Corporation 2006
+
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
+ *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS
+ OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF 
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO EVENT SHALL 
+ NVIDIA OR ITS SUPPLIERS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT, OR 
+ CONSEQUENTIAL DAMAGES WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR 
+ LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, 
+ OR ANY OTHER PECUNIARY LOSS) ARISING OUT OF THE USE OF OR INABILITY TO USE 
+ THIS SOFTWARE, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 
+ DAMAGES.
+
+******************************************************************************/
+
 /*
-** Copyright 1998-2002, NVIDIA Corporation.
-** All Rights Reserved.
+** License Applicability. Except to the extent portions of this file are
+** made subject to an alternative license as permitted in the SGI Free
+** Software License B, Version 1.1 (the "License"), the contents of this
+** file are subject only to the provisions of the License. You may not use
+** this file except in compliance with the License. You may obtain a copy
+** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
+** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
 ** 
-** THE INFORMATION CONTAINED HEREIN IS PROPRIETARY AND CONFIDENTIAL TO
-** NVIDIA, CORPORATION.  USE, REPRODUCTION OR DISCLOSURE TO ANY THIRD PARTY
-** IS SUBJECT TO WRITTEN PRE-APPROVAL BY NVIDIA, CORPORATION.
+** http://oss.sgi.com/projects/FreeB
 ** 
+** Note that, as provided in the License, the Software is distributed on an
+** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
+** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
+** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
+** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
 ** 
-** Copyright 1992-1999, Silicon Graphics, Inc.
-** All Rights Reserved.
+** Original Code. The Original Code is: OpenGL Sample Implementation,
+** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
+** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
+** Copyright in any portions created by third parties is as indicated
+** elsewhere herein. All Rights Reserved.
 ** 
-** Portions of this file are UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon
-** Graphics, Inc.; the contents of this file may not be disclosed to third
-** parties, copied or duplicated in any form, in whole or in part, without
-** the prior written permission of Silicon Graphics, Inc.
-** 
-** RESTRICTED RIGHTS LEGEND:
-** Use, duplication or disclosure by the Government is subject to
-** restrictions as set forth in subdivision (c)(1)(ii) of the Rights in
-** Technical Data and Computer Software clause at DFARS 252.227-7013,
-** and/or in similar or successor clauses in the FAR, DOD or NASA FAR
-** Supplement.  Unpublished - rights reserved under the Copyright Laws of
-** the United States.
+** Additional Notice Provisions: This software was created using the
+** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
+** not been independently verified as being compliant with the OpenGL(R)
+** version 1.2.1 Specification.
 */
 
-#ifndef GLAPIENTRY
-# ifdef _WIN32
-#  if (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED)  /* Mimic <windef.h> */
-#   define GLAPIENTRY __stdcall
-#  else
-#   define GLAPIENTRY
-#  endif
-# else
-#  define GLAPIENTRY
-# endif
+#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
+#define WIN32_LEAN_AND_MEAN 1
+#include <windows.h>
 #endif
 
-#ifndef GLAPI
-# define GLAPI extern
+#ifndef APIENTRY
+#define APIENTRY
 #endif
-
-#ifndef GLAPIENTRYP
-# define GLAPIENTRYP GLAPIENTRY *
+#ifndef APIENTRYP
+#define APIENTRYP APIENTRY *
+#endif
+#ifndef GLAPI
+#define GLAPI extern
 #endif
 
 /*************************************************************/
 
-#ifndef GL_TYPEDEFS_1_5
-#define GL_TYPEDEFS_1_5
-#if defined(_WIN64)
-    typedef __int64 GLintptr;
-    typedef __int64 GLsizeiptr;
-#elif defined(__x86_64__)
-    typedef long int GLintptr;
-    typedef long int GLsizeiptr;
-#else
-    typedef int GLintptr;
-    typedef int GLsizeiptr;
+/* Header file version number, required by OpenGL ABI for Linux */
+/* glext.h last updated 2009/01/08 */
+/* Current version at http://www.opengl.org/registry/ */
+#define GL_GLEXT_VERSION 44
+
+#ifndef GL_VERSION_1_2
+#define GL_UNSIGNED_BYTE_3_3_2            0x8032
+#define GL_UNSIGNED_SHORT_4_4_4_4         0x8033
+#define GL_UNSIGNED_SHORT_5_5_5_1         0x8034
+#define GL_UNSIGNED_INT_8_8_8_8           0x8035
+#define GL_UNSIGNED_INT_10_10_10_2        0x8036
+#define GL_RESCALE_NORMAL                 0x803A
+#define GL_TEXTURE_BINDING_3D             0x806A
+#define GL_PACK_SKIP_IMAGES               0x806B
+#define GL_PACK_IMAGE_HEIGHT              0x806C
+#define GL_UNPACK_SKIP_IMAGES             0x806D
+#define GL_UNPACK_IMAGE_HEIGHT            0x806E
+#define GL_TEXTURE_3D                     0x806F
+#define GL_PROXY_TEXTURE_3D               0x8070
+#define GL_TEXTURE_DEPTH                  0x8071
+#define GL_TEXTURE_WRAP_R                 0x8072
+#define GL_MAX_3D_TEXTURE_SIZE            0x8073
+#define GL_UNSIGNED_BYTE_2_3_3_REV        0x8362
+#define GL_UNSIGNED_SHORT_5_6_5           0x8363
+#define GL_UNSIGNED_SHORT_5_6_5_REV       0x8364
+#define GL_UNSIGNED_SHORT_4_4_4_4_REV     0x8365
+#define GL_UNSIGNED_SHORT_1_5_5_5_REV     0x8366
+#define GL_UNSIGNED_INT_8_8_8_8_REV       0x8367
+#define GL_UNSIGNED_INT_2_10_10_10_REV    0x8368
+#define GL_BGR                            0x80E0
+#define GL_BGRA                           0x80E1
+#define GL_MAX_ELEMENTS_VERTICES          0x80E8
+#define GL_MAX_ELEMENTS_INDICES           0x80E9
+#define GL_CLAMP_TO_EDGE                  0x812F
+#define GL_TEXTURE_MIN_LOD                0x813A
+#define GL_TEXTURE_MAX_LOD                0x813B
+#define GL_TEXTURE_BASE_LEVEL             0x813C
+#define GL_TEXTURE_MAX_LEVEL              0x813D
+#define GL_LIGHT_MODEL_COLOR_CONTROL      0x81F8
+#define GL_SINGLE_COLOR                   0x81F9
+#define GL_SEPARATE_SPECULAR_COLOR        0x81FA
+#define GL_SMOOTH_POINT_SIZE_RANGE        0x0B12
+#define GL_SMOOTH_POINT_SIZE_GRANULARITY  0x0B13
+#define GL_SMOOTH_LINE_WIDTH_RANGE        0x0B22
+#define GL_SMOOTH_LINE_WIDTH_GRANULARITY  0x0B23
+#define GL_ALIASED_POINT_SIZE_RANGE       0x846D
+#define GL_ALIASED_LINE_WIDTH_RANGE       0x846E
 #endif
+
+#ifndef GL_ARB_imaging
+#define GL_CONSTANT_COLOR                 0x8001
+#define GL_ONE_MINUS_CONSTANT_COLOR       0x8002
+#define GL_CONSTANT_ALPHA                 0x8003
+#define GL_ONE_MINUS_CONSTANT_ALPHA       0x8004
+#define GL_BLEND_COLOR                    0x8005
+#define GL_FUNC_ADD                       0x8006
+#define GL_MIN                            0x8007
+#define GL_MAX                            0x8008
+#define GL_BLEND_EQUATION                 0x8009
+#define GL_FUNC_SUBTRACT                  0x800A
+#define GL_FUNC_REVERSE_SUBTRACT          0x800B
+#define GL_CONVOLUTION_1D                 0x8010
+#define GL_CONVOLUTION_2D                 0x8011
+#define GL_SEPARABLE_2D                   0x8012
+#define GL_CONVOLUTION_BORDER_MODE        0x8013
+#define GL_CONVOLUTION_FILTER_SCALE       0x8014
+#define GL_CONVOLUTION_FILTER_BIAS        0x8015
+#define GL_REDUCE                         0x8016
+#define GL_CONVOLUTION_FORMAT             0x8017
+#define GL_CONVOLUTION_WIDTH              0x8018
+#define GL_CONVOLUTION_HEIGHT             0x8019
+#define GL_MAX_CONVOLUTION_WIDTH          0x801A
+#define GL_MAX_CONVOLUTION_HEIGHT         0x801B
+#define GL_POST_CONVOLUTION_RED_SCALE     0x801C
+#define GL_POST_CONVOLUTION_GREEN_SCALE   0x801D
+#define GL_POST_CONVOLUTION_BLUE_SCALE    0x801E
+#define GL_POST_CONVOLUTION_ALPHA_SCALE   0x801F
+#define GL_POST_CONVOLUTION_RED_BIAS      0x8020
+#define GL_POST_CONVOLUTION_GREEN_BIAS    0x8021
+#define GL_POST_CONVOLUTION_BLUE_BIAS     0x8022
+#define GL_POST_CONVOLUTION_ALPHA_BIAS    0x8023
+#define GL_HISTOGRAM                      0x8024
+#define GL_PROXY_HISTOGRAM                0x8025
+#define GL_HISTOGRAM_WIDTH                0x8026
+#define GL_HISTOGRAM_FORMAT               0x8027
+#define GL_HISTOGRAM_RED_SIZE             0x8028
+#define GL_HISTOGRAM_GREEN_SIZE           0x8029
+#define GL_HISTOGRAM_BLUE_SIZE            0x802A
+#define GL_HISTOGRAM_ALPHA_SIZE           0x802B
+#define GL_HISTOGRAM_LUMINANCE_SIZE       0x802C
+#define GL_HISTOGRAM_SINK                 0x802D
+#define GL_MINMAX                         0x802E
+#define GL_MINMAX_FORMAT                  0x802F
+#define GL_MINMAX_SINK                    0x8030
+#define GL_TABLE_TOO_LARGE                0x8031
+#define GL_COLOR_MATRIX                   0x80B1
+#define GL_COLOR_MATRIX_STACK_DEPTH       0x80B2
+#define GL_MAX_COLOR_MATRIX_STACK_DEPTH   0x80B3
+#define GL_POST_COLOR_MATRIX_RED_SCALE    0x80B4
+#define GL_POST_COLOR_MATRIX_GREEN_SCALE  0x80B5
+#define GL_POST_COLOR_MATRIX_BLUE_SCALE   0x80B6
+#define GL_POST_COLOR_MATRIX_ALPHA_SCALE  0x80B7
+#define GL_POST_COLOR_MATRIX_RED_BIAS     0x80B8
+#define GL_POST_COLOR_MATRIX_GREEN_BIAS   0x80B9
+#define GL_POST_COLOR_MATRIX_BLUE_BIAS    0x80BA
+#define GL_POST_COLOR_MATRIX_ALPHA_BIAS   0x80BB
+#define GL_COLOR_TABLE                    0x80D0
+#define GL_POST_CONVOLUTION_COLOR_TABLE   0x80D1
+#define GL_POST_COLOR_MATRIX_COLOR_TABLE  0x80D2
+#define GL_PROXY_COLOR_TABLE              0x80D3
+#define GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 0x80D4
+#define GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 0x80D5
+#define GL_COLOR_TABLE_SCALE              0x80D6
+#define GL_COLOR_TABLE_BIAS               0x80D7
+#define GL_COLOR_TABLE_FORMAT             0x80D8
+#define GL_COLOR_TABLE_WIDTH              0x80D9
+#define GL_COLOR_TABLE_RED_SIZE           0x80DA
+#define GL_COLOR_TABLE_GREEN_SIZE         0x80DB
+#define GL_COLOR_TABLE_BLUE_SIZE          0x80DC
+#define GL_COLOR_TABLE_ALPHA_SIZE         0x80DD
+#define GL_COLOR_TABLE_LUMINANCE_SIZE     0x80DE
+#define GL_COLOR_TABLE_INTENSITY_SIZE     0x80DF
+#define GL_CONSTANT_BORDER                0x8151
+#define GL_REPLICATE_BORDER               0x8153
+#define GL_CONVOLUTION_BORDER_COLOR       0x8154
 #endif
 
-#ifndef GL_TYPEDEFS_2_0
-# define GL_TYPEDEFS_2_0
-    typedef char GLchar;
+#ifndef GL_VERSION_1_3
+#define GL_TEXTURE0                       0x84C0
+#define GL_TEXTURE1                       0x84C1
+#define GL_TEXTURE2                       0x84C2
+#define GL_TEXTURE3                       0x84C3
+#define GL_TEXTURE4                       0x84C4
+#define GL_TEXTURE5                       0x84C5
+#define GL_TEXTURE6                       0x84C6
+#define GL_TEXTURE7                       0x84C7
+#define GL_TEXTURE8                       0x84C8
+#define GL_TEXTURE9                       0x84C9
+#define GL_TEXTURE10                      0x84CA
+#define GL_TEXTURE11                      0x84CB
+#define GL_TEXTURE12                      0x84CC
+#define GL_TEXTURE13                      0x84CD
+#define GL_TEXTURE14                      0x84CE
+#define GL_TEXTURE15                      0x84CF
+#define GL_TEXTURE16                      0x84D0
+#define GL_TEXTURE17                      0x84D1
+#define GL_TEXTURE18                      0x84D2
+#define GL_TEXTURE19                      0x84D3
+#define GL_TEXTURE20                      0x84D4
+#define GL_TEXTURE21                      0x84D5
+#define GL_TEXTURE22                      0x84D6
+#define GL_TEXTURE23                      0x84D7
+#define GL_TEXTURE24                      0x84D8
+#define GL_TEXTURE25                      0x84D9
+#define GL_TEXTURE26                      0x84DA
+#define GL_TEXTURE27                      0x84DB
+#define GL_TEXTURE28                      0x84DC
+#define GL_TEXTURE29                      0x84DD
+#define GL_TEXTURE30                      0x84DE
+#define GL_TEXTURE31                      0x84DF
+#define GL_ACTIVE_TEXTURE                 0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE          0x84E1
+#define GL_MAX_TEXTURE_UNITS              0x84E2
+#define GL_TRANSPOSE_MODELVIEW_MATRIX     0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX    0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX       0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX         0x84E6
+#define GL_MULTISAMPLE                    0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE       0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE            0x809F
+#define GL_SAMPLE_COVERAGE                0x80A0
+#define GL_SAMPLE_BUFFERS                 0x80A8
+#define GL_SAMPLES                        0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE          0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT         0x80AB
+#define GL_MULTISAMPLE_BIT                0x20000000
+#define GL_NORMAL_MAP                     0x8511
+#define GL_REFLECTION_MAP                 0x8512
+#define GL_TEXTURE_CUBE_MAP               0x8513
+#define GL_TEXTURE_BINDING_CUBE_MAP       0x8514
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_X    0x8515
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_X    0x8516
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Y    0x8517
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y    0x8518
+#define GL_TEXTURE_CUBE_MAP_POSITIVE_Z    0x8519
+#define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z    0x851A
+#define GL_PROXY_TEXTURE_CUBE_MAP         0x851B
+#define GL_MAX_CUBE_MAP_TEXTURE_SIZE      0x851C
+#define GL_COMPRESSED_ALPHA               0x84E9
+#define GL_COMPRESSED_LUMINANCE           0x84EA
+#define GL_COMPRESSED_LUMINANCE_ALPHA     0x84EB
+#define GL_COMPRESSED_INTENSITY           0x84EC
+#define GL_COMPRESSED_RGB                 0x84ED
+#define GL_COMPRESSED_RGBA                0x84EE
+#define GL_TEXTURE_COMPRESSION_HINT       0x84EF
+#define GL_TEXTURE_COMPRESSED_IMAGE_SIZE  0x86A0
+#define GL_TEXTURE_COMPRESSED             0x86A1
+#define GL_NUM_COMPRESSED_TEXTURE_FORMATS 0x86A2
+#define GL_COMPRESSED_TEXTURE_FORMATS     0x86A3
+#define GL_CLAMP_TO_BORDER                0x812D
+#define GL_COMBINE                        0x8570
+#define GL_COMBINE_RGB                    0x8571
+#define GL_COMBINE_ALPHA                  0x8572
+#define GL_SOURCE0_RGB                    0x8580
+#define GL_SOURCE1_RGB                    0x8581
+#define GL_SOURCE2_RGB                    0x8582
+#define GL_SOURCE0_ALPHA                  0x8588
+#define GL_SOURCE1_ALPHA                  0x8589
+#define GL_SOURCE2_ALPHA                  0x858A
+#define GL_OPERAND0_RGB                   0x8590
+#define GL_OPERAND1_RGB                   0x8591
+#define GL_OPERAND2_RGB                   0x8592
+#define GL_OPERAND0_ALPHA                 0x8598
+#define GL_OPERAND1_ALPHA                 0x8599
+#define GL_OPERAND2_ALPHA                 0x859A
+#define GL_RGB_SCALE                      0x8573
+#define GL_ADD_SIGNED                     0x8574
+#define GL_INTERPOLATE                    0x8575
+#define GL_SUBTRACT                       0x84E7
+#define GL_CONSTANT                       0x8576
+#define GL_PRIMARY_COLOR                  0x8577
+#define GL_PREVIOUS                       0x8578
+#define GL_DOT3_RGB                       0x86AE
+#define GL_DOT3_RGBA                      0x86AF
 #endif
 
-typedef unsigned short GLhalf;
-typedef unsigned int GLhandleARB;
-typedef char GLcharARB;
-#if defined(_WIN64)
-    typedef __int64 GLintptrARB;
-    typedef __int64 GLsizeiptrARB;
-#elif defined(__x86_64__)
-    typedef long int GLintptrARB;
-    typedef long int GLsizeiptrARB;
-#else
-    typedef int GLintptrARB;
-    typedef int GLsizeiptrARB;
+#ifndef GL_VERSION_1_4
+#define GL_BLEND_DST_RGB                  0x80C8
+#define GL_BLEND_SRC_RGB                  0x80C9
+#define GL_BLEND_DST_ALPHA                0x80CA
+#define GL_BLEND_SRC_ALPHA                0x80CB
+#define GL_POINT_SIZE_MIN                 0x8126
+#define GL_POINT_SIZE_MAX                 0x8127
+#define GL_POINT_FADE_THRESHOLD_SIZE      0x8128
+#define GL_POINT_DISTANCE_ATTENUATION     0x8129
+#define GL_GENERATE_MIPMAP                0x8191
+#define GL_GENERATE_MIPMAP_HINT           0x8192
+#define GL_DEPTH_COMPONENT16              0x81A5
+#define GL_DEPTH_COMPONENT24              0x81A6
+#define GL_DEPTH_COMPONENT32              0x81A7
+#define GL_MIRRORED_REPEAT                0x8370
+#define GL_FOG_COORDINATE_SOURCE          0x8450
+#define GL_FOG_COORDINATE                 0x8451
+#define GL_FRAGMENT_DEPTH                 0x8452
+#define GL_CURRENT_FOG_COORDINATE         0x8453
+#define GL_FOG_COORDINATE_ARRAY_TYPE      0x8454
+#define GL_FOG_COORDINATE_ARRAY_STRIDE    0x8455
+#define GL_FOG_COORDINATE_ARRAY_POINTER   0x8456
+#define GL_FOG_COORDINATE_ARRAY           0x8457
+#define GL_COLOR_SUM                      0x8458
+#define GL_CURRENT_SECONDARY_COLOR        0x8459
+#define GL_SECONDARY_COLOR_ARRAY_SIZE     0x845A
+#define GL_SECONDARY_COLOR_ARRAY_TYPE     0x845B
+#define GL_SECONDARY_COLOR_ARRAY_STRIDE   0x845C
+#define GL_SECONDARY_COLOR_ARRAY_POINTER  0x845D
+#define GL_SECONDARY_COLOR_ARRAY          0x845E
+#define GL_MAX_TEXTURE_LOD_BIAS           0x84FD
+#define GL_TEXTURE_FILTER_CONTROL         0x8500
+#define GL_TEXTURE_LOD_BIAS               0x8501
+#define GL_INCR_WRAP                      0x8507
+#define GL_DECR_WRAP                      0x8508
+#define GL_TEXTURE_DEPTH_SIZE             0x884A
+#define GL_DEPTH_TEXTURE_MODE             0x884B
+#define GL_TEXTURE_COMPARE_MODE           0x884C
+#define GL_TEXTURE_COMPARE_FUNC           0x884D
+#define GL_COMPARE_R_TO_TEXTURE           0x884E
 #endif
 
-typedef signed long long GLint64EXT;
-typedef unsigned long long GLuint64EXT;
+#ifndef GL_VERSION_1_5
+#define GL_BUFFER_SIZE                    0x8764
+#define GL_BUFFER_USAGE                   0x8765
+#define GL_QUERY_COUNTER_BITS             0x8864
+#define GL_CURRENT_QUERY                  0x8865
+#define GL_QUERY_RESULT                   0x8866
+#define GL_QUERY_RESULT_AVAILABLE         0x8867
+#define GL_ARRAY_BUFFER                   0x8892
+#define GL_ELEMENT_ARRAY_BUFFER           0x8893
+#define GL_ARRAY_BUFFER_BINDING           0x8894
+#define GL_ELEMENT_ARRAY_BUFFER_BINDING   0x8895
+#define GL_VERTEX_ARRAY_BUFFER_BINDING    0x8896
+#define GL_NORMAL_ARRAY_BUFFER_BINDING    0x8897
+#define GL_COLOR_ARRAY_BUFFER_BINDING     0x8898
+#define GL_INDEX_ARRAY_BUFFER_BINDING     0x8899
+#define GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 0x889A
+#define GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 0x889B
+#define GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 0x889C
+#define GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 0x889D
+#define GL_WEIGHT_ARRAY_BUFFER_BINDING    0x889E
+#define GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 0x889F
+#define GL_READ_ONLY                      0x88B8
+#define GL_WRITE_ONLY                     0x88B9
+#define GL_READ_WRITE                     0x88BA
+#define GL_BUFFER_ACCESS                  0x88BB
+#define GL_BUFFER_MAPPED                  0x88BC
+#define GL_BUFFER_MAP_POINTER             0x88BD
+#define GL_STREAM_DRAW                    0x88E0
+#define GL_STREAM_READ                    0x88E1
+#define GL_STREAM_COPY                    0x88E2
+#define GL_STATIC_DRAW                    0x88E4
+#define GL_STATIC_READ                    0x88E5
+#define GL_STATIC_COPY                    0x88E6
+#define GL_DYNAMIC_DRAW                   0x88E8
+#define GL_DYNAMIC_READ                   0x88E9
+#define GL_DYNAMIC_COPY                   0x88EA
+#define GL_SAMPLES_PASSED                 0x8914
+#define GL_FOG_COORD_SRC                  GL_FOG_COORDINATE_SOURCE
+#define GL_FOG_COORD                      GL_FOG_COORDINATE
+#define GL_CURRENT_FOG_COORD              GL_CURRENT_FOG_COORDINATE
+#define GL_FOG_COORD_ARRAY_TYPE           GL_FOG_COORDINATE_ARRAY_TYPE
+#define GL_FOG_COORD_ARRAY_STRIDE         GL_FOG_COORDINATE_ARRAY_STRIDE
+#define GL_FOG_COORD_ARRAY_POINTER        GL_FOG_COORDINATE_ARRAY_POINTER
+#define GL_FOG_COORD_ARRAY                GL_FOG_COORDINATE_ARRAY
+#define GL_FOG_COORD_ARRAY_BUFFER_BINDING GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING
+#define GL_SRC0_RGB                       GL_SOURCE0_RGB
+#define GL_SRC1_RGB                       GL_SOURCE1_RGB
+#define GL_SRC2_RGB                       GL_SOURCE2_RGB
+#define GL_SRC0_ALPHA                     GL_SOURCE0_ALPHA
+#define GL_SRC1_ALPHA                     GL_SOURCE1_ALPHA
+#define GL_SRC2_ALPHA                     GL_SOURCE2_ALPHA
+#endif
 
+#ifndef GL_VERSION_2_0
+#define GL_BLEND_EQUATION_RGB             GL_BLEND_EQUATION
+#define GL_VERTEX_ATTRIB_ARRAY_ENABLED    0x8622
+#define GL_VERTEX_ATTRIB_ARRAY_SIZE       0x8623
+#define GL_VERTEX_ATTRIB_ARRAY_STRIDE     0x8624
+#define GL_VERTEX_ATTRIB_ARRAY_TYPE       0x8625
+#define GL_CURRENT_VERTEX_ATTRIB          0x8626
+#define GL_VERTEX_PROGRAM_POINT_SIZE      0x8642
+#define GL_VERTEX_PROGRAM_TWO_SIDE        0x8643
+#define GL_VERTEX_ATTRIB_ARRAY_POINTER    0x8645
+#define GL_STENCIL_BACK_FUNC              0x8800
+#define GL_STENCIL_BACK_FAIL              0x8801
+#define GL_STENCIL_BACK_PASS_DEPTH_FAIL   0x8802
+#define GL_STENCIL_BACK_PASS_DEPTH_PASS   0x8803
+#define GL_MAX_DRAW_BUFFERS               0x8824
+#define GL_DRAW_BUFFER0                   0x8825
+#define GL_DRAW_BUFFER1                   0x8826
+#define GL_DRAW_BUFFER2                   0x8827
+#define GL_DRAW_BUFFER3                   0x8828
+#define GL_DRAW_BUFFER4                   0x8829
+#define GL_DRAW_BUFFER5                   0x882A
+#define GL_DRAW_BUFFER6                   0x882B
+#define GL_DRAW_BUFFER7                   0x882C
+#define GL_DRAW_BUFFER8                   0x882D
+#define GL_DRAW_BUFFER9                   0x882E
+#define GL_DRAW_BUFFER10                  0x882F
+#define GL_DRAW_BUFFER11                  0x8830
+#define GL_DRAW_BUFFER12                  0x8831
+#define GL_DRAW_BUFFER13                  0x8832
+#define GL_DRAW_BUFFER14                  0x8833
+#define GL_DRAW_BUFFER15                  0x8834
+#define GL_BLEND_EQUATION_ALPHA           0x883D
+#define GL_POINT_SPRITE                   0x8861
+#define GL_COORD_REPLACE                  0x8862
+#define GL_MAX_VERTEX_ATTRIBS             0x8869
+#define GL_VERTEX_ATTRIB_ARRAY_NORMALIZED 0x886A
+#define GL_MAX_TEXTURE_COORDS             0x8871
+#define GL_MAX_TEXTURE_IMAGE_UNITS        0x8872
+#define GL_FRAGMENT_SHADER                0x8B30
+#define GL_VERTEX_SHADER                  0x8B31
+#define GL_MAX_FRAGMENT_UNIFORM_COMPONENTS 0x8B49
+#define GL_MAX_VERTEX_UNIFORM_COMPONENTS  0x8B4A
+#define GL_MAX_VARYING_FLOATS             0x8B4B
+#define GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS 0x8B4C
+#define GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS 0x8B4D
+#define GL_SHADER_TYPE                    0x8B4F
+#define GL_FLOAT_VEC2                     0x8B50
+#define GL_FLOAT_VEC3                     0x8B51
+#define GL_FLOAT_VEC4                     0x8B52
+#define GL_INT_VEC2                       0x8B53
+#define GL_INT_VEC3                       0x8B54
+#define GL_INT_VEC4                       0x8B55
+#define GL_BOOL                           0x8B56
+#define GL_BOOL_VEC2                      0x8B57
+#define GL_BOOL_VEC3                      0x8B58
+#define GL_BOOL_VEC4                      0x8B59
+#define GL_FLOAT_MAT2                     0x8B5A
+#define GL_FLOAT_MAT3                     0x8B5B
+#define GL_FLOAT_MAT4                     0x8B5C
+#define GL_SAMPLER_1D                     0x8B5D
+#define GL_SAMPLER_2D                     0x8B5E
+#define GL_SAMPLER_3D                     0x8B5F
+#define GL_SAMPLER_CUBE                   0x8B60
+#define GL_SAMPLER_1D_SHADOW              0x8B61
+#define GL_SAMPLER_2D_SHADOW              0x8B62
+#define GL_DELETE_STATUS                  0x8B80
+#define GL_COMPILE_STATUS                 0x8B81
+#define GL_LINK_STATUS                    0x8B82
+#define GL_VALIDATE_STATUS                0x8B83
+#define GL_INFO_LOG_LENGTH                0x8B84
+#define GL_ATTACHED_SHADERS               0x8B85
+#define GL_ACTIVE_UNIFORMS                0x8B86
+#define GL_ACTIVE_UNIFORM_MAX_LENGTH      0x8B87
+#define GL_SHADER_SOURCE_LENGTH           0x8B88
+#define GL_ACTIVE_ATTRIBUTES              0x8B89
+#define GL_ACTIVE_ATTRIBUTE_MAX_LENGTH    0x8B8A
+#define GL_FRAGMENT_SHADER_DERIVATIVE_HINT 0x8B8B
+#define GL_SHADING_LANGUAGE_VERSION       0x8B8C
+#define GL_CURRENT_PROGRAM                0x8B8D
+#define GL_POINT_SPRITE_COORD_ORIGIN      0x8CA0
+#define GL_LOWER_LEFT                     0x8CA1
+#define GL_UPPER_LEFT                     0x8CA2
+#define GL_STENCIL_BACK_REF               0x8CA3
+#define GL_STENCIL_BACK_VALUE_MASK        0x8CA4
+#define GL_STENCIL_BACK_WRITEMASK         0x8CA5
+#endif
 
-#ifndef GL_VERSION_1_2
-#define GL_VERSION_1_2 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void GLAPIENTRY glBlendColor (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-GLAPI void GLAPIENTRY glBlendEquation (GLenum mode);
-GLAPI void GLAPIENTRY glDrawRangeElements (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-GLAPI void GLAPIENTRY glColorTable (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void GLAPIENTRY glColorTableParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glColorTableParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glCopyColorTable (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glGetColorTable (GLenum target, GLenum format, GLenum type, GLvoid *table);
-GLAPI void GLAPIENTRY glGetColorTableParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetColorTableParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glTexImage3D (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-GLAPI void GLAPIENTRY glColorSubTableEXT (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void GLAPIENTRY glColorTableEXT (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-GLAPI void GLAPIENTRY glGetColorTableEXT (GLenum target, GLenum format, GLenum type, GLvoid *table);
-GLAPI void GLAPIENTRY glGetColorTableParameterfvEXT (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetColorTableParameterivEXT (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glCopyTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (GLAPIENTRYP PFNGLBLENDCOLORPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
-typedef void (GLAPIENTRYP PFNGLBLENDEQUATIONPROC) (GLenum mode);
-typedef void (GLAPIENTRYP PFNGLDRAWRANGEELEMENTSPROC) (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices);
-typedef void (GLAPIENTRYP PFNGLCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-typedef void (GLAPIENTRYP PFNGLCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (GLAPIENTRYP PFNGLCOPYCOLORTABLEPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-typedef void (GLAPIENTRYP PFNGLGETCOLORTABLEPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
-typedef void (GLAPIENTRYP PFNGLGETCOLORTABLEPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLGETCOLORTABLEPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (GLAPIENTRYP PFNGLTEXIMAGE3DPROC) (GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (GLAPIENTRYP PFNGLTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLenum type, const GLvoid *pixels);
-typedef void (GLAPIENTRYP PFNGLCOLORSUBTABLEEXTPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *table);
-typedef void (GLAPIENTRYP PFNGLCOLORTABLEEXTPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *table);
-typedef void (GLAPIENTRYP PFNGLGETCOLORTABLEEXTPROC) (GLenum target, GLenum format, GLenum type, GLvoid *table);
-typedef void (GLAPIENTRYP PFNGLGETCOLORTABLEPARAMETERFVEXTPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLGETCOLORTABLEPARAMETERIVEXTPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (GLAPIENTRYP PFNGLCOPYTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLint x, GLint y, GLsizei width, GLsizei height);
+#ifndef GL_VERSION_2_1
+#define GL_PIXEL_PACK_BUFFER              0x88EB
+#define GL_PIXEL_UNPACK_BUFFER            0x88EC
+#define GL_PIXEL_PACK_BUFFER_BINDING      0x88ED
+#define GL_PIXEL_UNPACK_BUFFER_BINDING    0x88EF
+#define GL_SRGB                           0x8C40
+#define GL_SRGB8                          0x8C41
+#define GL_SRGB_ALPHA                     0x8C42
+#define GL_SRGB8_ALPHA8                   0x8C43
+#define GL_SLUMINANCE_ALPHA               0x8C44
+#define GL_SLUMINANCE8_ALPHA8             0x8C45
+#define GL_SLUMINANCE                     0x8C46
+#define GL_SLUMINANCE8                    0x8C47
+#define GL_COMPRESSED_SRGB                0x8C48
+#define GL_COMPRESSED_SRGB_ALPHA          0x8C49
+#define GL_COMPRESSED_SLUMINANCE          0x8C4A
+#define GL_COMPRESSED_SLUMINANCE_ALPHA    0x8C4B
+#define GL_FLOAT_MAT2x3                   0x8B65
+#define GL_FLOAT_MAT2x4                   0x8B66
+#define GL_FLOAT_MAT3x2                   0x8B67
+#define GL_FLOAT_MAT3x4                   0x8B68
+#define GL_FLOAT_MAT4x2                   0x8B69
+#define GL_FLOAT_MAT4x3                   0x8B6A
+#define GL_CURRENT_RASTER_SECONDARY_COLOR 0x845F
 #endif
 
+#ifndef GL_VERSION_3_0
+#define GL_COMPARE_REF_TO_TEXTURE         GL_COMPARE_R_TO_TEXTURE_ARB
+#define GL_CLIP_DISTANCE0                 GL_CLIP_PLANE0
+#define GL_CLIP_DISTANCE1                 GL_CLIP_PLANE1
+#define GL_CLIP_DISTANCE2                 GL_CLIP_PLANE2
+#define GL_CLIP_DISTANCE3                 GL_CLIP_PLANE3
+#define GL_CLIP_DISTANCE4                 GL_CLIP_PLANE4
+#define GL_CLIP_DISTANCE5                 GL_CLIP_PLANE5
+#define GL_MAX_CLIP_DISTANCES             GL_MAX_CLIP_PLANES
+#define GL_MAJOR_VERSION                  0x821B
+#define GL_MINOR_VERSION                  0x821C
+#define GL_NUM_EXTENSIONS                 0x821D
+#define GL_CONTEXT_FLAGS                  0x821E
+#define GL_DEPTH_BUFFER                   0x8223
+#define GL_STENCIL_BUFFER                 0x8224
+#define GL_COMPRESSED_RED                 0x8225
+#define GL_COMPRESSED_RG                  0x8226
+#define GL_CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT 0x0001
+#define GL_RGBA32F                        0x8814
+#define GL_RGB32F                         0x8815
+#define GL_RGBA16F                        0x881A
+#define GL_RGB16F                         0x881B
+#define GL_VERTEX_ATTRIB_ARRAY_INTEGER    0x88FD
+#define GL_MAX_ARRAY_TEXTURE_LAYERS       0x88FF
+#define GL_MIN_PROGRAM_TEXEL_OFFSET       0x8904
+#define GL_MAX_PROGRAM_TEXEL_OFFSET       0x8905
+#define GL_CLAMP_VERTEX_COLOR             0x891A
+#define GL_CLAMP_FRAGMENT_COLOR           0x891B
+#define GL_CLAMP_READ_COLOR               0x891C
+#define GL_FIXED_ONLY                     0x891D
+#define GL_MAX_VARYING_COMPONENTS         GL_MAX_VARYING_FLOATS
+#define GL_TEXTURE_RED_TYPE               0x8C10
+#define GL_TEXTURE_GREEN_TYPE             0x8C11
+#define GL_TEXTURE_BLUE_TYPE              0x8C12
+#define GL_TEXTURE_ALPHA_TYPE             0x8C13
+#define GL_TEXTURE_LUMINANCE_TYPE         0x8C14
+#define GL_TEXTURE_INTENSITY_TYPE         0x8C15
+#define GL_TEXTURE_DEPTH_TYPE             0x8C16
+#define GL_UNSIGNED_NORMALIZED            0x8C17
+#define GL_TEXTURE_1D_ARRAY               0x8C18
+#define GL_PROXY_TEXTURE_1D_ARRAY         0x8C19
+#define GL_TEXTURE_2D_ARRAY               0x8C1A
+#define GL_PROXY_TEXTURE_2D_ARRAY         0x8C1B
+#define GL_TEXTURE_BINDING_1D_ARRAY       0x8C1C
+#define GL_TEXTURE_BINDING_2D_ARRAY       0x8C1D
+#define GL_R11F_G11F_B10F                 0x8C3A
+#define GL_UNSIGNED_INT_10F_11F_11F_REV   0x8C3B
+#define GL_RGB9_E5                        0x8C3D
+#define GL_UNSIGNED_INT_5_9_9_9_REV       0x8C3E
+#define GL_TEXTURE_SHARED_SIZE            0x8C3F
+#define GL_TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH 0x8C76
+#define GL_TRANSFORM_FEEDBACK_BUFFER_MODE 0x8C7F
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS 0x8C80
+#define GL_TRANSFORM_FEEDBACK_VARYINGS    0x8C83
+#define GL_TRANSFORM_FEEDBACK_BUFFER_START 0x8C84
+#define GL_TRANSFORM_FEEDBACK_BUFFER_SIZE 0x8C85
+#define GL_PRIMITIVES_GENERATED           0x8C87
+#define GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN 0x8C88
+#define GL_RASTERIZER_DISCARD             0x8C89
+#define GL_MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS 0x8C8A
+#define GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS 0x8C8B
+#define GL_INTERLEAVED_ATTRIBS            0x8C8C
+#define GL_SEPARATE_ATTRIBS               0x8C8D
+#define GL_TRANSFORM_FEEDBACK_BUFFER      0x8C8E
+#define GL_TRANSFORM_FEEDBACK_BUFFER_BINDING 0x8C8F
+#define GL_RGBA32UI                       0x8D70
+#define GL_RGB32UI                        0x8D71
+#define GL_RGBA16UI                       0x8D76
+#define GL_RGB16UI                        0x8D77
+#define GL_RGBA8UI                        0x8D7C
+#define GL_RGB8UI                         0x8D7D
+#define GL_RGBA32I                        0x8D82
+#define GL_RGB32I                         0x8D83
+#define GL_RGBA16I                        0x8D88
+#define GL_RGB16I                         0x8D89
+#define GL_RGBA8I                         0x8D8E
+#define GL_RGB8I                          0x8D8F
+#define GL_RED_INTEGER                    0x8D94
+#define GL_GREEN_INTEGER                  0x8D95
+#define GL_BLUE_INTEGER                   0x8D96
+#define GL_ALPHA_INTEGER                  0x8D97
+#define GL_RGB_INTEGER                    0x8D98
+#define GL_RGBA_INTEGER                   0x8D99
+#define GL_BGR_INTEGER                    0x8D9A
+#define GL_BGRA_INTEGER                   0x8D9B
+#define GL_SAMPLER_1D_ARRAY               0x8DC0
+#define GL_SAMPLER_2D_ARRAY               0x8DC1
+#define GL_SAMPLER_1D_ARRAY_SHADOW        0x8DC3
+#define GL_SAMPLER_2D_ARRAY_SHADOW        0x8DC4
+#define GL_SAMPLER_CUBE_SHADOW            0x8DC5
+#define GL_UNSIGNED_INT_VEC2              0x8DC6
+#define GL_UNSIGNED_INT_VEC3              0x8DC7
+#define GL_UNSIGNED_INT_VEC4              0x8DC8
+#define GL_INT_SAMPLER_1D                 0x8DC9
+#define GL_INT_SAMPLER_2D                 0x8DCA
+#define GL_INT_SAMPLER_3D                 0x8DCB
+#define GL_INT_SAMPLER_CUBE               0x8DCC
+#define GL_INT_SAMPLER_1D_ARRAY           0x8DCE
+#define GL_INT_SAMPLER_2D_ARRAY           0x8DCF
+#define GL_UNSIGNED_INT_SAMPLER_1D        0x8DD1
+#define GL_UNSIGNED_INT_SAMPLER_2D        0x8DD2
+#define GL_UNSIGNED_INT_SAMPLER_3D        0x8DD3
+#define GL_UNSIGNED_INT_SAMPLER_CUBE      0x8DD4
+#define GL_UNSIGNED_INT_SAMPLER_1D_ARRAY  0x8DD6
+#define GL_UNSIGNED_INT_SAMPLER_2D_ARRAY  0x8DD7
+#define GL_QUERY_WAIT                     0x8E13
+#define GL_QUERY_NO_WAIT                  0x8E14
+#define GL_QUERY_BY_REGION_WAIT           0x8E15
+#define GL_QUERY_BY_REGION_NO_WAIT        0x8E16
+/* Reuse tokens from ARB_depth_buffer_float */
+/* reuse GL_DEPTH_COMPONENT32F */
+/* reuse GL_DEPTH32F_STENCIL8 */
+/* reuse GL_FLOAT_32_UNSIGNED_INT_24_8_REV */
+/* Reuse tokens from ARB_framebuffer_object */
+/* reuse GL_INVALID_FRAMEBUFFER_OPERATION */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE */
+/* reuse GL_FRAMEBUFFER_DEFAULT */
+/* reuse GL_FRAMEBUFFER_UNDEFINED */
+/* reuse GL_DEPTH_STENCIL_ATTACHMENT */
+/* reuse GL_INDEX */
+/* reuse GL_MAX_RENDERBUFFER_SIZE */
+/* reuse GL_DEPTH_STENCIL */
+/* reuse GL_UNSIGNED_INT_24_8 */
+/* reuse GL_DEPTH24_STENCIL8 */
+/* reuse GL_TEXTURE_STENCIL_SIZE */
+/* reuse GL_TEXTURE_RED_TYPE */
+/* reuse GL_TEXTURE_GREEN_TYPE */
+/* reuse GL_TEXTURE_BLUE_TYPE */
+/* reuse GL_TEXTURE_ALPHA_TYPE */
+/* reuse GL_TEXTURE_LUMINANCE_TYPE */
+/* reuse GL_TEXTURE_INTENSITY_TYPE */
+/* reuse GL_TEXTURE_DEPTH_TYPE */
+/* reuse GL_UNSIGNED_NORMALIZED */
+/* reuse GL_FRAMEBUFFER_BINDING */
+/* reuse GL_DRAW_FRAMEBUFFER_BINDING */
+/* reuse GL_RENDERBUFFER_BINDING */
+/* reuse GL_READ_FRAMEBUFFER */
+/* reuse GL_DRAW_FRAMEBUFFER */
+/* reuse GL_READ_FRAMEBUFFER_BINDING */
+/* reuse GL_RENDERBUFFER_SAMPLES */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE */
+/* reuse GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER */
+/* reuse GL_FRAMEBUFFER_COMPLETE */
+/* reuse GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT */
+/* reuse GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT */
+/* reuse GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER */
+/* reuse GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER */
+/* reuse GL_FRAMEBUFFER_UNSUPPORTED */
+/* reuse GL_MAX_COLOR_ATTACHMENTS */
+/* reuse GL_COLOR_ATTACHMENT0 */
+/* reuse GL_COLOR_ATTACHMENT1 */
+/* reuse GL_COLOR_ATTACHMENT2 */
+/* reuse GL_COLOR_ATTACHMENT3 */
+/* reuse GL_COLOR_ATTACHMENT4 */
+/* reuse GL_COLOR_ATTACHMENT5 */
+/* reuse GL_COLOR_ATTACHMENT6 */
+/* reuse GL_COLOR_ATTACHMENT7 */
+/* reuse GL_COLOR_ATTACHMENT8 */
+/* reuse GL_COLOR_ATTACHMENT9 */
+/* reuse GL_COLOR_ATTACHMENT10 */
+/* reuse GL_COLOR_ATTACHMENT11 */
+/* reuse GL_COLOR_ATTACHMENT12 */
+/* reuse GL_COLOR_ATTACHMENT13 */
+/* reuse GL_COLOR_ATTACHMENT14 */
+/* reuse GL_COLOR_ATTACHMENT15 */
+/* reuse GL_DEPTH_ATTACHMENT */
+/* reuse GL_STENCIL_ATTACHMENT */
+/* reuse GL_FRAMEBUFFER */
+/* reuse GL_RENDERBUFFER */
+/* reuse GL_RENDERBUFFER_WIDTH */
+/* reuse GL_RENDERBUFFER_HEIGHT */
+/* reuse GL_RENDERBUFFER_INTERNAL_FORMAT */
+/* reuse GL_STENCIL_INDEX1 */
+/* reuse GL_STENCIL_INDEX4 */
+/* reuse GL_STENCIL_INDEX8 */
+/* reuse GL_STENCIL_INDEX16 */
+/* reuse GL_RENDERBUFFER_RED_SIZE */
+/* reuse GL_RENDERBUFFER_GREEN_SIZE */
+/* reuse GL_RENDERBUFFER_BLUE_SIZE */
+/* reuse GL_RENDERBUFFER_ALPHA_SIZE */
+/* reuse GL_RENDERBUFFER_DEPTH_SIZE */
+/* reuse GL_RENDERBUFFER_STENCIL_SIZE */
+/* reuse GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE */
+/* reuse GL_MAX_SAMPLES */
+/* Reuse tokens from ARB_framebuffer_sRGB */
+/* reuse GL_FRAMEBUFFER_SRGB */
+/* Reuse tokens from ARB_half_float_vertex */
+/* reuse GL_HALF_FLOAT */
+/* Reuse tokens from ARB_map_buffer_range */
+/* reuse GL_MAP_READ_BIT */
+/* reuse GL_MAP_WRITE_BIT */
+/* reuse GL_MAP_INVALIDATE_RANGE_BIT */
+/* reuse GL_MAP_INVALIDATE_BUFFER_BIT */
+/* reuse GL_MAP_FLUSH_EXPLICIT_BIT */
+/* reuse GL_MAP_UNSYNCHRONIZED_BIT */
+/* Reuse tokens from ARB_texture_compression_rgtc */
+/* reuse GL_COMPRESSED_RED_RGTC1 */
+/* reuse GL_COMPRESSED_SIGNED_RED_RGTC1 */
+/* reuse GL_COMPRESSED_RG_RGTC2 */
+/* reuse GL_COMPRESSED_SIGNED_RG_RGTC2 */
+/* Reuse tokens from ARB_texture_rg */
+/* reuse GL_RG */
+/* reuse GL_RG_INTEGER */
+/* reuse GL_R8 */
+/* reuse GL_R16 */
+/* reuse GL_RG8 */
+/* reuse GL_RG16 */
+/* reuse GL_R16F */
+/* reuse GL_R32F */
+/* reuse GL_RG16F */
+/* reuse GL_RG32F */
+/* reuse GL_R8I */
+/* reuse GL_R8UI */
+/* reuse GL_R16I */
+/* reuse GL_R16UI */
+/* reuse GL_R32I */
+/* reuse GL_R32UI */
+/* reuse GL_RG8I */
+/* reuse GL_RG8UI */
+/* reuse GL_RG16I */
+/* reuse GL_RG16UI */
+/* reuse GL_RG32I */
+/* reuse GL_RG32UI */
+/* Reuse tokens from ARB_vertex_array_object */
+/* reuse GL_VERTEX_ARRAY_BINDING */
+#endif
 
-#ifndef GL_ARB_imaging
-#define GL_ARB_imaging 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void GLAPIENTRY glColorSubTable (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-GLAPI void GLAPIENTRY glCopyColorSubTable (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glConvolutionFilter1D (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void GLAPIENTRY glConvolutionFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-GLAPI void GLAPIENTRY glConvolutionParameterf (GLenum target, GLenum pname, GLfloat params);
-GLAPI void GLAPIENTRY glConvolutionParameterfv (GLenum target, GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glConvolutionParameteri (GLenum target, GLenum pname, GLint params);
-GLAPI void GLAPIENTRY glConvolutionParameteriv (GLenum target, GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glCopyConvolutionFilter1D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-GLAPI void GLAPIENTRY glCopyConvolutionFilter2D (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-GLAPI void GLAPIENTRY glGetConvolutionFilter (GLenum target, GLenum format, GLenum type, GLvoid *image);
-GLAPI void GLAPIENTRY glGetConvolutionParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetConvolutionParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetSeparableFilter (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-GLAPI void GLAPIENTRY glSeparableFilter2D (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-GLAPI void GLAPIENTRY glGetHistogram (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void GLAPIENTRY glGetHistogramParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetHistogramParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glGetMinmax (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-GLAPI void GLAPIENTRY glGetMinmaxParameterfv (GLenum target, GLenum pname, GLfloat *params);
-GLAPI void GLAPIENTRY glGetMinmaxParameteriv (GLenum target, GLenum pname, GLint *params);
-GLAPI void GLAPIENTRY glHistogram (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-GLAPI void GLAPIENTRY glMinmax (GLenum target, GLenum internalformat, GLboolean sink);
-GLAPI void GLAPIENTRY glResetHistogram (GLenum target);
-GLAPI void GLAPIENTRY glResetMinmax (GLenum target);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (GLAPIENTRYP PFNGLCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLsizei count, GLenum format, GLenum type, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLCOPYCOLORSUBTABLEPROC) (GLenum target, GLsizei start, GLint x, GLint y, GLsizei width);
-typedef void (GLAPIENTRYP PFNGLCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLenum format, GLenum type, const GLvoid *image);
-typedef void (GLAPIENTRYP PFNGLCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *image);
-typedef void (GLAPIENTRYP PFNGLCONVOLUTIONPARAMETERFPROC) (GLenum target, GLenum pname, GLfloat params);
-typedef void (GLAPIENTRYP PFNGLCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, const GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLCONVOLUTIONPARAMETERIPROC) (GLenum target, GLenum pname, GLint params);
-typedef void (GLAPIENTRYP PFNGLCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, const GLint *params);
-typedef void (GLAPIENTRYP PFNGLCOPYCONVOLUTIONFILTER1DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width);
-typedef void (GLAPIENTRYP PFNGLCOPYCONVOLUTIONFILTER2DPROC) (GLenum target, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height);
-typedef void (GLAPIENTRYP PFNGLGETCONVOLUTIONFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *image);
-typedef void (GLAPIENTRYP PFNGLGETCONVOLUTIONPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLGETCONVOLUTIONPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (GLAPIENTRYP PFNGLGETSEPARABLEFILTERPROC) (GLenum target, GLenum format, GLenum type, GLvoid *row, GLvoid *column, GLvoid *span);
-typedef void (GLAPIENTRYP PFNGLSEPARABLEFILTER2DPROC) (GLenum target, GLenum internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *row, const GLvoid *column);
-typedef void (GLAPIENTRYP PFNGLGETHISTOGRAMPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-typedef void (GLAPIENTRYP PFNGLGETHISTOGRAMPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLGETHISTOGRAMPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (GLAPIENTRYP PFNGLGETMINMAXPROC) (GLenum target, GLboolean reset, GLenum format, GLenum type, GLvoid *values);
-typedef void (GLAPIENTRYP PFNGLGETMINMAXPARAMETERFVPROC) (GLenum target, GLenum pname, GLfloat *params);
-typedef void (GLAPIENTRYP PFNGLGETMINMAXPARAMETERIVPROC) (GLenum target, GLenum pname, GLint *params);
-typedef void (GLAPIENTRYP PFNGLHISTOGRAMPROC) (GLenum target, GLsizei width, GLenum internalformat, GLboolean sink);
-typedef void (GLAPIENTRYP PFNGLMINMAXPROC) (GLenum target, GLenum internalformat, GLboolean sink);
-typedef void (GLAPIENTRYP PFNGLRESETHISTOGRAMPROC) (GLenum target);
-typedef void (GLAPIENTRYP PFNGLRESETMINMAXPROC) (GLenum target);
+#ifndef GL_ARB_multitexture
+#define GL_TEXTURE0_ARB                   0x84C0
+#define GL_TEXTURE1_ARB                   0x84C1
+#define GL_TEXTURE2_ARB                   0x84C2
+#define GL_TEXTURE3_ARB                   0x84C3
+#define GL_TEXTURE4_ARB                   0x84C4
+#define GL_TEXTURE5_ARB                   0x84C5
+#define GL_TEXTURE6_ARB                   0x84C6
+#define GL_TEXTURE7_ARB                   0x84C7
+#define GL_TEXTURE8_ARB                   0x84C8
+#define GL_TEXTURE9_ARB                   0x84C9
+#define GL_TEXTURE10_ARB                  0x84CA
+#define GL_TEXTURE11_ARB                  0x84CB
+#define GL_TEXTURE12_ARB                  0x84CC
+#define GL_TEXTURE13_ARB                  0x84CD
+#define GL_TEXTURE14_ARB                  0x84CE
+#define GL_TEXTURE15_ARB                  0x84CF
+#define GL_TEXTURE16_ARB                  0x84D0
+#define GL_TEXTURE17_ARB                  0x84D1
+#define GL_TEXTURE18_ARB                  0x84D2
+#define GL_TEXTURE19_ARB                  0x84D3
+#define GL_TEXTURE20_ARB                  0x84D4
+#define GL_TEXTURE21_ARB                  0x84D5
+#define GL_TEXTURE22_ARB                  0x84D6
+#define GL_TEXTURE23_ARB                  0x84D7
+#define GL_TEXTURE24_ARB                  0x84D8
+#define GL_TEXTURE25_ARB                  0x84D9
+#define GL_TEXTURE26_ARB                  0x84DA
+#define GL_TEXTURE27_ARB                  0x84DB
+#define GL_TEXTURE28_ARB                  0x84DC
+#define GL_TEXTURE29_ARB                  0x84DD
+#define GL_TEXTURE30_ARB                  0x84DE
+#define GL_TEXTURE31_ARB                  0x84DF
+#define GL_ACTIVE_TEXTURE_ARB             0x84E0
+#define GL_CLIENT_ACTIVE_TEXTURE_ARB      0x84E1
+#define GL_MAX_TEXTURE_UNITS_ARB          0x84E2
 #endif
 
+#ifndef GL_ARB_transpose_matrix
+#define GL_TRANSPOSE_MODELVIEW_MATRIX_ARB 0x84E3
+#define GL_TRANSPOSE_PROJECTION_MATRIX_ARB 0x84E4
+#define GL_TRANSPOSE_TEXTURE_MATRIX_ARB   0x84E5
+#define GL_TRANSPOSE_COLOR_MATRIX_ARB     0x84E6
+#endif
 
-#ifndef GL_VERSION_1_3
-#define GL_VERSION_1_3 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void GLAPIENTRY glActiveTexture (GLenum texture);
-GLAPI void GLAPIENTRY glClientActiveTexture (GLenum texture);
-GLAPI void GLAPIENTRY glMultiTexCoord1d (GLenum target, GLdouble s);
-GLAPI void GLAPIENTRY glMultiTexCoord1dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord1f (GLenum target, GLfloat s);
-GLAPI void GLAPIENTRY glMultiTexCoord1fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord1i (GLenum target, GLint s);
-GLAPI void GLAPIENTRY glMultiTexCoord1iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord1s (GLenum target, GLshort s);
-GLAPI void GLAPIENTRY glMultiTexCoord1sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2d (GLenum target, GLdouble s, GLdouble t);
-GLAPI void GLAPIENTRY glMultiTexCoord2dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2f (GLenum target, GLfloat s, GLfloat t);
-GLAPI void GLAPIENTRY glMultiTexCoord2fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2i (GLenum target, GLint s, GLint t);
-GLAPI void GLAPIENTRY glMultiTexCoord2iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord2s (GLenum target, GLshort s, GLshort t);
-GLAPI void GLAPIENTRY glMultiTexCoord2sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3d (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-GLAPI void GLAPIENTRY glMultiTexCoord3dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3f (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-GLAPI void GLAPIENTRY glMultiTexCoord3fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3i (GLenum target, GLint s, GLint t, GLint r);
-GLAPI void GLAPIENTRY glMultiTexCoord3iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord3s (GLenum target, GLshort s, GLshort t, GLshort r);
-GLAPI void GLAPIENTRY glMultiTexCoord3sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4d (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-GLAPI void GLAPIENTRY glMultiTexCoord4dv (GLenum target, const GLdouble *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4f (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-GLAPI void GLAPIENTRY glMultiTexCoord4fv (GLenum target, const GLfloat *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4i (GLenum target, GLint s, GLint t, GLint r, GLint q);
-GLAPI void GLAPIENTRY glMultiTexCoord4iv (GLenum target, const GLint *v);
-GLAPI void GLAPIENTRY glMultiTexCoord4s (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-GLAPI void GLAPIENTRY glMultiTexCoord4sv (GLenum target, const GLshort *v);
-GLAPI void GLAPIENTRY glLoadTransposeMatrixf (const GLfloat *m);
-GLAPI void GLAPIENTRY glLoadTransposeMatrixd (const GLdouble *m);
-GLAPI void GLAPIENTRY glMultTransposeMatrixf (const GLfloat *m);
-GLAPI void GLAPIENTRY glMultTransposeMatrixd (const GLdouble *m);
-GLAPI void GLAPIENTRY glCompressedTexImage3D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexImage2D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexImage1D (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexSubImage3D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexSubImage2D (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glCompressedTexSubImage1D (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-GLAPI void GLAPIENTRY glGetCompressedTexImage (GLenum target, GLint lod, GLvoid *img);
-GLAPI void GLAPIENTRY glSampleCoverage (GLclampf value, GLboolean invert);
-#endif /* GL_GLEXT_PROTOTYPES */
-typedef void (GLAPIENTRYP PFNGLACTIVETEXTUREPROC) (GLenum texture);
-typedef void (GLAPIENTRYP PFNGLCLIENTACTIVETEXTUREPROC) (GLenum texture);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1DPROC) (GLenum target, GLdouble s);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1DVPROC) (GLenum target, const GLdouble *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1FPROC) (GLenum target, GLfloat s);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1FVPROC) (GLenum target, const GLfloat *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1IPROC) (GLenum target, GLint s);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1IVPROC) (GLenum target, const GLint *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1SPROC) (GLenum target, GLshort s);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD1SVPROC) (GLenum target, const GLshort *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2DPROC) (GLenum target, GLdouble s, GLdouble t);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2DVPROC) (GLenum target, const GLdouble *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2FPROC) (GLenum target, GLfloat s, GLfloat t);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2FVPROC) (GLenum target, const GLfloat *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2IPROC) (GLenum target, GLint s, GLint t);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2IVPROC) (GLenum target, const GLint *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2SPROC) (GLenum target, GLshort s, GLshort t);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD2SVPROC) (GLenum target, const GLshort *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3DVPROC) (GLenum target, const GLdouble *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3FVPROC) (GLenum target, const GLfloat *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3IPROC) (GLenum target, GLint s, GLint t, GLint r);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3IVPROC) (GLenum target, const GLint *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3SPROC) (GLenum target, GLshort s, GLshort t, GLshort r);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD3SVPROC) (GLenum target, const GLshort *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4DPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4DVPROC) (GLenum target, const GLdouble *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4FPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4FVPROC) (GLenum target, const GLfloat *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4IPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4IVPROC) (GLenum target, const GLint *v);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4SPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q);
-typedef void (GLAPIENTRYP PFNGLMULTITEXCOORD4SVPROC) (GLenum target, const GLshort *v);
-typedef void (GLAPIENTRYP PFNGLLOADTRANSPOSEMATRIXFPROC) (const GLfloat *m);
-typedef void (GLAPIENTRYP PFNGLLOADTRANSPOSEMATRIXDPROC) (const GLdouble *m);
-typedef void (GLAPIENTRYP PFNGLMULTTRANSPOSEMATRIXFPROC) (const GLfloat *m);
-typedef void (GLAPIENTRYP PFNGLMULTTRANSPOSEMATRIXDPROC) (const GLdouble *m);
-typedef void (GLAPIENTRYP PFNGLCOMPRESSEDTEXIMAGE3DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei depth, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLCOMPRESSEDTEXIMAGE2DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLCOMPRESSEDTEXIMAGE1DPROC) (GLenum target, GLint level, GLenum internalformat, GLsizei width, GLint border, GLsizei imageSize, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLsizei imageSize, const GLvoid *data);
-typedef void (GLAPIENTRYP PFNGLGETCOMPRESSEDTEXIMAGEPROC) (GLenum target, GLint lod, GLvoid *img);
-typedef void (GLAPIENTRYP PFNGLSAMPLECOVERAGEPROC) (GLclampf value, GLboolean invert);
+#ifndef GL_ARB_multisample
+#define GL_MULTISAMPLE_ARB                0x809D
+#define GL_SAMPLE_ALPHA_TO_COVERAGE_ARB   0x809E
+#define GL_SAMPLE_ALPHA_TO_ONE_ARB        0x809F
+#define GL_SAMPLE_COVERAGE_ARB            0x80A0
+#define GL_SAMPLE_BUFFERS_ARB             0x80A8
+#define GL_SAMPLES_ARB                    0x80A9
+#define GL_SAMPLE_COVERAGE_VALUE_ARB      0x80AA
+#define GL_SAMPLE_COVERAGE_INVERT_ARB     0x80AB
+#define GL_MULTISAMPLE_BIT_ARB            0x20000000
 #endif
 
+#ifndef GL_ARB_texture_env_add
+#endif
 
-#ifndef GL_VERSION_1_4
-#define GL_VERSION_1_4 1
-#ifdef GL_GLEXT_PROTOTYPES
-GLAPI void GLAPIENTRY glPointParameterf (GLenum pname, GLfloat param);
-GLAPI void GLAPIENTRY glPointParameterfv (GLenum pname, const GLfloat *params);
-GLAPI void GLAPIENTRY glPointParameteri (GLenum pname, GLint param);
-GLAPI void GLAPIENTRY glPointParameteriv (GLenum pname, const GLint *params);
-GLAPI void GLAPIENTRY glWindowPos2d (GLdouble x, GLdouble y);
-GLAPI void GLAPIENTRY glWindowPos2f (GLfloat x, GLfloat y);
-GLAPI void GLAPIENTRY glWindowPos2i (GLint x, GLint y);
-GLAPI void GLAPIENTRY glWindowPos2s (GLshort x, GLshort y);
-GLAPI void GLAPIENTRY glWindowPos2dv (const GLdouble *p);
-GLAPI void GLAPIENTRY glWindowPos2fv (const GLfloat *p);
-GLAPI void GLAPIENTRY glWindowPos2iv (const GLint *p);
-GLAPI void GLAPIENTRY glWindowPos2sv (const GLshort *p);
-GLAPI void GLAPIENTRY glWindowPos3d (GLdouble x, GLdouble y, GLdouble z);
-GLAPI void GLAPIENTRY glWindowPos3f (GLfloat x, GLfloat y, GLfloat z);
-GLAPI void GLAPIENTRY glWindowPos3i (GLint x, GLint y, GLint z);
-GLAPI void GLAPIENTRY glWindowPos3s (GLshort x, GLshort y, GLshort z);
-GLAPI void GLAPIENTRY glWindowPos3dv (const GLdouble *p);
-GLAPI void GLAPIENTRY glWindowPos3fv (const GLfloat *p);
-GLAPI void GLAPIENTRY glWindowPos3iv (const GLint *p);
-GLAPI void GLAPIENTRY glWindowPos3sv (const GLshort *p);
-GLAPI void GLAPIENTRY glBlendFuncSeparate (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha);
-GLAPI void GLAPIENTRY glFogCoordd (GLdouble fog);
-GLAPI void GLAPIENTRY glFogCoorddv (const GLdouble *fog);
-GLAPI void GLAPIENTRY glFogCoordf (GLfloat fog);
-GLAPI void GLAPIENTRY glFogCoordfv (const GLfloat *fog);
-GLAPI void GLAPIENTRY glFogCoordPointer (GLenum type, GLsizei stride, const GLvoid *pointer);
-GLAPI void GLAPIENTRY glMultiDrawArrays (GLenum mode, const GLint *first, const GLsizei *count, GLsizei primcount);
-GLAPI void GLAPIENTRY glMultiDrawElements (GLenum mode, const GLsizei *count, GLenum type, const GLvoid* *indices, GLsizei primcount);
-GLAPI void GLAPIENTRY glSecondaryColor3b (GLbyte red, GLbyte green, GLbyte blue);
-GLAPI void GLAPIENTRY glSecondaryColor3bv (const GLbyte *v);
-GLAPI void GLAPIENTRY glSecondaryColor3d (GLdouble red, GLdouble green, GLdouble blue);
-GLAPI void GLAPIENTRY glSecondaryColor3dv (const GLdouble *v);
-GLAPI void GLAPIENTRY glSecondaryColor3f (GLfloat red, GLfloat green, GLfloat blue);
-GLAPI void GLAPIENTRY glSecondaryColor3fv (const GLfloat *v);