aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/libraries/include/GL
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:44:46 -0500
committerJacek Antonelli2008-08-15 23:44:46 -0500
commit38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4 (patch)
treeadca584755d22ca041a2dbfc35d4eca01f70b32c /linden/libraries/include/GL
parentREADME.txt (diff)
downloadmeta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.zip
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.gz
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.bz2
meta-impy-38d6d37f2d982fa959e9e8a4a3f7e1ccfad7b5d4.tar.xz
Second Life viewer sources 1.13.2.12
Diffstat (limited to 'linden/libraries/include/GL')
-rw-r--r--linden/libraries/include/GL/glh_extensions.h207
-rw-r--r--linden/libraries/include/GL/glh_genext.h1671
2 files changed, 1878 insertions, 0 deletions
diff --git a/linden/libraries/include/GL/glh_extensions.h b/linden/libraries/include/GL/glh_extensions.h
new file mode 100644
index 0000000..b936b5d
--- /dev/null
+++ b/linden/libraries/include/GL/glh_extensions.h
@@ -0,0 +1,207 @@
1/*
2 * glh_extensions.h
3 * From nVidia Corporation, downloaded 2006-12-18 from:
4 * http://developer.nvidia.com/attach/8196
5 * ("NVParse Library with Source (.zip) (2390 KB)")
6 *
7 * License (quoted from license_info.txt in aforementioned file):
8 * "The files bison.exe, bison.simple, and flex.exe are covered by
9 * the GPL. All other files in this distribution can be used however
10 * you want."
11 */
12
13#ifndef GLH_EXTENSIONS
14#define GLH_EXTENSIONS
15
16#include <string.h>
17#include <stdio.h>
18
19#ifdef _WIN32
20# include <windows.h>
21#endif
22
23#ifndef __APPLE__
24#include <GL/gl.h>
25#endif
26
27#ifdef _WIN32
28# include "GL/wglext.h"
29#endif
30
31#define CHECK_MEMORY(ptr) \
32 if (NULL == ptr) { \
33 printf("Error allocating memory in file %s, line %d\n", __FILE__, __LINE__); \
34 exit(-1); \
35 }
36
37#ifdef GLH_EXT_SINGLE_FILE
38# define GLH_EXTENSIONS_SINGLE_FILE // have to do this because glh_genext.h unsets GLH_EXT_SINGLE_FILE
39#endif
40
41#include "glh_genext.h"
42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
47#ifdef GLH_EXTENSIONS_SINGLE_FILE
48
49class GLHExts
50{
51public:
52 GLHExts()
53 {
54 mSysExts = NULL;
55// mUnsupportedExts = NULL;
56 }
57 ~GLHExts()
58 {
59 if (mSysExts)
60 {
61 free(mSysExts);
62 }
63// if (mUnsupportedExts)
64// {
65// free(mUnsupportedExts);
66// }
67 }
68 char *mSysExts;
69// char *mUnsupportedExts;
70};
71
72GLHExts gGLHExts;
73
74static int ExtensionExists(const char* extName, const char* sysExts)
75{
76 char *padExtName = (char*)malloc(strlen(extName) + 2);
77 strcat(strcpy(padExtName, extName), " ");
78
79 if (0 == strcmp(extName, "GL_VERSION_1_2")) {
80 const char *version = (const char*)glGetString(GL_VERSION);
81 if (strstr(version, "1.0") == version || strstr(version, "1.1") == version) {
82 return FALSE;
83 } else {
84 return TRUE;
85 }
86 }
87 if (strstr(sysExts, padExtName)) {
88 free(padExtName);
89 return TRUE;
90 } else {
91 free(padExtName);
92 return FALSE;
93 }
94}
95
96static const char* EatWhiteSpace(const char *str)
97{
98 for (; *str && (' ' == *str || '\t' == *str || '\n' == *str); str++);
99 return str;
100}
101
102static const char* EatNonWhiteSpace(const char *str)
103{
104 for (; *str && (' ' != *str && '\t' != *str && '\n' != *str); str++);
105 return str;
106}
107
108
109int glh_init_extensions(const char *origReqExts)
110{
111 // Length of requested extensions string
112 unsigned reqExtsLen;
113 char *reqExts;
114 // Ptr for individual extensions within reqExts
115 char *reqExt;
116 int success = TRUE;
117
118 // build space-padded extension string
119 if (NULL == gGLHExts.mSysExts) {
120 const char *extensions = (const char*)glGetString(GL_EXTENSIONS);
121 int sysExtsLen = (int)strlen(extensions);
122 const char *winsys_extensions = 0;
123 int winsysExtsLen = 0;
124#ifdef _WIN32
125 {
126 PFNWGLGETEXTENSIONSSTRINGARBPROC wglGetExtensionsStringARB = 0;
127 wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)wglGetProcAddress("wglGetExtensionsStringARB");
128 if(wglGetExtensionsStringARB)
129 {
130 winsys_extensions = wglGetExtensionsStringARB(wglGetCurrentDC());
131 winsysExtsLen = (S32)strlen(winsys_extensions);
132 }
133 }
134#endif
135 // Add 2 bytes, one for padding space, one for terminating NULL
136 gGLHExts.mSysExts = (char*)malloc(sysExtsLen + winsysExtsLen + 3);
137 CHECK_MEMORY(gGLHExts.mSysExts);
138 strcpy(gGLHExts.mSysExts, extensions);
139 gGLHExts.mSysExts[sysExtsLen] = ' ';
140 gGLHExts.mSysExts[sysExtsLen + 1] = 0;
141 if (winsysExtsLen)
142 {
143 strcat(gGLHExts.mSysExts, winsys_extensions);
144 }
145 gGLHExts.mSysExts[sysExtsLen + 1 + winsysExtsLen] = ' ';
146 gGLHExts.mSysExts[sysExtsLen + 1 + winsysExtsLen + 1] = 0;
147 }
148
149 if (NULL == origReqExts)
150 {
151 return TRUE;
152 }
153 reqExts = strdup(origReqExts);
154 reqExtsLen = (S32)strlen(reqExts);
155 /*
156 if (NULL == gGLHExts.mUnsupportedExts)
157 {
158 gGLHExts.mUnsupportedExts = (char*)malloc(reqExtsLen + 1);
159 }
160 else if (reqExtsLen > strlen(gGLHExts.mUnsupportedExts))
161 {
162 gGLHExts.mUnsupportedExts = (char*)realloc(gGLHExts.mUnsupportedExts, reqExtsLen + 1);
163 }
164 CHECK_MEMORY(gGLHExts.mUnsupportedExts);
165 *gGLHExts.mUnsupportedExts = 0;
166 */
167
168 // Parse requested extension list
169 for (reqExt = reqExts;
170 (reqExt = (char*)EatWhiteSpace(reqExt)) && *reqExt;
171 reqExt = (char*)EatNonWhiteSpace(reqExt))
172 {
173 char *extEnd = (char*)EatNonWhiteSpace(reqExt);
174 char saveChar = *extEnd;
175 *extEnd = (char)0;
176
177 if (!ExtensionExists(reqExt, gGLHExts.mSysExts) ||
178 !glh_init_extension(reqExt)) {
179 /*
180 // add reqExt to end of unsupportedExts
181 strcat(gGLHExts.mUnsupportedExts, reqExt);
182 strcat(gGLHExts.mUnsupportedExts, " ");
183 */
184 success = FALSE;
185 }
186 *extEnd = saveChar;
187 }
188 free(reqExts);
189 return success;
190}
191
192const char* glh_get_unsupported_extensions()
193{
194 return "";
195// return (const char*)gGLHExts.mUnsupportedExts;
196}
197
198#else
199int glh_init_extensions(const char *origReqExts);
200const char* glh_get_unsupported_extensions();
201#endif /* GLH_EXT_SINGLE_FILE */
202
203#ifdef __cplusplus
204}
205#endif
206
207#endif /* GLH_EXTENSIONS */
diff --git a/linden/libraries/include/GL/glh_genext.h b/linden/libraries/include/GL/glh_genext.h
new file mode 100644
index 0000000..8d42025
--- /dev/null
+++ b/linden/libraries/include/GL/glh_genext.h
@@ -0,0 +1,1671 @@
1/*
2 * glh_genext.h
3 * From nVidia Corporation, downloaded 2006-12-18 from:
4 * http://developer.nvidia.com/attach/8196
5 * ("NVParse Library with Source (.zip) (2390 KB)")
6 *
7 * License (quoted from license_info.txt in aforementioned file):
8 * "The files bison.exe, bison.simple, and flex.exe are covered by
9 * the GPL. All other files in this distribution can be used however
10 * you want."
11 */
12
13/* File generated by extgen.cpp -- do not modify */
14#ifndef GLH_GENEXT_H
15#define GLH_GENEXT_H
16
17// MBW -- None of this is necessary on Mac OS.
18#ifndef __APPLE__
19
20#include <GL/gl.h>
21#include <GL/glext.h>
22
23#ifdef _WIN32 /* supports windows, x -- need to generalize */
24# include <GL/wglext.h>
25# define GLH_EXT_GET_PROC_ADDRESS(p) wglGetProcAddress(p)
26#else if GLX_VERSION_1_3
27# include <GL/glxext.h>
28# define GLH_EXT_GET_PROC_ADDRESS(p) glXGetProcAddressARB(p)
29#endif
30
31#ifdef GLH_EXT_SINGLE_FILE
32 #define GLH_EXTERN
33 #define GLH_INITIALIZER = 0
34#else
35 #define GLH_EXTERN extern
36 #define GLH_INITIALIZER
37#endif
38
39#define GLH__PREPROCESSOR_GYMNASTICS2(a,b) a##b
40#define GLH__PREPROCESSOR_GYMNASTICS(a,b) GLH__PREPROCESSOR_GYMNASTICS2(a,b)
41
42#ifndef GLH_EXT_PREFIX
43# define GLH_EXT_NAME(a) a
44#else
45# define GLH_EXT_NAME(a) GLH__PREPROCESSOR_GYMNASTICS(GLH_EXT_PREFIX,a)
46#endif
47
48#ifndef _WIN32
49# ifndef GLH_CORE_1_2_PREFIX
50# define GLH_CORE_1_2_PREFIX _
51# endif
52#endif
53
54#ifndef GLH_CORE_1_2_PREFIX
55# define GLH_CORE_1_2_NAME(a) a
56#else
57# define GLH_CORE_1_2_NAME(a) GLH__PREPROCESSOR_GYMNASTICS(GLH_CORE_1_2_PREFIX,a)
58#endif
59
60#ifdef GL_ARB_multitexture
61 GLH_EXTERN PFNGLMULTITEXCOORD1DARBPROC GLH_EXT_NAME(glMultiTexCoord1dARB) GLH_INITIALIZER;
62 GLH_EXTERN PFNGLMULTITEXCOORD1DVARBPROC GLH_EXT_NAME(glMultiTexCoord1dvARB) GLH_INITIALIZER;
63 GLH_EXTERN PFNGLMULTITEXCOORD1FARBPROC GLH_EXT_NAME(glMultiTexCoord1fARB) GLH_INITIALIZER;
64 GLH_EXTERN PFNGLMULTITEXCOORD1FVARBPROC GLH_EXT_NAME(glMultiTexCoord1fvARB) GLH_INITIALIZER;
65 GLH_EXTERN PFNGLMULTITEXCOORD1IARBPROC GLH_EXT_NAME(glMultiTexCoord1iARB) GLH_INITIALIZER;
66 GLH_EXTERN PFNGLMULTITEXCOORD1IVARBPROC GLH_EXT_NAME(glMultiTexCoord1ivARB) GLH_INITIALIZER;
67 GLH_EXTERN PFNGLMULTITEXCOORD1SARBPROC GLH_EXT_NAME(glMultiTexCoord1sARB) GLH_INITIALIZER;
68 GLH_EXTERN PFNGLMULTITEXCOORD1SVARBPROC GLH_EXT_NAME(glMultiTexCoord1svARB) GLH_INITIALIZER;
69 GLH_EXTERN PFNGLMULTITEXCOORD2DARBPROC GLH_EXT_NAME(glMultiTexCoord2dARB) GLH_INITIALIZER;
70 GLH_EXTERN PFNGLMULTITEXCOORD2DVARBPROC GLH_EXT_NAME(glMultiTexCoord2dvARB) GLH_INITIALIZER;
71 GLH_EXTERN PFNGLMULTITEXCOORD2FARBPROC GLH_EXT_NAME(glMultiTexCoord2fARB) GLH_INITIALIZER;
72 GLH_EXTERN PFNGLMULTITEXCOORD2FVARBPROC GLH_EXT_NAME(glMultiTexCoord2fvARB) GLH_INITIALIZER;
73 GLH_EXTERN PFNGLMULTITEXCOORD2IARBPROC GLH_EXT_NAME(glMultiTexCoord2iARB) GLH_INITIALIZER;
74 GLH_EXTERN PFNGLMULTITEXCOORD2IVARBPROC GLH_EXT_NAME(glMultiTexCoord2ivARB) GLH_INITIALIZER;
75 GLH_EXTERN PFNGLMULTITEXCOORD2SARBPROC GLH_EXT_NAME(glMultiTexCoord2sARB) GLH_INITIALIZER;
76 GLH_EXTERN PFNGLMULTITEXCOORD2SVARBPROC GLH_EXT_NAME(glMultiTexCoord2svARB) GLH_INITIALIZER;
77 GLH_EXTERN PFNGLMULTITEXCOORD3DARBPROC GLH_EXT_NAME(glMultiTexCoord3dARB) GLH_INITIALIZER;
78 GLH_EXTERN PFNGLMULTITEXCOORD3DVARBPROC GLH_EXT_NAME(glMultiTexCoord3dvARB) GLH_INITIALIZER;
79 GLH_EXTERN PFNGLMULTITEXCOORD3FARBPROC GLH_EXT_NAME(glMultiTexCoord3fARB) GLH_INITIALIZER;
80 GLH_EXTERN PFNGLMULTITEXCOORD3FVARBPROC GLH_EXT_NAME(glMultiTexCoord3fvARB) GLH_INITIALIZER;
81 GLH_EXTERN PFNGLMULTITEXCOORD3IARBPROC GLH_EXT_NAME(glMultiTexCoord3iARB) GLH_INITIALIZER;
82 GLH_EXTERN PFNGLMULTITEXCOORD3IVARBPROC GLH_EXT_NAME(glMultiTexCoord3ivARB) GLH_INITIALIZER;
83 GLH_EXTERN PFNGLMULTITEXCOORD3SARBPROC GLH_EXT_NAME(glMultiTexCoord3sARB) GLH_INITIALIZER;
84 GLH_EXTERN PFNGLMULTITEXCOORD3SVARBPROC GLH_EXT_NAME(glMultiTexCoord3svARB) GLH_INITIALIZER;
85 GLH_EXTERN PFNGLMULTITEXCOORD4DARBPROC GLH_EXT_NAME(glMultiTexCoord4dARB) GLH_INITIALIZER;
86 GLH_EXTERN PFNGLMULTITEXCOORD4DVARBPROC GLH_EXT_NAME(glMultiTexCoord4dvARB) GLH_INITIALIZER;
87 GLH_EXTERN PFNGLMULTITEXCOORD4FARBPROC GLH_EXT_NAME(glMultiTexCoord4fARB) GLH_INITIALIZER;
88 GLH_EXTERN PFNGLMULTITEXCOORD4FVARBPROC GLH_EXT_NAME(glMultiTexCoord4fvARB) GLH_INITIALIZER;
89 GLH_EXTERN PFNGLMULTITEXCOORD4IARBPROC GLH_EXT_NAME(glMultiTexCoord4iARB) GLH_INITIALIZER;
90 GLH_EXTERN PFNGLMULTITEXCOORD4IVARBPROC GLH_EXT_NAME(glMultiTexCoord4ivARB) GLH_INITIALIZER;
91 GLH_EXTERN PFNGLMULTITEXCOORD4SARBPROC GLH_EXT_NAME(glMultiTexCoord4sARB) GLH_INITIALIZER;
92 GLH_EXTERN PFNGLMULTITEXCOORD4SVARBPROC GLH_EXT_NAME(glMultiTexCoord4svARB) GLH_INITIALIZER;
93 GLH_EXTERN PFNGLACTIVETEXTUREARBPROC GLH_EXT_NAME(glActiveTextureARB) GLH_INITIALIZER;
94 GLH_EXTERN PFNGLCLIENTACTIVETEXTUREARBPROC GLH_EXT_NAME(glClientActiveTextureARB) GLH_INITIALIZER;
95#endif
96
97#ifdef GL_ARB_texture_border_clamp
98#endif
99
100#ifdef GL_ARB_texture_compression
101 GLH_EXTERN PFNGLCOMPRESSEDTEXIMAGE3DARBPROC GLH_EXT_NAME(glCompressedTexImage3DARB) GLH_INITIALIZER;
102 GLH_EXTERN PFNGLCOMPRESSEDTEXIMAGE2DARBPROC GLH_EXT_NAME(glCompressedTexImage2DARB) GLH_INITIALIZER;
103 GLH_EXTERN PFNGLCOMPRESSEDTEXIMAGE1DARBPROC GLH_EXT_NAME(glCompressedTexImage1DARB) GLH_INITIALIZER;
104 GLH_EXTERN PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC GLH_EXT_NAME(glCompressedTexSubImage3DARB) GLH_INITIALIZER;
105 GLH_EXTERN PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC GLH_EXT_NAME(glCompressedTexSubImage2DARB) GLH_INITIALIZER;
106 GLH_EXTERN PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC GLH_EXT_NAME(glCompressedTexSubImage1DARB) GLH_INITIALIZER;
107 GLH_EXTERN PFNGLGETCOMPRESSEDTEXIMAGEARBPROC GLH_EXT_NAME(glGetCompressedTexImageARB) GLH_INITIALIZER;
108#endif
109
110#ifdef GL_ARB_texture_cube_map
111#endif
112
113#ifdef GL_ARB_transpose_matrix
114 GLH_EXTERN PFNGLLOADTRANSPOSEMATRIXFARBPROC GLH_EXT_NAME(glLoadTransposeMatrixfARB) GLH_INITIALIZER;
115 GLH_EXTERN PFNGLLOADTRANSPOSEMATRIXDARBPROC GLH_EXT_NAME(glLoadTransposeMatrixdARB) GLH_INITIALIZER;
116 GLH_EXTERN PFNGLMULTTRANSPOSEMATRIXFARBPROC GLH_EXT_NAME(glMultTransposeMatrixfARB) GLH_INITIALIZER;
117 GLH_EXTERN PFNGLMULTTRANSPOSEMATRIXDARBPROC GLH_EXT_NAME(glMultTransposeMatrixdARB) GLH_INITIALIZER;
118#endif
119
120#ifdef GL_ARB_vertex_program
121 GLH_EXTERN PFNGLVERTEXATTRIB1SARBPROC GLH_EXT_NAME(glVertexAttrib1sARB) GLH_INITIALIZER;
122 GLH_EXTERN PFNGLVERTEXATTRIB1FARBPROC GLH_EXT_NAME(glVertexAttrib1fARB) GLH_INITIALIZER;
123 GLH_EXTERN PFNGLVERTEXATTRIB1DARBPROC GLH_EXT_NAME(glVertexAttrib1dARB) GLH_INITIALIZER;
124 GLH_EXTERN PFNGLVERTEXATTRIB2SARBPROC GLH_EXT_NAME(glVertexAttrib2sARB) GLH_INITIALIZER;
125 GLH_EXTERN PFNGLVERTEXATTRIB2FARBPROC GLH_EXT_NAME(glVertexAttrib2fARB) GLH_INITIALIZER;
126 GLH_EXTERN PFNGLVERTEXATTRIB2DARBPROC GLH_EXT_NAME(glVertexAttrib2dARB) GLH_INITIALIZER;
127 GLH_EXTERN PFNGLVERTEXATTRIB3SARBPROC GLH_EXT_NAME(glVertexAttrib3sARB) GLH_INITIALIZER;
128 GLH_EXTERN PFNGLVERTEXATTRIB3FARBPROC GLH_EXT_NAME(glVertexAttrib3fARB) GLH_INITIALIZER;
129 GLH_EXTERN PFNGLVERTEXATTRIB3DARBPROC GLH_EXT_NAME(glVertexAttrib3dARB) GLH_INITIALIZER;
130 GLH_EXTERN PFNGLVERTEXATTRIB4SARBPROC GLH_EXT_NAME(glVertexAttrib4sARB) GLH_INITIALIZER;
131 GLH_EXTERN PFNGLVERTEXATTRIB4FARBPROC GLH_EXT_NAME(glVertexAttrib4fARB) GLH_INITIALIZER;
132 GLH_EXTERN PFNGLVERTEXATTRIB4DARBPROC GLH_EXT_NAME(glVertexAttrib4dARB) GLH_INITIALIZER;
133 GLH_EXTERN PFNGLVERTEXATTRIB4NUBARBPROC GLH_EXT_NAME(glVertexAttrib4NubARB) GLH_INITIALIZER;
134 GLH_EXTERN PFNGLVERTEXATTRIB1SVARBPROC GLH_EXT_NAME(glVertexAttrib1svARB) GLH_INITIALIZER;
135 GLH_EXTERN PFNGLVERTEXATTRIB1FVARBPROC GLH_EXT_NAME(glVertexAttrib1fvARB) GLH_INITIALIZER;
136 GLH_EXTERN PFNGLVERTEXATTRIB1DVARBPROC GLH_EXT_NAME(glVertexAttrib1dvARB) GLH_INITIALIZER;
137 GLH_EXTERN PFNGLVERTEXATTRIB2SVARBPROC GLH_EXT_NAME(glVertexAttrib2svARB) GLH_INITIALIZER;
138 GLH_EXTERN PFNGLVERTEXATTRIB2FVARBPROC GLH_EXT_NAME(glVertexAttrib2fvARB) GLH_INITIALIZER;
139 GLH_EXTERN PFNGLVERTEXATTRIB2DVARBPROC GLH_EXT_NAME(glVertexAttrib2dvARB) GLH_INITIALIZER;
140 GLH_EXTERN PFNGLVERTEXATTRIB3SVARBPROC GLH_EXT_NAME(glVertexAttrib3svARB) GLH_INITIALIZER;
141 GLH_EXTERN PFNGLVERTEXATTRIB3FVARBPROC GLH_EXT_NAME(glVertexAttrib3fvARB) GLH_INITIALIZER;
142 GLH_EXTERN PFNGLVERTEXATTRIB3DVARBPROC GLH_EXT_NAME(glVertexAttrib3dvARB) GLH_INITIALIZER;
143 GLH_EXTERN PFNGLVERTEXATTRIB4BVARBPROC GLH_EXT_NAME(glVertexAttrib4bvARB) GLH_INITIALIZER;
144 GLH_EXTERN PFNGLVERTEXATTRIB4SVARBPROC GLH_EXT_NAME(glVertexAttrib4svARB) GLH_INITIALIZER;
145 GLH_EXTERN PFNGLVERTEXATTRIB4IVARBPROC GLH_EXT_NAME(glVertexAttrib4ivARB) GLH_INITIALIZER;
146 GLH_EXTERN PFNGLVERTEXATTRIB4UBVARBPROC GLH_EXT_NAME(glVertexAttrib4ubvARB) GLH_INITIALIZER;
147 GLH_EXTERN PFNGLVERTEXATTRIB4USVARBPROC GLH_EXT_NAME(glVertexAttrib4usvARB) GLH_INITIALIZER;
148 GLH_EXTERN PFNGLVERTEXATTRIB4UIVARBPROC GLH_EXT_NAME(glVertexAttrib4uivARB) GLH_INITIALIZER;
149 GLH_EXTERN PFNGLVERTEXATTRIB4FVARBPROC GLH_EXT_NAME(glVertexAttrib4fvARB) GLH_INITIALIZER;
150 GLH_EXTERN PFNGLVERTEXATTRIB4DVARBPROC GLH_EXT_NAME(glVertexAttrib4dvARB) GLH_INITIALIZER;
151 GLH_EXTERN PFNGLVERTEXATTRIB4NBVARBPROC GLH_EXT_NAME(glVertexAttrib4NbvARB) GLH_INITIALIZER;
152 GLH_EXTERN PFNGLVERTEXATTRIB4NSVARBPROC GLH_EXT_NAME(glVertexAttrib4NsvARB) GLH_INITIALIZER;
153 GLH_EXTERN PFNGLVERTEXATTRIB4NIVARBPROC GLH_EXT_NAME(glVertexAttrib4NivARB) GLH_INITIALIZER;
154 GLH_EXTERN PFNGLVERTEXATTRIB4NUBVARBPROC GLH_EXT_NAME(glVertexAttrib4NubvARB) GLH_INITIALIZER;
155 GLH_EXTERN PFNGLVERTEXATTRIB4NUSVARBPROC GLH_EXT_NAME(glVertexAttrib4NusvARB) GLH_INITIALIZER;
156 GLH_EXTERN PFNGLVERTEXATTRIB4NUIVARBPROC GLH_EXT_NAME(glVertexAttrib4NuivARB) GLH_INITIALIZER;
157 GLH_EXTERN PFNGLVERTEXATTRIBPOINTERARBPROC GLH_EXT_NAME(glVertexAttribPointerARB) GLH_INITIALIZER;
158 GLH_EXTERN PFNGLENABLEVERTEXATTRIBARRAYARBPROC GLH_EXT_NAME(glEnableVertexAttribArrayARB) GLH_INITIALIZER;
159 GLH_EXTERN PFNGLDISABLEVERTEXATTRIBARRAYARBPROC GLH_EXT_NAME(glDisableVertexAttribArrayARB) GLH_INITIALIZER;
160 GLH_EXTERN PFNGLPROGRAMSTRINGARBPROC GLH_EXT_NAME(glProgramStringARB) GLH_INITIALIZER;
161 GLH_EXTERN PFNGLBINDPROGRAMARBPROC GLH_EXT_NAME(glBindProgramARB) GLH_INITIALIZER;
162 GLH_EXTERN PFNGLDELETEPROGRAMSARBPROC GLH_EXT_NAME(glDeleteProgramsARB) GLH_INITIALIZER;
163 GLH_EXTERN PFNGLGENPROGRAMSARBPROC GLH_EXT_NAME(glGenProgramsARB) GLH_INITIALIZER;
164 GLH_EXTERN PFNGLPROGRAMENVPARAMETER4DARBPROC GLH_EXT_NAME(glProgramEnvParameter4dARB) GLH_INITIALIZER;
165 GLH_EXTERN PFNGLPROGRAMENVPARAMETER4DVARBPROC GLH_EXT_NAME(glProgramEnvParameter4dvARB) GLH_INITIALIZER;
166 GLH_EXTERN PFNGLPROGRAMENVPARAMETER4FARBPROC GLH_EXT_NAME(glProgramEnvParameter4fARB) GLH_INITIALIZER;
167 GLH_EXTERN PFNGLPROGRAMENVPARAMETER4FVARBPROC GLH_EXT_NAME(glProgramEnvParameter4fvARB) GLH_INITIALIZER;
168 GLH_EXTERN PFNGLPROGRAMLOCALPARAMETER4DARBPROC GLH_EXT_NAME(glProgramLocalParameter4dARB) GLH_INITIALIZER;
169 GLH_EXTERN PFNGLPROGRAMLOCALPARAMETER4DVARBPROC GLH_EXT_NAME(glProgramLocalParameter4dvARB) GLH_INITIALIZER;
170 GLH_EXTERN PFNGLPROGRAMLOCALPARAMETER4FARBPROC GLH_EXT_NAME(glProgramLocalParameter4fARB) GLH_INITIALIZER;
171 GLH_EXTERN PFNGLPROGRAMLOCALPARAMETER4FVARBPROC GLH_EXT_NAME(glProgramLocalParameter4fvARB) GLH_INITIALIZER;
172 GLH_EXTERN PFNGLGETPROGRAMENVPARAMETERDVARBPROC GLH_EXT_NAME(glGetProgramEnvParameterdvARB) GLH_INITIALIZER;
173 GLH_EXTERN PFNGLGETPROGRAMENVPARAMETERFVARBPROC GLH_EXT_NAME(glGetProgramEnvParameterfvARB) GLH_INITIALIZER;
174 GLH_EXTERN PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC GLH_EXT_NAME(glGetProgramLocalParameterdvARB) GLH_INITIALIZER;
175 GLH_EXTERN PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC GLH_EXT_NAME(glGetProgramLocalParameterfvARB) GLH_INITIALIZER;
176 GLH_EXTERN PFNGLGETPROGRAMIVARBPROC GLH_EXT_NAME(glGetProgramivARB) GLH_INITIALIZER;
177 GLH_EXTERN PFNGLGETPROGRAMSTRINGARBPROC GLH_EXT_NAME(glGetProgramStringARB) GLH_INITIALIZER;
178 GLH_EXTERN PFNGLGETVERTEXATTRIBDVARBPROC GLH_EXT_NAME(glGetVertexAttribdvARB) GLH_INITIALIZER;
179 GLH_EXTERN PFNGLGETVERTEXATTRIBFVARBPROC GLH_EXT_NAME(glGetVertexAttribfvARB) GLH_INITIALIZER;
180 GLH_EXTERN PFNGLGETVERTEXATTRIBIVARBPROC GLH_EXT_NAME(glGetVertexAttribivARB) GLH_INITIALIZER;
181 GLH_EXTERN PFNGLGETVERTEXATTRIBPOINTERVARBPROC GLH_EXT_NAME(glGetVertexAttribPointervARB) GLH_INITIALIZER;
182 GLH_EXTERN PFNGLISPROGRAMARBPROC GLH_EXT_NAME(glIsProgramARB) GLH_INITIALIZER;
183#endif
184
185#ifdef GL_EXT_abgr
186#endif
187
188#ifdef GL_EXT_bgra
189#endif
190
191#ifdef GL_EXT_blend_color
192 GLH_EXTERN PFNGLBLENDCOLOREXTPROC GLH_EXT_NAME(glBlendColorEXT) GLH_INITIALIZER;
193#endif
194
195#ifdef GL_EXT_blend_minmax
196 GLH_EXTERN PFNGLBLENDEQUATIONEXTPROC GLH_EXT_NAME(glBlendEquationEXT) GLH_INITIALIZER;
197#endif
198
199#ifdef GL_EXT_blend_subtract
200#endif
201
202#ifdef GL_EXT_compiled_vertex_array
203 GLH_EXTERN PFNGLLOCKARRAYSEXTPROC GLH_EXT_NAME(glLockArraysEXT) GLH_INITIALIZER;
204 GLH_EXTERN PFNGLUNLOCKARRAYSEXTPROC GLH_EXT_NAME(glUnlockArraysEXT) GLH_INITIALIZER;
205#endif
206
207#ifdef GL_EXT_fog_coord
208 GLH_EXTERN PFNGLFOGCOORDDEXTPROC GLH_EXT_NAME(glFogCoorddEXT) GLH_INITIALIZER;
209 GLH_EXTERN PFNGLFOGCOORDDVEXTPROC GLH_EXT_NAME(glFogCoorddvEXT) GLH_INITIALIZER;
210 GLH_EXTERN PFNGLFOGCOORDFEXTPROC GLH_EXT_NAME(glFogCoordfEXT) GLH_INITIALIZER;
211 GLH_EXTERN PFNGLFOGCOORDFVEXTPROC GLH_EXT_NAME(glFogCoordfvEXT) GLH_INITIALIZER;
212 GLH_EXTERN PFNGLFOGCOORDPOINTEREXTPROC GLH_EXT_NAME(glFogCoordPointerEXT) GLH_INITIALIZER;
213#endif
214
215#ifdef GL_EXT_light_max_exponent
216#endif
217
218#ifdef GL_EXT_packed_pixels
219#endif
220
221#ifdef GL_EXT_paletted_texture
222 GLH_EXTERN PFNGLCOLORSUBTABLEEXTPROC GLH_EXT_NAME(glColorSubTableEXT) GLH_INITIALIZER;
223 GLH_EXTERN PFNGLCOLORTABLEEXTPROC GLH_EXT_NAME(glColorTableEXT) GLH_INITIALIZER;
224 GLH_EXTERN PFNGLGETCOLORTABLEEXTPROC GLH_EXT_NAME(glGetColorTableEXT) GLH_INITIALIZER;
225 GLH_EXTERN PFNGLGETCOLORTABLEPARAMETERFVEXTPROC GLH_EXT_NAME(glGetColorTableParameterfvEXT) GLH_INITIALIZER;
226 GLH_EXTERN PFNGLGETCOLORTABLEPARAMETERIVEXTPROC GLH_EXT_NAME(glGetColorTableParameterivEXT) GLH_INITIALIZER;
227#endif
228
229#ifdef GL_EXT_point_parameters
230 GLH_EXTERN PFNGLPOINTPARAMETERFEXTPROC GLH_EXT_NAME(glPointParameterfEXT) GLH_INITIALIZER;
231 GLH_EXTERN PFNGLPOINTPARAMETERFVEXTPROC GLH_EXT_NAME(glPointParameterfvEXT) GLH_INITIALIZER;
232#endif
233
234#ifdef GL_EXT_rescale_normal
235#endif
236
237#ifdef GL_EXT_secondary_color
238 GLH_EXTERN PFNGLSECONDARYCOLOR3BEXTPROC GLH_EXT_NAME(glSecondaryColor3bEXT) GLH_INITIALIZER;
239 GLH_EXTERN PFNGLSECONDARYCOLOR3BVEXTPROC GLH_EXT_NAME(glSecondaryColor3bvEXT) GLH_INITIALIZER;
240 GLH_EXTERN PFNGLSECONDARYCOLOR3DEXTPROC GLH_EXT_NAME(glSecondaryColor3dEXT) GLH_INITIALIZER;
241 GLH_EXTERN PFNGLSECONDARYCOLOR3DVEXTPROC GLH_EXT_NAME(glSecondaryColor3dvEXT) GLH_INITIALIZER;
242 GLH_EXTERN PFNGLSECONDARYCOLOR3FEXTPROC GLH_EXT_NAME(glSecondaryColor3fEXT) GLH_INITIALIZER;
243 GLH_EXTERN PFNGLSECONDARYCOLOR3FVEXTPROC GLH_EXT_NAME(glSecondaryColor3fvEXT) GLH_INITIALIZER;
244 GLH_EXTERN PFNGLSECONDARYCOLOR3IEXTPROC GLH_EXT_NAME(glSecondaryColor3iEXT) GLH_INITIALIZER;
245 GLH_EXTERN PFNGLSECONDARYCOLOR3IVEXTPROC GLH_EXT_NAME(glSecondaryColor3ivEXT) GLH_INITIALIZER;
246 GLH_EXTERN PFNGLSECONDARYCOLOR3SEXTPROC GLH_EXT_NAME(glSecondaryColor3sEXT) GLH_INITIALIZER;
247 GLH_EXTERN PFNGLSECONDARYCOLOR3SVEXTPROC GLH_EXT_NAME(glSecondaryColor3svEXT) GLH_INITIALIZER;
248 GLH_EXTERN PFNGLSECONDARYCOLOR3UBEXTPROC GLH_EXT_NAME(glSecondaryColor3ubEXT) GLH_INITIALIZER;
249 GLH_EXTERN PFNGLSECONDARYCOLOR3UBVEXTPROC GLH_EXT_NAME(glSecondaryColor3ubvEXT) GLH_INITIALIZER;
250 GLH_EXTERN PFNGLSECONDARYCOLOR3UIEXTPROC GLH_EXT_NAME(glSecondaryColor3uiEXT) GLH_INITIALIZER;
251 GLH_EXTERN PFNGLSECONDARYCOLOR3UIVEXTPROC GLH_EXT_NAME(glSecondaryColor3uivEXT) GLH_INITIALIZER;
252 GLH_EXTERN PFNGLSECONDARYCOLOR3USEXTPROC GLH_EXT_NAME(glSecondaryColor3usEXT) GLH_INITIALIZER;
253 GLH_EXTERN PFNGLSECONDARYCOLOR3USVEXTPROC GLH_EXT_NAME(glSecondaryColor3usvEXT) GLH_INITIALIZER;
254 GLH_EXTERN PFNGLSECONDARYCOLORPOINTEREXTPROC GLH_EXT_NAME(glSecondaryColorPointerEXT) GLH_INITIALIZER;
255#endif
256
257#ifdef GL_EXT_separate_specular_color
258#endif
259
260#ifdef GL_EXT_shared_texture_palette
261#endif
262
263#ifdef GL_EXT_stencil_wrap
264#endif
265
266#ifdef GL_EXT_texture_compression_s3tc
267#endif
268
269#ifdef GL_EXT_texture_cube_map
270#endif
271
272#ifdef GL_EXT_texture_edge_clamp
273#endif
274
275#ifdef GL_EXT_texture_env_add
276#endif
277
278#ifdef GL_EXT_texture_env_combine
279#endif
280
281#ifdef GL_EXT_texture_filter_anisotropic
282#endif
283
284#ifdef GL_EXT_texture_lod_bias
285#endif
286
287#ifdef GL_EXT_texture_object
288 GLH_EXTERN PFNGLARETEXTURESRESIDENTEXTPROC GLH_EXT_NAME(glAreTexturesResidentEXT) GLH_INITIALIZER;
289 GLH_EXTERN PFNGLBINDTEXTUREEXTPROC GLH_EXT_NAME(glBindTextureEXT) GLH_INITIALIZER;
290 GLH_EXTERN PFNGLDELETETEXTURESEXTPROC GLH_EXT_NAME(glDeleteTexturesEXT) GLH_INITIALIZER;
291 GLH_EXTERN PFNGLGENTEXTURESEXTPROC GLH_EXT_NAME(glGenTexturesEXT) GLH_INITIALIZER;
292 GLH_EXTERN PFNGLISTEXTUREEXTPROC GLH_EXT_NAME(glIsTextureEXT) GLH_INITIALIZER;
293 GLH_EXTERN PFNGLPRIORITIZETEXTURESEXTPROC GLH_EXT_NAME(glPrioritizeTexturesEXT) GLH_INITIALIZER;
294#endif
295
296#ifdef GL_EXT_texture3D
297 GLH_EXTERN PFNGLTEXIMAGE3DEXTPROC GLH_EXT_NAME(glTexImage3DEXT) GLH_INITIALIZER;
298#endif
299
300#ifdef GL_EXT_vertex_array
301 GLH_EXTERN PFNGLARRAYELEMENTEXTPROC GLH_EXT_NAME(glArrayElementEXT) GLH_INITIALIZER;
302 GLH_EXTERN PFNGLCOLORPOINTEREXTPROC GLH_EXT_NAME(glColorPointerEXT) GLH_INITIALIZER;
303 GLH_EXTERN PFNGLEDGEFLAGPOINTEREXTPROC GLH_EXT_NAME(glEdgeFlagPointerEXT) GLH_INITIALIZER;
304 GLH_EXTERN PFNGLGETPOINTERVEXTPROC GLH_EXT_NAME(glGetPointervEXT) GLH_INITIALIZER;
305 GLH_EXTERN PFNGLINDEXPOINTEREXTPROC GLH_EXT_NAME(glIndexPointerEXT) GLH_INITIALIZER;
306 GLH_EXTERN PFNGLNORMALPOINTEREXTPROC GLH_EXT_NAME(glNormalPointerEXT) GLH_INITIALIZER;
307 GLH_EXTERN PFNGLTEXCOORDPOINTEREXTPROC GLH_EXT_NAME(glTexCoordPointerEXT) GLH_INITIALIZER;
308 GLH_EXTERN PFNGLVERTEXPOINTEREXTPROC GLH_EXT_NAME(glVertexPointerEXT) GLH_INITIALIZER;
309 GLH_EXTERN PFNGLDRAWARRAYSEXTPROC GLH_EXT_NAME(glDrawArraysEXT) GLH_INITIALIZER;
310#endif
311
312#ifdef GL_EXT_vertex_weighting
313 GLH_EXTERN PFNGLVERTEXWEIGHTFEXTPROC GLH_EXT_NAME(glVertexWeightfEXT) GLH_INITIALIZER;
314 GLH_EXTERN PFNGLVERTEXWEIGHTFVEXTPROC GLH_EXT_NAME(glVertexWeightfvEXT) GLH_INITIALIZER;
315 GLH_EXTERN PFNGLVERTEXWEIGHTPOINTEREXTPROC GLH_EXT_NAME(glVertexWeightPointerEXT) GLH_INITIALIZER;
316#endif
317
318#ifdef GL_NV_blend_square
319#endif
320
321#ifdef GL_NV_evaluators
322 GLH_EXTERN PFNGLMAPCONTROLPOINTSNVPROC GLH_EXT_NAME(glMapControlPointsNV) GLH_INITIALIZER;
323 GLH_EXTERN PFNGLMAPPARAMETERIVNVPROC GLH_EXT_NAME(glMapParameterivNV) GLH_INITIALIZER;
324 GLH_EXTERN PFNGLMAPPARAMETERFVNVPROC GLH_EXT_NAME(glMapParameterfvNV) GLH_INITIALIZER;
325 GLH_EXTERN PFNGLGETMAPCONTROLPOINTSNVPROC GLH_EXT_NAME(glGetMapControlPointsNV) GLH_INITIALIZER;
326 GLH_EXTERN PFNGLGETMAPPARAMETERIVNVPROC GLH_EXT_NAME(glGetMapParameterivNV) GLH_INITIALIZER;
327 GLH_EXTERN PFNGLGETMAPPARAMETERFVNVPROC GLH_EXT_NAME(glGetMapParameterfvNV) GLH_INITIALIZER;
328 GLH_EXTERN PFNGLGETMAPATTRIBPARAMETERIVNVPROC GLH_EXT_NAME(glGetMapAttribParameterivNV) GLH_INITIALIZER;
329 GLH_EXTERN PFNGLGETMAPATTRIBPARAMETERFVNVPROC GLH_EXT_NAME(glGetMapAttribParameterfvNV) GLH_INITIALIZER;
330 GLH_EXTERN PFNGLEVALMAPSNVPROC GLH_EXT_NAME(glEvalMapsNV) GLH_INITIALIZER;
331#endif
332
333#ifdef GL_NV_fence
334 GLH_EXTERN PFNGLGENFENCESNVPROC GLH_EXT_NAME(glGenFencesNV) GLH_INITIALIZER;
335 GLH_EXTERN PFNGLDELETEFENCESNVPROC GLH_EXT_NAME(glDeleteFencesNV) GLH_INITIALIZER;
336 GLH_EXTERN PFNGLSETFENCENVPROC GLH_EXT_NAME(glSetFenceNV) GLH_INITIALIZER;
337 GLH_EXTERN PFNGLTESTFENCENVPROC GLH_EXT_NAME(glTestFenceNV) GLH_INITIALIZER;
338 GLH_EXTERN PFNGLFINISHFENCENVPROC GLH_EXT_NAME(glFinishFenceNV) GLH_INITIALIZER;
339 GLH_EXTERN PFNGLISFENCENVPROC GLH_EXT_NAME(glIsFenceNV) GLH_INITIALIZER;
340 GLH_EXTERN PFNGLGETFENCEIVNVPROC GLH_EXT_NAME(glGetFenceivNV) GLH_INITIALIZER;
341#endif
342
343#ifdef GL_NV_fog_distance
344#endif
345
346#ifdef GL_NV_packed_depth_stencil
347#endif
348
349#ifdef GL_NV_register_combiners
350 GLH_EXTERN PFNGLCOMBINERPARAMETERFVNVPROC GLH_EXT_NAME(glCombinerParameterfvNV) GLH_INITIALIZER;
351 GLH_EXTERN PFNGLCOMBINERPARAMETERFNVPROC GLH_EXT_NAME(glCombinerParameterfNV) GLH_INITIALIZER;
352 GLH_EXTERN PFNGLCOMBINERPARAMETERIVNVPROC GLH_EXT_NAME(glCombinerParameterivNV) GLH_INITIALIZER;
353 GLH_EXTERN PFNGLCOMBINERPARAMETERINVPROC GLH_EXT_NAME(glCombinerParameteriNV) GLH_INITIALIZER;
354 GLH_EXTERN PFNGLCOMBINERINPUTNVPROC GLH_EXT_NAME(glCombinerInputNV) GLH_INITIALIZER;
355 GLH_EXTERN PFNGLCOMBINEROUTPUTNVPROC GLH_EXT_NAME(glCombinerOutputNV) GLH_INITIALIZER;
356 GLH_EXTERN PFNGLFINALCOMBINERINPUTNVPROC GLH_EXT_NAME(glFinalCombinerInputNV) GLH_INITIALIZER;
357 GLH_EXTERN PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC GLH_EXT_NAME(glGetCombinerInputParameterfvNV) GLH_INITIALIZER;
358 GLH_EXTERN PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC GLH_EXT_NAME(glGetCombinerInputParameterivNV) GLH_INITIALIZER;
359 GLH_EXTERN PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC GLH_EXT_NAME(glGetCombinerOutputParameterfvNV) GLH_INITIALIZER;
360 GLH_EXTERN PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC GLH_EXT_NAME(glGetCombinerOutputParameterivNV) GLH_INITIALIZER;
361 GLH_EXTERN PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC GLH_EXT_NAME(glGetFinalCombinerInputParameterfvNV) GLH_INITIALIZER;
362 GLH_EXTERN PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC GLH_EXT_NAME(glGetFinalCombinerInputParameterivNV) GLH_INITIALIZER;
363#endif
364
365#ifdef GL_NV_register_combiners2
366 GLH_EXTERN PFNGLCOMBINERSTAGEPARAMETERFVNVPROC GLH_EXT_NAME(glCombinerStageParameterfvNV) GLH_INITIALIZER;
367 GLH_EXTERN PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC GLH_EXT_NAME(glGetCombinerStageParameterfvNV) GLH_INITIALIZER;
368#endif
369
370#ifdef GL_NV_texgen_reflection
371#endif
372
373#ifdef GL_NV_texture_env_combine4
374#endif
375
376#ifdef GL_NV_texture_rectangle
377#endif
378
379#ifdef GL_NV_texture_shader
380#endif
381
382#ifdef GL_NV_vertex_array_range
383 GLH_EXTERN PFNGLFLUSHVERTEXARRAYRANGENVPROC GLH_EXT_NAME(glFlushVertexArrayRangeNV) GLH_INITIALIZER;
384 GLH_EXTERN PFNGLVERTEXARRAYRANGENVPROC GLH_EXT_NAME(glVertexArrayRangeNV) GLH_INITIALIZER;
385# ifdef _WIN32
386 GLH_EXTERN PFNWGLALLOCATEMEMORYNVPROC GLH_EXT_NAME(wglAllocateMemoryNV) GLH_INITIALIZER;
387# endif
388# ifdef GLX_VERSION_1_3
389 GLH_EXTERN PFNGLXALLOCATEMEMORYNVPROC GLH_EXT_NAME(glXAllocateMemoryNV) GLH_INITIALIZER;
390# endif
391# ifdef _WIN32
392 GLH_EXTERN PFNWGLFREEMEMORYNVPROC GLH_EXT_NAME(wglFreeMemoryNV) GLH_INITIALIZER;
393# endif
394# ifdef GLX_VERSION_1_3
395 GLH_EXTERN PFNGLXFREEMEMORYNVPROC GLH_EXT_NAME(glXFreeMemoryNV) GLH_INITIALIZER;
396# endif
397#endif
398
399#ifdef GL_NV_vertex_program
400 GLH_EXTERN PFNGLAREPROGRAMSRESIDENTNVPROC GLH_EXT_NAME(glAreProgramsResidentNV) GLH_INITIALIZER;
401 GLH_EXTERN PFNGLBINDPROGRAMNVPROC GLH_EXT_NAME(glBindProgramNV) GLH_INITIALIZER;
402 GLH_EXTERN PFNGLDELETEPROGRAMSNVPROC GLH_EXT_NAME(glDeleteProgramsNV) GLH_INITIALIZER;
403 GLH_EXTERN PFNGLEXECUTEPROGRAMNVPROC GLH_EXT_NAME(glExecuteProgramNV) GLH_INITIALIZER;
404 GLH_EXTERN PFNGLGENPROGRAMSNVPROC GLH_EXT_NAME(glGenProgramsNV) GLH_INITIALIZER;
405 GLH_EXTERN PFNGLGETPROGRAMPARAMETERDVNVPROC GLH_EXT_NAME(glGetProgramParameterdvNV) GLH_INITIALIZER;
406 GLH_EXTERN PFNGLGETPROGRAMPARAMETERFVNVPROC GLH_EXT_NAME(glGetProgramParameterfvNV) GLH_INITIALIZER;
407 GLH_EXTERN PFNGLGETPROGRAMIVNVPROC GLH_EXT_NAME(glGetProgramivNV) GLH_INITIALIZER;
408 GLH_EXTERN PFNGLGETPROGRAMSTRINGNVPROC GLH_EXT_NAME(glGetProgramStringNV) GLH_INITIALIZER;
409 GLH_EXTERN PFNGLGETTRACKMATRIXIVNVPROC GLH_EXT_NAME(glGetTrackMatrixivNV) GLH_INITIALIZER;
410 GLH_EXTERN PFNGLGETVERTEXATTRIBDVNVPROC GLH_EXT_NAME(glGetVertexAttribdvNV) GLH_INITIALIZER;
411 GLH_EXTERN PFNGLGETVERTEXATTRIBFVNVPROC GLH_EXT_NAME(glGetVertexAttribfvNV) GLH_INITIALIZER;
412 GLH_EXTERN PFNGLGETVERTEXATTRIBIVNVPROC GLH_EXT_NAME(glGetVertexAttribivNV) GLH_INITIALIZER;
413 GLH_EXTERN PFNGLGETVERTEXATTRIBPOINTERVNVPROC GLH_EXT_NAME(glGetVertexAttribPointervNV) GLH_INITIALIZER;
414 GLH_EXTERN PFNGLISPROGRAMNVPROC GLH_EXT_NAME(glIsProgramNV) GLH_INITIALIZER;
415 GLH_EXTERN PFNGLLOADPROGRAMNVPROC GLH_EXT_NAME(glLoadProgramNV) GLH_INITIALIZER;
416 GLH_EXTERN PFNGLPROGRAMPARAMETER4DNVPROC GLH_EXT_NAME(glProgramParameter4dNV) GLH_INITIALIZER;
417 GLH_EXTERN PFNGLPROGRAMPARAMETER4DVNVPROC GLH_EXT_NAME(glProgramParameter4dvNV) GLH_INITIALIZER;
418 GLH_EXTERN PFNGLPROGRAMPARAMETER4FNVPROC GLH_EXT_NAME(glProgramParameter4fNV) GLH_INITIALIZER;
419 GLH_EXTERN PFNGLPROGRAMPARAMETER4FVNVPROC GLH_EXT_NAME(glProgramParameter4fvNV) GLH_INITIALIZER;
420 GLH_EXTERN PFNGLPROGRAMPARAMETERS4DVNVPROC GLH_EXT_NAME(glProgramParameters4dvNV) GLH_INITIALIZER;
421 GLH_EXTERN PFNGLPROGRAMPARAMETERS4FVNVPROC GLH_EXT_NAME(glProgramParameters4fvNV) GLH_INITIALIZER;
422 GLH_EXTERN PFNGLREQUESTRESIDENTPROGRAMSNVPROC GLH_EXT_NAME(glRequestResidentProgramsNV) GLH_INITIALIZER;
423 GLH_EXTERN PFNGLTRACKMATRIXNVPROC GLH_EXT_NAME(glTrackMatrixNV) GLH_INITIALIZER;
424 GLH_EXTERN PFNGLVERTEXATTRIBPOINTERNVPROC GLH_EXT_NAME(glVertexAttribPointerNV) GLH_INITIALIZER;
425 GLH_EXTERN PFNGLVERTEXATTRIB1DNVPROC GLH_EXT_NAME(glVertexAttrib1dNV) GLH_INITIALIZER;
426 GLH_EXTERN PFNGLVERTEXATTRIB1DVNVPROC GLH_EXT_NAME(glVertexAttrib1dvNV) GLH_INITIALIZER;
427 GLH_EXTERN PFNGLVERTEXATTRIB1FNVPROC GLH_EXT_NAME(glVertexAttrib1fNV) GLH_INITIALIZER;
428 GLH_EXTERN PFNGLVERTEXATTRIB1FVNVPROC GLH_EXT_NAME(glVertexAttrib1fvNV) GLH_INITIALIZER;
429 GLH_EXTERN PFNGLVERTEXATTRIB1SNVPROC GLH_EXT_NAME(glVertexAttrib1sNV) GLH_INITIALIZER;
430 GLH_EXTERN PFNGLVERTEXATTRIB1SVNVPROC GLH_EXT_NAME(glVertexAttrib1svNV) GLH_INITIALIZER;
431 GLH_EXTERN PFNGLVERTEXATTRIB2DNVPROC GLH_EXT_NAME(glVertexAttrib2dNV) GLH_INITIALIZER;
432 GLH_EXTERN PFNGLVERTEXATTRIB2DVNVPROC GLH_EXT_NAME(glVertexAttrib2dvNV) GLH_INITIALIZER;
433 GLH_EXTERN PFNGLVERTEXATTRIB2FNVPROC GLH_EXT_NAME(glVertexAttrib2fNV) GLH_INITIALIZER;
434 GLH_EXTERN PFNGLVERTEXATTRIB2FVNVPROC GLH_EXT_NAME(glVertexAttrib2fvNV) GLH_INITIALIZER;
435 GLH_EXTERN PFNGLVERTEXATTRIB2SNVPROC GLH_EXT_NAME(glVertexAttrib2sNV) GLH_INITIALIZER;
436 GLH_EXTERN PFNGLVERTEXATTRIB2SVNVPROC GLH_EXT_NAME(glVertexAttrib2svNV) GLH_INITIALIZER;
437 GLH_EXTERN PFNGLVERTEXATTRIB3DNVPROC GLH_EXT_NAME(glVertexAttrib3dNV) GLH_INITIALIZER;
438 GLH_EXTERN PFNGLVERTEXATTRIB3DVNVPROC GLH_EXT_NAME(glVertexAttrib3dvNV) GLH_INITIALIZER;
439 GLH_EXTERN PFNGLVERTEXATTRIB3FNVPROC GLH_EXT_NAME(glVertexAttrib3fNV) GLH_INITIALIZER;
440 GLH_EXTERN PFNGLVERTEXATTRIB3FVNVPROC GLH_EXT_NAME(glVertexAttrib3fvNV) GLH_INITIALIZER;
441 GLH_EXTERN PFNGLVERTEXATTRIB3SNVPROC GLH_EXT_NAME(glVertexAttrib3sNV) GLH_INITIALIZER;
442 GLH_EXTERN PFNGLVERTEXATTRIB3SVNVPROC GLH_EXT_NAME(glVertexAttrib3svNV) GLH_INITIALIZER;
443 GLH_EXTERN PFNGLVERTEXATTRIB4DNVPROC GLH_EXT_NAME(glVertexAttrib4dNV) GLH_INITIALIZER;
444 GLH_EXTERN PFNGLVERTEXATTRIB4DVNVPROC GLH_EXT_NAME(glVertexAttrib4dvNV) GLH_INITIALIZER;
445 GLH_EXTERN PFNGLVERTEXATTRIB4FNVPROC GLH_EXT_NAME(glVertexAttrib4fNV) GLH_INITIALIZER;
446 GLH_EXTERN PFNGLVERTEXATTRIB4FVNVPROC GLH_EXT_NAME(glVertexAttrib4fvNV) GLH_INITIALIZER;
447 GLH_EXTERN PFNGLVERTEXATTRIB4SNVPROC GLH_EXT_NAME(glVertexAttrib4sNV) GLH_INITIALIZER;
448 GLH_EXTERN PFNGLVERTEXATTRIB4SVNVPROC GLH_EXT_NAME(glVertexAttrib4svNV) GLH_INITIALIZER;
449 GLH_EXTERN PFNGLVERTEXATTRIB4UBVNVPROC GLH_EXT_NAME(glVertexAttrib4ubvNV) GLH_INITIALIZER;
450 GLH_EXTERN PFNGLVERTEXATTRIBS1DVNVPROC GLH_EXT_NAME(glVertexAttribs1dvNV) GLH_INITIALIZER;
451 GLH_EXTERN PFNGLVERTEXATTRIBS1FVNVPROC GLH_EXT_NAME(glVertexAttribs1fvNV) GLH_INITIALIZER;
452 GLH_EXTERN PFNGLVERTEXATTRIBS1SVNVPROC GLH_EXT_NAME(glVertexAttribs1svNV) GLH_INITIALIZER;
453 GLH_EXTERN PFNGLVERTEXATTRIBS2DVNVPROC GLH_EXT_NAME(glVertexAttribs2dvNV) GLH_INITIALIZER;
454 GLH_EXTERN PFNGLVERTEXATTRIBS2FVNVPROC GLH_EXT_NAME(glVertexAttribs2fvNV) GLH_INITIALIZER;
455 GLH_EXTERN PFNGLVERTEXATTRIBS2SVNVPROC GLH_EXT_NAME(glVertexAttribs2svNV) GLH_INITIALIZER;
456 GLH_EXTERN PFNGLVERTEXATTRIBS3DVNVPROC GLH_EXT_NAME(glVertexAttribs3dvNV) GLH_INITIALIZER;
457 GLH_EXTERN PFNGLVERTEXATTRIBS3FVNVPROC GLH_EXT_NAME(glVertexAttribs3fvNV) GLH_INITIALIZER;
458 GLH_EXTERN PFNGLVERTEXATTRIBS3SVNVPROC GLH_EXT_NAME(glVertexAttribs3svNV) GLH_INITIALIZER;
459 GLH_EXTERN PFNGLVERTEXATTRIBS4DVNVPROC GLH_EXT_NAME(glVertexAttribs4dvNV) GLH_INITIALIZER;
460 GLH_EXTERN PFNGLVERTEXATTRIBS4FVNVPROC GLH_EXT_NAME(glVertexAttribs4fvNV) GLH_INITIALIZER;
461 GLH_EXTERN PFNGLVERTEXATTRIBS4SVNVPROC GLH_EXT_NAME(glVertexAttribs4svNV) GLH_INITIALIZER;
462 GLH_EXTERN PFNGLVERTEXATTRIBS4UBVNVPROC GLH_EXT_NAME(glVertexAttribs4ubvNV) GLH_INITIALIZER;
463#endif
464
465#ifdef GL_SGIS_generate_mipmap
466#endif
467
468#ifdef GL_SGIS_texture_lod
469#endif
470
471#ifdef GL_SGIX_depth_texture
472#endif
473
474#ifdef GL_SGIX_shadow
475#endif
476
477#ifdef GL_VERSION_1_2
478 /* These routines are prefixed by the preprocessor constant
479 GLH_CORE_1_2_PREFIX to avoid colliding with the OpenGL 1.2 namespace. */
480 GLH_EXTERN PFNGLBLENDCOLORPROC GLH_CORE_1_2_NAME(glBlendColor) GLH_INITIALIZER;
481 GLH_EXTERN PFNGLBLENDEQUATIONPROC GLH_CORE_1_2_NAME(glBlendEquation) GLH_INITIALIZER;
482 GLH_EXTERN PFNGLDRAWRANGEELEMENTSPROC GLH_CORE_1_2_NAME(glDrawRangeElements) GLH_INITIALIZER;
483 GLH_EXTERN PFNGLCOLORTABLEPROC GLH_CORE_1_2_NAME(glColorTable) GLH_INITIALIZER;
484 GLH_EXTERN PFNGLCOLORTABLEPARAMETERFVPROC GLH_CORE_1_2_NAME(glColorTableParameterfv) GLH_INITIALIZER;
485 GLH_EXTERN PFNGLCOLORTABLEPARAMETERIVPROC GLH_CORE_1_2_NAME(glColorTableParameteriv) GLH_INITIALIZER;
486 GLH_EXTERN PFNGLCOPYCOLORTABLEPROC GLH_CORE_1_2_NAME(glCopyColorTable) GLH_INITIALIZER;
487 GLH_EXTERN PFNGLGETCOLORTABLEPROC GLH_CORE_1_2_NAME(glGetColorTable) GLH_INITIALIZER;
488 GLH_EXTERN PFNGLGETCOLORTABLEPARAMETERFVPROC GLH_CORE_1_2_NAME(glGetColorTableParameterfv) GLH_INITIALIZER;
489 GLH_EXTERN PFNGLGETCOLORTABLEPARAMETERIVPROC GLH_CORE_1_2_NAME(glGetColorTableParameteriv) GLH_INITIALIZER;
490 GLH_EXTERN PFNGLTEXIMAGE3DPROC GLH_CORE_1_2_NAME(glTexImage3D) GLH_INITIALIZER;
491 GLH_EXTERN PFNGLTEXSUBIMAGE3DPROC GLH_CORE_1_2_NAME(glTexSubImage3D) GLH_INITIALIZER;
492 GLH_EXTERN PFNGLCOPYTEXSUBIMAGE3DPROC GLH_CORE_1_2_NAME(glCopyTexSubImage3D) GLH_INITIALIZER;
493#endif
494
495#ifdef GL_WIN_swap_hint
496 GLH_EXTERN PFNGLADDSWAPHINTRECTWINPROC GLH_EXT_NAME(glAddSwapHintRectWIN) GLH_INITIALIZER;
497#endif
498
499#ifdef WGL_ARB_pbuffer
500# ifdef _WIN32
501 GLH_EXTERN PFNWGLCREATEPBUFFERARBPROC GLH_EXT_NAME(wglCreatePbufferARB) GLH_INITIALIZER;
502# endif
503# ifdef _WIN32
504 GLH_EXTERN PFNWGLGETPBUFFERDCARBPROC GLH_EXT_NAME(wglGetPbufferDCARB) GLH_INITIALIZER;
505# endif
506# ifdef _WIN32
507 GLH_EXTERN PFNWGLRELEASEPBUFFERDCARBPROC GLH_EXT_NAME(wglReleasePbufferDCARB) GLH_INITIALIZER;
508# endif
509# ifdef _WIN32
510 GLH_EXTERN PFNWGLDESTROYPBUFFERARBPROC GLH_EXT_NAME(wglDestroyPbufferARB) GLH_INITIALIZER;
511# endif
512# ifdef _WIN32
513 GLH_EXTERN PFNWGLQUERYPBUFFERARBPROC GLH_EXT_NAME(wglQueryPbufferARB) GLH_INITIALIZER;
514# endif
515#endif
516
517#ifdef WGL_ARB_render_texture
518# ifdef _WIN32
519 GLH_EXTERN PFNWGLBINDTEXIMAGEARBPROC GLH_EXT_NAME(wglBindTexImageARB) GLH_INITIALIZER;
520# endif
521# ifdef _WIN32
522 GLH_EXTERN PFNWGLRELEASETEXIMAGEARBPROC GLH_EXT_NAME(wglReleaseTexImageARB) GLH_INITIALIZER;
523# endif
524# ifdef _WIN32
525 GLH_EXTERN PFNWGLSETPBUFFERATTRIBARBPROC GLH_EXT_NAME(wglSetPbufferAttribARB) GLH_INITIALIZER;
526# endif
527#endif
528
529#ifdef WGL_ARB_pixel_format
530# ifdef _WIN32
531 GLH_EXTERN PFNWGLGETPIXELFORMATATTRIBIVARBPROC GLH_EXT_NAME(wglGetPixelFormatAttribivARB) GLH_INITIALIZER;
532# endif
533# ifdef _WIN32
534 GLH_EXTERN PFNWGLGETPIXELFORMATATTRIBFVARBPROC GLH_EXT_NAME(wglGetPixelFormatAttribfvARB) GLH_INITIALIZER;
535# endif
536# ifdef _WIN32
537 GLH_EXTERN PFNWGLCHOOSEPIXELFORMATARBPROC GLH_EXT_NAME(wglChoosePixelFormatARB) GLH_INITIALIZER;
538# endif
539#endif
540
541
542#ifdef GLH_EXT_SINGLE_FILE
543
544int glh_init_extension(const char* extension)
545{
546 if (NULL == extension) {
547 return FALSE;
548#ifdef GL_ARB_multitexture
549 } else if (0 == strcmp(extension, "GL_ARB_multitexture")) {
550 GLH_EXT_NAME(glMultiTexCoord1dARB) = (PFNGLMULTITEXCOORD1DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1dARB");
551 if (NULL == GLH_EXT_NAME(glMultiTexCoord1dARB))
552 return FALSE;
553 GLH_EXT_NAME(glMultiTexCoord1dvARB) = (PFNGLMULTITEXCOORD1DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1dvARB");
554 if (NULL == GLH_EXT_NAME(glMultiTexCoord1dvARB))
555 return FALSE;
556 GLH_EXT_NAME(glMultiTexCoord1fARB) = (PFNGLMULTITEXCOORD1FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1fARB");
557 if (NULL == GLH_EXT_NAME(glMultiTexCoord1fARB))
558 return FALSE;
559 GLH_EXT_NAME(glMultiTexCoord1fvARB) = (PFNGLMULTITEXCOORD1FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1fvARB");
560 if (NULL == GLH_EXT_NAME(glMultiTexCoord1fvARB))
561 return FALSE;
562 GLH_EXT_NAME(glMultiTexCoord1iARB) = (PFNGLMULTITEXCOORD1IARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1iARB");
563 if (NULL == GLH_EXT_NAME(glMultiTexCoord1iARB))
564 return FALSE;
565 GLH_EXT_NAME(glMultiTexCoord1ivARB) = (PFNGLMULTITEXCOORD1IVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1ivARB");
566 if (NULL == GLH_EXT_NAME(glMultiTexCoord1ivARB))
567 return FALSE;
568 GLH_EXT_NAME(glMultiTexCoord1sARB) = (PFNGLMULTITEXCOORD1SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1sARB");
569 if (NULL == GLH_EXT_NAME(glMultiTexCoord1sARB))
570 return FALSE;
571 GLH_EXT_NAME(glMultiTexCoord1svARB) = (PFNGLMULTITEXCOORD1SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord1svARB");
572 if (NULL == GLH_EXT_NAME(glMultiTexCoord1svARB))
573 return FALSE;
574 GLH_EXT_NAME(glMultiTexCoord2dARB) = (PFNGLMULTITEXCOORD2DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2dARB");
575 if (NULL == GLH_EXT_NAME(glMultiTexCoord2dARB))
576 return FALSE;
577 GLH_EXT_NAME(glMultiTexCoord2dvARB) = (PFNGLMULTITEXCOORD2DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2dvARB");
578 if (NULL == GLH_EXT_NAME(glMultiTexCoord2dvARB))
579 return FALSE;
580 GLH_EXT_NAME(glMultiTexCoord2fARB) = (PFNGLMULTITEXCOORD2FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2fARB");
581 if (NULL == GLH_EXT_NAME(glMultiTexCoord2fARB))
582 return FALSE;
583 GLH_EXT_NAME(glMultiTexCoord2fvARB) = (PFNGLMULTITEXCOORD2FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2fvARB");
584 if (NULL == GLH_EXT_NAME(glMultiTexCoord2fvARB))
585 return FALSE;
586 GLH_EXT_NAME(glMultiTexCoord2iARB) = (PFNGLMULTITEXCOORD2IARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2iARB");
587 if (NULL == GLH_EXT_NAME(glMultiTexCoord2iARB))
588 return FALSE;
589 GLH_EXT_NAME(glMultiTexCoord2ivARB) = (PFNGLMULTITEXCOORD2IVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2ivARB");
590 if (NULL == GLH_EXT_NAME(glMultiTexCoord2ivARB))
591 return FALSE;
592 GLH_EXT_NAME(glMultiTexCoord2sARB) = (PFNGLMULTITEXCOORD2SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2sARB");
593 if (NULL == GLH_EXT_NAME(glMultiTexCoord2sARB))
594 return FALSE;
595 GLH_EXT_NAME(glMultiTexCoord2svARB) = (PFNGLMULTITEXCOORD2SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord2svARB");
596 if (NULL == GLH_EXT_NAME(glMultiTexCoord2svARB))
597 return FALSE;
598 GLH_EXT_NAME(glMultiTexCoord3dARB) = (PFNGLMULTITEXCOORD3DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3dARB");
599 if (NULL == GLH_EXT_NAME(glMultiTexCoord3dARB))
600 return FALSE;
601 GLH_EXT_NAME(glMultiTexCoord3dvARB) = (PFNGLMULTITEXCOORD3DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3dvARB");
602 if (NULL == GLH_EXT_NAME(glMultiTexCoord3dvARB))
603 return FALSE;
604 GLH_EXT_NAME(glMultiTexCoord3fARB) = (PFNGLMULTITEXCOORD3FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3fARB");
605 if (NULL == GLH_EXT_NAME(glMultiTexCoord3fARB))
606 return FALSE;
607 GLH_EXT_NAME(glMultiTexCoord3fvARB) = (PFNGLMULTITEXCOORD3FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3fvARB");
608 if (NULL == GLH_EXT_NAME(glMultiTexCoord3fvARB))
609 return FALSE;
610 GLH_EXT_NAME(glMultiTexCoord3iARB) = (PFNGLMULTITEXCOORD3IARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3iARB");
611 if (NULL == GLH_EXT_NAME(glMultiTexCoord3iARB))
612 return FALSE;
613 GLH_EXT_NAME(glMultiTexCoord3ivARB) = (PFNGLMULTITEXCOORD3IVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3ivARB");
614 if (NULL == GLH_EXT_NAME(glMultiTexCoord3ivARB))
615 return FALSE;
616 GLH_EXT_NAME(glMultiTexCoord3sARB) = (PFNGLMULTITEXCOORD3SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3sARB");
617 if (NULL == GLH_EXT_NAME(glMultiTexCoord3sARB))
618 return FALSE;
619 GLH_EXT_NAME(glMultiTexCoord3svARB) = (PFNGLMULTITEXCOORD3SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord3svARB");
620 if (NULL == GLH_EXT_NAME(glMultiTexCoord3svARB))
621 return FALSE;
622 GLH_EXT_NAME(glMultiTexCoord4dARB) = (PFNGLMULTITEXCOORD4DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4dARB");
623 if (NULL == GLH_EXT_NAME(glMultiTexCoord4dARB))
624 return FALSE;
625 GLH_EXT_NAME(glMultiTexCoord4dvARB) = (PFNGLMULTITEXCOORD4DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4dvARB");
626 if (NULL == GLH_EXT_NAME(glMultiTexCoord4dvARB))
627 return FALSE;
628 GLH_EXT_NAME(glMultiTexCoord4fARB) = (PFNGLMULTITEXCOORD4FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4fARB");
629 if (NULL == GLH_EXT_NAME(glMultiTexCoord4fARB))
630 return FALSE;
631 GLH_EXT_NAME(glMultiTexCoord4fvARB) = (PFNGLMULTITEXCOORD4FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4fvARB");
632 if (NULL == GLH_EXT_NAME(glMultiTexCoord4fvARB))
633 return FALSE;
634 GLH_EXT_NAME(glMultiTexCoord4iARB) = (PFNGLMULTITEXCOORD4IARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4iARB");
635 if (NULL == GLH_EXT_NAME(glMultiTexCoord4iARB))
636 return FALSE;
637 GLH_EXT_NAME(glMultiTexCoord4ivARB) = (PFNGLMULTITEXCOORD4IVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4ivARB");
638 if (NULL == GLH_EXT_NAME(glMultiTexCoord4ivARB))
639 return FALSE;
640 GLH_EXT_NAME(glMultiTexCoord4sARB) = (PFNGLMULTITEXCOORD4SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4sARB");
641 if (NULL == GLH_EXT_NAME(glMultiTexCoord4sARB))
642 return FALSE;
643 GLH_EXT_NAME(glMultiTexCoord4svARB) = (PFNGLMULTITEXCOORD4SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultiTexCoord4svARB");
644 if (NULL == GLH_EXT_NAME(glMultiTexCoord4svARB))
645 return FALSE;
646 GLH_EXT_NAME(glActiveTextureARB) = (PFNGLACTIVETEXTUREARBPROC)GLH_EXT_GET_PROC_ADDRESS("glActiveTextureARB");
647 if (NULL == GLH_EXT_NAME(glActiveTextureARB))
648 return FALSE;
649 GLH_EXT_NAME(glClientActiveTextureARB) = (PFNGLCLIENTACTIVETEXTUREARBPROC)GLH_EXT_GET_PROC_ADDRESS("glClientActiveTextureARB");
650 if (NULL == GLH_EXT_NAME(glClientActiveTextureARB))
651 return FALSE;
652#endif
653
654#ifdef GL_ARB_texture_border_clamp
655 } else if (0 == strcmp(extension, "GL_ARB_texture_border_clamp")) {
656#endif
657
658#ifdef GL_ARB_texture_compression
659 } else if (0 == strcmp(extension, "GL_ARB_texture_compression")) {
660 GLH_EXT_NAME(glCompressedTexImage3DARB) = (PFNGLCOMPRESSEDTEXIMAGE3DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glCompressedTexImage3DARB");
661 if (NULL == GLH_EXT_NAME(glCompressedTexImage3DARB))
662 return FALSE;
663 GLH_EXT_NAME(glCompressedTexImage2DARB) = (PFNGLCOMPRESSEDTEXIMAGE2DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glCompressedTexImage2DARB");
664 if (NULL == GLH_EXT_NAME(glCompressedTexImage2DARB))
665 return FALSE;
666 GLH_EXT_NAME(glCompressedTexImage1DARB) = (PFNGLCOMPRESSEDTEXIMAGE1DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glCompressedTexImage1DARB");
667 if (NULL == GLH_EXT_NAME(glCompressedTexImage1DARB))
668 return FALSE;
669 GLH_EXT_NAME(glCompressedTexSubImage3DARB) = (PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glCompressedTexSubImage3DARB");
670 if (NULL == GLH_EXT_NAME(glCompressedTexSubImage3DARB))
671 return FALSE;
672 GLH_EXT_NAME(glCompressedTexSubImage2DARB) = (PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glCompressedTexSubImage2DARB");
673 if (NULL == GLH_EXT_NAME(glCompressedTexSubImage2DARB))
674 return FALSE;
675 GLH_EXT_NAME(glCompressedTexSubImage1DARB) = (PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glCompressedTexSubImage1DARB");
676 if (NULL == GLH_EXT_NAME(glCompressedTexSubImage1DARB))
677 return FALSE;
678 GLH_EXT_NAME(glGetCompressedTexImageARB) = (PFNGLGETCOMPRESSEDTEXIMAGEARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetCompressedTexImageARB");
679 if (NULL == GLH_EXT_NAME(glGetCompressedTexImageARB))
680 return FALSE;
681#endif
682
683#ifdef GL_ARB_texture_cube_map
684 } else if (0 == strcmp(extension, "GL_ARB_texture_cube_map")) {
685#endif
686
687#ifdef GL_ARB_transpose_matrix
688 } else if (0 == strcmp(extension, "GL_ARB_transpose_matrix")) {
689 GLH_EXT_NAME(glLoadTransposeMatrixfARB) = (PFNGLLOADTRANSPOSEMATRIXFARBPROC)GLH_EXT_GET_PROC_ADDRESS("glLoadTransposeMatrixfARB");
690 if (NULL == GLH_EXT_NAME(glLoadTransposeMatrixfARB))
691 return FALSE;
692 GLH_EXT_NAME(glLoadTransposeMatrixdARB) = (PFNGLLOADTRANSPOSEMATRIXDARBPROC)GLH_EXT_GET_PROC_ADDRESS("glLoadTransposeMatrixdARB");
693 if (NULL == GLH_EXT_NAME(glLoadTransposeMatrixdARB))
694 return FALSE;
695 GLH_EXT_NAME(glMultTransposeMatrixfARB) = (PFNGLMULTTRANSPOSEMATRIXFARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultTransposeMatrixfARB");
696 if (NULL == GLH_EXT_NAME(glMultTransposeMatrixfARB))
697 return FALSE;
698 GLH_EXT_NAME(glMultTransposeMatrixdARB) = (PFNGLMULTTRANSPOSEMATRIXDARBPROC)GLH_EXT_GET_PROC_ADDRESS("glMultTransposeMatrixdARB");
699 if (NULL == GLH_EXT_NAME(glMultTransposeMatrixdARB))
700 return FALSE;
701#endif
702
703#ifdef GL_ARB_vertex_program
704 } else if (0 == strcmp(extension, "GL_ARB_vertex_program")) {
705 GLH_EXT_NAME(glVertexAttrib1sARB) = (PFNGLVERTEXATTRIB1SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1sARB");
706 if (NULL == GLH_EXT_NAME(glVertexAttrib1sARB))
707 return GL_FALSE;
708 GLH_EXT_NAME(glVertexAttrib1fARB) = (PFNGLVERTEXATTRIB1FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1fARB");
709 if (NULL == GLH_EXT_NAME(glVertexAttrib1fARB))
710 return GL_FALSE;
711 GLH_EXT_NAME(glVertexAttrib1dARB) = (PFNGLVERTEXATTRIB1DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1dARB");
712 if (NULL == GLH_EXT_NAME(glVertexAttrib1dARB))
713 return GL_FALSE;
714 GLH_EXT_NAME(glVertexAttrib2sARB) = (PFNGLVERTEXATTRIB2SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2sARB");
715 if (NULL == GLH_EXT_NAME(glVertexAttrib2sARB))
716 return GL_FALSE;
717 GLH_EXT_NAME(glVertexAttrib2fARB) = (PFNGLVERTEXATTRIB2FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2fARB");
718 if (NULL == GLH_EXT_NAME(glVertexAttrib2fARB))
719 return GL_FALSE;
720 GLH_EXT_NAME(glVertexAttrib2dARB) = (PFNGLVERTEXATTRIB2DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2dARB");
721 if (NULL == GLH_EXT_NAME(glVertexAttrib2dARB))
722 return GL_FALSE;
723 GLH_EXT_NAME(glVertexAttrib3sARB) = (PFNGLVERTEXATTRIB3SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3sARB");
724 if (NULL == GLH_EXT_NAME(glVertexAttrib3sARB))
725 return GL_FALSE;
726 GLH_EXT_NAME(glVertexAttrib3fARB) = (PFNGLVERTEXATTRIB3FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3fARB");
727 if (NULL == GLH_EXT_NAME(glVertexAttrib3fARB))
728 return GL_FALSE;
729 GLH_EXT_NAME(glVertexAttrib3dARB) = (PFNGLVERTEXATTRIB3DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3dARB");
730 if (NULL == GLH_EXT_NAME(glVertexAttrib3dARB))
731 return GL_FALSE;
732 GLH_EXT_NAME(glVertexAttrib4sARB) = (PFNGLVERTEXATTRIB4SARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4sARB");
733 if (NULL == GLH_EXT_NAME(glVertexAttrib4sARB))
734 return GL_FALSE;
735 GLH_EXT_NAME(glVertexAttrib4fARB) = (PFNGLVERTEXATTRIB4FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4fARB");
736 if (NULL == GLH_EXT_NAME(glVertexAttrib4fARB))
737 return GL_FALSE;
738 GLH_EXT_NAME(glVertexAttrib4dARB) = (PFNGLVERTEXATTRIB4DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4dARB");
739 if (NULL == GLH_EXT_NAME(glVertexAttrib4dARB))
740 return GL_FALSE;
741 GLH_EXT_NAME(glVertexAttrib4NubARB) = (PFNGLVERTEXATTRIB4NUBARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NubARB");
742 if (NULL == GLH_EXT_NAME(glVertexAttrib4NubARB))
743 return GL_FALSE;
744 GLH_EXT_NAME(glVertexAttrib1svARB) = (PFNGLVERTEXATTRIB1SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1svARB");
745 if (NULL == GLH_EXT_NAME(glVertexAttrib1svARB))
746 return GL_FALSE;
747 GLH_EXT_NAME(glVertexAttrib1fvARB) = (PFNGLVERTEXATTRIB1FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1fvARB");
748 if (NULL == GLH_EXT_NAME(glVertexAttrib1fvARB))
749 return GL_FALSE;
750 GLH_EXT_NAME(glVertexAttrib1dvARB) = (PFNGLVERTEXATTRIB1DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1dvARB");
751 if (NULL == GLH_EXT_NAME(glVertexAttrib1dvARB))
752 return GL_FALSE;
753 GLH_EXT_NAME(glVertexAttrib2svARB) = (PFNGLVERTEXATTRIB2SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2svARB");
754 if (NULL == GLH_EXT_NAME(glVertexAttrib2svARB))
755 return GL_FALSE;
756 GLH_EXT_NAME(glVertexAttrib2fvARB) = (PFNGLVERTEXATTRIB2FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2fvARB");
757 if (NULL == GLH_EXT_NAME(glVertexAttrib2fvARB))
758 return GL_FALSE;
759 GLH_EXT_NAME(glVertexAttrib2dvARB) = (PFNGLVERTEXATTRIB2DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2dvARB");
760 if (NULL == GLH_EXT_NAME(glVertexAttrib2dvARB))
761 return GL_FALSE;
762 GLH_EXT_NAME(glVertexAttrib3svARB) = (PFNGLVERTEXATTRIB3SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3svARB");
763 if (NULL == GLH_EXT_NAME(glVertexAttrib3svARB))
764 return GL_FALSE;
765 GLH_EXT_NAME(glVertexAttrib3fvARB) = (PFNGLVERTEXATTRIB3FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3fvARB");
766 if (NULL == GLH_EXT_NAME(glVertexAttrib3fvARB))
767 return GL_FALSE;
768 GLH_EXT_NAME(glVertexAttrib3dvARB) = (PFNGLVERTEXATTRIB3DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3dvARB");
769 if (NULL == GLH_EXT_NAME(glVertexAttrib3dvARB))
770 return GL_FALSE;
771 GLH_EXT_NAME(glVertexAttrib4bvARB) = (PFNGLVERTEXATTRIB4BVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4bvARB");
772 if (NULL == GLH_EXT_NAME(glVertexAttrib4bvARB))
773 return GL_FALSE;
774 GLH_EXT_NAME(glVertexAttrib4svARB) = (PFNGLVERTEXATTRIB4SVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4svARB");
775 if (NULL == GLH_EXT_NAME(glVertexAttrib4svARB))
776 return GL_FALSE;
777 GLH_EXT_NAME(glVertexAttrib4ivARB) = (PFNGLVERTEXATTRIB4IVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4ivARB");
778 if (NULL == GLH_EXT_NAME(glVertexAttrib4ivARB))
779 return GL_FALSE;
780 GLH_EXT_NAME(glVertexAttrib4ubvARB) = (PFNGLVERTEXATTRIB4UBVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4ubvARB");
781 if (NULL == GLH_EXT_NAME(glVertexAttrib4ubvARB))
782 return GL_FALSE;
783 GLH_EXT_NAME(glVertexAttrib4usvARB) = (PFNGLVERTEXATTRIB4USVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4usvARB");
784 if (NULL == GLH_EXT_NAME(glVertexAttrib4usvARB))
785 return GL_FALSE;
786 GLH_EXT_NAME(glVertexAttrib4uivARB) = (PFNGLVERTEXATTRIB4UIVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4uivARB");
787 if (NULL == GLH_EXT_NAME(glVertexAttrib4uivARB))
788 return GL_FALSE;
789 GLH_EXT_NAME(glVertexAttrib4fvARB) = (PFNGLVERTEXATTRIB4FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4fvARB");
790 if (NULL == GLH_EXT_NAME(glVertexAttrib4fvARB))
791 return GL_FALSE;
792 GLH_EXT_NAME(glVertexAttrib4dvARB) = (PFNGLVERTEXATTRIB4DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4dvARB");
793 if (NULL == GLH_EXT_NAME(glVertexAttrib4dvARB))
794 return GL_FALSE;
795 GLH_EXT_NAME(glVertexAttrib4NbvARB) = (PFNGLVERTEXATTRIB4NBVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NbvARB");
796 if (NULL == GLH_EXT_NAME(glVertexAttrib4NbvARB))
797 return GL_FALSE;
798 GLH_EXT_NAME(glVertexAttrib4NsvARB) = (PFNGLVERTEXATTRIB4NSVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NsvARB");
799 if (NULL == GLH_EXT_NAME(glVertexAttrib4NsvARB))
800 return GL_FALSE;
801 GLH_EXT_NAME(glVertexAttrib4NivARB) = (PFNGLVERTEXATTRIB4NIVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NivARB");
802 if (NULL == GLH_EXT_NAME(glVertexAttrib4NivARB))
803 return GL_FALSE;
804 GLH_EXT_NAME(glVertexAttrib4NubvARB) = (PFNGLVERTEXATTRIB4NUBVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NubvARB");
805 if (NULL == GLH_EXT_NAME(glVertexAttrib4NubvARB))
806 return GL_FALSE;
807 GLH_EXT_NAME(glVertexAttrib4NusvARB) = (PFNGLVERTEXATTRIB4NUSVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NusvARB");
808 if (NULL == GLH_EXT_NAME(glVertexAttrib4NusvARB))
809 return GL_FALSE;
810 GLH_EXT_NAME(glVertexAttrib4NuivARB) = (PFNGLVERTEXATTRIB4NUIVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4NuivARB");
811 if (NULL == GLH_EXT_NAME(glVertexAttrib4NuivARB))
812 return GL_FALSE;
813 GLH_EXT_NAME(glVertexAttribPointerARB) = (PFNGLVERTEXATTRIBPOINTERARBPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribPointerARB");
814 if (NULL == GLH_EXT_NAME(glVertexAttribPointerARB))
815 return GL_FALSE;
816 GLH_EXT_NAME(glEnableVertexAttribArrayARB) = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)GLH_EXT_GET_PROC_ADDRESS("glEnableVertexAttribArrayARB");
817 if (NULL == GLH_EXT_NAME(glEnableVertexAttribArrayARB))
818 return GL_FALSE;
819 GLH_EXT_NAME(glDisableVertexAttribArrayARB) = (PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)GLH_EXT_GET_PROC_ADDRESS("glDisableVertexAttribArrayARB");
820 if (NULL == GLH_EXT_NAME(glDisableVertexAttribArrayARB))
821 return GL_FALSE;
822 GLH_EXT_NAME(glProgramStringARB) = (PFNGLPROGRAMSTRINGARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramStringARB");
823 if (NULL == GLH_EXT_NAME(glProgramStringARB))
824 return GL_FALSE;
825 GLH_EXT_NAME(glBindProgramARB) = (PFNGLBINDPROGRAMARBPROC)GLH_EXT_GET_PROC_ADDRESS("glBindProgramARB");
826 if (NULL == GLH_EXT_NAME(glBindProgramARB))
827 return GL_FALSE;
828 GLH_EXT_NAME(glDeleteProgramsARB) = (PFNGLDELETEPROGRAMSARBPROC)GLH_EXT_GET_PROC_ADDRESS("glDeleteProgramsARB");
829 if (NULL == GLH_EXT_NAME(glDeleteProgramsARB))
830 return GL_FALSE;
831 GLH_EXT_NAME(glGenProgramsARB) = (PFNGLGENPROGRAMSARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGenProgramsARB");
832 if (NULL == GLH_EXT_NAME(glGenProgramsARB))
833 return GL_FALSE;
834 GLH_EXT_NAME(glProgramEnvParameter4dARB) = (PFNGLPROGRAMENVPARAMETER4DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramEnvParameter4dARB");
835 if (NULL == GLH_EXT_NAME(glProgramEnvParameter4dARB))
836 return GL_FALSE;
837 GLH_EXT_NAME(glProgramEnvParameter4dvARB) = (PFNGLPROGRAMENVPARAMETER4DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramEnvParameter4dvARB");
838 if (NULL == GLH_EXT_NAME(glProgramEnvParameter4dvARB))
839 return GL_FALSE;
840 GLH_EXT_NAME(glProgramEnvParameter4fARB) = (PFNGLPROGRAMENVPARAMETER4FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramEnvParameter4fARB");
841 if (NULL == GLH_EXT_NAME(glProgramEnvParameter4fARB))
842 return GL_FALSE;
843 GLH_EXT_NAME(glProgramEnvParameter4fvARB) = (PFNGLPROGRAMENVPARAMETER4FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramEnvParameter4fvARB");
844 if (NULL == GLH_EXT_NAME(glProgramEnvParameter4fvARB))
845 return GL_FALSE;
846 GLH_EXT_NAME(glProgramLocalParameter4dARB) = (PFNGLPROGRAMLOCALPARAMETER4DARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramLocalParameter4dARB");
847 if (NULL == GLH_EXT_NAME(glProgramLocalParameter4dARB))
848 return GL_FALSE;
849 GLH_EXT_NAME(glProgramLocalParameter4dvARB) = (PFNGLPROGRAMLOCALPARAMETER4DVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramLocalParameter4dvARB");
850 if (NULL == GLH_EXT_NAME(glProgramLocalParameter4dvARB))
851 return GL_FALSE;
852 GLH_EXT_NAME(glProgramLocalParameter4fARB) = (PFNGLPROGRAMLOCALPARAMETER4FARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramLocalParameter4fARB");
853 if (NULL == GLH_EXT_NAME(glProgramLocalParameter4fARB))
854 return GL_FALSE;
855 GLH_EXT_NAME(glProgramLocalParameter4fvARB) = (PFNGLPROGRAMLOCALPARAMETER4FVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramLocalParameter4fvARB");
856 if (NULL == GLH_EXT_NAME(glProgramLocalParameter4fvARB))
857 return GL_FALSE;
858 GLH_EXT_NAME(glGetProgramEnvParameterdvARB) = (PFNGLGETPROGRAMENVPARAMETERDVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramEnvParameterdvARB");
859 if (NULL == GLH_EXT_NAME(glGetProgramEnvParameterdvARB))
860 return GL_FALSE;
861 GLH_EXT_NAME(glGetProgramEnvParameterfvARB) = (PFNGLGETPROGRAMENVPARAMETERFVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramEnvParameterfvARB");
862 if (NULL == GLH_EXT_NAME(glGetProgramEnvParameterfvARB))
863 return GL_FALSE;
864 GLH_EXT_NAME(glGetProgramLocalParameterdvARB) = (PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramLocalParameterdvARB");
865 if (NULL == GLH_EXT_NAME(glGetProgramLocalParameterdvARB))
866 return GL_FALSE;
867 GLH_EXT_NAME(glGetProgramLocalParameterfvARB) = (PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramLocalParameterfvARB");
868 if (NULL == GLH_EXT_NAME(glGetProgramLocalParameterfvARB))
869 return GL_FALSE;
870 GLH_EXT_NAME(glGetProgramivARB) = (PFNGLGETPROGRAMIVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramivARB");
871 if (NULL == GLH_EXT_NAME(glGetProgramivARB))
872 return GL_FALSE;
873 GLH_EXT_NAME(glGetProgramStringARB) = (PFNGLGETPROGRAMSTRINGARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramStringARB");
874 if (NULL == GLH_EXT_NAME(glGetProgramStringARB))
875 return GL_FALSE;
876 GLH_EXT_NAME(glGetVertexAttribdvARB) = (PFNGLGETVERTEXATTRIBDVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribdvARB");
877 if (NULL == GLH_EXT_NAME(glGetVertexAttribdvARB))
878 return GL_FALSE;
879 GLH_EXT_NAME(glGetVertexAttribfvARB) = (PFNGLGETVERTEXATTRIBFVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribfvARB");
880 if (NULL == GLH_EXT_NAME(glGetVertexAttribfvARB))
881 return GL_FALSE;
882 GLH_EXT_NAME(glGetVertexAttribivARB) = (PFNGLGETVERTEXATTRIBIVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribivARB");
883 if (NULL == GLH_EXT_NAME(glGetVertexAttribivARB))
884 return GL_FALSE;
885 GLH_EXT_NAME(glGetVertexAttribPointervARB) = (PFNGLGETVERTEXATTRIBPOINTERVARBPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribPointervARB");
886 if (NULL == GLH_EXT_NAME(glGetVertexAttribPointervARB))
887 return GL_FALSE;
888 GLH_EXT_NAME(glIsProgramARB) = (PFNGLISPROGRAMARBPROC)GLH_EXT_GET_PROC_ADDRESS("glIsProgramARB");
889 if (NULL == GLH_EXT_NAME(glIsProgramARB))
890 return GL_FALSE;
891#endif
892
893#ifdef GL_EXT_abgr
894 } else if (0 == strcmp(extension, "GL_EXT_abgr")) {
895#endif
896
897#ifdef GL_EXT_bgra
898 } else if (0 == strcmp(extension, "GL_EXT_bgra")) {
899#endif
900
901#ifdef GL_EXT_blend_color
902 } else if (0 == strcmp(extension, "GL_EXT_blend_color")) {
903 GLH_EXT_NAME(glBlendColorEXT) = (PFNGLBLENDCOLOREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glBlendColorEXT");
904 if (NULL == GLH_EXT_NAME(glBlendColorEXT))
905 return FALSE;
906#endif
907
908#ifdef GL_EXT_blend_minmax
909 } else if (0 == strcmp(extension, "GL_EXT_blend_minmax")) {
910 GLH_EXT_NAME(glBlendEquationEXT) = (PFNGLBLENDEQUATIONEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glBlendEquationEXT");
911 if (NULL == GLH_EXT_NAME(glBlendEquationEXT))
912 return FALSE;
913#endif
914
915#ifdef GL_EXT_blend_subtract
916 } else if (0 == strcmp(extension, "GL_EXT_blend_subtract")) {
917#endif
918
919#ifdef GL_EXT_compiled_vertex_array
920 } else if (0 == strcmp(extension, "GL_EXT_compiled_vertex_array")) {
921 GLH_EXT_NAME(glLockArraysEXT) = (PFNGLLOCKARRAYSEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glLockArraysEXT");
922 if (NULL == GLH_EXT_NAME(glLockArraysEXT))
923 return FALSE;
924 GLH_EXT_NAME(glUnlockArraysEXT) = (PFNGLUNLOCKARRAYSEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glUnlockArraysEXT");
925 if (NULL == GLH_EXT_NAME(glUnlockArraysEXT))
926 return FALSE;
927#endif
928
929#ifdef GL_EXT_fog_coord
930 } else if (0 == strcmp(extension, "GL_EXT_fog_coord")) {
931 GLH_EXT_NAME(glFogCoorddEXT) = (PFNGLFOGCOORDDEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glFogCoorddEXT");
932 if (NULL == GLH_EXT_NAME(glFogCoorddEXT))
933 return FALSE;
934 GLH_EXT_NAME(glFogCoorddvEXT) = (PFNGLFOGCOORDDVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glFogCoorddvEXT");
935 if (NULL == GLH_EXT_NAME(glFogCoorddvEXT))
936 return FALSE;
937 GLH_EXT_NAME(glFogCoordfEXT) = (PFNGLFOGCOORDFEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glFogCoordfEXT");
938 if (NULL == GLH_EXT_NAME(glFogCoordfEXT))
939 return FALSE;
940 GLH_EXT_NAME(glFogCoordfvEXT) = (PFNGLFOGCOORDFVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glFogCoordfvEXT");
941 if (NULL == GLH_EXT_NAME(glFogCoordfvEXT))
942 return FALSE;
943 GLH_EXT_NAME(glFogCoordPointerEXT) = (PFNGLFOGCOORDPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glFogCoordPointerEXT");
944 if (NULL == GLH_EXT_NAME(glFogCoordPointerEXT))
945 return FALSE;
946#endif
947
948#ifdef GL_EXT_light_max_exponent
949 } else if (0 == strcmp(extension, "GL_EXT_light_max_exponent")) {
950#endif
951
952#ifdef GL_EXT_packed_pixels
953 } else if (0 == strcmp(extension, "GL_EXT_packed_pixels")) {
954#endif
955
956#ifdef GL_EXT_paletted_texture
957 } else if (0 == strcmp(extension, "GL_EXT_paletted_texture")) {
958 GLH_EXT_NAME(glColorSubTableEXT) = (PFNGLCOLORSUBTABLEEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glColorSubTableEXT");
959 if (NULL == GLH_EXT_NAME(glColorSubTableEXT))
960 return FALSE;
961 GLH_EXT_NAME(glColorTableEXT) = (PFNGLCOLORTABLEEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glColorTableEXT");
962 if (NULL == GLH_EXT_NAME(glColorTableEXT))
963 return FALSE;
964 GLH_EXT_NAME(glGetColorTableEXT) = (PFNGLGETCOLORTABLEEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glGetColorTableEXT");
965 if (NULL == GLH_EXT_NAME(glGetColorTableEXT))
966 return FALSE;
967 GLH_EXT_NAME(glGetColorTableParameterfvEXT) = (PFNGLGETCOLORTABLEPARAMETERFVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glGetColorTableParameterfvEXT");
968 if (NULL == GLH_EXT_NAME(glGetColorTableParameterfvEXT))
969 return FALSE;
970 GLH_EXT_NAME(glGetColorTableParameterivEXT) = (PFNGLGETCOLORTABLEPARAMETERIVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glGetColorTableParameterivEXT");
971 if (NULL == GLH_EXT_NAME(glGetColorTableParameterivEXT))
972 return FALSE;
973#endif
974
975#ifdef GL_EXT_point_parameters
976 } else if (0 == strcmp(extension, "GL_EXT_point_parameters")) {
977 GLH_EXT_NAME(glPointParameterfEXT) = (PFNGLPOINTPARAMETERFEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glPointParameterfEXT");
978 if (NULL == GLH_EXT_NAME(glPointParameterfEXT))
979 return FALSE;
980 GLH_EXT_NAME(glPointParameterfvEXT) = (PFNGLPOINTPARAMETERFVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glPointParameterfvEXT");
981 if (NULL == GLH_EXT_NAME(glPointParameterfvEXT))
982 return FALSE;
983#endif
984
985#ifdef GL_EXT_rescale_normal
986 } else if (0 == strcmp(extension, "GL_EXT_rescale_normal")) {
987#endif
988
989#ifdef GL_EXT_secondary_color
990 } else if (0 == strcmp(extension, "GL_EXT_secondary_color")) {
991 GLH_EXT_NAME(glSecondaryColor3bEXT) = (PFNGLSECONDARYCOLOR3BEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3bEXT");
992 if (NULL == GLH_EXT_NAME(glSecondaryColor3bEXT))
993 return FALSE;
994 GLH_EXT_NAME(glSecondaryColor3bvEXT) = (PFNGLSECONDARYCOLOR3BVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3bvEXT");
995 if (NULL == GLH_EXT_NAME(glSecondaryColor3bvEXT))
996 return FALSE;
997 GLH_EXT_NAME(glSecondaryColor3dEXT) = (PFNGLSECONDARYCOLOR3DEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3dEXT");
998 if (NULL == GLH_EXT_NAME(glSecondaryColor3dEXT))
999 return FALSE;
1000 GLH_EXT_NAME(glSecondaryColor3dvEXT) = (PFNGLSECONDARYCOLOR3DVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3dvEXT");
1001 if (NULL == GLH_EXT_NAME(glSecondaryColor3dvEXT))
1002 return FALSE;
1003 GLH_EXT_NAME(glSecondaryColor3fEXT) = (PFNGLSECONDARYCOLOR3FEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3fEXT");
1004 if (NULL == GLH_EXT_NAME(glSecondaryColor3fEXT))
1005 return FALSE;
1006 GLH_EXT_NAME(glSecondaryColor3fvEXT) = (PFNGLSECONDARYCOLOR3FVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3fvEXT");
1007 if (NULL == GLH_EXT_NAME(glSecondaryColor3fvEXT))
1008 return FALSE;
1009 GLH_EXT_NAME(glSecondaryColor3iEXT) = (PFNGLSECONDARYCOLOR3IEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3iEXT");
1010 if (NULL == GLH_EXT_NAME(glSecondaryColor3iEXT))
1011 return FALSE;
1012 GLH_EXT_NAME(glSecondaryColor3ivEXT) = (PFNGLSECONDARYCOLOR3IVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3ivEXT");
1013 if (NULL == GLH_EXT_NAME(glSecondaryColor3ivEXT))
1014 return FALSE;
1015 GLH_EXT_NAME(glSecondaryColor3sEXT) = (PFNGLSECONDARYCOLOR3SEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3sEXT");
1016 if (NULL == GLH_EXT_NAME(glSecondaryColor3sEXT))
1017 return FALSE;
1018 GLH_EXT_NAME(glSecondaryColor3svEXT) = (PFNGLSECONDARYCOLOR3SVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3svEXT");
1019 if (NULL == GLH_EXT_NAME(glSecondaryColor3svEXT))
1020 return FALSE;
1021 GLH_EXT_NAME(glSecondaryColor3ubEXT) = (PFNGLSECONDARYCOLOR3UBEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3ubEXT");
1022 if (NULL == GLH_EXT_NAME(glSecondaryColor3ubEXT))
1023 return FALSE;
1024 GLH_EXT_NAME(glSecondaryColor3ubvEXT) = (PFNGLSECONDARYCOLOR3UBVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3ubvEXT");
1025 if (NULL == GLH_EXT_NAME(glSecondaryColor3ubvEXT))
1026 return FALSE;
1027 GLH_EXT_NAME(glSecondaryColor3uiEXT) = (PFNGLSECONDARYCOLOR3UIEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3uiEXT");
1028 if (NULL == GLH_EXT_NAME(glSecondaryColor3uiEXT))
1029 return FALSE;
1030 GLH_EXT_NAME(glSecondaryColor3uivEXT) = (PFNGLSECONDARYCOLOR3UIVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3uivEXT");
1031 if (NULL == GLH_EXT_NAME(glSecondaryColor3uivEXT))
1032 return FALSE;
1033 GLH_EXT_NAME(glSecondaryColor3usEXT) = (PFNGLSECONDARYCOLOR3USEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3usEXT");
1034 if (NULL == GLH_EXT_NAME(glSecondaryColor3usEXT))
1035 return FALSE;
1036 GLH_EXT_NAME(glSecondaryColor3usvEXT) = (PFNGLSECONDARYCOLOR3USVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColor3usvEXT");
1037 if (NULL == GLH_EXT_NAME(glSecondaryColor3usvEXT))
1038 return FALSE;
1039 GLH_EXT_NAME(glSecondaryColorPointerEXT) = (PFNGLSECONDARYCOLORPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glSecondaryColorPointerEXT");
1040 if (NULL == GLH_EXT_NAME(glSecondaryColorPointerEXT))
1041 return FALSE;
1042#endif
1043
1044#ifdef GL_EXT_separate_specular_color
1045 } else if (0 == strcmp(extension, "GL_EXT_separate_specular_color")) {
1046#endif
1047
1048#ifdef GL_EXT_shared_texture_palette
1049 } else if (0 == strcmp(extension, "GL_EXT_shared_texture_palette")) {
1050#endif
1051
1052#ifdef GL_EXT_stencil_wrap
1053 } else if (0 == strcmp(extension, "GL_EXT_stencil_wrap")) {
1054#endif
1055
1056#ifdef GL_EXT_texture_compression_s3tc
1057 } else if (0 == strcmp(extension, "GL_EXT_texture_compression_s3tc")) {
1058#endif
1059
1060#ifdef GL_EXT_texture_cube_map
1061 } else if (0 == strcmp(extension, "GL_EXT_texture_cube_map")) {
1062#endif
1063
1064#ifdef GL_EXT_texture_edge_clamp
1065 } else if (0 == strcmp(extension, "GL_EXT_texture_edge_clamp")) {
1066#endif
1067
1068#ifdef GL_EXT_texture_env_add
1069 } else if (0 == strcmp(extension, "GL_EXT_texture_env_add")) {
1070#endif
1071
1072#ifdef GL_EXT_texture_env_combine
1073 } else if (0 == strcmp(extension, "GL_EXT_texture_env_combine")) {
1074#endif
1075
1076#ifdef GL_EXT_texture_filter_anisotropic
1077 } else if (0 == strcmp(extension, "GL_EXT_texture_filter_anisotropic")) {
1078#endif
1079
1080#ifdef GL_EXT_texture_lod_bias
1081 } else if (0 == strcmp(extension, "GL_EXT_texture_lod_bias")) {
1082#endif
1083
1084#ifdef GL_EXT_texture_object
1085 } else if (0 == strcmp(extension, "GL_EXT_texture_object")) {
1086 GLH_EXT_NAME(glAreTexturesResidentEXT) = (PFNGLARETEXTURESRESIDENTEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glAreTexturesResidentEXT");
1087 if (NULL == GLH_EXT_NAME(glAreTexturesResidentEXT))
1088 return FALSE;
1089 GLH_EXT_NAME(glBindTextureEXT) = (PFNGLBINDTEXTUREEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glBindTextureEXT");
1090 if (NULL == GLH_EXT_NAME(glBindTextureEXT))
1091 return FALSE;
1092 GLH_EXT_NAME(glDeleteTexturesEXT) = (PFNGLDELETETEXTURESEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glDeleteTexturesEXT");
1093 if (NULL == GLH_EXT_NAME(glDeleteTexturesEXT))
1094 return FALSE;
1095 GLH_EXT_NAME(glGenTexturesEXT) = (PFNGLGENTEXTURESEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glGenTexturesEXT");
1096 if (NULL == GLH_EXT_NAME(glGenTexturesEXT))
1097 return FALSE;
1098 GLH_EXT_NAME(glIsTextureEXT) = (PFNGLISTEXTUREEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glIsTextureEXT");
1099 if (NULL == GLH_EXT_NAME(glIsTextureEXT))
1100 return FALSE;
1101 GLH_EXT_NAME(glPrioritizeTexturesEXT) = (PFNGLPRIORITIZETEXTURESEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glPrioritizeTexturesEXT");
1102 if (NULL == GLH_EXT_NAME(glPrioritizeTexturesEXT))
1103 return FALSE;
1104#endif
1105
1106#ifdef GL_EXT_texture3D
1107 } else if (0 == strcmp(extension, "GL_EXT_texture3D")) {
1108 GLH_EXT_NAME(glTexImage3DEXT) = (PFNGLTEXIMAGE3DEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glTexImage3DEXT");
1109 if (NULL == GLH_EXT_NAME(glTexImage3DEXT))
1110 return FALSE;
1111#endif
1112
1113#ifdef GL_EXT_vertex_array
1114 } else if (0 == strcmp(extension, "GL_EXT_vertex_array")) {
1115 GLH_EXT_NAME(glArrayElementEXT) = (PFNGLARRAYELEMENTEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glArrayElementEXT");
1116 if (NULL == GLH_EXT_NAME(glArrayElementEXT))
1117 return FALSE;
1118 GLH_EXT_NAME(glColorPointerEXT) = (PFNGLCOLORPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glColorPointerEXT");
1119 if (NULL == GLH_EXT_NAME(glColorPointerEXT))
1120 return FALSE;
1121 GLH_EXT_NAME(glEdgeFlagPointerEXT) = (PFNGLEDGEFLAGPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glEdgeFlagPointerEXT");
1122 if (NULL == GLH_EXT_NAME(glEdgeFlagPointerEXT))
1123 return FALSE;
1124 GLH_EXT_NAME(glGetPointervEXT) = (PFNGLGETPOINTERVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glGetPointervEXT");
1125 if (NULL == GLH_EXT_NAME(glGetPointervEXT))
1126 return FALSE;
1127 GLH_EXT_NAME(glIndexPointerEXT) = (PFNGLINDEXPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glIndexPointerEXT");
1128 if (NULL == GLH_EXT_NAME(glIndexPointerEXT))
1129 return FALSE;
1130 GLH_EXT_NAME(glNormalPointerEXT) = (PFNGLNORMALPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glNormalPointerEXT");
1131 if (NULL == GLH_EXT_NAME(glNormalPointerEXT))
1132 return FALSE;
1133 GLH_EXT_NAME(glTexCoordPointerEXT) = (PFNGLTEXCOORDPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glTexCoordPointerEXT");
1134 if (NULL == GLH_EXT_NAME(glTexCoordPointerEXT))
1135 return FALSE;
1136 GLH_EXT_NAME(glVertexPointerEXT) = (PFNGLVERTEXPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexPointerEXT");
1137 if (NULL == GLH_EXT_NAME(glVertexPointerEXT))
1138 return FALSE;
1139 GLH_EXT_NAME(glDrawArraysEXT) = (PFNGLDRAWARRAYSEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glDrawArraysEXT");
1140 if (NULL == GLH_EXT_NAME(glDrawArraysEXT))
1141 return FALSE;
1142#endif
1143
1144#ifdef GL_EXT_vertex_weighting
1145 } else if (0 == strcmp(extension, "GL_EXT_vertex_weighting")) {
1146 GLH_EXT_NAME(glVertexWeightfEXT) = (PFNGLVERTEXWEIGHTFEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexWeightfEXT");
1147 if (NULL == GLH_EXT_NAME(glVertexWeightfEXT))
1148 return FALSE;
1149 GLH_EXT_NAME(glVertexWeightfvEXT) = (PFNGLVERTEXWEIGHTFVEXTPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexWeightfvEXT");
1150 if (NULL == GLH_EXT_NAME(glVertexWeightfvEXT))
1151 return FALSE;
1152 GLH_EXT_NAME(glVertexWeightPointerEXT) = (PFNGLVERTEXWEIGHTPOINTEREXTPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexWeightPointerEXT");
1153 if (NULL == GLH_EXT_NAME(glVertexWeightPointerEXT))
1154 return FALSE;
1155#endif
1156
1157#ifdef GL_NV_blend_square
1158 } else if (0 == strcmp(extension, "GL_NV_blend_square")) {
1159#endif
1160
1161#ifdef GL_NV_evaluators
1162 } else if (0 == strcmp(extension, "GL_NV_evaluators")) {
1163 GLH_EXT_NAME(glMapControlPointsNV) = (PFNGLMAPCONTROLPOINTSNVPROC)GLH_EXT_GET_PROC_ADDRESS("glMapControlPointsNV");
1164 if (NULL == GLH_EXT_NAME(glMapControlPointsNV))
1165 return FALSE;
1166 GLH_EXT_NAME(glMapParameterivNV) = (PFNGLMAPPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glMapParameterivNV");
1167 if (NULL == GLH_EXT_NAME(glMapParameterivNV))
1168 return FALSE;
1169 GLH_EXT_NAME(glMapParameterfvNV) = (PFNGLMAPPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glMapParameterfvNV");
1170 if (NULL == GLH_EXT_NAME(glMapParameterfvNV))
1171 return FALSE;
1172 GLH_EXT_NAME(glGetMapControlPointsNV) = (PFNGLGETMAPCONTROLPOINTSNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetMapControlPointsNV");
1173 if (NULL == GLH_EXT_NAME(glGetMapControlPointsNV))
1174 return FALSE;
1175 GLH_EXT_NAME(glGetMapParameterivNV) = (PFNGLGETMAPPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetMapParameterivNV");
1176 if (NULL == GLH_EXT_NAME(glGetMapParameterivNV))
1177 return FALSE;
1178 GLH_EXT_NAME(glGetMapParameterfvNV) = (PFNGLGETMAPPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetMapParameterfvNV");
1179 if (NULL == GLH_EXT_NAME(glGetMapParameterfvNV))
1180 return FALSE;
1181 GLH_EXT_NAME(glGetMapAttribParameterivNV) = (PFNGLGETMAPATTRIBPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetMapAttribParameterivNV");
1182 if (NULL == GLH_EXT_NAME(glGetMapAttribParameterivNV))
1183 return FALSE;
1184 GLH_EXT_NAME(glGetMapAttribParameterfvNV) = (PFNGLGETMAPATTRIBPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetMapAttribParameterfvNV");
1185 if (NULL == GLH_EXT_NAME(glGetMapAttribParameterfvNV))
1186 return FALSE;
1187 GLH_EXT_NAME(glEvalMapsNV) = (PFNGLEVALMAPSNVPROC)GLH_EXT_GET_PROC_ADDRESS("glEvalMapsNV");
1188 if (NULL == GLH_EXT_NAME(glEvalMapsNV))
1189 return FALSE;
1190#endif
1191
1192#ifdef GL_NV_fence
1193 } else if (0 == strcmp(extension, "GL_NV_fence")) {
1194 GLH_EXT_NAME(glGenFencesNV) = (PFNGLGENFENCESNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGenFencesNV");
1195 if (NULL == GLH_EXT_NAME(glGenFencesNV))
1196 return FALSE;
1197 GLH_EXT_NAME(glDeleteFencesNV) = (PFNGLDELETEFENCESNVPROC)GLH_EXT_GET_PROC_ADDRESS("glDeleteFencesNV");
1198 if (NULL == GLH_EXT_NAME(glDeleteFencesNV))
1199 return FALSE;
1200 GLH_EXT_NAME(glSetFenceNV) = (PFNGLSETFENCENVPROC)GLH_EXT_GET_PROC_ADDRESS("glSetFenceNV");
1201 if (NULL == GLH_EXT_NAME(glSetFenceNV))
1202 return FALSE;
1203 GLH_EXT_NAME(glTestFenceNV) = (PFNGLTESTFENCENVPROC)GLH_EXT_GET_PROC_ADDRESS("glTestFenceNV");
1204 if (NULL == GLH_EXT_NAME(glTestFenceNV))
1205 return FALSE;
1206 GLH_EXT_NAME(glFinishFenceNV) = (PFNGLFINISHFENCENVPROC)GLH_EXT_GET_PROC_ADDRESS("glFinishFenceNV");
1207 if (NULL == GLH_EXT_NAME(glFinishFenceNV))
1208 return FALSE;
1209 GLH_EXT_NAME(glIsFenceNV) = (PFNGLISFENCENVPROC)GLH_EXT_GET_PROC_ADDRESS("glIsFenceNV");
1210 if (NULL == GLH_EXT_NAME(glIsFenceNV))
1211 return FALSE;
1212 GLH_EXT_NAME(glGetFenceivNV) = (PFNGLGETFENCEIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetFenceivNV");
1213 if (NULL == GLH_EXT_NAME(glGetFenceivNV))
1214 return FALSE;
1215#endif
1216
1217#ifdef GL_NV_fog_distance
1218 } else if (0 == strcmp(extension, "GL_NV_fog_distance")) {
1219#endif
1220
1221#ifdef GL_NV_packed_depth_stencil
1222 } else if (0 == strcmp(extension, "GL_NV_packed_depth_stencil")) {
1223#endif
1224
1225#ifdef GL_NV_register_combiners
1226 } else if (0 == strcmp(extension, "GL_NV_register_combiners")) {
1227 GLH_EXT_NAME(glCombinerParameterfvNV) = (PFNGLCOMBINERPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerParameterfvNV");
1228 if (NULL == GLH_EXT_NAME(glCombinerParameterfvNV))
1229 return FALSE;
1230 GLH_EXT_NAME(glCombinerParameterfNV) = (PFNGLCOMBINERPARAMETERFNVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerParameterfNV");
1231 if (NULL == GLH_EXT_NAME(glCombinerParameterfNV))
1232 return FALSE;
1233 GLH_EXT_NAME(glCombinerParameterivNV) = (PFNGLCOMBINERPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerParameterivNV");
1234 if (NULL == GLH_EXT_NAME(glCombinerParameterivNV))
1235 return FALSE;
1236 GLH_EXT_NAME(glCombinerParameteriNV) = (PFNGLCOMBINERPARAMETERINVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerParameteriNV");
1237 if (NULL == GLH_EXT_NAME(glCombinerParameteriNV))
1238 return FALSE;
1239 GLH_EXT_NAME(glCombinerInputNV) = (PFNGLCOMBINERINPUTNVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerInputNV");
1240 if (NULL == GLH_EXT_NAME(glCombinerInputNV))
1241 return FALSE;
1242 GLH_EXT_NAME(glCombinerOutputNV) = (PFNGLCOMBINEROUTPUTNVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerOutputNV");
1243 if (NULL == GLH_EXT_NAME(glCombinerOutputNV))
1244 return FALSE;
1245 GLH_EXT_NAME(glFinalCombinerInputNV) = (PFNGLFINALCOMBINERINPUTNVPROC)GLH_EXT_GET_PROC_ADDRESS("glFinalCombinerInputNV");
1246 if (NULL == GLH_EXT_NAME(glFinalCombinerInputNV))
1247 return FALSE;
1248 GLH_EXT_NAME(glGetCombinerInputParameterfvNV) = (PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetCombinerInputParameterfvNV");
1249 if (NULL == GLH_EXT_NAME(glGetCombinerInputParameterfvNV))
1250 return FALSE;
1251 GLH_EXT_NAME(glGetCombinerInputParameterivNV) = (PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetCombinerInputParameterivNV");
1252 if (NULL == GLH_EXT_NAME(glGetCombinerInputParameterivNV))
1253 return FALSE;
1254 GLH_EXT_NAME(glGetCombinerOutputParameterfvNV) = (PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetCombinerOutputParameterfvNV");
1255 if (NULL == GLH_EXT_NAME(glGetCombinerOutputParameterfvNV))
1256 return FALSE;
1257 GLH_EXT_NAME(glGetCombinerOutputParameterivNV) = (PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetCombinerOutputParameterivNV");
1258 if (NULL == GLH_EXT_NAME(glGetCombinerOutputParameterivNV))
1259 return FALSE;
1260 GLH_EXT_NAME(glGetFinalCombinerInputParameterfvNV) = (PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetFinalCombinerInputParameterfvNV");
1261 if (NULL == GLH_EXT_NAME(glGetFinalCombinerInputParameterfvNV))
1262 return FALSE;
1263 GLH_EXT_NAME(glGetFinalCombinerInputParameterivNV) = (PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetFinalCombinerInputParameterivNV");
1264 if (NULL == GLH_EXT_NAME(glGetFinalCombinerInputParameterivNV))
1265 return FALSE;
1266#endif
1267
1268#ifdef GL_NV_register_combiners2
1269 } else if (0 == strcmp(extension, "GL_NV_register_combiners2")) {
1270 GLH_EXT_NAME(glCombinerStageParameterfvNV) = (PFNGLCOMBINERSTAGEPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glCombinerStageParameterfvNV");
1271 if (NULL == GLH_EXT_NAME(glCombinerStageParameterfvNV))
1272 return FALSE;
1273 GLH_EXT_NAME(glGetCombinerStageParameterfvNV) = (PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetCombinerStageParameterfvNV");
1274 if (NULL == GLH_EXT_NAME(glGetCombinerStageParameterfvNV))
1275 return FALSE;
1276#endif
1277
1278#ifdef GL_NV_texgen_reflection
1279 } else if (0 == strcmp(extension, "GL_NV_texgen_reflection")) {
1280#endif
1281
1282#ifdef GL_NV_texture_env_combine4
1283 } else if (0 == strcmp(extension, "GL_NV_texture_env_combine4")) {
1284#endif
1285
1286#ifdef GL_NV_texture_rectangle
1287 } else if (0 == strcmp(extension, "GL_NV_texture_rectangle")) {
1288#endif
1289
1290#ifdef GL_NV_texture_shader
1291 } else if (0 == strcmp(extension, "GL_NV_texture_shader")) {
1292#endif
1293
1294#ifdef GL_NV_vertex_array_range
1295 } else if (0 == strcmp(extension, "GL_NV_vertex_array_range")) {
1296 GLH_EXT_NAME(glFlushVertexArrayRangeNV) = (PFNGLFLUSHVERTEXARRAYRANGENVPROC)GLH_EXT_GET_PROC_ADDRESS("glFlushVertexArrayRangeNV");
1297 if (NULL == GLH_EXT_NAME(glFlushVertexArrayRangeNV))
1298 return FALSE;
1299 GLH_EXT_NAME(glVertexArrayRangeNV) = (PFNGLVERTEXARRAYRANGENVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexArrayRangeNV");
1300 if (NULL == GLH_EXT_NAME(glVertexArrayRangeNV))
1301 return FALSE;
1302# ifdef _WIN32
1303 GLH_EXT_NAME(wglAllocateMemoryNV) = (PFNWGLALLOCATEMEMORYNVPROC)GLH_EXT_GET_PROC_ADDRESS("wglAllocateMemoryNV");
1304 if (NULL == GLH_EXT_NAME(wglAllocateMemoryNV))
1305 return FALSE;
1306# endif
1307# ifdef GLX_VERSION_1_3
1308 GLH_EXT_NAME(glXAllocateMemoryNV) = (PFNGLXALLOCATEMEMORYNVPROC)GLH_EXT_GET_PROC_ADDRESS("glXAllocateMemoryNV");
1309 if (NULL == GLH_EXT_NAME(glXAllocateMemoryNV))
1310 return FALSE;
1311# endif
1312# ifdef _WIN32
1313 GLH_EXT_NAME(wglFreeMemoryNV) = (PFNWGLFREEMEMORYNVPROC)GLH_EXT_GET_PROC_ADDRESS("wglFreeMemoryNV");
1314 if (NULL == GLH_EXT_NAME(wglFreeMemoryNV))
1315 return FALSE;
1316# endif
1317# ifdef GLX_VERSION_1_3
1318 GLH_EXT_NAME(glXFreeMemoryNV) = (PFNGLXFREEMEMORYNVPROC)GLH_EXT_GET_PROC_ADDRESS("glXFreeMemoryNV");
1319 if (NULL == GLH_EXT_NAME(glXFreeMemoryNV))
1320 return FALSE;
1321# endif
1322#endif
1323
1324#ifdef GL_NV_vertex_program
1325 } else if (0 == strcmp(extension, "GL_NV_vertex_program")) {
1326 GLH_EXT_NAME(glAreProgramsResidentNV) = (PFNGLAREPROGRAMSRESIDENTNVPROC)GLH_EXT_GET_PROC_ADDRESS("glAreProgramsResidentNV");
1327 if (NULL == GLH_EXT_NAME(glAreProgramsResidentNV))
1328 return FALSE;
1329 GLH_EXT_NAME(glBindProgramNV) = (PFNGLBINDPROGRAMNVPROC)GLH_EXT_GET_PROC_ADDRESS("glBindProgramNV");
1330 if (NULL == GLH_EXT_NAME(glBindProgramNV))
1331 return FALSE;
1332 GLH_EXT_NAME(glDeleteProgramsNV) = (PFNGLDELETEPROGRAMSNVPROC)GLH_EXT_GET_PROC_ADDRESS("glDeleteProgramsNV");
1333 if (NULL == GLH_EXT_NAME(glDeleteProgramsNV))
1334 return FALSE;
1335 GLH_EXT_NAME(glExecuteProgramNV) = (PFNGLEXECUTEPROGRAMNVPROC)GLH_EXT_GET_PROC_ADDRESS("glExecuteProgramNV");
1336 if (NULL == GLH_EXT_NAME(glExecuteProgramNV))
1337 return FALSE;
1338 GLH_EXT_NAME(glGenProgramsNV) = (PFNGLGENPROGRAMSNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGenProgramsNV");
1339 if (NULL == GLH_EXT_NAME(glGenProgramsNV))
1340 return FALSE;
1341 GLH_EXT_NAME(glGetProgramParameterdvNV) = (PFNGLGETPROGRAMPARAMETERDVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramParameterdvNV");
1342 if (NULL == GLH_EXT_NAME(glGetProgramParameterdvNV))
1343 return FALSE;
1344 GLH_EXT_NAME(glGetProgramParameterfvNV) = (PFNGLGETPROGRAMPARAMETERFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramParameterfvNV");
1345 if (NULL == GLH_EXT_NAME(glGetProgramParameterfvNV))
1346 return FALSE;
1347 GLH_EXT_NAME(glGetProgramivNV) = (PFNGLGETPROGRAMIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramivNV");
1348 if (NULL == GLH_EXT_NAME(glGetProgramivNV))
1349 return FALSE;
1350 GLH_EXT_NAME(glGetProgramStringNV) = (PFNGLGETPROGRAMSTRINGNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetProgramStringNV");
1351 if (NULL == GLH_EXT_NAME(glGetProgramStringNV))
1352 return FALSE;
1353 GLH_EXT_NAME(glGetTrackMatrixivNV) = (PFNGLGETTRACKMATRIXIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetTrackMatrixivNV");
1354 if (NULL == GLH_EXT_NAME(glGetTrackMatrixivNV))
1355 return FALSE;
1356 GLH_EXT_NAME(glGetVertexAttribdvNV) = (PFNGLGETVERTEXATTRIBDVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribdvNV");
1357 if (NULL == GLH_EXT_NAME(glGetVertexAttribdvNV))
1358 return FALSE;
1359 GLH_EXT_NAME(glGetVertexAttribfvNV) = (PFNGLGETVERTEXATTRIBFVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribfvNV");
1360 if (NULL == GLH_EXT_NAME(glGetVertexAttribfvNV))
1361 return FALSE;
1362 GLH_EXT_NAME(glGetVertexAttribivNV) = (PFNGLGETVERTEXATTRIBIVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribivNV");
1363 if (NULL == GLH_EXT_NAME(glGetVertexAttribivNV))
1364 return FALSE;
1365 GLH_EXT_NAME(glGetVertexAttribPointervNV) = (PFNGLGETVERTEXATTRIBPOINTERVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetVertexAttribPointervNV");
1366 if (NULL == GLH_EXT_NAME(glGetVertexAttribPointervNV))
1367 return FALSE;
1368 GLH_EXT_NAME(glIsProgramNV) = (PFNGLISPROGRAMNVPROC)GLH_EXT_GET_PROC_ADDRESS("glIsProgramNV");
1369 if (NULL == GLH_EXT_NAME(glIsProgramNV))
1370 return FALSE;
1371 GLH_EXT_NAME(glLoadProgramNV) = (PFNGLLOADPROGRAMNVPROC)GLH_EXT_GET_PROC_ADDRESS("glLoadProgramNV");
1372 if (NULL == GLH_EXT_NAME(glLoadProgramNV))
1373 return FALSE;
1374 GLH_EXT_NAME(glProgramParameter4dNV) = (PFNGLPROGRAMPARAMETER4DNVPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramParameter4dNV");
1375 if (NULL == GLH_EXT_NAME(glProgramParameter4dNV))
1376 return FALSE;
1377 GLH_EXT_NAME(glProgramParameter4dvNV) = (PFNGLPROGRAMPARAMETER4DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramParameter4dvNV");
1378 if (NULL == GLH_EXT_NAME(glProgramParameter4dvNV))
1379 return FALSE;
1380 GLH_EXT_NAME(glProgramParameter4fNV) = (PFNGLPROGRAMPARAMETER4FNVPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramParameter4fNV");
1381 if (NULL == GLH_EXT_NAME(glProgramParameter4fNV))
1382 return FALSE;
1383 GLH_EXT_NAME(glProgramParameter4fvNV) = (PFNGLPROGRAMPARAMETER4FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramParameter4fvNV");
1384 if (NULL == GLH_EXT_NAME(glProgramParameter4fvNV))
1385 return FALSE;
1386 GLH_EXT_NAME(glProgramParameters4dvNV) = (PFNGLPROGRAMPARAMETERS4DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramParameters4dvNV");
1387 if (NULL == GLH_EXT_NAME(glProgramParameters4dvNV))
1388 return FALSE;
1389 GLH_EXT_NAME(glProgramParameters4fvNV) = (PFNGLPROGRAMPARAMETERS4FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glProgramParameters4fvNV");
1390 if (NULL == GLH_EXT_NAME(glProgramParameters4fvNV))
1391 return FALSE;
1392 GLH_EXT_NAME(glRequestResidentProgramsNV) = (PFNGLREQUESTRESIDENTPROGRAMSNVPROC)GLH_EXT_GET_PROC_ADDRESS("glRequestResidentProgramsNV");
1393 if (NULL == GLH_EXT_NAME(glRequestResidentProgramsNV))
1394 return FALSE;
1395 GLH_EXT_NAME(glTrackMatrixNV) = (PFNGLTRACKMATRIXNVPROC)GLH_EXT_GET_PROC_ADDRESS("glTrackMatrixNV");
1396 if (NULL == GLH_EXT_NAME(glTrackMatrixNV))
1397 return FALSE;
1398 GLH_EXT_NAME(glVertexAttribPointerNV) = (PFNGLVERTEXATTRIBPOINTERNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribPointerNV");
1399 if (NULL == GLH_EXT_NAME(glVertexAttribPointerNV))
1400 return FALSE;
1401 GLH_EXT_NAME(glVertexAttrib1dNV) = (PFNGLVERTEXATTRIB1DNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1dNV");
1402 if (NULL == GLH_EXT_NAME(glVertexAttrib1dNV))
1403 return FALSE;
1404 GLH_EXT_NAME(glVertexAttrib1dvNV) = (PFNGLVERTEXATTRIB1DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1dvNV");
1405 if (NULL == GLH_EXT_NAME(glVertexAttrib1dvNV))
1406 return FALSE;
1407 GLH_EXT_NAME(glVertexAttrib1fNV) = (PFNGLVERTEXATTRIB1FNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1fNV");
1408 if (NULL == GLH_EXT_NAME(glVertexAttrib1fNV))
1409 return FALSE;
1410 GLH_EXT_NAME(glVertexAttrib1fvNV) = (PFNGLVERTEXATTRIB1FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1fvNV");
1411 if (NULL == GLH_EXT_NAME(glVertexAttrib1fvNV))
1412 return FALSE;
1413 GLH_EXT_NAME(glVertexAttrib1sNV) = (PFNGLVERTEXATTRIB1SNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1sNV");
1414 if (NULL == GLH_EXT_NAME(glVertexAttrib1sNV))
1415 return FALSE;
1416 GLH_EXT_NAME(glVertexAttrib1svNV) = (PFNGLVERTEXATTRIB1SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib1svNV");
1417 if (NULL == GLH_EXT_NAME(glVertexAttrib1svNV))
1418 return FALSE;
1419 GLH_EXT_NAME(glVertexAttrib2dNV) = (PFNGLVERTEXATTRIB2DNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2dNV");
1420 if (NULL == GLH_EXT_NAME(glVertexAttrib2dNV))
1421 return FALSE;
1422 GLH_EXT_NAME(glVertexAttrib2dvNV) = (PFNGLVERTEXATTRIB2DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2dvNV");
1423 if (NULL == GLH_EXT_NAME(glVertexAttrib2dvNV))
1424 return FALSE;
1425 GLH_EXT_NAME(glVertexAttrib2fNV) = (PFNGLVERTEXATTRIB2FNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2fNV");
1426 if (NULL == GLH_EXT_NAME(glVertexAttrib2fNV))
1427 return FALSE;
1428 GLH_EXT_NAME(glVertexAttrib2fvNV) = (PFNGLVERTEXATTRIB2FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2fvNV");
1429 if (NULL == GLH_EXT_NAME(glVertexAttrib2fvNV))
1430 return FALSE;
1431 GLH_EXT_NAME(glVertexAttrib2sNV) = (PFNGLVERTEXATTRIB2SNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2sNV");
1432 if (NULL == GLH_EXT_NAME(glVertexAttrib2sNV))
1433 return FALSE;
1434 GLH_EXT_NAME(glVertexAttrib2svNV) = (PFNGLVERTEXATTRIB2SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib2svNV");
1435 if (NULL == GLH_EXT_NAME(glVertexAttrib2svNV))
1436 return FALSE;
1437 GLH_EXT_NAME(glVertexAttrib3dNV) = (PFNGLVERTEXATTRIB3DNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3dNV");
1438 if (NULL == GLH_EXT_NAME(glVertexAttrib3dNV))
1439 return FALSE;
1440 GLH_EXT_NAME(glVertexAttrib3dvNV) = (PFNGLVERTEXATTRIB3DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3dvNV");
1441 if (NULL == GLH_EXT_NAME(glVertexAttrib3dvNV))
1442 return FALSE;
1443 GLH_EXT_NAME(glVertexAttrib3fNV) = (PFNGLVERTEXATTRIB3FNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3fNV");
1444 if (NULL == GLH_EXT_NAME(glVertexAttrib3fNV))
1445 return FALSE;
1446 GLH_EXT_NAME(glVertexAttrib3fvNV) = (PFNGLVERTEXATTRIB3FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3fvNV");
1447 if (NULL == GLH_EXT_NAME(glVertexAttrib3fvNV))
1448 return FALSE;
1449 GLH_EXT_NAME(glVertexAttrib3sNV) = (PFNGLVERTEXATTRIB3SNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3sNV");
1450 if (NULL == GLH_EXT_NAME(glVertexAttrib3sNV))
1451 return FALSE;
1452 GLH_EXT_NAME(glVertexAttrib3svNV) = (PFNGLVERTEXATTRIB3SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib3svNV");
1453 if (NULL == GLH_EXT_NAME(glVertexAttrib3svNV))
1454 return FALSE;
1455 GLH_EXT_NAME(glVertexAttrib4dNV) = (PFNGLVERTEXATTRIB4DNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4dNV");
1456 if (NULL == GLH_EXT_NAME(glVertexAttrib4dNV))
1457 return FALSE;
1458 GLH_EXT_NAME(glVertexAttrib4dvNV) = (PFNGLVERTEXATTRIB4DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4dvNV");
1459 if (NULL == GLH_EXT_NAME(glVertexAttrib4dvNV))
1460 return FALSE;
1461 GLH_EXT_NAME(glVertexAttrib4fNV) = (PFNGLVERTEXATTRIB4FNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4fNV");
1462 if (NULL == GLH_EXT_NAME(glVertexAttrib4fNV))
1463 return FALSE;
1464 GLH_EXT_NAME(glVertexAttrib4fvNV) = (PFNGLVERTEXATTRIB4FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4fvNV");
1465 if (NULL == GLH_EXT_NAME(glVertexAttrib4fvNV))
1466 return FALSE;
1467 GLH_EXT_NAME(glVertexAttrib4sNV) = (PFNGLVERTEXATTRIB4SNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4sNV");
1468 if (NULL == GLH_EXT_NAME(glVertexAttrib4sNV))
1469 return FALSE;
1470 GLH_EXT_NAME(glVertexAttrib4svNV) = (PFNGLVERTEXATTRIB4SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4svNV");
1471 if (NULL == GLH_EXT_NAME(glVertexAttrib4svNV))
1472 return FALSE;
1473 GLH_EXT_NAME(glVertexAttrib4ubvNV) = (PFNGLVERTEXATTRIB4UBVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttrib4ubvNV");
1474 if (NULL == GLH_EXT_NAME(glVertexAttrib4ubvNV))
1475 return FALSE;
1476 GLH_EXT_NAME(glVertexAttribs1dvNV) = (PFNGLVERTEXATTRIBS1DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs1dvNV");
1477 if (NULL == GLH_EXT_NAME(glVertexAttribs1dvNV))
1478 return FALSE;
1479 GLH_EXT_NAME(glVertexAttribs1fvNV) = (PFNGLVERTEXATTRIBS1FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs1fvNV");
1480 if (NULL == GLH_EXT_NAME(glVertexAttribs1fvNV))
1481 return FALSE;
1482 GLH_EXT_NAME(glVertexAttribs1svNV) = (PFNGLVERTEXATTRIBS1SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs1svNV");
1483 if (NULL == GLH_EXT_NAME(glVertexAttribs1svNV))
1484 return FALSE;
1485 GLH_EXT_NAME(glVertexAttribs2dvNV) = (PFNGLVERTEXATTRIBS2DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs2dvNV");
1486 if (NULL == GLH_EXT_NAME(glVertexAttribs2dvNV))
1487 return FALSE;
1488 GLH_EXT_NAME(glVertexAttribs2fvNV) = (PFNGLVERTEXATTRIBS2FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs2fvNV");
1489 if (NULL == GLH_EXT_NAME(glVertexAttribs2fvNV))
1490 return FALSE;
1491 GLH_EXT_NAME(glVertexAttribs2svNV) = (PFNGLVERTEXATTRIBS2SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs2svNV");
1492 if (NULL == GLH_EXT_NAME(glVertexAttribs2svNV))
1493 return FALSE;
1494 GLH_EXT_NAME(glVertexAttribs3dvNV) = (PFNGLVERTEXATTRIBS3DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs3dvNV");
1495 if (NULL == GLH_EXT_NAME(glVertexAttribs3dvNV))
1496 return FALSE;
1497 GLH_EXT_NAME(glVertexAttribs3fvNV) = (PFNGLVERTEXATTRIBS3FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs3fvNV");
1498 if (NULL == GLH_EXT_NAME(glVertexAttribs3fvNV))
1499 return FALSE;
1500 GLH_EXT_NAME(glVertexAttribs3svNV) = (PFNGLVERTEXATTRIBS3SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs3svNV");
1501 if (NULL == GLH_EXT_NAME(glVertexAttribs3svNV))
1502 return FALSE;
1503 GLH_EXT_NAME(glVertexAttribs4dvNV) = (PFNGLVERTEXATTRIBS4DVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs4dvNV");
1504 if (NULL == GLH_EXT_NAME(glVertexAttribs4dvNV))
1505 return FALSE;
1506 GLH_EXT_NAME(glVertexAttribs4fvNV) = (PFNGLVERTEXATTRIBS4FVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs4fvNV");
1507 if (NULL == GLH_EXT_NAME(glVertexAttribs4fvNV))
1508 return FALSE;
1509 GLH_EXT_NAME(glVertexAttribs4svNV) = (PFNGLVERTEXATTRIBS4SVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs4svNV");
1510 if (NULL == GLH_EXT_NAME(glVertexAttribs4svNV))
1511 return FALSE;
1512 GLH_EXT_NAME(glVertexAttribs4ubvNV) = (PFNGLVERTEXATTRIBS4UBVNVPROC)GLH_EXT_GET_PROC_ADDRESS("glVertexAttribs4ubvNV");
1513 if (NULL == GLH_EXT_NAME(glVertexAttribs4ubvNV))
1514 return FALSE;
1515#endif
1516
1517#ifdef GL_SGIS_generate_mipmap
1518 } else if (0 == strcmp(extension, "GL_SGIS_generate_mipmap")) {
1519#endif
1520
1521#ifdef GL_SGIS_texture_lod
1522 } else if (0 == strcmp(extension, "GL_SGIS_texture_lod")) {
1523#endif
1524
1525#ifdef GL_SGIX_depth_texture
1526 } else if (0 == strcmp(extension, "GL_SGIX_depth_texture")) {
1527#endif
1528
1529#ifdef GL_SGIX_shadow
1530 } else if (0 == strcmp(extension, "GL_SGIX_shadow")) {
1531#endif
1532
1533#ifdef GL_VERSION_1_2
1534 } else if (0 == strcmp(extension, "GL_VERSION_1_2")) {
1535 GLH_CORE_1_2_NAME(glBlendColor) = (PFNGLBLENDCOLORPROC)GLH_EXT_GET_PROC_ADDRESS("glBlendColor");
1536 if (NULL == GLH_CORE_1_2_NAME(glBlendColor))
1537 return FALSE;
1538 GLH_CORE_1_2_NAME(glBlendEquation) = (PFNGLBLENDEQUATIONPROC)GLH_EXT_GET_PROC_ADDRESS("glBlendEquation");
1539 if (NULL == GLH_CORE_1_2_NAME(glBlendEquation))
1540 return FALSE;
1541 GLH_CORE_1_2_NAME(glDrawRangeElements) = (PFNGLDRAWRANGEELEMENTSPROC)GLH_EXT_GET_PROC_ADDRESS("glDrawRangeElements");
1542 if (NULL == GLH_CORE_1_2_NAME(glDrawRangeElements))
1543 return FALSE;
1544 GLH_CORE_1_2_NAME(glColorTable) = (PFNGLCOLORTABLEPROC)GLH_EXT_GET_PROC_ADDRESS("glColorTable");
1545 if (NULL == GLH_CORE_1_2_NAME(glColorTable))
1546 return FALSE;
1547 GLH_CORE_1_2_NAME(glColorTableParameterfv) = (PFNGLCOLORTABLEPARAMETERFVPROC)GLH_EXT_GET_PROC_ADDRESS("glColorTableParameterfv");
1548 if (NULL == GLH_CORE_1_2_NAME(glColorTableParameterfv))
1549 return FALSE;
1550 GLH_CORE_1_2_NAME(glColorTableParameteriv) = (PFNGLCOLORTABLEPARAMETERIVPROC)GLH_EXT_GET_PROC_ADDRESS("glColorTableParameteriv");
1551 if (NULL == GLH_CORE_1_2_NAME(glColorTableParameteriv))
1552 return FALSE;
1553 GLH_CORE_1_2_NAME(glCopyColorTable) = (PFNGLCOPYCOLORTABLEPROC)GLH_EXT_GET_PROC_ADDRESS("glCopyColorTable");
1554 if (NULL == GLH_CORE_1_2_NAME(glCopyColorTable))
1555 return FALSE;
1556 GLH_CORE_1_2_NAME(glGetColorTable) = (PFNGLGETCOLORTABLEPROC)GLH_EXT_GET_PROC_ADDRESS("glGetColorTable");
1557 if (NULL == GLH_CORE_1_2_NAME(glGetColorTable))
1558 return FALSE;
1559 GLH_CORE_1_2_NAME(glGetColorTableParameterfv) = (PFNGLGETCOLORTABLEPARAMETERFVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetColorTableParameterfv");
1560 if (NULL == GLH_CORE_1_2_NAME(glGetColorTableParameterfv))
1561 return FALSE;
1562 GLH_CORE_1_2_NAME(glGetColorTableParameteriv) = (PFNGLGETCOLORTABLEPARAMETERIVPROC)GLH_EXT_GET_PROC_ADDRESS("glGetColorTableParameteriv");
1563 if (NULL == GLH_CORE_1_2_NAME(glGetColorTableParameteriv))
1564 return FALSE;
1565 GLH_CORE_1_2_NAME(glTexImage3D) = (PFNGLTEXIMAGE3DPROC)GLH_EXT_GET_PROC_ADDRESS("glTexImage3D");
1566 if (NULL == GLH_CORE_1_2_NAME(glTexImage3D))
1567 return FALSE;
1568 GLH_CORE_1_2_NAME(glTexSubImage3D) = (PFNGLTEXSUBIMAGE3DPROC)GLH_EXT_GET_PROC_ADDRESS("glTexSubImage3D");
1569 if (NULL == GLH_CORE_1_2_NAME(glTexSubImage3D))
1570 return FALSE;
1571 GLH_CORE_1_2_NAME(glCopyTexSubImage3D) = (PFNGLCOPYTEXSUBIMAGE3DPROC)GLH_EXT_GET_PROC_ADDRESS("glCopyTexSubImage3D");
1572 if (NULL == GLH_CORE_1_2_NAME(glCopyTexSubImage3D))
1573 return FALSE;
1574#endif
1575
1576#ifdef GL_WIN_swap_hint
1577 } else if (0 == strcmp(extension, "GL_WIN_swap_hint")) {
1578 GLH_EXT_NAME(glAddSwapHintRectWIN) = (PFNGLADDSWAPHINTRECTWINPROC)GLH_EXT_GET_PROC_ADDRESS("glAddSwapHintRectWIN");
1579 if (NULL == GLH_EXT_NAME(glAddSwapHintRectWIN))
1580 return FALSE;
1581#endif
1582
1583#ifdef WGL_ARB_pbuffer
1584 } else if (0 == strcmp(extension, "WGL_ARB_pbuffer")) {
1585# ifdef _WIN32
1586 GLH_EXT_NAME(wglCreatePbufferARB) = (PFNWGLCREATEPBUFFERARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglCreatePbufferARB");
1587 if (NULL == GLH_EXT_NAME(wglCreatePbufferARB))
1588 return FALSE;
1589# endif
1590# ifdef _WIN32
1591 GLH_EXT_NAME(wglGetPbufferDCARB) = (PFNWGLGETPBUFFERDCARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglGetPbufferDCARB");
1592 if (NULL == GLH_EXT_NAME(wglGetPbufferDCARB))
1593 return FALSE;
1594# endif
1595# ifdef _WIN32
1596 GLH_EXT_NAME(wglReleasePbufferDCARB) = (PFNWGLRELEASEPBUFFERDCARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglReleasePbufferDCARB");
1597 if (NULL == GLH_EXT_NAME(wglReleasePbufferDCARB))
1598 return FALSE;
1599# endif
1600# ifdef _WIN32
1601 GLH_EXT_NAME(wglDestroyPbufferARB) = (PFNWGLDESTROYPBUFFERARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglDestroyPbufferARB");
1602 if (NULL == GLH_EXT_NAME(wglDestroyPbufferARB))
1603 return FALSE;
1604# endif
1605# ifdef _WIN32
1606 GLH_EXT_NAME(wglQueryPbufferARB) = (PFNWGLQUERYPBUFFERARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglQueryPbufferARB");
1607 if (NULL == GLH_EXT_NAME(wglQueryPbufferARB))
1608 return FALSE;
1609# endif
1610#endif
1611
1612#ifdef WGL_ARB_render_texture
1613# ifdef _WIN32
1614 GLH_EXT_NAME(wglBindTexImageARB) = (PFNWGLBINDTEXIMAGEARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglBindTexImageARB");
1615 if (NULL == GLH_EXT_NAME(wglBindTexImageARB))
1616 return FALSE;
1617# endif
1618# ifdef _WIN32
1619 GLH_EXT_NAME(wglReleaseTexImageARB) = (PFNWGLRELEASETEXIMAGEARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglReleaseTexImageARB");
1620 if (NULL == GLH_EXT_NAME(wglReleaseTexImageARB))
1621 return FALSE;
1622# endif
1623# ifdef _WIN32
1624 GLH_EXT_NAME(wglSetPbufferAttribARB) = (PFNWGLSETPBUFFERATTRIBARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglSetPbufferAttribARB");
1625 if (NULL == GLH_EXT_NAME(wglSetPbufferAttribARB))
1626 return FALSE;
1627# endif
1628#endif
1629
1630#ifdef WGL_ARB_pixel_format
1631 } else if (0 == strcmp(extension, "WGL_ARB_pixel_format")) {
1632# ifdef _WIN32
1633 GLH_EXT_NAME(wglGetPixelFormatAttribivARB) = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglGetPixelFormatAttribivARB");
1634 if (NULL == GLH_EXT_NAME(wglGetPixelFormatAttribivARB))
1635 return FALSE;
1636# endif
1637# ifdef _WIN32
1638 GLH_EXT_NAME(wglGetPixelFormatAttribfvARB) = (PFNWGLGETPIXELFORMATATTRIBFVARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglGetPixelFormatAttribfvARB");
1639 if (NULL == GLH_EXT_NAME(wglGetPixelFormatAttribfvARB))
1640 return FALSE;
1641# endif
1642# ifdef _WIN32
1643 GLH_EXT_NAME(wglChoosePixelFormatARB) = (PFNWGLCHOOSEPIXELFORMATARBPROC)GLH_EXT_GET_PROC_ADDRESS("wglChoosePixelFormatARB");
1644 if (NULL == GLH_EXT_NAME(wglChoosePixelFormatARB))
1645 return FALSE;
1646# endif
1647#endif
1648
1649 } else {
1650 return FALSE;
1651 }
1652 return TRUE;
1653}
1654#endif
1655
1656#else // defined(__APPLE__)
1657
1658#ifdef GLH_EXT_SINGLE_FILE
1659
1660int glh_init_extension(const char* extension)
1661{
1662 // MBW -- XXX -- Should this check for extension availability?
1663 return TRUE;
1664}
1665#endif // GLH_EXT_SINGLE_FILE
1666
1667#endif // defined(__APPLE__)
1668
1669#undef GLH_EXT_SINGLE_FILE
1670
1671#endif /* GLH_GENEXT_H */