🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18897 lines
946 KiB

  1. /*
  2. ** The OpenGL Extension Wrangler Library
  3. ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  4. ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  5. ** Copyright (C) 2002, Lev Povalahev
  6. ** All rights reserved.
  7. **
  8. ** Redistribution and use in source and binary forms, with or without
  9. ** modification, are permitted provided that the following conditions are met:
  10. **
  11. ** * Redistributions of source code must retain the above copyright notice,
  12. ** this list of conditions and the following disclaimer.
  13. ** * Redistributions in binary form must reproduce the above copyright notice,
  14. ** this list of conditions and the following disclaimer in the documentation
  15. ** and/or other materials provided with the distribution.
  16. ** * The name of the author may be used to endorse or promote products
  17. ** derived from this software without specific prior written permission.
  18. **
  19. ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  20. ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  21. ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  22. ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  23. ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  24. ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  25. ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  26. ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  27. ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  28. ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  29. ** THE POSSIBILITY OF SUCH DAMAGE.
  30. */
  31. #include "CustomGL/glew.h"
  32. #if defined(_WIN32)
  33. # include <CustomGL/wglew.h>
  34. #elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
  35. # include "CustomGL/glxew.h"
  36. #ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  37. #include <dlfcn.h>
  38. #include <stdio.h>
  39. #include <stdlib.h>
  40. void* dlglXGetProcAddressARB(const GLubyte* name)
  41. {
  42. static void* h = NULL;
  43. static void* gpa;
  44. if (h == NULL)
  45. {
  46. if ((h = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL)) == NULL)
  47. {
  48. return NULL;
  49. }
  50. gpa = dlsym(h, "glXGetProcAddressARB");
  51. }
  52. if (gpa != NULL)
  53. return ((void*(*)(const GLubyte*))gpa)(name);
  54. else
  55. return dlsym(h, (const char*)name);
  56. }
  57. #endif //GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  58. #endif
  59. /*
  60. * Define glewGetContext and related helper macros.
  61. */
  62. #ifdef GLEW_MX
  63. # define glewGetContext() ctx
  64. # ifdef _WIN32
  65. # define GLEW_CONTEXT_ARG_DEF_INIT GLEWContext* ctx
  66. # define GLEW_CONTEXT_ARG_VAR_INIT ctx
  67. # define wglewGetContext() ctx
  68. # define WGLEW_CONTEXT_ARG_DEF_INIT WGLEWContext* ctx
  69. # define WGLEW_CONTEXT_ARG_DEF_LIST WGLEWContext* ctx
  70. # else /* _WIN32 */
  71. # define GLEW_CONTEXT_ARG_DEF_INIT void
  72. # define GLEW_CONTEXT_ARG_VAR_INIT
  73. # define glxewGetContext() ctx
  74. # define GLXEW_CONTEXT_ARG_DEF_INIT void
  75. # define GLXEW_CONTEXT_ARG_DEF_LIST GLXEWContext* ctx
  76. # endif /* _WIN32 */
  77. # define GLEW_CONTEXT_ARG_DEF_LIST GLEWContext* ctx
  78. #else /* GLEW_MX */
  79. # define GLEW_CONTEXT_ARG_DEF_INIT void
  80. # define GLEW_CONTEXT_ARG_VAR_INIT
  81. # define GLEW_CONTEXT_ARG_DEF_LIST void
  82. # define WGLEW_CONTEXT_ARG_DEF_INIT void
  83. # define WGLEW_CONTEXT_ARG_DEF_LIST void
  84. # define GLXEW_CONTEXT_ARG_DEF_INIT void
  85. # define GLXEW_CONTEXT_ARG_DEF_LIST void
  86. #endif /* GLEW_MX */
  87. #if defined(__sgi) || defined (__sun) || defined(GLEW_APPLE_GLX)
  88. #include <dlfcn.h>
  89. #include <stdio.h>
  90. #include <stdlib.h>
  91. void* dlGetProcAddress (const GLubyte* name)
  92. {
  93. static void* h = NULL;
  94. static void* gpa;
  95. if (h == NULL)
  96. {
  97. if ((h = dlopen(NULL, RTLD_LAZY | RTLD_LOCAL)) == NULL) return NULL;
  98. gpa = dlsym(h, "glXGetProcAddress");
  99. }
  100. if (gpa != NULL)
  101. return ((void*(*)(const GLubyte*))gpa)(name);
  102. else
  103. return dlsym(h, (const char*)name);
  104. }
  105. #endif /* __sgi || __sun || GLEW_APPLE_GLX */
  106. #if defined(__APPLE__)
  107. #include <stdlib.h>
  108. #include <string.h>
  109. #include <AvailabilityMacros.h>
  110. #ifdef MAC_OS_X_VERSION_10_3
  111. #include <dlfcn.h>
  112. void* NSGLGetProcAddress (const GLubyte *name)
  113. {
  114. static void* image = NULL;
  115. void* addr;
  116. if (NULL == image)
  117. {
  118. #ifdef GLEW_REGAL
  119. image = dlopen("libRegal.dylib", RTLD_LAZY);
  120. #else
  121. image = dlopen("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", RTLD_LAZY);
  122. #endif
  123. }
  124. if( !image ) return NULL;
  125. addr = dlsym(image, (const char*)name);
  126. if( addr ) return addr;
  127. #ifdef GLEW_APPLE_GLX
  128. return dlGetProcAddress( name ); // try next for glx symbols
  129. #else
  130. return NULL;
  131. #endif
  132. }
  133. #else
  134. #include <mach-o/dyld.h>
  135. void* NSGLGetProcAddress (const GLubyte *name)
  136. {
  137. static const struct mach_header* image = NULL;
  138. NSSymbol symbol;
  139. char* symbolName;
  140. if (NULL == image)
  141. {
  142. #ifdef GLEW_REGAL
  143. image = NSAddImage("libRegal.dylib", NSADDIMAGE_OPTION_RETURN_ON_ERROR);
  144. #else
  145. image = NSAddImage("/System/Library/Frameworks/OpenGL.framework/Versions/Current/OpenGL", NSADDIMAGE_OPTION_RETURN_ON_ERROR);
  146. #endif
  147. }
  148. /* prepend a '_' for the Unix C symbol mangling convention */
  149. symbolName = malloc(strlen((const char*)name) + 2);
  150. strcpy(symbolName+1, (const char*)name);
  151. symbolName[0] = '_';
  152. symbol = NULL;
  153. /* if (NSIsSymbolNameDefined(symbolName))
  154. symbol = NSLookupAndBindSymbol(symbolName); */
  155. symbol = image ? NSLookupSymbolInImage(image, symbolName, NSLOOKUPSYMBOLINIMAGE_OPTION_BIND | NSLOOKUPSYMBOLINIMAGE_OPTION_RETURN_ON_ERROR) : NULL;
  156. free(symbolName);
  157. if( symbol ) return NSAddressOfSymbol(symbol);
  158. #ifdef GLEW_APPLE_GLX
  159. return dlGetProcAddress( name ); // try next for glx symbols
  160. #else
  161. return NULL;
  162. #endif
  163. }
  164. #endif /* MAC_OS_X_VERSION_10_3 */
  165. #endif /* __APPLE__ */
  166. /*
  167. * Define glewGetProcAddress.
  168. */
  169. #if defined(_WIN32)
  170. # define glewGetProcAddress(name) wglGetProcAddress((LPCSTR)name)
  171. #elif defined(__APPLE__) && !defined(GLEW_APPLE_GLX)
  172. # define glewGetProcAddress(name) NSGLGetProcAddress(name)
  173. #elif defined(__sgi) || defined(__sun)
  174. # define glewGetProcAddress(name) dlGetProcAddress(name)
  175. #elif defined(__ANDROID__)
  176. # define glewGetProcAddress(name) NULL /* TODO */
  177. #elif defined(__native_client__)
  178. # define glewGetProcAddress(name) NULL /* TODO */
  179. #else /* __linux */
  180. #ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  181. # define glewGetProcAddress(name) dlglXGetProcAddressARB(name)
  182. #else//GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  183. # define glewGetProcAddress(name) (*glXGetProcAddressARB)(name)
  184. #endif//GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  185. #endif
  186. /*
  187. * Define GLboolean const cast.
  188. */
  189. #define CONST_CAST(x) (*(GLboolean*)&x)
  190. /*
  191. * GLEW, just like OpenGL or GLU, does not rely on the standard C library.
  192. * These functions implement the functionality required in this file.
  193. */
  194. static GLuint _glewStrLen (const GLubyte* s)
  195. {
  196. GLuint i=0;
  197. if (s == NULL) return 0;
  198. while (s[i] != '\0') i++;
  199. return i;
  200. }
  201. static GLuint _glewStrCLen (const GLubyte* s, GLubyte c)
  202. {
  203. GLuint i=0;
  204. if (s == NULL) return 0;
  205. while (s[i] != '\0' && s[i] != c) i++;
  206. return (s[i] == '\0' || s[i] == c) ? i : 0;
  207. }
  208. static GLboolean _glewStrSame (const GLubyte* a, const GLubyte* b, GLuint n)
  209. {
  210. GLuint i=0;
  211. if(a == NULL || b == NULL)
  212. return (a == NULL && b == NULL && n == 0) ? GL_TRUE : GL_FALSE;
  213. while (i < n && a[i] != '\0' && b[i] != '\0' && a[i] == b[i]) i++;
  214. return i == n ? GL_TRUE : GL_FALSE;
  215. }
  216. static GLboolean _glewStrSame1 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb)
  217. {
  218. while (*na > 0 && (**a == ' ' || **a == '\n' || **a == '\r' || **a == '\t'))
  219. {
  220. (*a)++;
  221. (*na)--;
  222. }
  223. if(*na >= nb)
  224. {
  225. GLuint i=0;
  226. while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++;
  227. if(i == nb)
  228. {
  229. *a = *a + nb;
  230. *na = *na - nb;
  231. return GL_TRUE;
  232. }
  233. }
  234. return GL_FALSE;
  235. }
  236. static GLboolean _glewStrSame2 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb)
  237. {
  238. if(*na >= nb)
  239. {
  240. GLuint i=0;
  241. while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++;
  242. if(i == nb)
  243. {
  244. *a = *a + nb;
  245. *na = *na - nb;
  246. return GL_TRUE;
  247. }
  248. }
  249. return GL_FALSE;
  250. }
  251. static GLboolean _glewStrSame3 (GLubyte** a, GLuint* na, const GLubyte* b, GLuint nb)
  252. {
  253. if(*na >= nb)
  254. {
  255. GLuint i=0;
  256. while (i < nb && (*a)+i != NULL && b+i != NULL && (*a)[i] == b[i]) i++;
  257. if (i == nb && (*na == nb || (*a)[i] == ' ' || (*a)[i] == '\n' || (*a)[i] == '\r' || (*a)[i] == '\t'))
  258. {
  259. *a = *a + nb;
  260. *na = *na - nb;
  261. return GL_TRUE;
  262. }
  263. }
  264. return GL_FALSE;
  265. }
  266. /*
  267. * Search for name in the extensions string. Use of strstr()
  268. * is not sufficient because extension names can be prefixes of
  269. * other extension names. Could use strtok() but the constant
  270. * string returned by glGetString might be in read-only memory.
  271. */
  272. static GLboolean _glewSearchExtension (const char* name, const GLubyte *start, const GLubyte *end)
  273. {
  274. const GLubyte* p;
  275. GLuint len = _glewStrLen((const GLubyte*)name);
  276. p = start;
  277. while (p < end)
  278. {
  279. GLuint n = _glewStrCLen(p, ' ');
  280. if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE;
  281. p += n+1;
  282. }
  283. return GL_FALSE;
  284. }
  285. #if !defined(_WIN32) || !defined(GLEW_MX)
  286. PFNGLCOPYTEXSUBIMAGE3DPROC __glewCopyTexSubImage3D = NULL;
  287. PFNGLDRAWRANGEELEMENTSPROC __glewDrawRangeElements = NULL;
  288. PFNGLTEXIMAGE3DPROC __glewTexImage3D = NULL;
  289. PFNGLTEXSUBIMAGE3DPROC __glewTexSubImage3D = NULL;
  290. PFNGLACTIVETEXTUREPROC __glewActiveTexture = NULL;
  291. PFNGLCLIENTACTIVETEXTUREPROC __glewClientActiveTexture = NULL;
  292. PFNGLCOMPRESSEDTEXIMAGE1DPROC __glewCompressedTexImage1D = NULL;
  293. PFNGLCOMPRESSEDTEXIMAGE2DPROC __glewCompressedTexImage2D = NULL;
  294. PFNGLCOMPRESSEDTEXIMAGE3DPROC __glewCompressedTexImage3D = NULL;
  295. PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC __glewCompressedTexSubImage1D = NULL;
  296. PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC __glewCompressedTexSubImage2D = NULL;
  297. PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC __glewCompressedTexSubImage3D = NULL;
  298. PFNGLGETCOMPRESSEDTEXIMAGEPROC __glewGetCompressedTexImage = NULL;
  299. PFNGLLOADTRANSPOSEMATRIXDPROC __glewLoadTransposeMatrixd = NULL;
  300. PFNGLLOADTRANSPOSEMATRIXFPROC __glewLoadTransposeMatrixf = NULL;
  301. PFNGLMULTTRANSPOSEMATRIXDPROC __glewMultTransposeMatrixd = NULL;
  302. PFNGLMULTTRANSPOSEMATRIXFPROC __glewMultTransposeMatrixf = NULL;
  303. PFNGLMULTITEXCOORD1DPROC __glewMultiTexCoord1d = NULL;
  304. PFNGLMULTITEXCOORD1DVPROC __glewMultiTexCoord1dv = NULL;
  305. PFNGLMULTITEXCOORD1FPROC __glewMultiTexCoord1f = NULL;
  306. PFNGLMULTITEXCOORD1FVPROC __glewMultiTexCoord1fv = NULL;
  307. PFNGLMULTITEXCOORD1IPROC __glewMultiTexCoord1i = NULL;
  308. PFNGLMULTITEXCOORD1IVPROC __glewMultiTexCoord1iv = NULL;
  309. PFNGLMULTITEXCOORD1SPROC __glewMultiTexCoord1s = NULL;
  310. PFNGLMULTITEXCOORD1SVPROC __glewMultiTexCoord1sv = NULL;
  311. PFNGLMULTITEXCOORD2DPROC __glewMultiTexCoord2d = NULL;
  312. PFNGLMULTITEXCOORD2DVPROC __glewMultiTexCoord2dv = NULL;
  313. PFNGLMULTITEXCOORD2FPROC __glewMultiTexCoord2f = NULL;
  314. PFNGLMULTITEXCOORD2FVPROC __glewMultiTexCoord2fv = NULL;
  315. PFNGLMULTITEXCOORD2IPROC __glewMultiTexCoord2i = NULL;
  316. PFNGLMULTITEXCOORD2IVPROC __glewMultiTexCoord2iv = NULL;
  317. PFNGLMULTITEXCOORD2SPROC __glewMultiTexCoord2s = NULL;
  318. PFNGLMULTITEXCOORD2SVPROC __glewMultiTexCoord2sv = NULL;
  319. PFNGLMULTITEXCOORD3DPROC __glewMultiTexCoord3d = NULL;
  320. PFNGLMULTITEXCOORD3DVPROC __glewMultiTexCoord3dv = NULL;
  321. PFNGLMULTITEXCOORD3FPROC __glewMultiTexCoord3f = NULL;
  322. PFNGLMULTITEXCOORD3FVPROC __glewMultiTexCoord3fv = NULL;
  323. PFNGLMULTITEXCOORD3IPROC __glewMultiTexCoord3i = NULL;
  324. PFNGLMULTITEXCOORD3IVPROC __glewMultiTexCoord3iv = NULL;
  325. PFNGLMULTITEXCOORD3SPROC __glewMultiTexCoord3s = NULL;
  326. PFNGLMULTITEXCOORD3SVPROC __glewMultiTexCoord3sv = NULL;
  327. PFNGLMULTITEXCOORD4DPROC __glewMultiTexCoord4d = NULL;
  328. PFNGLMULTITEXCOORD4DVPROC __glewMultiTexCoord4dv = NULL;
  329. PFNGLMULTITEXCOORD4FPROC __glewMultiTexCoord4f = NULL;
  330. PFNGLMULTITEXCOORD4FVPROC __glewMultiTexCoord4fv = NULL;
  331. PFNGLMULTITEXCOORD4IPROC __glewMultiTexCoord4i = NULL;
  332. PFNGLMULTITEXCOORD4IVPROC __glewMultiTexCoord4iv = NULL;
  333. PFNGLMULTITEXCOORD4SPROC __glewMultiTexCoord4s = NULL;
  334. PFNGLMULTITEXCOORD4SVPROC __glewMultiTexCoord4sv = NULL;
  335. PFNGLSAMPLECOVERAGEPROC __glewSampleCoverage = NULL;
  336. PFNGLBLENDCOLORPROC __glewBlendColor = NULL;
  337. PFNGLBLENDEQUATIONPROC __glewBlendEquation = NULL;
  338. PFNGLBLENDFUNCSEPARATEPROC __glewBlendFuncSeparate = NULL;
  339. PFNGLFOGCOORDPOINTERPROC __glewFogCoordPointer = NULL;
  340. PFNGLFOGCOORDDPROC __glewFogCoordd = NULL;
  341. PFNGLFOGCOORDDVPROC __glewFogCoorddv = NULL;
  342. PFNGLFOGCOORDFPROC __glewFogCoordf = NULL;
  343. PFNGLFOGCOORDFVPROC __glewFogCoordfv = NULL;
  344. PFNGLMULTIDRAWARRAYSPROC __glewMultiDrawArrays = NULL;
  345. PFNGLMULTIDRAWELEMENTSPROC __glewMultiDrawElements = NULL;
  346. PFNGLPOINTPARAMETERFPROC __glewPointParameterf = NULL;
  347. PFNGLPOINTPARAMETERFVPROC __glewPointParameterfv = NULL;
  348. PFNGLPOINTPARAMETERIPROC __glewPointParameteri = NULL;
  349. PFNGLPOINTPARAMETERIVPROC __glewPointParameteriv = NULL;
  350. PFNGLSECONDARYCOLOR3BPROC __glewSecondaryColor3b = NULL;
  351. PFNGLSECONDARYCOLOR3BVPROC __glewSecondaryColor3bv = NULL;
  352. PFNGLSECONDARYCOLOR3DPROC __glewSecondaryColor3d = NULL;
  353. PFNGLSECONDARYCOLOR3DVPROC __glewSecondaryColor3dv = NULL;
  354. PFNGLSECONDARYCOLOR3FPROC __glewSecondaryColor3f = NULL;
  355. PFNGLSECONDARYCOLOR3FVPROC __glewSecondaryColor3fv = NULL;
  356. PFNGLSECONDARYCOLOR3IPROC __glewSecondaryColor3i = NULL;
  357. PFNGLSECONDARYCOLOR3IVPROC __glewSecondaryColor3iv = NULL;
  358. PFNGLSECONDARYCOLOR3SPROC __glewSecondaryColor3s = NULL;
  359. PFNGLSECONDARYCOLOR3SVPROC __glewSecondaryColor3sv = NULL;
  360. PFNGLSECONDARYCOLOR3UBPROC __glewSecondaryColor3ub = NULL;
  361. PFNGLSECONDARYCOLOR3UBVPROC __glewSecondaryColor3ubv = NULL;
  362. PFNGLSECONDARYCOLOR3UIPROC __glewSecondaryColor3ui = NULL;
  363. PFNGLSECONDARYCOLOR3UIVPROC __glewSecondaryColor3uiv = NULL;
  364. PFNGLSECONDARYCOLOR3USPROC __glewSecondaryColor3us = NULL;
  365. PFNGLSECONDARYCOLOR3USVPROC __glewSecondaryColor3usv = NULL;
  366. PFNGLSECONDARYCOLORPOINTERPROC __glewSecondaryColorPointer = NULL;
  367. PFNGLWINDOWPOS2DPROC __glewWindowPos2d = NULL;
  368. PFNGLWINDOWPOS2DVPROC __glewWindowPos2dv = NULL;
  369. PFNGLWINDOWPOS2FPROC __glewWindowPos2f = NULL;
  370. PFNGLWINDOWPOS2FVPROC __glewWindowPos2fv = NULL;
  371. PFNGLWINDOWPOS2IPROC __glewWindowPos2i = NULL;
  372. PFNGLWINDOWPOS2IVPROC __glewWindowPos2iv = NULL;
  373. PFNGLWINDOWPOS2SPROC __glewWindowPos2s = NULL;
  374. PFNGLWINDOWPOS2SVPROC __glewWindowPos2sv = NULL;
  375. PFNGLWINDOWPOS3DPROC __glewWindowPos3d = NULL;
  376. PFNGLWINDOWPOS3DVPROC __glewWindowPos3dv = NULL;
  377. PFNGLWINDOWPOS3FPROC __glewWindowPos3f = NULL;
  378. PFNGLWINDOWPOS3FVPROC __glewWindowPos3fv = NULL;
  379. PFNGLWINDOWPOS3IPROC __glewWindowPos3i = NULL;
  380. PFNGLWINDOWPOS3IVPROC __glewWindowPos3iv = NULL;
  381. PFNGLWINDOWPOS3SPROC __glewWindowPos3s = NULL;
  382. PFNGLWINDOWPOS3SVPROC __glewWindowPos3sv = NULL;
  383. PFNGLBEGINQUERYPROC __glewBeginQuery = NULL;
  384. PFNGLBINDBUFFERPROC __glewBindBuffer = NULL;
  385. PFNGLBUFFERDATAPROC __glewBufferData = NULL;
  386. PFNGLBUFFERSUBDATAPROC __glewBufferSubData = NULL;
  387. PFNGLDELETEBUFFERSPROC __glewDeleteBuffers = NULL;
  388. PFNGLDELETEQUERIESPROC __glewDeleteQueries = NULL;
  389. PFNGLENDQUERYPROC __glewEndQuery = NULL;
  390. PFNGLGENBUFFERSPROC __glewGenBuffers = NULL;
  391. PFNGLGENQUERIESPROC __glewGenQueries = NULL;
  392. PFNGLGETBUFFERPARAMETERIVPROC __glewGetBufferParameteriv = NULL;
  393. PFNGLGETBUFFERPOINTERVPROC __glewGetBufferPointerv = NULL;
  394. PFNGLGETBUFFERSUBDATAPROC __glewGetBufferSubData = NULL;
  395. PFNGLGETQUERYOBJECTIVPROC __glewGetQueryObjectiv = NULL;
  396. PFNGLGETQUERYOBJECTUIVPROC __glewGetQueryObjectuiv = NULL;
  397. PFNGLGETQUERYIVPROC __glewGetQueryiv = NULL;
  398. PFNGLISBUFFERPROC __glewIsBuffer = NULL;
  399. PFNGLISQUERYPROC __glewIsQuery = NULL;
  400. PFNGLMAPBUFFERPROC __glewMapBuffer = NULL;
  401. PFNGLUNMAPBUFFERPROC __glewUnmapBuffer = NULL;
  402. PFNGLATTACHSHADERPROC __glewAttachShader = NULL;
  403. PFNGLBINDATTRIBLOCATIONPROC __glewBindAttribLocation = NULL;
  404. PFNGLBLENDEQUATIONSEPARATEPROC __glewBlendEquationSeparate = NULL;
  405. PFNGLCOMPILESHADERPROC __glewCompileShader = NULL;
  406. PFNGLCREATEPROGRAMPROC __glewCreateProgram = NULL;
  407. PFNGLCREATESHADERPROC __glewCreateShader = NULL;
  408. PFNGLDELETEPROGRAMPROC __glewDeleteProgram = NULL;
  409. PFNGLDELETESHADERPROC __glewDeleteShader = NULL;
  410. PFNGLDETACHSHADERPROC __glewDetachShader = NULL;
  411. PFNGLDISABLEVERTEXATTRIBARRAYPROC __glewDisableVertexAttribArray = NULL;
  412. PFNGLDRAWBUFFERSPROC __glewDrawBuffers = NULL;
  413. PFNGLENABLEVERTEXATTRIBARRAYPROC __glewEnableVertexAttribArray = NULL;
  414. PFNGLGETACTIVEATTRIBPROC __glewGetActiveAttrib = NULL;
  415. PFNGLGETACTIVEUNIFORMPROC __glewGetActiveUniform = NULL;
  416. PFNGLGETATTACHEDSHADERSPROC __glewGetAttachedShaders = NULL;
  417. PFNGLGETATTRIBLOCATIONPROC __glewGetAttribLocation = NULL;
  418. PFNGLGETPROGRAMINFOLOGPROC __glewGetProgramInfoLog = NULL;
  419. PFNGLGETPROGRAMIVPROC __glewGetProgramiv = NULL;
  420. PFNGLGETSHADERINFOLOGPROC __glewGetShaderInfoLog = NULL;
  421. PFNGLGETSHADERSOURCEPROC __glewGetShaderSource = NULL;
  422. PFNGLGETSHADERIVPROC __glewGetShaderiv = NULL;
  423. PFNGLGETUNIFORMLOCATIONPROC __glewGetUniformLocation = NULL;
  424. PFNGLGETUNIFORMFVPROC __glewGetUniformfv = NULL;
  425. PFNGLGETUNIFORMIVPROC __glewGetUniformiv = NULL;
  426. PFNGLGETVERTEXATTRIBPOINTERVPROC __glewGetVertexAttribPointerv = NULL;
  427. PFNGLGETVERTEXATTRIBDVPROC __glewGetVertexAttribdv = NULL;
  428. PFNGLGETVERTEXATTRIBFVPROC __glewGetVertexAttribfv = NULL;
  429. PFNGLGETVERTEXATTRIBIVPROC __glewGetVertexAttribiv = NULL;
  430. PFNGLISPROGRAMPROC __glewIsProgram = NULL;
  431. PFNGLISSHADERPROC __glewIsShader = NULL;
  432. PFNGLLINKPROGRAMPROC __glewLinkProgram = NULL;
  433. PFNGLSHADERSOURCEPROC __glewShaderSource = NULL;
  434. PFNGLSTENCILFUNCSEPARATEPROC __glewStencilFuncSeparate = NULL;
  435. PFNGLSTENCILMASKSEPARATEPROC __glewStencilMaskSeparate = NULL;
  436. PFNGLSTENCILOPSEPARATEPROC __glewStencilOpSeparate = NULL;
  437. PFNGLUNIFORM1FPROC __glewUniform1f = NULL;
  438. PFNGLUNIFORM1FVPROC __glewUniform1fv = NULL;
  439. PFNGLUNIFORM1IPROC __glewUniform1i = NULL;
  440. PFNGLUNIFORM1IVPROC __glewUniform1iv = NULL;
  441. PFNGLUNIFORM2FPROC __glewUniform2f = NULL;
  442. PFNGLUNIFORM2FVPROC __glewUniform2fv = NULL;
  443. PFNGLUNIFORM2IPROC __glewUniform2i = NULL;
  444. PFNGLUNIFORM2IVPROC __glewUniform2iv = NULL;
  445. PFNGLUNIFORM3FPROC __glewUniform3f = NULL;
  446. PFNGLUNIFORM3FVPROC __glewUniform3fv = NULL;
  447. PFNGLUNIFORM3IPROC __glewUniform3i = NULL;
  448. PFNGLUNIFORM3IVPROC __glewUniform3iv = NULL;
  449. PFNGLUNIFORM4FPROC __glewUniform4f = NULL;
  450. PFNGLUNIFORM4FVPROC __glewUniform4fv = NULL;
  451. PFNGLUNIFORM4IPROC __glewUniform4i = NULL;
  452. PFNGLUNIFORM4IVPROC __glewUniform4iv = NULL;
  453. PFNGLUNIFORMMATRIX2FVPROC __glewUniformMatrix2fv = NULL;
  454. PFNGLUNIFORMMATRIX3FVPROC __glewUniformMatrix3fv = NULL;
  455. PFNGLUNIFORMMATRIX4FVPROC __glewUniformMatrix4fv = NULL;
  456. PFNGLUSEPROGRAMPROC __glewUseProgram = NULL;
  457. PFNGLVALIDATEPROGRAMPROC __glewValidateProgram = NULL;
  458. PFNGLVERTEXATTRIB1DPROC __glewVertexAttrib1d = NULL;
  459. PFNGLVERTEXATTRIB1DVPROC __glewVertexAttrib1dv = NULL;
  460. PFNGLVERTEXATTRIB1FPROC __glewVertexAttrib1f = NULL;
  461. PFNGLVERTEXATTRIB1FVPROC __glewVertexAttrib1fv = NULL;
  462. PFNGLVERTEXATTRIB1SPROC __glewVertexAttrib1s = NULL;
  463. PFNGLVERTEXATTRIB1SVPROC __glewVertexAttrib1sv = NULL;
  464. PFNGLVERTEXATTRIB2DPROC __glewVertexAttrib2d = NULL;
  465. PFNGLVERTEXATTRIB2DVPROC __glewVertexAttrib2dv = NULL;
  466. PFNGLVERTEXATTRIB2FPROC __glewVertexAttrib2f = NULL;
  467. PFNGLVERTEXATTRIB2FVPROC __glewVertexAttrib2fv = NULL;
  468. PFNGLVERTEXATTRIB2SPROC __glewVertexAttrib2s = NULL;
  469. PFNGLVERTEXATTRIB2SVPROC __glewVertexAttrib2sv = NULL;
  470. PFNGLVERTEXATTRIB3DPROC __glewVertexAttrib3d = NULL;
  471. PFNGLVERTEXATTRIB3DVPROC __glewVertexAttrib3dv = NULL;
  472. PFNGLVERTEXATTRIB3FPROC __glewVertexAttrib3f = NULL;
  473. PFNGLVERTEXATTRIB3FVPROC __glewVertexAttrib3fv = NULL;
  474. PFNGLVERTEXATTRIB3SPROC __glewVertexAttrib3s = NULL;
  475. PFNGLVERTEXATTRIB3SVPROC __glewVertexAttrib3sv = NULL;
  476. PFNGLVERTEXATTRIB4NBVPROC __glewVertexAttrib4Nbv = NULL;
  477. PFNGLVERTEXATTRIB4NIVPROC __glewVertexAttrib4Niv = NULL;
  478. PFNGLVERTEXATTRIB4NSVPROC __glewVertexAttrib4Nsv = NULL;
  479. PFNGLVERTEXATTRIB4NUBPROC __glewVertexAttrib4Nub = NULL;
  480. PFNGLVERTEXATTRIB4NUBVPROC __glewVertexAttrib4Nubv = NULL;
  481. PFNGLVERTEXATTRIB4NUIVPROC __glewVertexAttrib4Nuiv = NULL;
  482. PFNGLVERTEXATTRIB4NUSVPROC __glewVertexAttrib4Nusv = NULL;
  483. PFNGLVERTEXATTRIB4BVPROC __glewVertexAttrib4bv = NULL;
  484. PFNGLVERTEXATTRIB4DPROC __glewVertexAttrib4d = NULL;
  485. PFNGLVERTEXATTRIB4DVPROC __glewVertexAttrib4dv = NULL;
  486. PFNGLVERTEXATTRIB4FPROC __glewVertexAttrib4f = NULL;
  487. PFNGLVERTEXATTRIB4FVPROC __glewVertexAttrib4fv = NULL;
  488. PFNGLVERTEXATTRIB4IVPROC __glewVertexAttrib4iv = NULL;
  489. PFNGLVERTEXATTRIB4SPROC __glewVertexAttrib4s = NULL;
  490. PFNGLVERTEXATTRIB4SVPROC __glewVertexAttrib4sv = NULL;
  491. PFNGLVERTEXATTRIB4UBVPROC __glewVertexAttrib4ubv = NULL;
  492. PFNGLVERTEXATTRIB4UIVPROC __glewVertexAttrib4uiv = NULL;
  493. PFNGLVERTEXATTRIB4USVPROC __glewVertexAttrib4usv = NULL;
  494. PFNGLVERTEXATTRIBPOINTERPROC __glewVertexAttribPointer = NULL;
  495. PFNGLUNIFORMMATRIX2X3FVPROC __glewUniformMatrix2x3fv = NULL;
  496. PFNGLUNIFORMMATRIX2X4FVPROC __glewUniformMatrix2x4fv = NULL;
  497. PFNGLUNIFORMMATRIX3X2FVPROC __glewUniformMatrix3x2fv = NULL;
  498. PFNGLUNIFORMMATRIX3X4FVPROC __glewUniformMatrix3x4fv = NULL;
  499. PFNGLUNIFORMMATRIX4X2FVPROC __glewUniformMatrix4x2fv = NULL;
  500. PFNGLUNIFORMMATRIX4X3FVPROC __glewUniformMatrix4x3fv = NULL;
  501. PFNGLBEGINCONDITIONALRENDERPROC __glewBeginConditionalRender = NULL;
  502. PFNGLBEGINTRANSFORMFEEDBACKPROC __glewBeginTransformFeedback = NULL;
  503. PFNGLBINDFRAGDATALOCATIONPROC __glewBindFragDataLocation = NULL;
  504. PFNGLCLAMPCOLORPROC __glewClampColor = NULL;
  505. PFNGLCLEARBUFFERFIPROC __glewClearBufferfi = NULL;
  506. PFNGLCLEARBUFFERFVPROC __glewClearBufferfv = NULL;
  507. PFNGLCLEARBUFFERIVPROC __glewClearBufferiv = NULL;
  508. PFNGLCLEARBUFFERUIVPROC __glewClearBufferuiv = NULL;
  509. PFNGLCOLORMASKIPROC __glewColorMaski = NULL;
  510. PFNGLDISABLEIPROC __glewDisablei = NULL;
  511. PFNGLENABLEIPROC __glewEnablei = NULL;
  512. PFNGLENDCONDITIONALRENDERPROC __glewEndConditionalRender = NULL;
  513. PFNGLENDTRANSFORMFEEDBACKPROC __glewEndTransformFeedback = NULL;
  514. PFNGLGETBOOLEANI_VPROC __glewGetBooleani_v = NULL;
  515. PFNGLGETFRAGDATALOCATIONPROC __glewGetFragDataLocation = NULL;
  516. PFNGLGETSTRINGIPROC __glewGetStringi = NULL;
  517. PFNGLGETTEXPARAMETERIIVPROC __glewGetTexParameterIiv = NULL;
  518. PFNGLGETTEXPARAMETERIUIVPROC __glewGetTexParameterIuiv = NULL;
  519. PFNGLGETTRANSFORMFEEDBACKVARYINGPROC __glewGetTransformFeedbackVarying = NULL;
  520. PFNGLGETUNIFORMUIVPROC __glewGetUniformuiv = NULL;
  521. PFNGLGETVERTEXATTRIBIIVPROC __glewGetVertexAttribIiv = NULL;
  522. PFNGLGETVERTEXATTRIBIUIVPROC __glewGetVertexAttribIuiv = NULL;
  523. PFNGLISENABLEDIPROC __glewIsEnabledi = NULL;
  524. PFNGLTEXPARAMETERIIVPROC __glewTexParameterIiv = NULL;
  525. PFNGLTEXPARAMETERIUIVPROC __glewTexParameterIuiv = NULL;
  526. PFNGLTRANSFORMFEEDBACKVARYINGSPROC __glewTransformFeedbackVaryings = NULL;
  527. PFNGLUNIFORM1UIPROC __glewUniform1ui = NULL;
  528. PFNGLUNIFORM1UIVPROC __glewUniform1uiv = NULL;
  529. PFNGLUNIFORM2UIPROC __glewUniform2ui = NULL;
  530. PFNGLUNIFORM2UIVPROC __glewUniform2uiv = NULL;
  531. PFNGLUNIFORM3UIPROC __glewUniform3ui = NULL;
  532. PFNGLUNIFORM3UIVPROC __glewUniform3uiv = NULL;
  533. PFNGLUNIFORM4UIPROC __glewUniform4ui = NULL;
  534. PFNGLUNIFORM4UIVPROC __glewUniform4uiv = NULL;
  535. PFNGLVERTEXATTRIBI1IPROC __glewVertexAttribI1i = NULL;
  536. PFNGLVERTEXATTRIBI1IVPROC __glewVertexAttribI1iv = NULL;
  537. PFNGLVERTEXATTRIBI1UIPROC __glewVertexAttribI1ui = NULL;
  538. PFNGLVERTEXATTRIBI1UIVPROC __glewVertexAttribI1uiv = NULL;
  539. PFNGLVERTEXATTRIBI2IPROC __glewVertexAttribI2i = NULL;
  540. PFNGLVERTEXATTRIBI2IVPROC __glewVertexAttribI2iv = NULL;
  541. PFNGLVERTEXATTRIBI2UIPROC __glewVertexAttribI2ui = NULL;
  542. PFNGLVERTEXATTRIBI2UIVPROC __glewVertexAttribI2uiv = NULL;
  543. PFNGLVERTEXATTRIBI3IPROC __glewVertexAttribI3i = NULL;
  544. PFNGLVERTEXATTRIBI3IVPROC __glewVertexAttribI3iv = NULL;
  545. PFNGLVERTEXATTRIBI3UIPROC __glewVertexAttribI3ui = NULL;
  546. PFNGLVERTEXATTRIBI3UIVPROC __glewVertexAttribI3uiv = NULL;
  547. PFNGLVERTEXATTRIBI4BVPROC __glewVertexAttribI4bv = NULL;
  548. PFNGLVERTEXATTRIBI4IPROC __glewVertexAttribI4i = NULL;
  549. PFNGLVERTEXATTRIBI4IVPROC __glewVertexAttribI4iv = NULL;
  550. PFNGLVERTEXATTRIBI4SVPROC __glewVertexAttribI4sv = NULL;
  551. PFNGLVERTEXATTRIBI4UBVPROC __glewVertexAttribI4ubv = NULL;
  552. PFNGLVERTEXATTRIBI4UIPROC __glewVertexAttribI4ui = NULL;
  553. PFNGLVERTEXATTRIBI4UIVPROC __glewVertexAttribI4uiv = NULL;
  554. PFNGLVERTEXATTRIBI4USVPROC __glewVertexAttribI4usv = NULL;
  555. PFNGLVERTEXATTRIBIPOINTERPROC __glewVertexAttribIPointer = NULL;
  556. PFNGLDRAWARRAYSINSTANCEDPROC __glewDrawArraysInstanced = NULL;
  557. PFNGLDRAWELEMENTSINSTANCEDPROC __glewDrawElementsInstanced = NULL;
  558. PFNGLPRIMITIVERESTARTINDEXPROC __glewPrimitiveRestartIndex = NULL;
  559. PFNGLTEXBUFFERPROC __glewTexBuffer = NULL;
  560. PFNGLFRAMEBUFFERTEXTUREPROC __glewFramebufferTexture = NULL;
  561. PFNGLGETBUFFERPARAMETERI64VPROC __glewGetBufferParameteri64v = NULL;
  562. PFNGLGETINTEGER64I_VPROC __glewGetInteger64i_v = NULL;
  563. PFNGLVERTEXATTRIBDIVISORPROC __glewVertexAttribDivisor = NULL;
  564. PFNGLBLENDEQUATIONSEPARATEIPROC __glewBlendEquationSeparatei = NULL;
  565. PFNGLBLENDEQUATIONIPROC __glewBlendEquationi = NULL;
  566. PFNGLBLENDFUNCSEPARATEIPROC __glewBlendFuncSeparatei = NULL;
  567. PFNGLBLENDFUNCIPROC __glewBlendFunci = NULL;
  568. PFNGLMINSAMPLESHADINGPROC __glewMinSampleShading = NULL;
  569. PFNGLTBUFFERMASK3DFXPROC __glewTbufferMask3DFX = NULL;
  570. PFNGLDEBUGMESSAGECALLBACKAMDPROC __glewDebugMessageCallbackAMD = NULL;
  571. PFNGLDEBUGMESSAGEENABLEAMDPROC __glewDebugMessageEnableAMD = NULL;
  572. PFNGLDEBUGMESSAGEINSERTAMDPROC __glewDebugMessageInsertAMD = NULL;
  573. PFNGLGETDEBUGMESSAGELOGAMDPROC __glewGetDebugMessageLogAMD = NULL;
  574. PFNGLBLENDEQUATIONINDEXEDAMDPROC __glewBlendEquationIndexedAMD = NULL;
  575. PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC __glewBlendEquationSeparateIndexedAMD = NULL;
  576. PFNGLBLENDFUNCINDEXEDAMDPROC __glewBlendFuncIndexedAMD = NULL;
  577. PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC __glewBlendFuncSeparateIndexedAMD = NULL;
  578. PFNGLVERTEXATTRIBPARAMETERIAMDPROC __glewVertexAttribParameteriAMD = NULL;
  579. PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC __glewMultiDrawArraysIndirectAMD = NULL;
  580. PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC __glewMultiDrawElementsIndirectAMD = NULL;
  581. PFNGLDELETENAMESAMDPROC __glewDeleteNamesAMD = NULL;
  582. PFNGLGENNAMESAMDPROC __glewGenNamesAMD = NULL;
  583. PFNGLISNAMEAMDPROC __glewIsNameAMD = NULL;
  584. PFNGLBEGINPERFMONITORAMDPROC __glewBeginPerfMonitorAMD = NULL;
  585. PFNGLDELETEPERFMONITORSAMDPROC __glewDeletePerfMonitorsAMD = NULL;
  586. PFNGLENDPERFMONITORAMDPROC __glewEndPerfMonitorAMD = NULL;
  587. PFNGLGENPERFMONITORSAMDPROC __glewGenPerfMonitorsAMD = NULL;
  588. PFNGLGETPERFMONITORCOUNTERDATAAMDPROC __glewGetPerfMonitorCounterDataAMD = NULL;
  589. PFNGLGETPERFMONITORCOUNTERINFOAMDPROC __glewGetPerfMonitorCounterInfoAMD = NULL;
  590. PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC __glewGetPerfMonitorCounterStringAMD = NULL;
  591. PFNGLGETPERFMONITORCOUNTERSAMDPROC __glewGetPerfMonitorCountersAMD = NULL;
  592. PFNGLGETPERFMONITORGROUPSTRINGAMDPROC __glewGetPerfMonitorGroupStringAMD = NULL;
  593. PFNGLGETPERFMONITORGROUPSAMDPROC __glewGetPerfMonitorGroupsAMD = NULL;
  594. PFNGLSELECTPERFMONITORCOUNTERSAMDPROC __glewSelectPerfMonitorCountersAMD = NULL;
  595. PFNGLSETMULTISAMPLEFVAMDPROC __glewSetMultisamplefvAMD = NULL;
  596. PFNGLTEXSTORAGESPARSEAMDPROC __glewTexStorageSparseAMD = NULL;
  597. PFNGLTEXTURESTORAGESPARSEAMDPROC __glewTextureStorageSparseAMD = NULL;
  598. PFNGLSTENCILOPVALUEAMDPROC __glewStencilOpValueAMD = NULL;
  599. PFNGLTESSELLATIONFACTORAMDPROC __glewTessellationFactorAMD = NULL;
  600. PFNGLTESSELLATIONMODEAMDPROC __glewTessellationModeAMD = NULL;
  601. PFNGLBLITFRAMEBUFFERANGLEPROC __glewBlitFramebufferANGLE = NULL;
  602. PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC __glewRenderbufferStorageMultisampleANGLE = NULL;
  603. PFNGLDRAWARRAYSINSTANCEDANGLEPROC __glewDrawArraysInstancedANGLE = NULL;
  604. PFNGLDRAWELEMENTSINSTANCEDANGLEPROC __glewDrawElementsInstancedANGLE = NULL;
  605. PFNGLVERTEXATTRIBDIVISORANGLEPROC __glewVertexAttribDivisorANGLE = NULL;
  606. PFNGLBEGINQUERYANGLEPROC __glewBeginQueryANGLE = NULL;
  607. PFNGLDELETEQUERIESANGLEPROC __glewDeleteQueriesANGLE = NULL;
  608. PFNGLENDQUERYANGLEPROC __glewEndQueryANGLE = NULL;
  609. PFNGLGENQUERIESANGLEPROC __glewGenQueriesANGLE = NULL;
  610. PFNGLGETQUERYOBJECTI64VANGLEPROC __glewGetQueryObjecti64vANGLE = NULL;
  611. PFNGLGETQUERYOBJECTIVANGLEPROC __glewGetQueryObjectivANGLE = NULL;
  612. PFNGLGETQUERYOBJECTUI64VANGLEPROC __glewGetQueryObjectui64vANGLE = NULL;
  613. PFNGLGETQUERYOBJECTUIVANGLEPROC __glewGetQueryObjectuivANGLE = NULL;
  614. PFNGLGETQUERYIVANGLEPROC __glewGetQueryivANGLE = NULL;
  615. PFNGLISQUERYANGLEPROC __glewIsQueryANGLE = NULL;
  616. PFNGLQUERYCOUNTERANGLEPROC __glewQueryCounterANGLE = NULL;
  617. PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC __glewGetTranslatedShaderSourceANGLE = NULL;
  618. PFNGLDRAWELEMENTARRAYAPPLEPROC __glewDrawElementArrayAPPLE = NULL;
  619. PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC __glewDrawRangeElementArrayAPPLE = NULL;
  620. PFNGLELEMENTPOINTERAPPLEPROC __glewElementPointerAPPLE = NULL;
  621. PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC __glewMultiDrawElementArrayAPPLE = NULL;
  622. PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC __glewMultiDrawRangeElementArrayAPPLE = NULL;
  623. PFNGLDELETEFENCESAPPLEPROC __glewDeleteFencesAPPLE = NULL;
  624. PFNGLFINISHFENCEAPPLEPROC __glewFinishFenceAPPLE = NULL;
  625. PFNGLFINISHOBJECTAPPLEPROC __glewFinishObjectAPPLE = NULL;
  626. PFNGLGENFENCESAPPLEPROC __glewGenFencesAPPLE = NULL;
  627. PFNGLISFENCEAPPLEPROC __glewIsFenceAPPLE = NULL;
  628. PFNGLSETFENCEAPPLEPROC __glewSetFenceAPPLE = NULL;
  629. PFNGLTESTFENCEAPPLEPROC __glewTestFenceAPPLE = NULL;
  630. PFNGLTESTOBJECTAPPLEPROC __glewTestObjectAPPLE = NULL;
  631. PFNGLBUFFERPARAMETERIAPPLEPROC __glewBufferParameteriAPPLE = NULL;
  632. PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC __glewFlushMappedBufferRangeAPPLE = NULL;
  633. PFNGLGETOBJECTPARAMETERIVAPPLEPROC __glewGetObjectParameterivAPPLE = NULL;
  634. PFNGLOBJECTPURGEABLEAPPLEPROC __glewObjectPurgeableAPPLE = NULL;
  635. PFNGLOBJECTUNPURGEABLEAPPLEPROC __glewObjectUnpurgeableAPPLE = NULL;
  636. PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC __glewGetTexParameterPointervAPPLE = NULL;
  637. PFNGLTEXTURERANGEAPPLEPROC __glewTextureRangeAPPLE = NULL;
  638. PFNGLBINDVERTEXARRAYAPPLEPROC __glewBindVertexArrayAPPLE = NULL;
  639. PFNGLDELETEVERTEXARRAYSAPPLEPROC __glewDeleteVertexArraysAPPLE = NULL;
  640. PFNGLGENVERTEXARRAYSAPPLEPROC __glewGenVertexArraysAPPLE = NULL;
  641. PFNGLISVERTEXARRAYAPPLEPROC __glewIsVertexArrayAPPLE = NULL;
  642. PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC __glewFlushVertexArrayRangeAPPLE = NULL;
  643. PFNGLVERTEXARRAYPARAMETERIAPPLEPROC __glewVertexArrayParameteriAPPLE = NULL;
  644. PFNGLVERTEXARRAYRANGEAPPLEPROC __glewVertexArrayRangeAPPLE = NULL;
  645. PFNGLDISABLEVERTEXATTRIBAPPLEPROC __glewDisableVertexAttribAPPLE = NULL;
  646. PFNGLENABLEVERTEXATTRIBAPPLEPROC __glewEnableVertexAttribAPPLE = NULL;
  647. PFNGLISVERTEXATTRIBENABLEDAPPLEPROC __glewIsVertexAttribEnabledAPPLE = NULL;
  648. PFNGLMAPVERTEXATTRIB1DAPPLEPROC __glewMapVertexAttrib1dAPPLE = NULL;
  649. PFNGLMAPVERTEXATTRIB1FAPPLEPROC __glewMapVertexAttrib1fAPPLE = NULL;
  650. PFNGLMAPVERTEXATTRIB2DAPPLEPROC __glewMapVertexAttrib2dAPPLE = NULL;
  651. PFNGLMAPVERTEXATTRIB2FAPPLEPROC __glewMapVertexAttrib2fAPPLE = NULL;
  652. PFNGLCLEARDEPTHFPROC __glewClearDepthf = NULL;
  653. PFNGLDEPTHRANGEFPROC __glewDepthRangef = NULL;
  654. PFNGLGETSHADERPRECISIONFORMATPROC __glewGetShaderPrecisionFormat = NULL;
  655. PFNGLRELEASESHADERCOMPILERPROC __glewReleaseShaderCompiler = NULL;
  656. PFNGLSHADERBINARYPROC __glewShaderBinary = NULL;
  657. PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC __glewDrawArraysInstancedBaseInstance = NULL;
  658. PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC __glewDrawElementsInstancedBaseInstance = NULL;
  659. PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC __glewDrawElementsInstancedBaseVertexBaseInstance = NULL;
  660. PFNGLGETIMAGEHANDLEARBPROC __glewGetImageHandleARB = NULL;
  661. PFNGLGETTEXTUREHANDLEARBPROC __glewGetTextureHandleARB = NULL;
  662. PFNGLGETTEXTURESAMPLERHANDLEARBPROC __glewGetTextureSamplerHandleARB = NULL;
  663. PFNGLGETVERTEXATTRIBLUI64VARBPROC __glewGetVertexAttribLui64vARB = NULL;
  664. PFNGLISIMAGEHANDLERESIDENTARBPROC __glewIsImageHandleResidentARB = NULL;
  665. PFNGLISTEXTUREHANDLERESIDENTARBPROC __glewIsTextureHandleResidentARB = NULL;
  666. PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC __glewMakeImageHandleNonResidentARB = NULL;
  667. PFNGLMAKEIMAGEHANDLERESIDENTARBPROC __glewMakeImageHandleResidentARB = NULL;
  668. PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC __glewMakeTextureHandleNonResidentARB = NULL;
  669. PFNGLMAKETEXTUREHANDLERESIDENTARBPROC __glewMakeTextureHandleResidentARB = NULL;
  670. PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC __glewProgramUniformHandleui64ARB = NULL;
  671. PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC __glewProgramUniformHandleui64vARB = NULL;
  672. PFNGLUNIFORMHANDLEUI64ARBPROC __glewUniformHandleui64ARB = NULL;
  673. PFNGLUNIFORMHANDLEUI64VARBPROC __glewUniformHandleui64vARB = NULL;
  674. PFNGLVERTEXATTRIBL1UI64ARBPROC __glewVertexAttribL1ui64ARB = NULL;
  675. PFNGLVERTEXATTRIBL1UI64VARBPROC __glewVertexAttribL1ui64vARB = NULL;
  676. PFNGLBINDFRAGDATALOCATIONINDEXEDPROC __glewBindFragDataLocationIndexed = NULL;
  677. PFNGLGETFRAGDATAINDEXPROC __glewGetFragDataIndex = NULL;
  678. PFNGLBUFFERSTORAGEPROC __glewBufferStorage = NULL;
  679. PFNGLNAMEDBUFFERSTORAGEEXTPROC __glewNamedBufferStorageEXT = NULL;
  680. PFNGLCREATESYNCFROMCLEVENTARBPROC __glewCreateSyncFromCLeventARB = NULL;
  681. PFNGLCLEARBUFFERDATAPROC __glewClearBufferData = NULL;
  682. PFNGLCLEARBUFFERSUBDATAPROC __glewClearBufferSubData = NULL;
  683. PFNGLCLEARNAMEDBUFFERDATAEXTPROC __glewClearNamedBufferDataEXT = NULL;
  684. PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC __glewClearNamedBufferSubDataEXT = NULL;
  685. PFNGLCLEARTEXIMAGEPROC __glewClearTexImage = NULL;
  686. PFNGLCLEARTEXSUBIMAGEPROC __glewClearTexSubImage = NULL;
  687. PFNGLCLAMPCOLORARBPROC __glewClampColorARB = NULL;
  688. PFNGLDISPATCHCOMPUTEPROC __glewDispatchCompute = NULL;
  689. PFNGLDISPATCHCOMPUTEINDIRECTPROC __glewDispatchComputeIndirect = NULL;
  690. PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC __glewDispatchComputeGroupSizeARB = NULL;
  691. PFNGLCOPYBUFFERSUBDATAPROC __glewCopyBufferSubData = NULL;
  692. PFNGLCOPYIMAGESUBDATAPROC __glewCopyImageSubData = NULL;
  693. PFNGLDEBUGMESSAGECALLBACKARBPROC __glewDebugMessageCallbackARB = NULL;
  694. PFNGLDEBUGMESSAGECONTROLARBPROC __glewDebugMessageControlARB = NULL;
  695. PFNGLDEBUGMESSAGEINSERTARBPROC __glewDebugMessageInsertARB = NULL;
  696. PFNGLGETDEBUGMESSAGELOGARBPROC __glewGetDebugMessageLogARB = NULL;
  697. PFNGLDRAWBUFFERSARBPROC __glewDrawBuffersARB = NULL;
  698. PFNGLBLENDEQUATIONSEPARATEIARBPROC __glewBlendEquationSeparateiARB = NULL;
  699. PFNGLBLENDEQUATIONIARBPROC __glewBlendEquationiARB = NULL;
  700. PFNGLBLENDFUNCSEPARATEIARBPROC __glewBlendFuncSeparateiARB = NULL;
  701. PFNGLBLENDFUNCIARBPROC __glewBlendFunciARB = NULL;
  702. PFNGLDRAWELEMENTSBASEVERTEXPROC __glewDrawElementsBaseVertex = NULL;
  703. PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC __glewDrawElementsInstancedBaseVertex = NULL;
  704. PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC __glewDrawRangeElementsBaseVertex = NULL;
  705. PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC __glewMultiDrawElementsBaseVertex = NULL;
  706. PFNGLDRAWARRAYSINDIRECTPROC __glewDrawArraysIndirect = NULL;
  707. PFNGLDRAWELEMENTSINDIRECTPROC __glewDrawElementsIndirect = NULL;
  708. PFNGLFRAMEBUFFERPARAMETERIPROC __glewFramebufferParameteri = NULL;
  709. PFNGLGETFRAMEBUFFERPARAMETERIVPROC __glewGetFramebufferParameteriv = NULL;
  710. PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC __glewGetNamedFramebufferParameterivEXT = NULL;
  711. PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC __glewNamedFramebufferParameteriEXT = NULL;
  712. PFNGLBINDFRAMEBUFFERPROC __glewBindFramebuffer = NULL;
  713. PFNGLBINDRENDERBUFFERPROC __glewBindRenderbuffer = NULL;
  714. PFNGLBLITFRAMEBUFFERPROC __glewBlitFramebuffer = NULL;
  715. PFNGLCHECKFRAMEBUFFERSTATUSPROC __glewCheckFramebufferStatus = NULL;
  716. PFNGLDELETEFRAMEBUFFERSPROC __glewDeleteFramebuffers = NULL;
  717. PFNGLDELETERENDERBUFFERSPROC __glewDeleteRenderbuffers = NULL;
  718. PFNGLFRAMEBUFFERRENDERBUFFERPROC __glewFramebufferRenderbuffer = NULL;
  719. PFNGLFRAMEBUFFERTEXTURE1DPROC __glewFramebufferTexture1D = NULL;
  720. PFNGLFRAMEBUFFERTEXTURE2DPROC __glewFramebufferTexture2D = NULL;
  721. PFNGLFRAMEBUFFERTEXTURE3DPROC __glewFramebufferTexture3D = NULL;
  722. PFNGLFRAMEBUFFERTEXTURELAYERPROC __glewFramebufferTextureLayer = NULL;
  723. PFNGLGENFRAMEBUFFERSPROC __glewGenFramebuffers = NULL;
  724. PFNGLGENRENDERBUFFERSPROC __glewGenRenderbuffers = NULL;
  725. PFNGLGENERATEMIPMAPPROC __glewGenerateMipmap = NULL;
  726. PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC __glewGetFramebufferAttachmentParameteriv = NULL;
  727. PFNGLGETRENDERBUFFERPARAMETERIVPROC __glewGetRenderbufferParameteriv = NULL;
  728. PFNGLISFRAMEBUFFERPROC __glewIsFramebuffer = NULL;
  729. PFNGLISRENDERBUFFERPROC __glewIsRenderbuffer = NULL;
  730. PFNGLRENDERBUFFERSTORAGEPROC __glewRenderbufferStorage = NULL;
  731. PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC __glewRenderbufferStorageMultisample = NULL;
  732. PFNGLFRAMEBUFFERTEXTUREARBPROC __glewFramebufferTextureARB = NULL;
  733. PFNGLFRAMEBUFFERTEXTUREFACEARBPROC __glewFramebufferTextureFaceARB = NULL;
  734. PFNGLFRAMEBUFFERTEXTURELAYERARBPROC __glewFramebufferTextureLayerARB = NULL;
  735. PFNGLPROGRAMPARAMETERIARBPROC __glewProgramParameteriARB = NULL;
  736. PFNGLGETPROGRAMBINARYPROC __glewGetProgramBinary = NULL;
  737. PFNGLPROGRAMBINARYPROC __glewProgramBinary = NULL;
  738. PFNGLPROGRAMPARAMETERIPROC __glewProgramParameteri = NULL;
  739. PFNGLGETUNIFORMDVPROC __glewGetUniformdv = NULL;
  740. PFNGLUNIFORM1DPROC __glewUniform1d = NULL;
  741. PFNGLUNIFORM1DVPROC __glewUniform1dv = NULL;
  742. PFNGLUNIFORM2DPROC __glewUniform2d = NULL;
  743. PFNGLUNIFORM2DVPROC __glewUniform2dv = NULL;
  744. PFNGLUNIFORM3DPROC __glewUniform3d = NULL;
  745. PFNGLUNIFORM3DVPROC __glewUniform3dv = NULL;
  746. PFNGLUNIFORM4DPROC __glewUniform4d = NULL;
  747. PFNGLUNIFORM4DVPROC __glewUniform4dv = NULL;
  748. PFNGLUNIFORMMATRIX2DVPROC __glewUniformMatrix2dv = NULL;
  749. PFNGLUNIFORMMATRIX2X3DVPROC __glewUniformMatrix2x3dv = NULL;
  750. PFNGLUNIFORMMATRIX2X4DVPROC __glewUniformMatrix2x4dv = NULL;
  751. PFNGLUNIFORMMATRIX3DVPROC __glewUniformMatrix3dv = NULL;
  752. PFNGLUNIFORMMATRIX3X2DVPROC __glewUniformMatrix3x2dv = NULL;
  753. PFNGLUNIFORMMATRIX3X4DVPROC __glewUniformMatrix3x4dv = NULL;
  754. PFNGLUNIFORMMATRIX4DVPROC __glewUniformMatrix4dv = NULL;
  755. PFNGLUNIFORMMATRIX4X2DVPROC __glewUniformMatrix4x2dv = NULL;
  756. PFNGLUNIFORMMATRIX4X3DVPROC __glewUniformMatrix4x3dv = NULL;
  757. PFNGLCOLORSUBTABLEPROC __glewColorSubTable = NULL;
  758. PFNGLCOLORTABLEPROC __glewColorTable = NULL;
  759. PFNGLCOLORTABLEPARAMETERFVPROC __glewColorTableParameterfv = NULL;
  760. PFNGLCOLORTABLEPARAMETERIVPROC __glewColorTableParameteriv = NULL;
  761. PFNGLCONVOLUTIONFILTER1DPROC __glewConvolutionFilter1D = NULL;
  762. PFNGLCONVOLUTIONFILTER2DPROC __glewConvolutionFilter2D = NULL;
  763. PFNGLCONVOLUTIONPARAMETERFPROC __glewConvolutionParameterf = NULL;
  764. PFNGLCONVOLUTIONPARAMETERFVPROC __glewConvolutionParameterfv = NULL;
  765. PFNGLCONVOLUTIONPARAMETERIPROC __glewConvolutionParameteri = NULL;
  766. PFNGLCONVOLUTIONPARAMETERIVPROC __glewConvolutionParameteriv = NULL;
  767. PFNGLCOPYCOLORSUBTABLEPROC __glewCopyColorSubTable = NULL;
  768. PFNGLCOPYCOLORTABLEPROC __glewCopyColorTable = NULL;
  769. PFNGLCOPYCONVOLUTIONFILTER1DPROC __glewCopyConvolutionFilter1D = NULL;
  770. PFNGLCOPYCONVOLUTIONFILTER2DPROC __glewCopyConvolutionFilter2D = NULL;
  771. PFNGLGETCOLORTABLEPROC __glewGetColorTable = NULL;
  772. PFNGLGETCOLORTABLEPARAMETERFVPROC __glewGetColorTableParameterfv = NULL;
  773. PFNGLGETCOLORTABLEPARAMETERIVPROC __glewGetColorTableParameteriv = NULL;
  774. PFNGLGETCONVOLUTIONFILTERPROC __glewGetConvolutionFilter = NULL;
  775. PFNGLGETCONVOLUTIONPARAMETERFVPROC __glewGetConvolutionParameterfv = NULL;
  776. PFNGLGETCONVOLUTIONPARAMETERIVPROC __glewGetConvolutionParameteriv = NULL;
  777. PFNGLGETHISTOGRAMPROC __glewGetHistogram = NULL;
  778. PFNGLGETHISTOGRAMPARAMETERFVPROC __glewGetHistogramParameterfv = NULL;
  779. PFNGLGETHISTOGRAMPARAMETERIVPROC __glewGetHistogramParameteriv = NULL;
  780. PFNGLGETMINMAXPROC __glewGetMinmax = NULL;
  781. PFNGLGETMINMAXPARAMETERFVPROC __glewGetMinmaxParameterfv = NULL;
  782. PFNGLGETMINMAXPARAMETERIVPROC __glewGetMinmaxParameteriv = NULL;
  783. PFNGLGETSEPARABLEFILTERPROC __glewGetSeparableFilter = NULL;
  784. PFNGLHISTOGRAMPROC __glewHistogram = NULL;
  785. PFNGLMINMAXPROC __glewMinmax = NULL;
  786. PFNGLRESETHISTOGRAMPROC __glewResetHistogram = NULL;
  787. PFNGLRESETMINMAXPROC __glewResetMinmax = NULL;
  788. PFNGLSEPARABLEFILTER2DPROC __glewSeparableFilter2D = NULL;
  789. PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC __glewMultiDrawArraysIndirectCountARB = NULL;
  790. PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC __glewMultiDrawElementsIndirectCountARB = NULL;
  791. PFNGLDRAWARRAYSINSTANCEDARBPROC __glewDrawArraysInstancedARB = NULL;
  792. PFNGLDRAWELEMENTSINSTANCEDARBPROC __glewDrawElementsInstancedARB = NULL;
  793. PFNGLVERTEXATTRIBDIVISORARBPROC __glewVertexAttribDivisorARB = NULL;
  794. PFNGLGETINTERNALFORMATIVPROC __glewGetInternalformativ = NULL;
  795. PFNGLGETINTERNALFORMATI64VPROC __glewGetInternalformati64v = NULL;
  796. PFNGLINVALIDATEBUFFERDATAPROC __glewInvalidateBufferData = NULL;
  797. PFNGLINVALIDATEBUFFERSUBDATAPROC __glewInvalidateBufferSubData = NULL;
  798. PFNGLINVALIDATEFRAMEBUFFERPROC __glewInvalidateFramebuffer = NULL;
  799. PFNGLINVALIDATESUBFRAMEBUFFERPROC __glewInvalidateSubFramebuffer = NULL;
  800. PFNGLINVALIDATETEXIMAGEPROC __glewInvalidateTexImage = NULL;
  801. PFNGLINVALIDATETEXSUBIMAGEPROC __glewInvalidateTexSubImage = NULL;
  802. PFNGLFLUSHMAPPEDBUFFERRANGEPROC __glewFlushMappedBufferRange = NULL;
  803. PFNGLMAPBUFFERRANGEPROC __glewMapBufferRange = NULL;
  804. PFNGLCURRENTPALETTEMATRIXARBPROC __glewCurrentPaletteMatrixARB = NULL;
  805. PFNGLMATRIXINDEXPOINTERARBPROC __glewMatrixIndexPointerARB = NULL;
  806. PFNGLMATRIXINDEXUBVARBPROC __glewMatrixIndexubvARB = NULL;
  807. PFNGLMATRIXINDEXUIVARBPROC __glewMatrixIndexuivARB = NULL;
  808. PFNGLMATRIXINDEXUSVARBPROC __glewMatrixIndexusvARB = NULL;
  809. PFNGLBINDBUFFERSBASEPROC __glewBindBuffersBase = NULL;
  810. PFNGLBINDBUFFERSRANGEPROC __glewBindBuffersRange = NULL;
  811. PFNGLBINDIMAGETEXTURESPROC __glewBindImageTextures = NULL;
  812. PFNGLBINDSAMPLERSPROC __glewBindSamplers = NULL;
  813. PFNGLBINDTEXTURESPROC __glewBindTextures = NULL;
  814. PFNGLBINDVERTEXBUFFERSPROC __glewBindVertexBuffers = NULL;
  815. PFNGLMULTIDRAWARRAYSINDIRECTPROC __glewMultiDrawArraysIndirect = NULL;
  816. PFNGLMULTIDRAWELEMENTSINDIRECTPROC __glewMultiDrawElementsIndirect = NULL;
  817. PFNGLSAMPLECOVERAGEARBPROC __glewSampleCoverageARB = NULL;
  818. PFNGLACTIVETEXTUREARBPROC __glewActiveTextureARB = NULL;
  819. PFNGLCLIENTACTIVETEXTUREARBPROC __glewClientActiveTextureARB = NULL;
  820. PFNGLMULTITEXCOORD1DARBPROC __glewMultiTexCoord1dARB = NULL;
  821. PFNGLMULTITEXCOORD1DVARBPROC __glewMultiTexCoord1dvARB = NULL;
  822. PFNGLMULTITEXCOORD1FARBPROC __glewMultiTexCoord1fARB = NULL;
  823. PFNGLMULTITEXCOORD1FVARBPROC __glewMultiTexCoord1fvARB = NULL;
  824. PFNGLMULTITEXCOORD1IARBPROC __glewMultiTexCoord1iARB = NULL;
  825. PFNGLMULTITEXCOORD1IVARBPROC __glewMultiTexCoord1ivARB = NULL;
  826. PFNGLMULTITEXCOORD1SARBPROC __glewMultiTexCoord1sARB = NULL;
  827. PFNGLMULTITEXCOORD1SVARBPROC __glewMultiTexCoord1svARB = NULL;
  828. PFNGLMULTITEXCOORD2DARBPROC __glewMultiTexCoord2dARB = NULL;
  829. PFNGLMULTITEXCOORD2DVARBPROC __glewMultiTexCoord2dvARB = NULL;
  830. PFNGLMULTITEXCOORD2FARBPROC __glewMultiTexCoord2fARB = NULL;
  831. PFNGLMULTITEXCOORD2FVARBPROC __glewMultiTexCoord2fvARB = NULL;
  832. PFNGLMULTITEXCOORD2IARBPROC __glewMultiTexCoord2iARB = NULL;
  833. PFNGLMULTITEXCOORD2IVARBPROC __glewMultiTexCoord2ivARB = NULL;
  834. PFNGLMULTITEXCOORD2SARBPROC __glewMultiTexCoord2sARB = NULL;
  835. PFNGLMULTITEXCOORD2SVARBPROC __glewMultiTexCoord2svARB = NULL;
  836. PFNGLMULTITEXCOORD3DARBPROC __glewMultiTexCoord3dARB = NULL;
  837. PFNGLMULTITEXCOORD3DVARBPROC __glewMultiTexCoord3dvARB = NULL;
  838. PFNGLMULTITEXCOORD3FARBPROC __glewMultiTexCoord3fARB = NULL;
  839. PFNGLMULTITEXCOORD3FVARBPROC __glewMultiTexCoord3fvARB = NULL;
  840. PFNGLMULTITEXCOORD3IARBPROC __glewMultiTexCoord3iARB = NULL;
  841. PFNGLMULTITEXCOORD3IVARBPROC __glewMultiTexCoord3ivARB = NULL;
  842. PFNGLMULTITEXCOORD3SARBPROC __glewMultiTexCoord3sARB = NULL;
  843. PFNGLMULTITEXCOORD3SVARBPROC __glewMultiTexCoord3svARB = NULL;
  844. PFNGLMULTITEXCOORD4DARBPROC __glewMultiTexCoord4dARB = NULL;
  845. PFNGLMULTITEXCOORD4DVARBPROC __glewMultiTexCoord4dvARB = NULL;
  846. PFNGLMULTITEXCOORD4FARBPROC __glewMultiTexCoord4fARB = NULL;
  847. PFNGLMULTITEXCOORD4FVARBPROC __glewMultiTexCoord4fvARB = NULL;
  848. PFNGLMULTITEXCOORD4IARBPROC __glewMultiTexCoord4iARB = NULL;
  849. PFNGLMULTITEXCOORD4IVARBPROC __glewMultiTexCoord4ivARB = NULL;
  850. PFNGLMULTITEXCOORD4SARBPROC __glewMultiTexCoord4sARB = NULL;
  851. PFNGLMULTITEXCOORD4SVARBPROC __glewMultiTexCoord4svARB = NULL;
  852. PFNGLBEGINQUERYARBPROC __glewBeginQueryARB = NULL;
  853. PFNGLDELETEQUERIESARBPROC __glewDeleteQueriesARB = NULL;
  854. PFNGLENDQUERYARBPROC __glewEndQueryARB = NULL;
  855. PFNGLGENQUERIESARBPROC __glewGenQueriesARB = NULL;
  856. PFNGLGETQUERYOBJECTIVARBPROC __glewGetQueryObjectivARB = NULL;
  857. PFNGLGETQUERYOBJECTUIVARBPROC __glewGetQueryObjectuivARB = NULL;
  858. PFNGLGETQUERYIVARBPROC __glewGetQueryivARB = NULL;
  859. PFNGLISQUERYARBPROC __glewIsQueryARB = NULL;
  860. PFNGLPOINTPARAMETERFARBPROC __glewPointParameterfARB = NULL;
  861. PFNGLPOINTPARAMETERFVARBPROC __glewPointParameterfvARB = NULL;
  862. PFNGLGETPROGRAMINTERFACEIVPROC __glewGetProgramInterfaceiv = NULL;
  863. PFNGLGETPROGRAMRESOURCEINDEXPROC __glewGetProgramResourceIndex = NULL;
  864. PFNGLGETPROGRAMRESOURCELOCATIONPROC __glewGetProgramResourceLocation = NULL;
  865. PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC __glewGetProgramResourceLocationIndex = NULL;
  866. PFNGLGETPROGRAMRESOURCENAMEPROC __glewGetProgramResourceName = NULL;
  867. PFNGLGETPROGRAMRESOURCEIVPROC __glewGetProgramResourceiv = NULL;
  868. PFNGLPROVOKINGVERTEXPROC __glewProvokingVertex = NULL;
  869. PFNGLGETGRAPHICSRESETSTATUSARBPROC __glewGetGraphicsResetStatusARB = NULL;
  870. PFNGLGETNCOLORTABLEARBPROC __glewGetnColorTableARB = NULL;
  871. PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC __glewGetnCompressedTexImageARB = NULL;
  872. PFNGLGETNCONVOLUTIONFILTERARBPROC __glewGetnConvolutionFilterARB = NULL;
  873. PFNGLGETNHISTOGRAMARBPROC __glewGetnHistogramARB = NULL;
  874. PFNGLGETNMAPDVARBPROC __glewGetnMapdvARB = NULL;
  875. PFNGLGETNMAPFVARBPROC __glewGetnMapfvARB = NULL;
  876. PFNGLGETNMAPIVARBPROC __glewGetnMapivARB = NULL;
  877. PFNGLGETNMINMAXARBPROC __glewGetnMinmaxARB = NULL;
  878. PFNGLGETNPIXELMAPFVARBPROC __glewGetnPixelMapfvARB = NULL;
  879. PFNGLGETNPIXELMAPUIVARBPROC __glewGetnPixelMapuivARB = NULL;
  880. PFNGLGETNPIXELMAPUSVARBPROC __glewGetnPixelMapusvARB = NULL;
  881. PFNGLGETNPOLYGONSTIPPLEARBPROC __glewGetnPolygonStippleARB = NULL;
  882. PFNGLGETNSEPARABLEFILTERARBPROC __glewGetnSeparableFilterARB = NULL;
  883. PFNGLGETNTEXIMAGEARBPROC __glewGetnTexImageARB = NULL;
  884. PFNGLGETNUNIFORMDVARBPROC __glewGetnUniformdvARB = NULL;
  885. PFNGLGETNUNIFORMFVARBPROC __glewGetnUniformfvARB = NULL;
  886. PFNGLGETNUNIFORMIVARBPROC __glewGetnUniformivARB = NULL;
  887. PFNGLGETNUNIFORMUIVARBPROC __glewGetnUniformuivARB = NULL;
  888. PFNGLREADNPIXELSARBPROC __glewReadnPixelsARB = NULL;
  889. PFNGLMINSAMPLESHADINGARBPROC __glewMinSampleShadingARB = NULL;
  890. PFNGLBINDSAMPLERPROC __glewBindSampler = NULL;
  891. PFNGLDELETESAMPLERSPROC __glewDeleteSamplers = NULL;
  892. PFNGLGENSAMPLERSPROC __glewGenSamplers = NULL;
  893. PFNGLGETSAMPLERPARAMETERIIVPROC __glewGetSamplerParameterIiv = NULL;
  894. PFNGLGETSAMPLERPARAMETERIUIVPROC __glewGetSamplerParameterIuiv = NULL;
  895. PFNGLGETSAMPLERPARAMETERFVPROC __glewGetSamplerParameterfv = NULL;
  896. PFNGLGETSAMPLERPARAMETERIVPROC __glewGetSamplerParameteriv = NULL;
  897. PFNGLISSAMPLERPROC __glewIsSampler = NULL;
  898. PFNGLSAMPLERPARAMETERIIVPROC __glewSamplerParameterIiv = NULL;
  899. PFNGLSAMPLERPARAMETERIUIVPROC __glewSamplerParameterIuiv = NULL;
  900. PFNGLSAMPLERPARAMETERFPROC __glewSamplerParameterf = NULL;
  901. PFNGLSAMPLERPARAMETERFVPROC __glewSamplerParameterfv = NULL;
  902. PFNGLSAMPLERPARAMETERIPROC __glewSamplerParameteri = NULL;
  903. PFNGLSAMPLERPARAMETERIVPROC __glewSamplerParameteriv = NULL;
  904. PFNGLACTIVESHADERPROGRAMPROC __glewActiveShaderProgram = NULL;
  905. PFNGLBINDPROGRAMPIPELINEPROC __glewBindProgramPipeline = NULL;
  906. PFNGLCREATESHADERPROGRAMVPROC __glewCreateShaderProgramv = NULL;
  907. PFNGLDELETEPROGRAMPIPELINESPROC __glewDeleteProgramPipelines = NULL;
  908. PFNGLGENPROGRAMPIPELINESPROC __glewGenProgramPipelines = NULL;
  909. PFNGLGETPROGRAMPIPELINEINFOLOGPROC __glewGetProgramPipelineInfoLog = NULL;
  910. PFNGLGETPROGRAMPIPELINEIVPROC __glewGetProgramPipelineiv = NULL;
  911. PFNGLISPROGRAMPIPELINEPROC __glewIsProgramPipeline = NULL;
  912. PFNGLPROGRAMUNIFORM1DPROC __glewProgramUniform1d = NULL;
  913. PFNGLPROGRAMUNIFORM1DVPROC __glewProgramUniform1dv = NULL;
  914. PFNGLPROGRAMUNIFORM1FPROC __glewProgramUniform1f = NULL;
  915. PFNGLPROGRAMUNIFORM1FVPROC __glewProgramUniform1fv = NULL;
  916. PFNGLPROGRAMUNIFORM1IPROC __glewProgramUniform1i = NULL;
  917. PFNGLPROGRAMUNIFORM1IVPROC __glewProgramUniform1iv = NULL;
  918. PFNGLPROGRAMUNIFORM1UIPROC __glewProgramUniform1ui = NULL;
  919. PFNGLPROGRAMUNIFORM1UIVPROC __glewProgramUniform1uiv = NULL;
  920. PFNGLPROGRAMUNIFORM2DPROC __glewProgramUniform2d = NULL;
  921. PFNGLPROGRAMUNIFORM2DVPROC __glewProgramUniform2dv = NULL;
  922. PFNGLPROGRAMUNIFORM2FPROC __glewProgramUniform2f = NULL;
  923. PFNGLPROGRAMUNIFORM2FVPROC __glewProgramUniform2fv = NULL;
  924. PFNGLPROGRAMUNIFORM2IPROC __glewProgramUniform2i = NULL;
  925. PFNGLPROGRAMUNIFORM2IVPROC __glewProgramUniform2iv = NULL;
  926. PFNGLPROGRAMUNIFORM2UIPROC __glewProgramUniform2ui = NULL;
  927. PFNGLPROGRAMUNIFORM2UIVPROC __glewProgramUniform2uiv = NULL;
  928. PFNGLPROGRAMUNIFORM3DPROC __glewProgramUniform3d = NULL;
  929. PFNGLPROGRAMUNIFORM3DVPROC __glewProgramUniform3dv = NULL;
  930. PFNGLPROGRAMUNIFORM3FPROC __glewProgramUniform3f = NULL;
  931. PFNGLPROGRAMUNIFORM3FVPROC __glewProgramUniform3fv = NULL;
  932. PFNGLPROGRAMUNIFORM3IPROC __glewProgramUniform3i = NULL;
  933. PFNGLPROGRAMUNIFORM3IVPROC __glewProgramUniform3iv = NULL;
  934. PFNGLPROGRAMUNIFORM3UIPROC __glewProgramUniform3ui = NULL;
  935. PFNGLPROGRAMUNIFORM3UIVPROC __glewProgramUniform3uiv = NULL;
  936. PFNGLPROGRAMUNIFORM4DPROC __glewProgramUniform4d = NULL;
  937. PFNGLPROGRAMUNIFORM4DVPROC __glewProgramUniform4dv = NULL;
  938. PFNGLPROGRAMUNIFORM4FPROC __glewProgramUniform4f = NULL;
  939. PFNGLPROGRAMUNIFORM4FVPROC __glewProgramUniform4fv = NULL;
  940. PFNGLPROGRAMUNIFORM4IPROC __glewProgramUniform4i = NULL;
  941. PFNGLPROGRAMUNIFORM4IVPROC __glewProgramUniform4iv = NULL;
  942. PFNGLPROGRAMUNIFORM4UIPROC __glewProgramUniform4ui = NULL;
  943. PFNGLPROGRAMUNIFORM4UIVPROC __glewProgramUniform4uiv = NULL;
  944. PFNGLPROGRAMUNIFORMMATRIX2DVPROC __glewProgramUniformMatrix2dv = NULL;
  945. PFNGLPROGRAMUNIFORMMATRIX2FVPROC __glewProgramUniformMatrix2fv = NULL;
  946. PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC __glewProgramUniformMatrix2x3dv = NULL;
  947. PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC __glewProgramUniformMatrix2x3fv = NULL;
  948. PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC __glewProgramUniformMatrix2x4dv = NULL;
  949. PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC __glewProgramUniformMatrix2x4fv = NULL;
  950. PFNGLPROGRAMUNIFORMMATRIX3DVPROC __glewProgramUniformMatrix3dv = NULL;
  951. PFNGLPROGRAMUNIFORMMATRIX3FVPROC __glewProgramUniformMatrix3fv = NULL;
  952. PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC __glewProgramUniformMatrix3x2dv = NULL;
  953. PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC __glewProgramUniformMatrix3x2fv = NULL;
  954. PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC __glewProgramUniformMatrix3x4dv = NULL;
  955. PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC __glewProgramUniformMatrix3x4fv = NULL;
  956. PFNGLPROGRAMUNIFORMMATRIX4DVPROC __glewProgramUniformMatrix4dv = NULL;
  957. PFNGLPROGRAMUNIFORMMATRIX4FVPROC __glewProgramUniformMatrix4fv = NULL;
  958. PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC __glewProgramUniformMatrix4x2dv = NULL;
  959. PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC __glewProgramUniformMatrix4x2fv = NULL;
  960. PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC __glewProgramUniformMatrix4x3dv = NULL;
  961. PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC __glewProgramUniformMatrix4x3fv = NULL;
  962. PFNGLUSEPROGRAMSTAGESPROC __glewUseProgramStages = NULL;
  963. PFNGLVALIDATEPROGRAMPIPELINEPROC __glewValidateProgramPipeline = NULL;
  964. PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC __glewGetActiveAtomicCounterBufferiv = NULL;
  965. PFNGLBINDIMAGETEXTUREPROC __glewBindImageTexture = NULL;
  966. PFNGLMEMORYBARRIERPROC __glewMemoryBarrier = NULL;
  967. PFNGLATTACHOBJECTARBPROC __glewAttachObjectARB = NULL;
  968. PFNGLCOMPILESHADERARBPROC __glewCompileShaderARB = NULL;
  969. PFNGLCREATEPROGRAMOBJECTARBPROC __glewCreateProgramObjectARB = NULL;
  970. PFNGLCREATESHADEROBJECTARBPROC __glewCreateShaderObjectARB = NULL;
  971. PFNGLDELETEOBJECTARBPROC __glewDeleteObjectARB = NULL;
  972. PFNGLDETACHOBJECTARBPROC __glewDetachObjectARB = NULL;
  973. PFNGLGETACTIVEUNIFORMARBPROC __glewGetActiveUniformARB = NULL;
  974. PFNGLGETATTACHEDOBJECTSARBPROC __glewGetAttachedObjectsARB = NULL;
  975. PFNGLGETHANDLEARBPROC __glewGetHandleARB = NULL;
  976. PFNGLGETINFOLOGARBPROC __glewGetInfoLogARB = NULL;
  977. PFNGLGETOBJECTPARAMETERFVARBPROC __glewGetObjectParameterfvARB = NULL;
  978. PFNGLGETOBJECTPARAMETERIVARBPROC __glewGetObjectParameterivARB = NULL;
  979. PFNGLGETSHADERSOURCEARBPROC __glewGetShaderSourceARB = NULL;
  980. PFNGLGETUNIFORMLOCATIONARBPROC __glewGetUniformLocationARB = NULL;
  981. PFNGLGETUNIFORMFVARBPROC __glewGetUniformfvARB = NULL;
  982. PFNGLGETUNIFORMIVARBPROC __glewGetUniformivARB = NULL;
  983. PFNGLLINKPROGRAMARBPROC __glewLinkProgramARB = NULL;
  984. PFNGLSHADERSOURCEARBPROC __glewShaderSourceARB = NULL;
  985. PFNGLUNIFORM1FARBPROC __glewUniform1fARB = NULL;
  986. PFNGLUNIFORM1FVARBPROC __glewUniform1fvARB = NULL;
  987. PFNGLUNIFORM1IARBPROC __glewUniform1iARB = NULL;
  988. PFNGLUNIFORM1IVARBPROC __glewUniform1ivARB = NULL;
  989. PFNGLUNIFORM2FARBPROC __glewUniform2fARB = NULL;
  990. PFNGLUNIFORM2FVARBPROC __glewUniform2fvARB = NULL;
  991. PFNGLUNIFORM2IARBPROC __glewUniform2iARB = NULL;
  992. PFNGLUNIFORM2IVARBPROC __glewUniform2ivARB = NULL;
  993. PFNGLUNIFORM3FARBPROC __glewUniform3fARB = NULL;
  994. PFNGLUNIFORM3FVARBPROC __glewUniform3fvARB = NULL;
  995. PFNGLUNIFORM3IARBPROC __glewUniform3iARB = NULL;
  996. PFNGLUNIFORM3IVARBPROC __glewUniform3ivARB = NULL;
  997. PFNGLUNIFORM4FARBPROC __glewUniform4fARB = NULL;
  998. PFNGLUNIFORM4FVARBPROC __glewUniform4fvARB = NULL;
  999. PFNGLUNIFORM4IARBPROC __glewUniform4iARB = NULL;
  1000. PFNGLUNIFORM4IVARBPROC __glewUniform4ivARB = NULL;
  1001. PFNGLUNIFORMMATRIX2FVARBPROC __glewUniformMatrix2fvARB = NULL;
  1002. PFNGLUNIFORMMATRIX3FVARBPROC __glewUniformMatrix3fvARB = NULL;
  1003. PFNGLUNIFORMMATRIX4FVARBPROC __glewUniformMatrix4fvARB = NULL;
  1004. PFNGLUSEPROGRAMOBJECTARBPROC __glewUseProgramObjectARB = NULL;
  1005. PFNGLVALIDATEPROGRAMARBPROC __glewValidateProgramARB = NULL;
  1006. PFNGLSHADERSTORAGEBLOCKBINDINGPROC __glewShaderStorageBlockBinding = NULL;
  1007. PFNGLGETACTIVESUBROUTINENAMEPROC __glewGetActiveSubroutineName = NULL;
  1008. PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC __glewGetActiveSubroutineUniformName = NULL;
  1009. PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC __glewGetActiveSubroutineUniformiv = NULL;
  1010. PFNGLGETPROGRAMSTAGEIVPROC __glewGetProgramStageiv = NULL;
  1011. PFNGLGETSUBROUTINEINDEXPROC __glewGetSubroutineIndex = NULL;
  1012. PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC __glewGetSubroutineUniformLocation = NULL;
  1013. PFNGLGETUNIFORMSUBROUTINEUIVPROC __glewGetUniformSubroutineuiv = NULL;
  1014. PFNGLUNIFORMSUBROUTINESUIVPROC __glewUniformSubroutinesuiv = NULL;
  1015. PFNGLCOMPILESHADERINCLUDEARBPROC __glewCompileShaderIncludeARB = NULL;
  1016. PFNGLDELETENAMEDSTRINGARBPROC __glewDeleteNamedStringARB = NULL;
  1017. PFNGLGETNAMEDSTRINGARBPROC __glewGetNamedStringARB = NULL;
  1018. PFNGLGETNAMEDSTRINGIVARBPROC __glewGetNamedStringivARB = NULL;
  1019. PFNGLISNAMEDSTRINGARBPROC __glewIsNamedStringARB = NULL;
  1020. PFNGLNAMEDSTRINGARBPROC __glewNamedStringARB = NULL;
  1021. PFNGLTEXPAGECOMMITMENTARBPROC __glewTexPageCommitmentARB = NULL;
  1022. PFNGLTEXTUREPAGECOMMITMENTEXTPROC __glewTexturePageCommitmentEXT = NULL;
  1023. PFNGLCLIENTWAITSYNCPROC __glewClientWaitSync = NULL;
  1024. PFNGLDELETESYNCPROC __glewDeleteSync = NULL;
  1025. PFNGLFENCESYNCPROC __glewFenceSync = NULL;
  1026. PFNGLGETINTEGER64VPROC __glewGetInteger64v = NULL;
  1027. PFNGLGETSYNCIVPROC __glewGetSynciv = NULL;
  1028. PFNGLISSYNCPROC __glewIsSync = NULL;
  1029. PFNGLWAITSYNCPROC __glewWaitSync = NULL;
  1030. PFNGLPATCHPARAMETERFVPROC __glewPatchParameterfv = NULL;
  1031. PFNGLPATCHPARAMETERIPROC __glewPatchParameteri = NULL;
  1032. PFNGLTEXBUFFERARBPROC __glewTexBufferARB = NULL;
  1033. PFNGLTEXBUFFERRANGEPROC __glewTexBufferRange = NULL;
  1034. PFNGLTEXTUREBUFFERRANGEEXTPROC __glewTextureBufferRangeEXT = NULL;
  1035. PFNGLCOMPRESSEDTEXIMAGE1DARBPROC __glewCompressedTexImage1DARB = NULL;
  1036. PFNGLCOMPRESSEDTEXIMAGE2DARBPROC __glewCompressedTexImage2DARB = NULL;
  1037. PFNGLCOMPRESSEDTEXIMAGE3DARBPROC __glewCompressedTexImage3DARB = NULL;
  1038. PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC __glewCompressedTexSubImage1DARB = NULL;
  1039. PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC __glewCompressedTexSubImage2DARB = NULL;
  1040. PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC __glewCompressedTexSubImage3DARB = NULL;
  1041. PFNGLGETCOMPRESSEDTEXIMAGEARBPROC __glewGetCompressedTexImageARB = NULL;
  1042. PFNGLGETMULTISAMPLEFVPROC __glewGetMultisamplefv = NULL;
  1043. PFNGLSAMPLEMASKIPROC __glewSampleMaski = NULL;
  1044. PFNGLTEXIMAGE2DMULTISAMPLEPROC __glewTexImage2DMultisample = NULL;
  1045. PFNGLTEXIMAGE3DMULTISAMPLEPROC __glewTexImage3DMultisample = NULL;
  1046. PFNGLTEXSTORAGE1DPROC __glewTexStorage1D = NULL;
  1047. PFNGLTEXSTORAGE2DPROC __glewTexStorage2D = NULL;
  1048. PFNGLTEXSTORAGE3DPROC __glewTexStorage3D = NULL;
  1049. PFNGLTEXTURESTORAGE1DEXTPROC __glewTextureStorage1DEXT = NULL;
  1050. PFNGLTEXTURESTORAGE2DEXTPROC __glewTextureStorage2DEXT = NULL;
  1051. PFNGLTEXTURESTORAGE3DEXTPROC __glewTextureStorage3DEXT = NULL;
  1052. PFNGLTEXSTORAGE2DMULTISAMPLEPROC __glewTexStorage2DMultisample = NULL;
  1053. PFNGLTEXSTORAGE3DMULTISAMPLEPROC __glewTexStorage3DMultisample = NULL;
  1054. PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC __glewTextureStorage2DMultisampleEXT = NULL;
  1055. PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC __glewTextureStorage3DMultisampleEXT = NULL;
  1056. PFNGLTEXTUREVIEWPROC __glewTextureView = NULL;
  1057. PFNGLGETQUERYOBJECTI64VPROC __glewGetQueryObjecti64v = NULL;
  1058. PFNGLGETQUERYOBJECTUI64VPROC __glewGetQueryObjectui64v = NULL;
  1059. PFNGLQUERYCOUNTERPROC __glewQueryCounter = NULL;
  1060. PFNGLBINDTRANSFORMFEEDBACKPROC __glewBindTransformFeedback = NULL;
  1061. PFNGLDELETETRANSFORMFEEDBACKSPROC __glewDeleteTransformFeedbacks = NULL;
  1062. PFNGLDRAWTRANSFORMFEEDBACKPROC __glewDrawTransformFeedback = NULL;
  1063. PFNGLGENTRANSFORMFEEDBACKSPROC __glewGenTransformFeedbacks = NULL;
  1064. PFNGLISTRANSFORMFEEDBACKPROC __glewIsTransformFeedback = NULL;
  1065. PFNGLPAUSETRANSFORMFEEDBACKPROC __glewPauseTransformFeedback = NULL;
  1066. PFNGLRESUMETRANSFORMFEEDBACKPROC __glewResumeTransformFeedback = NULL;
  1067. PFNGLBEGINQUERYINDEXEDPROC __glewBeginQueryIndexed = NULL;
  1068. PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC __glewDrawTransformFeedbackStream = NULL;
  1069. PFNGLENDQUERYINDEXEDPROC __glewEndQueryIndexed = NULL;
  1070. PFNGLGETQUERYINDEXEDIVPROC __glewGetQueryIndexediv = NULL;
  1071. PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC __glewDrawTransformFeedbackInstanced = NULL;
  1072. PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC __glewDrawTransformFeedbackStreamInstanced = NULL;
  1073. PFNGLLOADTRANSPOSEMATRIXDARBPROC __glewLoadTransposeMatrixdARB = NULL;
  1074. PFNGLLOADTRANSPOSEMATRIXFARBPROC __glewLoadTransposeMatrixfARB = NULL;
  1075. PFNGLMULTTRANSPOSEMATRIXDARBPROC __glewMultTransposeMatrixdARB = NULL;
  1076. PFNGLMULTTRANSPOSEMATRIXFARBPROC __glewMultTransposeMatrixfARB = NULL;
  1077. PFNGLBINDBUFFERBASEPROC __glewBindBufferBase = NULL;
  1078. PFNGLBINDBUFFERRANGEPROC __glewBindBufferRange = NULL;
  1079. PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC __glewGetActiveUniformBlockName = NULL;
  1080. PFNGLGETACTIVEUNIFORMBLOCKIVPROC __glewGetActiveUniformBlockiv = NULL;
  1081. PFNGLGETACTIVEUNIFORMNAMEPROC __glewGetActiveUniformName = NULL;
  1082. PFNGLGETACTIVEUNIFORMSIVPROC __glewGetActiveUniformsiv = NULL;
  1083. PFNGLGETINTEGERI_VPROC __glewGetIntegeri_v = NULL;
  1084. PFNGLGETUNIFORMBLOCKINDEXPROC __glewGetUniformBlockIndex = NULL;
  1085. PFNGLGETUNIFORMINDICESPROC __glewGetUniformIndices = NULL;
  1086. PFNGLUNIFORMBLOCKBINDINGPROC __glewUniformBlockBinding = NULL;
  1087. PFNGLBINDVERTEXARRAYPROC __glewBindVertexArray = NULL;
  1088. PFNGLDELETEVERTEXARRAYSPROC __glewDeleteVertexArrays = NULL;
  1089. PFNGLGENVERTEXARRAYSPROC __glewGenVertexArrays = NULL;
  1090. PFNGLISVERTEXARRAYPROC __glewIsVertexArray = NULL;
  1091. PFNGLGETVERTEXATTRIBLDVPROC __glewGetVertexAttribLdv = NULL;
  1092. PFNGLVERTEXATTRIBL1DPROC __glewVertexAttribL1d = NULL;
  1093. PFNGLVERTEXATTRIBL1DVPROC __glewVertexAttribL1dv = NULL;
  1094. PFNGLVERTEXATTRIBL2DPROC __glewVertexAttribL2d = NULL;
  1095. PFNGLVERTEXATTRIBL2DVPROC __glewVertexAttribL2dv = NULL;
  1096. PFNGLVERTEXATTRIBL3DPROC __glewVertexAttribL3d = NULL;
  1097. PFNGLVERTEXATTRIBL3DVPROC __glewVertexAttribL3dv = NULL;
  1098. PFNGLVERTEXATTRIBL4DPROC __glewVertexAttribL4d = NULL;
  1099. PFNGLVERTEXATTRIBL4DVPROC __glewVertexAttribL4dv = NULL;
  1100. PFNGLVERTEXATTRIBLPOINTERPROC __glewVertexAttribLPointer = NULL;
  1101. PFNGLBINDVERTEXBUFFERPROC __glewBindVertexBuffer = NULL;
  1102. PFNGLVERTEXATTRIBBINDINGPROC __glewVertexAttribBinding = NULL;
  1103. PFNGLVERTEXATTRIBFORMATPROC __glewVertexAttribFormat = NULL;
  1104. PFNGLVERTEXATTRIBIFORMATPROC __glewVertexAttribIFormat = NULL;
  1105. PFNGLVERTEXATTRIBLFORMATPROC __glewVertexAttribLFormat = NULL;
  1106. PFNGLVERTEXBINDINGDIVISORPROC __glewVertexBindingDivisor = NULL;
  1107. PFNGLVERTEXBLENDARBPROC __glewVertexBlendARB = NULL;
  1108. PFNGLWEIGHTPOINTERARBPROC __glewWeightPointerARB = NULL;
  1109. PFNGLWEIGHTBVARBPROC __glewWeightbvARB = NULL;
  1110. PFNGLWEIGHTDVARBPROC __glewWeightdvARB = NULL;
  1111. PFNGLWEIGHTFVARBPROC __glewWeightfvARB = NULL;
  1112. PFNGLWEIGHTIVARBPROC __glewWeightivARB = NULL;
  1113. PFNGLWEIGHTSVARBPROC __glewWeightsvARB = NULL;
  1114. PFNGLWEIGHTUBVARBPROC __glewWeightubvARB = NULL;
  1115. PFNGLWEIGHTUIVARBPROC __glewWeightuivARB = NULL;
  1116. PFNGLWEIGHTUSVARBPROC __glewWeightusvARB = NULL;
  1117. PFNGLBINDBUFFERARBPROC __glewBindBufferARB = NULL;
  1118. PFNGLBUFFERDATAARBPROC __glewBufferDataARB = NULL;
  1119. PFNGLBUFFERSUBDATAARBPROC __glewBufferSubDataARB = NULL;
  1120. PFNGLDELETEBUFFERSARBPROC __glewDeleteBuffersARB = NULL;
  1121. PFNGLGENBUFFERSARBPROC __glewGenBuffersARB = NULL;
  1122. PFNGLGETBUFFERPARAMETERIVARBPROC __glewGetBufferParameterivARB = NULL;
  1123. PFNGLGETBUFFERPOINTERVARBPROC __glewGetBufferPointervARB = NULL;
  1124. PFNGLGETBUFFERSUBDATAARBPROC __glewGetBufferSubDataARB = NULL;
  1125. PFNGLISBUFFERARBPROC __glewIsBufferARB = NULL;
  1126. PFNGLMAPBUFFERARBPROC __glewMapBufferARB = NULL;
  1127. PFNGLUNMAPBUFFERARBPROC __glewUnmapBufferARB = NULL;
  1128. PFNGLBINDPROGRAMARBPROC __glewBindProgramARB = NULL;
  1129. PFNGLDELETEPROGRAMSARBPROC __glewDeleteProgramsARB = NULL;
  1130. PFNGLDISABLEVERTEXATTRIBARRAYARBPROC __glewDisableVertexAttribArrayARB = NULL;
  1131. PFNGLENABLEVERTEXATTRIBARRAYARBPROC __glewEnableVertexAttribArrayARB = NULL;
  1132. PFNGLGENPROGRAMSARBPROC __glewGenProgramsARB = NULL;
  1133. PFNGLGETPROGRAMENVPARAMETERDVARBPROC __glewGetProgramEnvParameterdvARB = NULL;
  1134. PFNGLGETPROGRAMENVPARAMETERFVARBPROC __glewGetProgramEnvParameterfvARB = NULL;
  1135. PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC __glewGetProgramLocalParameterdvARB = NULL;
  1136. PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC __glewGetProgramLocalParameterfvARB = NULL;
  1137. PFNGLGETPROGRAMSTRINGARBPROC __glewGetProgramStringARB = NULL;
  1138. PFNGLGETPROGRAMIVARBPROC __glewGetProgramivARB = NULL;
  1139. PFNGLGETVERTEXATTRIBPOINTERVARBPROC __glewGetVertexAttribPointervARB = NULL;
  1140. PFNGLGETVERTEXATTRIBDVARBPROC __glewGetVertexAttribdvARB = NULL;
  1141. PFNGLGETVERTEXATTRIBFVARBPROC __glewGetVertexAttribfvARB = NULL;
  1142. PFNGLGETVERTEXATTRIBIVARBPROC __glewGetVertexAttribivARB = NULL;
  1143. PFNGLISPROGRAMARBPROC __glewIsProgramARB = NULL;
  1144. PFNGLPROGRAMENVPARAMETER4DARBPROC __glewProgramEnvParameter4dARB = NULL;
  1145. PFNGLPROGRAMENVPARAMETER4DVARBPROC __glewProgramEnvParameter4dvARB = NULL;
  1146. PFNGLPROGRAMENVPARAMETER4FARBPROC __glewProgramEnvParameter4fARB = NULL;
  1147. PFNGLPROGRAMENVPARAMETER4FVARBPROC __glewProgramEnvParameter4fvARB = NULL;
  1148. PFNGLPROGRAMLOCALPARAMETER4DARBPROC __glewProgramLocalParameter4dARB = NULL;
  1149. PFNGLPROGRAMLOCALPARAMETER4DVARBPROC __glewProgramLocalParameter4dvARB = NULL;
  1150. PFNGLPROGRAMLOCALPARAMETER4FARBPROC __glewProgramLocalParameter4fARB = NULL;
  1151. PFNGLPROGRAMLOCALPARAMETER4FVARBPROC __glewProgramLocalParameter4fvARB = NULL;
  1152. PFNGLPROGRAMSTRINGARBPROC __glewProgramStringARB = NULL;
  1153. PFNGLVERTEXATTRIB1DARBPROC __glewVertexAttrib1dARB = NULL;
  1154. PFNGLVERTEXATTRIB1DVARBPROC __glewVertexAttrib1dvARB = NULL;
  1155. PFNGLVERTEXATTRIB1FARBPROC __glewVertexAttrib1fARB = NULL;
  1156. PFNGLVERTEXATTRIB1FVARBPROC __glewVertexAttrib1fvARB = NULL;
  1157. PFNGLVERTEXATTRIB1SARBPROC __glewVertexAttrib1sARB = NULL;
  1158. PFNGLVERTEXATTRIB1SVARBPROC __glewVertexAttrib1svARB = NULL;
  1159. PFNGLVERTEXATTRIB2DARBPROC __glewVertexAttrib2dARB = NULL;
  1160. PFNGLVERTEXATTRIB2DVARBPROC __glewVertexAttrib2dvARB = NULL;
  1161. PFNGLVERTEXATTRIB2FARBPROC __glewVertexAttrib2fARB = NULL;
  1162. PFNGLVERTEXATTRIB2FVARBPROC __glewVertexAttrib2fvARB = NULL;
  1163. PFNGLVERTEXATTRIB2SARBPROC __glewVertexAttrib2sARB = NULL;
  1164. PFNGLVERTEXATTRIB2SVARBPROC __glewVertexAttrib2svARB = NULL;
  1165. PFNGLVERTEXATTRIB3DARBPROC __glewVertexAttrib3dARB = NULL;
  1166. PFNGLVERTEXATTRIB3DVARBPROC __glewVertexAttrib3dvARB = NULL;
  1167. PFNGLVERTEXATTRIB3FARBPROC __glewVertexAttrib3fARB = NULL;
  1168. PFNGLVERTEXATTRIB3FVARBPROC __glewVertexAttrib3fvARB = NULL;
  1169. PFNGLVERTEXATTRIB3SARBPROC __glewVertexAttrib3sARB = NULL;
  1170. PFNGLVERTEXATTRIB3SVARBPROC __glewVertexAttrib3svARB = NULL;
  1171. PFNGLVERTEXATTRIB4NBVARBPROC __glewVertexAttrib4NbvARB = NULL;
  1172. PFNGLVERTEXATTRIB4NIVARBPROC __glewVertexAttrib4NivARB = NULL;
  1173. PFNGLVERTEXATTRIB4NSVARBPROC __glewVertexAttrib4NsvARB = NULL;
  1174. PFNGLVERTEXATTRIB4NUBARBPROC __glewVertexAttrib4NubARB = NULL;
  1175. PFNGLVERTEXATTRIB4NUBVARBPROC __glewVertexAttrib4NubvARB = NULL;
  1176. PFNGLVERTEXATTRIB4NUIVARBPROC __glewVertexAttrib4NuivARB = NULL;
  1177. PFNGLVERTEXATTRIB4NUSVARBPROC __glewVertexAttrib4NusvARB = NULL;
  1178. PFNGLVERTEXATTRIB4BVARBPROC __glewVertexAttrib4bvARB = NULL;
  1179. PFNGLVERTEXATTRIB4DARBPROC __glewVertexAttrib4dARB = NULL;
  1180. PFNGLVERTEXATTRIB4DVARBPROC __glewVertexAttrib4dvARB = NULL;
  1181. PFNGLVERTEXATTRIB4FARBPROC __glewVertexAttrib4fARB = NULL;
  1182. PFNGLVERTEXATTRIB4FVARBPROC __glewVertexAttrib4fvARB = NULL;
  1183. PFNGLVERTEXATTRIB4IVARBPROC __glewVertexAttrib4ivARB = NULL;
  1184. PFNGLVERTEXATTRIB4SARBPROC __glewVertexAttrib4sARB = NULL;
  1185. PFNGLVERTEXATTRIB4SVARBPROC __glewVertexAttrib4svARB = NULL;
  1186. PFNGLVERTEXATTRIB4UBVARBPROC __glewVertexAttrib4ubvARB = NULL;
  1187. PFNGLVERTEXATTRIB4UIVARBPROC __glewVertexAttrib4uivARB = NULL;
  1188. PFNGLVERTEXATTRIB4USVARBPROC __glewVertexAttrib4usvARB = NULL;
  1189. PFNGLVERTEXATTRIBPOINTERARBPROC __glewVertexAttribPointerARB = NULL;
  1190. PFNGLBINDATTRIBLOCATIONARBPROC __glewBindAttribLocationARB = NULL;
  1191. PFNGLGETACTIVEATTRIBARBPROC __glewGetActiveAttribARB = NULL;
  1192. PFNGLGETATTRIBLOCATIONARBPROC __glewGetAttribLocationARB = NULL;
  1193. PFNGLCOLORP3UIPROC __glewColorP3ui = NULL;
  1194. PFNGLCOLORP3UIVPROC __glewColorP3uiv = NULL;
  1195. PFNGLCOLORP4UIPROC __glewColorP4ui = NULL;
  1196. PFNGLCOLORP4UIVPROC __glewColorP4uiv = NULL;
  1197. PFNGLMULTITEXCOORDP1UIPROC __glewMultiTexCoordP1ui = NULL;
  1198. PFNGLMULTITEXCOORDP1UIVPROC __glewMultiTexCoordP1uiv = NULL;
  1199. PFNGLMULTITEXCOORDP2UIPROC __glewMultiTexCoordP2ui = NULL;
  1200. PFNGLMULTITEXCOORDP2UIVPROC __glewMultiTexCoordP2uiv = NULL;
  1201. PFNGLMULTITEXCOORDP3UIPROC __glewMultiTexCoordP3ui = NULL;
  1202. PFNGLMULTITEXCOORDP3UIVPROC __glewMultiTexCoordP3uiv = NULL;
  1203. PFNGLMULTITEXCOORDP4UIPROC __glewMultiTexCoordP4ui = NULL;
  1204. PFNGLMULTITEXCOORDP4UIVPROC __glewMultiTexCoordP4uiv = NULL;
  1205. PFNGLNORMALP3UIPROC __glewNormalP3ui = NULL;
  1206. PFNGLNORMALP3UIVPROC __glewNormalP3uiv = NULL;
  1207. PFNGLSECONDARYCOLORP3UIPROC __glewSecondaryColorP3ui = NULL;
  1208. PFNGLSECONDARYCOLORP3UIVPROC __glewSecondaryColorP3uiv = NULL;
  1209. PFNGLTEXCOORDP1UIPROC __glewTexCoordP1ui = NULL;
  1210. PFNGLTEXCOORDP1UIVPROC __glewTexCoordP1uiv = NULL;
  1211. PFNGLTEXCOORDP2UIPROC __glewTexCoordP2ui = NULL;
  1212. PFNGLTEXCOORDP2UIVPROC __glewTexCoordP2uiv = NULL;
  1213. PFNGLTEXCOORDP3UIPROC __glewTexCoordP3ui = NULL;
  1214. PFNGLTEXCOORDP3UIVPROC __glewTexCoordP3uiv = NULL;
  1215. PFNGLTEXCOORDP4UIPROC __glewTexCoordP4ui = NULL;
  1216. PFNGLTEXCOORDP4UIVPROC __glewTexCoordP4uiv = NULL;
  1217. PFNGLVERTEXATTRIBP1UIPROC __glewVertexAttribP1ui = NULL;
  1218. PFNGLVERTEXATTRIBP1UIVPROC __glewVertexAttribP1uiv = NULL;
  1219. PFNGLVERTEXATTRIBP2UIPROC __glewVertexAttribP2ui = NULL;
  1220. PFNGLVERTEXATTRIBP2UIVPROC __glewVertexAttribP2uiv = NULL;
  1221. PFNGLVERTEXATTRIBP3UIPROC __glewVertexAttribP3ui = NULL;
  1222. PFNGLVERTEXATTRIBP3UIVPROC __glewVertexAttribP3uiv = NULL;
  1223. PFNGLVERTEXATTRIBP4UIPROC __glewVertexAttribP4ui = NULL;
  1224. PFNGLVERTEXATTRIBP4UIVPROC __glewVertexAttribP4uiv = NULL;
  1225. PFNGLVERTEXP2UIPROC __glewVertexP2ui = NULL;
  1226. PFNGLVERTEXP2UIVPROC __glewVertexP2uiv = NULL;
  1227. PFNGLVERTEXP3UIPROC __glewVertexP3ui = NULL;
  1228. PFNGLVERTEXP3UIVPROC __glewVertexP3uiv = NULL;
  1229. PFNGLVERTEXP4UIPROC __glewVertexP4ui = NULL;
  1230. PFNGLVERTEXP4UIVPROC __glewVertexP4uiv = NULL;
  1231. PFNGLDEPTHRANGEARRAYVPROC __glewDepthRangeArrayv = NULL;
  1232. PFNGLDEPTHRANGEINDEXEDPROC __glewDepthRangeIndexed = NULL;
  1233. PFNGLGETDOUBLEI_VPROC __glewGetDoublei_v = NULL;
  1234. PFNGLGETFLOATI_VPROC __glewGetFloati_v = NULL;
  1235. PFNGLSCISSORARRAYVPROC __glewScissorArrayv = NULL;
  1236. PFNGLSCISSORINDEXEDPROC __glewScissorIndexed = NULL;
  1237. PFNGLSCISSORINDEXEDVPROC __glewScissorIndexedv = NULL;
  1238. PFNGLVIEWPORTARRAYVPROC __glewViewportArrayv = NULL;
  1239. PFNGLVIEWPORTINDEXEDFPROC __glewViewportIndexedf = NULL;
  1240. PFNGLVIEWPORTINDEXEDFVPROC __glewViewportIndexedfv = NULL;
  1241. PFNGLWINDOWPOS2DARBPROC __glewWindowPos2dARB = NULL;
  1242. PFNGLWINDOWPOS2DVARBPROC __glewWindowPos2dvARB = NULL;
  1243. PFNGLWINDOWPOS2FARBPROC __glewWindowPos2fARB = NULL;
  1244. PFNGLWINDOWPOS2FVARBPROC __glewWindowPos2fvARB = NULL;
  1245. PFNGLWINDOWPOS2IARBPROC __glewWindowPos2iARB = NULL;
  1246. PFNGLWINDOWPOS2IVARBPROC __glewWindowPos2ivARB = NULL;
  1247. PFNGLWINDOWPOS2SARBPROC __glewWindowPos2sARB = NULL;
  1248. PFNGLWINDOWPOS2SVARBPROC __glewWindowPos2svARB = NULL;
  1249. PFNGLWINDOWPOS3DARBPROC __glewWindowPos3dARB = NULL;
  1250. PFNGLWINDOWPOS3DVARBPROC __glewWindowPos3dvARB = NULL;
  1251. PFNGLWINDOWPOS3FARBPROC __glewWindowPos3fARB = NULL;
  1252. PFNGLWINDOWPOS3FVARBPROC __glewWindowPos3fvARB = NULL;
  1253. PFNGLWINDOWPOS3IARBPROC __glewWindowPos3iARB = NULL;
  1254. PFNGLWINDOWPOS3IVARBPROC __glewWindowPos3ivARB = NULL;
  1255. PFNGLWINDOWPOS3SARBPROC __glewWindowPos3sARB = NULL;
  1256. PFNGLWINDOWPOS3SVARBPROC __glewWindowPos3svARB = NULL;
  1257. PFNGLDRAWBUFFERSATIPROC __glewDrawBuffersATI = NULL;
  1258. PFNGLDRAWELEMENTARRAYATIPROC __glewDrawElementArrayATI = NULL;
  1259. PFNGLDRAWRANGEELEMENTARRAYATIPROC __glewDrawRangeElementArrayATI = NULL;
  1260. PFNGLELEMENTPOINTERATIPROC __glewElementPointerATI = NULL;
  1261. PFNGLGETTEXBUMPPARAMETERFVATIPROC __glewGetTexBumpParameterfvATI = NULL;
  1262. PFNGLGETTEXBUMPPARAMETERIVATIPROC __glewGetTexBumpParameterivATI = NULL;
  1263. PFNGLTEXBUMPPARAMETERFVATIPROC __glewTexBumpParameterfvATI = NULL;
  1264. PFNGLTEXBUMPPARAMETERIVATIPROC __glewTexBumpParameterivATI = NULL;
  1265. PFNGLALPHAFRAGMENTOP1ATIPROC __glewAlphaFragmentOp1ATI = NULL;
  1266. PFNGLALPHAFRAGMENTOP2ATIPROC __glewAlphaFragmentOp2ATI = NULL;
  1267. PFNGLALPHAFRAGMENTOP3ATIPROC __glewAlphaFragmentOp3ATI = NULL;
  1268. PFNGLBEGINFRAGMENTSHADERATIPROC __glewBeginFragmentShaderATI = NULL;
  1269. PFNGLBINDFRAGMENTSHADERATIPROC __glewBindFragmentShaderATI = NULL;
  1270. PFNGLCOLORFRAGMENTOP1ATIPROC __glewColorFragmentOp1ATI = NULL;
  1271. PFNGLCOLORFRAGMENTOP2ATIPROC __glewColorFragmentOp2ATI = NULL;
  1272. PFNGLCOLORFRAGMENTOP3ATIPROC __glewColorFragmentOp3ATI = NULL;
  1273. PFNGLDELETEFRAGMENTSHADERATIPROC __glewDeleteFragmentShaderATI = NULL;
  1274. PFNGLENDFRAGMENTSHADERATIPROC __glewEndFragmentShaderATI = NULL;
  1275. PFNGLGENFRAGMENTSHADERSATIPROC __glewGenFragmentShadersATI = NULL;
  1276. PFNGLPASSTEXCOORDATIPROC __glewPassTexCoordATI = NULL;
  1277. PFNGLSAMPLEMAPATIPROC __glewSampleMapATI = NULL;
  1278. PFNGLSETFRAGMENTSHADERCONSTANTATIPROC __glewSetFragmentShaderConstantATI = NULL;
  1279. PFNGLMAPOBJECTBUFFERATIPROC __glewMapObjectBufferATI = NULL;
  1280. PFNGLUNMAPOBJECTBUFFERATIPROC __glewUnmapObjectBufferATI = NULL;
  1281. PFNGLPNTRIANGLESFATIPROC __glewPNTrianglesfATI = NULL;
  1282. PFNGLPNTRIANGLESIATIPROC __glewPNTrianglesiATI = NULL;
  1283. PFNGLSTENCILFUNCSEPARATEATIPROC __glewStencilFuncSeparateATI = NULL;
  1284. PFNGLSTENCILOPSEPARATEATIPROC __glewStencilOpSeparateATI = NULL;
  1285. PFNGLARRAYOBJECTATIPROC __glewArrayObjectATI = NULL;
  1286. PFNGLFREEOBJECTBUFFERATIPROC __glewFreeObjectBufferATI = NULL;
  1287. PFNGLGETARRAYOBJECTFVATIPROC __glewGetArrayObjectfvATI = NULL;
  1288. PFNGLGETARRAYOBJECTIVATIPROC __glewGetArrayObjectivATI = NULL;
  1289. PFNGLGETOBJECTBUFFERFVATIPROC __glewGetObjectBufferfvATI = NULL;
  1290. PFNGLGETOBJECTBUFFERIVATIPROC __glewGetObjectBufferivATI = NULL;
  1291. PFNGLGETVARIANTARRAYOBJECTFVATIPROC __glewGetVariantArrayObjectfvATI = NULL;
  1292. PFNGLGETVARIANTARRAYOBJECTIVATIPROC __glewGetVariantArrayObjectivATI = NULL;
  1293. PFNGLISOBJECTBUFFERATIPROC __glewIsObjectBufferATI = NULL;
  1294. PFNGLNEWOBJECTBUFFERATIPROC __glewNewObjectBufferATI = NULL;
  1295. PFNGLUPDATEOBJECTBUFFERATIPROC __glewUpdateObjectBufferATI = NULL;
  1296. PFNGLVARIANTARRAYOBJECTATIPROC __glewVariantArrayObjectATI = NULL;
  1297. PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC __glewGetVertexAttribArrayObjectfvATI = NULL;
  1298. PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC __glewGetVertexAttribArrayObjectivATI = NULL;
  1299. PFNGLVERTEXATTRIBARRAYOBJECTATIPROC __glewVertexAttribArrayObjectATI = NULL;
  1300. PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC __glewClientActiveVertexStreamATI = NULL;
  1301. PFNGLNORMALSTREAM3BATIPROC __glewNormalStream3bATI = NULL;
  1302. PFNGLNORMALSTREAM3BVATIPROC __glewNormalStream3bvATI = NULL;
  1303. PFNGLNORMALSTREAM3DATIPROC __glewNormalStream3dATI = NULL;
  1304. PFNGLNORMALSTREAM3DVATIPROC __glewNormalStream3dvATI = NULL;
  1305. PFNGLNORMALSTREAM3FATIPROC __glewNormalStream3fATI = NULL;
  1306. PFNGLNORMALSTREAM3FVATIPROC __glewNormalStream3fvATI = NULL;
  1307. PFNGLNORMALSTREAM3IATIPROC __glewNormalStream3iATI = NULL;
  1308. PFNGLNORMALSTREAM3IVATIPROC __glewNormalStream3ivATI = NULL;
  1309. PFNGLNORMALSTREAM3SATIPROC __glewNormalStream3sATI = NULL;
  1310. PFNGLNORMALSTREAM3SVATIPROC __glewNormalStream3svATI = NULL;
  1311. PFNGLVERTEXBLENDENVFATIPROC __glewVertexBlendEnvfATI = NULL;
  1312. PFNGLVERTEXBLENDENVIATIPROC __glewVertexBlendEnviATI = NULL;
  1313. PFNGLVERTEXSTREAM1DATIPROC __glewVertexStream1dATI = NULL;
  1314. PFNGLVERTEXSTREAM1DVATIPROC __glewVertexStream1dvATI = NULL;
  1315. PFNGLVERTEXSTREAM1FATIPROC __glewVertexStream1fATI = NULL;
  1316. PFNGLVERTEXSTREAM1FVATIPROC __glewVertexStream1fvATI = NULL;
  1317. PFNGLVERTEXSTREAM1IATIPROC __glewVertexStream1iATI = NULL;
  1318. PFNGLVERTEXSTREAM1IVATIPROC __glewVertexStream1ivATI = NULL;
  1319. PFNGLVERTEXSTREAM1SATIPROC __glewVertexStream1sATI = NULL;
  1320. PFNGLVERTEXSTREAM1SVATIPROC __glewVertexStream1svATI = NULL;
  1321. PFNGLVERTEXSTREAM2DATIPROC __glewVertexStream2dATI = NULL;
  1322. PFNGLVERTEXSTREAM2DVATIPROC __glewVertexStream2dvATI = NULL;
  1323. PFNGLVERTEXSTREAM2FATIPROC __glewVertexStream2fATI = NULL;
  1324. PFNGLVERTEXSTREAM2FVATIPROC __glewVertexStream2fvATI = NULL;
  1325. PFNGLVERTEXSTREAM2IATIPROC __glewVertexStream2iATI = NULL;
  1326. PFNGLVERTEXSTREAM2IVATIPROC __glewVertexStream2ivATI = NULL;
  1327. PFNGLVERTEXSTREAM2SATIPROC __glewVertexStream2sATI = NULL;
  1328. PFNGLVERTEXSTREAM2SVATIPROC __glewVertexStream2svATI = NULL;
  1329. PFNGLVERTEXSTREAM3DATIPROC __glewVertexStream3dATI = NULL;
  1330. PFNGLVERTEXSTREAM3DVATIPROC __glewVertexStream3dvATI = NULL;
  1331. PFNGLVERTEXSTREAM3FATIPROC __glewVertexStream3fATI = NULL;
  1332. PFNGLVERTEXSTREAM3FVATIPROC __glewVertexStream3fvATI = NULL;
  1333. PFNGLVERTEXSTREAM3IATIPROC __glewVertexStream3iATI = NULL;
  1334. PFNGLVERTEXSTREAM3IVATIPROC __glewVertexStream3ivATI = NULL;
  1335. PFNGLVERTEXSTREAM3SATIPROC __glewVertexStream3sATI = NULL;
  1336. PFNGLVERTEXSTREAM3SVATIPROC __glewVertexStream3svATI = NULL;
  1337. PFNGLVERTEXSTREAM4DATIPROC __glewVertexStream4dATI = NULL;
  1338. PFNGLVERTEXSTREAM4DVATIPROC __glewVertexStream4dvATI = NULL;
  1339. PFNGLVERTEXSTREAM4FATIPROC __glewVertexStream4fATI = NULL;
  1340. PFNGLVERTEXSTREAM4FVATIPROC __glewVertexStream4fvATI = NULL;
  1341. PFNGLVERTEXSTREAM4IATIPROC __glewVertexStream4iATI = NULL;
  1342. PFNGLVERTEXSTREAM4IVATIPROC __glewVertexStream4ivATI = NULL;
  1343. PFNGLVERTEXSTREAM4SATIPROC __glewVertexStream4sATI = NULL;
  1344. PFNGLVERTEXSTREAM4SVATIPROC __glewVertexStream4svATI = NULL;
  1345. PFNGLGETUNIFORMBUFFERSIZEEXTPROC __glewGetUniformBufferSizeEXT = NULL;
  1346. PFNGLGETUNIFORMOFFSETEXTPROC __glewGetUniformOffsetEXT = NULL;
  1347. PFNGLUNIFORMBUFFEREXTPROC __glewUniformBufferEXT = NULL;
  1348. PFNGLBLENDCOLOREXTPROC __glewBlendColorEXT = NULL;
  1349. PFNGLBLENDEQUATIONSEPARATEEXTPROC __glewBlendEquationSeparateEXT = NULL;
  1350. PFNGLBLENDFUNCSEPARATEEXTPROC __glewBlendFuncSeparateEXT = NULL;
  1351. PFNGLBLENDEQUATIONEXTPROC __glewBlendEquationEXT = NULL;
  1352. PFNGLCOLORSUBTABLEEXTPROC __glewColorSubTableEXT = NULL;
  1353. PFNGLCOPYCOLORSUBTABLEEXTPROC __glewCopyColorSubTableEXT = NULL;
  1354. PFNGLLOCKARRAYSEXTPROC __glewLockArraysEXT = NULL;
  1355. PFNGLUNLOCKARRAYSEXTPROC __glewUnlockArraysEXT = NULL;
  1356. PFNGLCONVOLUTIONFILTER1DEXTPROC __glewConvolutionFilter1DEXT = NULL;
  1357. PFNGLCONVOLUTIONFILTER2DEXTPROC __glewConvolutionFilter2DEXT = NULL;
  1358. PFNGLCONVOLUTIONPARAMETERFEXTPROC __glewConvolutionParameterfEXT = NULL;
  1359. PFNGLCONVOLUTIONPARAMETERFVEXTPROC __glewConvolutionParameterfvEXT = NULL;
  1360. PFNGLCONVOLUTIONPARAMETERIEXTPROC __glewConvolutionParameteriEXT = NULL;
  1361. PFNGLCONVOLUTIONPARAMETERIVEXTPROC __glewConvolutionParameterivEXT = NULL;
  1362. PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC __glewCopyConvolutionFilter1DEXT = NULL;
  1363. PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC __glewCopyConvolutionFilter2DEXT = NULL;
  1364. PFNGLGETCONVOLUTIONFILTEREXTPROC __glewGetConvolutionFilterEXT = NULL;
  1365. PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC __glewGetConvolutionParameterfvEXT = NULL;
  1366. PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC __glewGetConvolutionParameterivEXT = NULL;
  1367. PFNGLGETSEPARABLEFILTEREXTPROC __glewGetSeparableFilterEXT = NULL;
  1368. PFNGLSEPARABLEFILTER2DEXTPROC __glewSeparableFilter2DEXT = NULL;
  1369. PFNGLBINORMALPOINTEREXTPROC __glewBinormalPointerEXT = NULL;
  1370. PFNGLTANGENTPOINTEREXTPROC __glewTangentPointerEXT = NULL;
  1371. PFNGLCOPYTEXIMAGE1DEXTPROC __glewCopyTexImage1DEXT = NULL;
  1372. PFNGLCOPYTEXIMAGE2DEXTPROC __glewCopyTexImage2DEXT = NULL;
  1373. PFNGLCOPYTEXSUBIMAGE1DEXTPROC __glewCopyTexSubImage1DEXT = NULL;
  1374. PFNGLCOPYTEXSUBIMAGE2DEXTPROC __glewCopyTexSubImage2DEXT = NULL;
  1375. PFNGLCOPYTEXSUBIMAGE3DEXTPROC __glewCopyTexSubImage3DEXT = NULL;
  1376. PFNGLCULLPARAMETERDVEXTPROC __glewCullParameterdvEXT = NULL;
  1377. PFNGLCULLPARAMETERFVEXTPROC __glewCullParameterfvEXT = NULL;
  1378. PFNGLINSERTEVENTMARKEREXTPROC __glewInsertEventMarkerEXT = NULL;
  1379. PFNGLPOPGROUPMARKEREXTPROC __glewPopGroupMarkerEXT = NULL;
  1380. PFNGLPUSHGROUPMARKEREXTPROC __glewPushGroupMarkerEXT = NULL;
  1381. PFNGLDEPTHBOUNDSEXTPROC __glewDepthBoundsEXT = NULL;
  1382. PFNGLBINDMULTITEXTUREEXTPROC __glewBindMultiTextureEXT = NULL;
  1383. PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC __glewCheckNamedFramebufferStatusEXT = NULL;
  1384. PFNGLCLIENTATTRIBDEFAULTEXTPROC __glewClientAttribDefaultEXT = NULL;
  1385. PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC __glewCompressedMultiTexImage1DEXT = NULL;
  1386. PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC __glewCompressedMultiTexImage2DEXT = NULL;
  1387. PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC __glewCompressedMultiTexImage3DEXT = NULL;
  1388. PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC __glewCompressedMultiTexSubImage1DEXT = NULL;
  1389. PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC __glewCompressedMultiTexSubImage2DEXT = NULL;
  1390. PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC __glewCompressedMultiTexSubImage3DEXT = NULL;
  1391. PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC __glewCompressedTextureImage1DEXT = NULL;
  1392. PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC __glewCompressedTextureImage2DEXT = NULL;
  1393. PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC __glewCompressedTextureImage3DEXT = NULL;
  1394. PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC __glewCompressedTextureSubImage1DEXT = NULL;
  1395. PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC __glewCompressedTextureSubImage2DEXT = NULL;
  1396. PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC __glewCompressedTextureSubImage3DEXT = NULL;
  1397. PFNGLCOPYMULTITEXIMAGE1DEXTPROC __glewCopyMultiTexImage1DEXT = NULL;
  1398. PFNGLCOPYMULTITEXIMAGE2DEXTPROC __glewCopyMultiTexImage2DEXT = NULL;
  1399. PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC __glewCopyMultiTexSubImage1DEXT = NULL;
  1400. PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC __glewCopyMultiTexSubImage2DEXT = NULL;
  1401. PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC __glewCopyMultiTexSubImage3DEXT = NULL;
  1402. PFNGLCOPYTEXTUREIMAGE1DEXTPROC __glewCopyTextureImage1DEXT = NULL;
  1403. PFNGLCOPYTEXTUREIMAGE2DEXTPROC __glewCopyTextureImage2DEXT = NULL;
  1404. PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC __glewCopyTextureSubImage1DEXT = NULL;
  1405. PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC __glewCopyTextureSubImage2DEXT = NULL;
  1406. PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC __glewCopyTextureSubImage3DEXT = NULL;
  1407. PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC __glewDisableClientStateIndexedEXT = NULL;
  1408. PFNGLDISABLECLIENTSTATEIEXTPROC __glewDisableClientStateiEXT = NULL;
  1409. PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC __glewDisableVertexArrayAttribEXT = NULL;
  1410. PFNGLDISABLEVERTEXARRAYEXTPROC __glewDisableVertexArrayEXT = NULL;
  1411. PFNGLENABLECLIENTSTATEINDEXEDEXTPROC __glewEnableClientStateIndexedEXT = NULL;
  1412. PFNGLENABLECLIENTSTATEIEXTPROC __glewEnableClientStateiEXT = NULL;
  1413. PFNGLENABLEVERTEXARRAYATTRIBEXTPROC __glewEnableVertexArrayAttribEXT = NULL;
  1414. PFNGLENABLEVERTEXARRAYEXTPROC __glewEnableVertexArrayEXT = NULL;
  1415. PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC __glewFlushMappedNamedBufferRangeEXT = NULL;
  1416. PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC __glewFramebufferDrawBufferEXT = NULL;
  1417. PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC __glewFramebufferDrawBuffersEXT = NULL;
  1418. PFNGLFRAMEBUFFERREADBUFFEREXTPROC __glewFramebufferReadBufferEXT = NULL;
  1419. PFNGLGENERATEMULTITEXMIPMAPEXTPROC __glewGenerateMultiTexMipmapEXT = NULL;
  1420. PFNGLGENERATETEXTUREMIPMAPEXTPROC __glewGenerateTextureMipmapEXT = NULL;
  1421. PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC __glewGetCompressedMultiTexImageEXT = NULL;
  1422. PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC __glewGetCompressedTextureImageEXT = NULL;
  1423. PFNGLGETDOUBLEINDEXEDVEXTPROC __glewGetDoubleIndexedvEXT = NULL;
  1424. PFNGLGETDOUBLEI_VEXTPROC __glewGetDoublei_vEXT = NULL;
  1425. PFNGLGETFLOATINDEXEDVEXTPROC __glewGetFloatIndexedvEXT = NULL;
  1426. PFNGLGETFLOATI_VEXTPROC __glewGetFloati_vEXT = NULL;
  1427. PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC __glewGetFramebufferParameterivEXT = NULL;
  1428. PFNGLGETMULTITEXENVFVEXTPROC __glewGetMultiTexEnvfvEXT = NULL;
  1429. PFNGLGETMULTITEXENVIVEXTPROC __glewGetMultiTexEnvivEXT = NULL;
  1430. PFNGLGETMULTITEXGENDVEXTPROC __glewGetMultiTexGendvEXT = NULL;
  1431. PFNGLGETMULTITEXGENFVEXTPROC __glewGetMultiTexGenfvEXT = NULL;
  1432. PFNGLGETMULTITEXGENIVEXTPROC __glewGetMultiTexGenivEXT = NULL;
  1433. PFNGLGETMULTITEXIMAGEEXTPROC __glewGetMultiTexImageEXT = NULL;
  1434. PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC __glewGetMultiTexLevelParameterfvEXT = NULL;
  1435. PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC __glewGetMultiTexLevelParameterivEXT = NULL;
  1436. PFNGLGETMULTITEXPARAMETERIIVEXTPROC __glewGetMultiTexParameterIivEXT = NULL;
  1437. PFNGLGETMULTITEXPARAMETERIUIVEXTPROC __glewGetMultiTexParameterIuivEXT = NULL;
  1438. PFNGLGETMULTITEXPARAMETERFVEXTPROC __glewGetMultiTexParameterfvEXT = NULL;
  1439. PFNGLGETMULTITEXPARAMETERIVEXTPROC __glewGetMultiTexParameterivEXT = NULL;
  1440. PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC __glewGetNamedBufferParameterivEXT = NULL;
  1441. PFNGLGETNAMEDBUFFERPOINTERVEXTPROC __glewGetNamedBufferPointervEXT = NULL;
  1442. PFNGLGETNAMEDBUFFERSUBDATAEXTPROC __glewGetNamedBufferSubDataEXT = NULL;
  1443. PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC __glewGetNamedFramebufferAttachmentParameterivEXT = NULL;
  1444. PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC __glewGetNamedProgramLocalParameterIivEXT = NULL;
  1445. PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC __glewGetNamedProgramLocalParameterIuivEXT = NULL;
  1446. PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC __glewGetNamedProgramLocalParameterdvEXT = NULL;
  1447. PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC __glewGetNamedProgramLocalParameterfvEXT = NULL;
  1448. PFNGLGETNAMEDPROGRAMSTRINGEXTPROC __glewGetNamedProgramStringEXT = NULL;
  1449. PFNGLGETNAMEDPROGRAMIVEXTPROC __glewGetNamedProgramivEXT = NULL;
  1450. PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC __glewGetNamedRenderbufferParameterivEXT = NULL;
  1451. PFNGLGETPOINTERINDEXEDVEXTPROC __glewGetPointerIndexedvEXT = NULL;
  1452. PFNGLGETPOINTERI_VEXTPROC __glewGetPointeri_vEXT = NULL;
  1453. PFNGLGETTEXTUREIMAGEEXTPROC __glewGetTextureImageEXT = NULL;
  1454. PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC __glewGetTextureLevelParameterfvEXT = NULL;
  1455. PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC __glewGetTextureLevelParameterivEXT = NULL;
  1456. PFNGLGETTEXTUREPARAMETERIIVEXTPROC __glewGetTextureParameterIivEXT = NULL;
  1457. PFNGLGETTEXTUREPARAMETERIUIVEXTPROC __glewGetTextureParameterIuivEXT = NULL;
  1458. PFNGLGETTEXTUREPARAMETERFVEXTPROC __glewGetTextureParameterfvEXT = NULL;
  1459. PFNGLGETTEXTUREPARAMETERIVEXTPROC __glewGetTextureParameterivEXT = NULL;
  1460. PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC __glewGetVertexArrayIntegeri_vEXT = NULL;
  1461. PFNGLGETVERTEXARRAYINTEGERVEXTPROC __glewGetVertexArrayIntegervEXT = NULL;
  1462. PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC __glewGetVertexArrayPointeri_vEXT = NULL;
  1463. PFNGLGETVERTEXARRAYPOINTERVEXTPROC __glewGetVertexArrayPointervEXT = NULL;
  1464. PFNGLMAPNAMEDBUFFEREXTPROC __glewMapNamedBufferEXT = NULL;
  1465. PFNGLMAPNAMEDBUFFERRANGEEXTPROC __glewMapNamedBufferRangeEXT = NULL;
  1466. PFNGLMATRIXFRUSTUMEXTPROC __glewMatrixFrustumEXT = NULL;
  1467. PFNGLMATRIXLOADIDENTITYEXTPROC __glewMatrixLoadIdentityEXT = NULL;
  1468. PFNGLMATRIXLOADTRANSPOSEDEXTPROC __glewMatrixLoadTransposedEXT = NULL;
  1469. PFNGLMATRIXLOADTRANSPOSEFEXTPROC __glewMatrixLoadTransposefEXT = NULL;
  1470. PFNGLMATRIXLOADDEXTPROC __glewMatrixLoaddEXT = NULL;
  1471. PFNGLMATRIXLOADFEXTPROC __glewMatrixLoadfEXT = NULL;
  1472. PFNGLMATRIXMULTTRANSPOSEDEXTPROC __glewMatrixMultTransposedEXT = NULL;
  1473. PFNGLMATRIXMULTTRANSPOSEFEXTPROC __glewMatrixMultTransposefEXT = NULL;
  1474. PFNGLMATRIXMULTDEXTPROC __glewMatrixMultdEXT = NULL;
  1475. PFNGLMATRIXMULTFEXTPROC __glewMatrixMultfEXT = NULL;
  1476. PFNGLMATRIXORTHOEXTPROC __glewMatrixOrthoEXT = NULL;
  1477. PFNGLMATRIXPOPEXTPROC __glewMatrixPopEXT = NULL;
  1478. PFNGLMATRIXPUSHEXTPROC __glewMatrixPushEXT = NULL;
  1479. PFNGLMATRIXROTATEDEXTPROC __glewMatrixRotatedEXT = NULL;
  1480. PFNGLMATRIXROTATEFEXTPROC __glewMatrixRotatefEXT = NULL;
  1481. PFNGLMATRIXSCALEDEXTPROC __glewMatrixScaledEXT = NULL;
  1482. PFNGLMATRIXSCALEFEXTPROC __glewMatrixScalefEXT = NULL;
  1483. PFNGLMATRIXTRANSLATEDEXTPROC __glewMatrixTranslatedEXT = NULL;
  1484. PFNGLMATRIXTRANSLATEFEXTPROC __glewMatrixTranslatefEXT = NULL;
  1485. PFNGLMULTITEXBUFFEREXTPROC __glewMultiTexBufferEXT = NULL;
  1486. PFNGLMULTITEXCOORDPOINTEREXTPROC __glewMultiTexCoordPointerEXT = NULL;
  1487. PFNGLMULTITEXENVFEXTPROC __glewMultiTexEnvfEXT = NULL;
  1488. PFNGLMULTITEXENVFVEXTPROC __glewMultiTexEnvfvEXT = NULL;
  1489. PFNGLMULTITEXENVIEXTPROC __glewMultiTexEnviEXT = NULL;
  1490. PFNGLMULTITEXENVIVEXTPROC __glewMultiTexEnvivEXT = NULL;
  1491. PFNGLMULTITEXGENDEXTPROC __glewMultiTexGendEXT = NULL;
  1492. PFNGLMULTITEXGENDVEXTPROC __glewMultiTexGendvEXT = NULL;
  1493. PFNGLMULTITEXGENFEXTPROC __glewMultiTexGenfEXT = NULL;
  1494. PFNGLMULTITEXGENFVEXTPROC __glewMultiTexGenfvEXT = NULL;
  1495. PFNGLMULTITEXGENIEXTPROC __glewMultiTexGeniEXT = NULL;
  1496. PFNGLMULTITEXGENIVEXTPROC __glewMultiTexGenivEXT = NULL;
  1497. PFNGLMULTITEXIMAGE1DEXTPROC __glewMultiTexImage1DEXT = NULL;
  1498. PFNGLMULTITEXIMAGE2DEXTPROC __glewMultiTexImage2DEXT = NULL;
  1499. PFNGLMULTITEXIMAGE3DEXTPROC __glewMultiTexImage3DEXT = NULL;
  1500. PFNGLMULTITEXPARAMETERIIVEXTPROC __glewMultiTexParameterIivEXT = NULL;
  1501. PFNGLMULTITEXPARAMETERIUIVEXTPROC __glewMultiTexParameterIuivEXT = NULL;
  1502. PFNGLMULTITEXPARAMETERFEXTPROC __glewMultiTexParameterfEXT = NULL;
  1503. PFNGLMULTITEXPARAMETERFVEXTPROC __glewMultiTexParameterfvEXT = NULL;
  1504. PFNGLMULTITEXPARAMETERIEXTPROC __glewMultiTexParameteriEXT = NULL;
  1505. PFNGLMULTITEXPARAMETERIVEXTPROC __glewMultiTexParameterivEXT = NULL;
  1506. PFNGLMULTITEXRENDERBUFFEREXTPROC __glewMultiTexRenderbufferEXT = NULL;
  1507. PFNGLMULTITEXSUBIMAGE1DEXTPROC __glewMultiTexSubImage1DEXT = NULL;
  1508. PFNGLMULTITEXSUBIMAGE2DEXTPROC __glewMultiTexSubImage2DEXT = NULL;
  1509. PFNGLMULTITEXSUBIMAGE3DEXTPROC __glewMultiTexSubImage3DEXT = NULL;
  1510. PFNGLNAMEDBUFFERDATAEXTPROC __glewNamedBufferDataEXT = NULL;
  1511. PFNGLNAMEDBUFFERSUBDATAEXTPROC __glewNamedBufferSubDataEXT = NULL;
  1512. PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC __glewNamedCopyBufferSubDataEXT = NULL;
  1513. PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC __glewNamedFramebufferRenderbufferEXT = NULL;
  1514. PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC __glewNamedFramebufferTexture1DEXT = NULL;
  1515. PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC __glewNamedFramebufferTexture2DEXT = NULL;
  1516. PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC __glewNamedFramebufferTexture3DEXT = NULL;
  1517. PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC __glewNamedFramebufferTextureEXT = NULL;
  1518. PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC __glewNamedFramebufferTextureFaceEXT = NULL;
  1519. PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC __glewNamedFramebufferTextureLayerEXT = NULL;
  1520. PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC __glewNamedProgramLocalParameter4dEXT = NULL;
  1521. PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC __glewNamedProgramLocalParameter4dvEXT = NULL;
  1522. PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC __glewNamedProgramLocalParameter4fEXT = NULL;
  1523. PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC __glewNamedProgramLocalParameter4fvEXT = NULL;
  1524. PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC __glewNamedProgramLocalParameterI4iEXT = NULL;
  1525. PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC __glewNamedProgramLocalParameterI4ivEXT = NULL;
  1526. PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC __glewNamedProgramLocalParameterI4uiEXT = NULL;
  1527. PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC __glewNamedProgramLocalParameterI4uivEXT = NULL;
  1528. PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC __glewNamedProgramLocalParameters4fvEXT = NULL;
  1529. PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC __glewNamedProgramLocalParametersI4ivEXT = NULL;
  1530. PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC __glewNamedProgramLocalParametersI4uivEXT = NULL;
  1531. PFNGLNAMEDPROGRAMSTRINGEXTPROC __glewNamedProgramStringEXT = NULL;
  1532. PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC __glewNamedRenderbufferStorageEXT = NULL;
  1533. PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC __glewNamedRenderbufferStorageMultisampleCoverageEXT = NULL;
  1534. PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewNamedRenderbufferStorageMultisampleEXT = NULL;
  1535. PFNGLPROGRAMUNIFORM1FEXTPROC __glewProgramUniform1fEXT = NULL;
  1536. PFNGLPROGRAMUNIFORM1FVEXTPROC __glewProgramUniform1fvEXT = NULL;
  1537. PFNGLPROGRAMUNIFORM1IEXTPROC __glewProgramUniform1iEXT = NULL;
  1538. PFNGLPROGRAMUNIFORM1IVEXTPROC __glewProgramUniform1ivEXT = NULL;
  1539. PFNGLPROGRAMUNIFORM1UIEXTPROC __glewProgramUniform1uiEXT = NULL;
  1540. PFNGLPROGRAMUNIFORM1UIVEXTPROC __glewProgramUniform1uivEXT = NULL;
  1541. PFNGLPROGRAMUNIFORM2FEXTPROC __glewProgramUniform2fEXT = NULL;
  1542. PFNGLPROGRAMUNIFORM2FVEXTPROC __glewProgramUniform2fvEXT = NULL;
  1543. PFNGLPROGRAMUNIFORM2IEXTPROC __glewProgramUniform2iEXT = NULL;
  1544. PFNGLPROGRAMUNIFORM2IVEXTPROC __glewProgramUniform2ivEXT = NULL;
  1545. PFNGLPROGRAMUNIFORM2UIEXTPROC __glewProgramUniform2uiEXT = NULL;
  1546. PFNGLPROGRAMUNIFORM2UIVEXTPROC __glewProgramUniform2uivEXT = NULL;
  1547. PFNGLPROGRAMUNIFORM3FEXTPROC __glewProgramUniform3fEXT = NULL;
  1548. PFNGLPROGRAMUNIFORM3FVEXTPROC __glewProgramUniform3fvEXT = NULL;
  1549. PFNGLPROGRAMUNIFORM3IEXTPROC __glewProgramUniform3iEXT = NULL;
  1550. PFNGLPROGRAMUNIFORM3IVEXTPROC __glewProgramUniform3ivEXT = NULL;
  1551. PFNGLPROGRAMUNIFORM3UIEXTPROC __glewProgramUniform3uiEXT = NULL;
  1552. PFNGLPROGRAMUNIFORM3UIVEXTPROC __glewProgramUniform3uivEXT = NULL;
  1553. PFNGLPROGRAMUNIFORM4FEXTPROC __glewProgramUniform4fEXT = NULL;
  1554. PFNGLPROGRAMUNIFORM4FVEXTPROC __glewProgramUniform4fvEXT = NULL;
  1555. PFNGLPROGRAMUNIFORM4IEXTPROC __glewProgramUniform4iEXT = NULL;
  1556. PFNGLPROGRAMUNIFORM4IVEXTPROC __glewProgramUniform4ivEXT = NULL;
  1557. PFNGLPROGRAMUNIFORM4UIEXTPROC __glewProgramUniform4uiEXT = NULL;
  1558. PFNGLPROGRAMUNIFORM4UIVEXTPROC __glewProgramUniform4uivEXT = NULL;
  1559. PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC __glewProgramUniformMatrix2fvEXT = NULL;
  1560. PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC __glewProgramUniformMatrix2x3fvEXT = NULL;
  1561. PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC __glewProgramUniformMatrix2x4fvEXT = NULL;
  1562. PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC __glewProgramUniformMatrix3fvEXT = NULL;
  1563. PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC __glewProgramUniformMatrix3x2fvEXT = NULL;
  1564. PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC __glewProgramUniformMatrix3x4fvEXT = NULL;
  1565. PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC __glewProgramUniformMatrix4fvEXT = NULL;
  1566. PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC __glewProgramUniformMatrix4x2fvEXT = NULL;
  1567. PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC __glewProgramUniformMatrix4x3fvEXT = NULL;
  1568. PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC __glewPushClientAttribDefaultEXT = NULL;
  1569. PFNGLTEXTUREBUFFEREXTPROC __glewTextureBufferEXT = NULL;
  1570. PFNGLTEXTUREIMAGE1DEXTPROC __glewTextureImage1DEXT = NULL;
  1571. PFNGLTEXTUREIMAGE2DEXTPROC __glewTextureImage2DEXT = NULL;
  1572. PFNGLTEXTUREIMAGE3DEXTPROC __glewTextureImage3DEXT = NULL;
  1573. PFNGLTEXTUREPARAMETERIIVEXTPROC __glewTextureParameterIivEXT = NULL;
  1574. PFNGLTEXTUREPARAMETERIUIVEXTPROC __glewTextureParameterIuivEXT = NULL;
  1575. PFNGLTEXTUREPARAMETERFEXTPROC __glewTextureParameterfEXT = NULL;
  1576. PFNGLTEXTUREPARAMETERFVEXTPROC __glewTextureParameterfvEXT = NULL;
  1577. PFNGLTEXTUREPARAMETERIEXTPROC __glewTextureParameteriEXT = NULL;
  1578. PFNGLTEXTUREPARAMETERIVEXTPROC __glewTextureParameterivEXT = NULL;
  1579. PFNGLTEXTURERENDERBUFFEREXTPROC __glewTextureRenderbufferEXT = NULL;
  1580. PFNGLTEXTURESUBIMAGE1DEXTPROC __glewTextureSubImage1DEXT = NULL;
  1581. PFNGLTEXTURESUBIMAGE2DEXTPROC __glewTextureSubImage2DEXT = NULL;
  1582. PFNGLTEXTURESUBIMAGE3DEXTPROC __glewTextureSubImage3DEXT = NULL;
  1583. PFNGLUNMAPNAMEDBUFFEREXTPROC __glewUnmapNamedBufferEXT = NULL;
  1584. PFNGLVERTEXARRAYCOLOROFFSETEXTPROC __glewVertexArrayColorOffsetEXT = NULL;
  1585. PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC __glewVertexArrayEdgeFlagOffsetEXT = NULL;
  1586. PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC __glewVertexArrayFogCoordOffsetEXT = NULL;
  1587. PFNGLVERTEXARRAYINDEXOFFSETEXTPROC __glewVertexArrayIndexOffsetEXT = NULL;
  1588. PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC __glewVertexArrayMultiTexCoordOffsetEXT = NULL;
  1589. PFNGLVERTEXARRAYNORMALOFFSETEXTPROC __glewVertexArrayNormalOffsetEXT = NULL;
  1590. PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC __glewVertexArraySecondaryColorOffsetEXT = NULL;
  1591. PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC __glewVertexArrayTexCoordOffsetEXT = NULL;
  1592. PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC __glewVertexArrayVertexAttribIOffsetEXT = NULL;
  1593. PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC __glewVertexArrayVertexAttribOffsetEXT = NULL;
  1594. PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC __glewVertexArrayVertexOffsetEXT = NULL;
  1595. PFNGLCOLORMASKINDEXEDEXTPROC __glewColorMaskIndexedEXT = NULL;
  1596. PFNGLDISABLEINDEXEDEXTPROC __glewDisableIndexedEXT = NULL;
  1597. PFNGLENABLEINDEXEDEXTPROC __glewEnableIndexedEXT = NULL;
  1598. PFNGLGETBOOLEANINDEXEDVEXTPROC __glewGetBooleanIndexedvEXT = NULL;
  1599. PFNGLGETINTEGERINDEXEDVEXTPROC __glewGetIntegerIndexedvEXT = NULL;
  1600. PFNGLISENABLEDINDEXEDEXTPROC __glewIsEnabledIndexedEXT = NULL;
  1601. PFNGLDRAWARRAYSINSTANCEDEXTPROC __glewDrawArraysInstancedEXT = NULL;
  1602. PFNGLDRAWELEMENTSINSTANCEDEXTPROC __glewDrawElementsInstancedEXT = NULL;
  1603. PFNGLDRAWRANGEELEMENTSEXTPROC __glewDrawRangeElementsEXT = NULL;
  1604. PFNGLFOGCOORDPOINTEREXTPROC __glewFogCoordPointerEXT = NULL;
  1605. PFNGLFOGCOORDDEXTPROC __glewFogCoorddEXT = NULL;
  1606. PFNGLFOGCOORDDVEXTPROC __glewFogCoorddvEXT = NULL;
  1607. PFNGLFOGCOORDFEXTPROC __glewFogCoordfEXT = NULL;
  1608. PFNGLFOGCOORDFVEXTPROC __glewFogCoordfvEXT = NULL;
  1609. PFNGLFRAGMENTCOLORMATERIALEXTPROC __glewFragmentColorMaterialEXT = NULL;
  1610. PFNGLFRAGMENTLIGHTMODELFEXTPROC __glewFragmentLightModelfEXT = NULL;
  1611. PFNGLFRAGMENTLIGHTMODELFVEXTPROC __glewFragmentLightModelfvEXT = NULL;
  1612. PFNGLFRAGMENTLIGHTMODELIEXTPROC __glewFragmentLightModeliEXT = NULL;
  1613. PFNGLFRAGMENTLIGHTMODELIVEXTPROC __glewFragmentLightModelivEXT = NULL;
  1614. PFNGLFRAGMENTLIGHTFEXTPROC __glewFragmentLightfEXT = NULL;
  1615. PFNGLFRAGMENTLIGHTFVEXTPROC __glewFragmentLightfvEXT = NULL;
  1616. PFNGLFRAGMENTLIGHTIEXTPROC __glewFragmentLightiEXT = NULL;
  1617. PFNGLFRAGMENTLIGHTIVEXTPROC __glewFragmentLightivEXT = NULL;
  1618. PFNGLFRAGMENTMATERIALFEXTPROC __glewFragmentMaterialfEXT = NULL;
  1619. PFNGLFRAGMENTMATERIALFVEXTPROC __glewFragmentMaterialfvEXT = NULL;
  1620. PFNGLFRAGMENTMATERIALIEXTPROC __glewFragmentMaterialiEXT = NULL;
  1621. PFNGLFRAGMENTMATERIALIVEXTPROC __glewFragmentMaterialivEXT = NULL;
  1622. PFNGLGETFRAGMENTLIGHTFVEXTPROC __glewGetFragmentLightfvEXT = NULL;
  1623. PFNGLGETFRAGMENTLIGHTIVEXTPROC __glewGetFragmentLightivEXT = NULL;
  1624. PFNGLGETFRAGMENTMATERIALFVEXTPROC __glewGetFragmentMaterialfvEXT = NULL;
  1625. PFNGLGETFRAGMENTMATERIALIVEXTPROC __glewGetFragmentMaterialivEXT = NULL;
  1626. PFNGLLIGHTENVIEXTPROC __glewLightEnviEXT = NULL;
  1627. PFNGLBLITFRAMEBUFFEREXTPROC __glewBlitFramebufferEXT = NULL;
  1628. PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC __glewRenderbufferStorageMultisampleEXT = NULL;
  1629. PFNGLBINDFRAMEBUFFEREXTPROC __glewBindFramebufferEXT = NULL;
  1630. PFNGLBINDRENDERBUFFEREXTPROC __glewBindRenderbufferEXT = NULL;
  1631. PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC __glewCheckFramebufferStatusEXT = NULL;
  1632. PFNGLDELETEFRAMEBUFFERSEXTPROC __glewDeleteFramebuffersEXT = NULL;
  1633. PFNGLDELETERENDERBUFFERSEXTPROC __glewDeleteRenderbuffersEXT = NULL;
  1634. PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC __glewFramebufferRenderbufferEXT = NULL;
  1635. PFNGLFRAMEBUFFERTEXTURE1DEXTPROC __glewFramebufferTexture1DEXT = NULL;
  1636. PFNGLFRAMEBUFFERTEXTURE2DEXTPROC __glewFramebufferTexture2DEXT = NULL;
  1637. PFNGLFRAMEBUFFERTEXTURE3DEXTPROC __glewFramebufferTexture3DEXT = NULL;
  1638. PFNGLGENFRAMEBUFFERSEXTPROC __glewGenFramebuffersEXT = NULL;
  1639. PFNGLGENRENDERBUFFERSEXTPROC __glewGenRenderbuffersEXT = NULL;
  1640. PFNGLGENERATEMIPMAPEXTPROC __glewGenerateMipmapEXT = NULL;
  1641. PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC __glewGetFramebufferAttachmentParameterivEXT = NULL;
  1642. PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC __glewGetRenderbufferParameterivEXT = NULL;
  1643. PFNGLISFRAMEBUFFEREXTPROC __glewIsFramebufferEXT = NULL;
  1644. PFNGLISRENDERBUFFEREXTPROC __glewIsRenderbufferEXT = NULL;
  1645. PFNGLRENDERBUFFERSTORAGEEXTPROC __glewRenderbufferStorageEXT = NULL;
  1646. PFNGLFRAMEBUFFERTEXTUREEXTPROC __glewFramebufferTextureEXT = NULL;
  1647. PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC __glewFramebufferTextureFaceEXT = NULL;
  1648. PFNGLPROGRAMPARAMETERIEXTPROC __glewProgramParameteriEXT = NULL;
  1649. PFNGLPROGRAMENVPARAMETERS4FVEXTPROC __glewProgramEnvParameters4fvEXT = NULL;
  1650. PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC __glewProgramLocalParameters4fvEXT = NULL;
  1651. PFNGLBINDFRAGDATALOCATIONEXTPROC __glewBindFragDataLocationEXT = NULL;
  1652. PFNGLGETFRAGDATALOCATIONEXTPROC __glewGetFragDataLocationEXT = NULL;
  1653. PFNGLGETUNIFORMUIVEXTPROC __glewGetUniformuivEXT = NULL;
  1654. PFNGLGETVERTEXATTRIBIIVEXTPROC __glewGetVertexAttribIivEXT = NULL;
  1655. PFNGLGETVERTEXATTRIBIUIVEXTPROC __glewGetVertexAttribIuivEXT = NULL;
  1656. PFNGLUNIFORM1UIEXTPROC __glewUniform1uiEXT = NULL;
  1657. PFNGLUNIFORM1UIVEXTPROC __glewUniform1uivEXT = NULL;
  1658. PFNGLUNIFORM2UIEXTPROC __glewUniform2uiEXT = NULL;
  1659. PFNGLUNIFORM2UIVEXTPROC __glewUniform2uivEXT = NULL;
  1660. PFNGLUNIFORM3UIEXTPROC __glewUniform3uiEXT = NULL;
  1661. PFNGLUNIFORM3UIVEXTPROC __glewUniform3uivEXT = NULL;
  1662. PFNGLUNIFORM4UIEXTPROC __glewUniform4uiEXT = NULL;
  1663. PFNGLUNIFORM4UIVEXTPROC __glewUniform4uivEXT = NULL;
  1664. PFNGLVERTEXATTRIBI1IEXTPROC __glewVertexAttribI1iEXT = NULL;
  1665. PFNGLVERTEXATTRIBI1IVEXTPROC __glewVertexAttribI1ivEXT = NULL;
  1666. PFNGLVERTEXATTRIBI1UIEXTPROC __glewVertexAttribI1uiEXT = NULL;
  1667. PFNGLVERTEXATTRIBI1UIVEXTPROC __glewVertexAttribI1uivEXT = NULL;
  1668. PFNGLVERTEXATTRIBI2IEXTPROC __glewVertexAttribI2iEXT = NULL;
  1669. PFNGLVERTEXATTRIBI2IVEXTPROC __glewVertexAttribI2ivEXT = NULL;
  1670. PFNGLVERTEXATTRIBI2UIEXTPROC __glewVertexAttribI2uiEXT = NULL;
  1671. PFNGLVERTEXATTRIBI2UIVEXTPROC __glewVertexAttribI2uivEXT = NULL;
  1672. PFNGLVERTEXATTRIBI3IEXTPROC __glewVertexAttribI3iEXT = NULL;
  1673. PFNGLVERTEXATTRIBI3IVEXTPROC __glewVertexAttribI3ivEXT = NULL;
  1674. PFNGLVERTEXATTRIBI3UIEXTPROC __glewVertexAttribI3uiEXT = NULL;
  1675. PFNGLVERTEXATTRIBI3UIVEXTPROC __glewVertexAttribI3uivEXT = NULL;
  1676. PFNGLVERTEXATTRIBI4BVEXTPROC __glewVertexAttribI4bvEXT = NULL;
  1677. PFNGLVERTEXATTRIBI4IEXTPROC __glewVertexAttribI4iEXT = NULL;
  1678. PFNGLVERTEXATTRIBI4IVEXTPROC __glewVertexAttribI4ivEXT = NULL;
  1679. PFNGLVERTEXATTRIBI4SVEXTPROC __glewVertexAttribI4svEXT = NULL;
  1680. PFNGLVERTEXATTRIBI4UBVEXTPROC __glewVertexAttribI4ubvEXT = NULL;
  1681. PFNGLVERTEXATTRIBI4UIEXTPROC __glewVertexAttribI4uiEXT = NULL;
  1682. PFNGLVERTEXATTRIBI4UIVEXTPROC __glewVertexAttribI4uivEXT = NULL;
  1683. PFNGLVERTEXATTRIBI4USVEXTPROC __glewVertexAttribI4usvEXT = NULL;
  1684. PFNGLVERTEXATTRIBIPOINTEREXTPROC __glewVertexAttribIPointerEXT = NULL;
  1685. PFNGLGETHISTOGRAMEXTPROC __glewGetHistogramEXT = NULL;
  1686. PFNGLGETHISTOGRAMPARAMETERFVEXTPROC __glewGetHistogramParameterfvEXT = NULL;
  1687. PFNGLGETHISTOGRAMPARAMETERIVEXTPROC __glewGetHistogramParameterivEXT = NULL;
  1688. PFNGLGETMINMAXEXTPROC __glewGetMinmaxEXT = NULL;
  1689. PFNGLGETMINMAXPARAMETERFVEXTPROC __glewGetMinmaxParameterfvEXT = NULL;
  1690. PFNGLGETMINMAXPARAMETERIVEXTPROC __glewGetMinmaxParameterivEXT = NULL;
  1691. PFNGLHISTOGRAMEXTPROC __glewHistogramEXT = NULL;
  1692. PFNGLMINMAXEXTPROC __glewMinmaxEXT = NULL;
  1693. PFNGLRESETHISTOGRAMEXTPROC __glewResetHistogramEXT = NULL;
  1694. PFNGLRESETMINMAXEXTPROC __glewResetMinmaxEXT = NULL;
  1695. PFNGLINDEXFUNCEXTPROC __glewIndexFuncEXT = NULL;
  1696. PFNGLINDEXMATERIALEXTPROC __glewIndexMaterialEXT = NULL;
  1697. PFNGLAPPLYTEXTUREEXTPROC __glewApplyTextureEXT = NULL;
  1698. PFNGLTEXTURELIGHTEXTPROC __glewTextureLightEXT = NULL;
  1699. PFNGLTEXTUREMATERIALEXTPROC __glewTextureMaterialEXT = NULL;
  1700. PFNGLMULTIDRAWARRAYSEXTPROC __glewMultiDrawArraysEXT = NULL;
  1701. PFNGLMULTIDRAWELEMENTSEXTPROC __glewMultiDrawElementsEXT = NULL;
  1702. PFNGLSAMPLEMASKEXTPROC __glewSampleMaskEXT = NULL;
  1703. PFNGLSAMPLEPATTERNEXTPROC __glewSamplePatternEXT = NULL;
  1704. PFNGLCOLORTABLEEXTPROC __glewColorTableEXT = NULL;
  1705. PFNGLGETCOLORTABLEEXTPROC __glewGetColorTableEXT = NULL;
  1706. PFNGLGETCOLORTABLEPARAMETERFVEXTPROC __glewGetColorTableParameterfvEXT = NULL;
  1707. PFNGLGETCOLORTABLEPARAMETERIVEXTPROC __glewGetColorTableParameterivEXT = NULL;
  1708. PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC __glewGetPixelTransformParameterfvEXT = NULL;
  1709. PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC __glewGetPixelTransformParameterivEXT = NULL;
  1710. PFNGLPIXELTRANSFORMPARAMETERFEXTPROC __glewPixelTransformParameterfEXT = NULL;
  1711. PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC __glewPixelTransformParameterfvEXT = NULL;
  1712. PFNGLPIXELTRANSFORMPARAMETERIEXTPROC __glewPixelTransformParameteriEXT = NULL;
  1713. PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC __glewPixelTransformParameterivEXT = NULL;
  1714. PFNGLPOINTPARAMETERFEXTPROC __glewPointParameterfEXT = NULL;
  1715. PFNGLPOINTPARAMETERFVEXTPROC __glewPointParameterfvEXT = NULL;
  1716. PFNGLPOLYGONOFFSETEXTPROC __glewPolygonOffsetEXT = NULL;
  1717. PFNGLPROVOKINGVERTEXEXTPROC __glewProvokingVertexEXT = NULL;
  1718. PFNGLBEGINSCENEEXTPROC __glewBeginSceneEXT = NULL;
  1719. PFNGLENDSCENEEXTPROC __glewEndSceneEXT = NULL;
  1720. PFNGLSECONDARYCOLOR3BEXTPROC __glewSecondaryColor3bEXT = NULL;
  1721. PFNGLSECONDARYCOLOR3BVEXTPROC __glewSecondaryColor3bvEXT = NULL;
  1722. PFNGLSECONDARYCOLOR3DEXTPROC __glewSecondaryColor3dEXT = NULL;
  1723. PFNGLSECONDARYCOLOR3DVEXTPROC __glewSecondaryColor3dvEXT = NULL;
  1724. PFNGLSECONDARYCOLOR3FEXTPROC __glewSecondaryColor3fEXT = NULL;
  1725. PFNGLSECONDARYCOLOR3FVEXTPROC __glewSecondaryColor3fvEXT = NULL;
  1726. PFNGLSECONDARYCOLOR3IEXTPROC __glewSecondaryColor3iEXT = NULL;
  1727. PFNGLSECONDARYCOLOR3IVEXTPROC __glewSecondaryColor3ivEXT = NULL;
  1728. PFNGLSECONDARYCOLOR3SEXTPROC __glewSecondaryColor3sEXT = NULL;
  1729. PFNGLSECONDARYCOLOR3SVEXTPROC __glewSecondaryColor3svEXT = NULL;
  1730. PFNGLSECONDARYCOLOR3UBEXTPROC __glewSecondaryColor3ubEXT = NULL;
  1731. PFNGLSECONDARYCOLOR3UBVEXTPROC __glewSecondaryColor3ubvEXT = NULL;
  1732. PFNGLSECONDARYCOLOR3UIEXTPROC __glewSecondaryColor3uiEXT = NULL;
  1733. PFNGLSECONDARYCOLOR3UIVEXTPROC __glewSecondaryColor3uivEXT = NULL;
  1734. PFNGLSECONDARYCOLOR3USEXTPROC __glewSecondaryColor3usEXT = NULL;
  1735. PFNGLSECONDARYCOLOR3USVEXTPROC __glewSecondaryColor3usvEXT = NULL;
  1736. PFNGLSECONDARYCOLORPOINTEREXTPROC __glewSecondaryColorPointerEXT = NULL;
  1737. PFNGLACTIVEPROGRAMEXTPROC __glewActiveProgramEXT = NULL;
  1738. PFNGLCREATESHADERPROGRAMEXTPROC __glewCreateShaderProgramEXT = NULL;
  1739. PFNGLUSESHADERPROGRAMEXTPROC __glewUseShaderProgramEXT = NULL;
  1740. PFNGLBINDIMAGETEXTUREEXTPROC __glewBindImageTextureEXT = NULL;
  1741. PFNGLMEMORYBARRIEREXTPROC __glewMemoryBarrierEXT = NULL;
  1742. PFNGLACTIVESTENCILFACEEXTPROC __glewActiveStencilFaceEXT = NULL;
  1743. PFNGLTEXSUBIMAGE1DEXTPROC __glewTexSubImage1DEXT = NULL;
  1744. PFNGLTEXSUBIMAGE2DEXTPROC __glewTexSubImage2DEXT = NULL;
  1745. PFNGLTEXSUBIMAGE3DEXTPROC __glewTexSubImage3DEXT = NULL;
  1746. PFNGLTEXIMAGE3DEXTPROC __glewTexImage3DEXT = NULL;
  1747. PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC __glewFramebufferTextureLayerEXT = NULL;
  1748. PFNGLTEXBUFFEREXTPROC __glewTexBufferEXT = NULL;
  1749. PFNGLCLEARCOLORIIEXTPROC __glewClearColorIiEXT = NULL;
  1750. PFNGLCLEARCOLORIUIEXTPROC __glewClearColorIuiEXT = NULL;
  1751. PFNGLGETTEXPARAMETERIIVEXTPROC __glewGetTexParameterIivEXT = NULL;
  1752. PFNGLGETTEXPARAMETERIUIVEXTPROC __glewGetTexParameterIuivEXT = NULL;
  1753. PFNGLTEXPARAMETERIIVEXTPROC __glewTexParameterIivEXT = NULL;
  1754. PFNGLTEXPARAMETERIUIVEXTPROC __glewTexParameterIuivEXT = NULL;
  1755. PFNGLARETEXTURESRESIDENTEXTPROC __glewAreTexturesResidentEXT = NULL;
  1756. PFNGLBINDTEXTUREEXTPROC __glewBindTextureEXT = NULL;
  1757. PFNGLDELETETEXTURESEXTPROC __glewDeleteTexturesEXT = NULL;
  1758. PFNGLGENTEXTURESEXTPROC __glewGenTexturesEXT = NULL;
  1759. PFNGLISTEXTUREEXTPROC __glewIsTextureEXT = NULL;
  1760. PFNGLPRIORITIZETEXTURESEXTPROC __glewPrioritizeTexturesEXT = NULL;
  1761. PFNGLTEXTURENORMALEXTPROC __glewTextureNormalEXT = NULL;
  1762. PFNGLGETQUERYOBJECTI64VEXTPROC __glewGetQueryObjecti64vEXT = NULL;
  1763. PFNGLGETQUERYOBJECTUI64VEXTPROC __glewGetQueryObjectui64vEXT = NULL;
  1764. PFNGLBEGINTRANSFORMFEEDBACKEXTPROC __glewBeginTransformFeedbackEXT = NULL;
  1765. PFNGLBINDBUFFERBASEEXTPROC __glewBindBufferBaseEXT = NULL;
  1766. PFNGLBINDBUFFEROFFSETEXTPROC __glewBindBufferOffsetEXT = NULL;
  1767. PFNGLBINDBUFFERRANGEEXTPROC __glewBindBufferRangeEXT = NULL;
  1768. PFNGLENDTRANSFORMFEEDBACKEXTPROC __glewEndTransformFeedbackEXT = NULL;
  1769. PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC __glewGetTransformFeedbackVaryingEXT = NULL;
  1770. PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC __glewTransformFeedbackVaryingsEXT = NULL;
  1771. PFNGLARRAYELEMENTEXTPROC __glewArrayElementEXT = NULL;
  1772. PFNGLCOLORPOINTEREXTPROC __glewColorPointerEXT = NULL;
  1773. PFNGLDRAWARRAYSEXTPROC __glewDrawArraysEXT = NULL;
  1774. PFNGLEDGEFLAGPOINTEREXTPROC __glewEdgeFlagPointerEXT = NULL;
  1775. PFNGLINDEXPOINTEREXTPROC __glewIndexPointerEXT = NULL;
  1776. PFNGLNORMALPOINTEREXTPROC __glewNormalPointerEXT = NULL;
  1777. PFNGLTEXCOORDPOINTEREXTPROC __glewTexCoordPointerEXT = NULL;
  1778. PFNGLVERTEXPOINTEREXTPROC __glewVertexPointerEXT = NULL;
  1779. PFNGLGETVERTEXATTRIBLDVEXTPROC __glewGetVertexAttribLdvEXT = NULL;
  1780. PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC __glewVertexArrayVertexAttribLOffsetEXT = NULL;
  1781. PFNGLVERTEXATTRIBL1DEXTPROC __glewVertexAttribL1dEXT = NULL;
  1782. PFNGLVERTEXATTRIBL1DVEXTPROC __glewVertexAttribL1dvEXT = NULL;
  1783. PFNGLVERTEXATTRIBL2DEXTPROC __glewVertexAttribL2dEXT = NULL;
  1784. PFNGLVERTEXATTRIBL2DVEXTPROC __glewVertexAttribL2dvEXT = NULL;
  1785. PFNGLVERTEXATTRIBL3DEXTPROC __glewVertexAttribL3dEXT = NULL;
  1786. PFNGLVERTEXATTRIBL3DVEXTPROC __glewVertexAttribL3dvEXT = NULL;
  1787. PFNGLVERTEXATTRIBL4DEXTPROC __glewVertexAttribL4dEXT = NULL;
  1788. PFNGLVERTEXATTRIBL4DVEXTPROC __glewVertexAttribL4dvEXT = NULL;
  1789. PFNGLVERTEXATTRIBLPOINTEREXTPROC __glewVertexAttribLPointerEXT = NULL;
  1790. PFNGLBEGINVERTEXSHADEREXTPROC __glewBeginVertexShaderEXT = NULL;
  1791. PFNGLBINDLIGHTPARAMETEREXTPROC __glewBindLightParameterEXT = NULL;
  1792. PFNGLBINDMATERIALPARAMETEREXTPROC __glewBindMaterialParameterEXT = NULL;
  1793. PFNGLBINDPARAMETEREXTPROC __glewBindParameterEXT = NULL;
  1794. PFNGLBINDTEXGENPARAMETEREXTPROC __glewBindTexGenParameterEXT = NULL;
  1795. PFNGLBINDTEXTUREUNITPARAMETEREXTPROC __glewBindTextureUnitParameterEXT = NULL;
  1796. PFNGLBINDVERTEXSHADEREXTPROC __glewBindVertexShaderEXT = NULL;
  1797. PFNGLDELETEVERTEXSHADEREXTPROC __glewDeleteVertexShaderEXT = NULL;
  1798. PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC __glewDisableVariantClientStateEXT = NULL;
  1799. PFNGLENABLEVARIANTCLIENTSTATEEXTPROC __glewEnableVariantClientStateEXT = NULL;
  1800. PFNGLENDVERTEXSHADEREXTPROC __glewEndVertexShaderEXT = NULL;
  1801. PFNGLEXTRACTCOMPONENTEXTPROC __glewExtractComponentEXT = NULL;
  1802. PFNGLGENSYMBOLSEXTPROC __glewGenSymbolsEXT = NULL;
  1803. PFNGLGENVERTEXSHADERSEXTPROC __glewGenVertexShadersEXT = NULL;
  1804. PFNGLGETINVARIANTBOOLEANVEXTPROC __glewGetInvariantBooleanvEXT = NULL;
  1805. PFNGLGETINVARIANTFLOATVEXTPROC __glewGetInvariantFloatvEXT = NULL;
  1806. PFNGLGETINVARIANTINTEGERVEXTPROC __glewGetInvariantIntegervEXT = NULL;
  1807. PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC __glewGetLocalConstantBooleanvEXT = NULL;
  1808. PFNGLGETLOCALCONSTANTFLOATVEXTPROC __glewGetLocalConstantFloatvEXT = NULL;
  1809. PFNGLGETLOCALCONSTANTINTEGERVEXTPROC __glewGetLocalConstantIntegervEXT = NULL;
  1810. PFNGLGETVARIANTBOOLEANVEXTPROC __glewGetVariantBooleanvEXT = NULL;
  1811. PFNGLGETVARIANTFLOATVEXTPROC __glewGetVariantFloatvEXT = NULL;
  1812. PFNGLGETVARIANTINTEGERVEXTPROC __glewGetVariantIntegervEXT = NULL;
  1813. PFNGLGETVARIANTPOINTERVEXTPROC __glewGetVariantPointervEXT = NULL;
  1814. PFNGLINSERTCOMPONENTEXTPROC __glewInsertComponentEXT = NULL;
  1815. PFNGLISVARIANTENABLEDEXTPROC __glewIsVariantEnabledEXT = NULL;
  1816. PFNGLSETINVARIANTEXTPROC __glewSetInvariantEXT = NULL;
  1817. PFNGLSETLOCALCONSTANTEXTPROC __glewSetLocalConstantEXT = NULL;
  1818. PFNGLSHADEROP1EXTPROC __glewShaderOp1EXT = NULL;
  1819. PFNGLSHADEROP2EXTPROC __glewShaderOp2EXT = NULL;
  1820. PFNGLSHADEROP3EXTPROC __glewShaderOp3EXT = NULL;
  1821. PFNGLSWIZZLEEXTPROC __glewSwizzleEXT = NULL;
  1822. PFNGLVARIANTPOINTEREXTPROC __glewVariantPointerEXT = NULL;
  1823. PFNGLVARIANTBVEXTPROC __glewVariantbvEXT = NULL;
  1824. PFNGLVARIANTDVEXTPROC __glewVariantdvEXT = NULL;
  1825. PFNGLVARIANTFVEXTPROC __glewVariantfvEXT = NULL;
  1826. PFNGLVARIANTIVEXTPROC __glewVariantivEXT = NULL;
  1827. PFNGLVARIANTSVEXTPROC __glewVariantsvEXT = NULL;
  1828. PFNGLVARIANTUBVEXTPROC __glewVariantubvEXT = NULL;
  1829. PFNGLVARIANTUIVEXTPROC __glewVariantuivEXT = NULL;
  1830. PFNGLVARIANTUSVEXTPROC __glewVariantusvEXT = NULL;
  1831. PFNGLWRITEMASKEXTPROC __glewWriteMaskEXT = NULL;
  1832. PFNGLVERTEXWEIGHTPOINTEREXTPROC __glewVertexWeightPointerEXT = NULL;
  1833. PFNGLVERTEXWEIGHTFEXTPROC __glewVertexWeightfEXT = NULL;
  1834. PFNGLVERTEXWEIGHTFVEXTPROC __glewVertexWeightfvEXT = NULL;
  1835. PFNGLIMPORTSYNCEXTPROC __glewImportSyncEXT = NULL;
  1836. PFNGLFRAMETERMINATORGREMEDYPROC __glewFrameTerminatorGREMEDY = NULL;
  1837. PFNGLSTRINGMARKERGREMEDYPROC __glewStringMarkerGREMEDY = NULL;
  1838. PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC __glewGetImageTransformParameterfvHP = NULL;
  1839. PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC __glewGetImageTransformParameterivHP = NULL;
  1840. PFNGLIMAGETRANSFORMPARAMETERFHPPROC __glewImageTransformParameterfHP = NULL;
  1841. PFNGLIMAGETRANSFORMPARAMETERFVHPPROC __glewImageTransformParameterfvHP = NULL;
  1842. PFNGLIMAGETRANSFORMPARAMETERIHPPROC __glewImageTransformParameteriHP = NULL;
  1843. PFNGLIMAGETRANSFORMPARAMETERIVHPPROC __glewImageTransformParameterivHP = NULL;
  1844. PFNGLMULTIMODEDRAWARRAYSIBMPROC __glewMultiModeDrawArraysIBM = NULL;
  1845. PFNGLMULTIMODEDRAWELEMENTSIBMPROC __glewMultiModeDrawElementsIBM = NULL;
  1846. PFNGLCOLORPOINTERLISTIBMPROC __glewColorPointerListIBM = NULL;
  1847. PFNGLEDGEFLAGPOINTERLISTIBMPROC __glewEdgeFlagPointerListIBM = NULL;
  1848. PFNGLFOGCOORDPOINTERLISTIBMPROC __glewFogCoordPointerListIBM = NULL;
  1849. PFNGLINDEXPOINTERLISTIBMPROC __glewIndexPointerListIBM = NULL;
  1850. PFNGLNORMALPOINTERLISTIBMPROC __glewNormalPointerListIBM = NULL;
  1851. PFNGLSECONDARYCOLORPOINTERLISTIBMPROC __glewSecondaryColorPointerListIBM = NULL;
  1852. PFNGLTEXCOORDPOINTERLISTIBMPROC __glewTexCoordPointerListIBM = NULL;
  1853. PFNGLVERTEXPOINTERLISTIBMPROC __glewVertexPointerListIBM = NULL;
  1854. PFNGLMAPTEXTURE2DINTELPROC __glewMapTexture2DINTEL = NULL;
  1855. PFNGLSYNCTEXTUREINTELPROC __glewSyncTextureINTEL = NULL;
  1856. PFNGLUNMAPTEXTURE2DINTELPROC __glewUnmapTexture2DINTEL = NULL;
  1857. PFNGLCOLORPOINTERVINTELPROC __glewColorPointervINTEL = NULL;
  1858. PFNGLNORMALPOINTERVINTELPROC __glewNormalPointervINTEL = NULL;
  1859. PFNGLTEXCOORDPOINTERVINTELPROC __glewTexCoordPointervINTEL = NULL;
  1860. PFNGLVERTEXPOINTERVINTELPROC __glewVertexPointervINTEL = NULL;
  1861. PFNGLTEXSCISSORFUNCINTELPROC __glewTexScissorFuncINTEL = NULL;
  1862. PFNGLTEXSCISSORINTELPROC __glewTexScissorINTEL = NULL;
  1863. PFNGLDEBUGMESSAGECALLBACKPROC __glewDebugMessageCallback = NULL;
  1864. PFNGLDEBUGMESSAGECONTROLPROC __glewDebugMessageControl = NULL;
  1865. PFNGLDEBUGMESSAGEINSERTPROC __glewDebugMessageInsert = NULL;
  1866. PFNGLGETDEBUGMESSAGELOGPROC __glewGetDebugMessageLog = NULL;
  1867. PFNGLGETOBJECTLABELPROC __glewGetObjectLabel = NULL;
  1868. PFNGLGETOBJECTPTRLABELPROC __glewGetObjectPtrLabel = NULL;
  1869. PFNGLOBJECTLABELPROC __glewObjectLabel = NULL;
  1870. PFNGLOBJECTPTRLABELPROC __glewObjectPtrLabel = NULL;
  1871. PFNGLPOPDEBUGGROUPPROC __glewPopDebugGroup = NULL;
  1872. PFNGLPUSHDEBUGGROUPPROC __glewPushDebugGroup = NULL;
  1873. PFNGLBUFFERREGIONENABLEDPROC __glewBufferRegionEnabled = NULL;
  1874. PFNGLDELETEBUFFERREGIONPROC __glewDeleteBufferRegion = NULL;
  1875. PFNGLDRAWBUFFERREGIONPROC __glewDrawBufferRegion = NULL;
  1876. PFNGLNEWBUFFERREGIONPROC __glewNewBufferRegion = NULL;
  1877. PFNGLREADBUFFERREGIONPROC __glewReadBufferRegion = NULL;
  1878. PFNGLRESIZEBUFFERSMESAPROC __glewResizeBuffersMESA = NULL;
  1879. PFNGLWINDOWPOS2DMESAPROC __glewWindowPos2dMESA = NULL;
  1880. PFNGLWINDOWPOS2DVMESAPROC __glewWindowPos2dvMESA = NULL;
  1881. PFNGLWINDOWPOS2FMESAPROC __glewWindowPos2fMESA = NULL;
  1882. PFNGLWINDOWPOS2FVMESAPROC __glewWindowPos2fvMESA = NULL;
  1883. PFNGLWINDOWPOS2IMESAPROC __glewWindowPos2iMESA = NULL;
  1884. PFNGLWINDOWPOS2IVMESAPROC __glewWindowPos2ivMESA = NULL;
  1885. PFNGLWINDOWPOS2SMESAPROC __glewWindowPos2sMESA = NULL;
  1886. PFNGLWINDOWPOS2SVMESAPROC __glewWindowPos2svMESA = NULL;
  1887. PFNGLWINDOWPOS3DMESAPROC __glewWindowPos3dMESA = NULL;
  1888. PFNGLWINDOWPOS3DVMESAPROC __glewWindowPos3dvMESA = NULL;
  1889. PFNGLWINDOWPOS3FMESAPROC __glewWindowPos3fMESA = NULL;
  1890. PFNGLWINDOWPOS3FVMESAPROC __glewWindowPos3fvMESA = NULL;
  1891. PFNGLWINDOWPOS3IMESAPROC __glewWindowPos3iMESA = NULL;
  1892. PFNGLWINDOWPOS3IVMESAPROC __glewWindowPos3ivMESA = NULL;
  1893. PFNGLWINDOWPOS3SMESAPROC __glewWindowPos3sMESA = NULL;
  1894. PFNGLWINDOWPOS3SVMESAPROC __glewWindowPos3svMESA = NULL;
  1895. PFNGLWINDOWPOS4DMESAPROC __glewWindowPos4dMESA = NULL;
  1896. PFNGLWINDOWPOS4DVMESAPROC __glewWindowPos4dvMESA = NULL;
  1897. PFNGLWINDOWPOS4FMESAPROC __glewWindowPos4fMESA = NULL;
  1898. PFNGLWINDOWPOS4FVMESAPROC __glewWindowPos4fvMESA = NULL;
  1899. PFNGLWINDOWPOS4IMESAPROC __glewWindowPos4iMESA = NULL;
  1900. PFNGLWINDOWPOS4IVMESAPROC __glewWindowPos4ivMESA = NULL;
  1901. PFNGLWINDOWPOS4SMESAPROC __glewWindowPos4sMESA = NULL;
  1902. PFNGLWINDOWPOS4SVMESAPROC __glewWindowPos4svMESA = NULL;
  1903. PFNGLBEGINCONDITIONALRENDERNVXPROC __glewBeginConditionalRenderNVX = NULL;
  1904. PFNGLENDCONDITIONALRENDERNVXPROC __glewEndConditionalRenderNVX = NULL;
  1905. PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC __glewMultiDrawArraysIndirectBindlessNV = NULL;
  1906. PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC __glewMultiDrawElementsIndirectBindlessNV = NULL;
  1907. PFNGLGETIMAGEHANDLENVPROC __glewGetImageHandleNV = NULL;
  1908. PFNGLGETTEXTUREHANDLENVPROC __glewGetTextureHandleNV = NULL;
  1909. PFNGLGETTEXTURESAMPLERHANDLENVPROC __glewGetTextureSamplerHandleNV = NULL;
  1910. PFNGLISIMAGEHANDLERESIDENTNVPROC __glewIsImageHandleResidentNV = NULL;
  1911. PFNGLISTEXTUREHANDLERESIDENTNVPROC __glewIsTextureHandleResidentNV = NULL;
  1912. PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC __glewMakeImageHandleNonResidentNV = NULL;
  1913. PFNGLMAKEIMAGEHANDLERESIDENTNVPROC __glewMakeImageHandleResidentNV = NULL;
  1914. PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC __glewMakeTextureHandleNonResidentNV = NULL;
  1915. PFNGLMAKETEXTUREHANDLERESIDENTNVPROC __glewMakeTextureHandleResidentNV = NULL;
  1916. PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC __glewProgramUniformHandleui64NV = NULL;
  1917. PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC __glewProgramUniformHandleui64vNV = NULL;
  1918. PFNGLUNIFORMHANDLEUI64NVPROC __glewUniformHandleui64NV = NULL;
  1919. PFNGLUNIFORMHANDLEUI64VNVPROC __glewUniformHandleui64vNV = NULL;
  1920. PFNGLBLENDBARRIERNVPROC __glewBlendBarrierNV = NULL;
  1921. PFNGLBLENDPARAMETERINVPROC __glewBlendParameteriNV = NULL;
  1922. PFNGLBEGINCONDITIONALRENDERNVPROC __glewBeginConditionalRenderNV = NULL;
  1923. PFNGLENDCONDITIONALRENDERNVPROC __glewEndConditionalRenderNV = NULL;
  1924. PFNGLCOPYIMAGESUBDATANVPROC __glewCopyImageSubDataNV = NULL;
  1925. PFNGLCLEARDEPTHDNVPROC __glewClearDepthdNV = NULL;
  1926. PFNGLDEPTHBOUNDSDNVPROC __glewDepthBoundsdNV = NULL;
  1927. PFNGLDEPTHRANGEDNVPROC __glewDepthRangedNV = NULL;
  1928. PFNGLDRAWTEXTURENVPROC __glewDrawTextureNV = NULL;
  1929. PFNGLEVALMAPSNVPROC __glewEvalMapsNV = NULL;
  1930. PFNGLGETMAPATTRIBPARAMETERFVNVPROC __glewGetMapAttribParameterfvNV = NULL;
  1931. PFNGLGETMAPATTRIBPARAMETERIVNVPROC __glewGetMapAttribParameterivNV = NULL;
  1932. PFNGLGETMAPCONTROLPOINTSNVPROC __glewGetMapControlPointsNV = NULL;
  1933. PFNGLGETMAPPARAMETERFVNVPROC __glewGetMapParameterfvNV = NULL;
  1934. PFNGLGETMAPPARAMETERIVNVPROC __glewGetMapParameterivNV = NULL;
  1935. PFNGLMAPCONTROLPOINTSNVPROC __glewMapControlPointsNV = NULL;
  1936. PFNGLMAPPARAMETERFVNVPROC __glewMapParameterfvNV = NULL;
  1937. PFNGLMAPPARAMETERIVNVPROC __glewMapParameterivNV = NULL;
  1938. PFNGLGETMULTISAMPLEFVNVPROC __glewGetMultisamplefvNV = NULL;
  1939. PFNGLSAMPLEMASKINDEXEDNVPROC __glewSampleMaskIndexedNV = NULL;
  1940. PFNGLTEXRENDERBUFFERNVPROC __glewTexRenderbufferNV = NULL;
  1941. PFNGLDELETEFENCESNVPROC __glewDeleteFencesNV = NULL;
  1942. PFNGLFINISHFENCENVPROC __glewFinishFenceNV = NULL;
  1943. PFNGLGENFENCESNVPROC __glewGenFencesNV = NULL;
  1944. PFNGLGETFENCEIVNVPROC __glewGetFenceivNV = NULL;
  1945. PFNGLISFENCENVPROC __glewIsFenceNV = NULL;
  1946. PFNGLSETFENCENVPROC __glewSetFenceNV = NULL;
  1947. PFNGLTESTFENCENVPROC __glewTestFenceNV = NULL;
  1948. PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC __glewGetProgramNamedParameterdvNV = NULL;
  1949. PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC __glewGetProgramNamedParameterfvNV = NULL;
  1950. PFNGLPROGRAMNAMEDPARAMETER4DNVPROC __glewProgramNamedParameter4dNV = NULL;
  1951. PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC __glewProgramNamedParameter4dvNV = NULL;
  1952. PFNGLPROGRAMNAMEDPARAMETER4FNVPROC __glewProgramNamedParameter4fNV = NULL;
  1953. PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC __glewProgramNamedParameter4fvNV = NULL;
  1954. PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC __glewRenderbufferStorageMultisampleCoverageNV = NULL;
  1955. PFNGLPROGRAMVERTEXLIMITNVPROC __glewProgramVertexLimitNV = NULL;
  1956. PFNGLPROGRAMENVPARAMETERI4INVPROC __glewProgramEnvParameterI4iNV = NULL;
  1957. PFNGLPROGRAMENVPARAMETERI4IVNVPROC __glewProgramEnvParameterI4ivNV = NULL;
  1958. PFNGLPROGRAMENVPARAMETERI4UINVPROC __glewProgramEnvParameterI4uiNV = NULL;
  1959. PFNGLPROGRAMENVPARAMETERI4UIVNVPROC __glewProgramEnvParameterI4uivNV = NULL;
  1960. PFNGLPROGRAMENVPARAMETERSI4IVNVPROC __glewProgramEnvParametersI4ivNV = NULL;
  1961. PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC __glewProgramEnvParametersI4uivNV = NULL;
  1962. PFNGLPROGRAMLOCALPARAMETERI4INVPROC __glewProgramLocalParameterI4iNV = NULL;
  1963. PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC __glewProgramLocalParameterI4ivNV = NULL;
  1964. PFNGLPROGRAMLOCALPARAMETERI4UINVPROC __glewProgramLocalParameterI4uiNV = NULL;
  1965. PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC __glewProgramLocalParameterI4uivNV = NULL;
  1966. PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC __glewProgramLocalParametersI4ivNV = NULL;
  1967. PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC __glewProgramLocalParametersI4uivNV = NULL;
  1968. PFNGLGETUNIFORMI64VNVPROC __glewGetUniformi64vNV = NULL;
  1969. PFNGLGETUNIFORMUI64VNVPROC __glewGetUniformui64vNV = NULL;
  1970. PFNGLPROGRAMUNIFORM1I64NVPROC __glewProgramUniform1i64NV = NULL;
  1971. PFNGLPROGRAMUNIFORM1I64VNVPROC __glewProgramUniform1i64vNV = NULL;
  1972. PFNGLPROGRAMUNIFORM1UI64NVPROC __glewProgramUniform1ui64NV = NULL;
  1973. PFNGLPROGRAMUNIFORM1UI64VNVPROC __glewProgramUniform1ui64vNV = NULL;
  1974. PFNGLPROGRAMUNIFORM2I64NVPROC __glewProgramUniform2i64NV = NULL;
  1975. PFNGLPROGRAMUNIFORM2I64VNVPROC __glewProgramUniform2i64vNV = NULL;
  1976. PFNGLPROGRAMUNIFORM2UI64NVPROC __glewProgramUniform2ui64NV = NULL;
  1977. PFNGLPROGRAMUNIFORM2UI64VNVPROC __glewProgramUniform2ui64vNV = NULL;
  1978. PFNGLPROGRAMUNIFORM3I64NVPROC __glewProgramUniform3i64NV = NULL;
  1979. PFNGLPROGRAMUNIFORM3I64VNVPROC __glewProgramUniform3i64vNV = NULL;
  1980. PFNGLPROGRAMUNIFORM3UI64NVPROC __glewProgramUniform3ui64NV = NULL;
  1981. PFNGLPROGRAMUNIFORM3UI64VNVPROC __glewProgramUniform3ui64vNV = NULL;
  1982. PFNGLPROGRAMUNIFORM4I64NVPROC __glewProgramUniform4i64NV = NULL;
  1983. PFNGLPROGRAMUNIFORM4I64VNVPROC __glewProgramUniform4i64vNV = NULL;
  1984. PFNGLPROGRAMUNIFORM4UI64NVPROC __glewProgramUniform4ui64NV = NULL;
  1985. PFNGLPROGRAMUNIFORM4UI64VNVPROC __glewProgramUniform4ui64vNV = NULL;
  1986. PFNGLUNIFORM1I64NVPROC __glewUniform1i64NV = NULL;
  1987. PFNGLUNIFORM1I64VNVPROC __glewUniform1i64vNV = NULL;
  1988. PFNGLUNIFORM1UI64NVPROC __glewUniform1ui64NV = NULL;
  1989. PFNGLUNIFORM1UI64VNVPROC __glewUniform1ui64vNV = NULL;
  1990. PFNGLUNIFORM2I64NVPROC __glewUniform2i64NV = NULL;
  1991. PFNGLUNIFORM2I64VNVPROC __glewUniform2i64vNV = NULL;
  1992. PFNGLUNIFORM2UI64NVPROC __glewUniform2ui64NV = NULL;
  1993. PFNGLUNIFORM2UI64VNVPROC __glewUniform2ui64vNV = NULL;
  1994. PFNGLUNIFORM3I64NVPROC __glewUniform3i64NV = NULL;
  1995. PFNGLUNIFORM3I64VNVPROC __glewUniform3i64vNV = NULL;
  1996. PFNGLUNIFORM3UI64NVPROC __glewUniform3ui64NV = NULL;
  1997. PFNGLUNIFORM3UI64VNVPROC __glewUniform3ui64vNV = NULL;
  1998. PFNGLUNIFORM4I64NVPROC __glewUniform4i64NV = NULL;
  1999. PFNGLUNIFORM4I64VNVPROC __glewUniform4i64vNV = NULL;
  2000. PFNGLUNIFORM4UI64NVPROC __glewUniform4ui64NV = NULL;
  2001. PFNGLUNIFORM4UI64VNVPROC __glewUniform4ui64vNV = NULL;
  2002. PFNGLCOLOR3HNVPROC __glewColor3hNV = NULL;
  2003. PFNGLCOLOR3HVNVPROC __glewColor3hvNV = NULL;
  2004. PFNGLCOLOR4HNVPROC __glewColor4hNV = NULL;
  2005. PFNGLCOLOR4HVNVPROC __glewColor4hvNV = NULL;
  2006. PFNGLFOGCOORDHNVPROC __glewFogCoordhNV = NULL;
  2007. PFNGLFOGCOORDHVNVPROC __glewFogCoordhvNV = NULL;
  2008. PFNGLMULTITEXCOORD1HNVPROC __glewMultiTexCoord1hNV = NULL;
  2009. PFNGLMULTITEXCOORD1HVNVPROC __glewMultiTexCoord1hvNV = NULL;
  2010. PFNGLMULTITEXCOORD2HNVPROC __glewMultiTexCoord2hNV = NULL;
  2011. PFNGLMULTITEXCOORD2HVNVPROC __glewMultiTexCoord2hvNV = NULL;
  2012. PFNGLMULTITEXCOORD3HNVPROC __glewMultiTexCoord3hNV = NULL;
  2013. PFNGLMULTITEXCOORD3HVNVPROC __glewMultiTexCoord3hvNV = NULL;
  2014. PFNGLMULTITEXCOORD4HNVPROC __glewMultiTexCoord4hNV = NULL;
  2015. PFNGLMULTITEXCOORD4HVNVPROC __glewMultiTexCoord4hvNV = NULL;
  2016. PFNGLNORMAL3HNVPROC __glewNormal3hNV = NULL;
  2017. PFNGLNORMAL3HVNVPROC __glewNormal3hvNV = NULL;
  2018. PFNGLSECONDARYCOLOR3HNVPROC __glewSecondaryColor3hNV = NULL;
  2019. PFNGLSECONDARYCOLOR3HVNVPROC __glewSecondaryColor3hvNV = NULL;
  2020. PFNGLTEXCOORD1HNVPROC __glewTexCoord1hNV = NULL;
  2021. PFNGLTEXCOORD1HVNVPROC __glewTexCoord1hvNV = NULL;
  2022. PFNGLTEXCOORD2HNVPROC __glewTexCoord2hNV = NULL;
  2023. PFNGLTEXCOORD2HVNVPROC __glewTexCoord2hvNV = NULL;
  2024. PFNGLTEXCOORD3HNVPROC __glewTexCoord3hNV = NULL;
  2025. PFNGLTEXCOORD3HVNVPROC __glewTexCoord3hvNV = NULL;
  2026. PFNGLTEXCOORD4HNVPROC __glewTexCoord4hNV = NULL;
  2027. PFNGLTEXCOORD4HVNVPROC __glewTexCoord4hvNV = NULL;
  2028. PFNGLVERTEX2HNVPROC __glewVertex2hNV = NULL;
  2029. PFNGLVERTEX2HVNVPROC __glewVertex2hvNV = NULL;
  2030. PFNGLVERTEX3HNVPROC __glewVertex3hNV = NULL;
  2031. PFNGLVERTEX3HVNVPROC __glewVertex3hvNV = NULL;
  2032. PFNGLVERTEX4HNVPROC __glewVertex4hNV = NULL;
  2033. PFNGLVERTEX4HVNVPROC __glewVertex4hvNV = NULL;
  2034. PFNGLVERTEXATTRIB1HNVPROC __glewVertexAttrib1hNV = NULL;
  2035. PFNGLVERTEXATTRIB1HVNVPROC __glewVertexAttrib1hvNV = NULL;
  2036. PFNGLVERTEXATTRIB2HNVPROC __glewVertexAttrib2hNV = NULL;
  2037. PFNGLVERTEXATTRIB2HVNVPROC __glewVertexAttrib2hvNV = NULL;
  2038. PFNGLVERTEXATTRIB3HNVPROC __glewVertexAttrib3hNV = NULL;
  2039. PFNGLVERTEXATTRIB3HVNVPROC __glewVertexAttrib3hvNV = NULL;
  2040. PFNGLVERTEXATTRIB4HNVPROC __glewVertexAttrib4hNV = NULL;
  2041. PFNGLVERTEXATTRIB4HVNVPROC __glewVertexAttrib4hvNV = NULL;
  2042. PFNGLVERTEXATTRIBS1HVNVPROC __glewVertexAttribs1hvNV = NULL;
  2043. PFNGLVERTEXATTRIBS2HVNVPROC __glewVertexAttribs2hvNV = NULL;
  2044. PFNGLVERTEXATTRIBS3HVNVPROC __glewVertexAttribs3hvNV = NULL;
  2045. PFNGLVERTEXATTRIBS4HVNVPROC __glewVertexAttribs4hvNV = NULL;
  2046. PFNGLVERTEXWEIGHTHNVPROC __glewVertexWeighthNV = NULL;
  2047. PFNGLVERTEXWEIGHTHVNVPROC __glewVertexWeighthvNV = NULL;
  2048. PFNGLBEGINOCCLUSIONQUERYNVPROC __glewBeginOcclusionQueryNV = NULL;
  2049. PFNGLDELETEOCCLUSIONQUERIESNVPROC __glewDeleteOcclusionQueriesNV = NULL;
  2050. PFNGLENDOCCLUSIONQUERYNVPROC __glewEndOcclusionQueryNV = NULL;
  2051. PFNGLGENOCCLUSIONQUERIESNVPROC __glewGenOcclusionQueriesNV = NULL;
  2052. PFNGLGETOCCLUSIONQUERYIVNVPROC __glewGetOcclusionQueryivNV = NULL;
  2053. PFNGLGETOCCLUSIONQUERYUIVNVPROC __glewGetOcclusionQueryuivNV = NULL;
  2054. PFNGLISOCCLUSIONQUERYNVPROC __glewIsOcclusionQueryNV = NULL;
  2055. PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC __glewProgramBufferParametersIivNV = NULL;
  2056. PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC __glewProgramBufferParametersIuivNV = NULL;
  2057. PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC __glewProgramBufferParametersfvNV = NULL;
  2058. PFNGLCOPYPATHNVPROC __glewCopyPathNV = NULL;
  2059. PFNGLCOVERFILLPATHINSTANCEDNVPROC __glewCoverFillPathInstancedNV = NULL;
  2060. PFNGLCOVERFILLPATHNVPROC __glewCoverFillPathNV = NULL;
  2061. PFNGLCOVERSTROKEPATHINSTANCEDNVPROC __glewCoverStrokePathInstancedNV = NULL;
  2062. PFNGLCOVERSTROKEPATHNVPROC __glewCoverStrokePathNV = NULL;
  2063. PFNGLDELETEPATHSNVPROC __glewDeletePathsNV = NULL;
  2064. PFNGLGENPATHSNVPROC __glewGenPathsNV = NULL;
  2065. PFNGLGETPATHCOLORGENFVNVPROC __glewGetPathColorGenfvNV = NULL;
  2066. PFNGLGETPATHCOLORGENIVNVPROC __glewGetPathColorGenivNV = NULL;
  2067. PFNGLGETPATHCOMMANDSNVPROC __glewGetPathCommandsNV = NULL;
  2068. PFNGLGETPATHCOORDSNVPROC __glewGetPathCoordsNV = NULL;
  2069. PFNGLGETPATHDASHARRAYNVPROC __glewGetPathDashArrayNV = NULL;
  2070. PFNGLGETPATHLENGTHNVPROC __glewGetPathLengthNV = NULL;
  2071. PFNGLGETPATHMETRICRANGENVPROC __glewGetPathMetricRangeNV = NULL;
  2072. PFNGLGETPATHMETRICSNVPROC __glewGetPathMetricsNV = NULL;
  2073. PFNGLGETPATHPARAMETERFVNVPROC __glewGetPathParameterfvNV = NULL;
  2074. PFNGLGETPATHPARAMETERIVNVPROC __glewGetPathParameterivNV = NULL;
  2075. PFNGLGETPATHSPACINGNVPROC __glewGetPathSpacingNV = NULL;
  2076. PFNGLGETPATHTEXGENFVNVPROC __glewGetPathTexGenfvNV = NULL;
  2077. PFNGLGETPATHTEXGENIVNVPROC __glewGetPathTexGenivNV = NULL;
  2078. PFNGLINTERPOLATEPATHSNVPROC __glewInterpolatePathsNV = NULL;
  2079. PFNGLISPATHNVPROC __glewIsPathNV = NULL;
  2080. PFNGLISPOINTINFILLPATHNVPROC __glewIsPointInFillPathNV = NULL;
  2081. PFNGLISPOINTINSTROKEPATHNVPROC __glewIsPointInStrokePathNV = NULL;
  2082. PFNGLPATHCOLORGENNVPROC __glewPathColorGenNV = NULL;
  2083. PFNGLPATHCOMMANDSNVPROC __glewPathCommandsNV = NULL;
  2084. PFNGLPATHCOORDSNVPROC __glewPathCoordsNV = NULL;
  2085. PFNGLPATHCOVERDEPTHFUNCNVPROC __glewPathCoverDepthFuncNV = NULL;
  2086. PFNGLPATHDASHARRAYNVPROC __glewPathDashArrayNV = NULL;
  2087. PFNGLPATHFOGGENNVPROC __glewPathFogGenNV = NULL;
  2088. PFNGLPATHGLYPHRANGENVPROC __glewPathGlyphRangeNV = NULL;
  2089. PFNGLPATHGLYPHSNVPROC __glewPathGlyphsNV = NULL;
  2090. PFNGLPATHPARAMETERFNVPROC __glewPathParameterfNV = NULL;
  2091. PFNGLPATHPARAMETERFVNVPROC __glewPathParameterfvNV = NULL;
  2092. PFNGLPATHPARAMETERINVPROC __glewPathParameteriNV = NULL;
  2093. PFNGLPATHPARAMETERIVNVPROC __glewPathParameterivNV = NULL;
  2094. PFNGLPATHSTENCILDEPTHOFFSETNVPROC __glewPathStencilDepthOffsetNV = NULL;
  2095. PFNGLPATHSTENCILFUNCNVPROC __glewPathStencilFuncNV = NULL;
  2096. PFNGLPATHSTRINGNVPROC __glewPathStringNV = NULL;
  2097. PFNGLPATHSUBCOMMANDSNVPROC __glewPathSubCommandsNV = NULL;
  2098. PFNGLPATHSUBCOORDSNVPROC __glewPathSubCoordsNV = NULL;
  2099. PFNGLPATHTEXGENNVPROC __glewPathTexGenNV = NULL;
  2100. PFNGLPOINTALONGPATHNVPROC __glewPointAlongPathNV = NULL;
  2101. PFNGLSTENCILFILLPATHINSTANCEDNVPROC __glewStencilFillPathInstancedNV = NULL;
  2102. PFNGLSTENCILFILLPATHNVPROC __glewStencilFillPathNV = NULL;
  2103. PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC __glewStencilStrokePathInstancedNV = NULL;
  2104. PFNGLSTENCILSTROKEPATHNVPROC __glewStencilStrokePathNV = NULL;
  2105. PFNGLTRANSFORMPATHNVPROC __glewTransformPathNV = NULL;
  2106. PFNGLWEIGHTPATHSNVPROC __glewWeightPathsNV = NULL;
  2107. PFNGLFLUSHPIXELDATARANGENVPROC __glewFlushPixelDataRangeNV = NULL;
  2108. PFNGLPIXELDATARANGENVPROC __glewPixelDataRangeNV = NULL;
  2109. PFNGLPOINTPARAMETERINVPROC __glewPointParameteriNV = NULL;
  2110. PFNGLPOINTPARAMETERIVNVPROC __glewPointParameterivNV = NULL;
  2111. PFNGLGETVIDEOI64VNVPROC __glewGetVideoi64vNV = NULL;
  2112. PFNGLGETVIDEOIVNVPROC __glewGetVideoivNV = NULL;
  2113. PFNGLGETVIDEOUI64VNVPROC __glewGetVideoui64vNV = NULL;
  2114. PFNGLGETVIDEOUIVNVPROC __glewGetVideouivNV = NULL;
  2115. PFNGLPRESENTFRAMEDUALFILLNVPROC __glewPresentFrameDualFillNV = NULL;
  2116. PFNGLPRESENTFRAMEKEYEDNVPROC __glewPresentFrameKeyedNV = NULL;
  2117. PFNGLPRIMITIVERESTARTINDEXNVPROC __glewPrimitiveRestartIndexNV = NULL;
  2118. PFNGLPRIMITIVERESTARTNVPROC __glewPrimitiveRestartNV = NULL;
  2119. PFNGLCOMBINERINPUTNVPROC __glewCombinerInputNV = NULL;
  2120. PFNGLCOMBINEROUTPUTNVPROC __glewCombinerOutputNV = NULL;
  2121. PFNGLCOMBINERPARAMETERFNVPROC __glewCombinerParameterfNV = NULL;
  2122. PFNGLCOMBINERPARAMETERFVNVPROC __glewCombinerParameterfvNV = NULL;
  2123. PFNGLCOMBINERPARAMETERINVPROC __glewCombinerParameteriNV = NULL;
  2124. PFNGLCOMBINERPARAMETERIVNVPROC __glewCombinerParameterivNV = NULL;
  2125. PFNGLFINALCOMBINERINPUTNVPROC __glewFinalCombinerInputNV = NULL;
  2126. PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC __glewGetCombinerInputParameterfvNV = NULL;
  2127. PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC __glewGetCombinerInputParameterivNV = NULL;
  2128. PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC __glewGetCombinerOutputParameterfvNV = NULL;
  2129. PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC __glewGetCombinerOutputParameterivNV = NULL;
  2130. PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC __glewGetFinalCombinerInputParameterfvNV = NULL;
  2131. PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC __glewGetFinalCombinerInputParameterivNV = NULL;
  2132. PFNGLCOMBINERSTAGEPARAMETERFVNVPROC __glewCombinerStageParameterfvNV = NULL;
  2133. PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC __glewGetCombinerStageParameterfvNV = NULL;
  2134. PFNGLGETBUFFERPARAMETERUI64VNVPROC __glewGetBufferParameterui64vNV = NULL;
  2135. PFNGLGETINTEGERUI64VNVPROC __glewGetIntegerui64vNV = NULL;
  2136. PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC __glewGetNamedBufferParameterui64vNV = NULL;
  2137. PFNGLISBUFFERRESIDENTNVPROC __glewIsBufferResidentNV = NULL;
  2138. PFNGLISNAMEDBUFFERRESIDENTNVPROC __glewIsNamedBufferResidentNV = NULL;
  2139. PFNGLMAKEBUFFERNONRESIDENTNVPROC __glewMakeBufferNonResidentNV = NULL;
  2140. PFNGLMAKEBUFFERRESIDENTNVPROC __glewMakeBufferResidentNV = NULL;
  2141. PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC __glewMakeNamedBufferNonResidentNV = NULL;
  2142. PFNGLMAKENAMEDBUFFERRESIDENTNVPROC __glewMakeNamedBufferResidentNV = NULL;
  2143. PFNGLPROGRAMUNIFORMUI64NVPROC __glewProgramUniformui64NV = NULL;
  2144. PFNGLPROGRAMUNIFORMUI64VNVPROC __glewProgramUniformui64vNV = NULL;
  2145. PFNGLUNIFORMUI64NVPROC __glewUniformui64NV = NULL;
  2146. PFNGLUNIFORMUI64VNVPROC __glewUniformui64vNV = NULL;
  2147. PFNGLTEXTUREBARRIERNVPROC __glewTextureBarrierNV = NULL;
  2148. PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC __glewTexImage2DMultisampleCoverageNV = NULL;
  2149. PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC __glewTexImage3DMultisampleCoverageNV = NULL;
  2150. PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC __glewTextureImage2DMultisampleCoverageNV = NULL;
  2151. PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC __glewTextureImage2DMultisampleNV = NULL;
  2152. PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC __glewTextureImage3DMultisampleCoverageNV = NULL;
  2153. PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC __glewTextureImage3DMultisampleNV = NULL;
  2154. PFNGLACTIVEVARYINGNVPROC __glewActiveVaryingNV = NULL;
  2155. PFNGLBEGINTRANSFORMFEEDBACKNVPROC __glewBeginTransformFeedbackNV = NULL;
  2156. PFNGLBINDBUFFERBASENVPROC __glewBindBufferBaseNV = NULL;
  2157. PFNGLBINDBUFFEROFFSETNVPROC __glewBindBufferOffsetNV = NULL;
  2158. PFNGLBINDBUFFERRANGENVPROC __glewBindBufferRangeNV = NULL;
  2159. PFNGLENDTRANSFORMFEEDBACKNVPROC __glewEndTransformFeedbackNV = NULL;
  2160. PFNGLGETACTIVEVARYINGNVPROC __glewGetActiveVaryingNV = NULL;
  2161. PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC __glewGetTransformFeedbackVaryingNV = NULL;
  2162. PFNGLGETVARYINGLOCATIONNVPROC __glewGetVaryingLocationNV = NULL;
  2163. PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC __glewTransformFeedbackAttribsNV = NULL;
  2164. PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC __glewTransformFeedbackVaryingsNV = NULL;
  2165. PFNGLBINDTRANSFORMFEEDBACKNVPROC __glewBindTransformFeedbackNV = NULL;
  2166. PFNGLDELETETRANSFORMFEEDBACKSNVPROC __glewDeleteTransformFeedbacksNV = NULL;
  2167. PFNGLDRAWTRANSFORMFEEDBACKNVPROC __glewDrawTransformFeedbackNV = NULL;
  2168. PFNGLGENTRANSFORMFEEDBACKSNVPROC __glewGenTransformFeedbacksNV = NULL;
  2169. PFNGLISTRANSFORMFEEDBACKNVPROC __glewIsTransformFeedbackNV = NULL;
  2170. PFNGLPAUSETRANSFORMFEEDBACKNVPROC __glewPauseTransformFeedbackNV = NULL;
  2171. PFNGLRESUMETRANSFORMFEEDBACKNVPROC __glewResumeTransformFeedbackNV = NULL;
  2172. PFNGLVDPAUFININVPROC __glewVDPAUFiniNV = NULL;
  2173. PFNGLVDPAUGETSURFACEIVNVPROC __glewVDPAUGetSurfaceivNV = NULL;
  2174. PFNGLVDPAUINITNVPROC __glewVDPAUInitNV = NULL;
  2175. PFNGLVDPAUISSURFACENVPROC __glewVDPAUIsSurfaceNV = NULL;
  2176. PFNGLVDPAUMAPSURFACESNVPROC __glewVDPAUMapSurfacesNV = NULL;
  2177. PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC __glewVDPAURegisterOutputSurfaceNV = NULL;
  2178. PFNGLVDPAUREGISTERVIDEOSURFACENVPROC __glewVDPAURegisterVideoSurfaceNV = NULL;
  2179. PFNGLVDPAUSURFACEACCESSNVPROC __glewVDPAUSurfaceAccessNV = NULL;
  2180. PFNGLVDPAUUNMAPSURFACESNVPROC __glewVDPAUUnmapSurfacesNV = NULL;
  2181. PFNGLVDPAUUNREGISTERSURFACENVPROC __glewVDPAUUnregisterSurfaceNV = NULL;
  2182. PFNGLFLUSHVERTEXARRAYRANGENVPROC __glewFlushVertexArrayRangeNV = NULL;
  2183. PFNGLVERTEXARRAYRANGENVPROC __glewVertexArrayRangeNV = NULL;
  2184. PFNGLGETVERTEXATTRIBLI64VNVPROC __glewGetVertexAttribLi64vNV = NULL;
  2185. PFNGLGETVERTEXATTRIBLUI64VNVPROC __glewGetVertexAttribLui64vNV = NULL;
  2186. PFNGLVERTEXATTRIBL1I64NVPROC __glewVertexAttribL1i64NV = NULL;
  2187. PFNGLVERTEXATTRIBL1I64VNVPROC __glewVertexAttribL1i64vNV = NULL;
  2188. PFNGLVERTEXATTRIBL1UI64NVPROC __glewVertexAttribL1ui64NV = NULL;
  2189. PFNGLVERTEXATTRIBL1UI64VNVPROC __glewVertexAttribL1ui64vNV = NULL;
  2190. PFNGLVERTEXATTRIBL2I64NVPROC __glewVertexAttribL2i64NV = NULL;
  2191. PFNGLVERTEXATTRIBL2I64VNVPROC __glewVertexAttribL2i64vNV = NULL;
  2192. PFNGLVERTEXATTRIBL2UI64NVPROC __glewVertexAttribL2ui64NV = NULL;
  2193. PFNGLVERTEXATTRIBL2UI64VNVPROC __glewVertexAttribL2ui64vNV = NULL;
  2194. PFNGLVERTEXATTRIBL3I64NVPROC __glewVertexAttribL3i64NV = NULL;
  2195. PFNGLVERTEXATTRIBL3I64VNVPROC __glewVertexAttribL3i64vNV = NULL;
  2196. PFNGLVERTEXATTRIBL3UI64NVPROC __glewVertexAttribL3ui64NV = NULL;
  2197. PFNGLVERTEXATTRIBL3UI64VNVPROC __glewVertexAttribL3ui64vNV = NULL;
  2198. PFNGLVERTEXATTRIBL4I64NVPROC __glewVertexAttribL4i64NV = NULL;
  2199. PFNGLVERTEXATTRIBL4I64VNVPROC __glewVertexAttribL4i64vNV = NULL;
  2200. PFNGLVERTEXATTRIBL4UI64NVPROC __glewVertexAttribL4ui64NV = NULL;
  2201. PFNGLVERTEXATTRIBL4UI64VNVPROC __glewVertexAttribL4ui64vNV = NULL;
  2202. PFNGLVERTEXATTRIBLFORMATNVPROC __glewVertexAttribLFormatNV = NULL;
  2203. PFNGLBUFFERADDRESSRANGENVPROC __glewBufferAddressRangeNV = NULL;
  2204. PFNGLCOLORFORMATNVPROC __glewColorFormatNV = NULL;
  2205. PFNGLEDGEFLAGFORMATNVPROC __glewEdgeFlagFormatNV = NULL;
  2206. PFNGLFOGCOORDFORMATNVPROC __glewFogCoordFormatNV = NULL;
  2207. PFNGLGETINTEGERUI64I_VNVPROC __glewGetIntegerui64i_vNV = NULL;
  2208. PFNGLINDEXFORMATNVPROC __glewIndexFormatNV = NULL;
  2209. PFNGLNORMALFORMATNVPROC __glewNormalFormatNV = NULL;
  2210. PFNGLSECONDARYCOLORFORMATNVPROC __glewSecondaryColorFormatNV = NULL;
  2211. PFNGLTEXCOORDFORMATNVPROC __glewTexCoordFormatNV = NULL;
  2212. PFNGLVERTEXATTRIBFORMATNVPROC __glewVertexAttribFormatNV = NULL;
  2213. PFNGLVERTEXATTRIBIFORMATNVPROC __glewVertexAttribIFormatNV = NULL;
  2214. PFNGLVERTEXFORMATNVPROC __glewVertexFormatNV = NULL;
  2215. PFNGLAREPROGRAMSRESIDENTNVPROC __glewAreProgramsResidentNV = NULL;
  2216. PFNGLBINDPROGRAMNVPROC __glewBindProgramNV = NULL;
  2217. PFNGLDELETEPROGRAMSNVPROC __glewDeleteProgramsNV = NULL;
  2218. PFNGLEXECUTEPROGRAMNVPROC __glewExecuteProgramNV = NULL;
  2219. PFNGLGENPROGRAMSNVPROC __glewGenProgramsNV = NULL;
  2220. PFNGLGETPROGRAMPARAMETERDVNVPROC __glewGetProgramParameterdvNV = NULL;
  2221. PFNGLGETPROGRAMPARAMETERFVNVPROC __glewGetProgramParameterfvNV = NULL;
  2222. PFNGLGETPROGRAMSTRINGNVPROC __glewGetProgramStringNV = NULL;
  2223. PFNGLGETPROGRAMIVNVPROC __glewGetProgramivNV = NULL;
  2224. PFNGLGETTRACKMATRIXIVNVPROC __glewGetTrackMatrixivNV = NULL;
  2225. PFNGLGETVERTEXATTRIBPOINTERVNVPROC __glewGetVertexAttribPointervNV = NULL;
  2226. PFNGLGETVERTEXATTRIBDVNVPROC __glewGetVertexAttribdvNV = NULL;
  2227. PFNGLGETVERTEXATTRIBFVNVPROC __glewGetVertexAttribfvNV = NULL;
  2228. PFNGLGETVERTEXATTRIBIVNVPROC __glewGetVertexAttribivNV = NULL;
  2229. PFNGLISPROGRAMNVPROC __glewIsProgramNV = NULL;
  2230. PFNGLLOADPROGRAMNVPROC __glewLoadProgramNV = NULL;
  2231. PFNGLPROGRAMPARAMETER4DNVPROC __glewProgramParameter4dNV = NULL;
  2232. PFNGLPROGRAMPARAMETER4DVNVPROC __glewProgramParameter4dvNV = NULL;
  2233. PFNGLPROGRAMPARAMETER4FNVPROC __glewProgramParameter4fNV = NULL;
  2234. PFNGLPROGRAMPARAMETER4FVNVPROC __glewProgramParameter4fvNV = NULL;
  2235. PFNGLPROGRAMPARAMETERS4DVNVPROC __glewProgramParameters4dvNV = NULL;
  2236. PFNGLPROGRAMPARAMETERS4FVNVPROC __glewProgramParameters4fvNV = NULL;
  2237. PFNGLREQUESTRESIDENTPROGRAMSNVPROC __glewRequestResidentProgramsNV = NULL;
  2238. PFNGLTRACKMATRIXNVPROC __glewTrackMatrixNV = NULL;
  2239. PFNGLVERTEXATTRIB1DNVPROC __glewVertexAttrib1dNV = NULL;
  2240. PFNGLVERTEXATTRIB1DVNVPROC __glewVertexAttrib1dvNV = NULL;
  2241. PFNGLVERTEXATTRIB1FNVPROC __glewVertexAttrib1fNV = NULL;
  2242. PFNGLVERTEXATTRIB1FVNVPROC __glewVertexAttrib1fvNV = NULL;
  2243. PFNGLVERTEXATTRIB1SNVPROC __glewVertexAttrib1sNV = NULL;
  2244. PFNGLVERTEXATTRIB1SVNVPROC __glewVertexAttrib1svNV = NULL;
  2245. PFNGLVERTEXATTRIB2DNVPROC __glewVertexAttrib2dNV = NULL;
  2246. PFNGLVERTEXATTRIB2DVNVPROC __glewVertexAttrib2dvNV = NULL;
  2247. PFNGLVERTEXATTRIB2FNVPROC __glewVertexAttrib2fNV = NULL;
  2248. PFNGLVERTEXATTRIB2FVNVPROC __glewVertexAttrib2fvNV = NULL;
  2249. PFNGLVERTEXATTRIB2SNVPROC __glewVertexAttrib2sNV = NULL;
  2250. PFNGLVERTEXATTRIB2SVNVPROC __glewVertexAttrib2svNV = NULL;
  2251. PFNGLVERTEXATTRIB3DNVPROC __glewVertexAttrib3dNV = NULL;
  2252. PFNGLVERTEXATTRIB3DVNVPROC __glewVertexAttrib3dvNV = NULL;
  2253. PFNGLVERTEXATTRIB3FNVPROC __glewVertexAttrib3fNV = NULL;
  2254. PFNGLVERTEXATTRIB3FVNVPROC __glewVertexAttrib3fvNV = NULL;
  2255. PFNGLVERTEXATTRIB3SNVPROC __glewVertexAttrib3sNV = NULL;
  2256. PFNGLVERTEXATTRIB3SVNVPROC __glewVertexAttrib3svNV = NULL;
  2257. PFNGLVERTEXATTRIB4DNVPROC __glewVertexAttrib4dNV = NULL;
  2258. PFNGLVERTEXATTRIB4DVNVPROC __glewVertexAttrib4dvNV = NULL;
  2259. PFNGLVERTEXATTRIB4FNVPROC __glewVertexAttrib4fNV = NULL;
  2260. PFNGLVERTEXATTRIB4FVNVPROC __glewVertexAttrib4fvNV = NULL;
  2261. PFNGLVERTEXATTRIB4SNVPROC __glewVertexAttrib4sNV = NULL;
  2262. PFNGLVERTEXATTRIB4SVNVPROC __glewVertexAttrib4svNV = NULL;
  2263. PFNGLVERTEXATTRIB4UBNVPROC __glewVertexAttrib4ubNV = NULL;
  2264. PFNGLVERTEXATTRIB4UBVNVPROC __glewVertexAttrib4ubvNV = NULL;
  2265. PFNGLVERTEXATTRIBPOINTERNVPROC __glewVertexAttribPointerNV = NULL;
  2266. PFNGLVERTEXATTRIBS1DVNVPROC __glewVertexAttribs1dvNV = NULL;
  2267. PFNGLVERTEXATTRIBS1FVNVPROC __glewVertexAttribs1fvNV = NULL;
  2268. PFNGLVERTEXATTRIBS1SVNVPROC __glewVertexAttribs1svNV = NULL;
  2269. PFNGLVERTEXATTRIBS2DVNVPROC __glewVertexAttribs2dvNV = NULL;
  2270. PFNGLVERTEXATTRIBS2FVNVPROC __glewVertexAttribs2fvNV = NULL;
  2271. PFNGLVERTEXATTRIBS2SVNVPROC __glewVertexAttribs2svNV = NULL;
  2272. PFNGLVERTEXATTRIBS3DVNVPROC __glewVertexAttribs3dvNV = NULL;
  2273. PFNGLVERTEXATTRIBS3FVNVPROC __glewVertexAttribs3fvNV = NULL;
  2274. PFNGLVERTEXATTRIBS3SVNVPROC __glewVertexAttribs3svNV = NULL;
  2275. PFNGLVERTEXATTRIBS4DVNVPROC __glewVertexAttribs4dvNV = NULL;
  2276. PFNGLVERTEXATTRIBS4FVNVPROC __glewVertexAttribs4fvNV = NULL;
  2277. PFNGLVERTEXATTRIBS4SVNVPROC __glewVertexAttribs4svNV = NULL;
  2278. PFNGLVERTEXATTRIBS4UBVNVPROC __glewVertexAttribs4ubvNV = NULL;
  2279. PFNGLBEGINVIDEOCAPTURENVPROC __glewBeginVideoCaptureNV = NULL;
  2280. PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC __glewBindVideoCaptureStreamBufferNV = NULL;
  2281. PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC __glewBindVideoCaptureStreamTextureNV = NULL;
  2282. PFNGLENDVIDEOCAPTURENVPROC __glewEndVideoCaptureNV = NULL;
  2283. PFNGLGETVIDEOCAPTURESTREAMDVNVPROC __glewGetVideoCaptureStreamdvNV = NULL;
  2284. PFNGLGETVIDEOCAPTURESTREAMFVNVPROC __glewGetVideoCaptureStreamfvNV = NULL;
  2285. PFNGLGETVIDEOCAPTURESTREAMIVNVPROC __glewGetVideoCaptureStreamivNV = NULL;
  2286. PFNGLGETVIDEOCAPTUREIVNVPROC __glewGetVideoCaptureivNV = NULL;
  2287. PFNGLVIDEOCAPTURENVPROC __glewVideoCaptureNV = NULL;
  2288. PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC __glewVideoCaptureStreamParameterdvNV = NULL;
  2289. PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC __glewVideoCaptureStreamParameterfvNV = NULL;
  2290. PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC __glewVideoCaptureStreamParameterivNV = NULL;
  2291. PFNGLCLEARDEPTHFOESPROC __glewClearDepthfOES = NULL;
  2292. PFNGLCLIPPLANEFOESPROC __glewClipPlanefOES = NULL;
  2293. PFNGLDEPTHRANGEFOESPROC __glewDepthRangefOES = NULL;
  2294. PFNGLFRUSTUMFOESPROC __glewFrustumfOES = NULL;
  2295. PFNGLGETCLIPPLANEFOESPROC __glewGetClipPlanefOES = NULL;
  2296. PFNGLORTHOFOESPROC __glewOrthofOES = NULL;
  2297. PFNGLALPHAFUNCXPROC __glewAlphaFuncx = NULL;
  2298. PFNGLCLEARCOLORXPROC __glewClearColorx = NULL;
  2299. PFNGLCLEARDEPTHXPROC __glewClearDepthx = NULL;
  2300. PFNGLCOLOR4XPROC __glewColor4x = NULL;
  2301. PFNGLDEPTHRANGEXPROC __glewDepthRangex = NULL;
  2302. PFNGLFOGXPROC __glewFogx = NULL;
  2303. PFNGLFOGXVPROC __glewFogxv = NULL;
  2304. PFNGLFRUSTUMFPROC __glewFrustumf = NULL;
  2305. PFNGLFRUSTUMXPROC __glewFrustumx = NULL;
  2306. PFNGLLIGHTMODELXPROC __glewLightModelx = NULL;
  2307. PFNGLLIGHTMODELXVPROC __glewLightModelxv = NULL;
  2308. PFNGLLIGHTXPROC __glewLightx = NULL;
  2309. PFNGLLIGHTXVPROC __glewLightxv = NULL;
  2310. PFNGLLINEWIDTHXPROC __glewLineWidthx = NULL;
  2311. PFNGLLOADMATRIXXPROC __glewLoadMatrixx = NULL;
  2312. PFNGLMATERIALXPROC __glewMaterialx = NULL;
  2313. PFNGLMATERIALXVPROC __glewMaterialxv = NULL;
  2314. PFNGLMULTMATRIXXPROC __glewMultMatrixx = NULL;
  2315. PFNGLMULTITEXCOORD4XPROC __glewMultiTexCoord4x = NULL;
  2316. PFNGLNORMAL3XPROC __glewNormal3x = NULL;
  2317. PFNGLORTHOFPROC __glewOrthof = NULL;
  2318. PFNGLORTHOXPROC __glewOrthox = NULL;
  2319. PFNGLPOINTSIZEXPROC __glewPointSizex = NULL;
  2320. PFNGLPOLYGONOFFSETXPROC __glewPolygonOffsetx = NULL;
  2321. PFNGLROTATEXPROC __glewRotatex = NULL;
  2322. PFNGLSAMPLECOVERAGEXPROC __glewSampleCoveragex = NULL;
  2323. PFNGLSCALEXPROC __glewScalex = NULL;
  2324. PFNGLTEXENVXPROC __glewTexEnvx = NULL;
  2325. PFNGLTEXENVXVPROC __glewTexEnvxv = NULL;
  2326. PFNGLTEXPARAMETERXPROC __glewTexParameterx = NULL;
  2327. PFNGLTRANSLATEXPROC __glewTranslatex = NULL;
  2328. PFNGLCLIPPLANEFPROC __glewClipPlanef = NULL;
  2329. PFNGLCLIPPLANEXPROC __glewClipPlanex = NULL;
  2330. PFNGLGETCLIPPLANEFPROC __glewGetClipPlanef = NULL;
  2331. PFNGLGETCLIPPLANEXPROC __glewGetClipPlanex = NULL;
  2332. PFNGLGETFIXEDVPROC __glewGetFixedv = NULL;
  2333. PFNGLGETLIGHTXVPROC __glewGetLightxv = NULL;
  2334. PFNGLGETMATERIALXVPROC __glewGetMaterialxv = NULL;
  2335. PFNGLGETTEXENVXVPROC __glewGetTexEnvxv = NULL;
  2336. PFNGLGETTEXPARAMETERXVPROC __glewGetTexParameterxv = NULL;
  2337. PFNGLPOINTPARAMETERXPROC __glewPointParameterx = NULL;
  2338. PFNGLPOINTPARAMETERXVPROC __glewPointParameterxv = NULL;
  2339. PFNGLPOINTSIZEPOINTEROESPROC __glewPointSizePointerOES = NULL;
  2340. PFNGLTEXPARAMETERXVPROC __glewTexParameterxv = NULL;
  2341. PFNGLERRORSTRINGREGALPROC __glewErrorStringREGAL = NULL;
  2342. PFNGLGETEXTENSIONREGALPROC __glewGetExtensionREGAL = NULL;
  2343. PFNGLISSUPPORTEDREGALPROC __glewIsSupportedREGAL = NULL;
  2344. PFNGLLOGMESSAGECALLBACKREGALPROC __glewLogMessageCallbackREGAL = NULL;
  2345. PFNGLDETAILTEXFUNCSGISPROC __glewDetailTexFuncSGIS = NULL;
  2346. PFNGLGETDETAILTEXFUNCSGISPROC __glewGetDetailTexFuncSGIS = NULL;
  2347. PFNGLFOGFUNCSGISPROC __glewFogFuncSGIS = NULL;
  2348. PFNGLGETFOGFUNCSGISPROC __glewGetFogFuncSGIS = NULL;
  2349. PFNGLSAMPLEMASKSGISPROC __glewSampleMaskSGIS = NULL;
  2350. PFNGLSAMPLEPATTERNSGISPROC __glewSamplePatternSGIS = NULL;
  2351. PFNGLGETSHARPENTEXFUNCSGISPROC __glewGetSharpenTexFuncSGIS = NULL;
  2352. PFNGLSHARPENTEXFUNCSGISPROC __glewSharpenTexFuncSGIS = NULL;
  2353. PFNGLTEXIMAGE4DSGISPROC __glewTexImage4DSGIS = NULL;
  2354. PFNGLTEXSUBIMAGE4DSGISPROC __glewTexSubImage4DSGIS = NULL;
  2355. PFNGLGETTEXFILTERFUNCSGISPROC __glewGetTexFilterFuncSGIS = NULL;
  2356. PFNGLTEXFILTERFUNCSGISPROC __glewTexFilterFuncSGIS = NULL;
  2357. PFNGLASYNCMARKERSGIXPROC __glewAsyncMarkerSGIX = NULL;
  2358. PFNGLDELETEASYNCMARKERSSGIXPROC __glewDeleteAsyncMarkersSGIX = NULL;
  2359. PFNGLFINISHASYNCSGIXPROC __glewFinishAsyncSGIX = NULL;
  2360. PFNGLGENASYNCMARKERSSGIXPROC __glewGenAsyncMarkersSGIX = NULL;
  2361. PFNGLISASYNCMARKERSGIXPROC __glewIsAsyncMarkerSGIX = NULL;
  2362. PFNGLPOLLASYNCSGIXPROC __glewPollAsyncSGIX = NULL;
  2363. PFNGLFLUSHRASTERSGIXPROC __glewFlushRasterSGIX = NULL;
  2364. PFNGLTEXTUREFOGSGIXPROC __glewTextureFogSGIX = NULL;
  2365. PFNGLFRAGMENTCOLORMATERIALSGIXPROC __glewFragmentColorMaterialSGIX = NULL;
  2366. PFNGLFRAGMENTLIGHTMODELFSGIXPROC __glewFragmentLightModelfSGIX = NULL;
  2367. PFNGLFRAGMENTLIGHTMODELFVSGIXPROC __glewFragmentLightModelfvSGIX = NULL;
  2368. PFNGLFRAGMENTLIGHTMODELISGIXPROC __glewFragmentLightModeliSGIX = NULL;
  2369. PFNGLFRAGMENTLIGHTMODELIVSGIXPROC __glewFragmentLightModelivSGIX = NULL;
  2370. PFNGLFRAGMENTLIGHTFSGIXPROC __glewFragmentLightfSGIX = NULL;
  2371. PFNGLFRAGMENTLIGHTFVSGIXPROC __glewFragmentLightfvSGIX = NULL;
  2372. PFNGLFRAGMENTLIGHTISGIXPROC __glewFragmentLightiSGIX = NULL;
  2373. PFNGLFRAGMENTLIGHTIVSGIXPROC __glewFragmentLightivSGIX = NULL;
  2374. PFNGLFRAGMENTMATERIALFSGIXPROC __glewFragmentMaterialfSGIX = NULL;
  2375. PFNGLFRAGMENTMATERIALFVSGIXPROC __glewFragmentMaterialfvSGIX = NULL;
  2376. PFNGLFRAGMENTMATERIALISGIXPROC __glewFragmentMaterialiSGIX = NULL;
  2377. PFNGLFRAGMENTMATERIALIVSGIXPROC __glewFragmentMaterialivSGIX = NULL;
  2378. PFNGLGETFRAGMENTLIGHTFVSGIXPROC __glewGetFragmentLightfvSGIX = NULL;
  2379. PFNGLGETFRAGMENTLIGHTIVSGIXPROC __glewGetFragmentLightivSGIX = NULL;
  2380. PFNGLGETFRAGMENTMATERIALFVSGIXPROC __glewGetFragmentMaterialfvSGIX = NULL;
  2381. PFNGLGETFRAGMENTMATERIALIVSGIXPROC __glewGetFragmentMaterialivSGIX = NULL;
  2382. PFNGLFRAMEZOOMSGIXPROC __glewFrameZoomSGIX = NULL;
  2383. PFNGLPIXELTEXGENSGIXPROC __glewPixelTexGenSGIX = NULL;
  2384. PFNGLREFERENCEPLANESGIXPROC __glewReferencePlaneSGIX = NULL;
  2385. PFNGLSPRITEPARAMETERFSGIXPROC __glewSpriteParameterfSGIX = NULL;
  2386. PFNGLSPRITEPARAMETERFVSGIXPROC __glewSpriteParameterfvSGIX = NULL;
  2387. PFNGLSPRITEPARAMETERISGIXPROC __glewSpriteParameteriSGIX = NULL;
  2388. PFNGLSPRITEPARAMETERIVSGIXPROC __glewSpriteParameterivSGIX = NULL;
  2389. PFNGLTAGSAMPLEBUFFERSGIXPROC __glewTagSampleBufferSGIX = NULL;
  2390. PFNGLCOLORTABLEPARAMETERFVSGIPROC __glewColorTableParameterfvSGI = NULL;
  2391. PFNGLCOLORTABLEPARAMETERIVSGIPROC __glewColorTableParameterivSGI = NULL;
  2392. PFNGLCOLORTABLESGIPROC __glewColorTableSGI = NULL;
  2393. PFNGLCOPYCOLORTABLESGIPROC __glewCopyColorTableSGI = NULL;
  2394. PFNGLGETCOLORTABLEPARAMETERFVSGIPROC __glewGetColorTableParameterfvSGI = NULL;
  2395. PFNGLGETCOLORTABLEPARAMETERIVSGIPROC __glewGetColorTableParameterivSGI = NULL;
  2396. PFNGLGETCOLORTABLESGIPROC __glewGetColorTableSGI = NULL;
  2397. PFNGLFINISHTEXTURESUNXPROC __glewFinishTextureSUNX = NULL;
  2398. PFNGLGLOBALALPHAFACTORBSUNPROC __glewGlobalAlphaFactorbSUN = NULL;
  2399. PFNGLGLOBALALPHAFACTORDSUNPROC __glewGlobalAlphaFactordSUN = NULL;
  2400. PFNGLGLOBALALPHAFACTORFSUNPROC __glewGlobalAlphaFactorfSUN = NULL;
  2401. PFNGLGLOBALALPHAFACTORISUNPROC __glewGlobalAlphaFactoriSUN = NULL;
  2402. PFNGLGLOBALALPHAFACTORSSUNPROC __glewGlobalAlphaFactorsSUN = NULL;
  2403. PFNGLGLOBALALPHAFACTORUBSUNPROC __glewGlobalAlphaFactorubSUN = NULL;
  2404. PFNGLGLOBALALPHAFACTORUISUNPROC __glewGlobalAlphaFactoruiSUN = NULL;
  2405. PFNGLGLOBALALPHAFACTORUSSUNPROC __glewGlobalAlphaFactorusSUN = NULL;
  2406. PFNGLREADVIDEOPIXELSSUNPROC __glewReadVideoPixelsSUN = NULL;
  2407. PFNGLREPLACEMENTCODEPOINTERSUNPROC __glewReplacementCodePointerSUN = NULL;
  2408. PFNGLREPLACEMENTCODEUBSUNPROC __glewReplacementCodeubSUN = NULL;
  2409. PFNGLREPLACEMENTCODEUBVSUNPROC __glewReplacementCodeubvSUN = NULL;
  2410. PFNGLREPLACEMENTCODEUISUNPROC __glewReplacementCodeuiSUN = NULL;
  2411. PFNGLREPLACEMENTCODEUIVSUNPROC __glewReplacementCodeuivSUN = NULL;
  2412. PFNGLREPLACEMENTCODEUSSUNPROC __glewReplacementCodeusSUN = NULL;
  2413. PFNGLREPLACEMENTCODEUSVSUNPROC __glewReplacementCodeusvSUN = NULL;
  2414. PFNGLCOLOR3FVERTEX3FSUNPROC __glewColor3fVertex3fSUN = NULL;
  2415. PFNGLCOLOR3FVERTEX3FVSUNPROC __glewColor3fVertex3fvSUN = NULL;
  2416. PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewColor4fNormal3fVertex3fSUN = NULL;
  2417. PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewColor4fNormal3fVertex3fvSUN = NULL;
  2418. PFNGLCOLOR4UBVERTEX2FSUNPROC __glewColor4ubVertex2fSUN = NULL;
  2419. PFNGLCOLOR4UBVERTEX2FVSUNPROC __glewColor4ubVertex2fvSUN = NULL;
  2420. PFNGLCOLOR4UBVERTEX3FSUNPROC __glewColor4ubVertex3fSUN = NULL;
  2421. PFNGLCOLOR4UBVERTEX3FVSUNPROC __glewColor4ubVertex3fvSUN = NULL;
  2422. PFNGLNORMAL3FVERTEX3FSUNPROC __glewNormal3fVertex3fSUN = NULL;
  2423. PFNGLNORMAL3FVERTEX3FVSUNPROC __glewNormal3fVertex3fvSUN = NULL;
  2424. PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC __glewReplacementCodeuiColor3fVertex3fSUN = NULL;
  2425. PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC __glewReplacementCodeuiColor3fVertex3fvSUN = NULL;
  2426. PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiColor4fNormal3fVertex3fSUN = NULL;
  2427. PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiColor4fNormal3fVertex3fvSUN = NULL;
  2428. PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC __glewReplacementCodeuiColor4ubVertex3fSUN = NULL;
  2429. PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC __glewReplacementCodeuiColor4ubVertex3fvSUN = NULL;
  2430. PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiNormal3fVertex3fSUN = NULL;
  2431. PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiNormal3fVertex3fvSUN = NULL;
  2432. PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = NULL;
  2433. PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = NULL;
  2434. PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = NULL;
  2435. PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = NULL;
  2436. PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC __glewReplacementCodeuiTexCoord2fVertex3fSUN = NULL;
  2437. PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC __glewReplacementCodeuiTexCoord2fVertex3fvSUN = NULL;
  2438. PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC __glewReplacementCodeuiVertex3fSUN = NULL;
  2439. PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC __glewReplacementCodeuiVertex3fvSUN = NULL;
  2440. PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC __glewTexCoord2fColor3fVertex3fSUN = NULL;
  2441. PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC __glewTexCoord2fColor3fVertex3fvSUN = NULL;
  2442. PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC __glewTexCoord2fColor4fNormal3fVertex3fSUN = NULL;
  2443. PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC __glewTexCoord2fColor4fNormal3fVertex3fvSUN = NULL;
  2444. PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC __glewTexCoord2fColor4ubVertex3fSUN = NULL;
  2445. PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC __glewTexCoord2fColor4ubVertex3fvSUN = NULL;
  2446. PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC __glewTexCoord2fNormal3fVertex3fSUN = NULL;
  2447. PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC __glewTexCoord2fNormal3fVertex3fvSUN = NULL;
  2448. PFNGLTEXCOORD2FVERTEX3FSUNPROC __glewTexCoord2fVertex3fSUN = NULL;
  2449. PFNGLTEXCOORD2FVERTEX3FVSUNPROC __glewTexCoord2fVertex3fvSUN = NULL;
  2450. PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC __glewTexCoord4fColor4fNormal3fVertex4fSUN = NULL;
  2451. PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC __glewTexCoord4fColor4fNormal3fVertex4fvSUN = NULL;
  2452. PFNGLTEXCOORD4FVERTEX4FSUNPROC __glewTexCoord4fVertex4fSUN = NULL;
  2453. PFNGLTEXCOORD4FVERTEX4FVSUNPROC __glewTexCoord4fVertex4fvSUN = NULL;
  2454. PFNGLADDSWAPHINTRECTWINPROC __glewAddSwapHintRectWIN = NULL;
  2455. #endif /* !WIN32 || !GLEW_MX */
  2456. #if !defined(GLEW_MX)
  2457. GLboolean __GLEW_VERSION_1_1 = GL_FALSE;
  2458. GLboolean __GLEW_VERSION_1_2 = GL_FALSE;
  2459. GLboolean __GLEW_VERSION_1_2_1 = GL_FALSE;
  2460. GLboolean __GLEW_VERSION_1_3 = GL_FALSE;
  2461. GLboolean __GLEW_VERSION_1_4 = GL_FALSE;
  2462. GLboolean __GLEW_VERSION_1_5 = GL_FALSE;
  2463. GLboolean __GLEW_VERSION_2_0 = GL_FALSE;
  2464. GLboolean __GLEW_VERSION_2_1 = GL_FALSE;
  2465. GLboolean __GLEW_VERSION_3_0 = GL_FALSE;
  2466. GLboolean __GLEW_VERSION_3_1 = GL_FALSE;
  2467. GLboolean __GLEW_VERSION_3_2 = GL_FALSE;
  2468. GLboolean __GLEW_VERSION_3_3 = GL_FALSE;
  2469. GLboolean __GLEW_VERSION_4_0 = GL_FALSE;
  2470. GLboolean __GLEW_VERSION_4_1 = GL_FALSE;
  2471. GLboolean __GLEW_VERSION_4_2 = GL_FALSE;
  2472. GLboolean __GLEW_VERSION_4_3 = GL_FALSE;
  2473. GLboolean __GLEW_VERSION_4_4 = GL_FALSE;
  2474. GLboolean __GLEW_3DFX_multisample = GL_FALSE;
  2475. GLboolean __GLEW_3DFX_tbuffer = GL_FALSE;
  2476. GLboolean __GLEW_3DFX_texture_compression_FXT1 = GL_FALSE;
  2477. GLboolean __GLEW_AMD_blend_minmax_factor = GL_FALSE;
  2478. GLboolean __GLEW_AMD_conservative_depth = GL_FALSE;
  2479. GLboolean __GLEW_AMD_debug_output = GL_FALSE;
  2480. GLboolean __GLEW_AMD_depth_clamp_separate = GL_FALSE;
  2481. GLboolean __GLEW_AMD_draw_buffers_blend = GL_FALSE;
  2482. GLboolean __GLEW_AMD_interleaved_elements = GL_FALSE;
  2483. GLboolean __GLEW_AMD_multi_draw_indirect = GL_FALSE;
  2484. GLboolean __GLEW_AMD_name_gen_delete = GL_FALSE;
  2485. GLboolean __GLEW_AMD_performance_monitor = GL_FALSE;
  2486. GLboolean __GLEW_AMD_pinned_memory = GL_FALSE;
  2487. GLboolean __GLEW_AMD_query_buffer_object = GL_FALSE;
  2488. GLboolean __GLEW_AMD_sample_positions = GL_FALSE;
  2489. GLboolean __GLEW_AMD_seamless_cubemap_per_texture = GL_FALSE;
  2490. GLboolean __GLEW_AMD_shader_stencil_export = GL_FALSE;
  2491. GLboolean __GLEW_AMD_shader_trinary_minmax = GL_FALSE;
  2492. GLboolean __GLEW_AMD_sparse_texture = GL_FALSE;
  2493. GLboolean __GLEW_AMD_stencil_operation_extended = GL_FALSE;
  2494. GLboolean __GLEW_AMD_texture_texture4 = GL_FALSE;
  2495. GLboolean __GLEW_AMD_transform_feedback3_lines_triangles = GL_FALSE;
  2496. GLboolean __GLEW_AMD_vertex_shader_layer = GL_FALSE;
  2497. GLboolean __GLEW_AMD_vertex_shader_tessellator = GL_FALSE;
  2498. GLboolean __GLEW_AMD_vertex_shader_viewport_index = GL_FALSE;
  2499. GLboolean __GLEW_ANGLE_depth_texture = GL_FALSE;
  2500. GLboolean __GLEW_ANGLE_framebuffer_blit = GL_FALSE;
  2501. GLboolean __GLEW_ANGLE_framebuffer_multisample = GL_FALSE;
  2502. GLboolean __GLEW_ANGLE_instanced_arrays = GL_FALSE;
  2503. GLboolean __GLEW_ANGLE_pack_reverse_row_order = GL_FALSE;
  2504. GLboolean __GLEW_ANGLE_program_binary = GL_FALSE;
  2505. GLboolean __GLEW_ANGLE_texture_compression_dxt1 = GL_FALSE;
  2506. GLboolean __GLEW_ANGLE_texture_compression_dxt3 = GL_FALSE;
  2507. GLboolean __GLEW_ANGLE_texture_compression_dxt5 = GL_FALSE;
  2508. GLboolean __GLEW_ANGLE_texture_usage = GL_FALSE;
  2509. GLboolean __GLEW_ANGLE_timer_query = GL_FALSE;
  2510. GLboolean __GLEW_ANGLE_translated_shader_source = GL_FALSE;
  2511. GLboolean __GLEW_APPLE_aux_depth_stencil = GL_FALSE;
  2512. GLboolean __GLEW_APPLE_client_storage = GL_FALSE;
  2513. GLboolean __GLEW_APPLE_element_array = GL_FALSE;
  2514. GLboolean __GLEW_APPLE_fence = GL_FALSE;
  2515. GLboolean __GLEW_APPLE_float_pixels = GL_FALSE;
  2516. GLboolean __GLEW_APPLE_flush_buffer_range = GL_FALSE;
  2517. GLboolean __GLEW_APPLE_object_purgeable = GL_FALSE;
  2518. GLboolean __GLEW_APPLE_pixel_buffer = GL_FALSE;
  2519. GLboolean __GLEW_APPLE_rgb_422 = GL_FALSE;
  2520. GLboolean __GLEW_APPLE_row_bytes = GL_FALSE;
  2521. GLboolean __GLEW_APPLE_specular_vector = GL_FALSE;
  2522. GLboolean __GLEW_APPLE_texture_range = GL_FALSE;
  2523. GLboolean __GLEW_APPLE_transform_hint = GL_FALSE;
  2524. GLboolean __GLEW_APPLE_vertex_array_object = GL_FALSE;
  2525. GLboolean __GLEW_APPLE_vertex_array_range = GL_FALSE;
  2526. GLboolean __GLEW_APPLE_vertex_program_evaluators = GL_FALSE;
  2527. GLboolean __GLEW_APPLE_ycbcr_422 = GL_FALSE;
  2528. GLboolean __GLEW_ARB_ES2_compatibility = GL_FALSE;
  2529. GLboolean __GLEW_ARB_ES3_compatibility = GL_FALSE;
  2530. GLboolean __GLEW_ARB_arrays_of_arrays = GL_FALSE;
  2531. GLboolean __GLEW_ARB_base_instance = GL_FALSE;
  2532. GLboolean __GLEW_ARB_bindless_texture = GL_FALSE;
  2533. GLboolean __GLEW_ARB_blend_func_extended = GL_FALSE;
  2534. GLboolean __GLEW_ARB_buffer_storage = GL_FALSE;
  2535. GLboolean __GLEW_ARB_cl_event = GL_FALSE;
  2536. GLboolean __GLEW_ARB_clear_buffer_object = GL_FALSE;
  2537. GLboolean __GLEW_ARB_clear_texture = GL_FALSE;
  2538. GLboolean __GLEW_ARB_color_buffer_float = GL_FALSE;
  2539. GLboolean __GLEW_ARB_compatibility = GL_FALSE;
  2540. GLboolean __GLEW_ARB_compressed_texture_pixel_storage = GL_FALSE;
  2541. GLboolean __GLEW_ARB_compute_shader = GL_FALSE;
  2542. GLboolean __GLEW_ARB_compute_variable_group_size = GL_FALSE;
  2543. GLboolean __GLEW_ARB_conservative_depth = GL_FALSE;
  2544. GLboolean __GLEW_ARB_copy_buffer = GL_FALSE;
  2545. GLboolean __GLEW_ARB_copy_image = GL_FALSE;
  2546. GLboolean __GLEW_ARB_debug_output = GL_FALSE;
  2547. GLboolean __GLEW_ARB_depth_buffer_float = GL_FALSE;
  2548. GLboolean __GLEW_ARB_depth_clamp = GL_FALSE;
  2549. GLboolean __GLEW_ARB_depth_texture = GL_FALSE;
  2550. GLboolean __GLEW_ARB_draw_buffers = GL_FALSE;
  2551. GLboolean __GLEW_ARB_draw_buffers_blend = GL_FALSE;
  2552. GLboolean __GLEW_ARB_draw_elements_base_vertex = GL_FALSE;
  2553. GLboolean __GLEW_ARB_draw_indirect = GL_FALSE;
  2554. GLboolean __GLEW_ARB_draw_instanced = GL_FALSE;
  2555. GLboolean __GLEW_ARB_enhanced_layouts = GL_FALSE;
  2556. GLboolean __GLEW_ARB_explicit_attrib_location = GL_FALSE;
  2557. GLboolean __GLEW_ARB_explicit_uniform_location = GL_FALSE;
  2558. GLboolean __GLEW_ARB_fragment_coord_conventions = GL_FALSE;
  2559. GLboolean __GLEW_ARB_fragment_layer_viewport = GL_FALSE;
  2560. GLboolean __GLEW_ARB_fragment_program = GL_FALSE;
  2561. GLboolean __GLEW_ARB_fragment_program_shadow = GL_FALSE;
  2562. GLboolean __GLEW_ARB_fragment_shader = GL_FALSE;
  2563. GLboolean __GLEW_ARB_framebuffer_no_attachments = GL_FALSE;
  2564. GLboolean __GLEW_ARB_framebuffer_object = GL_FALSE;
  2565. GLboolean __GLEW_ARB_framebuffer_sRGB = GL_FALSE;
  2566. GLboolean __GLEW_ARB_geometry_shader4 = GL_FALSE;
  2567. GLboolean __GLEW_ARB_get_program_binary = GL_FALSE;
  2568. GLboolean __GLEW_ARB_gpu_shader5 = GL_FALSE;
  2569. GLboolean __GLEW_ARB_gpu_shader_fp64 = GL_FALSE;
  2570. GLboolean __GLEW_ARB_half_float_pixel = GL_FALSE;
  2571. GLboolean __GLEW_ARB_half_float_vertex = GL_FALSE;
  2572. GLboolean __GLEW_ARB_imaging = GL_FALSE;
  2573. GLboolean __GLEW_ARB_indirect_parameters = GL_FALSE;
  2574. GLboolean __GLEW_ARB_instanced_arrays = GL_FALSE;
  2575. GLboolean __GLEW_ARB_internalformat_query = GL_FALSE;
  2576. GLboolean __GLEW_ARB_internalformat_query2 = GL_FALSE;
  2577. GLboolean __GLEW_ARB_invalidate_subdata = GL_FALSE;
  2578. GLboolean __GLEW_ARB_map_buffer_alignment = GL_FALSE;
  2579. GLboolean __GLEW_ARB_map_buffer_range = GL_FALSE;
  2580. GLboolean __GLEW_ARB_matrix_palette = GL_FALSE;
  2581. GLboolean __GLEW_ARB_multi_bind = GL_FALSE;
  2582. GLboolean __GLEW_ARB_multi_draw_indirect = GL_FALSE;
  2583. GLboolean __GLEW_ARB_multisample = GL_FALSE;
  2584. GLboolean __GLEW_ARB_multitexture = GL_FALSE;
  2585. GLboolean __GLEW_ARB_occlusion_query = GL_FALSE;
  2586. GLboolean __GLEW_ARB_occlusion_query2 = GL_FALSE;
  2587. GLboolean __GLEW_ARB_pixel_buffer_object = GL_FALSE;
  2588. GLboolean __GLEW_ARB_point_parameters = GL_FALSE;
  2589. GLboolean __GLEW_ARB_point_sprite = GL_FALSE;
  2590. GLboolean __GLEW_ARB_program_interface_query = GL_FALSE;
  2591. GLboolean __GLEW_ARB_provoking_vertex = GL_FALSE;
  2592. GLboolean __GLEW_ARB_query_buffer_object = GL_FALSE;
  2593. GLboolean __GLEW_ARB_robust_buffer_access_behavior = GL_FALSE;
  2594. GLboolean __GLEW_ARB_robustness = GL_FALSE;
  2595. GLboolean __GLEW_ARB_robustness_application_isolation = GL_FALSE;
  2596. GLboolean __GLEW_ARB_robustness_share_group_isolation = GL_FALSE;
  2597. GLboolean __GLEW_ARB_sample_shading = GL_FALSE;
  2598. GLboolean __GLEW_ARB_sampler_objects = GL_FALSE;
  2599. GLboolean __GLEW_ARB_seamless_cube_map = GL_FALSE;
  2600. GLboolean __GLEW_ARB_seamless_cubemap_per_texture = GL_FALSE;
  2601. GLboolean __GLEW_ARB_separate_shader_objects = GL_FALSE;
  2602. GLboolean __GLEW_ARB_shader_atomic_counters = GL_FALSE;
  2603. GLboolean __GLEW_ARB_shader_bit_encoding = GL_FALSE;
  2604. GLboolean __GLEW_ARB_shader_draw_parameters = GL_FALSE;
  2605. GLboolean __GLEW_ARB_shader_group_vote = GL_FALSE;
  2606. GLboolean __GLEW_ARB_shader_image_load_store = GL_FALSE;
  2607. GLboolean __GLEW_ARB_shader_image_size = GL_FALSE;
  2608. GLboolean __GLEW_ARB_shader_objects = GL_FALSE;
  2609. GLboolean __GLEW_ARB_shader_precision = GL_FALSE;
  2610. GLboolean __GLEW_ARB_shader_stencil_export = GL_FALSE;
  2611. GLboolean __GLEW_ARB_shader_storage_buffer_object = GL_FALSE;
  2612. GLboolean __GLEW_ARB_shader_subroutine = GL_FALSE;
  2613. GLboolean __GLEW_ARB_shader_texture_lod = GL_FALSE;
  2614. GLboolean __GLEW_ARB_shading_language_100 = GL_FALSE;
  2615. GLboolean __GLEW_ARB_shading_language_420pack = GL_FALSE;
  2616. GLboolean __GLEW_ARB_shading_language_include = GL_FALSE;
  2617. GLboolean __GLEW_ARB_shading_language_packing = GL_FALSE;
  2618. GLboolean __GLEW_ARB_shadow = GL_FALSE;
  2619. GLboolean __GLEW_ARB_shadow_ambient = GL_FALSE;
  2620. GLboolean __GLEW_ARB_sparse_texture = GL_FALSE;
  2621. GLboolean __GLEW_ARB_stencil_texturing = GL_FALSE;
  2622. GLboolean __GLEW_ARB_sync = GL_FALSE;
  2623. GLboolean __GLEW_ARB_tessellation_shader = GL_FALSE;
  2624. GLboolean __GLEW_ARB_texture_border_clamp = GL_FALSE;
  2625. GLboolean __GLEW_ARB_texture_buffer_object = GL_FALSE;
  2626. GLboolean __GLEW_ARB_texture_buffer_object_rgb32 = GL_FALSE;
  2627. GLboolean __GLEW_ARB_texture_buffer_range = GL_FALSE;
  2628. GLboolean __GLEW_ARB_texture_compression = GL_FALSE;
  2629. GLboolean __GLEW_ARB_texture_compression_bptc = GL_FALSE;
  2630. GLboolean __GLEW_ARB_texture_compression_rgtc = GL_FALSE;
  2631. GLboolean __GLEW_ARB_texture_cube_map = GL_FALSE;
  2632. GLboolean __GLEW_ARB_texture_cube_map_array = GL_FALSE;
  2633. GLboolean __GLEW_ARB_texture_env_add = GL_FALSE;
  2634. GLboolean __GLEW_ARB_texture_env_combine = GL_FALSE;
  2635. GLboolean __GLEW_ARB_texture_env_crossbar = GL_FALSE;
  2636. GLboolean __GLEW_ARB_texture_env_dot3 = GL_FALSE;
  2637. GLboolean __GLEW_ARB_texture_float = GL_FALSE;
  2638. GLboolean __GLEW_ARB_texture_gather = GL_FALSE;
  2639. GLboolean __GLEW_ARB_texture_mirror_clamp_to_edge = GL_FALSE;
  2640. GLboolean __GLEW_ARB_texture_mirrored_repeat = GL_FALSE;
  2641. GLboolean __GLEW_ARB_texture_multisample = GL_FALSE;
  2642. GLboolean __GLEW_ARB_texture_non_power_of_two = GL_FALSE;
  2643. GLboolean __GLEW_ARB_texture_query_levels = GL_FALSE;
  2644. GLboolean __GLEW_ARB_texture_query_lod = GL_FALSE;
  2645. GLboolean __GLEW_ARB_texture_rectangle = GL_FALSE;
  2646. GLboolean __GLEW_ARB_texture_rg = GL_FALSE;
  2647. GLboolean __GLEW_ARB_texture_rgb10_a2ui = GL_FALSE;
  2648. GLboolean __GLEW_ARB_texture_stencil8 = GL_FALSE;
  2649. GLboolean __GLEW_ARB_texture_storage = GL_FALSE;
  2650. GLboolean __GLEW_ARB_texture_storage_multisample = GL_FALSE;
  2651. GLboolean __GLEW_ARB_texture_swizzle = GL_FALSE;
  2652. GLboolean __GLEW_ARB_texture_view = GL_FALSE;
  2653. GLboolean __GLEW_ARB_timer_query = GL_FALSE;
  2654. GLboolean __GLEW_ARB_transform_feedback2 = GL_FALSE;
  2655. GLboolean __GLEW_ARB_transform_feedback3 = GL_FALSE;
  2656. GLboolean __GLEW_ARB_transform_feedback_instanced = GL_FALSE;
  2657. GLboolean __GLEW_ARB_transpose_matrix = GL_FALSE;
  2658. GLboolean __GLEW_ARB_uniform_buffer_object = GL_FALSE;
  2659. GLboolean __GLEW_ARB_vertex_array_bgra = GL_FALSE;
  2660. GLboolean __GLEW_ARB_vertex_array_object = GL_FALSE;
  2661. GLboolean __GLEW_ARB_vertex_attrib_64bit = GL_FALSE;
  2662. GLboolean __GLEW_ARB_vertex_attrib_binding = GL_FALSE;
  2663. GLboolean __GLEW_ARB_vertex_blend = GL_FALSE;
  2664. GLboolean __GLEW_ARB_vertex_buffer_object = GL_FALSE;
  2665. GLboolean __GLEW_ARB_vertex_program = GL_FALSE;
  2666. GLboolean __GLEW_ARB_vertex_shader = GL_FALSE;
  2667. GLboolean __GLEW_ARB_vertex_type_10f_11f_11f_rev = GL_FALSE;
  2668. GLboolean __GLEW_ARB_vertex_type_2_10_10_10_rev = GL_FALSE;
  2669. GLboolean __GLEW_ARB_viewport_array = GL_FALSE;
  2670. GLboolean __GLEW_ARB_window_pos = GL_FALSE;
  2671. GLboolean __GLEW_ATIX_point_sprites = GL_FALSE;
  2672. GLboolean __GLEW_ATIX_texture_env_combine3 = GL_FALSE;
  2673. GLboolean __GLEW_ATIX_texture_env_route = GL_FALSE;
  2674. GLboolean __GLEW_ATIX_vertex_shader_output_point_size = GL_FALSE;
  2675. GLboolean __GLEW_ATI_draw_buffers = GL_FALSE;
  2676. GLboolean __GLEW_ATI_element_array = GL_FALSE;
  2677. GLboolean __GLEW_ATI_envmap_bumpmap = GL_FALSE;
  2678. GLboolean __GLEW_ATI_fragment_shader = GL_FALSE;
  2679. GLboolean __GLEW_ATI_map_object_buffer = GL_FALSE;
  2680. GLboolean __GLEW_ATI_meminfo = GL_FALSE;
  2681. GLboolean __GLEW_ATI_pn_triangles = GL_FALSE;
  2682. GLboolean __GLEW_ATI_separate_stencil = GL_FALSE;
  2683. GLboolean __GLEW_ATI_shader_texture_lod = GL_FALSE;
  2684. GLboolean __GLEW_ATI_text_fragment_shader = GL_FALSE;
  2685. GLboolean __GLEW_ATI_texture_compression_3dc = GL_FALSE;
  2686. GLboolean __GLEW_ATI_texture_env_combine3 = GL_FALSE;
  2687. GLboolean __GLEW_ATI_texture_float = GL_FALSE;
  2688. GLboolean __GLEW_ATI_texture_mirror_once = GL_FALSE;
  2689. GLboolean __GLEW_ATI_vertex_array_object = GL_FALSE;
  2690. GLboolean __GLEW_ATI_vertex_attrib_array_object = GL_FALSE;
  2691. GLboolean __GLEW_ATI_vertex_streams = GL_FALSE;
  2692. GLboolean __GLEW_EXT_422_pixels = GL_FALSE;
  2693. GLboolean __GLEW_EXT_Cg_shader = GL_FALSE;
  2694. GLboolean __GLEW_EXT_abgr = GL_FALSE;
  2695. GLboolean __GLEW_EXT_bgra = GL_FALSE;
  2696. GLboolean __GLEW_EXT_bindable_uniform = GL_FALSE;
  2697. GLboolean __GLEW_EXT_blend_color = GL_FALSE;
  2698. GLboolean __GLEW_EXT_blend_equation_separate = GL_FALSE;
  2699. GLboolean __GLEW_EXT_blend_func_separate = GL_FALSE;
  2700. GLboolean __GLEW_EXT_blend_logic_op = GL_FALSE;
  2701. GLboolean __GLEW_EXT_blend_minmax = GL_FALSE;
  2702. GLboolean __GLEW_EXT_blend_subtract = GL_FALSE;
  2703. GLboolean __GLEW_EXT_clip_volume_hint = GL_FALSE;
  2704. GLboolean __GLEW_EXT_cmyka = GL_FALSE;
  2705. GLboolean __GLEW_EXT_color_subtable = GL_FALSE;
  2706. GLboolean __GLEW_EXT_compiled_vertex_array = GL_FALSE;
  2707. GLboolean __GLEW_EXT_convolution = GL_FALSE;
  2708. GLboolean __GLEW_EXT_coordinate_frame = GL_FALSE;
  2709. GLboolean __GLEW_EXT_copy_texture = GL_FALSE;
  2710. GLboolean __GLEW_EXT_cull_vertex = GL_FALSE;
  2711. GLboolean __GLEW_EXT_debug_marker = GL_FALSE;
  2712. GLboolean __GLEW_EXT_depth_bounds_test = GL_FALSE;
  2713. GLboolean __GLEW_EXT_direct_state_access = GL_FALSE;
  2714. GLboolean __GLEW_EXT_draw_buffers2 = GL_FALSE;
  2715. GLboolean __GLEW_EXT_draw_instanced = GL_FALSE;
  2716. GLboolean __GLEW_EXT_draw_range_elements = GL_FALSE;
  2717. GLboolean __GLEW_EXT_fog_coord = GL_FALSE;
  2718. GLboolean __GLEW_EXT_fragment_lighting = GL_FALSE;
  2719. GLboolean __GLEW_EXT_framebuffer_blit = GL_FALSE;
  2720. GLboolean __GLEW_EXT_framebuffer_multisample = GL_FALSE;
  2721. GLboolean __GLEW_EXT_framebuffer_multisample_blit_scaled = GL_FALSE;
  2722. GLboolean __GLEW_EXT_framebuffer_object = GL_FALSE;
  2723. GLboolean __GLEW_EXT_framebuffer_sRGB = GL_FALSE;
  2724. GLboolean __GLEW_EXT_geometry_shader4 = GL_FALSE;
  2725. GLboolean __GLEW_EXT_gpu_program_parameters = GL_FALSE;
  2726. GLboolean __GLEW_EXT_gpu_shader4 = GL_FALSE;
  2727. GLboolean __GLEW_EXT_histogram = GL_FALSE;
  2728. GLboolean __GLEW_EXT_index_array_formats = GL_FALSE;
  2729. GLboolean __GLEW_EXT_index_func = GL_FALSE;
  2730. GLboolean __GLEW_EXT_index_material = GL_FALSE;
  2731. GLboolean __GLEW_EXT_index_texture = GL_FALSE;
  2732. GLboolean __GLEW_EXT_light_texture = GL_FALSE;
  2733. GLboolean __GLEW_EXT_misc_attribute = GL_FALSE;
  2734. GLboolean __GLEW_EXT_multi_draw_arrays = GL_FALSE;
  2735. GLboolean __GLEW_EXT_multisample = GL_FALSE;
  2736. GLboolean __GLEW_EXT_packed_depth_stencil = GL_FALSE;
  2737. GLboolean __GLEW_EXT_packed_float = GL_FALSE;
  2738. GLboolean __GLEW_EXT_packed_pixels = GL_FALSE;
  2739. GLboolean __GLEW_EXT_paletted_texture = GL_FALSE;
  2740. GLboolean __GLEW_EXT_pixel_buffer_object = GL_FALSE;
  2741. GLboolean __GLEW_EXT_pixel_transform = GL_FALSE;
  2742. GLboolean __GLEW_EXT_pixel_transform_color_table = GL_FALSE;
  2743. GLboolean __GLEW_EXT_point_parameters = GL_FALSE;
  2744. GLboolean __GLEW_EXT_polygon_offset = GL_FALSE;
  2745. GLboolean __GLEW_EXT_provoking_vertex = GL_FALSE;
  2746. GLboolean __GLEW_EXT_rescale_normal = GL_FALSE;
  2747. GLboolean __GLEW_EXT_scene_marker = GL_FALSE;
  2748. GLboolean __GLEW_EXT_secondary_color = GL_FALSE;
  2749. GLboolean __GLEW_EXT_separate_shader_objects = GL_FALSE;
  2750. GLboolean __GLEW_EXT_separate_specular_color = GL_FALSE;
  2751. GLboolean __GLEW_EXT_shader_image_load_store = GL_FALSE;
  2752. GLboolean __GLEW_EXT_shadow_funcs = GL_FALSE;
  2753. GLboolean __GLEW_EXT_shared_texture_palette = GL_FALSE;
  2754. GLboolean __GLEW_EXT_stencil_clear_tag = GL_FALSE;
  2755. GLboolean __GLEW_EXT_stencil_two_side = GL_FALSE;
  2756. GLboolean __GLEW_EXT_stencil_wrap = GL_FALSE;
  2757. GLboolean __GLEW_EXT_subtexture = GL_FALSE;
  2758. GLboolean __GLEW_EXT_texture = GL_FALSE;
  2759. GLboolean __GLEW_EXT_texture3D = GL_FALSE;
  2760. GLboolean __GLEW_EXT_texture_array = GL_FALSE;
  2761. GLboolean __GLEW_EXT_texture_buffer_object = GL_FALSE;
  2762. GLboolean __GLEW_EXT_texture_compression_dxt1 = GL_FALSE;
  2763. GLboolean __GLEW_EXT_texture_compression_latc = GL_FALSE;
  2764. GLboolean __GLEW_EXT_texture_compression_rgtc = GL_FALSE;
  2765. GLboolean __GLEW_EXT_texture_compression_s3tc = GL_FALSE;
  2766. GLboolean __GLEW_EXT_texture_cube_map = GL_FALSE;
  2767. GLboolean __GLEW_EXT_texture_edge_clamp = GL_FALSE;
  2768. GLboolean __GLEW_EXT_texture_env = GL_FALSE;
  2769. GLboolean __GLEW_EXT_texture_env_add = GL_FALSE;
  2770. GLboolean __GLEW_EXT_texture_env_combine = GL_FALSE;
  2771. GLboolean __GLEW_EXT_texture_env_dot3 = GL_FALSE;
  2772. GLboolean __GLEW_EXT_texture_filter_anisotropic = GL_FALSE;
  2773. GLboolean __GLEW_EXT_texture_integer = GL_FALSE;
  2774. GLboolean __GLEW_EXT_texture_lod_bias = GL_FALSE;
  2775. GLboolean __GLEW_EXT_texture_mirror_clamp = GL_FALSE;
  2776. GLboolean __GLEW_EXT_texture_object = GL_FALSE;
  2777. GLboolean __GLEW_EXT_texture_perturb_normal = GL_FALSE;
  2778. GLboolean __GLEW_EXT_texture_rectangle = GL_FALSE;
  2779. GLboolean __GLEW_EXT_texture_sRGB = GL_FALSE;
  2780. GLboolean __GLEW_EXT_texture_sRGB_decode = GL_FALSE;
  2781. GLboolean __GLEW_EXT_texture_shared_exponent = GL_FALSE;
  2782. GLboolean __GLEW_EXT_texture_snorm = GL_FALSE;
  2783. GLboolean __GLEW_EXT_texture_swizzle = GL_FALSE;
  2784. GLboolean __GLEW_EXT_timer_query = GL_FALSE;
  2785. GLboolean __GLEW_EXT_transform_feedback = GL_FALSE;
  2786. GLboolean __GLEW_EXT_vertex_array = GL_FALSE;
  2787. GLboolean __GLEW_EXT_vertex_array_bgra = GL_FALSE;
  2788. GLboolean __GLEW_EXT_vertex_attrib_64bit = GL_FALSE;
  2789. GLboolean __GLEW_EXT_vertex_shader = GL_FALSE;
  2790. GLboolean __GLEW_EXT_vertex_weighting = GL_FALSE;
  2791. GLboolean __GLEW_EXT_x11_sync_object = GL_FALSE;
  2792. GLboolean __GLEW_GREMEDY_frame_terminator = GL_FALSE;
  2793. GLboolean __GLEW_GREMEDY_string_marker = GL_FALSE;
  2794. GLboolean __GLEW_HP_convolution_border_modes = GL_FALSE;
  2795. GLboolean __GLEW_HP_image_transform = GL_FALSE;
  2796. GLboolean __GLEW_HP_occlusion_test = GL_FALSE;
  2797. GLboolean __GLEW_HP_texture_lighting = GL_FALSE;
  2798. GLboolean __GLEW_IBM_cull_vertex = GL_FALSE;
  2799. GLboolean __GLEW_IBM_multimode_draw_arrays = GL_FALSE;
  2800. GLboolean __GLEW_IBM_rasterpos_clip = GL_FALSE;
  2801. GLboolean __GLEW_IBM_static_data = GL_FALSE;
  2802. GLboolean __GLEW_IBM_texture_mirrored_repeat = GL_FALSE;
  2803. GLboolean __GLEW_IBM_vertex_array_lists = GL_FALSE;
  2804. GLboolean __GLEW_INGR_color_clamp = GL_FALSE;
  2805. GLboolean __GLEW_INGR_interlace_read = GL_FALSE;
  2806. GLboolean __GLEW_INTEL_map_texture = GL_FALSE;
  2807. GLboolean __GLEW_INTEL_parallel_arrays = GL_FALSE;
  2808. GLboolean __GLEW_INTEL_texture_scissor = GL_FALSE;
  2809. GLboolean __GLEW_KHR_debug = GL_FALSE;
  2810. GLboolean __GLEW_KHR_texture_compression_astc_ldr = GL_FALSE;
  2811. GLboolean __GLEW_KTX_buffer_region = GL_FALSE;
  2812. GLboolean __GLEW_MESAX_texture_stack = GL_FALSE;
  2813. GLboolean __GLEW_MESA_pack_invert = GL_FALSE;
  2814. GLboolean __GLEW_MESA_resize_buffers = GL_FALSE;
  2815. GLboolean __GLEW_MESA_window_pos = GL_FALSE;
  2816. GLboolean __GLEW_MESA_ycbcr_texture = GL_FALSE;
  2817. GLboolean __GLEW_NVX_conditional_render = GL_FALSE;
  2818. GLboolean __GLEW_NVX_gpu_memory_info = GL_FALSE;
  2819. GLboolean __GLEW_NV_bindless_multi_draw_indirect = GL_FALSE;
  2820. GLboolean __GLEW_NV_bindless_texture = GL_FALSE;
  2821. GLboolean __GLEW_NV_blend_equation_advanced = GL_FALSE;
  2822. GLboolean __GLEW_NV_blend_equation_advanced_coherent = GL_FALSE;
  2823. GLboolean __GLEW_NV_blend_square = GL_FALSE;
  2824. GLboolean __GLEW_NV_compute_program5 = GL_FALSE;
  2825. GLboolean __GLEW_NV_conditional_render = GL_FALSE;
  2826. GLboolean __GLEW_NV_copy_depth_to_color = GL_FALSE;
  2827. GLboolean __GLEW_NV_copy_image = GL_FALSE;
  2828. GLboolean __GLEW_NV_deep_texture3D = GL_FALSE;
  2829. GLboolean __GLEW_NV_depth_buffer_float = GL_FALSE;
  2830. GLboolean __GLEW_NV_depth_clamp = GL_FALSE;
  2831. GLboolean __GLEW_NV_depth_range_unclamped = GL_FALSE;
  2832. GLboolean __GLEW_NV_draw_texture = GL_FALSE;
  2833. GLboolean __GLEW_NV_evaluators = GL_FALSE;
  2834. GLboolean __GLEW_NV_explicit_multisample = GL_FALSE;
  2835. GLboolean __GLEW_NV_fence = GL_FALSE;
  2836. GLboolean __GLEW_NV_float_buffer = GL_FALSE;
  2837. GLboolean __GLEW_NV_fog_distance = GL_FALSE;
  2838. GLboolean __GLEW_NV_fragment_program = GL_FALSE;
  2839. GLboolean __GLEW_NV_fragment_program2 = GL_FALSE;
  2840. GLboolean __GLEW_NV_fragment_program4 = GL_FALSE;
  2841. GLboolean __GLEW_NV_fragment_program_option = GL_FALSE;
  2842. GLboolean __GLEW_NV_framebuffer_multisample_coverage = GL_FALSE;
  2843. GLboolean __GLEW_NV_geometry_program4 = GL_FALSE;
  2844. GLboolean __GLEW_NV_geometry_shader4 = GL_FALSE;
  2845. GLboolean __GLEW_NV_gpu_program4 = GL_FALSE;
  2846. GLboolean __GLEW_NV_gpu_program5 = GL_FALSE;
  2847. GLboolean __GLEW_NV_gpu_program5_mem_extended = GL_FALSE;
  2848. GLboolean __GLEW_NV_gpu_program_fp64 = GL_FALSE;
  2849. GLboolean __GLEW_NV_gpu_shader5 = GL_FALSE;
  2850. GLboolean __GLEW_NV_half_float = GL_FALSE;
  2851. GLboolean __GLEW_NV_light_max_exponent = GL_FALSE;
  2852. GLboolean __GLEW_NV_multisample_coverage = GL_FALSE;
  2853. GLboolean __GLEW_NV_multisample_filter_hint = GL_FALSE;
  2854. GLboolean __GLEW_NV_occlusion_query = GL_FALSE;
  2855. GLboolean __GLEW_NV_packed_depth_stencil = GL_FALSE;
  2856. GLboolean __GLEW_NV_parameter_buffer_object = GL_FALSE;
  2857. GLboolean __GLEW_NV_parameter_buffer_object2 = GL_FALSE;
  2858. GLboolean __GLEW_NV_path_rendering = GL_FALSE;
  2859. GLboolean __GLEW_NV_pixel_data_range = GL_FALSE;
  2860. GLboolean __GLEW_NV_point_sprite = GL_FALSE;
  2861. GLboolean __GLEW_NV_present_video = GL_FALSE;
  2862. GLboolean __GLEW_NV_primitive_restart = GL_FALSE;
  2863. GLboolean __GLEW_NV_register_combiners = GL_FALSE;
  2864. GLboolean __GLEW_NV_register_combiners2 = GL_FALSE;
  2865. GLboolean __GLEW_NV_shader_atomic_counters = GL_FALSE;
  2866. GLboolean __GLEW_NV_shader_atomic_float = GL_FALSE;
  2867. GLboolean __GLEW_NV_shader_buffer_load = GL_FALSE;
  2868. GLboolean __GLEW_NV_shader_storage_buffer_object = GL_FALSE;
  2869. GLboolean __GLEW_NV_tessellation_program5 = GL_FALSE;
  2870. GLboolean __GLEW_NV_texgen_emboss = GL_FALSE;
  2871. GLboolean __GLEW_NV_texgen_reflection = GL_FALSE;
  2872. GLboolean __GLEW_NV_texture_barrier = GL_FALSE;
  2873. GLboolean __GLEW_NV_texture_compression_vtc = GL_FALSE;
  2874. GLboolean __GLEW_NV_texture_env_combine4 = GL_FALSE;
  2875. GLboolean __GLEW_NV_texture_expand_normal = GL_FALSE;
  2876. GLboolean __GLEW_NV_texture_multisample = GL_FALSE;
  2877. GLboolean __GLEW_NV_texture_rectangle = GL_FALSE;
  2878. GLboolean __GLEW_NV_texture_shader = GL_FALSE;
  2879. GLboolean __GLEW_NV_texture_shader2 = GL_FALSE;
  2880. GLboolean __GLEW_NV_texture_shader3 = GL_FALSE;
  2881. GLboolean __GLEW_NV_transform_feedback = GL_FALSE;
  2882. GLboolean __GLEW_NV_transform_feedback2 = GL_FALSE;
  2883. GLboolean __GLEW_NV_vdpau_interop = GL_FALSE;
  2884. GLboolean __GLEW_NV_vertex_array_range = GL_FALSE;
  2885. GLboolean __GLEW_NV_vertex_array_range2 = GL_FALSE;
  2886. GLboolean __GLEW_NV_vertex_attrib_integer_64bit = GL_FALSE;
  2887. GLboolean __GLEW_NV_vertex_buffer_unified_memory = GL_FALSE;
  2888. GLboolean __GLEW_NV_vertex_program = GL_FALSE;
  2889. GLboolean __GLEW_NV_vertex_program1_1 = GL_FALSE;
  2890. GLboolean __GLEW_NV_vertex_program2 = GL_FALSE;
  2891. GLboolean __GLEW_NV_vertex_program2_option = GL_FALSE;
  2892. GLboolean __GLEW_NV_vertex_program3 = GL_FALSE;
  2893. GLboolean __GLEW_NV_vertex_program4 = GL_FALSE;
  2894. GLboolean __GLEW_NV_video_capture = GL_FALSE;
  2895. GLboolean __GLEW_OES_byte_coordinates = GL_FALSE;
  2896. GLboolean __GLEW_OES_compressed_paletted_texture = GL_FALSE;
  2897. GLboolean __GLEW_OES_read_format = GL_FALSE;
  2898. GLboolean __GLEW_OES_single_precision = GL_FALSE;
  2899. GLboolean __GLEW_OML_interlace = GL_FALSE;
  2900. GLboolean __GLEW_OML_resample = GL_FALSE;
  2901. GLboolean __GLEW_OML_subsample = GL_FALSE;
  2902. GLboolean __GLEW_PGI_misc_hints = GL_FALSE;
  2903. GLboolean __GLEW_PGI_vertex_hints = GL_FALSE;
  2904. GLboolean __GLEW_REGAL_ES1_0_compatibility = GL_FALSE;
  2905. GLboolean __GLEW_REGAL_ES1_1_compatibility = GL_FALSE;
  2906. GLboolean __GLEW_REGAL_enable = GL_FALSE;
  2907. GLboolean __GLEW_REGAL_error_string = GL_FALSE;
  2908. GLboolean __GLEW_REGAL_extension_query = GL_FALSE;
  2909. GLboolean __GLEW_REGAL_log = GL_FALSE;
  2910. GLboolean __GLEW_REND_screen_coordinates = GL_FALSE;
  2911. GLboolean __GLEW_S3_s3tc = GL_FALSE;
  2912. GLboolean __GLEW_SGIS_color_range = GL_FALSE;
  2913. GLboolean __GLEW_SGIS_detail_texture = GL_FALSE;
  2914. GLboolean __GLEW_SGIS_fog_function = GL_FALSE;
  2915. GLboolean __GLEW_SGIS_generate_mipmap = GL_FALSE;
  2916. GLboolean __GLEW_SGIS_multisample = GL_FALSE;
  2917. GLboolean __GLEW_SGIS_pixel_texture = GL_FALSE;
  2918. GLboolean __GLEW_SGIS_point_line_texgen = GL_FALSE;
  2919. GLboolean __GLEW_SGIS_sharpen_texture = GL_FALSE;
  2920. GLboolean __GLEW_SGIS_texture4D = GL_FALSE;
  2921. GLboolean __GLEW_SGIS_texture_border_clamp = GL_FALSE;
  2922. GLboolean __GLEW_SGIS_texture_edge_clamp = GL_FALSE;
  2923. GLboolean __GLEW_SGIS_texture_filter4 = GL_FALSE;
  2924. GLboolean __GLEW_SGIS_texture_lod = GL_FALSE;
  2925. GLboolean __GLEW_SGIS_texture_select = GL_FALSE;
  2926. GLboolean __GLEW_SGIX_async = GL_FALSE;
  2927. GLboolean __GLEW_SGIX_async_histogram = GL_FALSE;
  2928. GLboolean __GLEW_SGIX_async_pixel = GL_FALSE;
  2929. GLboolean __GLEW_SGIX_blend_alpha_minmax = GL_FALSE;
  2930. GLboolean __GLEW_SGIX_clipmap = GL_FALSE;
  2931. GLboolean __GLEW_SGIX_convolution_accuracy = GL_FALSE;
  2932. GLboolean __GLEW_SGIX_depth_texture = GL_FALSE;
  2933. GLboolean __GLEW_SGIX_flush_raster = GL_FALSE;
  2934. GLboolean __GLEW_SGIX_fog_offset = GL_FALSE;
  2935. GLboolean __GLEW_SGIX_fog_texture = GL_FALSE;
  2936. GLboolean __GLEW_SGIX_fragment_specular_lighting = GL_FALSE;
  2937. GLboolean __GLEW_SGIX_framezoom = GL_FALSE;
  2938. GLboolean __GLEW_SGIX_interlace = GL_FALSE;
  2939. GLboolean __GLEW_SGIX_ir_instrument1 = GL_FALSE;
  2940. GLboolean __GLEW_SGIX_list_priority = GL_FALSE;
  2941. GLboolean __GLEW_SGIX_pixel_texture = GL_FALSE;
  2942. GLboolean __GLEW_SGIX_pixel_texture_bits = GL_FALSE;
  2943. GLboolean __GLEW_SGIX_reference_plane = GL_FALSE;
  2944. GLboolean __GLEW_SGIX_resample = GL_FALSE;
  2945. GLboolean __GLEW_SGIX_shadow = GL_FALSE;
  2946. GLboolean __GLEW_SGIX_shadow_ambient = GL_FALSE;
  2947. GLboolean __GLEW_SGIX_sprite = GL_FALSE;
  2948. GLboolean __GLEW_SGIX_tag_sample_buffer = GL_FALSE;
  2949. GLboolean __GLEW_SGIX_texture_add_env = GL_FALSE;
  2950. GLboolean __GLEW_SGIX_texture_coordinate_clamp = GL_FALSE;
  2951. GLboolean __GLEW_SGIX_texture_lod_bias = GL_FALSE;
  2952. GLboolean __GLEW_SGIX_texture_multi_buffer = GL_FALSE;
  2953. GLboolean __GLEW_SGIX_texture_range = GL_FALSE;
  2954. GLboolean __GLEW_SGIX_texture_scale_bias = GL_FALSE;
  2955. GLboolean __GLEW_SGIX_vertex_preclip = GL_FALSE;
  2956. GLboolean __GLEW_SGIX_vertex_preclip_hint = GL_FALSE;
  2957. GLboolean __GLEW_SGIX_ycrcb = GL_FALSE;
  2958. GLboolean __GLEW_SGI_color_matrix = GL_FALSE;
  2959. GLboolean __GLEW_SGI_color_table = GL_FALSE;
  2960. GLboolean __GLEW_SGI_texture_color_table = GL_FALSE;
  2961. GLboolean __GLEW_SUNX_constant_data = GL_FALSE;
  2962. GLboolean __GLEW_SUN_convolution_border_modes = GL_FALSE;
  2963. GLboolean __GLEW_SUN_global_alpha = GL_FALSE;
  2964. GLboolean __GLEW_SUN_mesh_array = GL_FALSE;
  2965. GLboolean __GLEW_SUN_read_video_pixels = GL_FALSE;
  2966. GLboolean __GLEW_SUN_slice_accum = GL_FALSE;
  2967. GLboolean __GLEW_SUN_triangle_list = GL_FALSE;
  2968. GLboolean __GLEW_SUN_vertex = GL_FALSE;
  2969. GLboolean __GLEW_WIN_phong_shading = GL_FALSE;
  2970. GLboolean __GLEW_WIN_specular_fog = GL_FALSE;
  2971. GLboolean __GLEW_WIN_swap_hint = GL_FALSE;
  2972. #endif /* !GLEW_MX */
  2973. #ifdef GL_VERSION_1_2
  2974. static GLboolean _glewInit_GL_VERSION_1_2 (GLEW_CONTEXT_ARG_DEF_INIT)
  2975. {
  2976. GLboolean r = GL_FALSE;
  2977. r = ((glCopyTexSubImage3D = (PFNGLCOPYTEXSUBIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage3D")) == NULL) || r;
  2978. r = ((glDrawRangeElements = (PFNGLDRAWRANGEELEMENTSPROC)glewGetProcAddress((const GLubyte*)"glDrawRangeElements")) == NULL) || r;
  2979. r = ((glTexImage3D = (PFNGLTEXIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glTexImage3D")) == NULL) || r;
  2980. r = ((glTexSubImage3D = (PFNGLTEXSUBIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage3D")) == NULL) || r;
  2981. return r;
  2982. }
  2983. #endif /* GL_VERSION_1_2 */
  2984. #ifdef GL_VERSION_1_2_1
  2985. #endif /* GL_VERSION_1_2_1 */
  2986. #ifdef GL_VERSION_1_3
  2987. static GLboolean _glewInit_GL_VERSION_1_3 (GLEW_CONTEXT_ARG_DEF_INIT)
  2988. {
  2989. GLboolean r = GL_FALSE;
  2990. r = ((glActiveTexture = (PFNGLACTIVETEXTUREPROC)glewGetProcAddress((const GLubyte*)"glActiveTexture")) == NULL) || r;
  2991. r = ((glClientActiveTexture = (PFNGLCLIENTACTIVETEXTUREPROC)glewGetProcAddress((const GLubyte*)"glClientActiveTexture")) == NULL) || r;
  2992. r = ((glCompressedTexImage1D = (PFNGLCOMPRESSEDTEXIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage1D")) == NULL) || r;
  2993. r = ((glCompressedTexImage2D = (PFNGLCOMPRESSEDTEXIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage2D")) == NULL) || r;
  2994. r = ((glCompressedTexImage3D = (PFNGLCOMPRESSEDTEXIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage3D")) == NULL) || r;
  2995. r = ((glCompressedTexSubImage1D = (PFNGLCOMPRESSEDTEXSUBIMAGE1DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage1D")) == NULL) || r;
  2996. r = ((glCompressedTexSubImage2D = (PFNGLCOMPRESSEDTEXSUBIMAGE2DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage2D")) == NULL) || r;
  2997. r = ((glCompressedTexSubImage3D = (PFNGLCOMPRESSEDTEXSUBIMAGE3DPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage3D")) == NULL) || r;
  2998. r = ((glGetCompressedTexImage = (PFNGLGETCOMPRESSEDTEXIMAGEPROC)glewGetProcAddress((const GLubyte*)"glGetCompressedTexImage")) == NULL) || r;
  2999. r = ((glLoadTransposeMatrixd = (PFNGLLOADTRANSPOSEMATRIXDPROC)glewGetProcAddress((const GLubyte*)"glLoadTransposeMatrixd")) == NULL) || r;
  3000. r = ((glLoadTransposeMatrixf = (PFNGLLOADTRANSPOSEMATRIXFPROC)glewGetProcAddress((const GLubyte*)"glLoadTransposeMatrixf")) == NULL) || r;
  3001. r = ((glMultTransposeMatrixd = (PFNGLMULTTRANSPOSEMATRIXDPROC)glewGetProcAddress((const GLubyte*)"glMultTransposeMatrixd")) == NULL) || r;
  3002. r = ((glMultTransposeMatrixf = (PFNGLMULTTRANSPOSEMATRIXFPROC)glewGetProcAddress((const GLubyte*)"glMultTransposeMatrixf")) == NULL) || r;
  3003. r = ((glMultiTexCoord1d = (PFNGLMULTITEXCOORD1DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1d")) == NULL) || r;
  3004. r = ((glMultiTexCoord1dv = (PFNGLMULTITEXCOORD1DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1dv")) == NULL) || r;
  3005. r = ((glMultiTexCoord1f = (PFNGLMULTITEXCOORD1FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1f")) == NULL) || r;
  3006. r = ((glMultiTexCoord1fv = (PFNGLMULTITEXCOORD1FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1fv")) == NULL) || r;
  3007. r = ((glMultiTexCoord1i = (PFNGLMULTITEXCOORD1IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1i")) == NULL) || r;
  3008. r = ((glMultiTexCoord1iv = (PFNGLMULTITEXCOORD1IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1iv")) == NULL) || r;
  3009. r = ((glMultiTexCoord1s = (PFNGLMULTITEXCOORD1SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1s")) == NULL) || r;
  3010. r = ((glMultiTexCoord1sv = (PFNGLMULTITEXCOORD1SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1sv")) == NULL) || r;
  3011. r = ((glMultiTexCoord2d = (PFNGLMULTITEXCOORD2DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2d")) == NULL) || r;
  3012. r = ((glMultiTexCoord2dv = (PFNGLMULTITEXCOORD2DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2dv")) == NULL) || r;
  3013. r = ((glMultiTexCoord2f = (PFNGLMULTITEXCOORD2FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2f")) == NULL) || r;
  3014. r = ((glMultiTexCoord2fv = (PFNGLMULTITEXCOORD2FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2fv")) == NULL) || r;
  3015. r = ((glMultiTexCoord2i = (PFNGLMULTITEXCOORD2IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2i")) == NULL) || r;
  3016. r = ((glMultiTexCoord2iv = (PFNGLMULTITEXCOORD2IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2iv")) == NULL) || r;
  3017. r = ((glMultiTexCoord2s = (PFNGLMULTITEXCOORD2SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2s")) == NULL) || r;
  3018. r = ((glMultiTexCoord2sv = (PFNGLMULTITEXCOORD2SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2sv")) == NULL) || r;
  3019. r = ((glMultiTexCoord3d = (PFNGLMULTITEXCOORD3DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3d")) == NULL) || r;
  3020. r = ((glMultiTexCoord3dv = (PFNGLMULTITEXCOORD3DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3dv")) == NULL) || r;
  3021. r = ((glMultiTexCoord3f = (PFNGLMULTITEXCOORD3FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3f")) == NULL) || r;
  3022. r = ((glMultiTexCoord3fv = (PFNGLMULTITEXCOORD3FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3fv")) == NULL) || r;
  3023. r = ((glMultiTexCoord3i = (PFNGLMULTITEXCOORD3IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3i")) == NULL) || r;
  3024. r = ((glMultiTexCoord3iv = (PFNGLMULTITEXCOORD3IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3iv")) == NULL) || r;
  3025. r = ((glMultiTexCoord3s = (PFNGLMULTITEXCOORD3SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3s")) == NULL) || r;
  3026. r = ((glMultiTexCoord3sv = (PFNGLMULTITEXCOORD3SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3sv")) == NULL) || r;
  3027. r = ((glMultiTexCoord4d = (PFNGLMULTITEXCOORD4DPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4d")) == NULL) || r;
  3028. r = ((glMultiTexCoord4dv = (PFNGLMULTITEXCOORD4DVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4dv")) == NULL) || r;
  3029. r = ((glMultiTexCoord4f = (PFNGLMULTITEXCOORD4FPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4f")) == NULL) || r;
  3030. r = ((glMultiTexCoord4fv = (PFNGLMULTITEXCOORD4FVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4fv")) == NULL) || r;
  3031. r = ((glMultiTexCoord4i = (PFNGLMULTITEXCOORD4IPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4i")) == NULL) || r;
  3032. r = ((glMultiTexCoord4iv = (PFNGLMULTITEXCOORD4IVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4iv")) == NULL) || r;
  3033. r = ((glMultiTexCoord4s = (PFNGLMULTITEXCOORD4SPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4s")) == NULL) || r;
  3034. r = ((glMultiTexCoord4sv = (PFNGLMULTITEXCOORD4SVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4sv")) == NULL) || r;
  3035. r = ((glSampleCoverage = (PFNGLSAMPLECOVERAGEPROC)glewGetProcAddress((const GLubyte*)"glSampleCoverage")) == NULL) || r;
  3036. return r;
  3037. }
  3038. #endif /* GL_VERSION_1_3 */
  3039. #ifdef GL_VERSION_1_4
  3040. static GLboolean _glewInit_GL_VERSION_1_4 (GLEW_CONTEXT_ARG_DEF_INIT)
  3041. {
  3042. GLboolean r = GL_FALSE;
  3043. r = ((glBlendColor = (PFNGLBLENDCOLORPROC)glewGetProcAddress((const GLubyte*)"glBlendColor")) == NULL) || r;
  3044. r = ((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)"glBlendEquation")) == NULL) || r;
  3045. r = ((glBlendFuncSeparate = (PFNGLBLENDFUNCSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncSeparate")) == NULL) || r;
  3046. r = ((glFogCoordPointer = (PFNGLFOGCOORDPOINTERPROC)glewGetProcAddress((const GLubyte*)"glFogCoordPointer")) == NULL) || r;
  3047. r = ((glFogCoordd = (PFNGLFOGCOORDDPROC)glewGetProcAddress((const GLubyte*)"glFogCoordd")) == NULL) || r;
  3048. r = ((glFogCoorddv = (PFNGLFOGCOORDDVPROC)glewGetProcAddress((const GLubyte*)"glFogCoorddv")) == NULL) || r;
  3049. r = ((glFogCoordf = (PFNGLFOGCOORDFPROC)glewGetProcAddress((const GLubyte*)"glFogCoordf")) == NULL) || r;
  3050. r = ((glFogCoordfv = (PFNGLFOGCOORDFVPROC)glewGetProcAddress((const GLubyte*)"glFogCoordfv")) == NULL) || r;
  3051. r = ((glMultiDrawArrays = (PFNGLMULTIDRAWARRAYSPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArrays")) == NULL) || r;
  3052. r = ((glMultiDrawElements = (PFNGLMULTIDRAWELEMENTSPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElements")) == NULL) || r;
  3053. r = ((glPointParameterf = (PFNGLPOINTPARAMETERFPROC)glewGetProcAddress((const GLubyte*)"glPointParameterf")) == NULL) || r;
  3054. r = ((glPointParameterfv = (PFNGLPOINTPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glPointParameterfv")) == NULL) || r;
  3055. r = ((glPointParameteri = (PFNGLPOINTPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glPointParameteri")) == NULL) || r;
  3056. r = ((glPointParameteriv = (PFNGLPOINTPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glPointParameteriv")) == NULL) || r;
  3057. r = ((glSecondaryColor3b = (PFNGLSECONDARYCOLOR3BPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3b")) == NULL) || r;
  3058. r = ((glSecondaryColor3bv = (PFNGLSECONDARYCOLOR3BVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3bv")) == NULL) || r;
  3059. r = ((glSecondaryColor3d = (PFNGLSECONDARYCOLOR3DPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3d")) == NULL) || r;
  3060. r = ((glSecondaryColor3dv = (PFNGLSECONDARYCOLOR3DVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3dv")) == NULL) || r;
  3061. r = ((glSecondaryColor3f = (PFNGLSECONDARYCOLOR3FPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3f")) == NULL) || r;
  3062. r = ((glSecondaryColor3fv = (PFNGLSECONDARYCOLOR3FVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3fv")) == NULL) || r;
  3063. r = ((glSecondaryColor3i = (PFNGLSECONDARYCOLOR3IPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3i")) == NULL) || r;
  3064. r = ((glSecondaryColor3iv = (PFNGLSECONDARYCOLOR3IVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3iv")) == NULL) || r;
  3065. r = ((glSecondaryColor3s = (PFNGLSECONDARYCOLOR3SPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3s")) == NULL) || r;
  3066. r = ((glSecondaryColor3sv = (PFNGLSECONDARYCOLOR3SVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3sv")) == NULL) || r;
  3067. r = ((glSecondaryColor3ub = (PFNGLSECONDARYCOLOR3UBPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ub")) == NULL) || r;
  3068. r = ((glSecondaryColor3ubv = (PFNGLSECONDARYCOLOR3UBVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ubv")) == NULL) || r;
  3069. r = ((glSecondaryColor3ui = (PFNGLSECONDARYCOLOR3UIPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ui")) == NULL) || r;
  3070. r = ((glSecondaryColor3uiv = (PFNGLSECONDARYCOLOR3UIVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3uiv")) == NULL) || r;
  3071. r = ((glSecondaryColor3us = (PFNGLSECONDARYCOLOR3USPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3us")) == NULL) || r;
  3072. r = ((glSecondaryColor3usv = (PFNGLSECONDARYCOLOR3USVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3usv")) == NULL) || r;
  3073. r = ((glSecondaryColorPointer = (PFNGLSECONDARYCOLORPOINTERPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorPointer")) == NULL) || r;
  3074. r = ((glWindowPos2d = (PFNGLWINDOWPOS2DPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2d")) == NULL) || r;
  3075. r = ((glWindowPos2dv = (PFNGLWINDOWPOS2DVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2dv")) == NULL) || r;
  3076. r = ((glWindowPos2f = (PFNGLWINDOWPOS2FPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2f")) == NULL) || r;
  3077. r = ((glWindowPos2fv = (PFNGLWINDOWPOS2FVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2fv")) == NULL) || r;
  3078. r = ((glWindowPos2i = (PFNGLWINDOWPOS2IPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2i")) == NULL) || r;
  3079. r = ((glWindowPos2iv = (PFNGLWINDOWPOS2IVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2iv")) == NULL) || r;
  3080. r = ((glWindowPos2s = (PFNGLWINDOWPOS2SPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2s")) == NULL) || r;
  3081. r = ((glWindowPos2sv = (PFNGLWINDOWPOS2SVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2sv")) == NULL) || r;
  3082. r = ((glWindowPos3d = (PFNGLWINDOWPOS3DPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3d")) == NULL) || r;
  3083. r = ((glWindowPos3dv = (PFNGLWINDOWPOS3DVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3dv")) == NULL) || r;
  3084. r = ((glWindowPos3f = (PFNGLWINDOWPOS3FPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3f")) == NULL) || r;
  3085. r = ((glWindowPos3fv = (PFNGLWINDOWPOS3FVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3fv")) == NULL) || r;
  3086. r = ((glWindowPos3i = (PFNGLWINDOWPOS3IPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3i")) == NULL) || r;
  3087. r = ((glWindowPos3iv = (PFNGLWINDOWPOS3IVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3iv")) == NULL) || r;
  3088. r = ((glWindowPos3s = (PFNGLWINDOWPOS3SPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3s")) == NULL) || r;
  3089. r = ((glWindowPos3sv = (PFNGLWINDOWPOS3SVPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3sv")) == NULL) || r;
  3090. return r;
  3091. }
  3092. #endif /* GL_VERSION_1_4 */
  3093. #ifdef GL_VERSION_1_5
  3094. static GLboolean _glewInit_GL_VERSION_1_5 (GLEW_CONTEXT_ARG_DEF_INIT)
  3095. {
  3096. GLboolean r = GL_FALSE;
  3097. r = ((glBeginQuery = (PFNGLBEGINQUERYPROC)glewGetProcAddress((const GLubyte*)"glBeginQuery")) == NULL) || r;
  3098. r = ((glBindBuffer = (PFNGLBINDBUFFERPROC)glewGetProcAddress((const GLubyte*)"glBindBuffer")) == NULL) || r;
  3099. r = ((glBufferData = (PFNGLBUFFERDATAPROC)glewGetProcAddress((const GLubyte*)"glBufferData")) == NULL) || r;
  3100. r = ((glBufferSubData = (PFNGLBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glBufferSubData")) == NULL) || r;
  3101. r = ((glDeleteBuffers = (PFNGLDELETEBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glDeleteBuffers")) == NULL) || r;
  3102. r = ((glDeleteQueries = (PFNGLDELETEQUERIESPROC)glewGetProcAddress((const GLubyte*)"glDeleteQueries")) == NULL) || r;
  3103. r = ((glEndQuery = (PFNGLENDQUERYPROC)glewGetProcAddress((const GLubyte*)"glEndQuery")) == NULL) || r;
  3104. r = ((glGenBuffers = (PFNGLGENBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glGenBuffers")) == NULL) || r;
  3105. r = ((glGenQueries = (PFNGLGENQUERIESPROC)glewGetProcAddress((const GLubyte*)"glGenQueries")) == NULL) || r;
  3106. r = ((glGetBufferParameteriv = (PFNGLGETBUFFERPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetBufferParameteriv")) == NULL) || r;
  3107. r = ((glGetBufferPointerv = (PFNGLGETBUFFERPOINTERVPROC)glewGetProcAddress((const GLubyte*)"glGetBufferPointerv")) == NULL) || r;
  3108. r = ((glGetBufferSubData = (PFNGLGETBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glGetBufferSubData")) == NULL) || r;
  3109. r = ((glGetQueryObjectiv = (PFNGLGETQUERYOBJECTIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectiv")) == NULL) || r;
  3110. r = ((glGetQueryObjectuiv = (PFNGLGETQUERYOBJECTUIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectuiv")) == NULL) || r;
  3111. r = ((glGetQueryiv = (PFNGLGETQUERYIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryiv")) == NULL) || r;
  3112. r = ((glIsBuffer = (PFNGLISBUFFERPROC)glewGetProcAddress((const GLubyte*)"glIsBuffer")) == NULL) || r;
  3113. r = ((glIsQuery = (PFNGLISQUERYPROC)glewGetProcAddress((const GLubyte*)"glIsQuery")) == NULL) || r;
  3114. r = ((glMapBuffer = (PFNGLMAPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glMapBuffer")) == NULL) || r;
  3115. r = ((glUnmapBuffer = (PFNGLUNMAPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glUnmapBuffer")) == NULL) || r;
  3116. return r;
  3117. }
  3118. #endif /* GL_VERSION_1_5 */
  3119. #ifdef GL_VERSION_2_0
  3120. static GLboolean _glewInit_GL_VERSION_2_0 (GLEW_CONTEXT_ARG_DEF_INIT)
  3121. {
  3122. GLboolean r = GL_FALSE;
  3123. r = ((glAttachShader = (PFNGLATTACHSHADERPROC)glewGetProcAddress((const GLubyte*)"glAttachShader")) == NULL) || r;
  3124. r = ((glBindAttribLocation = (PFNGLBINDATTRIBLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glBindAttribLocation")) == NULL) || r;
  3125. r = ((glBlendEquationSeparate = (PFNGLBLENDEQUATIONSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationSeparate")) == NULL) || r;
  3126. r = ((glCompileShader = (PFNGLCOMPILESHADERPROC)glewGetProcAddress((const GLubyte*)"glCompileShader")) == NULL) || r;
  3127. r = ((glCreateProgram = (PFNGLCREATEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glCreateProgram")) == NULL) || r;
  3128. r = ((glCreateShader = (PFNGLCREATESHADERPROC)glewGetProcAddress((const GLubyte*)"glCreateShader")) == NULL) || r;
  3129. r = ((glDeleteProgram = (PFNGLDELETEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glDeleteProgram")) == NULL) || r;
  3130. r = ((glDeleteShader = (PFNGLDELETESHADERPROC)glewGetProcAddress((const GLubyte*)"glDeleteShader")) == NULL) || r;
  3131. r = ((glDetachShader = (PFNGLDETACHSHADERPROC)glewGetProcAddress((const GLubyte*)"glDetachShader")) == NULL) || r;
  3132. r = ((glDisableVertexAttribArray = (PFNGLDISABLEVERTEXATTRIBARRAYPROC)glewGetProcAddress((const GLubyte*)"glDisableVertexAttribArray")) == NULL) || r;
  3133. r = ((glDrawBuffers = (PFNGLDRAWBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glDrawBuffers")) == NULL) || r;
  3134. r = ((glEnableVertexAttribArray = (PFNGLENABLEVERTEXATTRIBARRAYPROC)glewGetProcAddress((const GLubyte*)"glEnableVertexAttribArray")) == NULL) || r;
  3135. r = ((glGetActiveAttrib = (PFNGLGETACTIVEATTRIBPROC)glewGetProcAddress((const GLubyte*)"glGetActiveAttrib")) == NULL) || r;
  3136. r = ((glGetActiveUniform = (PFNGLGETACTIVEUNIFORMPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniform")) == NULL) || r;
  3137. r = ((glGetAttachedShaders = (PFNGLGETATTACHEDSHADERSPROC)glewGetProcAddress((const GLubyte*)"glGetAttachedShaders")) == NULL) || r;
  3138. r = ((glGetAttribLocation = (PFNGLGETATTRIBLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetAttribLocation")) == NULL) || r;
  3139. r = ((glGetProgramInfoLog = (PFNGLGETPROGRAMINFOLOGPROC)glewGetProcAddress((const GLubyte*)"glGetProgramInfoLog")) == NULL) || r;
  3140. r = ((glGetProgramiv = (PFNGLGETPROGRAMIVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramiv")) == NULL) || r;
  3141. r = ((glGetShaderInfoLog = (PFNGLGETSHADERINFOLOGPROC)glewGetProcAddress((const GLubyte*)"glGetShaderInfoLog")) == NULL) || r;
  3142. r = ((glGetShaderSource = (PFNGLGETSHADERSOURCEPROC)glewGetProcAddress((const GLubyte*)"glGetShaderSource")) == NULL) || r;
  3143. r = ((glGetShaderiv = (PFNGLGETSHADERIVPROC)glewGetProcAddress((const GLubyte*)"glGetShaderiv")) == NULL) || r;
  3144. r = ((glGetUniformLocation = (PFNGLGETUNIFORMLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetUniformLocation")) == NULL) || r;
  3145. r = ((glGetUniformfv = (PFNGLGETUNIFORMFVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformfv")) == NULL) || r;
  3146. r = ((glGetUniformiv = (PFNGLGETUNIFORMIVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformiv")) == NULL) || r;
  3147. r = ((glGetVertexAttribPointerv = (PFNGLGETVERTEXATTRIBPOINTERVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribPointerv")) == NULL) || r;
  3148. r = ((glGetVertexAttribdv = (PFNGLGETVERTEXATTRIBDVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribdv")) == NULL) || r;
  3149. r = ((glGetVertexAttribfv = (PFNGLGETVERTEXATTRIBFVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribfv")) == NULL) || r;
  3150. r = ((glGetVertexAttribiv = (PFNGLGETVERTEXATTRIBIVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribiv")) == NULL) || r;
  3151. r = ((glIsProgram = (PFNGLISPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glIsProgram")) == NULL) || r;
  3152. r = ((glIsShader = (PFNGLISSHADERPROC)glewGetProcAddress((const GLubyte*)"glIsShader")) == NULL) || r;
  3153. r = ((glLinkProgram = (PFNGLLINKPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glLinkProgram")) == NULL) || r;
  3154. r = ((glShaderSource = (PFNGLSHADERSOURCEPROC)glewGetProcAddress((const GLubyte*)"glShaderSource")) == NULL) || r;
  3155. r = ((glStencilFuncSeparate = (PFNGLSTENCILFUNCSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glStencilFuncSeparate")) == NULL) || r;
  3156. r = ((glStencilMaskSeparate = (PFNGLSTENCILMASKSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glStencilMaskSeparate")) == NULL) || r;
  3157. r = ((glStencilOpSeparate = (PFNGLSTENCILOPSEPARATEPROC)glewGetProcAddress((const GLubyte*)"glStencilOpSeparate")) == NULL) || r;
  3158. r = ((glUniform1f = (PFNGLUNIFORM1FPROC)glewGetProcAddress((const GLubyte*)"glUniform1f")) == NULL) || r;
  3159. r = ((glUniform1fv = (PFNGLUNIFORM1FVPROC)glewGetProcAddress((const GLubyte*)"glUniform1fv")) == NULL) || r;
  3160. r = ((glUniform1i = (PFNGLUNIFORM1IPROC)glewGetProcAddress((const GLubyte*)"glUniform1i")) == NULL) || r;
  3161. r = ((glUniform1iv = (PFNGLUNIFORM1IVPROC)glewGetProcAddress((const GLubyte*)"glUniform1iv")) == NULL) || r;
  3162. r = ((glUniform2f = (PFNGLUNIFORM2FPROC)glewGetProcAddress((const GLubyte*)"glUniform2f")) == NULL) || r;
  3163. r = ((glUniform2fv = (PFNGLUNIFORM2FVPROC)glewGetProcAddress((const GLubyte*)"glUniform2fv")) == NULL) || r;
  3164. r = ((glUniform2i = (PFNGLUNIFORM2IPROC)glewGetProcAddress((const GLubyte*)"glUniform2i")) == NULL) || r;
  3165. r = ((glUniform2iv = (PFNGLUNIFORM2IVPROC)glewGetProcAddress((const GLubyte*)"glUniform2iv")) == NULL) || r;
  3166. r = ((glUniform3f = (PFNGLUNIFORM3FPROC)glewGetProcAddress((const GLubyte*)"glUniform3f")) == NULL) || r;
  3167. r = ((glUniform3fv = (PFNGLUNIFORM3FVPROC)glewGetProcAddress((const GLubyte*)"glUniform3fv")) == NULL) || r;
  3168. r = ((glUniform3i = (PFNGLUNIFORM3IPROC)glewGetProcAddress((const GLubyte*)"glUniform3i")) == NULL) || r;
  3169. r = ((glUniform3iv = (PFNGLUNIFORM3IVPROC)glewGetProcAddress((const GLubyte*)"glUniform3iv")) == NULL) || r;
  3170. r = ((glUniform4f = (PFNGLUNIFORM4FPROC)glewGetProcAddress((const GLubyte*)"glUniform4f")) == NULL) || r;
  3171. r = ((glUniform4fv = (PFNGLUNIFORM4FVPROC)glewGetProcAddress((const GLubyte*)"glUniform4fv")) == NULL) || r;
  3172. r = ((glUniform4i = (PFNGLUNIFORM4IPROC)glewGetProcAddress((const GLubyte*)"glUniform4i")) == NULL) || r;
  3173. r = ((glUniform4iv = (PFNGLUNIFORM4IVPROC)glewGetProcAddress((const GLubyte*)"glUniform4iv")) == NULL) || r;
  3174. r = ((glUniformMatrix2fv = (PFNGLUNIFORMMATRIX2FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2fv")) == NULL) || r;
  3175. r = ((glUniformMatrix3fv = (PFNGLUNIFORMMATRIX3FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3fv")) == NULL) || r;
  3176. r = ((glUniformMatrix4fv = (PFNGLUNIFORMMATRIX4FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4fv")) == NULL) || r;
  3177. r = ((glUseProgram = (PFNGLUSEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glUseProgram")) == NULL) || r;
  3178. r = ((glValidateProgram = (PFNGLVALIDATEPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glValidateProgram")) == NULL) || r;
  3179. r = ((glVertexAttrib1d = (PFNGLVERTEXATTRIB1DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1d")) == NULL) || r;
  3180. r = ((glVertexAttrib1dv = (PFNGLVERTEXATTRIB1DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1dv")) == NULL) || r;
  3181. r = ((glVertexAttrib1f = (PFNGLVERTEXATTRIB1FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1f")) == NULL) || r;
  3182. r = ((glVertexAttrib1fv = (PFNGLVERTEXATTRIB1FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1fv")) == NULL) || r;
  3183. r = ((glVertexAttrib1s = (PFNGLVERTEXATTRIB1SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1s")) == NULL) || r;
  3184. r = ((glVertexAttrib1sv = (PFNGLVERTEXATTRIB1SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1sv")) == NULL) || r;
  3185. r = ((glVertexAttrib2d = (PFNGLVERTEXATTRIB2DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2d")) == NULL) || r;
  3186. r = ((glVertexAttrib2dv = (PFNGLVERTEXATTRIB2DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2dv")) == NULL) || r;
  3187. r = ((glVertexAttrib2f = (PFNGLVERTEXATTRIB2FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2f")) == NULL) || r;
  3188. r = ((glVertexAttrib2fv = (PFNGLVERTEXATTRIB2FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2fv")) == NULL) || r;
  3189. r = ((glVertexAttrib2s = (PFNGLVERTEXATTRIB2SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2s")) == NULL) || r;
  3190. r = ((glVertexAttrib2sv = (PFNGLVERTEXATTRIB2SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2sv")) == NULL) || r;
  3191. r = ((glVertexAttrib3d = (PFNGLVERTEXATTRIB3DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3d")) == NULL) || r;
  3192. r = ((glVertexAttrib3dv = (PFNGLVERTEXATTRIB3DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3dv")) == NULL) || r;
  3193. r = ((glVertexAttrib3f = (PFNGLVERTEXATTRIB3FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3f")) == NULL) || r;
  3194. r = ((glVertexAttrib3fv = (PFNGLVERTEXATTRIB3FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3fv")) == NULL) || r;
  3195. r = ((glVertexAttrib3s = (PFNGLVERTEXATTRIB3SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3s")) == NULL) || r;
  3196. r = ((glVertexAttrib3sv = (PFNGLVERTEXATTRIB3SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3sv")) == NULL) || r;
  3197. r = ((glVertexAttrib4Nbv = (PFNGLVERTEXATTRIB4NBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nbv")) == NULL) || r;
  3198. r = ((glVertexAttrib4Niv = (PFNGLVERTEXATTRIB4NIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Niv")) == NULL) || r;
  3199. r = ((glVertexAttrib4Nsv = (PFNGLVERTEXATTRIB4NSVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nsv")) == NULL) || r;
  3200. r = ((glVertexAttrib4Nub = (PFNGLVERTEXATTRIB4NUBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nub")) == NULL) || r;
  3201. r = ((glVertexAttrib4Nubv = (PFNGLVERTEXATTRIB4NUBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nubv")) == NULL) || r;
  3202. r = ((glVertexAttrib4Nuiv = (PFNGLVERTEXATTRIB4NUIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nuiv")) == NULL) || r;
  3203. r = ((glVertexAttrib4Nusv = (PFNGLVERTEXATTRIB4NUSVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4Nusv")) == NULL) || r;
  3204. r = ((glVertexAttrib4bv = (PFNGLVERTEXATTRIB4BVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4bv")) == NULL) || r;
  3205. r = ((glVertexAttrib4d = (PFNGLVERTEXATTRIB4DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4d")) == NULL) || r;
  3206. r = ((glVertexAttrib4dv = (PFNGLVERTEXATTRIB4DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4dv")) == NULL) || r;
  3207. r = ((glVertexAttrib4f = (PFNGLVERTEXATTRIB4FPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4f")) == NULL) || r;
  3208. r = ((glVertexAttrib4fv = (PFNGLVERTEXATTRIB4FVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4fv")) == NULL) || r;
  3209. r = ((glVertexAttrib4iv = (PFNGLVERTEXATTRIB4IVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4iv")) == NULL) || r;
  3210. r = ((glVertexAttrib4s = (PFNGLVERTEXATTRIB4SPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4s")) == NULL) || r;
  3211. r = ((glVertexAttrib4sv = (PFNGLVERTEXATTRIB4SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4sv")) == NULL) || r;
  3212. r = ((glVertexAttrib4ubv = (PFNGLVERTEXATTRIB4UBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4ubv")) == NULL) || r;
  3213. r = ((glVertexAttrib4uiv = (PFNGLVERTEXATTRIB4UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4uiv")) == NULL) || r;
  3214. r = ((glVertexAttrib4usv = (PFNGLVERTEXATTRIB4USVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4usv")) == NULL) || r;
  3215. r = ((glVertexAttribPointer = (PFNGLVERTEXATTRIBPOINTERPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribPointer")) == NULL) || r;
  3216. return r;
  3217. }
  3218. #endif /* GL_VERSION_2_0 */
  3219. #ifdef GL_VERSION_2_1
  3220. static GLboolean _glewInit_GL_VERSION_2_1 (GLEW_CONTEXT_ARG_DEF_INIT)
  3221. {
  3222. GLboolean r = GL_FALSE;
  3223. r = ((glUniformMatrix2x3fv = (PFNGLUNIFORMMATRIX2X3FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2x3fv")) == NULL) || r;
  3224. r = ((glUniformMatrix2x4fv = (PFNGLUNIFORMMATRIX2X4FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2x4fv")) == NULL) || r;
  3225. r = ((glUniformMatrix3x2fv = (PFNGLUNIFORMMATRIX3X2FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3x2fv")) == NULL) || r;
  3226. r = ((glUniformMatrix3x4fv = (PFNGLUNIFORMMATRIX3X4FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3x4fv")) == NULL) || r;
  3227. r = ((glUniformMatrix4x2fv = (PFNGLUNIFORMMATRIX4X2FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4x2fv")) == NULL) || r;
  3228. r = ((glUniformMatrix4x3fv = (PFNGLUNIFORMMATRIX4X3FVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4x3fv")) == NULL) || r;
  3229. return r;
  3230. }
  3231. #endif /* GL_VERSION_2_1 */
  3232. #ifdef GL_VERSION_3_0
  3233. static GLboolean _glewInit_GL_VERSION_3_0 (GLEW_CONTEXT_ARG_DEF_INIT)
  3234. {
  3235. GLboolean r = GL_FALSE;
  3236. r = ((glBeginConditionalRender = (PFNGLBEGINCONDITIONALRENDERPROC)glewGetProcAddress((const GLubyte*)"glBeginConditionalRender")) == NULL) || r;
  3237. r = ((glBeginTransformFeedback = (PFNGLBEGINTRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glBeginTransformFeedback")) == NULL) || r;
  3238. r = ((glBindFragDataLocation = (PFNGLBINDFRAGDATALOCATIONPROC)glewGetProcAddress((const GLubyte*)"glBindFragDataLocation")) == NULL) || r;
  3239. r = ((glClampColor = (PFNGLCLAMPCOLORPROC)glewGetProcAddress((const GLubyte*)"glClampColor")) == NULL) || r;
  3240. r = ((glClearBufferfi = (PFNGLCLEARBUFFERFIPROC)glewGetProcAddress((const GLubyte*)"glClearBufferfi")) == NULL) || r;
  3241. r = ((glClearBufferfv = (PFNGLCLEARBUFFERFVPROC)glewGetProcAddress((const GLubyte*)"glClearBufferfv")) == NULL) || r;
  3242. r = ((glClearBufferiv = (PFNGLCLEARBUFFERIVPROC)glewGetProcAddress((const GLubyte*)"glClearBufferiv")) == NULL) || r;
  3243. r = ((glClearBufferuiv = (PFNGLCLEARBUFFERUIVPROC)glewGetProcAddress((const GLubyte*)"glClearBufferuiv")) == NULL) || r;
  3244. r = ((glColorMaski = (PFNGLCOLORMASKIPROC)glewGetProcAddress((const GLubyte*)"glColorMaski")) == NULL) || r;
  3245. r = ((glDisablei = (PFNGLDISABLEIPROC)glewGetProcAddress((const GLubyte*)"glDisablei")) == NULL) || r;
  3246. r = ((glEnablei = (PFNGLENABLEIPROC)glewGetProcAddress((const GLubyte*)"glEnablei")) == NULL) || r;
  3247. r = ((glEndConditionalRender = (PFNGLENDCONDITIONALRENDERPROC)glewGetProcAddress((const GLubyte*)"glEndConditionalRender")) == NULL) || r;
  3248. r = ((glEndTransformFeedback = (PFNGLENDTRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glEndTransformFeedback")) == NULL) || r;
  3249. r = ((glGetBooleani_v = (PFNGLGETBOOLEANI_VPROC)glewGetProcAddress((const GLubyte*)"glGetBooleani_v")) == NULL) || r;
  3250. r = ((glGetFragDataLocation = (PFNGLGETFRAGDATALOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetFragDataLocation")) == NULL) || r;
  3251. r = ((glGetStringi = (PFNGLGETSTRINGIPROC)glewGetProcAddress((const GLubyte*)"glGetStringi")) == NULL) || r;
  3252. r = ((glGetTexParameterIiv = (PFNGLGETTEXPARAMETERIIVPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterIiv")) == NULL) || r;
  3253. r = ((glGetTexParameterIuiv = (PFNGLGETTEXPARAMETERIUIVPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterIuiv")) == NULL) || r;
  3254. r = ((glGetTransformFeedbackVarying = (PFNGLGETTRANSFORMFEEDBACKVARYINGPROC)glewGetProcAddress((const GLubyte*)"glGetTransformFeedbackVarying")) == NULL) || r;
  3255. r = ((glGetUniformuiv = (PFNGLGETUNIFORMUIVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformuiv")) == NULL) || r;
  3256. r = ((glGetVertexAttribIiv = (PFNGLGETVERTEXATTRIBIIVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribIiv")) == NULL) || r;
  3257. r = ((glGetVertexAttribIuiv = (PFNGLGETVERTEXATTRIBIUIVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribIuiv")) == NULL) || r;
  3258. r = ((glIsEnabledi = (PFNGLISENABLEDIPROC)glewGetProcAddress((const GLubyte*)"glIsEnabledi")) == NULL) || r;
  3259. r = ((glTexParameterIiv = (PFNGLTEXPARAMETERIIVPROC)glewGetProcAddress((const GLubyte*)"glTexParameterIiv")) == NULL) || r;
  3260. r = ((glTexParameterIuiv = (PFNGLTEXPARAMETERIUIVPROC)glewGetProcAddress((const GLubyte*)"glTexParameterIuiv")) == NULL) || r;
  3261. r = ((glTransformFeedbackVaryings = (PFNGLTRANSFORMFEEDBACKVARYINGSPROC)glewGetProcAddress((const GLubyte*)"glTransformFeedbackVaryings")) == NULL) || r;
  3262. r = ((glUniform1ui = (PFNGLUNIFORM1UIPROC)glewGetProcAddress((const GLubyte*)"glUniform1ui")) == NULL) || r;
  3263. r = ((glUniform1uiv = (PFNGLUNIFORM1UIVPROC)glewGetProcAddress((const GLubyte*)"glUniform1uiv")) == NULL) || r;
  3264. r = ((glUniform2ui = (PFNGLUNIFORM2UIPROC)glewGetProcAddress((const GLubyte*)"glUniform2ui")) == NULL) || r;
  3265. r = ((glUniform2uiv = (PFNGLUNIFORM2UIVPROC)glewGetProcAddress((const GLubyte*)"glUniform2uiv")) == NULL) || r;
  3266. r = ((glUniform3ui = (PFNGLUNIFORM3UIPROC)glewGetProcAddress((const GLubyte*)"glUniform3ui")) == NULL) || r;
  3267. r = ((glUniform3uiv = (PFNGLUNIFORM3UIVPROC)glewGetProcAddress((const GLubyte*)"glUniform3uiv")) == NULL) || r;
  3268. r = ((glUniform4ui = (PFNGLUNIFORM4UIPROC)glewGetProcAddress((const GLubyte*)"glUniform4ui")) == NULL) || r;
  3269. r = ((glUniform4uiv = (PFNGLUNIFORM4UIVPROC)glewGetProcAddress((const GLubyte*)"glUniform4uiv")) == NULL) || r;
  3270. r = ((glVertexAttribI1i = (PFNGLVERTEXATTRIBI1IPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1i")) == NULL) || r;
  3271. r = ((glVertexAttribI1iv = (PFNGLVERTEXATTRIBI1IVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1iv")) == NULL) || r;
  3272. r = ((glVertexAttribI1ui = (PFNGLVERTEXATTRIBI1UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1ui")) == NULL) || r;
  3273. r = ((glVertexAttribI1uiv = (PFNGLVERTEXATTRIBI1UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1uiv")) == NULL) || r;
  3274. r = ((glVertexAttribI2i = (PFNGLVERTEXATTRIBI2IPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2i")) == NULL) || r;
  3275. r = ((glVertexAttribI2iv = (PFNGLVERTEXATTRIBI2IVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2iv")) == NULL) || r;
  3276. r = ((glVertexAttribI2ui = (PFNGLVERTEXATTRIBI2UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2ui")) == NULL) || r;
  3277. r = ((glVertexAttribI2uiv = (PFNGLVERTEXATTRIBI2UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2uiv")) == NULL) || r;
  3278. r = ((glVertexAttribI3i = (PFNGLVERTEXATTRIBI3IPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3i")) == NULL) || r;
  3279. r = ((glVertexAttribI3iv = (PFNGLVERTEXATTRIBI3IVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3iv")) == NULL) || r;
  3280. r = ((glVertexAttribI3ui = (PFNGLVERTEXATTRIBI3UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3ui")) == NULL) || r;
  3281. r = ((glVertexAttribI3uiv = (PFNGLVERTEXATTRIBI3UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3uiv")) == NULL) || r;
  3282. r = ((glVertexAttribI4bv = (PFNGLVERTEXATTRIBI4BVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4bv")) == NULL) || r;
  3283. r = ((glVertexAttribI4i = (PFNGLVERTEXATTRIBI4IPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4i")) == NULL) || r;
  3284. r = ((glVertexAttribI4iv = (PFNGLVERTEXATTRIBI4IVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4iv")) == NULL) || r;
  3285. r = ((glVertexAttribI4sv = (PFNGLVERTEXATTRIBI4SVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4sv")) == NULL) || r;
  3286. r = ((glVertexAttribI4ubv = (PFNGLVERTEXATTRIBI4UBVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4ubv")) == NULL) || r;
  3287. r = ((glVertexAttribI4ui = (PFNGLVERTEXATTRIBI4UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4ui")) == NULL) || r;
  3288. r = ((glVertexAttribI4uiv = (PFNGLVERTEXATTRIBI4UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4uiv")) == NULL) || r;
  3289. r = ((glVertexAttribI4usv = (PFNGLVERTEXATTRIBI4USVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4usv")) == NULL) || r;
  3290. r = ((glVertexAttribIPointer = (PFNGLVERTEXATTRIBIPOINTERPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribIPointer")) == NULL) || r;
  3291. return r;
  3292. }
  3293. #endif /* GL_VERSION_3_0 */
  3294. #ifdef GL_VERSION_3_1
  3295. static GLboolean _glewInit_GL_VERSION_3_1 (GLEW_CONTEXT_ARG_DEF_INIT)
  3296. {
  3297. GLboolean r = GL_FALSE;
  3298. r = ((glDrawArraysInstanced = (PFNGLDRAWARRAYSINSTANCEDPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysInstanced")) == NULL) || r;
  3299. r = ((glDrawElementsInstanced = (PFNGLDRAWELEMENTSINSTANCEDPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstanced")) == NULL) || r;
  3300. r = ((glPrimitiveRestartIndex = (PFNGLPRIMITIVERESTARTINDEXPROC)glewGetProcAddress((const GLubyte*)"glPrimitiveRestartIndex")) == NULL) || r;
  3301. r = ((glTexBuffer = (PFNGLTEXBUFFERPROC)glewGetProcAddress((const GLubyte*)"glTexBuffer")) == NULL) || r;
  3302. return r;
  3303. }
  3304. #endif /* GL_VERSION_3_1 */
  3305. #ifdef GL_VERSION_3_2
  3306. static GLboolean _glewInit_GL_VERSION_3_2 (GLEW_CONTEXT_ARG_DEF_INIT)
  3307. {
  3308. GLboolean r = GL_FALSE;
  3309. r = ((glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture")) == NULL) || r;
  3310. r = ((glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)glewGetProcAddress((const GLubyte*)"glGetBufferParameteri64v")) == NULL) || r;
  3311. r = ((glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)glewGetProcAddress((const GLubyte*)"glGetInteger64i_v")) == NULL) || r;
  3312. return r;
  3313. }
  3314. #endif /* GL_VERSION_3_2 */
  3315. #ifdef GL_VERSION_3_3
  3316. static GLboolean _glewInit_GL_VERSION_3_3 (GLEW_CONTEXT_ARG_DEF_INIT)
  3317. {
  3318. GLboolean r = GL_FALSE;
  3319. r = ((glVertexAttribDivisor = (PFNGLVERTEXATTRIBDIVISORPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribDivisor")) == NULL) || r;
  3320. return r;
  3321. }
  3322. #endif /* GL_VERSION_3_3 */
  3323. #ifdef GL_VERSION_4_0
  3324. static GLboolean _glewInit_GL_VERSION_4_0 (GLEW_CONTEXT_ARG_DEF_INIT)
  3325. {
  3326. GLboolean r = GL_FALSE;
  3327. r = ((glBlendEquationSeparatei = (PFNGLBLENDEQUATIONSEPARATEIPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationSeparatei")) == NULL) || r;
  3328. r = ((glBlendEquationi = (PFNGLBLENDEQUATIONIPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationi")) == NULL) || r;
  3329. r = ((glBlendFuncSeparatei = (PFNGLBLENDFUNCSEPARATEIPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncSeparatei")) == NULL) || r;
  3330. r = ((glBlendFunci = (PFNGLBLENDFUNCIPROC)glewGetProcAddress((const GLubyte*)"glBlendFunci")) == NULL) || r;
  3331. r = ((glMinSampleShading = (PFNGLMINSAMPLESHADINGPROC)glewGetProcAddress((const GLubyte*)"glMinSampleShading")) == NULL) || r;
  3332. return r;
  3333. }
  3334. #endif /* GL_VERSION_4_0 */
  3335. #ifdef GL_VERSION_4_1
  3336. #endif /* GL_VERSION_4_1 */
  3337. #ifdef GL_VERSION_4_2
  3338. #endif /* GL_VERSION_4_2 */
  3339. #ifdef GL_VERSION_4_3
  3340. #endif /* GL_VERSION_4_3 */
  3341. #ifdef GL_VERSION_4_4
  3342. #endif /* GL_VERSION_4_4 */
  3343. #ifdef GL_3DFX_multisample
  3344. #endif /* GL_3DFX_multisample */
  3345. #ifdef GL_3DFX_tbuffer
  3346. static GLboolean _glewInit_GL_3DFX_tbuffer (GLEW_CONTEXT_ARG_DEF_INIT)
  3347. {
  3348. GLboolean r = GL_FALSE;
  3349. r = ((glTbufferMask3DFX = (PFNGLTBUFFERMASK3DFXPROC)glewGetProcAddress((const GLubyte*)"glTbufferMask3DFX")) == NULL) || r;
  3350. return r;
  3351. }
  3352. #endif /* GL_3DFX_tbuffer */
  3353. #ifdef GL_3DFX_texture_compression_FXT1
  3354. #endif /* GL_3DFX_texture_compression_FXT1 */
  3355. #ifdef GL_AMD_blend_minmax_factor
  3356. #endif /* GL_AMD_blend_minmax_factor */
  3357. #ifdef GL_AMD_conservative_depth
  3358. #endif /* GL_AMD_conservative_depth */
  3359. #ifdef GL_AMD_debug_output
  3360. static GLboolean _glewInit_GL_AMD_debug_output (GLEW_CONTEXT_ARG_DEF_INIT)
  3361. {
  3362. GLboolean r = GL_FALSE;
  3363. r = ((glDebugMessageCallbackAMD = (PFNGLDEBUGMESSAGECALLBACKAMDPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageCallbackAMD")) == NULL) || r;
  3364. r = ((glDebugMessageEnableAMD = (PFNGLDEBUGMESSAGEENABLEAMDPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageEnableAMD")) == NULL) || r;
  3365. r = ((glDebugMessageInsertAMD = (PFNGLDEBUGMESSAGEINSERTAMDPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageInsertAMD")) == NULL) || r;
  3366. r = ((glGetDebugMessageLogAMD = (PFNGLGETDEBUGMESSAGELOGAMDPROC)glewGetProcAddress((const GLubyte*)"glGetDebugMessageLogAMD")) == NULL) || r;
  3367. return r;
  3368. }
  3369. #endif /* GL_AMD_debug_output */
  3370. #ifdef GL_AMD_depth_clamp_separate
  3371. #endif /* GL_AMD_depth_clamp_separate */
  3372. #ifdef GL_AMD_draw_buffers_blend
  3373. static GLboolean _glewInit_GL_AMD_draw_buffers_blend (GLEW_CONTEXT_ARG_DEF_INIT)
  3374. {
  3375. GLboolean r = GL_FALSE;
  3376. r = ((glBlendEquationIndexedAMD = (PFNGLBLENDEQUATIONINDEXEDAMDPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationIndexedAMD")) == NULL) || r;
  3377. r = ((glBlendEquationSeparateIndexedAMD = (PFNGLBLENDEQUATIONSEPARATEINDEXEDAMDPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationSeparateIndexedAMD")) == NULL) || r;
  3378. r = ((glBlendFuncIndexedAMD = (PFNGLBLENDFUNCINDEXEDAMDPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncIndexedAMD")) == NULL) || r;
  3379. r = ((glBlendFuncSeparateIndexedAMD = (PFNGLBLENDFUNCSEPARATEINDEXEDAMDPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncSeparateIndexedAMD")) == NULL) || r;
  3380. return r;
  3381. }
  3382. #endif /* GL_AMD_draw_buffers_blend */
  3383. #ifdef GL_AMD_interleaved_elements
  3384. static GLboolean _glewInit_GL_AMD_interleaved_elements (GLEW_CONTEXT_ARG_DEF_INIT)
  3385. {
  3386. GLboolean r = GL_FALSE;
  3387. r = ((glVertexAttribParameteriAMD = (PFNGLVERTEXATTRIBPARAMETERIAMDPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribParameteriAMD")) == NULL) || r;
  3388. return r;
  3389. }
  3390. #endif /* GL_AMD_interleaved_elements */
  3391. #ifdef GL_AMD_multi_draw_indirect
  3392. static GLboolean _glewInit_GL_AMD_multi_draw_indirect (GLEW_CONTEXT_ARG_DEF_INIT)
  3393. {
  3394. GLboolean r = GL_FALSE;
  3395. r = ((glMultiDrawArraysIndirectAMD = (PFNGLMULTIDRAWARRAYSINDIRECTAMDPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArraysIndirectAMD")) == NULL) || r;
  3396. r = ((glMultiDrawElementsIndirectAMD = (PFNGLMULTIDRAWELEMENTSINDIRECTAMDPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementsIndirectAMD")) == NULL) || r;
  3397. return r;
  3398. }
  3399. #endif /* GL_AMD_multi_draw_indirect */
  3400. #ifdef GL_AMD_name_gen_delete
  3401. static GLboolean _glewInit_GL_AMD_name_gen_delete (GLEW_CONTEXT_ARG_DEF_INIT)
  3402. {
  3403. GLboolean r = GL_FALSE;
  3404. r = ((glDeleteNamesAMD = (PFNGLDELETENAMESAMDPROC)glewGetProcAddress((const GLubyte*)"glDeleteNamesAMD")) == NULL) || r;
  3405. r = ((glGenNamesAMD = (PFNGLGENNAMESAMDPROC)glewGetProcAddress((const GLubyte*)"glGenNamesAMD")) == NULL) || r;
  3406. r = ((glIsNameAMD = (PFNGLISNAMEAMDPROC)glewGetProcAddress((const GLubyte*)"glIsNameAMD")) == NULL) || r;
  3407. return r;
  3408. }
  3409. #endif /* GL_AMD_name_gen_delete */
  3410. #ifdef GL_AMD_performance_monitor
  3411. static GLboolean _glewInit_GL_AMD_performance_monitor (GLEW_CONTEXT_ARG_DEF_INIT)
  3412. {
  3413. GLboolean r = GL_FALSE;
  3414. r = ((glBeginPerfMonitorAMD = (PFNGLBEGINPERFMONITORAMDPROC)glewGetProcAddress((const GLubyte*)"glBeginPerfMonitorAMD")) == NULL) || r;
  3415. r = ((glDeletePerfMonitorsAMD = (PFNGLDELETEPERFMONITORSAMDPROC)glewGetProcAddress((const GLubyte*)"glDeletePerfMonitorsAMD")) == NULL) || r;
  3416. r = ((glEndPerfMonitorAMD = (PFNGLENDPERFMONITORAMDPROC)glewGetProcAddress((const GLubyte*)"glEndPerfMonitorAMD")) == NULL) || r;
  3417. r = ((glGenPerfMonitorsAMD = (PFNGLGENPERFMONITORSAMDPROC)glewGetProcAddress((const GLubyte*)"glGenPerfMonitorsAMD")) == NULL) || r;
  3418. r = ((glGetPerfMonitorCounterDataAMD = (PFNGLGETPERFMONITORCOUNTERDATAAMDPROC)glewGetProcAddress((const GLubyte*)"glGetPerfMonitorCounterDataAMD")) == NULL) || r;
  3419. r = ((glGetPerfMonitorCounterInfoAMD = (PFNGLGETPERFMONITORCOUNTERINFOAMDPROC)glewGetProcAddress((const GLubyte*)"glGetPerfMonitorCounterInfoAMD")) == NULL) || r;
  3420. r = ((glGetPerfMonitorCounterStringAMD = (PFNGLGETPERFMONITORCOUNTERSTRINGAMDPROC)glewGetProcAddress((const GLubyte*)"glGetPerfMonitorCounterStringAMD")) == NULL) || r;
  3421. r = ((glGetPerfMonitorCountersAMD = (PFNGLGETPERFMONITORCOUNTERSAMDPROC)glewGetProcAddress((const GLubyte*)"glGetPerfMonitorCountersAMD")) == NULL) || r;
  3422. r = ((glGetPerfMonitorGroupStringAMD = (PFNGLGETPERFMONITORGROUPSTRINGAMDPROC)glewGetProcAddress((const GLubyte*)"glGetPerfMonitorGroupStringAMD")) == NULL) || r;
  3423. r = ((glGetPerfMonitorGroupsAMD = (PFNGLGETPERFMONITORGROUPSAMDPROC)glewGetProcAddress((const GLubyte*)"glGetPerfMonitorGroupsAMD")) == NULL) || r;
  3424. r = ((glSelectPerfMonitorCountersAMD = (PFNGLSELECTPERFMONITORCOUNTERSAMDPROC)glewGetProcAddress((const GLubyte*)"glSelectPerfMonitorCountersAMD")) == NULL) || r;
  3425. return r;
  3426. }
  3427. #endif /* GL_AMD_performance_monitor */
  3428. #ifdef GL_AMD_pinned_memory
  3429. #endif /* GL_AMD_pinned_memory */
  3430. #ifdef GL_AMD_query_buffer_object
  3431. #endif /* GL_AMD_query_buffer_object */
  3432. #ifdef GL_AMD_sample_positions
  3433. static GLboolean _glewInit_GL_AMD_sample_positions (GLEW_CONTEXT_ARG_DEF_INIT)
  3434. {
  3435. GLboolean r = GL_FALSE;
  3436. r = ((glSetMultisamplefvAMD = (PFNGLSETMULTISAMPLEFVAMDPROC)glewGetProcAddress((const GLubyte*)"glSetMultisamplefvAMD")) == NULL) || r;
  3437. return r;
  3438. }
  3439. #endif /* GL_AMD_sample_positions */
  3440. #ifdef GL_AMD_seamless_cubemap_per_texture
  3441. #endif /* GL_AMD_seamless_cubemap_per_texture */
  3442. #ifdef GL_AMD_shader_stencil_export
  3443. #endif /* GL_AMD_shader_stencil_export */
  3444. #ifdef GL_AMD_shader_trinary_minmax
  3445. #endif /* GL_AMD_shader_trinary_minmax */
  3446. #ifdef GL_AMD_sparse_texture
  3447. static GLboolean _glewInit_GL_AMD_sparse_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  3448. {
  3449. GLboolean r = GL_FALSE;
  3450. r = ((glTexStorageSparseAMD = (PFNGLTEXSTORAGESPARSEAMDPROC)glewGetProcAddress((const GLubyte*)"glTexStorageSparseAMD")) == NULL) || r;
  3451. r = ((glTextureStorageSparseAMD = (PFNGLTEXTURESTORAGESPARSEAMDPROC)glewGetProcAddress((const GLubyte*)"glTextureStorageSparseAMD")) == NULL) || r;
  3452. return r;
  3453. }
  3454. #endif /* GL_AMD_sparse_texture */
  3455. #ifdef GL_AMD_stencil_operation_extended
  3456. static GLboolean _glewInit_GL_AMD_stencil_operation_extended (GLEW_CONTEXT_ARG_DEF_INIT)
  3457. {
  3458. GLboolean r = GL_FALSE;
  3459. r = ((glStencilOpValueAMD = (PFNGLSTENCILOPVALUEAMDPROC)glewGetProcAddress((const GLubyte*)"glStencilOpValueAMD")) == NULL) || r;
  3460. return r;
  3461. }
  3462. #endif /* GL_AMD_stencil_operation_extended */
  3463. #ifdef GL_AMD_texture_texture4
  3464. #endif /* GL_AMD_texture_texture4 */
  3465. #ifdef GL_AMD_transform_feedback3_lines_triangles
  3466. #endif /* GL_AMD_transform_feedback3_lines_triangles */
  3467. #ifdef GL_AMD_vertex_shader_layer
  3468. #endif /* GL_AMD_vertex_shader_layer */
  3469. #ifdef GL_AMD_vertex_shader_tessellator
  3470. static GLboolean _glewInit_GL_AMD_vertex_shader_tessellator (GLEW_CONTEXT_ARG_DEF_INIT)
  3471. {
  3472. GLboolean r = GL_FALSE;
  3473. r = ((glTessellationFactorAMD = (PFNGLTESSELLATIONFACTORAMDPROC)glewGetProcAddress((const GLubyte*)"glTessellationFactorAMD")) == NULL) || r;
  3474. r = ((glTessellationModeAMD = (PFNGLTESSELLATIONMODEAMDPROC)glewGetProcAddress((const GLubyte*)"glTessellationModeAMD")) == NULL) || r;
  3475. return r;
  3476. }
  3477. #endif /* GL_AMD_vertex_shader_tessellator */
  3478. #ifdef GL_AMD_vertex_shader_viewport_index
  3479. #endif /* GL_AMD_vertex_shader_viewport_index */
  3480. #ifdef GL_ANGLE_depth_texture
  3481. #endif /* GL_ANGLE_depth_texture */
  3482. #ifdef GL_ANGLE_framebuffer_blit
  3483. static GLboolean _glewInit_GL_ANGLE_framebuffer_blit (GLEW_CONTEXT_ARG_DEF_INIT)
  3484. {
  3485. GLboolean r = GL_FALSE;
  3486. r = ((glBlitFramebufferANGLE = (PFNGLBLITFRAMEBUFFERANGLEPROC)glewGetProcAddress((const GLubyte*)"glBlitFramebufferANGLE")) == NULL) || r;
  3487. return r;
  3488. }
  3489. #endif /* GL_ANGLE_framebuffer_blit */
  3490. #ifdef GL_ANGLE_framebuffer_multisample
  3491. static GLboolean _glewInit_GL_ANGLE_framebuffer_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  3492. {
  3493. GLboolean r = GL_FALSE;
  3494. r = ((glRenderbufferStorageMultisampleANGLE = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEANGLEPROC)glewGetProcAddress((const GLubyte*)"glRenderbufferStorageMultisampleANGLE")) == NULL) || r;
  3495. return r;
  3496. }
  3497. #endif /* GL_ANGLE_framebuffer_multisample */
  3498. #ifdef GL_ANGLE_instanced_arrays
  3499. static GLboolean _glewInit_GL_ANGLE_instanced_arrays (GLEW_CONTEXT_ARG_DEF_INIT)
  3500. {
  3501. GLboolean r = GL_FALSE;
  3502. r = ((glDrawArraysInstancedANGLE = (PFNGLDRAWARRAYSINSTANCEDANGLEPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysInstancedANGLE")) == NULL) || r;
  3503. r = ((glDrawElementsInstancedANGLE = (PFNGLDRAWELEMENTSINSTANCEDANGLEPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstancedANGLE")) == NULL) || r;
  3504. r = ((glVertexAttribDivisorANGLE = (PFNGLVERTEXATTRIBDIVISORANGLEPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribDivisorANGLE")) == NULL) || r;
  3505. return r;
  3506. }
  3507. #endif /* GL_ANGLE_instanced_arrays */
  3508. #ifdef GL_ANGLE_pack_reverse_row_order
  3509. #endif /* GL_ANGLE_pack_reverse_row_order */
  3510. #ifdef GL_ANGLE_program_binary
  3511. #endif /* GL_ANGLE_program_binary */
  3512. #ifdef GL_ANGLE_texture_compression_dxt1
  3513. #endif /* GL_ANGLE_texture_compression_dxt1 */
  3514. #ifdef GL_ANGLE_texture_compression_dxt3
  3515. #endif /* GL_ANGLE_texture_compression_dxt3 */
  3516. #ifdef GL_ANGLE_texture_compression_dxt5
  3517. #endif /* GL_ANGLE_texture_compression_dxt5 */
  3518. #ifdef GL_ANGLE_texture_usage
  3519. #endif /* GL_ANGLE_texture_usage */
  3520. #ifdef GL_ANGLE_timer_query
  3521. static GLboolean _glewInit_GL_ANGLE_timer_query (GLEW_CONTEXT_ARG_DEF_INIT)
  3522. {
  3523. GLboolean r = GL_FALSE;
  3524. r = ((glBeginQueryANGLE = (PFNGLBEGINQUERYANGLEPROC)glewGetProcAddress((const GLubyte*)"glBeginQueryANGLE")) == NULL) || r;
  3525. r = ((glDeleteQueriesANGLE = (PFNGLDELETEQUERIESANGLEPROC)glewGetProcAddress((const GLubyte*)"glDeleteQueriesANGLE")) == NULL) || r;
  3526. r = ((glEndQueryANGLE = (PFNGLENDQUERYANGLEPROC)glewGetProcAddress((const GLubyte*)"glEndQueryANGLE")) == NULL) || r;
  3527. r = ((glGenQueriesANGLE = (PFNGLGENQUERIESANGLEPROC)glewGetProcAddress((const GLubyte*)"glGenQueriesANGLE")) == NULL) || r;
  3528. r = ((glGetQueryObjecti64vANGLE = (PFNGLGETQUERYOBJECTI64VANGLEPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjecti64vANGLE")) == NULL) || r;
  3529. r = ((glGetQueryObjectivANGLE = (PFNGLGETQUERYOBJECTIVANGLEPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectivANGLE")) == NULL) || r;
  3530. r = ((glGetQueryObjectui64vANGLE = (PFNGLGETQUERYOBJECTUI64VANGLEPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectui64vANGLE")) == NULL) || r;
  3531. r = ((glGetQueryObjectuivANGLE = (PFNGLGETQUERYOBJECTUIVANGLEPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectuivANGLE")) == NULL) || r;
  3532. r = ((glGetQueryivANGLE = (PFNGLGETQUERYIVANGLEPROC)glewGetProcAddress((const GLubyte*)"glGetQueryivANGLE")) == NULL) || r;
  3533. r = ((glIsQueryANGLE = (PFNGLISQUERYANGLEPROC)glewGetProcAddress((const GLubyte*)"glIsQueryANGLE")) == NULL) || r;
  3534. r = ((glQueryCounterANGLE = (PFNGLQUERYCOUNTERANGLEPROC)glewGetProcAddress((const GLubyte*)"glQueryCounterANGLE")) == NULL) || r;
  3535. return r;
  3536. }
  3537. #endif /* GL_ANGLE_timer_query */
  3538. #ifdef GL_ANGLE_translated_shader_source
  3539. static GLboolean _glewInit_GL_ANGLE_translated_shader_source (GLEW_CONTEXT_ARG_DEF_INIT)
  3540. {
  3541. GLboolean r = GL_FALSE;
  3542. r = ((glGetTranslatedShaderSourceANGLE = (PFNGLGETTRANSLATEDSHADERSOURCEANGLEPROC)glewGetProcAddress((const GLubyte*)"glGetTranslatedShaderSourceANGLE")) == NULL) || r;
  3543. return r;
  3544. }
  3545. #endif /* GL_ANGLE_translated_shader_source */
  3546. #ifdef GL_APPLE_aux_depth_stencil
  3547. #endif /* GL_APPLE_aux_depth_stencil */
  3548. #ifdef GL_APPLE_client_storage
  3549. #endif /* GL_APPLE_client_storage */
  3550. #ifdef GL_APPLE_element_array
  3551. static GLboolean _glewInit_GL_APPLE_element_array (GLEW_CONTEXT_ARG_DEF_INIT)
  3552. {
  3553. GLboolean r = GL_FALSE;
  3554. r = ((glDrawElementArrayAPPLE = (PFNGLDRAWELEMENTARRAYAPPLEPROC)glewGetProcAddress((const GLubyte*)"glDrawElementArrayAPPLE")) == NULL) || r;
  3555. r = ((glDrawRangeElementArrayAPPLE = (PFNGLDRAWRANGEELEMENTARRAYAPPLEPROC)glewGetProcAddress((const GLubyte*)"glDrawRangeElementArrayAPPLE")) == NULL) || r;
  3556. r = ((glElementPointerAPPLE = (PFNGLELEMENTPOINTERAPPLEPROC)glewGetProcAddress((const GLubyte*)"glElementPointerAPPLE")) == NULL) || r;
  3557. r = ((glMultiDrawElementArrayAPPLE = (PFNGLMULTIDRAWELEMENTARRAYAPPLEPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementArrayAPPLE")) == NULL) || r;
  3558. r = ((glMultiDrawRangeElementArrayAPPLE = (PFNGLMULTIDRAWRANGEELEMENTARRAYAPPLEPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawRangeElementArrayAPPLE")) == NULL) || r;
  3559. return r;
  3560. }
  3561. #endif /* GL_APPLE_element_array */
  3562. #ifdef GL_APPLE_fence
  3563. static GLboolean _glewInit_GL_APPLE_fence (GLEW_CONTEXT_ARG_DEF_INIT)
  3564. {
  3565. GLboolean r = GL_FALSE;
  3566. r = ((glDeleteFencesAPPLE = (PFNGLDELETEFENCESAPPLEPROC)glewGetProcAddress((const GLubyte*)"glDeleteFencesAPPLE")) == NULL) || r;
  3567. r = ((glFinishFenceAPPLE = (PFNGLFINISHFENCEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glFinishFenceAPPLE")) == NULL) || r;
  3568. r = ((glFinishObjectAPPLE = (PFNGLFINISHOBJECTAPPLEPROC)glewGetProcAddress((const GLubyte*)"glFinishObjectAPPLE")) == NULL) || r;
  3569. r = ((glGenFencesAPPLE = (PFNGLGENFENCESAPPLEPROC)glewGetProcAddress((const GLubyte*)"glGenFencesAPPLE")) == NULL) || r;
  3570. r = ((glIsFenceAPPLE = (PFNGLISFENCEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glIsFenceAPPLE")) == NULL) || r;
  3571. r = ((glSetFenceAPPLE = (PFNGLSETFENCEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glSetFenceAPPLE")) == NULL) || r;
  3572. r = ((glTestFenceAPPLE = (PFNGLTESTFENCEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glTestFenceAPPLE")) == NULL) || r;
  3573. r = ((glTestObjectAPPLE = (PFNGLTESTOBJECTAPPLEPROC)glewGetProcAddress((const GLubyte*)"glTestObjectAPPLE")) == NULL) || r;
  3574. return r;
  3575. }
  3576. #endif /* GL_APPLE_fence */
  3577. #ifdef GL_APPLE_float_pixels
  3578. #endif /* GL_APPLE_float_pixels */
  3579. #ifdef GL_APPLE_flush_buffer_range
  3580. static GLboolean _glewInit_GL_APPLE_flush_buffer_range (GLEW_CONTEXT_ARG_DEF_INIT)
  3581. {
  3582. GLboolean r = GL_FALSE;
  3583. r = ((glBufferParameteriAPPLE = (PFNGLBUFFERPARAMETERIAPPLEPROC)glewGetProcAddress((const GLubyte*)"glBufferParameteriAPPLE")) == NULL) || r;
  3584. r = ((glFlushMappedBufferRangeAPPLE = (PFNGLFLUSHMAPPEDBUFFERRANGEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glFlushMappedBufferRangeAPPLE")) == NULL) || r;
  3585. return r;
  3586. }
  3587. #endif /* GL_APPLE_flush_buffer_range */
  3588. #ifdef GL_APPLE_object_purgeable
  3589. static GLboolean _glewInit_GL_APPLE_object_purgeable (GLEW_CONTEXT_ARG_DEF_INIT)
  3590. {
  3591. GLboolean r = GL_FALSE;
  3592. r = ((glGetObjectParameterivAPPLE = (PFNGLGETOBJECTPARAMETERIVAPPLEPROC)glewGetProcAddress((const GLubyte*)"glGetObjectParameterivAPPLE")) == NULL) || r;
  3593. r = ((glObjectPurgeableAPPLE = (PFNGLOBJECTPURGEABLEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glObjectPurgeableAPPLE")) == NULL) || r;
  3594. r = ((glObjectUnpurgeableAPPLE = (PFNGLOBJECTUNPURGEABLEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glObjectUnpurgeableAPPLE")) == NULL) || r;
  3595. return r;
  3596. }
  3597. #endif /* GL_APPLE_object_purgeable */
  3598. #ifdef GL_APPLE_pixel_buffer
  3599. #endif /* GL_APPLE_pixel_buffer */
  3600. #ifdef GL_APPLE_rgb_422
  3601. #endif /* GL_APPLE_rgb_422 */
  3602. #ifdef GL_APPLE_row_bytes
  3603. #endif /* GL_APPLE_row_bytes */
  3604. #ifdef GL_APPLE_specular_vector
  3605. #endif /* GL_APPLE_specular_vector */
  3606. #ifdef GL_APPLE_texture_range
  3607. static GLboolean _glewInit_GL_APPLE_texture_range (GLEW_CONTEXT_ARG_DEF_INIT)
  3608. {
  3609. GLboolean r = GL_FALSE;
  3610. r = ((glGetTexParameterPointervAPPLE = (PFNGLGETTEXPARAMETERPOINTERVAPPLEPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterPointervAPPLE")) == NULL) || r;
  3611. r = ((glTextureRangeAPPLE = (PFNGLTEXTURERANGEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glTextureRangeAPPLE")) == NULL) || r;
  3612. return r;
  3613. }
  3614. #endif /* GL_APPLE_texture_range */
  3615. #ifdef GL_APPLE_transform_hint
  3616. #endif /* GL_APPLE_transform_hint */
  3617. #ifdef GL_APPLE_vertex_array_object
  3618. static GLboolean _glewInit_GL_APPLE_vertex_array_object (GLEW_CONTEXT_ARG_DEF_INIT)
  3619. {
  3620. GLboolean r = GL_FALSE;
  3621. r = ((glBindVertexArrayAPPLE = (PFNGLBINDVERTEXARRAYAPPLEPROC)glewGetProcAddress((const GLubyte*)"glBindVertexArrayAPPLE")) == NULL) || r;
  3622. r = ((glDeleteVertexArraysAPPLE = (PFNGLDELETEVERTEXARRAYSAPPLEPROC)glewGetProcAddress((const GLubyte*)"glDeleteVertexArraysAPPLE")) == NULL) || r;
  3623. r = ((glGenVertexArraysAPPLE = (PFNGLGENVERTEXARRAYSAPPLEPROC)glewGetProcAddress((const GLubyte*)"glGenVertexArraysAPPLE")) == NULL) || r;
  3624. r = ((glIsVertexArrayAPPLE = (PFNGLISVERTEXARRAYAPPLEPROC)glewGetProcAddress((const GLubyte*)"glIsVertexArrayAPPLE")) == NULL) || r;
  3625. return r;
  3626. }
  3627. #endif /* GL_APPLE_vertex_array_object */
  3628. #ifdef GL_APPLE_vertex_array_range
  3629. static GLboolean _glewInit_GL_APPLE_vertex_array_range (GLEW_CONTEXT_ARG_DEF_INIT)
  3630. {
  3631. GLboolean r = GL_FALSE;
  3632. r = ((glFlushVertexArrayRangeAPPLE = (PFNGLFLUSHVERTEXARRAYRANGEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glFlushVertexArrayRangeAPPLE")) == NULL) || r;
  3633. r = ((glVertexArrayParameteriAPPLE = (PFNGLVERTEXARRAYPARAMETERIAPPLEPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayParameteriAPPLE")) == NULL) || r;
  3634. r = ((glVertexArrayRangeAPPLE = (PFNGLVERTEXARRAYRANGEAPPLEPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayRangeAPPLE")) == NULL) || r;
  3635. return r;
  3636. }
  3637. #endif /* GL_APPLE_vertex_array_range */
  3638. #ifdef GL_APPLE_vertex_program_evaluators
  3639. static GLboolean _glewInit_GL_APPLE_vertex_program_evaluators (GLEW_CONTEXT_ARG_DEF_INIT)
  3640. {
  3641. GLboolean r = GL_FALSE;
  3642. r = ((glDisableVertexAttribAPPLE = (PFNGLDISABLEVERTEXATTRIBAPPLEPROC)glewGetProcAddress((const GLubyte*)"glDisableVertexAttribAPPLE")) == NULL) || r;
  3643. r = ((glEnableVertexAttribAPPLE = (PFNGLENABLEVERTEXATTRIBAPPLEPROC)glewGetProcAddress((const GLubyte*)"glEnableVertexAttribAPPLE")) == NULL) || r;
  3644. r = ((glIsVertexAttribEnabledAPPLE = (PFNGLISVERTEXATTRIBENABLEDAPPLEPROC)glewGetProcAddress((const GLubyte*)"glIsVertexAttribEnabledAPPLE")) == NULL) || r;
  3645. r = ((glMapVertexAttrib1dAPPLE = (PFNGLMAPVERTEXATTRIB1DAPPLEPROC)glewGetProcAddress((const GLubyte*)"glMapVertexAttrib1dAPPLE")) == NULL) || r;
  3646. r = ((glMapVertexAttrib1fAPPLE = (PFNGLMAPVERTEXATTRIB1FAPPLEPROC)glewGetProcAddress((const GLubyte*)"glMapVertexAttrib1fAPPLE")) == NULL) || r;
  3647. r = ((glMapVertexAttrib2dAPPLE = (PFNGLMAPVERTEXATTRIB2DAPPLEPROC)glewGetProcAddress((const GLubyte*)"glMapVertexAttrib2dAPPLE")) == NULL) || r;
  3648. r = ((glMapVertexAttrib2fAPPLE = (PFNGLMAPVERTEXATTRIB2FAPPLEPROC)glewGetProcAddress((const GLubyte*)"glMapVertexAttrib2fAPPLE")) == NULL) || r;
  3649. return r;
  3650. }
  3651. #endif /* GL_APPLE_vertex_program_evaluators */
  3652. #ifdef GL_APPLE_ycbcr_422
  3653. #endif /* GL_APPLE_ycbcr_422 */
  3654. #ifdef GL_ARB_ES2_compatibility
  3655. static GLboolean _glewInit_GL_ARB_ES2_compatibility (GLEW_CONTEXT_ARG_DEF_INIT)
  3656. {
  3657. GLboolean r = GL_FALSE;
  3658. r = ((glClearDepthf = (PFNGLCLEARDEPTHFPROC)glewGetProcAddress((const GLubyte*)"glClearDepthf")) == NULL) || r;
  3659. r = ((glDepthRangef = (PFNGLDEPTHRANGEFPROC)glewGetProcAddress((const GLubyte*)"glDepthRangef")) == NULL) || r;
  3660. r = ((glGetShaderPrecisionFormat = (PFNGLGETSHADERPRECISIONFORMATPROC)glewGetProcAddress((const GLubyte*)"glGetShaderPrecisionFormat")) == NULL) || r;
  3661. r = ((glReleaseShaderCompiler = (PFNGLRELEASESHADERCOMPILERPROC)glewGetProcAddress((const GLubyte*)"glReleaseShaderCompiler")) == NULL) || r;
  3662. r = ((glShaderBinary = (PFNGLSHADERBINARYPROC)glewGetProcAddress((const GLubyte*)"glShaderBinary")) == NULL) || r;
  3663. return r;
  3664. }
  3665. #endif /* GL_ARB_ES2_compatibility */
  3666. #ifdef GL_ARB_ES3_compatibility
  3667. #endif /* GL_ARB_ES3_compatibility */
  3668. #ifdef GL_ARB_arrays_of_arrays
  3669. #endif /* GL_ARB_arrays_of_arrays */
  3670. #ifdef GL_ARB_base_instance
  3671. static GLboolean _glewInit_GL_ARB_base_instance (GLEW_CONTEXT_ARG_DEF_INIT)
  3672. {
  3673. GLboolean r = GL_FALSE;
  3674. r = ((glDrawArraysInstancedBaseInstance = (PFNGLDRAWARRAYSINSTANCEDBASEINSTANCEPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysInstancedBaseInstance")) == NULL) || r;
  3675. r = ((glDrawElementsInstancedBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEINSTANCEPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstancedBaseInstance")) == NULL) || r;
  3676. r = ((glDrawElementsInstancedBaseVertexBaseInstance = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXBASEINSTANCEPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstancedBaseVertexBaseInstance")) == NULL) || r;
  3677. return r;
  3678. }
  3679. #endif /* GL_ARB_base_instance */
  3680. #ifdef GL_ARB_bindless_texture
  3681. static GLboolean _glewInit_GL_ARB_bindless_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  3682. {
  3683. GLboolean r = GL_FALSE;
  3684. r = ((glGetImageHandleARB = (PFNGLGETIMAGEHANDLEARBPROC)glewGetProcAddress((const GLubyte*)"glGetImageHandleARB")) == NULL) || r;
  3685. r = ((glGetTextureHandleARB = (PFNGLGETTEXTUREHANDLEARBPROC)glewGetProcAddress((const GLubyte*)"glGetTextureHandleARB")) == NULL) || r;
  3686. r = ((glGetTextureSamplerHandleARB = (PFNGLGETTEXTURESAMPLERHANDLEARBPROC)glewGetProcAddress((const GLubyte*)"glGetTextureSamplerHandleARB")) == NULL) || r;
  3687. r = ((glGetVertexAttribLui64vARB = (PFNGLGETVERTEXATTRIBLUI64VARBPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribLui64vARB")) == NULL) || r;
  3688. r = ((glIsImageHandleResidentARB = (PFNGLISIMAGEHANDLERESIDENTARBPROC)glewGetProcAddress((const GLubyte*)"glIsImageHandleResidentARB")) == NULL) || r;
  3689. r = ((glIsTextureHandleResidentARB = (PFNGLISTEXTUREHANDLERESIDENTARBPROC)glewGetProcAddress((const GLubyte*)"glIsTextureHandleResidentARB")) == NULL) || r;
  3690. r = ((glMakeImageHandleNonResidentARB = (PFNGLMAKEIMAGEHANDLENONRESIDENTARBPROC)glewGetProcAddress((const GLubyte*)"glMakeImageHandleNonResidentARB")) == NULL) || r;
  3691. r = ((glMakeImageHandleResidentARB = (PFNGLMAKEIMAGEHANDLERESIDENTARBPROC)glewGetProcAddress((const GLubyte*)"glMakeImageHandleResidentARB")) == NULL) || r;
  3692. r = ((glMakeTextureHandleNonResidentARB = (PFNGLMAKETEXTUREHANDLENONRESIDENTARBPROC)glewGetProcAddress((const GLubyte*)"glMakeTextureHandleNonResidentARB")) == NULL) || r;
  3693. r = ((glMakeTextureHandleResidentARB = (PFNGLMAKETEXTUREHANDLERESIDENTARBPROC)glewGetProcAddress((const GLubyte*)"glMakeTextureHandleResidentARB")) == NULL) || r;
  3694. r = ((glProgramUniformHandleui64ARB = (PFNGLPROGRAMUNIFORMHANDLEUI64ARBPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformHandleui64ARB")) == NULL) || r;
  3695. r = ((glProgramUniformHandleui64vARB = (PFNGLPROGRAMUNIFORMHANDLEUI64VARBPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformHandleui64vARB")) == NULL) || r;
  3696. r = ((glUniformHandleui64ARB = (PFNGLUNIFORMHANDLEUI64ARBPROC)glewGetProcAddress((const GLubyte*)"glUniformHandleui64ARB")) == NULL) || r;
  3697. r = ((glUniformHandleui64vARB = (PFNGLUNIFORMHANDLEUI64VARBPROC)glewGetProcAddress((const GLubyte*)"glUniformHandleui64vARB")) == NULL) || r;
  3698. r = ((glVertexAttribL1ui64ARB = (PFNGLVERTEXATTRIBL1UI64ARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1ui64ARB")) == NULL) || r;
  3699. r = ((glVertexAttribL1ui64vARB = (PFNGLVERTEXATTRIBL1UI64VARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1ui64vARB")) == NULL) || r;
  3700. return r;
  3701. }
  3702. #endif /* GL_ARB_bindless_texture */
  3703. #ifdef GL_ARB_blend_func_extended
  3704. static GLboolean _glewInit_GL_ARB_blend_func_extended (GLEW_CONTEXT_ARG_DEF_INIT)
  3705. {
  3706. GLboolean r = GL_FALSE;
  3707. r = ((glBindFragDataLocationIndexed = (PFNGLBINDFRAGDATALOCATIONINDEXEDPROC)glewGetProcAddress((const GLubyte*)"glBindFragDataLocationIndexed")) == NULL) || r;
  3708. r = ((glGetFragDataIndex = (PFNGLGETFRAGDATAINDEXPROC)glewGetProcAddress((const GLubyte*)"glGetFragDataIndex")) == NULL) || r;
  3709. return r;
  3710. }
  3711. #endif /* GL_ARB_blend_func_extended */
  3712. #ifdef GL_ARB_buffer_storage
  3713. static GLboolean _glewInit_GL_ARB_buffer_storage (GLEW_CONTEXT_ARG_DEF_INIT)
  3714. {
  3715. GLboolean r = GL_FALSE;
  3716. r = ((glBufferStorage = (PFNGLBUFFERSTORAGEPROC)glewGetProcAddress((const GLubyte*)"glBufferStorage")) == NULL) || r;
  3717. r = ((glNamedBufferStorageEXT = (PFNGLNAMEDBUFFERSTORAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedBufferStorageEXT")) == NULL) || r;
  3718. return r;
  3719. }
  3720. #endif /* GL_ARB_buffer_storage */
  3721. #ifdef GL_ARB_cl_event
  3722. static GLboolean _glewInit_GL_ARB_cl_event (GLEW_CONTEXT_ARG_DEF_INIT)
  3723. {
  3724. GLboolean r = GL_FALSE;
  3725. r = ((glCreateSyncFromCLeventARB = (PFNGLCREATESYNCFROMCLEVENTARBPROC)glewGetProcAddress((const GLubyte*)"glCreateSyncFromCLeventARB")) == NULL) || r;
  3726. return r;
  3727. }
  3728. #endif /* GL_ARB_cl_event */
  3729. #ifdef GL_ARB_clear_buffer_object
  3730. static GLboolean _glewInit_GL_ARB_clear_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  3731. {
  3732. GLboolean r = GL_FALSE;
  3733. r = ((glClearBufferData = (PFNGLCLEARBUFFERDATAPROC)glewGetProcAddress((const GLubyte*)"glClearBufferData")) == NULL) || r;
  3734. r = ((glClearBufferSubData = (PFNGLCLEARBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glClearBufferSubData")) == NULL) || r;
  3735. r = ((glClearNamedBufferDataEXT = (PFNGLCLEARNAMEDBUFFERDATAEXTPROC)glewGetProcAddress((const GLubyte*)"glClearNamedBufferDataEXT")) == NULL) || r;
  3736. r = ((glClearNamedBufferSubDataEXT = (PFNGLCLEARNAMEDBUFFERSUBDATAEXTPROC)glewGetProcAddress((const GLubyte*)"glClearNamedBufferSubDataEXT")) == NULL) || r;
  3737. return r;
  3738. }
  3739. #endif /* GL_ARB_clear_buffer_object */
  3740. #ifdef GL_ARB_clear_texture
  3741. static GLboolean _glewInit_GL_ARB_clear_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  3742. {
  3743. GLboolean r = GL_FALSE;
  3744. r = ((glClearTexImage = (PFNGLCLEARTEXIMAGEPROC)glewGetProcAddress((const GLubyte*)"glClearTexImage")) == NULL) || r;
  3745. r = ((glClearTexSubImage = (PFNGLCLEARTEXSUBIMAGEPROC)glewGetProcAddress((const GLubyte*)"glClearTexSubImage")) == NULL) || r;
  3746. return r;
  3747. }
  3748. #endif /* GL_ARB_clear_texture */
  3749. #ifdef GL_ARB_color_buffer_float
  3750. static GLboolean _glewInit_GL_ARB_color_buffer_float (GLEW_CONTEXT_ARG_DEF_INIT)
  3751. {
  3752. GLboolean r = GL_FALSE;
  3753. r = ((glClampColorARB = (PFNGLCLAMPCOLORARBPROC)glewGetProcAddress((const GLubyte*)"glClampColorARB")) == NULL) || r;
  3754. return r;
  3755. }
  3756. #endif /* GL_ARB_color_buffer_float */
  3757. #ifdef GL_ARB_compatibility
  3758. #endif /* GL_ARB_compatibility */
  3759. #ifdef GL_ARB_compressed_texture_pixel_storage
  3760. #endif /* GL_ARB_compressed_texture_pixel_storage */
  3761. #ifdef GL_ARB_compute_shader
  3762. static GLboolean _glewInit_GL_ARB_compute_shader (GLEW_CONTEXT_ARG_DEF_INIT)
  3763. {
  3764. GLboolean r = GL_FALSE;
  3765. r = ((glDispatchCompute = (PFNGLDISPATCHCOMPUTEPROC)glewGetProcAddress((const GLubyte*)"glDispatchCompute")) == NULL) || r;
  3766. r = ((glDispatchComputeIndirect = (PFNGLDISPATCHCOMPUTEINDIRECTPROC)glewGetProcAddress((const GLubyte*)"glDispatchComputeIndirect")) == NULL) || r;
  3767. return r;
  3768. }
  3769. #endif /* GL_ARB_compute_shader */
  3770. #ifdef GL_ARB_compute_variable_group_size
  3771. static GLboolean _glewInit_GL_ARB_compute_variable_group_size (GLEW_CONTEXT_ARG_DEF_INIT)
  3772. {
  3773. GLboolean r = GL_FALSE;
  3774. r = ((glDispatchComputeGroupSizeARB = (PFNGLDISPATCHCOMPUTEGROUPSIZEARBPROC)glewGetProcAddress((const GLubyte*)"glDispatchComputeGroupSizeARB")) == NULL) || r;
  3775. return r;
  3776. }
  3777. #endif /* GL_ARB_compute_variable_group_size */
  3778. #ifdef GL_ARB_conservative_depth
  3779. #endif /* GL_ARB_conservative_depth */
  3780. #ifdef GL_ARB_copy_buffer
  3781. static GLboolean _glewInit_GL_ARB_copy_buffer (GLEW_CONTEXT_ARG_DEF_INIT)
  3782. {
  3783. GLboolean r = GL_FALSE;
  3784. r = ((glCopyBufferSubData = (PFNGLCOPYBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glCopyBufferSubData")) == NULL) || r;
  3785. return r;
  3786. }
  3787. #endif /* GL_ARB_copy_buffer */
  3788. #ifdef GL_ARB_copy_image
  3789. static GLboolean _glewInit_GL_ARB_copy_image (GLEW_CONTEXT_ARG_DEF_INIT)
  3790. {
  3791. GLboolean r = GL_FALSE;
  3792. r = ((glCopyImageSubData = (PFNGLCOPYIMAGESUBDATAPROC)glewGetProcAddress((const GLubyte*)"glCopyImageSubData")) == NULL) || r;
  3793. return r;
  3794. }
  3795. #endif /* GL_ARB_copy_image */
  3796. #ifdef GL_ARB_debug_output
  3797. static GLboolean _glewInit_GL_ARB_debug_output (GLEW_CONTEXT_ARG_DEF_INIT)
  3798. {
  3799. GLboolean r = GL_FALSE;
  3800. r = ((glDebugMessageCallbackARB = (PFNGLDEBUGMESSAGECALLBACKARBPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageCallbackARB")) == NULL) || r;
  3801. r = ((glDebugMessageControlARB = (PFNGLDEBUGMESSAGECONTROLARBPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageControlARB")) == NULL) || r;
  3802. r = ((glDebugMessageInsertARB = (PFNGLDEBUGMESSAGEINSERTARBPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageInsertARB")) == NULL) || r;
  3803. r = ((glGetDebugMessageLogARB = (PFNGLGETDEBUGMESSAGELOGARBPROC)glewGetProcAddress((const GLubyte*)"glGetDebugMessageLogARB")) == NULL) || r;
  3804. return r;
  3805. }
  3806. #endif /* GL_ARB_debug_output */
  3807. #ifdef GL_ARB_depth_buffer_float
  3808. #endif /* GL_ARB_depth_buffer_float */
  3809. #ifdef GL_ARB_depth_clamp
  3810. #endif /* GL_ARB_depth_clamp */
  3811. #ifdef GL_ARB_depth_texture
  3812. #endif /* GL_ARB_depth_texture */
  3813. #ifdef GL_ARB_draw_buffers
  3814. static GLboolean _glewInit_GL_ARB_draw_buffers (GLEW_CONTEXT_ARG_DEF_INIT)
  3815. {
  3816. GLboolean r = GL_FALSE;
  3817. r = ((glDrawBuffersARB = (PFNGLDRAWBUFFERSARBPROC)glewGetProcAddress((const GLubyte*)"glDrawBuffersARB")) == NULL) || r;
  3818. return r;
  3819. }
  3820. #endif /* GL_ARB_draw_buffers */
  3821. #ifdef GL_ARB_draw_buffers_blend
  3822. static GLboolean _glewInit_GL_ARB_draw_buffers_blend (GLEW_CONTEXT_ARG_DEF_INIT)
  3823. {
  3824. GLboolean r = GL_FALSE;
  3825. r = ((glBlendEquationSeparateiARB = (PFNGLBLENDEQUATIONSEPARATEIARBPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationSeparateiARB")) == NULL) || r;
  3826. r = ((glBlendEquationiARB = (PFNGLBLENDEQUATIONIARBPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationiARB")) == NULL) || r;
  3827. r = ((glBlendFuncSeparateiARB = (PFNGLBLENDFUNCSEPARATEIARBPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncSeparateiARB")) == NULL) || r;
  3828. r = ((glBlendFunciARB = (PFNGLBLENDFUNCIARBPROC)glewGetProcAddress((const GLubyte*)"glBlendFunciARB")) == NULL) || r;
  3829. return r;
  3830. }
  3831. #endif /* GL_ARB_draw_buffers_blend */
  3832. #ifdef GL_ARB_draw_elements_base_vertex
  3833. static GLboolean _glewInit_GL_ARB_draw_elements_base_vertex (GLEW_CONTEXT_ARG_DEF_INIT)
  3834. {
  3835. GLboolean r = GL_FALSE;
  3836. r = ((glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsBaseVertex")) == NULL) || r;
  3837. r = ((glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstancedBaseVertex")) == NULL) || r;
  3838. r = ((glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)glewGetProcAddress((const GLubyte*)"glDrawRangeElementsBaseVertex")) == NULL) || r;
  3839. r = ((glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementsBaseVertex")) == NULL) || r;
  3840. return r;
  3841. }
  3842. #endif /* GL_ARB_draw_elements_base_vertex */
  3843. #ifdef GL_ARB_draw_indirect
  3844. static GLboolean _glewInit_GL_ARB_draw_indirect (GLEW_CONTEXT_ARG_DEF_INIT)
  3845. {
  3846. GLboolean r = GL_FALSE;
  3847. r = ((glDrawArraysIndirect = (PFNGLDRAWARRAYSINDIRECTPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysIndirect")) == NULL) || r;
  3848. r = ((glDrawElementsIndirect = (PFNGLDRAWELEMENTSINDIRECTPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsIndirect")) == NULL) || r;
  3849. return r;
  3850. }
  3851. #endif /* GL_ARB_draw_indirect */
  3852. #ifdef GL_ARB_draw_instanced
  3853. #endif /* GL_ARB_draw_instanced */
  3854. #ifdef GL_ARB_enhanced_layouts
  3855. #endif /* GL_ARB_enhanced_layouts */
  3856. #ifdef GL_ARB_explicit_attrib_location
  3857. #endif /* GL_ARB_explicit_attrib_location */
  3858. #ifdef GL_ARB_explicit_uniform_location
  3859. #endif /* GL_ARB_explicit_uniform_location */
  3860. #ifdef GL_ARB_fragment_coord_conventions
  3861. #endif /* GL_ARB_fragment_coord_conventions */
  3862. #ifdef GL_ARB_fragment_layer_viewport
  3863. #endif /* GL_ARB_fragment_layer_viewport */
  3864. #ifdef GL_ARB_fragment_program
  3865. #endif /* GL_ARB_fragment_program */
  3866. #ifdef GL_ARB_fragment_program_shadow
  3867. #endif /* GL_ARB_fragment_program_shadow */
  3868. #ifdef GL_ARB_fragment_shader
  3869. #endif /* GL_ARB_fragment_shader */
  3870. #ifdef GL_ARB_framebuffer_no_attachments
  3871. static GLboolean _glewInit_GL_ARB_framebuffer_no_attachments (GLEW_CONTEXT_ARG_DEF_INIT)
  3872. {
  3873. GLboolean r = GL_FALSE;
  3874. r = ((glFramebufferParameteri = (PFNGLFRAMEBUFFERPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glFramebufferParameteri")) == NULL) || r;
  3875. r = ((glGetFramebufferParameteriv = (PFNGLGETFRAMEBUFFERPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetFramebufferParameteriv")) == NULL) || r;
  3876. r = ((glGetNamedFramebufferParameterivEXT = (PFNGLGETNAMEDFRAMEBUFFERPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedFramebufferParameterivEXT")) == NULL) || r;
  3877. r = ((glNamedFramebufferParameteriEXT = (PFNGLNAMEDFRAMEBUFFERPARAMETERIEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferParameteriEXT")) == NULL) || r;
  3878. return r;
  3879. }
  3880. #endif /* GL_ARB_framebuffer_no_attachments */
  3881. #ifdef GL_ARB_framebuffer_object
  3882. static GLboolean _glewInit_GL_ARB_framebuffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  3883. {
  3884. GLboolean r = GL_FALSE;
  3885. r = ((glBindFramebuffer = (PFNGLBINDFRAMEBUFFERPROC)glewGetProcAddress((const GLubyte*)"glBindFramebuffer")) == NULL) || r;
  3886. r = ((glBindRenderbuffer = (PFNGLBINDRENDERBUFFERPROC)glewGetProcAddress((const GLubyte*)"glBindRenderbuffer")) == NULL) || r;
  3887. r = ((glBlitFramebuffer = (PFNGLBLITFRAMEBUFFERPROC)glewGetProcAddress((const GLubyte*)"glBlitFramebuffer")) == NULL) || r;
  3888. r = ((glCheckFramebufferStatus = (PFNGLCHECKFRAMEBUFFERSTATUSPROC)glewGetProcAddress((const GLubyte*)"glCheckFramebufferStatus")) == NULL) || r;
  3889. r = ((glDeleteFramebuffers = (PFNGLDELETEFRAMEBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glDeleteFramebuffers")) == NULL) || r;
  3890. r = ((glDeleteRenderbuffers = (PFNGLDELETERENDERBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glDeleteRenderbuffers")) == NULL) || r;
  3891. r = ((glFramebufferRenderbuffer = (PFNGLFRAMEBUFFERRENDERBUFFERPROC)glewGetProcAddress((const GLubyte*)"glFramebufferRenderbuffer")) == NULL) || r;
  3892. r = ((glFramebufferTexture1D = (PFNGLFRAMEBUFFERTEXTURE1DPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture1D")) == NULL) || r;
  3893. r = ((glFramebufferTexture2D = (PFNGLFRAMEBUFFERTEXTURE2DPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture2D")) == NULL) || r;
  3894. r = ((glFramebufferTexture3D = (PFNGLFRAMEBUFFERTEXTURE3DPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture3D")) == NULL) || r;
  3895. r = ((glFramebufferTextureLayer = (PFNGLFRAMEBUFFERTEXTURELAYERPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureLayer")) == NULL) || r;
  3896. r = ((glGenFramebuffers = (PFNGLGENFRAMEBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glGenFramebuffers")) == NULL) || r;
  3897. r = ((glGenRenderbuffers = (PFNGLGENRENDERBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glGenRenderbuffers")) == NULL) || r;
  3898. r = ((glGenerateMipmap = (PFNGLGENERATEMIPMAPPROC)glewGetProcAddress((const GLubyte*)"glGenerateMipmap")) == NULL) || r;
  3899. r = ((glGetFramebufferAttachmentParameteriv = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetFramebufferAttachmentParameteriv")) == NULL) || r;
  3900. r = ((glGetRenderbufferParameteriv = (PFNGLGETRENDERBUFFERPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetRenderbufferParameteriv")) == NULL) || r;
  3901. r = ((glIsFramebuffer = (PFNGLISFRAMEBUFFERPROC)glewGetProcAddress((const GLubyte*)"glIsFramebuffer")) == NULL) || r;
  3902. r = ((glIsRenderbuffer = (PFNGLISRENDERBUFFERPROC)glewGetProcAddress((const GLubyte*)"glIsRenderbuffer")) == NULL) || r;
  3903. r = ((glRenderbufferStorage = (PFNGLRENDERBUFFERSTORAGEPROC)glewGetProcAddress((const GLubyte*)"glRenderbufferStorage")) == NULL) || r;
  3904. r = ((glRenderbufferStorageMultisample = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEPROC)glewGetProcAddress((const GLubyte*)"glRenderbufferStorageMultisample")) == NULL) || r;
  3905. return r;
  3906. }
  3907. #endif /* GL_ARB_framebuffer_object */
  3908. #ifdef GL_ARB_framebuffer_sRGB
  3909. #endif /* GL_ARB_framebuffer_sRGB */
  3910. #ifdef GL_ARB_geometry_shader4
  3911. static GLboolean _glewInit_GL_ARB_geometry_shader4 (GLEW_CONTEXT_ARG_DEF_INIT)
  3912. {
  3913. GLboolean r = GL_FALSE;
  3914. r = ((glFramebufferTextureARB = (PFNGLFRAMEBUFFERTEXTUREARBPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureARB")) == NULL) || r;
  3915. r = ((glFramebufferTextureFaceARB = (PFNGLFRAMEBUFFERTEXTUREFACEARBPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureFaceARB")) == NULL) || r;
  3916. r = ((glFramebufferTextureLayerARB = (PFNGLFRAMEBUFFERTEXTURELAYERARBPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureLayerARB")) == NULL) || r;
  3917. r = ((glProgramParameteriARB = (PFNGLPROGRAMPARAMETERIARBPROC)glewGetProcAddress((const GLubyte*)"glProgramParameteriARB")) == NULL) || r;
  3918. return r;
  3919. }
  3920. #endif /* GL_ARB_geometry_shader4 */
  3921. #ifdef GL_ARB_get_program_binary
  3922. static GLboolean _glewInit_GL_ARB_get_program_binary (GLEW_CONTEXT_ARG_DEF_INIT)
  3923. {
  3924. GLboolean r = GL_FALSE;
  3925. r = ((glGetProgramBinary = (PFNGLGETPROGRAMBINARYPROC)glewGetProcAddress((const GLubyte*)"glGetProgramBinary")) == NULL) || r;
  3926. r = ((glProgramBinary = (PFNGLPROGRAMBINARYPROC)glewGetProcAddress((const GLubyte*)"glProgramBinary")) == NULL) || r;
  3927. r = ((glProgramParameteri = (PFNGLPROGRAMPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glProgramParameteri")) == NULL) || r;
  3928. return r;
  3929. }
  3930. #endif /* GL_ARB_get_program_binary */
  3931. #ifdef GL_ARB_gpu_shader5
  3932. #endif /* GL_ARB_gpu_shader5 */
  3933. #ifdef GL_ARB_gpu_shader_fp64
  3934. static GLboolean _glewInit_GL_ARB_gpu_shader_fp64 (GLEW_CONTEXT_ARG_DEF_INIT)
  3935. {
  3936. GLboolean r = GL_FALSE;
  3937. r = ((glGetUniformdv = (PFNGLGETUNIFORMDVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformdv")) == NULL) || r;
  3938. r = ((glUniform1d = (PFNGLUNIFORM1DPROC)glewGetProcAddress((const GLubyte*)"glUniform1d")) == NULL) || r;
  3939. r = ((glUniform1dv = (PFNGLUNIFORM1DVPROC)glewGetProcAddress((const GLubyte*)"glUniform1dv")) == NULL) || r;
  3940. r = ((glUniform2d = (PFNGLUNIFORM2DPROC)glewGetProcAddress((const GLubyte*)"glUniform2d")) == NULL) || r;
  3941. r = ((glUniform2dv = (PFNGLUNIFORM2DVPROC)glewGetProcAddress((const GLubyte*)"glUniform2dv")) == NULL) || r;
  3942. r = ((glUniform3d = (PFNGLUNIFORM3DPROC)glewGetProcAddress((const GLubyte*)"glUniform3d")) == NULL) || r;
  3943. r = ((glUniform3dv = (PFNGLUNIFORM3DVPROC)glewGetProcAddress((const GLubyte*)"glUniform3dv")) == NULL) || r;
  3944. r = ((glUniform4d = (PFNGLUNIFORM4DPROC)glewGetProcAddress((const GLubyte*)"glUniform4d")) == NULL) || r;
  3945. r = ((glUniform4dv = (PFNGLUNIFORM4DVPROC)glewGetProcAddress((const GLubyte*)"glUniform4dv")) == NULL) || r;
  3946. r = ((glUniformMatrix2dv = (PFNGLUNIFORMMATRIX2DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2dv")) == NULL) || r;
  3947. r = ((glUniformMatrix2x3dv = (PFNGLUNIFORMMATRIX2X3DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2x3dv")) == NULL) || r;
  3948. r = ((glUniformMatrix2x4dv = (PFNGLUNIFORMMATRIX2X4DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2x4dv")) == NULL) || r;
  3949. r = ((glUniformMatrix3dv = (PFNGLUNIFORMMATRIX3DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3dv")) == NULL) || r;
  3950. r = ((glUniformMatrix3x2dv = (PFNGLUNIFORMMATRIX3X2DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3x2dv")) == NULL) || r;
  3951. r = ((glUniformMatrix3x4dv = (PFNGLUNIFORMMATRIX3X4DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3x4dv")) == NULL) || r;
  3952. r = ((glUniformMatrix4dv = (PFNGLUNIFORMMATRIX4DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4dv")) == NULL) || r;
  3953. r = ((glUniformMatrix4x2dv = (PFNGLUNIFORMMATRIX4X2DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4x2dv")) == NULL) || r;
  3954. r = ((glUniformMatrix4x3dv = (PFNGLUNIFORMMATRIX4X3DVPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4x3dv")) == NULL) || r;
  3955. return r;
  3956. }
  3957. #endif /* GL_ARB_gpu_shader_fp64 */
  3958. #ifdef GL_ARB_half_float_pixel
  3959. #endif /* GL_ARB_half_float_pixel */
  3960. #ifdef GL_ARB_half_float_vertex
  3961. #endif /* GL_ARB_half_float_vertex */
  3962. #ifdef GL_ARB_imaging
  3963. static GLboolean _glewInit_GL_ARB_imaging (GLEW_CONTEXT_ARG_DEF_INIT)
  3964. {
  3965. GLboolean r = GL_FALSE;
  3966. r = ((glBlendEquation = (PFNGLBLENDEQUATIONPROC)glewGetProcAddress((const GLubyte*)"glBlendEquation")) == NULL) || r;
  3967. r = ((glColorSubTable = (PFNGLCOLORSUBTABLEPROC)glewGetProcAddress((const GLubyte*)"glColorSubTable")) == NULL) || r;
  3968. r = ((glColorTable = (PFNGLCOLORTABLEPROC)glewGetProcAddress((const GLubyte*)"glColorTable")) == NULL) || r;
  3969. r = ((glColorTableParameterfv = (PFNGLCOLORTABLEPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glColorTableParameterfv")) == NULL) || r;
  3970. r = ((glColorTableParameteriv = (PFNGLCOLORTABLEPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glColorTableParameteriv")) == NULL) || r;
  3971. r = ((glConvolutionFilter1D = (PFNGLCONVOLUTIONFILTER1DPROC)glewGetProcAddress((const GLubyte*)"glConvolutionFilter1D")) == NULL) || r;
  3972. r = ((glConvolutionFilter2D = (PFNGLCONVOLUTIONFILTER2DPROC)glewGetProcAddress((const GLubyte*)"glConvolutionFilter2D")) == NULL) || r;
  3973. r = ((glConvolutionParameterf = (PFNGLCONVOLUTIONPARAMETERFPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameterf")) == NULL) || r;
  3974. r = ((glConvolutionParameterfv = (PFNGLCONVOLUTIONPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameterfv")) == NULL) || r;
  3975. r = ((glConvolutionParameteri = (PFNGLCONVOLUTIONPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameteri")) == NULL) || r;
  3976. r = ((glConvolutionParameteriv = (PFNGLCONVOLUTIONPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameteriv")) == NULL) || r;
  3977. r = ((glCopyColorSubTable = (PFNGLCOPYCOLORSUBTABLEPROC)glewGetProcAddress((const GLubyte*)"glCopyColorSubTable")) == NULL) || r;
  3978. r = ((glCopyColorTable = (PFNGLCOPYCOLORTABLEPROC)glewGetProcAddress((const GLubyte*)"glCopyColorTable")) == NULL) || r;
  3979. r = ((glCopyConvolutionFilter1D = (PFNGLCOPYCONVOLUTIONFILTER1DPROC)glewGetProcAddress((const GLubyte*)"glCopyConvolutionFilter1D")) == NULL) || r;
  3980. r = ((glCopyConvolutionFilter2D = (PFNGLCOPYCONVOLUTIONFILTER2DPROC)glewGetProcAddress((const GLubyte*)"glCopyConvolutionFilter2D")) == NULL) || r;
  3981. r = ((glGetColorTable = (PFNGLGETCOLORTABLEPROC)glewGetProcAddress((const GLubyte*)"glGetColorTable")) == NULL) || r;
  3982. r = ((glGetColorTableParameterfv = (PFNGLGETCOLORTABLEPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableParameterfv")) == NULL) || r;
  3983. r = ((glGetColorTableParameteriv = (PFNGLGETCOLORTABLEPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableParameteriv")) == NULL) || r;
  3984. r = ((glGetConvolutionFilter = (PFNGLGETCONVOLUTIONFILTERPROC)glewGetProcAddress((const GLubyte*)"glGetConvolutionFilter")) == NULL) || r;
  3985. r = ((glGetConvolutionParameterfv = (PFNGLGETCONVOLUTIONPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetConvolutionParameterfv")) == NULL) || r;
  3986. r = ((glGetConvolutionParameteriv = (PFNGLGETCONVOLUTIONPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetConvolutionParameteriv")) == NULL) || r;
  3987. r = ((glGetHistogram = (PFNGLGETHISTOGRAMPROC)glewGetProcAddress((const GLubyte*)"glGetHistogram")) == NULL) || r;
  3988. r = ((glGetHistogramParameterfv = (PFNGLGETHISTOGRAMPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetHistogramParameterfv")) == NULL) || r;
  3989. r = ((glGetHistogramParameteriv = (PFNGLGETHISTOGRAMPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetHistogramParameteriv")) == NULL) || r;
  3990. r = ((glGetMinmax = (PFNGLGETMINMAXPROC)glewGetProcAddress((const GLubyte*)"glGetMinmax")) == NULL) || r;
  3991. r = ((glGetMinmaxParameterfv = (PFNGLGETMINMAXPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetMinmaxParameterfv")) == NULL) || r;
  3992. r = ((glGetMinmaxParameteriv = (PFNGLGETMINMAXPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetMinmaxParameteriv")) == NULL) || r;
  3993. r = ((glGetSeparableFilter = (PFNGLGETSEPARABLEFILTERPROC)glewGetProcAddress((const GLubyte*)"glGetSeparableFilter")) == NULL) || r;
  3994. r = ((glHistogram = (PFNGLHISTOGRAMPROC)glewGetProcAddress((const GLubyte*)"glHistogram")) == NULL) || r;
  3995. r = ((glMinmax = (PFNGLMINMAXPROC)glewGetProcAddress((const GLubyte*)"glMinmax")) == NULL) || r;
  3996. r = ((glResetHistogram = (PFNGLRESETHISTOGRAMPROC)glewGetProcAddress((const GLubyte*)"glResetHistogram")) == NULL) || r;
  3997. r = ((glResetMinmax = (PFNGLRESETMINMAXPROC)glewGetProcAddress((const GLubyte*)"glResetMinmax")) == NULL) || r;
  3998. r = ((glSeparableFilter2D = (PFNGLSEPARABLEFILTER2DPROC)glewGetProcAddress((const GLubyte*)"glSeparableFilter2D")) == NULL) || r;
  3999. return r;
  4000. }
  4001. #endif /* GL_ARB_imaging */
  4002. #ifdef GL_ARB_indirect_parameters
  4003. static GLboolean _glewInit_GL_ARB_indirect_parameters (GLEW_CONTEXT_ARG_DEF_INIT)
  4004. {
  4005. GLboolean r = GL_FALSE;
  4006. r = ((glMultiDrawArraysIndirectCountARB = (PFNGLMULTIDRAWARRAYSINDIRECTCOUNTARBPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArraysIndirectCountARB")) == NULL) || r;
  4007. r = ((glMultiDrawElementsIndirectCountARB = (PFNGLMULTIDRAWELEMENTSINDIRECTCOUNTARBPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementsIndirectCountARB")) == NULL) || r;
  4008. return r;
  4009. }
  4010. #endif /* GL_ARB_indirect_parameters */
  4011. #ifdef GL_ARB_instanced_arrays
  4012. static GLboolean _glewInit_GL_ARB_instanced_arrays (GLEW_CONTEXT_ARG_DEF_INIT)
  4013. {
  4014. GLboolean r = GL_FALSE;
  4015. r = ((glDrawArraysInstancedARB = (PFNGLDRAWARRAYSINSTANCEDARBPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysInstancedARB")) == NULL) || r;
  4016. r = ((glDrawElementsInstancedARB = (PFNGLDRAWELEMENTSINSTANCEDARBPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstancedARB")) == NULL) || r;
  4017. r = ((glVertexAttribDivisorARB = (PFNGLVERTEXATTRIBDIVISORARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribDivisorARB")) == NULL) || r;
  4018. return r;
  4019. }
  4020. #endif /* GL_ARB_instanced_arrays */
  4021. #ifdef GL_ARB_internalformat_query
  4022. static GLboolean _glewInit_GL_ARB_internalformat_query (GLEW_CONTEXT_ARG_DEF_INIT)
  4023. {
  4024. GLboolean r = GL_FALSE;
  4025. r = ((glGetInternalformativ = (PFNGLGETINTERNALFORMATIVPROC)glewGetProcAddress((const GLubyte*)"glGetInternalformativ")) == NULL) || r;
  4026. return r;
  4027. }
  4028. #endif /* GL_ARB_internalformat_query */
  4029. #ifdef GL_ARB_internalformat_query2
  4030. static GLboolean _glewInit_GL_ARB_internalformat_query2 (GLEW_CONTEXT_ARG_DEF_INIT)
  4031. {
  4032. GLboolean r = GL_FALSE;
  4033. r = ((glGetInternalformati64v = (PFNGLGETINTERNALFORMATI64VPROC)glewGetProcAddress((const GLubyte*)"glGetInternalformati64v")) == NULL) || r;
  4034. return r;
  4035. }
  4036. #endif /* GL_ARB_internalformat_query2 */
  4037. #ifdef GL_ARB_invalidate_subdata
  4038. static GLboolean _glewInit_GL_ARB_invalidate_subdata (GLEW_CONTEXT_ARG_DEF_INIT)
  4039. {
  4040. GLboolean r = GL_FALSE;
  4041. r = ((glInvalidateBufferData = (PFNGLINVALIDATEBUFFERDATAPROC)glewGetProcAddress((const GLubyte*)"glInvalidateBufferData")) == NULL) || r;
  4042. r = ((glInvalidateBufferSubData = (PFNGLINVALIDATEBUFFERSUBDATAPROC)glewGetProcAddress((const GLubyte*)"glInvalidateBufferSubData")) == NULL) || r;
  4043. r = ((glInvalidateFramebuffer = (PFNGLINVALIDATEFRAMEBUFFERPROC)glewGetProcAddress((const GLubyte*)"glInvalidateFramebuffer")) == NULL) || r;
  4044. r = ((glInvalidateSubFramebuffer = (PFNGLINVALIDATESUBFRAMEBUFFERPROC)glewGetProcAddress((const GLubyte*)"glInvalidateSubFramebuffer")) == NULL) || r;
  4045. r = ((glInvalidateTexImage = (PFNGLINVALIDATETEXIMAGEPROC)glewGetProcAddress((const GLubyte*)"glInvalidateTexImage")) == NULL) || r;
  4046. r = ((glInvalidateTexSubImage = (PFNGLINVALIDATETEXSUBIMAGEPROC)glewGetProcAddress((const GLubyte*)"glInvalidateTexSubImage")) == NULL) || r;
  4047. return r;
  4048. }
  4049. #endif /* GL_ARB_invalidate_subdata */
  4050. #ifdef GL_ARB_map_buffer_alignment
  4051. #endif /* GL_ARB_map_buffer_alignment */
  4052. #ifdef GL_ARB_map_buffer_range
  4053. static GLboolean _glewInit_GL_ARB_map_buffer_range (GLEW_CONTEXT_ARG_DEF_INIT)
  4054. {
  4055. GLboolean r = GL_FALSE;
  4056. r = ((glFlushMappedBufferRange = (PFNGLFLUSHMAPPEDBUFFERRANGEPROC)glewGetProcAddress((const GLubyte*)"glFlushMappedBufferRange")) == NULL) || r;
  4057. r = ((glMapBufferRange = (PFNGLMAPBUFFERRANGEPROC)glewGetProcAddress((const GLubyte*)"glMapBufferRange")) == NULL) || r;
  4058. return r;
  4059. }
  4060. #endif /* GL_ARB_map_buffer_range */
  4061. #ifdef GL_ARB_matrix_palette
  4062. static GLboolean _glewInit_GL_ARB_matrix_palette (GLEW_CONTEXT_ARG_DEF_INIT)
  4063. {
  4064. GLboolean r = GL_FALSE;
  4065. r = ((glCurrentPaletteMatrixARB = (PFNGLCURRENTPALETTEMATRIXARBPROC)glewGetProcAddress((const GLubyte*)"glCurrentPaletteMatrixARB")) == NULL) || r;
  4066. r = ((glMatrixIndexPointerARB = (PFNGLMATRIXINDEXPOINTERARBPROC)glewGetProcAddress((const GLubyte*)"glMatrixIndexPointerARB")) == NULL) || r;
  4067. r = ((glMatrixIndexubvARB = (PFNGLMATRIXINDEXUBVARBPROC)glewGetProcAddress((const GLubyte*)"glMatrixIndexubvARB")) == NULL) || r;
  4068. r = ((glMatrixIndexuivARB = (PFNGLMATRIXINDEXUIVARBPROC)glewGetProcAddress((const GLubyte*)"glMatrixIndexuivARB")) == NULL) || r;
  4069. r = ((glMatrixIndexusvARB = (PFNGLMATRIXINDEXUSVARBPROC)glewGetProcAddress((const GLubyte*)"glMatrixIndexusvARB")) == NULL) || r;
  4070. return r;
  4071. }
  4072. #endif /* GL_ARB_matrix_palette */
  4073. #ifdef GL_ARB_multi_bind
  4074. static GLboolean _glewInit_GL_ARB_multi_bind (GLEW_CONTEXT_ARG_DEF_INIT)
  4075. {
  4076. GLboolean r = GL_FALSE;
  4077. r = ((glBindBuffersBase = (PFNGLBINDBUFFERSBASEPROC)glewGetProcAddress((const GLubyte*)"glBindBuffersBase")) == NULL) || r;
  4078. r = ((glBindBuffersRange = (PFNGLBINDBUFFERSRANGEPROC)glewGetProcAddress((const GLubyte*)"glBindBuffersRange")) == NULL) || r;
  4079. r = ((glBindImageTextures = (PFNGLBINDIMAGETEXTURESPROC)glewGetProcAddress((const GLubyte*)"glBindImageTextures")) == NULL) || r;
  4080. r = ((glBindSamplers = (PFNGLBINDSAMPLERSPROC)glewGetProcAddress((const GLubyte*)"glBindSamplers")) == NULL) || r;
  4081. r = ((glBindTextures = (PFNGLBINDTEXTURESPROC)glewGetProcAddress((const GLubyte*)"glBindTextures")) == NULL) || r;
  4082. r = ((glBindVertexBuffers = (PFNGLBINDVERTEXBUFFERSPROC)glewGetProcAddress((const GLubyte*)"glBindVertexBuffers")) == NULL) || r;
  4083. return r;
  4084. }
  4085. #endif /* GL_ARB_multi_bind */
  4086. #ifdef GL_ARB_multi_draw_indirect
  4087. static GLboolean _glewInit_GL_ARB_multi_draw_indirect (GLEW_CONTEXT_ARG_DEF_INIT)
  4088. {
  4089. GLboolean r = GL_FALSE;
  4090. r = ((glMultiDrawArraysIndirect = (PFNGLMULTIDRAWARRAYSINDIRECTPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArraysIndirect")) == NULL) || r;
  4091. r = ((glMultiDrawElementsIndirect = (PFNGLMULTIDRAWELEMENTSINDIRECTPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementsIndirect")) == NULL) || r;
  4092. return r;
  4093. }
  4094. #endif /* GL_ARB_multi_draw_indirect */
  4095. #ifdef GL_ARB_multisample
  4096. static GLboolean _glewInit_GL_ARB_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  4097. {
  4098. GLboolean r = GL_FALSE;
  4099. r = ((glSampleCoverageARB = (PFNGLSAMPLECOVERAGEARBPROC)glewGetProcAddress((const GLubyte*)"glSampleCoverageARB")) == NULL) || r;
  4100. return r;
  4101. }
  4102. #endif /* GL_ARB_multisample */
  4103. #ifdef GL_ARB_multitexture
  4104. static GLboolean _glewInit_GL_ARB_multitexture (GLEW_CONTEXT_ARG_DEF_INIT)
  4105. {
  4106. GLboolean r = GL_FALSE;
  4107. r = ((glActiveTextureARB = (PFNGLACTIVETEXTUREARBPROC)glewGetProcAddress((const GLubyte*)"glActiveTextureARB")) == NULL) || r;
  4108. r = ((glClientActiveTextureARB = (PFNGLCLIENTACTIVETEXTUREARBPROC)glewGetProcAddress((const GLubyte*)"glClientActiveTextureARB")) == NULL) || r;
  4109. r = ((glMultiTexCoord1dARB = (PFNGLMULTITEXCOORD1DARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1dARB")) == NULL) || r;
  4110. r = ((glMultiTexCoord1dvARB = (PFNGLMULTITEXCOORD1DVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1dvARB")) == NULL) || r;
  4111. r = ((glMultiTexCoord1fARB = (PFNGLMULTITEXCOORD1FARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1fARB")) == NULL) || r;
  4112. r = ((glMultiTexCoord1fvARB = (PFNGLMULTITEXCOORD1FVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1fvARB")) == NULL) || r;
  4113. r = ((glMultiTexCoord1iARB = (PFNGLMULTITEXCOORD1IARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1iARB")) == NULL) || r;
  4114. r = ((glMultiTexCoord1ivARB = (PFNGLMULTITEXCOORD1IVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1ivARB")) == NULL) || r;
  4115. r = ((glMultiTexCoord1sARB = (PFNGLMULTITEXCOORD1SARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1sARB")) == NULL) || r;
  4116. r = ((glMultiTexCoord1svARB = (PFNGLMULTITEXCOORD1SVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1svARB")) == NULL) || r;
  4117. r = ((glMultiTexCoord2dARB = (PFNGLMULTITEXCOORD2DARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2dARB")) == NULL) || r;
  4118. r = ((glMultiTexCoord2dvARB = (PFNGLMULTITEXCOORD2DVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2dvARB")) == NULL) || r;
  4119. r = ((glMultiTexCoord2fARB = (PFNGLMULTITEXCOORD2FARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2fARB")) == NULL) || r;
  4120. r = ((glMultiTexCoord2fvARB = (PFNGLMULTITEXCOORD2FVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2fvARB")) == NULL) || r;
  4121. r = ((glMultiTexCoord2iARB = (PFNGLMULTITEXCOORD2IARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2iARB")) == NULL) || r;
  4122. r = ((glMultiTexCoord2ivARB = (PFNGLMULTITEXCOORD2IVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2ivARB")) == NULL) || r;
  4123. r = ((glMultiTexCoord2sARB = (PFNGLMULTITEXCOORD2SARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2sARB")) == NULL) || r;
  4124. r = ((glMultiTexCoord2svARB = (PFNGLMULTITEXCOORD2SVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2svARB")) == NULL) || r;
  4125. r = ((glMultiTexCoord3dARB = (PFNGLMULTITEXCOORD3DARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3dARB")) == NULL) || r;
  4126. r = ((glMultiTexCoord3dvARB = (PFNGLMULTITEXCOORD3DVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3dvARB")) == NULL) || r;
  4127. r = ((glMultiTexCoord3fARB = (PFNGLMULTITEXCOORD3FARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3fARB")) == NULL) || r;
  4128. r = ((glMultiTexCoord3fvARB = (PFNGLMULTITEXCOORD3FVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3fvARB")) == NULL) || r;
  4129. r = ((glMultiTexCoord3iARB = (PFNGLMULTITEXCOORD3IARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3iARB")) == NULL) || r;
  4130. r = ((glMultiTexCoord3ivARB = (PFNGLMULTITEXCOORD3IVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3ivARB")) == NULL) || r;
  4131. r = ((glMultiTexCoord3sARB = (PFNGLMULTITEXCOORD3SARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3sARB")) == NULL) || r;
  4132. r = ((glMultiTexCoord3svARB = (PFNGLMULTITEXCOORD3SVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3svARB")) == NULL) || r;
  4133. r = ((glMultiTexCoord4dARB = (PFNGLMULTITEXCOORD4DARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4dARB")) == NULL) || r;
  4134. r = ((glMultiTexCoord4dvARB = (PFNGLMULTITEXCOORD4DVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4dvARB")) == NULL) || r;
  4135. r = ((glMultiTexCoord4fARB = (PFNGLMULTITEXCOORD4FARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4fARB")) == NULL) || r;
  4136. r = ((glMultiTexCoord4fvARB = (PFNGLMULTITEXCOORD4FVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4fvARB")) == NULL) || r;
  4137. r = ((glMultiTexCoord4iARB = (PFNGLMULTITEXCOORD4IARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4iARB")) == NULL) || r;
  4138. r = ((glMultiTexCoord4ivARB = (PFNGLMULTITEXCOORD4IVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4ivARB")) == NULL) || r;
  4139. r = ((glMultiTexCoord4sARB = (PFNGLMULTITEXCOORD4SARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4sARB")) == NULL) || r;
  4140. r = ((glMultiTexCoord4svARB = (PFNGLMULTITEXCOORD4SVARBPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4svARB")) == NULL) || r;
  4141. return r;
  4142. }
  4143. #endif /* GL_ARB_multitexture */
  4144. #ifdef GL_ARB_occlusion_query
  4145. static GLboolean _glewInit_GL_ARB_occlusion_query (GLEW_CONTEXT_ARG_DEF_INIT)
  4146. {
  4147. GLboolean r = GL_FALSE;
  4148. r = ((glBeginQueryARB = (PFNGLBEGINQUERYARBPROC)glewGetProcAddress((const GLubyte*)"glBeginQueryARB")) == NULL) || r;
  4149. r = ((glDeleteQueriesARB = (PFNGLDELETEQUERIESARBPROC)glewGetProcAddress((const GLubyte*)"glDeleteQueriesARB")) == NULL) || r;
  4150. r = ((glEndQueryARB = (PFNGLENDQUERYARBPROC)glewGetProcAddress((const GLubyte*)"glEndQueryARB")) == NULL) || r;
  4151. r = ((glGenQueriesARB = (PFNGLGENQUERIESARBPROC)glewGetProcAddress((const GLubyte*)"glGenQueriesARB")) == NULL) || r;
  4152. r = ((glGetQueryObjectivARB = (PFNGLGETQUERYOBJECTIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectivARB")) == NULL) || r;
  4153. r = ((glGetQueryObjectuivARB = (PFNGLGETQUERYOBJECTUIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectuivARB")) == NULL) || r;
  4154. r = ((glGetQueryivARB = (PFNGLGETQUERYIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetQueryivARB")) == NULL) || r;
  4155. r = ((glIsQueryARB = (PFNGLISQUERYARBPROC)glewGetProcAddress((const GLubyte*)"glIsQueryARB")) == NULL) || r;
  4156. return r;
  4157. }
  4158. #endif /* GL_ARB_occlusion_query */
  4159. #ifdef GL_ARB_occlusion_query2
  4160. #endif /* GL_ARB_occlusion_query2 */
  4161. #ifdef GL_ARB_pixel_buffer_object
  4162. #endif /* GL_ARB_pixel_buffer_object */
  4163. #ifdef GL_ARB_point_parameters
  4164. static GLboolean _glewInit_GL_ARB_point_parameters (GLEW_CONTEXT_ARG_DEF_INIT)
  4165. {
  4166. GLboolean r = GL_FALSE;
  4167. r = ((glPointParameterfARB = (PFNGLPOINTPARAMETERFARBPROC)glewGetProcAddress((const GLubyte*)"glPointParameterfARB")) == NULL) || r;
  4168. r = ((glPointParameterfvARB = (PFNGLPOINTPARAMETERFVARBPROC)glewGetProcAddress((const GLubyte*)"glPointParameterfvARB")) == NULL) || r;
  4169. return r;
  4170. }
  4171. #endif /* GL_ARB_point_parameters */
  4172. #ifdef GL_ARB_point_sprite
  4173. #endif /* GL_ARB_point_sprite */
  4174. #ifdef GL_ARB_program_interface_query
  4175. static GLboolean _glewInit_GL_ARB_program_interface_query (GLEW_CONTEXT_ARG_DEF_INIT)
  4176. {
  4177. GLboolean r = GL_FALSE;
  4178. r = ((glGetProgramInterfaceiv = (PFNGLGETPROGRAMINTERFACEIVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramInterfaceiv")) == NULL) || r;
  4179. r = ((glGetProgramResourceIndex = (PFNGLGETPROGRAMRESOURCEINDEXPROC)glewGetProcAddress((const GLubyte*)"glGetProgramResourceIndex")) == NULL) || r;
  4180. r = ((glGetProgramResourceLocation = (PFNGLGETPROGRAMRESOURCELOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetProgramResourceLocation")) == NULL) || r;
  4181. r = ((glGetProgramResourceLocationIndex = (PFNGLGETPROGRAMRESOURCELOCATIONINDEXPROC)glewGetProcAddress((const GLubyte*)"glGetProgramResourceLocationIndex")) == NULL) || r;
  4182. r = ((glGetProgramResourceName = (PFNGLGETPROGRAMRESOURCENAMEPROC)glewGetProcAddress((const GLubyte*)"glGetProgramResourceName")) == NULL) || r;
  4183. r = ((glGetProgramResourceiv = (PFNGLGETPROGRAMRESOURCEIVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramResourceiv")) == NULL) || r;
  4184. return r;
  4185. }
  4186. #endif /* GL_ARB_program_interface_query */
  4187. #ifdef GL_ARB_provoking_vertex
  4188. static GLboolean _glewInit_GL_ARB_provoking_vertex (GLEW_CONTEXT_ARG_DEF_INIT)
  4189. {
  4190. GLboolean r = GL_FALSE;
  4191. r = ((glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)glewGetProcAddress((const GLubyte*)"glProvokingVertex")) == NULL) || r;
  4192. return r;
  4193. }
  4194. #endif /* GL_ARB_provoking_vertex */
  4195. #ifdef GL_ARB_query_buffer_object
  4196. #endif /* GL_ARB_query_buffer_object */
  4197. #ifdef GL_ARB_robust_buffer_access_behavior
  4198. #endif /* GL_ARB_robust_buffer_access_behavior */
  4199. #ifdef GL_ARB_robustness
  4200. static GLboolean _glewInit_GL_ARB_robustness (GLEW_CONTEXT_ARG_DEF_INIT)
  4201. {
  4202. GLboolean r = GL_FALSE;
  4203. r = ((glGetGraphicsResetStatusARB = (PFNGLGETGRAPHICSRESETSTATUSARBPROC)glewGetProcAddress((const GLubyte*)"glGetGraphicsResetStatusARB")) == NULL) || r;
  4204. r = ((glGetnColorTableARB = (PFNGLGETNCOLORTABLEARBPROC)glewGetProcAddress((const GLubyte*)"glGetnColorTableARB")) == NULL) || r;
  4205. r = ((glGetnCompressedTexImageARB = (PFNGLGETNCOMPRESSEDTEXIMAGEARBPROC)glewGetProcAddress((const GLubyte*)"glGetnCompressedTexImageARB")) == NULL) || r;
  4206. r = ((glGetnConvolutionFilterARB = (PFNGLGETNCONVOLUTIONFILTERARBPROC)glewGetProcAddress((const GLubyte*)"glGetnConvolutionFilterARB")) == NULL) || r;
  4207. r = ((glGetnHistogramARB = (PFNGLGETNHISTOGRAMARBPROC)glewGetProcAddress((const GLubyte*)"glGetnHistogramARB")) == NULL) || r;
  4208. r = ((glGetnMapdvARB = (PFNGLGETNMAPDVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnMapdvARB")) == NULL) || r;
  4209. r = ((glGetnMapfvARB = (PFNGLGETNMAPFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnMapfvARB")) == NULL) || r;
  4210. r = ((glGetnMapivARB = (PFNGLGETNMAPIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnMapivARB")) == NULL) || r;
  4211. r = ((glGetnMinmaxARB = (PFNGLGETNMINMAXARBPROC)glewGetProcAddress((const GLubyte*)"glGetnMinmaxARB")) == NULL) || r;
  4212. r = ((glGetnPixelMapfvARB = (PFNGLGETNPIXELMAPFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnPixelMapfvARB")) == NULL) || r;
  4213. r = ((glGetnPixelMapuivARB = (PFNGLGETNPIXELMAPUIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnPixelMapuivARB")) == NULL) || r;
  4214. r = ((glGetnPixelMapusvARB = (PFNGLGETNPIXELMAPUSVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnPixelMapusvARB")) == NULL) || r;
  4215. r = ((glGetnPolygonStippleARB = (PFNGLGETNPOLYGONSTIPPLEARBPROC)glewGetProcAddress((const GLubyte*)"glGetnPolygonStippleARB")) == NULL) || r;
  4216. r = ((glGetnSeparableFilterARB = (PFNGLGETNSEPARABLEFILTERARBPROC)glewGetProcAddress((const GLubyte*)"glGetnSeparableFilterARB")) == NULL) || r;
  4217. r = ((glGetnTexImageARB = (PFNGLGETNTEXIMAGEARBPROC)glewGetProcAddress((const GLubyte*)"glGetnTexImageARB")) == NULL) || r;
  4218. r = ((glGetnUniformdvARB = (PFNGLGETNUNIFORMDVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnUniformdvARB")) == NULL) || r;
  4219. r = ((glGetnUniformfvARB = (PFNGLGETNUNIFORMFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnUniformfvARB")) == NULL) || r;
  4220. r = ((glGetnUniformivARB = (PFNGLGETNUNIFORMIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnUniformivARB")) == NULL) || r;
  4221. r = ((glGetnUniformuivARB = (PFNGLGETNUNIFORMUIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetnUniformuivARB")) == NULL) || r;
  4222. r = ((glReadnPixelsARB = (PFNGLREADNPIXELSARBPROC)glewGetProcAddress((const GLubyte*)"glReadnPixelsARB")) == NULL) || r;
  4223. return r;
  4224. }
  4225. #endif /* GL_ARB_robustness */
  4226. #ifdef GL_ARB_robustness_application_isolation
  4227. #endif /* GL_ARB_robustness_application_isolation */
  4228. #ifdef GL_ARB_robustness_share_group_isolation
  4229. #endif /* GL_ARB_robustness_share_group_isolation */
  4230. #ifdef GL_ARB_sample_shading
  4231. static GLboolean _glewInit_GL_ARB_sample_shading (GLEW_CONTEXT_ARG_DEF_INIT)
  4232. {
  4233. GLboolean r = GL_FALSE;
  4234. r = ((glMinSampleShadingARB = (PFNGLMINSAMPLESHADINGARBPROC)glewGetProcAddress((const GLubyte*)"glMinSampleShadingARB")) == NULL) || r;
  4235. return r;
  4236. }
  4237. #endif /* GL_ARB_sample_shading */
  4238. #ifdef GL_ARB_sampler_objects
  4239. static GLboolean _glewInit_GL_ARB_sampler_objects (GLEW_CONTEXT_ARG_DEF_INIT)
  4240. {
  4241. GLboolean r = GL_FALSE;
  4242. r = ((glBindSampler = (PFNGLBINDSAMPLERPROC)glewGetProcAddress((const GLubyte*)"glBindSampler")) == NULL) || r;
  4243. r = ((glDeleteSamplers = (PFNGLDELETESAMPLERSPROC)glewGetProcAddress((const GLubyte*)"glDeleteSamplers")) == NULL) || r;
  4244. r = ((glGenSamplers = (PFNGLGENSAMPLERSPROC)glewGetProcAddress((const GLubyte*)"glGenSamplers")) == NULL) || r;
  4245. r = ((glGetSamplerParameterIiv = (PFNGLGETSAMPLERPARAMETERIIVPROC)glewGetProcAddress((const GLubyte*)"glGetSamplerParameterIiv")) == NULL) || r;
  4246. r = ((glGetSamplerParameterIuiv = (PFNGLGETSAMPLERPARAMETERIUIVPROC)glewGetProcAddress((const GLubyte*)"glGetSamplerParameterIuiv")) == NULL) || r;
  4247. r = ((glGetSamplerParameterfv = (PFNGLGETSAMPLERPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glGetSamplerParameterfv")) == NULL) || r;
  4248. r = ((glGetSamplerParameteriv = (PFNGLGETSAMPLERPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glGetSamplerParameteriv")) == NULL) || r;
  4249. r = ((glIsSampler = (PFNGLISSAMPLERPROC)glewGetProcAddress((const GLubyte*)"glIsSampler")) == NULL) || r;
  4250. r = ((glSamplerParameterIiv = (PFNGLSAMPLERPARAMETERIIVPROC)glewGetProcAddress((const GLubyte*)"glSamplerParameterIiv")) == NULL) || r;
  4251. r = ((glSamplerParameterIuiv = (PFNGLSAMPLERPARAMETERIUIVPROC)glewGetProcAddress((const GLubyte*)"glSamplerParameterIuiv")) == NULL) || r;
  4252. r = ((glSamplerParameterf = (PFNGLSAMPLERPARAMETERFPROC)glewGetProcAddress((const GLubyte*)"glSamplerParameterf")) == NULL) || r;
  4253. r = ((glSamplerParameterfv = (PFNGLSAMPLERPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glSamplerParameterfv")) == NULL) || r;
  4254. r = ((glSamplerParameteri = (PFNGLSAMPLERPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glSamplerParameteri")) == NULL) || r;
  4255. r = ((glSamplerParameteriv = (PFNGLSAMPLERPARAMETERIVPROC)glewGetProcAddress((const GLubyte*)"glSamplerParameteriv")) == NULL) || r;
  4256. return r;
  4257. }
  4258. #endif /* GL_ARB_sampler_objects */
  4259. #ifdef GL_ARB_seamless_cube_map
  4260. #endif /* GL_ARB_seamless_cube_map */
  4261. #ifdef GL_ARB_seamless_cubemap_per_texture
  4262. #endif /* GL_ARB_seamless_cubemap_per_texture */
  4263. #ifdef GL_ARB_separate_shader_objects
  4264. static GLboolean _glewInit_GL_ARB_separate_shader_objects (GLEW_CONTEXT_ARG_DEF_INIT)
  4265. {
  4266. GLboolean r = GL_FALSE;
  4267. r = ((glActiveShaderProgram = (PFNGLACTIVESHADERPROGRAMPROC)glewGetProcAddress((const GLubyte*)"glActiveShaderProgram")) == NULL) || r;
  4268. r = ((glBindProgramPipeline = (PFNGLBINDPROGRAMPIPELINEPROC)glewGetProcAddress((const GLubyte*)"glBindProgramPipeline")) == NULL) || r;
  4269. r = ((glCreateShaderProgramv = (PFNGLCREATESHADERPROGRAMVPROC)glewGetProcAddress((const GLubyte*)"glCreateShaderProgramv")) == NULL) || r;
  4270. r = ((glDeleteProgramPipelines = (PFNGLDELETEPROGRAMPIPELINESPROC)glewGetProcAddress((const GLubyte*)"glDeleteProgramPipelines")) == NULL) || r;
  4271. r = ((glGenProgramPipelines = (PFNGLGENPROGRAMPIPELINESPROC)glewGetProcAddress((const GLubyte*)"glGenProgramPipelines")) == NULL) || r;
  4272. r = ((glGetProgramPipelineInfoLog = (PFNGLGETPROGRAMPIPELINEINFOLOGPROC)glewGetProcAddress((const GLubyte*)"glGetProgramPipelineInfoLog")) == NULL) || r;
  4273. r = ((glGetProgramPipelineiv = (PFNGLGETPROGRAMPIPELINEIVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramPipelineiv")) == NULL) || r;
  4274. r = ((glIsProgramPipeline = (PFNGLISPROGRAMPIPELINEPROC)glewGetProcAddress((const GLubyte*)"glIsProgramPipeline")) == NULL) || r;
  4275. r = ((glProgramUniform1d = (PFNGLPROGRAMUNIFORM1DPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1d")) == NULL) || r;
  4276. r = ((glProgramUniform1dv = (PFNGLPROGRAMUNIFORM1DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1dv")) == NULL) || r;
  4277. r = ((glProgramUniform1f = (PFNGLPROGRAMUNIFORM1FPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1f")) == NULL) || r;
  4278. r = ((glProgramUniform1fv = (PFNGLPROGRAMUNIFORM1FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1fv")) == NULL) || r;
  4279. r = ((glProgramUniform1i = (PFNGLPROGRAMUNIFORM1IPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1i")) == NULL) || r;
  4280. r = ((glProgramUniform1iv = (PFNGLPROGRAMUNIFORM1IVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1iv")) == NULL) || r;
  4281. r = ((glProgramUniform1ui = (PFNGLPROGRAMUNIFORM1UIPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1ui")) == NULL) || r;
  4282. r = ((glProgramUniform1uiv = (PFNGLPROGRAMUNIFORM1UIVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1uiv")) == NULL) || r;
  4283. r = ((glProgramUniform2d = (PFNGLPROGRAMUNIFORM2DPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2d")) == NULL) || r;
  4284. r = ((glProgramUniform2dv = (PFNGLPROGRAMUNIFORM2DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2dv")) == NULL) || r;
  4285. r = ((glProgramUniform2f = (PFNGLPROGRAMUNIFORM2FPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2f")) == NULL) || r;
  4286. r = ((glProgramUniform2fv = (PFNGLPROGRAMUNIFORM2FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2fv")) == NULL) || r;
  4287. r = ((glProgramUniform2i = (PFNGLPROGRAMUNIFORM2IPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2i")) == NULL) || r;
  4288. r = ((glProgramUniform2iv = (PFNGLPROGRAMUNIFORM2IVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2iv")) == NULL) || r;
  4289. r = ((glProgramUniform2ui = (PFNGLPROGRAMUNIFORM2UIPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2ui")) == NULL) || r;
  4290. r = ((glProgramUniform2uiv = (PFNGLPROGRAMUNIFORM2UIVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2uiv")) == NULL) || r;
  4291. r = ((glProgramUniform3d = (PFNGLPROGRAMUNIFORM3DPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3d")) == NULL) || r;
  4292. r = ((glProgramUniform3dv = (PFNGLPROGRAMUNIFORM3DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3dv")) == NULL) || r;
  4293. r = ((glProgramUniform3f = (PFNGLPROGRAMUNIFORM3FPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3f")) == NULL) || r;
  4294. r = ((glProgramUniform3fv = (PFNGLPROGRAMUNIFORM3FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3fv")) == NULL) || r;
  4295. r = ((glProgramUniform3i = (PFNGLPROGRAMUNIFORM3IPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3i")) == NULL) || r;
  4296. r = ((glProgramUniform3iv = (PFNGLPROGRAMUNIFORM3IVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3iv")) == NULL) || r;
  4297. r = ((glProgramUniform3ui = (PFNGLPROGRAMUNIFORM3UIPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3ui")) == NULL) || r;
  4298. r = ((glProgramUniform3uiv = (PFNGLPROGRAMUNIFORM3UIVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3uiv")) == NULL) || r;
  4299. r = ((glProgramUniform4d = (PFNGLPROGRAMUNIFORM4DPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4d")) == NULL) || r;
  4300. r = ((glProgramUniform4dv = (PFNGLPROGRAMUNIFORM4DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4dv")) == NULL) || r;
  4301. r = ((glProgramUniform4f = (PFNGLPROGRAMUNIFORM4FPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4f")) == NULL) || r;
  4302. r = ((glProgramUniform4fv = (PFNGLPROGRAMUNIFORM4FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4fv")) == NULL) || r;
  4303. r = ((glProgramUniform4i = (PFNGLPROGRAMUNIFORM4IPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4i")) == NULL) || r;
  4304. r = ((glProgramUniform4iv = (PFNGLPROGRAMUNIFORM4IVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4iv")) == NULL) || r;
  4305. r = ((glProgramUniform4ui = (PFNGLPROGRAMUNIFORM4UIPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4ui")) == NULL) || r;
  4306. r = ((glProgramUniform4uiv = (PFNGLPROGRAMUNIFORM4UIVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4uiv")) == NULL) || r;
  4307. r = ((glProgramUniformMatrix2dv = (PFNGLPROGRAMUNIFORMMATRIX2DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2dv")) == NULL) || r;
  4308. r = ((glProgramUniformMatrix2fv = (PFNGLPROGRAMUNIFORMMATRIX2FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2fv")) == NULL) || r;
  4309. r = ((glProgramUniformMatrix2x3dv = (PFNGLPROGRAMUNIFORMMATRIX2X3DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2x3dv")) == NULL) || r;
  4310. r = ((glProgramUniformMatrix2x3fv = (PFNGLPROGRAMUNIFORMMATRIX2X3FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2x3fv")) == NULL) || r;
  4311. r = ((glProgramUniformMatrix2x4dv = (PFNGLPROGRAMUNIFORMMATRIX2X4DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2x4dv")) == NULL) || r;
  4312. r = ((glProgramUniformMatrix2x4fv = (PFNGLPROGRAMUNIFORMMATRIX2X4FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2x4fv")) == NULL) || r;
  4313. r = ((glProgramUniformMatrix3dv = (PFNGLPROGRAMUNIFORMMATRIX3DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3dv")) == NULL) || r;
  4314. r = ((glProgramUniformMatrix3fv = (PFNGLPROGRAMUNIFORMMATRIX3FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3fv")) == NULL) || r;
  4315. r = ((glProgramUniformMatrix3x2dv = (PFNGLPROGRAMUNIFORMMATRIX3X2DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3x2dv")) == NULL) || r;
  4316. r = ((glProgramUniformMatrix3x2fv = (PFNGLPROGRAMUNIFORMMATRIX3X2FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3x2fv")) == NULL) || r;
  4317. r = ((glProgramUniformMatrix3x4dv = (PFNGLPROGRAMUNIFORMMATRIX3X4DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3x4dv")) == NULL) || r;
  4318. r = ((glProgramUniformMatrix3x4fv = (PFNGLPROGRAMUNIFORMMATRIX3X4FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3x4fv")) == NULL) || r;
  4319. r = ((glProgramUniformMatrix4dv = (PFNGLPROGRAMUNIFORMMATRIX4DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4dv")) == NULL) || r;
  4320. r = ((glProgramUniformMatrix4fv = (PFNGLPROGRAMUNIFORMMATRIX4FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4fv")) == NULL) || r;
  4321. r = ((glProgramUniformMatrix4x2dv = (PFNGLPROGRAMUNIFORMMATRIX4X2DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4x2dv")) == NULL) || r;
  4322. r = ((glProgramUniformMatrix4x2fv = (PFNGLPROGRAMUNIFORMMATRIX4X2FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4x2fv")) == NULL) || r;
  4323. r = ((glProgramUniformMatrix4x3dv = (PFNGLPROGRAMUNIFORMMATRIX4X3DVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4x3dv")) == NULL) || r;
  4324. r = ((glProgramUniformMatrix4x3fv = (PFNGLPROGRAMUNIFORMMATRIX4X3FVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4x3fv")) == NULL) || r;
  4325. r = ((glUseProgramStages = (PFNGLUSEPROGRAMSTAGESPROC)glewGetProcAddress((const GLubyte*)"glUseProgramStages")) == NULL) || r;
  4326. r = ((glValidateProgramPipeline = (PFNGLVALIDATEPROGRAMPIPELINEPROC)glewGetProcAddress((const GLubyte*)"glValidateProgramPipeline")) == NULL) || r;
  4327. return r;
  4328. }
  4329. #endif /* GL_ARB_separate_shader_objects */
  4330. #ifdef GL_ARB_shader_atomic_counters
  4331. static GLboolean _glewInit_GL_ARB_shader_atomic_counters (GLEW_CONTEXT_ARG_DEF_INIT)
  4332. {
  4333. GLboolean r = GL_FALSE;
  4334. r = ((glGetActiveAtomicCounterBufferiv = (PFNGLGETACTIVEATOMICCOUNTERBUFFERIVPROC)glewGetProcAddress((const GLubyte*)"glGetActiveAtomicCounterBufferiv")) == NULL) || r;
  4335. return r;
  4336. }
  4337. #endif /* GL_ARB_shader_atomic_counters */
  4338. #ifdef GL_ARB_shader_bit_encoding
  4339. #endif /* GL_ARB_shader_bit_encoding */
  4340. #ifdef GL_ARB_shader_draw_parameters
  4341. #endif /* GL_ARB_shader_draw_parameters */
  4342. #ifdef GL_ARB_shader_group_vote
  4343. #endif /* GL_ARB_shader_group_vote */
  4344. #ifdef GL_ARB_shader_image_load_store
  4345. static GLboolean _glewInit_GL_ARB_shader_image_load_store (GLEW_CONTEXT_ARG_DEF_INIT)
  4346. {
  4347. GLboolean r = GL_FALSE;
  4348. r = ((glBindImageTexture = (PFNGLBINDIMAGETEXTUREPROC)glewGetProcAddress((const GLubyte*)"glBindImageTexture")) == NULL) || r;
  4349. r = ((glMemoryBarrier = (PFNGLMEMORYBARRIERPROC)glewGetProcAddress((const GLubyte*)"glMemoryBarrier")) == NULL) || r;
  4350. return r;
  4351. }
  4352. #endif /* GL_ARB_shader_image_load_store */
  4353. #ifdef GL_ARB_shader_image_size
  4354. #endif /* GL_ARB_shader_image_size */
  4355. #ifdef GL_ARB_shader_objects
  4356. static GLboolean _glewInit_GL_ARB_shader_objects (GLEW_CONTEXT_ARG_DEF_INIT)
  4357. {
  4358. GLboolean r = GL_FALSE;
  4359. r = ((glAttachObjectARB = (PFNGLATTACHOBJECTARBPROC)glewGetProcAddress((const GLubyte*)"glAttachObjectARB")) == NULL) || r;
  4360. r = ((glCompileShaderARB = (PFNGLCOMPILESHADERARBPROC)glewGetProcAddress((const GLubyte*)"glCompileShaderARB")) == NULL) || r;
  4361. r = ((glCreateProgramObjectARB = (PFNGLCREATEPROGRAMOBJECTARBPROC)glewGetProcAddress((const GLubyte*)"glCreateProgramObjectARB")) == NULL) || r;
  4362. r = ((glCreateShaderObjectARB = (PFNGLCREATESHADEROBJECTARBPROC)glewGetProcAddress((const GLubyte*)"glCreateShaderObjectARB")) == NULL) || r;
  4363. r = ((glDeleteObjectARB = (PFNGLDELETEOBJECTARBPROC)glewGetProcAddress((const GLubyte*)"glDeleteObjectARB")) == NULL) || r;
  4364. r = ((glDetachObjectARB = (PFNGLDETACHOBJECTARBPROC)glewGetProcAddress((const GLubyte*)"glDetachObjectARB")) == NULL) || r;
  4365. r = ((glGetActiveUniformARB = (PFNGLGETACTIVEUNIFORMARBPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniformARB")) == NULL) || r;
  4366. r = ((glGetAttachedObjectsARB = (PFNGLGETATTACHEDOBJECTSARBPROC)glewGetProcAddress((const GLubyte*)"glGetAttachedObjectsARB")) == NULL) || r;
  4367. r = ((glGetHandleARB = (PFNGLGETHANDLEARBPROC)glewGetProcAddress((const GLubyte*)"glGetHandleARB")) == NULL) || r;
  4368. r = ((glGetInfoLogARB = (PFNGLGETINFOLOGARBPROC)glewGetProcAddress((const GLubyte*)"glGetInfoLogARB")) == NULL) || r;
  4369. r = ((glGetObjectParameterfvARB = (PFNGLGETOBJECTPARAMETERFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetObjectParameterfvARB")) == NULL) || r;
  4370. r = ((glGetObjectParameterivARB = (PFNGLGETOBJECTPARAMETERIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetObjectParameterivARB")) == NULL) || r;
  4371. r = ((glGetShaderSourceARB = (PFNGLGETSHADERSOURCEARBPROC)glewGetProcAddress((const GLubyte*)"glGetShaderSourceARB")) == NULL) || r;
  4372. r = ((glGetUniformLocationARB = (PFNGLGETUNIFORMLOCATIONARBPROC)glewGetProcAddress((const GLubyte*)"glGetUniformLocationARB")) == NULL) || r;
  4373. r = ((glGetUniformfvARB = (PFNGLGETUNIFORMFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetUniformfvARB")) == NULL) || r;
  4374. r = ((glGetUniformivARB = (PFNGLGETUNIFORMIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetUniformivARB")) == NULL) || r;
  4375. r = ((glLinkProgramARB = (PFNGLLINKPROGRAMARBPROC)glewGetProcAddress((const GLubyte*)"glLinkProgramARB")) == NULL) || r;
  4376. r = ((glShaderSourceARB = (PFNGLSHADERSOURCEARBPROC)glewGetProcAddress((const GLubyte*)"glShaderSourceARB")) == NULL) || r;
  4377. r = ((glUniform1fARB = (PFNGLUNIFORM1FARBPROC)glewGetProcAddress((const GLubyte*)"glUniform1fARB")) == NULL) || r;
  4378. r = ((glUniform1fvARB = (PFNGLUNIFORM1FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform1fvARB")) == NULL) || r;
  4379. r = ((glUniform1iARB = (PFNGLUNIFORM1IARBPROC)glewGetProcAddress((const GLubyte*)"glUniform1iARB")) == NULL) || r;
  4380. r = ((glUniform1ivARB = (PFNGLUNIFORM1IVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform1ivARB")) == NULL) || r;
  4381. r = ((glUniform2fARB = (PFNGLUNIFORM2FARBPROC)glewGetProcAddress((const GLubyte*)"glUniform2fARB")) == NULL) || r;
  4382. r = ((glUniform2fvARB = (PFNGLUNIFORM2FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform2fvARB")) == NULL) || r;
  4383. r = ((glUniform2iARB = (PFNGLUNIFORM2IARBPROC)glewGetProcAddress((const GLubyte*)"glUniform2iARB")) == NULL) || r;
  4384. r = ((glUniform2ivARB = (PFNGLUNIFORM2IVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform2ivARB")) == NULL) || r;
  4385. r = ((glUniform3fARB = (PFNGLUNIFORM3FARBPROC)glewGetProcAddress((const GLubyte*)"glUniform3fARB")) == NULL) || r;
  4386. r = ((glUniform3fvARB = (PFNGLUNIFORM3FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform3fvARB")) == NULL) || r;
  4387. r = ((glUniform3iARB = (PFNGLUNIFORM3IARBPROC)glewGetProcAddress((const GLubyte*)"glUniform3iARB")) == NULL) || r;
  4388. r = ((glUniform3ivARB = (PFNGLUNIFORM3IVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform3ivARB")) == NULL) || r;
  4389. r = ((glUniform4fARB = (PFNGLUNIFORM4FARBPROC)glewGetProcAddress((const GLubyte*)"glUniform4fARB")) == NULL) || r;
  4390. r = ((glUniform4fvARB = (PFNGLUNIFORM4FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform4fvARB")) == NULL) || r;
  4391. r = ((glUniform4iARB = (PFNGLUNIFORM4IARBPROC)glewGetProcAddress((const GLubyte*)"glUniform4iARB")) == NULL) || r;
  4392. r = ((glUniform4ivARB = (PFNGLUNIFORM4IVARBPROC)glewGetProcAddress((const GLubyte*)"glUniform4ivARB")) == NULL) || r;
  4393. r = ((glUniformMatrix2fvARB = (PFNGLUNIFORMMATRIX2FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix2fvARB")) == NULL) || r;
  4394. r = ((glUniformMatrix3fvARB = (PFNGLUNIFORMMATRIX3FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix3fvARB")) == NULL) || r;
  4395. r = ((glUniformMatrix4fvARB = (PFNGLUNIFORMMATRIX4FVARBPROC)glewGetProcAddress((const GLubyte*)"glUniformMatrix4fvARB")) == NULL) || r;
  4396. r = ((glUseProgramObjectARB = (PFNGLUSEPROGRAMOBJECTARBPROC)glewGetProcAddress((const GLubyte*)"glUseProgramObjectARB")) == NULL) || r;
  4397. r = ((glValidateProgramARB = (PFNGLVALIDATEPROGRAMARBPROC)glewGetProcAddress((const GLubyte*)"glValidateProgramARB")) == NULL) || r;
  4398. return r;
  4399. }
  4400. #endif /* GL_ARB_shader_objects */
  4401. #ifdef GL_ARB_shader_precision
  4402. #endif /* GL_ARB_shader_precision */
  4403. #ifdef GL_ARB_shader_stencil_export
  4404. #endif /* GL_ARB_shader_stencil_export */
  4405. #ifdef GL_ARB_shader_storage_buffer_object
  4406. static GLboolean _glewInit_GL_ARB_shader_storage_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  4407. {
  4408. GLboolean r = GL_FALSE;
  4409. r = ((glShaderStorageBlockBinding = (PFNGLSHADERSTORAGEBLOCKBINDINGPROC)glewGetProcAddress((const GLubyte*)"glShaderStorageBlockBinding")) == NULL) || r;
  4410. return r;
  4411. }
  4412. #endif /* GL_ARB_shader_storage_buffer_object */
  4413. #ifdef GL_ARB_shader_subroutine
  4414. static GLboolean _glewInit_GL_ARB_shader_subroutine (GLEW_CONTEXT_ARG_DEF_INIT)
  4415. {
  4416. GLboolean r = GL_FALSE;
  4417. r = ((glGetActiveSubroutineName = (PFNGLGETACTIVESUBROUTINENAMEPROC)glewGetProcAddress((const GLubyte*)"glGetActiveSubroutineName")) == NULL) || r;
  4418. r = ((glGetActiveSubroutineUniformName = (PFNGLGETACTIVESUBROUTINEUNIFORMNAMEPROC)glewGetProcAddress((const GLubyte*)"glGetActiveSubroutineUniformName")) == NULL) || r;
  4419. r = ((glGetActiveSubroutineUniformiv = (PFNGLGETACTIVESUBROUTINEUNIFORMIVPROC)glewGetProcAddress((const GLubyte*)"glGetActiveSubroutineUniformiv")) == NULL) || r;
  4420. r = ((glGetProgramStageiv = (PFNGLGETPROGRAMSTAGEIVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramStageiv")) == NULL) || r;
  4421. r = ((glGetSubroutineIndex = (PFNGLGETSUBROUTINEINDEXPROC)glewGetProcAddress((const GLubyte*)"glGetSubroutineIndex")) == NULL) || r;
  4422. r = ((glGetSubroutineUniformLocation = (PFNGLGETSUBROUTINEUNIFORMLOCATIONPROC)glewGetProcAddress((const GLubyte*)"glGetSubroutineUniformLocation")) == NULL) || r;
  4423. r = ((glGetUniformSubroutineuiv = (PFNGLGETUNIFORMSUBROUTINEUIVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformSubroutineuiv")) == NULL) || r;
  4424. r = ((glUniformSubroutinesuiv = (PFNGLUNIFORMSUBROUTINESUIVPROC)glewGetProcAddress((const GLubyte*)"glUniformSubroutinesuiv")) == NULL) || r;
  4425. return r;
  4426. }
  4427. #endif /* GL_ARB_shader_subroutine */
  4428. #ifdef GL_ARB_shader_texture_lod
  4429. #endif /* GL_ARB_shader_texture_lod */
  4430. #ifdef GL_ARB_shading_language_100
  4431. #endif /* GL_ARB_shading_language_100 */
  4432. #ifdef GL_ARB_shading_language_420pack
  4433. #endif /* GL_ARB_shading_language_420pack */
  4434. #ifdef GL_ARB_shading_language_include
  4435. static GLboolean _glewInit_GL_ARB_shading_language_include (GLEW_CONTEXT_ARG_DEF_INIT)
  4436. {
  4437. GLboolean r = GL_FALSE;
  4438. r = ((glCompileShaderIncludeARB = (PFNGLCOMPILESHADERINCLUDEARBPROC)glewGetProcAddress((const GLubyte*)"glCompileShaderIncludeARB")) == NULL) || r;
  4439. r = ((glDeleteNamedStringARB = (PFNGLDELETENAMEDSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"glDeleteNamedStringARB")) == NULL) || r;
  4440. r = ((glGetNamedStringARB = (PFNGLGETNAMEDSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"glGetNamedStringARB")) == NULL) || r;
  4441. r = ((glGetNamedStringivARB = (PFNGLGETNAMEDSTRINGIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetNamedStringivARB")) == NULL) || r;
  4442. r = ((glIsNamedStringARB = (PFNGLISNAMEDSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"glIsNamedStringARB")) == NULL) || r;
  4443. r = ((glNamedStringARB = (PFNGLNAMEDSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"glNamedStringARB")) == NULL) || r;
  4444. return r;
  4445. }
  4446. #endif /* GL_ARB_shading_language_include */
  4447. #ifdef GL_ARB_shading_language_packing
  4448. #endif /* GL_ARB_shading_language_packing */
  4449. #ifdef GL_ARB_shadow
  4450. #endif /* GL_ARB_shadow */
  4451. #ifdef GL_ARB_shadow_ambient
  4452. #endif /* GL_ARB_shadow_ambient */
  4453. #ifdef GL_ARB_sparse_texture
  4454. static GLboolean _glewInit_GL_ARB_sparse_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  4455. {
  4456. GLboolean r = GL_FALSE;
  4457. r = ((glTexPageCommitmentARB = (PFNGLTEXPAGECOMMITMENTARBPROC)glewGetProcAddress((const GLubyte*)"glTexPageCommitmentARB")) == NULL) || r;
  4458. r = ((glTexturePageCommitmentEXT = (PFNGLTEXTUREPAGECOMMITMENTEXTPROC)glewGetProcAddress((const GLubyte*)"glTexturePageCommitmentEXT")) == NULL) || r;
  4459. return r;
  4460. }
  4461. #endif /* GL_ARB_sparse_texture */
  4462. #ifdef GL_ARB_stencil_texturing
  4463. #endif /* GL_ARB_stencil_texturing */
  4464. #ifdef GL_ARB_sync
  4465. static GLboolean _glewInit_GL_ARB_sync (GLEW_CONTEXT_ARG_DEF_INIT)
  4466. {
  4467. GLboolean r = GL_FALSE;
  4468. r = ((glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)glewGetProcAddress((const GLubyte*)"glClientWaitSync")) == NULL) || r;
  4469. r = ((glDeleteSync = (PFNGLDELETESYNCPROC)glewGetProcAddress((const GLubyte*)"glDeleteSync")) == NULL) || r;
  4470. r = ((glFenceSync = (PFNGLFENCESYNCPROC)glewGetProcAddress((const GLubyte*)"glFenceSync")) == NULL) || r;
  4471. r = ((glGetInteger64v = (PFNGLGETINTEGER64VPROC)glewGetProcAddress((const GLubyte*)"glGetInteger64v")) == NULL) || r;
  4472. r = ((glGetSynciv = (PFNGLGETSYNCIVPROC)glewGetProcAddress((const GLubyte*)"glGetSynciv")) == NULL) || r;
  4473. r = ((glIsSync = (PFNGLISSYNCPROC)glewGetProcAddress((const GLubyte*)"glIsSync")) == NULL) || r;
  4474. r = ((glWaitSync = (PFNGLWAITSYNCPROC)glewGetProcAddress((const GLubyte*)"glWaitSync")) == NULL) || r;
  4475. return r;
  4476. }
  4477. #endif /* GL_ARB_sync */
  4478. #ifdef GL_ARB_tessellation_shader
  4479. static GLboolean _glewInit_GL_ARB_tessellation_shader (GLEW_CONTEXT_ARG_DEF_INIT)
  4480. {
  4481. GLboolean r = GL_FALSE;
  4482. r = ((glPatchParameterfv = (PFNGLPATCHPARAMETERFVPROC)glewGetProcAddress((const GLubyte*)"glPatchParameterfv")) == NULL) || r;
  4483. r = ((glPatchParameteri = (PFNGLPATCHPARAMETERIPROC)glewGetProcAddress((const GLubyte*)"glPatchParameteri")) == NULL) || r;
  4484. return r;
  4485. }
  4486. #endif /* GL_ARB_tessellation_shader */
  4487. #ifdef GL_ARB_texture_border_clamp
  4488. #endif /* GL_ARB_texture_border_clamp */
  4489. #ifdef GL_ARB_texture_buffer_object
  4490. static GLboolean _glewInit_GL_ARB_texture_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  4491. {
  4492. GLboolean r = GL_FALSE;
  4493. r = ((glTexBufferARB = (PFNGLTEXBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glTexBufferARB")) == NULL) || r;
  4494. return r;
  4495. }
  4496. #endif /* GL_ARB_texture_buffer_object */
  4497. #ifdef GL_ARB_texture_buffer_object_rgb32
  4498. #endif /* GL_ARB_texture_buffer_object_rgb32 */
  4499. #ifdef GL_ARB_texture_buffer_range
  4500. static GLboolean _glewInit_GL_ARB_texture_buffer_range (GLEW_CONTEXT_ARG_DEF_INIT)
  4501. {
  4502. GLboolean r = GL_FALSE;
  4503. r = ((glTexBufferRange = (PFNGLTEXBUFFERRANGEPROC)glewGetProcAddress((const GLubyte*)"glTexBufferRange")) == NULL) || r;
  4504. r = ((glTextureBufferRangeEXT = (PFNGLTEXTUREBUFFERRANGEEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureBufferRangeEXT")) == NULL) || r;
  4505. return r;
  4506. }
  4507. #endif /* GL_ARB_texture_buffer_range */
  4508. #ifdef GL_ARB_texture_compression
  4509. static GLboolean _glewInit_GL_ARB_texture_compression (GLEW_CONTEXT_ARG_DEF_INIT)
  4510. {
  4511. GLboolean r = GL_FALSE;
  4512. r = ((glCompressedTexImage1DARB = (PFNGLCOMPRESSEDTEXIMAGE1DARBPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage1DARB")) == NULL) || r;
  4513. r = ((glCompressedTexImage2DARB = (PFNGLCOMPRESSEDTEXIMAGE2DARBPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage2DARB")) == NULL) || r;
  4514. r = ((glCompressedTexImage3DARB = (PFNGLCOMPRESSEDTEXIMAGE3DARBPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexImage3DARB")) == NULL) || r;
  4515. r = ((glCompressedTexSubImage1DARB = (PFNGLCOMPRESSEDTEXSUBIMAGE1DARBPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage1DARB")) == NULL) || r;
  4516. r = ((glCompressedTexSubImage2DARB = (PFNGLCOMPRESSEDTEXSUBIMAGE2DARBPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage2DARB")) == NULL) || r;
  4517. r = ((glCompressedTexSubImage3DARB = (PFNGLCOMPRESSEDTEXSUBIMAGE3DARBPROC)glewGetProcAddress((const GLubyte*)"glCompressedTexSubImage3DARB")) == NULL) || r;
  4518. r = ((glGetCompressedTexImageARB = (PFNGLGETCOMPRESSEDTEXIMAGEARBPROC)glewGetProcAddress((const GLubyte*)"glGetCompressedTexImageARB")) == NULL) || r;
  4519. return r;
  4520. }
  4521. #endif /* GL_ARB_texture_compression */
  4522. #ifdef GL_ARB_texture_compression_bptc
  4523. #endif /* GL_ARB_texture_compression_bptc */
  4524. #ifdef GL_ARB_texture_compression_rgtc
  4525. #endif /* GL_ARB_texture_compression_rgtc */
  4526. #ifdef GL_ARB_texture_cube_map
  4527. #endif /* GL_ARB_texture_cube_map */
  4528. #ifdef GL_ARB_texture_cube_map_array
  4529. #endif /* GL_ARB_texture_cube_map_array */
  4530. #ifdef GL_ARB_texture_env_add
  4531. #endif /* GL_ARB_texture_env_add */
  4532. #ifdef GL_ARB_texture_env_combine
  4533. #endif /* GL_ARB_texture_env_combine */
  4534. #ifdef GL_ARB_texture_env_crossbar
  4535. #endif /* GL_ARB_texture_env_crossbar */
  4536. #ifdef GL_ARB_texture_env_dot3
  4537. #endif /* GL_ARB_texture_env_dot3 */
  4538. #ifdef GL_ARB_texture_float
  4539. #endif /* GL_ARB_texture_float */
  4540. #ifdef GL_ARB_texture_gather
  4541. #endif /* GL_ARB_texture_gather */
  4542. #ifdef GL_ARB_texture_mirror_clamp_to_edge
  4543. #endif /* GL_ARB_texture_mirror_clamp_to_edge */
  4544. #ifdef GL_ARB_texture_mirrored_repeat
  4545. #endif /* GL_ARB_texture_mirrored_repeat */
  4546. #ifdef GL_ARB_texture_multisample
  4547. static GLboolean _glewInit_GL_ARB_texture_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  4548. {
  4549. GLboolean r = GL_FALSE;
  4550. r = ((glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)glewGetProcAddress((const GLubyte*)"glGetMultisamplefv")) == NULL) || r;
  4551. r = ((glSampleMaski = (PFNGLSAMPLEMASKIPROC)glewGetProcAddress((const GLubyte*)"glSampleMaski")) == NULL) || r;
  4552. r = ((glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)glewGetProcAddress((const GLubyte*)"glTexImage2DMultisample")) == NULL) || r;
  4553. r = ((glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)glewGetProcAddress((const GLubyte*)"glTexImage3DMultisample")) == NULL) || r;
  4554. return r;
  4555. }
  4556. #endif /* GL_ARB_texture_multisample */
  4557. #ifdef GL_ARB_texture_non_power_of_two
  4558. #endif /* GL_ARB_texture_non_power_of_two */
  4559. #ifdef GL_ARB_texture_query_levels
  4560. #endif /* GL_ARB_texture_query_levels */
  4561. #ifdef GL_ARB_texture_query_lod
  4562. #endif /* GL_ARB_texture_query_lod */
  4563. #ifdef GL_ARB_texture_rectangle
  4564. #endif /* GL_ARB_texture_rectangle */
  4565. #ifdef GL_ARB_texture_rg
  4566. #endif /* GL_ARB_texture_rg */
  4567. #ifdef GL_ARB_texture_rgb10_a2ui
  4568. #endif /* GL_ARB_texture_rgb10_a2ui */
  4569. #ifdef GL_ARB_texture_stencil8
  4570. #endif /* GL_ARB_texture_stencil8 */
  4571. #ifdef GL_ARB_texture_storage
  4572. static GLboolean _glewInit_GL_ARB_texture_storage (GLEW_CONTEXT_ARG_DEF_INIT)
  4573. {
  4574. GLboolean r = GL_FALSE;
  4575. r = ((glTexStorage1D = (PFNGLTEXSTORAGE1DPROC)glewGetProcAddress((const GLubyte*)"glTexStorage1D")) == NULL) || r;
  4576. r = ((glTexStorage2D = (PFNGLTEXSTORAGE2DPROC)glewGetProcAddress((const GLubyte*)"glTexStorage2D")) == NULL) || r;
  4577. r = ((glTexStorage3D = (PFNGLTEXSTORAGE3DPROC)glewGetProcAddress((const GLubyte*)"glTexStorage3D")) == NULL) || r;
  4578. r = ((glTextureStorage1DEXT = (PFNGLTEXTURESTORAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureStorage1DEXT")) == NULL) || r;
  4579. r = ((glTextureStorage2DEXT = (PFNGLTEXTURESTORAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureStorage2DEXT")) == NULL) || r;
  4580. r = ((glTextureStorage3DEXT = (PFNGLTEXTURESTORAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureStorage3DEXT")) == NULL) || r;
  4581. return r;
  4582. }
  4583. #endif /* GL_ARB_texture_storage */
  4584. #ifdef GL_ARB_texture_storage_multisample
  4585. static GLboolean _glewInit_GL_ARB_texture_storage_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  4586. {
  4587. GLboolean r = GL_FALSE;
  4588. r = ((glTexStorage2DMultisample = (PFNGLTEXSTORAGE2DMULTISAMPLEPROC)glewGetProcAddress((const GLubyte*)"glTexStorage2DMultisample")) == NULL) || r;
  4589. r = ((glTexStorage3DMultisample = (PFNGLTEXSTORAGE3DMULTISAMPLEPROC)glewGetProcAddress((const GLubyte*)"glTexStorage3DMultisample")) == NULL) || r;
  4590. r = ((glTextureStorage2DMultisampleEXT = (PFNGLTEXTURESTORAGE2DMULTISAMPLEEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureStorage2DMultisampleEXT")) == NULL) || r;
  4591. r = ((glTextureStorage3DMultisampleEXT = (PFNGLTEXTURESTORAGE3DMULTISAMPLEEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureStorage3DMultisampleEXT")) == NULL) || r;
  4592. return r;
  4593. }
  4594. #endif /* GL_ARB_texture_storage_multisample */
  4595. #ifdef GL_ARB_texture_swizzle
  4596. #endif /* GL_ARB_texture_swizzle */
  4597. #ifdef GL_ARB_texture_view
  4598. static GLboolean _glewInit_GL_ARB_texture_view (GLEW_CONTEXT_ARG_DEF_INIT)
  4599. {
  4600. GLboolean r = GL_FALSE;
  4601. r = ((glTextureView = (PFNGLTEXTUREVIEWPROC)glewGetProcAddress((const GLubyte*)"glTextureView")) == NULL) || r;
  4602. return r;
  4603. }
  4604. #endif /* GL_ARB_texture_view */
  4605. #ifdef GL_ARB_timer_query
  4606. static GLboolean _glewInit_GL_ARB_timer_query (GLEW_CONTEXT_ARG_DEF_INIT)
  4607. {
  4608. GLboolean r = GL_FALSE;
  4609. r = ((glGetQueryObjecti64v = (PFNGLGETQUERYOBJECTI64VPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjecti64v")) == NULL) || r;
  4610. r = ((glGetQueryObjectui64v = (PFNGLGETQUERYOBJECTUI64VPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectui64v")) == NULL) || r;
  4611. r = ((glQueryCounter = (PFNGLQUERYCOUNTERPROC)glewGetProcAddress((const GLubyte*)"glQueryCounter")) == NULL) || r;
  4612. return r;
  4613. }
  4614. #endif /* GL_ARB_timer_query */
  4615. #ifdef GL_ARB_transform_feedback2
  4616. static GLboolean _glewInit_GL_ARB_transform_feedback2 (GLEW_CONTEXT_ARG_DEF_INIT)
  4617. {
  4618. GLboolean r = GL_FALSE;
  4619. r = ((glBindTransformFeedback = (PFNGLBINDTRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glBindTransformFeedback")) == NULL) || r;
  4620. r = ((glDeleteTransformFeedbacks = (PFNGLDELETETRANSFORMFEEDBACKSPROC)glewGetProcAddress((const GLubyte*)"glDeleteTransformFeedbacks")) == NULL) || r;
  4621. r = ((glDrawTransformFeedback = (PFNGLDRAWTRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glDrawTransformFeedback")) == NULL) || r;
  4622. r = ((glGenTransformFeedbacks = (PFNGLGENTRANSFORMFEEDBACKSPROC)glewGetProcAddress((const GLubyte*)"glGenTransformFeedbacks")) == NULL) || r;
  4623. r = ((glIsTransformFeedback = (PFNGLISTRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glIsTransformFeedback")) == NULL) || r;
  4624. r = ((glPauseTransformFeedback = (PFNGLPAUSETRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glPauseTransformFeedback")) == NULL) || r;
  4625. r = ((glResumeTransformFeedback = (PFNGLRESUMETRANSFORMFEEDBACKPROC)glewGetProcAddress((const GLubyte*)"glResumeTransformFeedback")) == NULL) || r;
  4626. return r;
  4627. }
  4628. #endif /* GL_ARB_transform_feedback2 */
  4629. #ifdef GL_ARB_transform_feedback3
  4630. static GLboolean _glewInit_GL_ARB_transform_feedback3 (GLEW_CONTEXT_ARG_DEF_INIT)
  4631. {
  4632. GLboolean r = GL_FALSE;
  4633. r = ((glBeginQueryIndexed = (PFNGLBEGINQUERYINDEXEDPROC)glewGetProcAddress((const GLubyte*)"glBeginQueryIndexed")) == NULL) || r;
  4634. r = ((glDrawTransformFeedbackStream = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMPROC)glewGetProcAddress((const GLubyte*)"glDrawTransformFeedbackStream")) == NULL) || r;
  4635. r = ((glEndQueryIndexed = (PFNGLENDQUERYINDEXEDPROC)glewGetProcAddress((const GLubyte*)"glEndQueryIndexed")) == NULL) || r;
  4636. r = ((glGetQueryIndexediv = (PFNGLGETQUERYINDEXEDIVPROC)glewGetProcAddress((const GLubyte*)"glGetQueryIndexediv")) == NULL) || r;
  4637. return r;
  4638. }
  4639. #endif /* GL_ARB_transform_feedback3 */
  4640. #ifdef GL_ARB_transform_feedback_instanced
  4641. static GLboolean _glewInit_GL_ARB_transform_feedback_instanced (GLEW_CONTEXT_ARG_DEF_INIT)
  4642. {
  4643. GLboolean r = GL_FALSE;
  4644. r = ((glDrawTransformFeedbackInstanced = (PFNGLDRAWTRANSFORMFEEDBACKINSTANCEDPROC)glewGetProcAddress((const GLubyte*)"glDrawTransformFeedbackInstanced")) == NULL) || r;
  4645. r = ((glDrawTransformFeedbackStreamInstanced = (PFNGLDRAWTRANSFORMFEEDBACKSTREAMINSTANCEDPROC)glewGetProcAddress((const GLubyte*)"glDrawTransformFeedbackStreamInstanced")) == NULL) || r;
  4646. return r;
  4647. }
  4648. #endif /* GL_ARB_transform_feedback_instanced */
  4649. #ifdef GL_ARB_transpose_matrix
  4650. static GLboolean _glewInit_GL_ARB_transpose_matrix (GLEW_CONTEXT_ARG_DEF_INIT)
  4651. {
  4652. GLboolean r = GL_FALSE;
  4653. r = ((glLoadTransposeMatrixdARB = (PFNGLLOADTRANSPOSEMATRIXDARBPROC)glewGetProcAddress((const GLubyte*)"glLoadTransposeMatrixdARB")) == NULL) || r;
  4654. r = ((glLoadTransposeMatrixfARB = (PFNGLLOADTRANSPOSEMATRIXFARBPROC)glewGetProcAddress((const GLubyte*)"glLoadTransposeMatrixfARB")) == NULL) || r;
  4655. r = ((glMultTransposeMatrixdARB = (PFNGLMULTTRANSPOSEMATRIXDARBPROC)glewGetProcAddress((const GLubyte*)"glMultTransposeMatrixdARB")) == NULL) || r;
  4656. r = ((glMultTransposeMatrixfARB = (PFNGLMULTTRANSPOSEMATRIXFARBPROC)glewGetProcAddress((const GLubyte*)"glMultTransposeMatrixfARB")) == NULL) || r;
  4657. return r;
  4658. }
  4659. #endif /* GL_ARB_transpose_matrix */
  4660. #ifdef GL_ARB_uniform_buffer_object
  4661. static GLboolean _glewInit_GL_ARB_uniform_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  4662. {
  4663. GLboolean r = GL_FALSE;
  4664. r = ((glBindBufferBase = (PFNGLBINDBUFFERBASEPROC)glewGetProcAddress((const GLubyte*)"glBindBufferBase")) == NULL) || r;
  4665. r = ((glBindBufferRange = (PFNGLBINDBUFFERRANGEPROC)glewGetProcAddress((const GLubyte*)"glBindBufferRange")) == NULL) || r;
  4666. r = ((glGetActiveUniformBlockName = (PFNGLGETACTIVEUNIFORMBLOCKNAMEPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniformBlockName")) == NULL) || r;
  4667. r = ((glGetActiveUniformBlockiv = (PFNGLGETACTIVEUNIFORMBLOCKIVPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniformBlockiv")) == NULL) || r;
  4668. r = ((glGetActiveUniformName = (PFNGLGETACTIVEUNIFORMNAMEPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniformName")) == NULL) || r;
  4669. r = ((glGetActiveUniformsiv = (PFNGLGETACTIVEUNIFORMSIVPROC)glewGetProcAddress((const GLubyte*)"glGetActiveUniformsiv")) == NULL) || r;
  4670. r = ((glGetIntegeri_v = (PFNGLGETINTEGERI_VPROC)glewGetProcAddress((const GLubyte*)"glGetIntegeri_v")) == NULL) || r;
  4671. r = ((glGetUniformBlockIndex = (PFNGLGETUNIFORMBLOCKINDEXPROC)glewGetProcAddress((const GLubyte*)"glGetUniformBlockIndex")) == NULL) || r;
  4672. r = ((glGetUniformIndices = (PFNGLGETUNIFORMINDICESPROC)glewGetProcAddress((const GLubyte*)"glGetUniformIndices")) == NULL) || r;
  4673. r = ((glUniformBlockBinding = (PFNGLUNIFORMBLOCKBINDINGPROC)glewGetProcAddress((const GLubyte*)"glUniformBlockBinding")) == NULL) || r;
  4674. return r;
  4675. }
  4676. #endif /* GL_ARB_uniform_buffer_object */
  4677. #ifdef GL_ARB_vertex_array_bgra
  4678. #endif /* GL_ARB_vertex_array_bgra */
  4679. #ifdef GL_ARB_vertex_array_object
  4680. static GLboolean _glewInit_GL_ARB_vertex_array_object (GLEW_CONTEXT_ARG_DEF_INIT)
  4681. {
  4682. GLboolean r = GL_FALSE;
  4683. r = ((glBindVertexArray = (PFNGLBINDVERTEXARRAYPROC)glewGetProcAddress((const GLubyte*)"glBindVertexArray")) == NULL) || r;
  4684. r = ((glDeleteVertexArrays = (PFNGLDELETEVERTEXARRAYSPROC)glewGetProcAddress((const GLubyte*)"glDeleteVertexArrays")) == NULL) || r;
  4685. r = ((glGenVertexArrays = (PFNGLGENVERTEXARRAYSPROC)glewGetProcAddress((const GLubyte*)"glGenVertexArrays")) == NULL) || r;
  4686. r = ((glIsVertexArray = (PFNGLISVERTEXARRAYPROC)glewGetProcAddress((const GLubyte*)"glIsVertexArray")) == NULL) || r;
  4687. return r;
  4688. }
  4689. #endif /* GL_ARB_vertex_array_object */
  4690. #ifdef GL_ARB_vertex_attrib_64bit
  4691. static GLboolean _glewInit_GL_ARB_vertex_attrib_64bit (GLEW_CONTEXT_ARG_DEF_INIT)
  4692. {
  4693. GLboolean r = GL_FALSE;
  4694. r = ((glGetVertexAttribLdv = (PFNGLGETVERTEXATTRIBLDVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribLdv")) == NULL) || r;
  4695. r = ((glVertexAttribL1d = (PFNGLVERTEXATTRIBL1DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1d")) == NULL) || r;
  4696. r = ((glVertexAttribL1dv = (PFNGLVERTEXATTRIBL1DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1dv")) == NULL) || r;
  4697. r = ((glVertexAttribL2d = (PFNGLVERTEXATTRIBL2DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2d")) == NULL) || r;
  4698. r = ((glVertexAttribL2dv = (PFNGLVERTEXATTRIBL2DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2dv")) == NULL) || r;
  4699. r = ((glVertexAttribL3d = (PFNGLVERTEXATTRIBL3DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3d")) == NULL) || r;
  4700. r = ((glVertexAttribL3dv = (PFNGLVERTEXATTRIBL3DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3dv")) == NULL) || r;
  4701. r = ((glVertexAttribL4d = (PFNGLVERTEXATTRIBL4DPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4d")) == NULL) || r;
  4702. r = ((glVertexAttribL4dv = (PFNGLVERTEXATTRIBL4DVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4dv")) == NULL) || r;
  4703. r = ((glVertexAttribLPointer = (PFNGLVERTEXATTRIBLPOINTERPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribLPointer")) == NULL) || r;
  4704. return r;
  4705. }
  4706. #endif /* GL_ARB_vertex_attrib_64bit */
  4707. #ifdef GL_ARB_vertex_attrib_binding
  4708. static GLboolean _glewInit_GL_ARB_vertex_attrib_binding (GLEW_CONTEXT_ARG_DEF_INIT)
  4709. {
  4710. GLboolean r = GL_FALSE;
  4711. r = ((glBindVertexBuffer = (PFNGLBINDVERTEXBUFFERPROC)glewGetProcAddress((const GLubyte*)"glBindVertexBuffer")) == NULL) || r;
  4712. r = ((glVertexAttribBinding = (PFNGLVERTEXATTRIBBINDINGPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribBinding")) == NULL) || r;
  4713. r = ((glVertexAttribFormat = (PFNGLVERTEXATTRIBFORMATPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribFormat")) == NULL) || r;
  4714. r = ((glVertexAttribIFormat = (PFNGLVERTEXATTRIBIFORMATPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribIFormat")) == NULL) || r;
  4715. r = ((glVertexAttribLFormat = (PFNGLVERTEXATTRIBLFORMATPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribLFormat")) == NULL) || r;
  4716. r = ((glVertexBindingDivisor = (PFNGLVERTEXBINDINGDIVISORPROC)glewGetProcAddress((const GLubyte*)"glVertexBindingDivisor")) == NULL) || r;
  4717. return r;
  4718. }
  4719. #endif /* GL_ARB_vertex_attrib_binding */
  4720. #ifdef GL_ARB_vertex_blend
  4721. static GLboolean _glewInit_GL_ARB_vertex_blend (GLEW_CONTEXT_ARG_DEF_INIT)
  4722. {
  4723. GLboolean r = GL_FALSE;
  4724. r = ((glVertexBlendARB = (PFNGLVERTEXBLENDARBPROC)glewGetProcAddress((const GLubyte*)"glVertexBlendARB")) == NULL) || r;
  4725. r = ((glWeightPointerARB = (PFNGLWEIGHTPOINTERARBPROC)glewGetProcAddress((const GLubyte*)"glWeightPointerARB")) == NULL) || r;
  4726. r = ((glWeightbvARB = (PFNGLWEIGHTBVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightbvARB")) == NULL) || r;
  4727. r = ((glWeightdvARB = (PFNGLWEIGHTDVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightdvARB")) == NULL) || r;
  4728. r = ((glWeightfvARB = (PFNGLWEIGHTFVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightfvARB")) == NULL) || r;
  4729. r = ((glWeightivARB = (PFNGLWEIGHTIVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightivARB")) == NULL) || r;
  4730. r = ((glWeightsvARB = (PFNGLWEIGHTSVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightsvARB")) == NULL) || r;
  4731. r = ((glWeightubvARB = (PFNGLWEIGHTUBVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightubvARB")) == NULL) || r;
  4732. r = ((glWeightuivARB = (PFNGLWEIGHTUIVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightuivARB")) == NULL) || r;
  4733. r = ((glWeightusvARB = (PFNGLWEIGHTUSVARBPROC)glewGetProcAddress((const GLubyte*)"glWeightusvARB")) == NULL) || r;
  4734. return r;
  4735. }
  4736. #endif /* GL_ARB_vertex_blend */
  4737. #ifdef GL_ARB_vertex_buffer_object
  4738. static GLboolean _glewInit_GL_ARB_vertex_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  4739. {
  4740. GLboolean r = GL_FALSE;
  4741. r = ((glBindBufferARB = (PFNGLBINDBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glBindBufferARB")) == NULL) || r;
  4742. r = ((glBufferDataARB = (PFNGLBUFFERDATAARBPROC)glewGetProcAddress((const GLubyte*)"glBufferDataARB")) == NULL) || r;
  4743. r = ((glBufferSubDataARB = (PFNGLBUFFERSUBDATAARBPROC)glewGetProcAddress((const GLubyte*)"glBufferSubDataARB")) == NULL) || r;
  4744. r = ((glDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)glewGetProcAddress((const GLubyte*)"glDeleteBuffersARB")) == NULL) || r;
  4745. r = ((glGenBuffersARB = (PFNGLGENBUFFERSARBPROC)glewGetProcAddress((const GLubyte*)"glGenBuffersARB")) == NULL) || r;
  4746. r = ((glGetBufferParameterivARB = (PFNGLGETBUFFERPARAMETERIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetBufferParameterivARB")) == NULL) || r;
  4747. r = ((glGetBufferPointervARB = (PFNGLGETBUFFERPOINTERVARBPROC)glewGetProcAddress((const GLubyte*)"glGetBufferPointervARB")) == NULL) || r;
  4748. r = ((glGetBufferSubDataARB = (PFNGLGETBUFFERSUBDATAARBPROC)glewGetProcAddress((const GLubyte*)"glGetBufferSubDataARB")) == NULL) || r;
  4749. r = ((glIsBufferARB = (PFNGLISBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glIsBufferARB")) == NULL) || r;
  4750. r = ((glMapBufferARB = (PFNGLMAPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glMapBufferARB")) == NULL) || r;
  4751. r = ((glUnmapBufferARB = (PFNGLUNMAPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"glUnmapBufferARB")) == NULL) || r;
  4752. return r;
  4753. }
  4754. #endif /* GL_ARB_vertex_buffer_object */
  4755. #ifdef GL_ARB_vertex_program
  4756. static GLboolean _glewInit_GL_ARB_vertex_program (GLEW_CONTEXT_ARG_DEF_INIT)
  4757. {
  4758. GLboolean r = GL_FALSE;
  4759. r = ((glBindProgramARB = (PFNGLBINDPROGRAMARBPROC)glewGetProcAddress((const GLubyte*)"glBindProgramARB")) == NULL) || r;
  4760. r = ((glDeleteProgramsARB = (PFNGLDELETEPROGRAMSARBPROC)glewGetProcAddress((const GLubyte*)"glDeleteProgramsARB")) == NULL) || r;
  4761. r = ((glDisableVertexAttribArrayARB = (PFNGLDISABLEVERTEXATTRIBARRAYARBPROC)glewGetProcAddress((const GLubyte*)"glDisableVertexAttribArrayARB")) == NULL) || r;
  4762. r = ((glEnableVertexAttribArrayARB = (PFNGLENABLEVERTEXATTRIBARRAYARBPROC)glewGetProcAddress((const GLubyte*)"glEnableVertexAttribArrayARB")) == NULL) || r;
  4763. r = ((glGenProgramsARB = (PFNGLGENPROGRAMSARBPROC)glewGetProcAddress((const GLubyte*)"glGenProgramsARB")) == NULL) || r;
  4764. r = ((glGetProgramEnvParameterdvARB = (PFNGLGETPROGRAMENVPARAMETERDVARBPROC)glewGetProcAddress((const GLubyte*)"glGetProgramEnvParameterdvARB")) == NULL) || r;
  4765. r = ((glGetProgramEnvParameterfvARB = (PFNGLGETPROGRAMENVPARAMETERFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetProgramEnvParameterfvARB")) == NULL) || r;
  4766. r = ((glGetProgramLocalParameterdvARB = (PFNGLGETPROGRAMLOCALPARAMETERDVARBPROC)glewGetProcAddress((const GLubyte*)"glGetProgramLocalParameterdvARB")) == NULL) || r;
  4767. r = ((glGetProgramLocalParameterfvARB = (PFNGLGETPROGRAMLOCALPARAMETERFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetProgramLocalParameterfvARB")) == NULL) || r;
  4768. r = ((glGetProgramStringARB = (PFNGLGETPROGRAMSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"glGetProgramStringARB")) == NULL) || r;
  4769. r = ((glGetProgramivARB = (PFNGLGETPROGRAMIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetProgramivARB")) == NULL) || r;
  4770. r = ((glGetVertexAttribPointervARB = (PFNGLGETVERTEXATTRIBPOINTERVARBPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribPointervARB")) == NULL) || r;
  4771. r = ((glGetVertexAttribdvARB = (PFNGLGETVERTEXATTRIBDVARBPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribdvARB")) == NULL) || r;
  4772. r = ((glGetVertexAttribfvARB = (PFNGLGETVERTEXATTRIBFVARBPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribfvARB")) == NULL) || r;
  4773. r = ((glGetVertexAttribivARB = (PFNGLGETVERTEXATTRIBIVARBPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribivARB")) == NULL) || r;
  4774. r = ((glIsProgramARB = (PFNGLISPROGRAMARBPROC)glewGetProcAddress((const GLubyte*)"glIsProgramARB")) == NULL) || r;
  4775. r = ((glProgramEnvParameter4dARB = (PFNGLPROGRAMENVPARAMETER4DARBPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameter4dARB")) == NULL) || r;
  4776. r = ((glProgramEnvParameter4dvARB = (PFNGLPROGRAMENVPARAMETER4DVARBPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameter4dvARB")) == NULL) || r;
  4777. r = ((glProgramEnvParameter4fARB = (PFNGLPROGRAMENVPARAMETER4FARBPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameter4fARB")) == NULL) || r;
  4778. r = ((glProgramEnvParameter4fvARB = (PFNGLPROGRAMENVPARAMETER4FVARBPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameter4fvARB")) == NULL) || r;
  4779. r = ((glProgramLocalParameter4dARB = (PFNGLPROGRAMLOCALPARAMETER4DARBPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameter4dARB")) == NULL) || r;
  4780. r = ((glProgramLocalParameter4dvARB = (PFNGLPROGRAMLOCALPARAMETER4DVARBPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameter4dvARB")) == NULL) || r;
  4781. r = ((glProgramLocalParameter4fARB = (PFNGLPROGRAMLOCALPARAMETER4FARBPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameter4fARB")) == NULL) || r;
  4782. r = ((glProgramLocalParameter4fvARB = (PFNGLPROGRAMLOCALPARAMETER4FVARBPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameter4fvARB")) == NULL) || r;
  4783. r = ((glProgramStringARB = (PFNGLPROGRAMSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"glProgramStringARB")) == NULL) || r;
  4784. r = ((glVertexAttrib1dARB = (PFNGLVERTEXATTRIB1DARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1dARB")) == NULL) || r;
  4785. r = ((glVertexAttrib1dvARB = (PFNGLVERTEXATTRIB1DVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1dvARB")) == NULL) || r;
  4786. r = ((glVertexAttrib1fARB = (PFNGLVERTEXATTRIB1FARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1fARB")) == NULL) || r;
  4787. r = ((glVertexAttrib1fvARB = (PFNGLVERTEXATTRIB1FVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1fvARB")) == NULL) || r;
  4788. r = ((glVertexAttrib1sARB = (PFNGLVERTEXATTRIB1SARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1sARB")) == NULL) || r;
  4789. r = ((glVertexAttrib1svARB = (PFNGLVERTEXATTRIB1SVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1svARB")) == NULL) || r;
  4790. r = ((glVertexAttrib2dARB = (PFNGLVERTEXATTRIB2DARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2dARB")) == NULL) || r;
  4791. r = ((glVertexAttrib2dvARB = (PFNGLVERTEXATTRIB2DVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2dvARB")) == NULL) || r;
  4792. r = ((glVertexAttrib2fARB = (PFNGLVERTEXATTRIB2FARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2fARB")) == NULL) || r;
  4793. r = ((glVertexAttrib2fvARB = (PFNGLVERTEXATTRIB2FVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2fvARB")) == NULL) || r;
  4794. r = ((glVertexAttrib2sARB = (PFNGLVERTEXATTRIB2SARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2sARB")) == NULL) || r;
  4795. r = ((glVertexAttrib2svARB = (PFNGLVERTEXATTRIB2SVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2svARB")) == NULL) || r;
  4796. r = ((glVertexAttrib3dARB = (PFNGLVERTEXATTRIB3DARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3dARB")) == NULL) || r;
  4797. r = ((glVertexAttrib3dvARB = (PFNGLVERTEXATTRIB3DVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3dvARB")) == NULL) || r;
  4798. r = ((glVertexAttrib3fARB = (PFNGLVERTEXATTRIB3FARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3fARB")) == NULL) || r;
  4799. r = ((glVertexAttrib3fvARB = (PFNGLVERTEXATTRIB3FVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3fvARB")) == NULL) || r;
  4800. r = ((glVertexAttrib3sARB = (PFNGLVERTEXATTRIB3SARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3sARB")) == NULL) || r;
  4801. r = ((glVertexAttrib3svARB = (PFNGLVERTEXATTRIB3SVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3svARB")) == NULL) || r;
  4802. r = ((glVertexAttrib4NbvARB = (PFNGLVERTEXATTRIB4NBVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NbvARB")) == NULL) || r;
  4803. r = ((glVertexAttrib4NivARB = (PFNGLVERTEXATTRIB4NIVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NivARB")) == NULL) || r;
  4804. r = ((glVertexAttrib4NsvARB = (PFNGLVERTEXATTRIB4NSVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NsvARB")) == NULL) || r;
  4805. r = ((glVertexAttrib4NubARB = (PFNGLVERTEXATTRIB4NUBARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NubARB")) == NULL) || r;
  4806. r = ((glVertexAttrib4NubvARB = (PFNGLVERTEXATTRIB4NUBVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NubvARB")) == NULL) || r;
  4807. r = ((glVertexAttrib4NuivARB = (PFNGLVERTEXATTRIB4NUIVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NuivARB")) == NULL) || r;
  4808. r = ((glVertexAttrib4NusvARB = (PFNGLVERTEXATTRIB4NUSVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4NusvARB")) == NULL) || r;
  4809. r = ((glVertexAttrib4bvARB = (PFNGLVERTEXATTRIB4BVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4bvARB")) == NULL) || r;
  4810. r = ((glVertexAttrib4dARB = (PFNGLVERTEXATTRIB4DARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4dARB")) == NULL) || r;
  4811. r = ((glVertexAttrib4dvARB = (PFNGLVERTEXATTRIB4DVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4dvARB")) == NULL) || r;
  4812. r = ((glVertexAttrib4fARB = (PFNGLVERTEXATTRIB4FARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4fARB")) == NULL) || r;
  4813. r = ((glVertexAttrib4fvARB = (PFNGLVERTEXATTRIB4FVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4fvARB")) == NULL) || r;
  4814. r = ((glVertexAttrib4ivARB = (PFNGLVERTEXATTRIB4IVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4ivARB")) == NULL) || r;
  4815. r = ((glVertexAttrib4sARB = (PFNGLVERTEXATTRIB4SARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4sARB")) == NULL) || r;
  4816. r = ((glVertexAttrib4svARB = (PFNGLVERTEXATTRIB4SVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4svARB")) == NULL) || r;
  4817. r = ((glVertexAttrib4ubvARB = (PFNGLVERTEXATTRIB4UBVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4ubvARB")) == NULL) || r;
  4818. r = ((glVertexAttrib4uivARB = (PFNGLVERTEXATTRIB4UIVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4uivARB")) == NULL) || r;
  4819. r = ((glVertexAttrib4usvARB = (PFNGLVERTEXATTRIB4USVARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4usvARB")) == NULL) || r;
  4820. r = ((glVertexAttribPointerARB = (PFNGLVERTEXATTRIBPOINTERARBPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribPointerARB")) == NULL) || r;
  4821. return r;
  4822. }
  4823. #endif /* GL_ARB_vertex_program */
  4824. #ifdef GL_ARB_vertex_shader
  4825. static GLboolean _glewInit_GL_ARB_vertex_shader (GLEW_CONTEXT_ARG_DEF_INIT)
  4826. {
  4827. GLboolean r = GL_FALSE;
  4828. r = ((glBindAttribLocationARB = (PFNGLBINDATTRIBLOCATIONARBPROC)glewGetProcAddress((const GLubyte*)"glBindAttribLocationARB")) == NULL) || r;
  4829. r = ((glGetActiveAttribARB = (PFNGLGETACTIVEATTRIBARBPROC)glewGetProcAddress((const GLubyte*)"glGetActiveAttribARB")) == NULL) || r;
  4830. r = ((glGetAttribLocationARB = (PFNGLGETATTRIBLOCATIONARBPROC)glewGetProcAddress((const GLubyte*)"glGetAttribLocationARB")) == NULL) || r;
  4831. return r;
  4832. }
  4833. #endif /* GL_ARB_vertex_shader */
  4834. #ifdef GL_ARB_vertex_type_10f_11f_11f_rev
  4835. #endif /* GL_ARB_vertex_type_10f_11f_11f_rev */
  4836. #ifdef GL_ARB_vertex_type_2_10_10_10_rev
  4837. static GLboolean _glewInit_GL_ARB_vertex_type_2_10_10_10_rev (GLEW_CONTEXT_ARG_DEF_INIT)
  4838. {
  4839. GLboolean r = GL_FALSE;
  4840. r = ((glColorP3ui = (PFNGLCOLORP3UIPROC)glewGetProcAddress((const GLubyte*)"glColorP3ui")) == NULL) || r;
  4841. r = ((glColorP3uiv = (PFNGLCOLORP3UIVPROC)glewGetProcAddress((const GLubyte*)"glColorP3uiv")) == NULL) || r;
  4842. r = ((glColorP4ui = (PFNGLCOLORP4UIPROC)glewGetProcAddress((const GLubyte*)"glColorP4ui")) == NULL) || r;
  4843. r = ((glColorP4uiv = (PFNGLCOLORP4UIVPROC)glewGetProcAddress((const GLubyte*)"glColorP4uiv")) == NULL) || r;
  4844. r = ((glMultiTexCoordP1ui = (PFNGLMULTITEXCOORDP1UIPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP1ui")) == NULL) || r;
  4845. r = ((glMultiTexCoordP1uiv = (PFNGLMULTITEXCOORDP1UIVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP1uiv")) == NULL) || r;
  4846. r = ((glMultiTexCoordP2ui = (PFNGLMULTITEXCOORDP2UIPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP2ui")) == NULL) || r;
  4847. r = ((glMultiTexCoordP2uiv = (PFNGLMULTITEXCOORDP2UIVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP2uiv")) == NULL) || r;
  4848. r = ((glMultiTexCoordP3ui = (PFNGLMULTITEXCOORDP3UIPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP3ui")) == NULL) || r;
  4849. r = ((glMultiTexCoordP3uiv = (PFNGLMULTITEXCOORDP3UIVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP3uiv")) == NULL) || r;
  4850. r = ((glMultiTexCoordP4ui = (PFNGLMULTITEXCOORDP4UIPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP4ui")) == NULL) || r;
  4851. r = ((glMultiTexCoordP4uiv = (PFNGLMULTITEXCOORDP4UIVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordP4uiv")) == NULL) || r;
  4852. r = ((glNormalP3ui = (PFNGLNORMALP3UIPROC)glewGetProcAddress((const GLubyte*)"glNormalP3ui")) == NULL) || r;
  4853. r = ((glNormalP3uiv = (PFNGLNORMALP3UIVPROC)glewGetProcAddress((const GLubyte*)"glNormalP3uiv")) == NULL) || r;
  4854. r = ((glSecondaryColorP3ui = (PFNGLSECONDARYCOLORP3UIPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorP3ui")) == NULL) || r;
  4855. r = ((glSecondaryColorP3uiv = (PFNGLSECONDARYCOLORP3UIVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorP3uiv")) == NULL) || r;
  4856. r = ((glTexCoordP1ui = (PFNGLTEXCOORDP1UIPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP1ui")) == NULL) || r;
  4857. r = ((glTexCoordP1uiv = (PFNGLTEXCOORDP1UIVPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP1uiv")) == NULL) || r;
  4858. r = ((glTexCoordP2ui = (PFNGLTEXCOORDP2UIPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP2ui")) == NULL) || r;
  4859. r = ((glTexCoordP2uiv = (PFNGLTEXCOORDP2UIVPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP2uiv")) == NULL) || r;
  4860. r = ((glTexCoordP3ui = (PFNGLTEXCOORDP3UIPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP3ui")) == NULL) || r;
  4861. r = ((glTexCoordP3uiv = (PFNGLTEXCOORDP3UIVPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP3uiv")) == NULL) || r;
  4862. r = ((glTexCoordP4ui = (PFNGLTEXCOORDP4UIPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP4ui")) == NULL) || r;
  4863. r = ((glTexCoordP4uiv = (PFNGLTEXCOORDP4UIVPROC)glewGetProcAddress((const GLubyte*)"glTexCoordP4uiv")) == NULL) || r;
  4864. r = ((glVertexAttribP1ui = (PFNGLVERTEXATTRIBP1UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP1ui")) == NULL) || r;
  4865. r = ((glVertexAttribP1uiv = (PFNGLVERTEXATTRIBP1UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP1uiv")) == NULL) || r;
  4866. r = ((glVertexAttribP2ui = (PFNGLVERTEXATTRIBP2UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP2ui")) == NULL) || r;
  4867. r = ((glVertexAttribP2uiv = (PFNGLVERTEXATTRIBP2UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP2uiv")) == NULL) || r;
  4868. r = ((glVertexAttribP3ui = (PFNGLVERTEXATTRIBP3UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP3ui")) == NULL) || r;
  4869. r = ((glVertexAttribP3uiv = (PFNGLVERTEXATTRIBP3UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP3uiv")) == NULL) || r;
  4870. r = ((glVertexAttribP4ui = (PFNGLVERTEXATTRIBP4UIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP4ui")) == NULL) || r;
  4871. r = ((glVertexAttribP4uiv = (PFNGLVERTEXATTRIBP4UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribP4uiv")) == NULL) || r;
  4872. r = ((glVertexP2ui = (PFNGLVERTEXP2UIPROC)glewGetProcAddress((const GLubyte*)"glVertexP2ui")) == NULL) || r;
  4873. r = ((glVertexP2uiv = (PFNGLVERTEXP2UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexP2uiv")) == NULL) || r;
  4874. r = ((glVertexP3ui = (PFNGLVERTEXP3UIPROC)glewGetProcAddress((const GLubyte*)"glVertexP3ui")) == NULL) || r;
  4875. r = ((glVertexP3uiv = (PFNGLVERTEXP3UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexP3uiv")) == NULL) || r;
  4876. r = ((glVertexP4ui = (PFNGLVERTEXP4UIPROC)glewGetProcAddress((const GLubyte*)"glVertexP4ui")) == NULL) || r;
  4877. r = ((glVertexP4uiv = (PFNGLVERTEXP4UIVPROC)glewGetProcAddress((const GLubyte*)"glVertexP4uiv")) == NULL) || r;
  4878. return r;
  4879. }
  4880. #endif /* GL_ARB_vertex_type_2_10_10_10_rev */
  4881. #ifdef GL_ARB_viewport_array
  4882. static GLboolean _glewInit_GL_ARB_viewport_array (GLEW_CONTEXT_ARG_DEF_INIT)
  4883. {
  4884. GLboolean r = GL_FALSE;
  4885. r = ((glDepthRangeArrayv = (PFNGLDEPTHRANGEARRAYVPROC)glewGetProcAddress((const GLubyte*)"glDepthRangeArrayv")) == NULL) || r;
  4886. r = ((glDepthRangeIndexed = (PFNGLDEPTHRANGEINDEXEDPROC)glewGetProcAddress((const GLubyte*)"glDepthRangeIndexed")) == NULL) || r;
  4887. r = ((glGetDoublei_v = (PFNGLGETDOUBLEI_VPROC)glewGetProcAddress((const GLubyte*)"glGetDoublei_v")) == NULL) || r;
  4888. r = ((glGetFloati_v = (PFNGLGETFLOATI_VPROC)glewGetProcAddress((const GLubyte*)"glGetFloati_v")) == NULL) || r;
  4889. r = ((glScissorArrayv = (PFNGLSCISSORARRAYVPROC)glewGetProcAddress((const GLubyte*)"glScissorArrayv")) == NULL) || r;
  4890. r = ((glScissorIndexed = (PFNGLSCISSORINDEXEDPROC)glewGetProcAddress((const GLubyte*)"glScissorIndexed")) == NULL) || r;
  4891. r = ((glScissorIndexedv = (PFNGLSCISSORINDEXEDVPROC)glewGetProcAddress((const GLubyte*)"glScissorIndexedv")) == NULL) || r;
  4892. r = ((glViewportArrayv = (PFNGLVIEWPORTARRAYVPROC)glewGetProcAddress((const GLubyte*)"glViewportArrayv")) == NULL) || r;
  4893. r = ((glViewportIndexedf = (PFNGLVIEWPORTINDEXEDFPROC)glewGetProcAddress((const GLubyte*)"glViewportIndexedf")) == NULL) || r;
  4894. r = ((glViewportIndexedfv = (PFNGLVIEWPORTINDEXEDFVPROC)glewGetProcAddress((const GLubyte*)"glViewportIndexedfv")) == NULL) || r;
  4895. return r;
  4896. }
  4897. #endif /* GL_ARB_viewport_array */
  4898. #ifdef GL_ARB_window_pos
  4899. static GLboolean _glewInit_GL_ARB_window_pos (GLEW_CONTEXT_ARG_DEF_INIT)
  4900. {
  4901. GLboolean r = GL_FALSE;
  4902. r = ((glWindowPos2dARB = (PFNGLWINDOWPOS2DARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2dARB")) == NULL) || r;
  4903. r = ((glWindowPos2dvARB = (PFNGLWINDOWPOS2DVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2dvARB")) == NULL) || r;
  4904. r = ((glWindowPos2fARB = (PFNGLWINDOWPOS2FARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2fARB")) == NULL) || r;
  4905. r = ((glWindowPos2fvARB = (PFNGLWINDOWPOS2FVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2fvARB")) == NULL) || r;
  4906. r = ((glWindowPos2iARB = (PFNGLWINDOWPOS2IARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2iARB")) == NULL) || r;
  4907. r = ((glWindowPos2ivARB = (PFNGLWINDOWPOS2IVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2ivARB")) == NULL) || r;
  4908. r = ((glWindowPos2sARB = (PFNGLWINDOWPOS2SARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2sARB")) == NULL) || r;
  4909. r = ((glWindowPos2svARB = (PFNGLWINDOWPOS2SVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2svARB")) == NULL) || r;
  4910. r = ((glWindowPos3dARB = (PFNGLWINDOWPOS3DARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3dARB")) == NULL) || r;
  4911. r = ((glWindowPos3dvARB = (PFNGLWINDOWPOS3DVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3dvARB")) == NULL) || r;
  4912. r = ((glWindowPos3fARB = (PFNGLWINDOWPOS3FARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3fARB")) == NULL) || r;
  4913. r = ((glWindowPos3fvARB = (PFNGLWINDOWPOS3FVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3fvARB")) == NULL) || r;
  4914. r = ((glWindowPos3iARB = (PFNGLWINDOWPOS3IARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3iARB")) == NULL) || r;
  4915. r = ((glWindowPos3ivARB = (PFNGLWINDOWPOS3IVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3ivARB")) == NULL) || r;
  4916. r = ((glWindowPos3sARB = (PFNGLWINDOWPOS3SARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3sARB")) == NULL) || r;
  4917. r = ((glWindowPos3svARB = (PFNGLWINDOWPOS3SVARBPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3svARB")) == NULL) || r;
  4918. return r;
  4919. }
  4920. #endif /* GL_ARB_window_pos */
  4921. #ifdef GL_ATIX_point_sprites
  4922. #endif /* GL_ATIX_point_sprites */
  4923. #ifdef GL_ATIX_texture_env_combine3
  4924. #endif /* GL_ATIX_texture_env_combine3 */
  4925. #ifdef GL_ATIX_texture_env_route
  4926. #endif /* GL_ATIX_texture_env_route */
  4927. #ifdef GL_ATIX_vertex_shader_output_point_size
  4928. #endif /* GL_ATIX_vertex_shader_output_point_size */
  4929. #ifdef GL_ATI_draw_buffers
  4930. static GLboolean _glewInit_GL_ATI_draw_buffers (GLEW_CONTEXT_ARG_DEF_INIT)
  4931. {
  4932. GLboolean r = GL_FALSE;
  4933. r = ((glDrawBuffersATI = (PFNGLDRAWBUFFERSATIPROC)glewGetProcAddress((const GLubyte*)"glDrawBuffersATI")) == NULL) || r;
  4934. return r;
  4935. }
  4936. #endif /* GL_ATI_draw_buffers */
  4937. #ifdef GL_ATI_element_array
  4938. static GLboolean _glewInit_GL_ATI_element_array (GLEW_CONTEXT_ARG_DEF_INIT)
  4939. {
  4940. GLboolean r = GL_FALSE;
  4941. r = ((glDrawElementArrayATI = (PFNGLDRAWELEMENTARRAYATIPROC)glewGetProcAddress((const GLubyte*)"glDrawElementArrayATI")) == NULL) || r;
  4942. r = ((glDrawRangeElementArrayATI = (PFNGLDRAWRANGEELEMENTARRAYATIPROC)glewGetProcAddress((const GLubyte*)"glDrawRangeElementArrayATI")) == NULL) || r;
  4943. r = ((glElementPointerATI = (PFNGLELEMENTPOINTERATIPROC)glewGetProcAddress((const GLubyte*)"glElementPointerATI")) == NULL) || r;
  4944. return r;
  4945. }
  4946. #endif /* GL_ATI_element_array */
  4947. #ifdef GL_ATI_envmap_bumpmap
  4948. static GLboolean _glewInit_GL_ATI_envmap_bumpmap (GLEW_CONTEXT_ARG_DEF_INIT)
  4949. {
  4950. GLboolean r = GL_FALSE;
  4951. r = ((glGetTexBumpParameterfvATI = (PFNGLGETTEXBUMPPARAMETERFVATIPROC)glewGetProcAddress((const GLubyte*)"glGetTexBumpParameterfvATI")) == NULL) || r;
  4952. r = ((glGetTexBumpParameterivATI = (PFNGLGETTEXBUMPPARAMETERIVATIPROC)glewGetProcAddress((const GLubyte*)"glGetTexBumpParameterivATI")) == NULL) || r;
  4953. r = ((glTexBumpParameterfvATI = (PFNGLTEXBUMPPARAMETERFVATIPROC)glewGetProcAddress((const GLubyte*)"glTexBumpParameterfvATI")) == NULL) || r;
  4954. r = ((glTexBumpParameterivATI = (PFNGLTEXBUMPPARAMETERIVATIPROC)glewGetProcAddress((const GLubyte*)"glTexBumpParameterivATI")) == NULL) || r;
  4955. return r;
  4956. }
  4957. #endif /* GL_ATI_envmap_bumpmap */
  4958. #ifdef GL_ATI_fragment_shader
  4959. static GLboolean _glewInit_GL_ATI_fragment_shader (GLEW_CONTEXT_ARG_DEF_INIT)
  4960. {
  4961. GLboolean r = GL_FALSE;
  4962. r = ((glAlphaFragmentOp1ATI = (PFNGLALPHAFRAGMENTOP1ATIPROC)glewGetProcAddress((const GLubyte*)"glAlphaFragmentOp1ATI")) == NULL) || r;
  4963. r = ((glAlphaFragmentOp2ATI = (PFNGLALPHAFRAGMENTOP2ATIPROC)glewGetProcAddress((const GLubyte*)"glAlphaFragmentOp2ATI")) == NULL) || r;
  4964. r = ((glAlphaFragmentOp3ATI = (PFNGLALPHAFRAGMENTOP3ATIPROC)glewGetProcAddress((const GLubyte*)"glAlphaFragmentOp3ATI")) == NULL) || r;
  4965. r = ((glBeginFragmentShaderATI = (PFNGLBEGINFRAGMENTSHADERATIPROC)glewGetProcAddress((const GLubyte*)"glBeginFragmentShaderATI")) == NULL) || r;
  4966. r = ((glBindFragmentShaderATI = (PFNGLBINDFRAGMENTSHADERATIPROC)glewGetProcAddress((const GLubyte*)"glBindFragmentShaderATI")) == NULL) || r;
  4967. r = ((glColorFragmentOp1ATI = (PFNGLCOLORFRAGMENTOP1ATIPROC)glewGetProcAddress((const GLubyte*)"glColorFragmentOp1ATI")) == NULL) || r;
  4968. r = ((glColorFragmentOp2ATI = (PFNGLCOLORFRAGMENTOP2ATIPROC)glewGetProcAddress((const GLubyte*)"glColorFragmentOp2ATI")) == NULL) || r;
  4969. r = ((glColorFragmentOp3ATI = (PFNGLCOLORFRAGMENTOP3ATIPROC)glewGetProcAddress((const GLubyte*)"glColorFragmentOp3ATI")) == NULL) || r;
  4970. r = ((glDeleteFragmentShaderATI = (PFNGLDELETEFRAGMENTSHADERATIPROC)glewGetProcAddress((const GLubyte*)"glDeleteFragmentShaderATI")) == NULL) || r;
  4971. r = ((glEndFragmentShaderATI = (PFNGLENDFRAGMENTSHADERATIPROC)glewGetProcAddress((const GLubyte*)"glEndFragmentShaderATI")) == NULL) || r;
  4972. r = ((glGenFragmentShadersATI = (PFNGLGENFRAGMENTSHADERSATIPROC)glewGetProcAddress((const GLubyte*)"glGenFragmentShadersATI")) == NULL) || r;
  4973. r = ((glPassTexCoordATI = (PFNGLPASSTEXCOORDATIPROC)glewGetProcAddress((const GLubyte*)"glPassTexCoordATI")) == NULL) || r;
  4974. r = ((glSampleMapATI = (PFNGLSAMPLEMAPATIPROC)glewGetProcAddress((const GLubyte*)"glSampleMapATI")) == NULL) || r;
  4975. r = ((glSetFragmentShaderConstantATI = (PFNGLSETFRAGMENTSHADERCONSTANTATIPROC)glewGetProcAddress((const GLubyte*)"glSetFragmentShaderConstantATI")) == NULL) || r;
  4976. return r;
  4977. }
  4978. #endif /* GL_ATI_fragment_shader */
  4979. #ifdef GL_ATI_map_object_buffer
  4980. static GLboolean _glewInit_GL_ATI_map_object_buffer (GLEW_CONTEXT_ARG_DEF_INIT)
  4981. {
  4982. GLboolean r = GL_FALSE;
  4983. r = ((glMapObjectBufferATI = (PFNGLMAPOBJECTBUFFERATIPROC)glewGetProcAddress((const GLubyte*)"glMapObjectBufferATI")) == NULL) || r;
  4984. r = ((glUnmapObjectBufferATI = (PFNGLUNMAPOBJECTBUFFERATIPROC)glewGetProcAddress((const GLubyte*)"glUnmapObjectBufferATI")) == NULL) || r;
  4985. return r;
  4986. }
  4987. #endif /* GL_ATI_map_object_buffer */
  4988. #ifdef GL_ATI_meminfo
  4989. #endif /* GL_ATI_meminfo */
  4990. #ifdef GL_ATI_pn_triangles
  4991. static GLboolean _glewInit_GL_ATI_pn_triangles (GLEW_CONTEXT_ARG_DEF_INIT)
  4992. {
  4993. GLboolean r = GL_FALSE;
  4994. r = ((glPNTrianglesfATI = (PFNGLPNTRIANGLESFATIPROC)glewGetProcAddress((const GLubyte*)"glPNTrianglesfATI")) == NULL) || r;
  4995. r = ((glPNTrianglesiATI = (PFNGLPNTRIANGLESIATIPROC)glewGetProcAddress((const GLubyte*)"glPNTrianglesiATI")) == NULL) || r;
  4996. return r;
  4997. }
  4998. #endif /* GL_ATI_pn_triangles */
  4999. #ifdef GL_ATI_separate_stencil
  5000. static GLboolean _glewInit_GL_ATI_separate_stencil (GLEW_CONTEXT_ARG_DEF_INIT)
  5001. {
  5002. GLboolean r = GL_FALSE;
  5003. r = ((glStencilFuncSeparateATI = (PFNGLSTENCILFUNCSEPARATEATIPROC)glewGetProcAddress((const GLubyte*)"glStencilFuncSeparateATI")) == NULL) || r;
  5004. r = ((glStencilOpSeparateATI = (PFNGLSTENCILOPSEPARATEATIPROC)glewGetProcAddress((const GLubyte*)"glStencilOpSeparateATI")) == NULL) || r;
  5005. return r;
  5006. }
  5007. #endif /* GL_ATI_separate_stencil */
  5008. #ifdef GL_ATI_shader_texture_lod
  5009. #endif /* GL_ATI_shader_texture_lod */
  5010. #ifdef GL_ATI_text_fragment_shader
  5011. #endif /* GL_ATI_text_fragment_shader */
  5012. #ifdef GL_ATI_texture_compression_3dc
  5013. #endif /* GL_ATI_texture_compression_3dc */
  5014. #ifdef GL_ATI_texture_env_combine3
  5015. #endif /* GL_ATI_texture_env_combine3 */
  5016. #ifdef GL_ATI_texture_float
  5017. #endif /* GL_ATI_texture_float */
  5018. #ifdef GL_ATI_texture_mirror_once
  5019. #endif /* GL_ATI_texture_mirror_once */
  5020. #ifdef GL_ATI_vertex_array_object
  5021. static GLboolean _glewInit_GL_ATI_vertex_array_object (GLEW_CONTEXT_ARG_DEF_INIT)
  5022. {
  5023. GLboolean r = GL_FALSE;
  5024. r = ((glArrayObjectATI = (PFNGLARRAYOBJECTATIPROC)glewGetProcAddress((const GLubyte*)"glArrayObjectATI")) == NULL) || r;
  5025. r = ((glFreeObjectBufferATI = (PFNGLFREEOBJECTBUFFERATIPROC)glewGetProcAddress((const GLubyte*)"glFreeObjectBufferATI")) == NULL) || r;
  5026. r = ((glGetArrayObjectfvATI = (PFNGLGETARRAYOBJECTFVATIPROC)glewGetProcAddress((const GLubyte*)"glGetArrayObjectfvATI")) == NULL) || r;
  5027. r = ((glGetArrayObjectivATI = (PFNGLGETARRAYOBJECTIVATIPROC)glewGetProcAddress((const GLubyte*)"glGetArrayObjectivATI")) == NULL) || r;
  5028. r = ((glGetObjectBufferfvATI = (PFNGLGETOBJECTBUFFERFVATIPROC)glewGetProcAddress((const GLubyte*)"glGetObjectBufferfvATI")) == NULL) || r;
  5029. r = ((glGetObjectBufferivATI = (PFNGLGETOBJECTBUFFERIVATIPROC)glewGetProcAddress((const GLubyte*)"glGetObjectBufferivATI")) == NULL) || r;
  5030. r = ((glGetVariantArrayObjectfvATI = (PFNGLGETVARIANTARRAYOBJECTFVATIPROC)glewGetProcAddress((const GLubyte*)"glGetVariantArrayObjectfvATI")) == NULL) || r;
  5031. r = ((glGetVariantArrayObjectivATI = (PFNGLGETVARIANTARRAYOBJECTIVATIPROC)glewGetProcAddress((const GLubyte*)"glGetVariantArrayObjectivATI")) == NULL) || r;
  5032. r = ((glIsObjectBufferATI = (PFNGLISOBJECTBUFFERATIPROC)glewGetProcAddress((const GLubyte*)"glIsObjectBufferATI")) == NULL) || r;
  5033. r = ((glNewObjectBufferATI = (PFNGLNEWOBJECTBUFFERATIPROC)glewGetProcAddress((const GLubyte*)"glNewObjectBufferATI")) == NULL) || r;
  5034. r = ((glUpdateObjectBufferATI = (PFNGLUPDATEOBJECTBUFFERATIPROC)glewGetProcAddress((const GLubyte*)"glUpdateObjectBufferATI")) == NULL) || r;
  5035. r = ((glVariantArrayObjectATI = (PFNGLVARIANTARRAYOBJECTATIPROC)glewGetProcAddress((const GLubyte*)"glVariantArrayObjectATI")) == NULL) || r;
  5036. return r;
  5037. }
  5038. #endif /* GL_ATI_vertex_array_object */
  5039. #ifdef GL_ATI_vertex_attrib_array_object
  5040. static GLboolean _glewInit_GL_ATI_vertex_attrib_array_object (GLEW_CONTEXT_ARG_DEF_INIT)
  5041. {
  5042. GLboolean r = GL_FALSE;
  5043. r = ((glGetVertexAttribArrayObjectfvATI = (PFNGLGETVERTEXATTRIBARRAYOBJECTFVATIPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribArrayObjectfvATI")) == NULL) || r;
  5044. r = ((glGetVertexAttribArrayObjectivATI = (PFNGLGETVERTEXATTRIBARRAYOBJECTIVATIPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribArrayObjectivATI")) == NULL) || r;
  5045. r = ((glVertexAttribArrayObjectATI = (PFNGLVERTEXATTRIBARRAYOBJECTATIPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribArrayObjectATI")) == NULL) || r;
  5046. return r;
  5047. }
  5048. #endif /* GL_ATI_vertex_attrib_array_object */
  5049. #ifdef GL_ATI_vertex_streams
  5050. static GLboolean _glewInit_GL_ATI_vertex_streams (GLEW_CONTEXT_ARG_DEF_INIT)
  5051. {
  5052. GLboolean r = GL_FALSE;
  5053. r = ((glClientActiveVertexStreamATI = (PFNGLCLIENTACTIVEVERTEXSTREAMATIPROC)glewGetProcAddress((const GLubyte*)"glClientActiveVertexStreamATI")) == NULL) || r;
  5054. r = ((glNormalStream3bATI = (PFNGLNORMALSTREAM3BATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3bATI")) == NULL) || r;
  5055. r = ((glNormalStream3bvATI = (PFNGLNORMALSTREAM3BVATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3bvATI")) == NULL) || r;
  5056. r = ((glNormalStream3dATI = (PFNGLNORMALSTREAM3DATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3dATI")) == NULL) || r;
  5057. r = ((glNormalStream3dvATI = (PFNGLNORMALSTREAM3DVATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3dvATI")) == NULL) || r;
  5058. r = ((glNormalStream3fATI = (PFNGLNORMALSTREAM3FATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3fATI")) == NULL) || r;
  5059. r = ((glNormalStream3fvATI = (PFNGLNORMALSTREAM3FVATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3fvATI")) == NULL) || r;
  5060. r = ((glNormalStream3iATI = (PFNGLNORMALSTREAM3IATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3iATI")) == NULL) || r;
  5061. r = ((glNormalStream3ivATI = (PFNGLNORMALSTREAM3IVATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3ivATI")) == NULL) || r;
  5062. r = ((glNormalStream3sATI = (PFNGLNORMALSTREAM3SATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3sATI")) == NULL) || r;
  5063. r = ((glNormalStream3svATI = (PFNGLNORMALSTREAM3SVATIPROC)glewGetProcAddress((const GLubyte*)"glNormalStream3svATI")) == NULL) || r;
  5064. r = ((glVertexBlendEnvfATI = (PFNGLVERTEXBLENDENVFATIPROC)glewGetProcAddress((const GLubyte*)"glVertexBlendEnvfATI")) == NULL) || r;
  5065. r = ((glVertexBlendEnviATI = (PFNGLVERTEXBLENDENVIATIPROC)glewGetProcAddress((const GLubyte*)"glVertexBlendEnviATI")) == NULL) || r;
  5066. r = ((glVertexStream1dATI = (PFNGLVERTEXSTREAM1DATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1dATI")) == NULL) || r;
  5067. r = ((glVertexStream1dvATI = (PFNGLVERTEXSTREAM1DVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1dvATI")) == NULL) || r;
  5068. r = ((glVertexStream1fATI = (PFNGLVERTEXSTREAM1FATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1fATI")) == NULL) || r;
  5069. r = ((glVertexStream1fvATI = (PFNGLVERTEXSTREAM1FVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1fvATI")) == NULL) || r;
  5070. r = ((glVertexStream1iATI = (PFNGLVERTEXSTREAM1IATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1iATI")) == NULL) || r;
  5071. r = ((glVertexStream1ivATI = (PFNGLVERTEXSTREAM1IVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1ivATI")) == NULL) || r;
  5072. r = ((glVertexStream1sATI = (PFNGLVERTEXSTREAM1SATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1sATI")) == NULL) || r;
  5073. r = ((glVertexStream1svATI = (PFNGLVERTEXSTREAM1SVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream1svATI")) == NULL) || r;
  5074. r = ((glVertexStream2dATI = (PFNGLVERTEXSTREAM2DATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2dATI")) == NULL) || r;
  5075. r = ((glVertexStream2dvATI = (PFNGLVERTEXSTREAM2DVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2dvATI")) == NULL) || r;
  5076. r = ((glVertexStream2fATI = (PFNGLVERTEXSTREAM2FATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2fATI")) == NULL) || r;
  5077. r = ((glVertexStream2fvATI = (PFNGLVERTEXSTREAM2FVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2fvATI")) == NULL) || r;
  5078. r = ((glVertexStream2iATI = (PFNGLVERTEXSTREAM2IATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2iATI")) == NULL) || r;
  5079. r = ((glVertexStream2ivATI = (PFNGLVERTEXSTREAM2IVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2ivATI")) == NULL) || r;
  5080. r = ((glVertexStream2sATI = (PFNGLVERTEXSTREAM2SATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2sATI")) == NULL) || r;
  5081. r = ((glVertexStream2svATI = (PFNGLVERTEXSTREAM2SVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream2svATI")) == NULL) || r;
  5082. r = ((glVertexStream3dATI = (PFNGLVERTEXSTREAM3DATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3dATI")) == NULL) || r;
  5083. r = ((glVertexStream3dvATI = (PFNGLVERTEXSTREAM3DVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3dvATI")) == NULL) || r;
  5084. r = ((glVertexStream3fATI = (PFNGLVERTEXSTREAM3FATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3fATI")) == NULL) || r;
  5085. r = ((glVertexStream3fvATI = (PFNGLVERTEXSTREAM3FVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3fvATI")) == NULL) || r;
  5086. r = ((glVertexStream3iATI = (PFNGLVERTEXSTREAM3IATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3iATI")) == NULL) || r;
  5087. r = ((glVertexStream3ivATI = (PFNGLVERTEXSTREAM3IVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3ivATI")) == NULL) || r;
  5088. r = ((glVertexStream3sATI = (PFNGLVERTEXSTREAM3SATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3sATI")) == NULL) || r;
  5089. r = ((glVertexStream3svATI = (PFNGLVERTEXSTREAM3SVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream3svATI")) == NULL) || r;
  5090. r = ((glVertexStream4dATI = (PFNGLVERTEXSTREAM4DATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4dATI")) == NULL) || r;
  5091. r = ((glVertexStream4dvATI = (PFNGLVERTEXSTREAM4DVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4dvATI")) == NULL) || r;
  5092. r = ((glVertexStream4fATI = (PFNGLVERTEXSTREAM4FATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4fATI")) == NULL) || r;
  5093. r = ((glVertexStream4fvATI = (PFNGLVERTEXSTREAM4FVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4fvATI")) == NULL) || r;
  5094. r = ((glVertexStream4iATI = (PFNGLVERTEXSTREAM4IATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4iATI")) == NULL) || r;
  5095. r = ((glVertexStream4ivATI = (PFNGLVERTEXSTREAM4IVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4ivATI")) == NULL) || r;
  5096. r = ((glVertexStream4sATI = (PFNGLVERTEXSTREAM4SATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4sATI")) == NULL) || r;
  5097. r = ((glVertexStream4svATI = (PFNGLVERTEXSTREAM4SVATIPROC)glewGetProcAddress((const GLubyte*)"glVertexStream4svATI")) == NULL) || r;
  5098. return r;
  5099. }
  5100. #endif /* GL_ATI_vertex_streams */
  5101. #ifdef GL_EXT_422_pixels
  5102. #endif /* GL_EXT_422_pixels */
  5103. #ifdef GL_EXT_Cg_shader
  5104. #endif /* GL_EXT_Cg_shader */
  5105. #ifdef GL_EXT_abgr
  5106. #endif /* GL_EXT_abgr */
  5107. #ifdef GL_EXT_bgra
  5108. #endif /* GL_EXT_bgra */
  5109. #ifdef GL_EXT_bindable_uniform
  5110. static GLboolean _glewInit_GL_EXT_bindable_uniform (GLEW_CONTEXT_ARG_DEF_INIT)
  5111. {
  5112. GLboolean r = GL_FALSE;
  5113. r = ((glGetUniformBufferSizeEXT = (PFNGLGETUNIFORMBUFFERSIZEEXTPROC)glewGetProcAddress((const GLubyte*)"glGetUniformBufferSizeEXT")) == NULL) || r;
  5114. r = ((glGetUniformOffsetEXT = (PFNGLGETUNIFORMOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glGetUniformOffsetEXT")) == NULL) || r;
  5115. r = ((glUniformBufferEXT = (PFNGLUNIFORMBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glUniformBufferEXT")) == NULL) || r;
  5116. return r;
  5117. }
  5118. #endif /* GL_EXT_bindable_uniform */
  5119. #ifdef GL_EXT_blend_color
  5120. static GLboolean _glewInit_GL_EXT_blend_color (GLEW_CONTEXT_ARG_DEF_INIT)
  5121. {
  5122. GLboolean r = GL_FALSE;
  5123. r = ((glBlendColorEXT = (PFNGLBLENDCOLOREXTPROC)glewGetProcAddress((const GLubyte*)"glBlendColorEXT")) == NULL) || r;
  5124. return r;
  5125. }
  5126. #endif /* GL_EXT_blend_color */
  5127. #ifdef GL_EXT_blend_equation_separate
  5128. static GLboolean _glewInit_GL_EXT_blend_equation_separate (GLEW_CONTEXT_ARG_DEF_INIT)
  5129. {
  5130. GLboolean r = GL_FALSE;
  5131. r = ((glBlendEquationSeparateEXT = (PFNGLBLENDEQUATIONSEPARATEEXTPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationSeparateEXT")) == NULL) || r;
  5132. return r;
  5133. }
  5134. #endif /* GL_EXT_blend_equation_separate */
  5135. #ifdef GL_EXT_blend_func_separate
  5136. static GLboolean _glewInit_GL_EXT_blend_func_separate (GLEW_CONTEXT_ARG_DEF_INIT)
  5137. {
  5138. GLboolean r = GL_FALSE;
  5139. r = ((glBlendFuncSeparateEXT = (PFNGLBLENDFUNCSEPARATEEXTPROC)glewGetProcAddress((const GLubyte*)"glBlendFuncSeparateEXT")) == NULL) || r;
  5140. return r;
  5141. }
  5142. #endif /* GL_EXT_blend_func_separate */
  5143. #ifdef GL_EXT_blend_logic_op
  5144. #endif /* GL_EXT_blend_logic_op */
  5145. #ifdef GL_EXT_blend_minmax
  5146. static GLboolean _glewInit_GL_EXT_blend_minmax (GLEW_CONTEXT_ARG_DEF_INIT)
  5147. {
  5148. GLboolean r = GL_FALSE;
  5149. r = ((glBlendEquationEXT = (PFNGLBLENDEQUATIONEXTPROC)glewGetProcAddress((const GLubyte*)"glBlendEquationEXT")) == NULL) || r;
  5150. return r;
  5151. }
  5152. #endif /* GL_EXT_blend_minmax */
  5153. #ifdef GL_EXT_blend_subtract
  5154. #endif /* GL_EXT_blend_subtract */
  5155. #ifdef GL_EXT_clip_volume_hint
  5156. #endif /* GL_EXT_clip_volume_hint */
  5157. #ifdef GL_EXT_cmyka
  5158. #endif /* GL_EXT_cmyka */
  5159. #ifdef GL_EXT_color_subtable
  5160. static GLboolean _glewInit_GL_EXT_color_subtable (GLEW_CONTEXT_ARG_DEF_INIT)
  5161. {
  5162. GLboolean r = GL_FALSE;
  5163. r = ((glColorSubTableEXT = (PFNGLCOLORSUBTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"glColorSubTableEXT")) == NULL) || r;
  5164. r = ((glCopyColorSubTableEXT = (PFNGLCOPYCOLORSUBTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyColorSubTableEXT")) == NULL) || r;
  5165. return r;
  5166. }
  5167. #endif /* GL_EXT_color_subtable */
  5168. #ifdef GL_EXT_compiled_vertex_array
  5169. static GLboolean _glewInit_GL_EXT_compiled_vertex_array (GLEW_CONTEXT_ARG_DEF_INIT)
  5170. {
  5171. GLboolean r = GL_FALSE;
  5172. r = ((glLockArraysEXT = (PFNGLLOCKARRAYSEXTPROC)glewGetProcAddress((const GLubyte*)"glLockArraysEXT")) == NULL) || r;
  5173. r = ((glUnlockArraysEXT = (PFNGLUNLOCKARRAYSEXTPROC)glewGetProcAddress((const GLubyte*)"glUnlockArraysEXT")) == NULL) || r;
  5174. return r;
  5175. }
  5176. #endif /* GL_EXT_compiled_vertex_array */
  5177. #ifdef GL_EXT_convolution
  5178. static GLboolean _glewInit_GL_EXT_convolution (GLEW_CONTEXT_ARG_DEF_INIT)
  5179. {
  5180. GLboolean r = GL_FALSE;
  5181. r = ((glConvolutionFilter1DEXT = (PFNGLCONVOLUTIONFILTER1DEXTPROC)glewGetProcAddress((const GLubyte*)"glConvolutionFilter1DEXT")) == NULL) || r;
  5182. r = ((glConvolutionFilter2DEXT = (PFNGLCONVOLUTIONFILTER2DEXTPROC)glewGetProcAddress((const GLubyte*)"glConvolutionFilter2DEXT")) == NULL) || r;
  5183. r = ((glConvolutionParameterfEXT = (PFNGLCONVOLUTIONPARAMETERFEXTPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameterfEXT")) == NULL) || r;
  5184. r = ((glConvolutionParameterfvEXT = (PFNGLCONVOLUTIONPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameterfvEXT")) == NULL) || r;
  5185. r = ((glConvolutionParameteriEXT = (PFNGLCONVOLUTIONPARAMETERIEXTPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameteriEXT")) == NULL) || r;
  5186. r = ((glConvolutionParameterivEXT = (PFNGLCONVOLUTIONPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glConvolutionParameterivEXT")) == NULL) || r;
  5187. r = ((glCopyConvolutionFilter1DEXT = (PFNGLCOPYCONVOLUTIONFILTER1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyConvolutionFilter1DEXT")) == NULL) || r;
  5188. r = ((glCopyConvolutionFilter2DEXT = (PFNGLCOPYCONVOLUTIONFILTER2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyConvolutionFilter2DEXT")) == NULL) || r;
  5189. r = ((glGetConvolutionFilterEXT = (PFNGLGETCONVOLUTIONFILTEREXTPROC)glewGetProcAddress((const GLubyte*)"glGetConvolutionFilterEXT")) == NULL) || r;
  5190. r = ((glGetConvolutionParameterfvEXT = (PFNGLGETCONVOLUTIONPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetConvolutionParameterfvEXT")) == NULL) || r;
  5191. r = ((glGetConvolutionParameterivEXT = (PFNGLGETCONVOLUTIONPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetConvolutionParameterivEXT")) == NULL) || r;
  5192. r = ((glGetSeparableFilterEXT = (PFNGLGETSEPARABLEFILTEREXTPROC)glewGetProcAddress((const GLubyte*)"glGetSeparableFilterEXT")) == NULL) || r;
  5193. r = ((glSeparableFilter2DEXT = (PFNGLSEPARABLEFILTER2DEXTPROC)glewGetProcAddress((const GLubyte*)"glSeparableFilter2DEXT")) == NULL) || r;
  5194. return r;
  5195. }
  5196. #endif /* GL_EXT_convolution */
  5197. #ifdef GL_EXT_coordinate_frame
  5198. static GLboolean _glewInit_GL_EXT_coordinate_frame (GLEW_CONTEXT_ARG_DEF_INIT)
  5199. {
  5200. GLboolean r = GL_FALSE;
  5201. r = ((glBinormalPointerEXT = (PFNGLBINORMALPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glBinormalPointerEXT")) == NULL) || r;
  5202. r = ((glTangentPointerEXT = (PFNGLTANGENTPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glTangentPointerEXT")) == NULL) || r;
  5203. return r;
  5204. }
  5205. #endif /* GL_EXT_coordinate_frame */
  5206. #ifdef GL_EXT_copy_texture
  5207. static GLboolean _glewInit_GL_EXT_copy_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  5208. {
  5209. GLboolean r = GL_FALSE;
  5210. r = ((glCopyTexImage1DEXT = (PFNGLCOPYTEXIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTexImage1DEXT")) == NULL) || r;
  5211. r = ((glCopyTexImage2DEXT = (PFNGLCOPYTEXIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTexImage2DEXT")) == NULL) || r;
  5212. r = ((glCopyTexSubImage1DEXT = (PFNGLCOPYTEXSUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage1DEXT")) == NULL) || r;
  5213. r = ((glCopyTexSubImage2DEXT = (PFNGLCOPYTEXSUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage2DEXT")) == NULL) || r;
  5214. r = ((glCopyTexSubImage3DEXT = (PFNGLCOPYTEXSUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTexSubImage3DEXT")) == NULL) || r;
  5215. return r;
  5216. }
  5217. #endif /* GL_EXT_copy_texture */
  5218. #ifdef GL_EXT_cull_vertex
  5219. static GLboolean _glewInit_GL_EXT_cull_vertex (GLEW_CONTEXT_ARG_DEF_INIT)
  5220. {
  5221. GLboolean r = GL_FALSE;
  5222. r = ((glCullParameterdvEXT = (PFNGLCULLPARAMETERDVEXTPROC)glewGetProcAddress((const GLubyte*)"glCullParameterdvEXT")) == NULL) || r;
  5223. r = ((glCullParameterfvEXT = (PFNGLCULLPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glCullParameterfvEXT")) == NULL) || r;
  5224. return r;
  5225. }
  5226. #endif /* GL_EXT_cull_vertex */
  5227. #ifdef GL_EXT_debug_marker
  5228. static GLboolean _glewInit_GL_EXT_debug_marker (GLEW_CONTEXT_ARG_DEF_INIT)
  5229. {
  5230. GLboolean r = GL_FALSE;
  5231. r = ((glInsertEventMarkerEXT = (PFNGLINSERTEVENTMARKEREXTPROC)glewGetProcAddress((const GLubyte*)"glInsertEventMarkerEXT")) == NULL) || r;
  5232. r = ((glPopGroupMarkerEXT = (PFNGLPOPGROUPMARKEREXTPROC)glewGetProcAddress((const GLubyte*)"glPopGroupMarkerEXT")) == NULL) || r;
  5233. r = ((glPushGroupMarkerEXT = (PFNGLPUSHGROUPMARKEREXTPROC)glewGetProcAddress((const GLubyte*)"glPushGroupMarkerEXT")) == NULL) || r;
  5234. return r;
  5235. }
  5236. #endif /* GL_EXT_debug_marker */
  5237. #ifdef GL_EXT_depth_bounds_test
  5238. static GLboolean _glewInit_GL_EXT_depth_bounds_test (GLEW_CONTEXT_ARG_DEF_INIT)
  5239. {
  5240. GLboolean r = GL_FALSE;
  5241. r = ((glDepthBoundsEXT = (PFNGLDEPTHBOUNDSEXTPROC)glewGetProcAddress((const GLubyte*)"glDepthBoundsEXT")) == NULL) || r;
  5242. return r;
  5243. }
  5244. #endif /* GL_EXT_depth_bounds_test */
  5245. #ifdef GL_EXT_direct_state_access
  5246. static GLboolean _glewInit_GL_EXT_direct_state_access (GLEW_CONTEXT_ARG_DEF_INIT)
  5247. {
  5248. GLboolean r = GL_FALSE;
  5249. r = ((glBindMultiTextureEXT = (PFNGLBINDMULTITEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glBindMultiTextureEXT")) == NULL) || r;
  5250. r = ((glCheckNamedFramebufferStatusEXT = (PFNGLCHECKNAMEDFRAMEBUFFERSTATUSEXTPROC)glewGetProcAddress((const GLubyte*)"glCheckNamedFramebufferStatusEXT")) == NULL) || r;
  5251. r = ((glClientAttribDefaultEXT = (PFNGLCLIENTATTRIBDEFAULTEXTPROC)glewGetProcAddress((const GLubyte*)"glClientAttribDefaultEXT")) == NULL) || r;
  5252. r = ((glCompressedMultiTexImage1DEXT = (PFNGLCOMPRESSEDMULTITEXIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedMultiTexImage1DEXT")) == NULL) || r;
  5253. r = ((glCompressedMultiTexImage2DEXT = (PFNGLCOMPRESSEDMULTITEXIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedMultiTexImage2DEXT")) == NULL) || r;
  5254. r = ((glCompressedMultiTexImage3DEXT = (PFNGLCOMPRESSEDMULTITEXIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedMultiTexImage3DEXT")) == NULL) || r;
  5255. r = ((glCompressedMultiTexSubImage1DEXT = (PFNGLCOMPRESSEDMULTITEXSUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedMultiTexSubImage1DEXT")) == NULL) || r;
  5256. r = ((glCompressedMultiTexSubImage2DEXT = (PFNGLCOMPRESSEDMULTITEXSUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedMultiTexSubImage2DEXT")) == NULL) || r;
  5257. r = ((glCompressedMultiTexSubImage3DEXT = (PFNGLCOMPRESSEDMULTITEXSUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedMultiTexSubImage3DEXT")) == NULL) || r;
  5258. r = ((glCompressedTextureImage1DEXT = (PFNGLCOMPRESSEDTEXTUREIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedTextureImage1DEXT")) == NULL) || r;
  5259. r = ((glCompressedTextureImage2DEXT = (PFNGLCOMPRESSEDTEXTUREIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedTextureImage2DEXT")) == NULL) || r;
  5260. r = ((glCompressedTextureImage3DEXT = (PFNGLCOMPRESSEDTEXTUREIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedTextureImage3DEXT")) == NULL) || r;
  5261. r = ((glCompressedTextureSubImage1DEXT = (PFNGLCOMPRESSEDTEXTURESUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedTextureSubImage1DEXT")) == NULL) || r;
  5262. r = ((glCompressedTextureSubImage2DEXT = (PFNGLCOMPRESSEDTEXTURESUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedTextureSubImage2DEXT")) == NULL) || r;
  5263. r = ((glCompressedTextureSubImage3DEXT = (PFNGLCOMPRESSEDTEXTURESUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCompressedTextureSubImage3DEXT")) == NULL) || r;
  5264. r = ((glCopyMultiTexImage1DEXT = (PFNGLCOPYMULTITEXIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyMultiTexImage1DEXT")) == NULL) || r;
  5265. r = ((glCopyMultiTexImage2DEXT = (PFNGLCOPYMULTITEXIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyMultiTexImage2DEXT")) == NULL) || r;
  5266. r = ((glCopyMultiTexSubImage1DEXT = (PFNGLCOPYMULTITEXSUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyMultiTexSubImage1DEXT")) == NULL) || r;
  5267. r = ((glCopyMultiTexSubImage2DEXT = (PFNGLCOPYMULTITEXSUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyMultiTexSubImage2DEXT")) == NULL) || r;
  5268. r = ((glCopyMultiTexSubImage3DEXT = (PFNGLCOPYMULTITEXSUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyMultiTexSubImage3DEXT")) == NULL) || r;
  5269. r = ((glCopyTextureImage1DEXT = (PFNGLCOPYTEXTUREIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTextureImage1DEXT")) == NULL) || r;
  5270. r = ((glCopyTextureImage2DEXT = (PFNGLCOPYTEXTUREIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTextureImage2DEXT")) == NULL) || r;
  5271. r = ((glCopyTextureSubImage1DEXT = (PFNGLCOPYTEXTURESUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTextureSubImage1DEXT")) == NULL) || r;
  5272. r = ((glCopyTextureSubImage2DEXT = (PFNGLCOPYTEXTURESUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTextureSubImage2DEXT")) == NULL) || r;
  5273. r = ((glCopyTextureSubImage3DEXT = (PFNGLCOPYTEXTURESUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glCopyTextureSubImage3DEXT")) == NULL) || r;
  5274. r = ((glDisableClientStateIndexedEXT = (PFNGLDISABLECLIENTSTATEINDEXEDEXTPROC)glewGetProcAddress((const GLubyte*)"glDisableClientStateIndexedEXT")) == NULL) || r;
  5275. r = ((glDisableClientStateiEXT = (PFNGLDISABLECLIENTSTATEIEXTPROC)glewGetProcAddress((const GLubyte*)"glDisableClientStateiEXT")) == NULL) || r;
  5276. r = ((glDisableVertexArrayAttribEXT = (PFNGLDISABLEVERTEXARRAYATTRIBEXTPROC)glewGetProcAddress((const GLubyte*)"glDisableVertexArrayAttribEXT")) == NULL) || r;
  5277. r = ((glDisableVertexArrayEXT = (PFNGLDISABLEVERTEXARRAYEXTPROC)glewGetProcAddress((const GLubyte*)"glDisableVertexArrayEXT")) == NULL) || r;
  5278. r = ((glEnableClientStateIndexedEXT = (PFNGLENABLECLIENTSTATEINDEXEDEXTPROC)glewGetProcAddress((const GLubyte*)"glEnableClientStateIndexedEXT")) == NULL) || r;
  5279. r = ((glEnableClientStateiEXT = (PFNGLENABLECLIENTSTATEIEXTPROC)glewGetProcAddress((const GLubyte*)"glEnableClientStateiEXT")) == NULL) || r;
  5280. r = ((glEnableVertexArrayAttribEXT = (PFNGLENABLEVERTEXARRAYATTRIBEXTPROC)glewGetProcAddress((const GLubyte*)"glEnableVertexArrayAttribEXT")) == NULL) || r;
  5281. r = ((glEnableVertexArrayEXT = (PFNGLENABLEVERTEXARRAYEXTPROC)glewGetProcAddress((const GLubyte*)"glEnableVertexArrayEXT")) == NULL) || r;
  5282. r = ((glFlushMappedNamedBufferRangeEXT = (PFNGLFLUSHMAPPEDNAMEDBUFFERRANGEEXTPROC)glewGetProcAddress((const GLubyte*)"glFlushMappedNamedBufferRangeEXT")) == NULL) || r;
  5283. r = ((glFramebufferDrawBufferEXT = (PFNGLFRAMEBUFFERDRAWBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferDrawBufferEXT")) == NULL) || r;
  5284. r = ((glFramebufferDrawBuffersEXT = (PFNGLFRAMEBUFFERDRAWBUFFERSEXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferDrawBuffersEXT")) == NULL) || r;
  5285. r = ((glFramebufferReadBufferEXT = (PFNGLFRAMEBUFFERREADBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferReadBufferEXT")) == NULL) || r;
  5286. r = ((glGenerateMultiTexMipmapEXT = (PFNGLGENERATEMULTITEXMIPMAPEXTPROC)glewGetProcAddress((const GLubyte*)"glGenerateMultiTexMipmapEXT")) == NULL) || r;
  5287. r = ((glGenerateTextureMipmapEXT = (PFNGLGENERATETEXTUREMIPMAPEXTPROC)glewGetProcAddress((const GLubyte*)"glGenerateTextureMipmapEXT")) == NULL) || r;
  5288. r = ((glGetCompressedMultiTexImageEXT = (PFNGLGETCOMPRESSEDMULTITEXIMAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glGetCompressedMultiTexImageEXT")) == NULL) || r;
  5289. r = ((glGetCompressedTextureImageEXT = (PFNGLGETCOMPRESSEDTEXTUREIMAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glGetCompressedTextureImageEXT")) == NULL) || r;
  5290. r = ((glGetDoubleIndexedvEXT = (PFNGLGETDOUBLEINDEXEDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetDoubleIndexedvEXT")) == NULL) || r;
  5291. r = ((glGetDoublei_vEXT = (PFNGLGETDOUBLEI_VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetDoublei_vEXT")) == NULL) || r;
  5292. r = ((glGetFloatIndexedvEXT = (PFNGLGETFLOATINDEXEDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFloatIndexedvEXT")) == NULL) || r;
  5293. r = ((glGetFloati_vEXT = (PFNGLGETFLOATI_VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFloati_vEXT")) == NULL) || r;
  5294. r = ((glGetFramebufferParameterivEXT = (PFNGLGETFRAMEBUFFERPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFramebufferParameterivEXT")) == NULL) || r;
  5295. r = ((glGetMultiTexEnvfvEXT = (PFNGLGETMULTITEXENVFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexEnvfvEXT")) == NULL) || r;
  5296. r = ((glGetMultiTexEnvivEXT = (PFNGLGETMULTITEXENVIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexEnvivEXT")) == NULL) || r;
  5297. r = ((glGetMultiTexGendvEXT = (PFNGLGETMULTITEXGENDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexGendvEXT")) == NULL) || r;
  5298. r = ((glGetMultiTexGenfvEXT = (PFNGLGETMULTITEXGENFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexGenfvEXT")) == NULL) || r;
  5299. r = ((glGetMultiTexGenivEXT = (PFNGLGETMULTITEXGENIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexGenivEXT")) == NULL) || r;
  5300. r = ((glGetMultiTexImageEXT = (PFNGLGETMULTITEXIMAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexImageEXT")) == NULL) || r;
  5301. r = ((glGetMultiTexLevelParameterfvEXT = (PFNGLGETMULTITEXLEVELPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexLevelParameterfvEXT")) == NULL) || r;
  5302. r = ((glGetMultiTexLevelParameterivEXT = (PFNGLGETMULTITEXLEVELPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexLevelParameterivEXT")) == NULL) || r;
  5303. r = ((glGetMultiTexParameterIivEXT = (PFNGLGETMULTITEXPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexParameterIivEXT")) == NULL) || r;
  5304. r = ((glGetMultiTexParameterIuivEXT = (PFNGLGETMULTITEXPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexParameterIuivEXT")) == NULL) || r;
  5305. r = ((glGetMultiTexParameterfvEXT = (PFNGLGETMULTITEXPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexParameterfvEXT")) == NULL) || r;
  5306. r = ((glGetMultiTexParameterivEXT = (PFNGLGETMULTITEXPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMultiTexParameterivEXT")) == NULL) || r;
  5307. r = ((glGetNamedBufferParameterivEXT = (PFNGLGETNAMEDBUFFERPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedBufferParameterivEXT")) == NULL) || r;
  5308. r = ((glGetNamedBufferPointervEXT = (PFNGLGETNAMEDBUFFERPOINTERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedBufferPointervEXT")) == NULL) || r;
  5309. r = ((glGetNamedBufferSubDataEXT = (PFNGLGETNAMEDBUFFERSUBDATAEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedBufferSubDataEXT")) == NULL) || r;
  5310. r = ((glGetNamedFramebufferAttachmentParameterivEXT = (PFNGLGETNAMEDFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedFramebufferAttachmentParameterivEXT")) == NULL) || r;
  5311. r = ((glGetNamedProgramLocalParameterIivEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedProgramLocalParameterIivEXT")) == NULL) || r;
  5312. r = ((glGetNamedProgramLocalParameterIuivEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedProgramLocalParameterIuivEXT")) == NULL) || r;
  5313. r = ((glGetNamedProgramLocalParameterdvEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedProgramLocalParameterdvEXT")) == NULL) || r;
  5314. r = ((glGetNamedProgramLocalParameterfvEXT = (PFNGLGETNAMEDPROGRAMLOCALPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedProgramLocalParameterfvEXT")) == NULL) || r;
  5315. r = ((glGetNamedProgramStringEXT = (PFNGLGETNAMEDPROGRAMSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedProgramStringEXT")) == NULL) || r;
  5316. r = ((glGetNamedProgramivEXT = (PFNGLGETNAMEDPROGRAMIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedProgramivEXT")) == NULL) || r;
  5317. r = ((glGetNamedRenderbufferParameterivEXT = (PFNGLGETNAMEDRENDERBUFFERPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetNamedRenderbufferParameterivEXT")) == NULL) || r;
  5318. r = ((glGetPointerIndexedvEXT = (PFNGLGETPOINTERINDEXEDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetPointerIndexedvEXT")) == NULL) || r;
  5319. r = ((glGetPointeri_vEXT = (PFNGLGETPOINTERI_VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetPointeri_vEXT")) == NULL) || r;
  5320. r = ((glGetTextureImageEXT = (PFNGLGETTEXTUREIMAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureImageEXT")) == NULL) || r;
  5321. r = ((glGetTextureLevelParameterfvEXT = (PFNGLGETTEXTURELEVELPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureLevelParameterfvEXT")) == NULL) || r;
  5322. r = ((glGetTextureLevelParameterivEXT = (PFNGLGETTEXTURELEVELPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureLevelParameterivEXT")) == NULL) || r;
  5323. r = ((glGetTextureParameterIivEXT = (PFNGLGETTEXTUREPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureParameterIivEXT")) == NULL) || r;
  5324. r = ((glGetTextureParameterIuivEXT = (PFNGLGETTEXTUREPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureParameterIuivEXT")) == NULL) || r;
  5325. r = ((glGetTextureParameterfvEXT = (PFNGLGETTEXTUREPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureParameterfvEXT")) == NULL) || r;
  5326. r = ((glGetTextureParameterivEXT = (PFNGLGETTEXTUREPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTextureParameterivEXT")) == NULL) || r;
  5327. r = ((glGetVertexArrayIntegeri_vEXT = (PFNGLGETVERTEXARRAYINTEGERI_VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexArrayIntegeri_vEXT")) == NULL) || r;
  5328. r = ((glGetVertexArrayIntegervEXT = (PFNGLGETVERTEXARRAYINTEGERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexArrayIntegervEXT")) == NULL) || r;
  5329. r = ((glGetVertexArrayPointeri_vEXT = (PFNGLGETVERTEXARRAYPOINTERI_VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexArrayPointeri_vEXT")) == NULL) || r;
  5330. r = ((glGetVertexArrayPointervEXT = (PFNGLGETVERTEXARRAYPOINTERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexArrayPointervEXT")) == NULL) || r;
  5331. r = ((glMapNamedBufferEXT = (PFNGLMAPNAMEDBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glMapNamedBufferEXT")) == NULL) || r;
  5332. r = ((glMapNamedBufferRangeEXT = (PFNGLMAPNAMEDBUFFERRANGEEXTPROC)glewGetProcAddress((const GLubyte*)"glMapNamedBufferRangeEXT")) == NULL) || r;
  5333. r = ((glMatrixFrustumEXT = (PFNGLMATRIXFRUSTUMEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixFrustumEXT")) == NULL) || r;
  5334. r = ((glMatrixLoadIdentityEXT = (PFNGLMATRIXLOADIDENTITYEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixLoadIdentityEXT")) == NULL) || r;
  5335. r = ((glMatrixLoadTransposedEXT = (PFNGLMATRIXLOADTRANSPOSEDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixLoadTransposedEXT")) == NULL) || r;
  5336. r = ((glMatrixLoadTransposefEXT = (PFNGLMATRIXLOADTRANSPOSEFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixLoadTransposefEXT")) == NULL) || r;
  5337. r = ((glMatrixLoaddEXT = (PFNGLMATRIXLOADDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixLoaddEXT")) == NULL) || r;
  5338. r = ((glMatrixLoadfEXT = (PFNGLMATRIXLOADFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixLoadfEXT")) == NULL) || r;
  5339. r = ((glMatrixMultTransposedEXT = (PFNGLMATRIXMULTTRANSPOSEDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixMultTransposedEXT")) == NULL) || r;
  5340. r = ((glMatrixMultTransposefEXT = (PFNGLMATRIXMULTTRANSPOSEFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixMultTransposefEXT")) == NULL) || r;
  5341. r = ((glMatrixMultdEXT = (PFNGLMATRIXMULTDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixMultdEXT")) == NULL) || r;
  5342. r = ((glMatrixMultfEXT = (PFNGLMATRIXMULTFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixMultfEXT")) == NULL) || r;
  5343. r = ((glMatrixOrthoEXT = (PFNGLMATRIXORTHOEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixOrthoEXT")) == NULL) || r;
  5344. r = ((glMatrixPopEXT = (PFNGLMATRIXPOPEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixPopEXT")) == NULL) || r;
  5345. r = ((glMatrixPushEXT = (PFNGLMATRIXPUSHEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixPushEXT")) == NULL) || r;
  5346. r = ((glMatrixRotatedEXT = (PFNGLMATRIXROTATEDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixRotatedEXT")) == NULL) || r;
  5347. r = ((glMatrixRotatefEXT = (PFNGLMATRIXROTATEFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixRotatefEXT")) == NULL) || r;
  5348. r = ((glMatrixScaledEXT = (PFNGLMATRIXSCALEDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixScaledEXT")) == NULL) || r;
  5349. r = ((glMatrixScalefEXT = (PFNGLMATRIXSCALEFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixScalefEXT")) == NULL) || r;
  5350. r = ((glMatrixTranslatedEXT = (PFNGLMATRIXTRANSLATEDEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixTranslatedEXT")) == NULL) || r;
  5351. r = ((glMatrixTranslatefEXT = (PFNGLMATRIXTRANSLATEFEXTPROC)glewGetProcAddress((const GLubyte*)"glMatrixTranslatefEXT")) == NULL) || r;
  5352. r = ((glMultiTexBufferEXT = (PFNGLMULTITEXBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexBufferEXT")) == NULL) || r;
  5353. r = ((glMultiTexCoordPointerEXT = (PFNGLMULTITEXCOORDPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoordPointerEXT")) == NULL) || r;
  5354. r = ((glMultiTexEnvfEXT = (PFNGLMULTITEXENVFEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexEnvfEXT")) == NULL) || r;
  5355. r = ((glMultiTexEnvfvEXT = (PFNGLMULTITEXENVFVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexEnvfvEXT")) == NULL) || r;
  5356. r = ((glMultiTexEnviEXT = (PFNGLMULTITEXENVIEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexEnviEXT")) == NULL) || r;
  5357. r = ((glMultiTexEnvivEXT = (PFNGLMULTITEXENVIVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexEnvivEXT")) == NULL) || r;
  5358. r = ((glMultiTexGendEXT = (PFNGLMULTITEXGENDEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexGendEXT")) == NULL) || r;
  5359. r = ((glMultiTexGendvEXT = (PFNGLMULTITEXGENDVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexGendvEXT")) == NULL) || r;
  5360. r = ((glMultiTexGenfEXT = (PFNGLMULTITEXGENFEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexGenfEXT")) == NULL) || r;
  5361. r = ((glMultiTexGenfvEXT = (PFNGLMULTITEXGENFVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexGenfvEXT")) == NULL) || r;
  5362. r = ((glMultiTexGeniEXT = (PFNGLMULTITEXGENIEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexGeniEXT")) == NULL) || r;
  5363. r = ((glMultiTexGenivEXT = (PFNGLMULTITEXGENIVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexGenivEXT")) == NULL) || r;
  5364. r = ((glMultiTexImage1DEXT = (PFNGLMULTITEXIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexImage1DEXT")) == NULL) || r;
  5365. r = ((glMultiTexImage2DEXT = (PFNGLMULTITEXIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexImage2DEXT")) == NULL) || r;
  5366. r = ((glMultiTexImage3DEXT = (PFNGLMULTITEXIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexImage3DEXT")) == NULL) || r;
  5367. r = ((glMultiTexParameterIivEXT = (PFNGLMULTITEXPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexParameterIivEXT")) == NULL) || r;
  5368. r = ((glMultiTexParameterIuivEXT = (PFNGLMULTITEXPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexParameterIuivEXT")) == NULL) || r;
  5369. r = ((glMultiTexParameterfEXT = (PFNGLMULTITEXPARAMETERFEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexParameterfEXT")) == NULL) || r;
  5370. r = ((glMultiTexParameterfvEXT = (PFNGLMULTITEXPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexParameterfvEXT")) == NULL) || r;
  5371. r = ((glMultiTexParameteriEXT = (PFNGLMULTITEXPARAMETERIEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexParameteriEXT")) == NULL) || r;
  5372. r = ((glMultiTexParameterivEXT = (PFNGLMULTITEXPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexParameterivEXT")) == NULL) || r;
  5373. r = ((glMultiTexRenderbufferEXT = (PFNGLMULTITEXRENDERBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexRenderbufferEXT")) == NULL) || r;
  5374. r = ((glMultiTexSubImage1DEXT = (PFNGLMULTITEXSUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexSubImage1DEXT")) == NULL) || r;
  5375. r = ((glMultiTexSubImage2DEXT = (PFNGLMULTITEXSUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexSubImage2DEXT")) == NULL) || r;
  5376. r = ((glMultiTexSubImage3DEXT = (PFNGLMULTITEXSUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiTexSubImage3DEXT")) == NULL) || r;
  5377. r = ((glNamedBufferDataEXT = (PFNGLNAMEDBUFFERDATAEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedBufferDataEXT")) == NULL) || r;
  5378. r = ((glNamedBufferSubDataEXT = (PFNGLNAMEDBUFFERSUBDATAEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedBufferSubDataEXT")) == NULL) || r;
  5379. r = ((glNamedCopyBufferSubDataEXT = (PFNGLNAMEDCOPYBUFFERSUBDATAEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedCopyBufferSubDataEXT")) == NULL) || r;
  5380. r = ((glNamedFramebufferRenderbufferEXT = (PFNGLNAMEDFRAMEBUFFERRENDERBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferRenderbufferEXT")) == NULL) || r;
  5381. r = ((glNamedFramebufferTexture1DEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferTexture1DEXT")) == NULL) || r;
  5382. r = ((glNamedFramebufferTexture2DEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferTexture2DEXT")) == NULL) || r;
  5383. r = ((glNamedFramebufferTexture3DEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferTexture3DEXT")) == NULL) || r;
  5384. r = ((glNamedFramebufferTextureEXT = (PFNGLNAMEDFRAMEBUFFERTEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferTextureEXT")) == NULL) || r;
  5385. r = ((glNamedFramebufferTextureFaceEXT = (PFNGLNAMEDFRAMEBUFFERTEXTUREFACEEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferTextureFaceEXT")) == NULL) || r;
  5386. r = ((glNamedFramebufferTextureLayerEXT = (PFNGLNAMEDFRAMEBUFFERTEXTURELAYEREXTPROC)glewGetProcAddress((const GLubyte*)"glNamedFramebufferTextureLayerEXT")) == NULL) || r;
  5387. r = ((glNamedProgramLocalParameter4dEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4DEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameter4dEXT")) == NULL) || r;
  5388. r = ((glNamedProgramLocalParameter4dvEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4DVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameter4dvEXT")) == NULL) || r;
  5389. r = ((glNamedProgramLocalParameter4fEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4FEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameter4fEXT")) == NULL) || r;
  5390. r = ((glNamedProgramLocalParameter4fvEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETER4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameter4fvEXT")) == NULL) || r;
  5391. r = ((glNamedProgramLocalParameterI4iEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4IEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameterI4iEXT")) == NULL) || r;
  5392. r = ((glNamedProgramLocalParameterI4ivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4IVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameterI4ivEXT")) == NULL) || r;
  5393. r = ((glNamedProgramLocalParameterI4uiEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameterI4uiEXT")) == NULL) || r;
  5394. r = ((glNamedProgramLocalParameterI4uivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERI4UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameterI4uivEXT")) == NULL) || r;
  5395. r = ((glNamedProgramLocalParameters4fvEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERS4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParameters4fvEXT")) == NULL) || r;
  5396. r = ((glNamedProgramLocalParametersI4ivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERSI4IVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParametersI4ivEXT")) == NULL) || r;
  5397. r = ((glNamedProgramLocalParametersI4uivEXT = (PFNGLNAMEDPROGRAMLOCALPARAMETERSI4UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramLocalParametersI4uivEXT")) == NULL) || r;
  5398. r = ((glNamedProgramStringEXT = (PFNGLNAMEDPROGRAMSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedProgramStringEXT")) == NULL) || r;
  5399. r = ((glNamedRenderbufferStorageEXT = (PFNGLNAMEDRENDERBUFFERSTORAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedRenderbufferStorageEXT")) == NULL) || r;
  5400. r = ((glNamedRenderbufferStorageMultisampleCoverageEXT = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLECOVERAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedRenderbufferStorageMultisampleCoverageEXT")) == NULL) || r;
  5401. r = ((glNamedRenderbufferStorageMultisampleEXT = (PFNGLNAMEDRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)glewGetProcAddress((const GLubyte*)"glNamedRenderbufferStorageMultisampleEXT")) == NULL) || r;
  5402. r = ((glProgramUniform1fEXT = (PFNGLPROGRAMUNIFORM1FEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1fEXT")) == NULL) || r;
  5403. r = ((glProgramUniform1fvEXT = (PFNGLPROGRAMUNIFORM1FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1fvEXT")) == NULL) || r;
  5404. r = ((glProgramUniform1iEXT = (PFNGLPROGRAMUNIFORM1IEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1iEXT")) == NULL) || r;
  5405. r = ((glProgramUniform1ivEXT = (PFNGLPROGRAMUNIFORM1IVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1ivEXT")) == NULL) || r;
  5406. r = ((glProgramUniform1uiEXT = (PFNGLPROGRAMUNIFORM1UIEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1uiEXT")) == NULL) || r;
  5407. r = ((glProgramUniform1uivEXT = (PFNGLPROGRAMUNIFORM1UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1uivEXT")) == NULL) || r;
  5408. r = ((glProgramUniform2fEXT = (PFNGLPROGRAMUNIFORM2FEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2fEXT")) == NULL) || r;
  5409. r = ((glProgramUniform2fvEXT = (PFNGLPROGRAMUNIFORM2FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2fvEXT")) == NULL) || r;
  5410. r = ((glProgramUniform2iEXT = (PFNGLPROGRAMUNIFORM2IEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2iEXT")) == NULL) || r;
  5411. r = ((glProgramUniform2ivEXT = (PFNGLPROGRAMUNIFORM2IVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2ivEXT")) == NULL) || r;
  5412. r = ((glProgramUniform2uiEXT = (PFNGLPROGRAMUNIFORM2UIEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2uiEXT")) == NULL) || r;
  5413. r = ((glProgramUniform2uivEXT = (PFNGLPROGRAMUNIFORM2UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2uivEXT")) == NULL) || r;
  5414. r = ((glProgramUniform3fEXT = (PFNGLPROGRAMUNIFORM3FEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3fEXT")) == NULL) || r;
  5415. r = ((glProgramUniform3fvEXT = (PFNGLPROGRAMUNIFORM3FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3fvEXT")) == NULL) || r;
  5416. r = ((glProgramUniform3iEXT = (PFNGLPROGRAMUNIFORM3IEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3iEXT")) == NULL) || r;
  5417. r = ((glProgramUniform3ivEXT = (PFNGLPROGRAMUNIFORM3IVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3ivEXT")) == NULL) || r;
  5418. r = ((glProgramUniform3uiEXT = (PFNGLPROGRAMUNIFORM3UIEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3uiEXT")) == NULL) || r;
  5419. r = ((glProgramUniform3uivEXT = (PFNGLPROGRAMUNIFORM3UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3uivEXT")) == NULL) || r;
  5420. r = ((glProgramUniform4fEXT = (PFNGLPROGRAMUNIFORM4FEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4fEXT")) == NULL) || r;
  5421. r = ((glProgramUniform4fvEXT = (PFNGLPROGRAMUNIFORM4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4fvEXT")) == NULL) || r;
  5422. r = ((glProgramUniform4iEXT = (PFNGLPROGRAMUNIFORM4IEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4iEXT")) == NULL) || r;
  5423. r = ((glProgramUniform4ivEXT = (PFNGLPROGRAMUNIFORM4IVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4ivEXT")) == NULL) || r;
  5424. r = ((glProgramUniform4uiEXT = (PFNGLPROGRAMUNIFORM4UIEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4uiEXT")) == NULL) || r;
  5425. r = ((glProgramUniform4uivEXT = (PFNGLPROGRAMUNIFORM4UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4uivEXT")) == NULL) || r;
  5426. r = ((glProgramUniformMatrix2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2fvEXT")) == NULL) || r;
  5427. r = ((glProgramUniformMatrix2x3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X3FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2x3fvEXT")) == NULL) || r;
  5428. r = ((glProgramUniformMatrix2x4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX2X4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix2x4fvEXT")) == NULL) || r;
  5429. r = ((glProgramUniformMatrix3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3fvEXT")) == NULL) || r;
  5430. r = ((glProgramUniformMatrix3x2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X2FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3x2fvEXT")) == NULL) || r;
  5431. r = ((glProgramUniformMatrix3x4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX3X4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix3x4fvEXT")) == NULL) || r;
  5432. r = ((glProgramUniformMatrix4fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4fvEXT")) == NULL) || r;
  5433. r = ((glProgramUniformMatrix4x2fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X2FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4x2fvEXT")) == NULL) || r;
  5434. r = ((glProgramUniformMatrix4x3fvEXT = (PFNGLPROGRAMUNIFORMMATRIX4X3FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformMatrix4x3fvEXT")) == NULL) || r;
  5435. r = ((glPushClientAttribDefaultEXT = (PFNGLPUSHCLIENTATTRIBDEFAULTEXTPROC)glewGetProcAddress((const GLubyte*)"glPushClientAttribDefaultEXT")) == NULL) || r;
  5436. r = ((glTextureBufferEXT = (PFNGLTEXTUREBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glTextureBufferEXT")) == NULL) || r;
  5437. r = ((glTextureImage1DEXT = (PFNGLTEXTUREIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureImage1DEXT")) == NULL) || r;
  5438. r = ((glTextureImage2DEXT = (PFNGLTEXTUREIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureImage2DEXT")) == NULL) || r;
  5439. r = ((glTextureImage3DEXT = (PFNGLTEXTUREIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureImage3DEXT")) == NULL) || r;
  5440. r = ((glTextureParameterIivEXT = (PFNGLTEXTUREPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureParameterIivEXT")) == NULL) || r;
  5441. r = ((glTextureParameterIuivEXT = (PFNGLTEXTUREPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureParameterIuivEXT")) == NULL) || r;
  5442. r = ((glTextureParameterfEXT = (PFNGLTEXTUREPARAMETERFEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureParameterfEXT")) == NULL) || r;
  5443. r = ((glTextureParameterfvEXT = (PFNGLTEXTUREPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureParameterfvEXT")) == NULL) || r;
  5444. r = ((glTextureParameteriEXT = (PFNGLTEXTUREPARAMETERIEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureParameteriEXT")) == NULL) || r;
  5445. r = ((glTextureParameterivEXT = (PFNGLTEXTUREPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureParameterivEXT")) == NULL) || r;
  5446. r = ((glTextureRenderbufferEXT = (PFNGLTEXTURERENDERBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glTextureRenderbufferEXT")) == NULL) || r;
  5447. r = ((glTextureSubImage1DEXT = (PFNGLTEXTURESUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureSubImage1DEXT")) == NULL) || r;
  5448. r = ((glTextureSubImage2DEXT = (PFNGLTEXTURESUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureSubImage2DEXT")) == NULL) || r;
  5449. r = ((glTextureSubImage3DEXT = (PFNGLTEXTURESUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureSubImage3DEXT")) == NULL) || r;
  5450. r = ((glUnmapNamedBufferEXT = (PFNGLUNMAPNAMEDBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glUnmapNamedBufferEXT")) == NULL) || r;
  5451. r = ((glVertexArrayColorOffsetEXT = (PFNGLVERTEXARRAYCOLOROFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayColorOffsetEXT")) == NULL) || r;
  5452. r = ((glVertexArrayEdgeFlagOffsetEXT = (PFNGLVERTEXARRAYEDGEFLAGOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayEdgeFlagOffsetEXT")) == NULL) || r;
  5453. r = ((glVertexArrayFogCoordOffsetEXT = (PFNGLVERTEXARRAYFOGCOORDOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayFogCoordOffsetEXT")) == NULL) || r;
  5454. r = ((glVertexArrayIndexOffsetEXT = (PFNGLVERTEXARRAYINDEXOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayIndexOffsetEXT")) == NULL) || r;
  5455. r = ((glVertexArrayMultiTexCoordOffsetEXT = (PFNGLVERTEXARRAYMULTITEXCOORDOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayMultiTexCoordOffsetEXT")) == NULL) || r;
  5456. r = ((glVertexArrayNormalOffsetEXT = (PFNGLVERTEXARRAYNORMALOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayNormalOffsetEXT")) == NULL) || r;
  5457. r = ((glVertexArraySecondaryColorOffsetEXT = (PFNGLVERTEXARRAYSECONDARYCOLOROFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArraySecondaryColorOffsetEXT")) == NULL) || r;
  5458. r = ((glVertexArrayTexCoordOffsetEXT = (PFNGLVERTEXARRAYTEXCOORDOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayTexCoordOffsetEXT")) == NULL) || r;
  5459. r = ((glVertexArrayVertexAttribIOffsetEXT = (PFNGLVERTEXARRAYVERTEXATTRIBIOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayVertexAttribIOffsetEXT")) == NULL) || r;
  5460. r = ((glVertexArrayVertexAttribOffsetEXT = (PFNGLVERTEXARRAYVERTEXATTRIBOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayVertexAttribOffsetEXT")) == NULL) || r;
  5461. r = ((glVertexArrayVertexOffsetEXT = (PFNGLVERTEXARRAYVERTEXOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayVertexOffsetEXT")) == NULL) || r;
  5462. return r;
  5463. }
  5464. #endif /* GL_EXT_direct_state_access */
  5465. #ifdef GL_EXT_draw_buffers2
  5466. static GLboolean _glewInit_GL_EXT_draw_buffers2 (GLEW_CONTEXT_ARG_DEF_INIT)
  5467. {
  5468. GLboolean r = GL_FALSE;
  5469. r = ((glColorMaskIndexedEXT = (PFNGLCOLORMASKINDEXEDEXTPROC)glewGetProcAddress((const GLubyte*)"glColorMaskIndexedEXT")) == NULL) || r;
  5470. r = ((glDisableIndexedEXT = (PFNGLDISABLEINDEXEDEXTPROC)glewGetProcAddress((const GLubyte*)"glDisableIndexedEXT")) == NULL) || r;
  5471. r = ((glEnableIndexedEXT = (PFNGLENABLEINDEXEDEXTPROC)glewGetProcAddress((const GLubyte*)"glEnableIndexedEXT")) == NULL) || r;
  5472. r = ((glGetBooleanIndexedvEXT = (PFNGLGETBOOLEANINDEXEDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetBooleanIndexedvEXT")) == NULL) || r;
  5473. r = ((glGetIntegerIndexedvEXT = (PFNGLGETINTEGERINDEXEDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetIntegerIndexedvEXT")) == NULL) || r;
  5474. r = ((glIsEnabledIndexedEXT = (PFNGLISENABLEDINDEXEDEXTPROC)glewGetProcAddress((const GLubyte*)"glIsEnabledIndexedEXT")) == NULL) || r;
  5475. return r;
  5476. }
  5477. #endif /* GL_EXT_draw_buffers2 */
  5478. #ifdef GL_EXT_draw_instanced
  5479. static GLboolean _glewInit_GL_EXT_draw_instanced (GLEW_CONTEXT_ARG_DEF_INIT)
  5480. {
  5481. GLboolean r = GL_FALSE;
  5482. r = ((glDrawArraysInstancedEXT = (PFNGLDRAWARRAYSINSTANCEDEXTPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysInstancedEXT")) == NULL) || r;
  5483. r = ((glDrawElementsInstancedEXT = (PFNGLDRAWELEMENTSINSTANCEDEXTPROC)glewGetProcAddress((const GLubyte*)"glDrawElementsInstancedEXT")) == NULL) || r;
  5484. return r;
  5485. }
  5486. #endif /* GL_EXT_draw_instanced */
  5487. #ifdef GL_EXT_draw_range_elements
  5488. static GLboolean _glewInit_GL_EXT_draw_range_elements (GLEW_CONTEXT_ARG_DEF_INIT)
  5489. {
  5490. GLboolean r = GL_FALSE;
  5491. r = ((glDrawRangeElementsEXT = (PFNGLDRAWRANGEELEMENTSEXTPROC)glewGetProcAddress((const GLubyte*)"glDrawRangeElementsEXT")) == NULL) || r;
  5492. return r;
  5493. }
  5494. #endif /* GL_EXT_draw_range_elements */
  5495. #ifdef GL_EXT_fog_coord
  5496. static GLboolean _glewInit_GL_EXT_fog_coord (GLEW_CONTEXT_ARG_DEF_INIT)
  5497. {
  5498. GLboolean r = GL_FALSE;
  5499. r = ((glFogCoordPointerEXT = (PFNGLFOGCOORDPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glFogCoordPointerEXT")) == NULL) || r;
  5500. r = ((glFogCoorddEXT = (PFNGLFOGCOORDDEXTPROC)glewGetProcAddress((const GLubyte*)"glFogCoorddEXT")) == NULL) || r;
  5501. r = ((glFogCoorddvEXT = (PFNGLFOGCOORDDVEXTPROC)glewGetProcAddress((const GLubyte*)"glFogCoorddvEXT")) == NULL) || r;
  5502. r = ((glFogCoordfEXT = (PFNGLFOGCOORDFEXTPROC)glewGetProcAddress((const GLubyte*)"glFogCoordfEXT")) == NULL) || r;
  5503. r = ((glFogCoordfvEXT = (PFNGLFOGCOORDFVEXTPROC)glewGetProcAddress((const GLubyte*)"glFogCoordfvEXT")) == NULL) || r;
  5504. return r;
  5505. }
  5506. #endif /* GL_EXT_fog_coord */
  5507. #ifdef GL_EXT_fragment_lighting
  5508. static GLboolean _glewInit_GL_EXT_fragment_lighting (GLEW_CONTEXT_ARG_DEF_INIT)
  5509. {
  5510. GLboolean r = GL_FALSE;
  5511. r = ((glFragmentColorMaterialEXT = (PFNGLFRAGMENTCOLORMATERIALEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentColorMaterialEXT")) == NULL) || r;
  5512. r = ((glFragmentLightModelfEXT = (PFNGLFRAGMENTLIGHTMODELFEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModelfEXT")) == NULL) || r;
  5513. r = ((glFragmentLightModelfvEXT = (PFNGLFRAGMENTLIGHTMODELFVEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModelfvEXT")) == NULL) || r;
  5514. r = ((glFragmentLightModeliEXT = (PFNGLFRAGMENTLIGHTMODELIEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModeliEXT")) == NULL) || r;
  5515. r = ((glFragmentLightModelivEXT = (PFNGLFRAGMENTLIGHTMODELIVEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModelivEXT")) == NULL) || r;
  5516. r = ((glFragmentLightfEXT = (PFNGLFRAGMENTLIGHTFEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightfEXT")) == NULL) || r;
  5517. r = ((glFragmentLightfvEXT = (PFNGLFRAGMENTLIGHTFVEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightfvEXT")) == NULL) || r;
  5518. r = ((glFragmentLightiEXT = (PFNGLFRAGMENTLIGHTIEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightiEXT")) == NULL) || r;
  5519. r = ((glFragmentLightivEXT = (PFNGLFRAGMENTLIGHTIVEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightivEXT")) == NULL) || r;
  5520. r = ((glFragmentMaterialfEXT = (PFNGLFRAGMENTMATERIALFEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialfEXT")) == NULL) || r;
  5521. r = ((glFragmentMaterialfvEXT = (PFNGLFRAGMENTMATERIALFVEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialfvEXT")) == NULL) || r;
  5522. r = ((glFragmentMaterialiEXT = (PFNGLFRAGMENTMATERIALIEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialiEXT")) == NULL) || r;
  5523. r = ((glFragmentMaterialivEXT = (PFNGLFRAGMENTMATERIALIVEXTPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialivEXT")) == NULL) || r;
  5524. r = ((glGetFragmentLightfvEXT = (PFNGLGETFRAGMENTLIGHTFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentLightfvEXT")) == NULL) || r;
  5525. r = ((glGetFragmentLightivEXT = (PFNGLGETFRAGMENTLIGHTIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentLightivEXT")) == NULL) || r;
  5526. r = ((glGetFragmentMaterialfvEXT = (PFNGLGETFRAGMENTMATERIALFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentMaterialfvEXT")) == NULL) || r;
  5527. r = ((glGetFragmentMaterialivEXT = (PFNGLGETFRAGMENTMATERIALIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentMaterialivEXT")) == NULL) || r;
  5528. r = ((glLightEnviEXT = (PFNGLLIGHTENVIEXTPROC)glewGetProcAddress((const GLubyte*)"glLightEnviEXT")) == NULL) || r;
  5529. return r;
  5530. }
  5531. #endif /* GL_EXT_fragment_lighting */
  5532. #ifdef GL_EXT_framebuffer_blit
  5533. static GLboolean _glewInit_GL_EXT_framebuffer_blit (GLEW_CONTEXT_ARG_DEF_INIT)
  5534. {
  5535. GLboolean r = GL_FALSE;
  5536. r = ((glBlitFramebufferEXT = (PFNGLBLITFRAMEBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glBlitFramebufferEXT")) == NULL) || r;
  5537. return r;
  5538. }
  5539. #endif /* GL_EXT_framebuffer_blit */
  5540. #ifdef GL_EXT_framebuffer_multisample
  5541. static GLboolean _glewInit_GL_EXT_framebuffer_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  5542. {
  5543. GLboolean r = GL_FALSE;
  5544. r = ((glRenderbufferStorageMultisampleEXT = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLEEXTPROC)glewGetProcAddress((const GLubyte*)"glRenderbufferStorageMultisampleEXT")) == NULL) || r;
  5545. return r;
  5546. }
  5547. #endif /* GL_EXT_framebuffer_multisample */
  5548. #ifdef GL_EXT_framebuffer_multisample_blit_scaled
  5549. #endif /* GL_EXT_framebuffer_multisample_blit_scaled */
  5550. #ifdef GL_EXT_framebuffer_object
  5551. static GLboolean _glewInit_GL_EXT_framebuffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  5552. {
  5553. GLboolean r = GL_FALSE;
  5554. r = ((glBindFramebufferEXT = (PFNGLBINDFRAMEBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindFramebufferEXT")) == NULL) || r;
  5555. r = ((glBindRenderbufferEXT = (PFNGLBINDRENDERBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindRenderbufferEXT")) == NULL) || r;
  5556. r = ((glCheckFramebufferStatusEXT = (PFNGLCHECKFRAMEBUFFERSTATUSEXTPROC)glewGetProcAddress((const GLubyte*)"glCheckFramebufferStatusEXT")) == NULL) || r;
  5557. r = ((glDeleteFramebuffersEXT = (PFNGLDELETEFRAMEBUFFERSEXTPROC)glewGetProcAddress((const GLubyte*)"glDeleteFramebuffersEXT")) == NULL) || r;
  5558. r = ((glDeleteRenderbuffersEXT = (PFNGLDELETERENDERBUFFERSEXTPROC)glewGetProcAddress((const GLubyte*)"glDeleteRenderbuffersEXT")) == NULL) || r;
  5559. r = ((glFramebufferRenderbufferEXT = (PFNGLFRAMEBUFFERRENDERBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferRenderbufferEXT")) == NULL) || r;
  5560. r = ((glFramebufferTexture1DEXT = (PFNGLFRAMEBUFFERTEXTURE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture1DEXT")) == NULL) || r;
  5561. r = ((glFramebufferTexture2DEXT = (PFNGLFRAMEBUFFERTEXTURE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture2DEXT")) == NULL) || r;
  5562. r = ((glFramebufferTexture3DEXT = (PFNGLFRAMEBUFFERTEXTURE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTexture3DEXT")) == NULL) || r;
  5563. r = ((glGenFramebuffersEXT = (PFNGLGENFRAMEBUFFERSEXTPROC)glewGetProcAddress((const GLubyte*)"glGenFramebuffersEXT")) == NULL) || r;
  5564. r = ((glGenRenderbuffersEXT = (PFNGLGENRENDERBUFFERSEXTPROC)glewGetProcAddress((const GLubyte*)"glGenRenderbuffersEXT")) == NULL) || r;
  5565. r = ((glGenerateMipmapEXT = (PFNGLGENERATEMIPMAPEXTPROC)glewGetProcAddress((const GLubyte*)"glGenerateMipmapEXT")) == NULL) || r;
  5566. r = ((glGetFramebufferAttachmentParameterivEXT = (PFNGLGETFRAMEBUFFERATTACHMENTPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFramebufferAttachmentParameterivEXT")) == NULL) || r;
  5567. r = ((glGetRenderbufferParameterivEXT = (PFNGLGETRENDERBUFFERPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetRenderbufferParameterivEXT")) == NULL) || r;
  5568. r = ((glIsFramebufferEXT = (PFNGLISFRAMEBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glIsFramebufferEXT")) == NULL) || r;
  5569. r = ((glIsRenderbufferEXT = (PFNGLISRENDERBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glIsRenderbufferEXT")) == NULL) || r;
  5570. r = ((glRenderbufferStorageEXT = (PFNGLRENDERBUFFERSTORAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glRenderbufferStorageEXT")) == NULL) || r;
  5571. return r;
  5572. }
  5573. #endif /* GL_EXT_framebuffer_object */
  5574. #ifdef GL_EXT_framebuffer_sRGB
  5575. #endif /* GL_EXT_framebuffer_sRGB */
  5576. #ifdef GL_EXT_geometry_shader4
  5577. static GLboolean _glewInit_GL_EXT_geometry_shader4 (GLEW_CONTEXT_ARG_DEF_INIT)
  5578. {
  5579. GLboolean r = GL_FALSE;
  5580. r = ((glFramebufferTextureEXT = (PFNGLFRAMEBUFFERTEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureEXT")) == NULL) || r;
  5581. r = ((glFramebufferTextureFaceEXT = (PFNGLFRAMEBUFFERTEXTUREFACEEXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureFaceEXT")) == NULL) || r;
  5582. r = ((glProgramParameteriEXT = (PFNGLPROGRAMPARAMETERIEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramParameteriEXT")) == NULL) || r;
  5583. return r;
  5584. }
  5585. #endif /* GL_EXT_geometry_shader4 */
  5586. #ifdef GL_EXT_gpu_program_parameters
  5587. static GLboolean _glewInit_GL_EXT_gpu_program_parameters (GLEW_CONTEXT_ARG_DEF_INIT)
  5588. {
  5589. GLboolean r = GL_FALSE;
  5590. r = ((glProgramEnvParameters4fvEXT = (PFNGLPROGRAMENVPARAMETERS4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameters4fvEXT")) == NULL) || r;
  5591. r = ((glProgramLocalParameters4fvEXT = (PFNGLPROGRAMLOCALPARAMETERS4FVEXTPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameters4fvEXT")) == NULL) || r;
  5592. return r;
  5593. }
  5594. #endif /* GL_EXT_gpu_program_parameters */
  5595. #ifdef GL_EXT_gpu_shader4
  5596. static GLboolean _glewInit_GL_EXT_gpu_shader4 (GLEW_CONTEXT_ARG_DEF_INIT)
  5597. {
  5598. GLboolean r = GL_FALSE;
  5599. r = ((glBindFragDataLocationEXT = (PFNGLBINDFRAGDATALOCATIONEXTPROC)glewGetProcAddress((const GLubyte*)"glBindFragDataLocationEXT")) == NULL) || r;
  5600. r = ((glGetFragDataLocationEXT = (PFNGLGETFRAGDATALOCATIONEXTPROC)glewGetProcAddress((const GLubyte*)"glGetFragDataLocationEXT")) == NULL) || r;
  5601. r = ((glGetUniformuivEXT = (PFNGLGETUNIFORMUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetUniformuivEXT")) == NULL) || r;
  5602. r = ((glGetVertexAttribIivEXT = (PFNGLGETVERTEXATTRIBIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribIivEXT")) == NULL) || r;
  5603. r = ((glGetVertexAttribIuivEXT = (PFNGLGETVERTEXATTRIBIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribIuivEXT")) == NULL) || r;
  5604. r = ((glUniform1uiEXT = (PFNGLUNIFORM1UIEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform1uiEXT")) == NULL) || r;
  5605. r = ((glUniform1uivEXT = (PFNGLUNIFORM1UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform1uivEXT")) == NULL) || r;
  5606. r = ((glUniform2uiEXT = (PFNGLUNIFORM2UIEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform2uiEXT")) == NULL) || r;
  5607. r = ((glUniform2uivEXT = (PFNGLUNIFORM2UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform2uivEXT")) == NULL) || r;
  5608. r = ((glUniform3uiEXT = (PFNGLUNIFORM3UIEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform3uiEXT")) == NULL) || r;
  5609. r = ((glUniform3uivEXT = (PFNGLUNIFORM3UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform3uivEXT")) == NULL) || r;
  5610. r = ((glUniform4uiEXT = (PFNGLUNIFORM4UIEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform4uiEXT")) == NULL) || r;
  5611. r = ((glUniform4uivEXT = (PFNGLUNIFORM4UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glUniform4uivEXT")) == NULL) || r;
  5612. r = ((glVertexAttribI1iEXT = (PFNGLVERTEXATTRIBI1IEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1iEXT")) == NULL) || r;
  5613. r = ((glVertexAttribI1ivEXT = (PFNGLVERTEXATTRIBI1IVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1ivEXT")) == NULL) || r;
  5614. r = ((glVertexAttribI1uiEXT = (PFNGLVERTEXATTRIBI1UIEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1uiEXT")) == NULL) || r;
  5615. r = ((glVertexAttribI1uivEXT = (PFNGLVERTEXATTRIBI1UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI1uivEXT")) == NULL) || r;
  5616. r = ((glVertexAttribI2iEXT = (PFNGLVERTEXATTRIBI2IEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2iEXT")) == NULL) || r;
  5617. r = ((glVertexAttribI2ivEXT = (PFNGLVERTEXATTRIBI2IVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2ivEXT")) == NULL) || r;
  5618. r = ((glVertexAttribI2uiEXT = (PFNGLVERTEXATTRIBI2UIEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2uiEXT")) == NULL) || r;
  5619. r = ((glVertexAttribI2uivEXT = (PFNGLVERTEXATTRIBI2UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI2uivEXT")) == NULL) || r;
  5620. r = ((glVertexAttribI3iEXT = (PFNGLVERTEXATTRIBI3IEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3iEXT")) == NULL) || r;
  5621. r = ((glVertexAttribI3ivEXT = (PFNGLVERTEXATTRIBI3IVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3ivEXT")) == NULL) || r;
  5622. r = ((glVertexAttribI3uiEXT = (PFNGLVERTEXATTRIBI3UIEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3uiEXT")) == NULL) || r;
  5623. r = ((glVertexAttribI3uivEXT = (PFNGLVERTEXATTRIBI3UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI3uivEXT")) == NULL) || r;
  5624. r = ((glVertexAttribI4bvEXT = (PFNGLVERTEXATTRIBI4BVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4bvEXT")) == NULL) || r;
  5625. r = ((glVertexAttribI4iEXT = (PFNGLVERTEXATTRIBI4IEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4iEXT")) == NULL) || r;
  5626. r = ((glVertexAttribI4ivEXT = (PFNGLVERTEXATTRIBI4IVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4ivEXT")) == NULL) || r;
  5627. r = ((glVertexAttribI4svEXT = (PFNGLVERTEXATTRIBI4SVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4svEXT")) == NULL) || r;
  5628. r = ((glVertexAttribI4ubvEXT = (PFNGLVERTEXATTRIBI4UBVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4ubvEXT")) == NULL) || r;
  5629. r = ((glVertexAttribI4uiEXT = (PFNGLVERTEXATTRIBI4UIEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4uiEXT")) == NULL) || r;
  5630. r = ((glVertexAttribI4uivEXT = (PFNGLVERTEXATTRIBI4UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4uivEXT")) == NULL) || r;
  5631. r = ((glVertexAttribI4usvEXT = (PFNGLVERTEXATTRIBI4USVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribI4usvEXT")) == NULL) || r;
  5632. r = ((glVertexAttribIPointerEXT = (PFNGLVERTEXATTRIBIPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribIPointerEXT")) == NULL) || r;
  5633. return r;
  5634. }
  5635. #endif /* GL_EXT_gpu_shader4 */
  5636. #ifdef GL_EXT_histogram
  5637. static GLboolean _glewInit_GL_EXT_histogram (GLEW_CONTEXT_ARG_DEF_INIT)
  5638. {
  5639. GLboolean r = GL_FALSE;
  5640. r = ((glGetHistogramEXT = (PFNGLGETHISTOGRAMEXTPROC)glewGetProcAddress((const GLubyte*)"glGetHistogramEXT")) == NULL) || r;
  5641. r = ((glGetHistogramParameterfvEXT = (PFNGLGETHISTOGRAMPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetHistogramParameterfvEXT")) == NULL) || r;
  5642. r = ((glGetHistogramParameterivEXT = (PFNGLGETHISTOGRAMPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetHistogramParameterivEXT")) == NULL) || r;
  5643. r = ((glGetMinmaxEXT = (PFNGLGETMINMAXEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMinmaxEXT")) == NULL) || r;
  5644. r = ((glGetMinmaxParameterfvEXT = (PFNGLGETMINMAXPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMinmaxParameterfvEXT")) == NULL) || r;
  5645. r = ((glGetMinmaxParameterivEXT = (PFNGLGETMINMAXPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetMinmaxParameterivEXT")) == NULL) || r;
  5646. r = ((glHistogramEXT = (PFNGLHISTOGRAMEXTPROC)glewGetProcAddress((const GLubyte*)"glHistogramEXT")) == NULL) || r;
  5647. r = ((glMinmaxEXT = (PFNGLMINMAXEXTPROC)glewGetProcAddress((const GLubyte*)"glMinmaxEXT")) == NULL) || r;
  5648. r = ((glResetHistogramEXT = (PFNGLRESETHISTOGRAMEXTPROC)glewGetProcAddress((const GLubyte*)"glResetHistogramEXT")) == NULL) || r;
  5649. r = ((glResetMinmaxEXT = (PFNGLRESETMINMAXEXTPROC)glewGetProcAddress((const GLubyte*)"glResetMinmaxEXT")) == NULL) || r;
  5650. return r;
  5651. }
  5652. #endif /* GL_EXT_histogram */
  5653. #ifdef GL_EXT_index_array_formats
  5654. #endif /* GL_EXT_index_array_formats */
  5655. #ifdef GL_EXT_index_func
  5656. static GLboolean _glewInit_GL_EXT_index_func (GLEW_CONTEXT_ARG_DEF_INIT)
  5657. {
  5658. GLboolean r = GL_FALSE;
  5659. r = ((glIndexFuncEXT = (PFNGLINDEXFUNCEXTPROC)glewGetProcAddress((const GLubyte*)"glIndexFuncEXT")) == NULL) || r;
  5660. return r;
  5661. }
  5662. #endif /* GL_EXT_index_func */
  5663. #ifdef GL_EXT_index_material
  5664. static GLboolean _glewInit_GL_EXT_index_material (GLEW_CONTEXT_ARG_DEF_INIT)
  5665. {
  5666. GLboolean r = GL_FALSE;
  5667. r = ((glIndexMaterialEXT = (PFNGLINDEXMATERIALEXTPROC)glewGetProcAddress((const GLubyte*)"glIndexMaterialEXT")) == NULL) || r;
  5668. return r;
  5669. }
  5670. #endif /* GL_EXT_index_material */
  5671. #ifdef GL_EXT_index_texture
  5672. #endif /* GL_EXT_index_texture */
  5673. #ifdef GL_EXT_light_texture
  5674. static GLboolean _glewInit_GL_EXT_light_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  5675. {
  5676. GLboolean r = GL_FALSE;
  5677. r = ((glApplyTextureEXT = (PFNGLAPPLYTEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glApplyTextureEXT")) == NULL) || r;
  5678. r = ((glTextureLightEXT = (PFNGLTEXTURELIGHTEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureLightEXT")) == NULL) || r;
  5679. r = ((glTextureMaterialEXT = (PFNGLTEXTUREMATERIALEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureMaterialEXT")) == NULL) || r;
  5680. return r;
  5681. }
  5682. #endif /* GL_EXT_light_texture */
  5683. #ifdef GL_EXT_misc_attribute
  5684. #endif /* GL_EXT_misc_attribute */
  5685. #ifdef GL_EXT_multi_draw_arrays
  5686. static GLboolean _glewInit_GL_EXT_multi_draw_arrays (GLEW_CONTEXT_ARG_DEF_INIT)
  5687. {
  5688. GLboolean r = GL_FALSE;
  5689. r = ((glMultiDrawArraysEXT = (PFNGLMULTIDRAWARRAYSEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArraysEXT")) == NULL) || r;
  5690. r = ((glMultiDrawElementsEXT = (PFNGLMULTIDRAWELEMENTSEXTPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementsEXT")) == NULL) || r;
  5691. return r;
  5692. }
  5693. #endif /* GL_EXT_multi_draw_arrays */
  5694. #ifdef GL_EXT_multisample
  5695. static GLboolean _glewInit_GL_EXT_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  5696. {
  5697. GLboolean r = GL_FALSE;
  5698. r = ((glSampleMaskEXT = (PFNGLSAMPLEMASKEXTPROC)glewGetProcAddress((const GLubyte*)"glSampleMaskEXT")) == NULL) || r;
  5699. r = ((glSamplePatternEXT = (PFNGLSAMPLEPATTERNEXTPROC)glewGetProcAddress((const GLubyte*)"glSamplePatternEXT")) == NULL) || r;
  5700. return r;
  5701. }
  5702. #endif /* GL_EXT_multisample */
  5703. #ifdef GL_EXT_packed_depth_stencil
  5704. #endif /* GL_EXT_packed_depth_stencil */
  5705. #ifdef GL_EXT_packed_float
  5706. #endif /* GL_EXT_packed_float */
  5707. #ifdef GL_EXT_packed_pixels
  5708. #endif /* GL_EXT_packed_pixels */
  5709. #ifdef GL_EXT_paletted_texture
  5710. static GLboolean _glewInit_GL_EXT_paletted_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  5711. {
  5712. GLboolean r = GL_FALSE;
  5713. r = ((glColorTableEXT = (PFNGLCOLORTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"glColorTableEXT")) == NULL) || r;
  5714. r = ((glGetColorTableEXT = (PFNGLGETCOLORTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableEXT")) == NULL) || r;
  5715. r = ((glGetColorTableParameterfvEXT = (PFNGLGETCOLORTABLEPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableParameterfvEXT")) == NULL) || r;
  5716. r = ((glGetColorTableParameterivEXT = (PFNGLGETCOLORTABLEPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableParameterivEXT")) == NULL) || r;
  5717. return r;
  5718. }
  5719. #endif /* GL_EXT_paletted_texture */
  5720. #ifdef GL_EXT_pixel_buffer_object
  5721. #endif /* GL_EXT_pixel_buffer_object */
  5722. #ifdef GL_EXT_pixel_transform
  5723. static GLboolean _glewInit_GL_EXT_pixel_transform (GLEW_CONTEXT_ARG_DEF_INIT)
  5724. {
  5725. GLboolean r = GL_FALSE;
  5726. r = ((glGetPixelTransformParameterfvEXT = (PFNGLGETPIXELTRANSFORMPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetPixelTransformParameterfvEXT")) == NULL) || r;
  5727. r = ((glGetPixelTransformParameterivEXT = (PFNGLGETPIXELTRANSFORMPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetPixelTransformParameterivEXT")) == NULL) || r;
  5728. r = ((glPixelTransformParameterfEXT = (PFNGLPIXELTRANSFORMPARAMETERFEXTPROC)glewGetProcAddress((const GLubyte*)"glPixelTransformParameterfEXT")) == NULL) || r;
  5729. r = ((glPixelTransformParameterfvEXT = (PFNGLPIXELTRANSFORMPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glPixelTransformParameterfvEXT")) == NULL) || r;
  5730. r = ((glPixelTransformParameteriEXT = (PFNGLPIXELTRANSFORMPARAMETERIEXTPROC)glewGetProcAddress((const GLubyte*)"glPixelTransformParameteriEXT")) == NULL) || r;
  5731. r = ((glPixelTransformParameterivEXT = (PFNGLPIXELTRANSFORMPARAMETERIVEXTPROC)glewGetProcAddress((const GLubyte*)"glPixelTransformParameterivEXT")) == NULL) || r;
  5732. return r;
  5733. }
  5734. #endif /* GL_EXT_pixel_transform */
  5735. #ifdef GL_EXT_pixel_transform_color_table
  5736. #endif /* GL_EXT_pixel_transform_color_table */
  5737. #ifdef GL_EXT_point_parameters
  5738. static GLboolean _glewInit_GL_EXT_point_parameters (GLEW_CONTEXT_ARG_DEF_INIT)
  5739. {
  5740. GLboolean r = GL_FALSE;
  5741. r = ((glPointParameterfEXT = (PFNGLPOINTPARAMETERFEXTPROC)glewGetProcAddress((const GLubyte*)"glPointParameterfEXT")) == NULL) || r;
  5742. r = ((glPointParameterfvEXT = (PFNGLPOINTPARAMETERFVEXTPROC)glewGetProcAddress((const GLubyte*)"glPointParameterfvEXT")) == NULL) || r;
  5743. return r;
  5744. }
  5745. #endif /* GL_EXT_point_parameters */
  5746. #ifdef GL_EXT_polygon_offset
  5747. static GLboolean _glewInit_GL_EXT_polygon_offset (GLEW_CONTEXT_ARG_DEF_INIT)
  5748. {
  5749. GLboolean r = GL_FALSE;
  5750. r = ((glPolygonOffsetEXT = (PFNGLPOLYGONOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glPolygonOffsetEXT")) == NULL) || r;
  5751. return r;
  5752. }
  5753. #endif /* GL_EXT_polygon_offset */
  5754. #ifdef GL_EXT_provoking_vertex
  5755. static GLboolean _glewInit_GL_EXT_provoking_vertex (GLEW_CONTEXT_ARG_DEF_INIT)
  5756. {
  5757. GLboolean r = GL_FALSE;
  5758. r = ((glProvokingVertexEXT = (PFNGLPROVOKINGVERTEXEXTPROC)glewGetProcAddress((const GLubyte*)"glProvokingVertexEXT")) == NULL) || r;
  5759. return r;
  5760. }
  5761. #endif /* GL_EXT_provoking_vertex */
  5762. #ifdef GL_EXT_rescale_normal
  5763. #endif /* GL_EXT_rescale_normal */
  5764. #ifdef GL_EXT_scene_marker
  5765. static GLboolean _glewInit_GL_EXT_scene_marker (GLEW_CONTEXT_ARG_DEF_INIT)
  5766. {
  5767. GLboolean r = GL_FALSE;
  5768. r = ((glBeginSceneEXT = (PFNGLBEGINSCENEEXTPROC)glewGetProcAddress((const GLubyte*)"glBeginSceneEXT")) == NULL) || r;
  5769. r = ((glEndSceneEXT = (PFNGLENDSCENEEXTPROC)glewGetProcAddress((const GLubyte*)"glEndSceneEXT")) == NULL) || r;
  5770. return r;
  5771. }
  5772. #endif /* GL_EXT_scene_marker */
  5773. #ifdef GL_EXT_secondary_color
  5774. static GLboolean _glewInit_GL_EXT_secondary_color (GLEW_CONTEXT_ARG_DEF_INIT)
  5775. {
  5776. GLboolean r = GL_FALSE;
  5777. r = ((glSecondaryColor3bEXT = (PFNGLSECONDARYCOLOR3BEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3bEXT")) == NULL) || r;
  5778. r = ((glSecondaryColor3bvEXT = (PFNGLSECONDARYCOLOR3BVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3bvEXT")) == NULL) || r;
  5779. r = ((glSecondaryColor3dEXT = (PFNGLSECONDARYCOLOR3DEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3dEXT")) == NULL) || r;
  5780. r = ((glSecondaryColor3dvEXT = (PFNGLSECONDARYCOLOR3DVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3dvEXT")) == NULL) || r;
  5781. r = ((glSecondaryColor3fEXT = (PFNGLSECONDARYCOLOR3FEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3fEXT")) == NULL) || r;
  5782. r = ((glSecondaryColor3fvEXT = (PFNGLSECONDARYCOLOR3FVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3fvEXT")) == NULL) || r;
  5783. r = ((glSecondaryColor3iEXT = (PFNGLSECONDARYCOLOR3IEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3iEXT")) == NULL) || r;
  5784. r = ((glSecondaryColor3ivEXT = (PFNGLSECONDARYCOLOR3IVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ivEXT")) == NULL) || r;
  5785. r = ((glSecondaryColor3sEXT = (PFNGLSECONDARYCOLOR3SEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3sEXT")) == NULL) || r;
  5786. r = ((glSecondaryColor3svEXT = (PFNGLSECONDARYCOLOR3SVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3svEXT")) == NULL) || r;
  5787. r = ((glSecondaryColor3ubEXT = (PFNGLSECONDARYCOLOR3UBEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ubEXT")) == NULL) || r;
  5788. r = ((glSecondaryColor3ubvEXT = (PFNGLSECONDARYCOLOR3UBVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3ubvEXT")) == NULL) || r;
  5789. r = ((glSecondaryColor3uiEXT = (PFNGLSECONDARYCOLOR3UIEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3uiEXT")) == NULL) || r;
  5790. r = ((glSecondaryColor3uivEXT = (PFNGLSECONDARYCOLOR3UIVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3uivEXT")) == NULL) || r;
  5791. r = ((glSecondaryColor3usEXT = (PFNGLSECONDARYCOLOR3USEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3usEXT")) == NULL) || r;
  5792. r = ((glSecondaryColor3usvEXT = (PFNGLSECONDARYCOLOR3USVEXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3usvEXT")) == NULL) || r;
  5793. r = ((glSecondaryColorPointerEXT = (PFNGLSECONDARYCOLORPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorPointerEXT")) == NULL) || r;
  5794. return r;
  5795. }
  5796. #endif /* GL_EXT_secondary_color */
  5797. #ifdef GL_EXT_separate_shader_objects
  5798. static GLboolean _glewInit_GL_EXT_separate_shader_objects (GLEW_CONTEXT_ARG_DEF_INIT)
  5799. {
  5800. GLboolean r = GL_FALSE;
  5801. r = ((glActiveProgramEXT = (PFNGLACTIVEPROGRAMEXTPROC)glewGetProcAddress((const GLubyte*)"glActiveProgramEXT")) == NULL) || r;
  5802. r = ((glCreateShaderProgramEXT = (PFNGLCREATESHADERPROGRAMEXTPROC)glewGetProcAddress((const GLubyte*)"glCreateShaderProgramEXT")) == NULL) || r;
  5803. r = ((glUseShaderProgramEXT = (PFNGLUSESHADERPROGRAMEXTPROC)glewGetProcAddress((const GLubyte*)"glUseShaderProgramEXT")) == NULL) || r;
  5804. return r;
  5805. }
  5806. #endif /* GL_EXT_separate_shader_objects */
  5807. #ifdef GL_EXT_separate_specular_color
  5808. #endif /* GL_EXT_separate_specular_color */
  5809. #ifdef GL_EXT_shader_image_load_store
  5810. static GLboolean _glewInit_GL_EXT_shader_image_load_store (GLEW_CONTEXT_ARG_DEF_INIT)
  5811. {
  5812. GLboolean r = GL_FALSE;
  5813. r = ((glBindImageTextureEXT = (PFNGLBINDIMAGETEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glBindImageTextureEXT")) == NULL) || r;
  5814. r = ((glMemoryBarrierEXT = (PFNGLMEMORYBARRIEREXTPROC)glewGetProcAddress((const GLubyte*)"glMemoryBarrierEXT")) == NULL) || r;
  5815. return r;
  5816. }
  5817. #endif /* GL_EXT_shader_image_load_store */
  5818. #ifdef GL_EXT_shadow_funcs
  5819. #endif /* GL_EXT_shadow_funcs */
  5820. #ifdef GL_EXT_shared_texture_palette
  5821. #endif /* GL_EXT_shared_texture_palette */
  5822. #ifdef GL_EXT_stencil_clear_tag
  5823. #endif /* GL_EXT_stencil_clear_tag */
  5824. #ifdef GL_EXT_stencil_two_side
  5825. static GLboolean _glewInit_GL_EXT_stencil_two_side (GLEW_CONTEXT_ARG_DEF_INIT)
  5826. {
  5827. GLboolean r = GL_FALSE;
  5828. r = ((glActiveStencilFaceEXT = (PFNGLACTIVESTENCILFACEEXTPROC)glewGetProcAddress((const GLubyte*)"glActiveStencilFaceEXT")) == NULL) || r;
  5829. return r;
  5830. }
  5831. #endif /* GL_EXT_stencil_two_side */
  5832. #ifdef GL_EXT_stencil_wrap
  5833. #endif /* GL_EXT_stencil_wrap */
  5834. #ifdef GL_EXT_subtexture
  5835. static GLboolean _glewInit_GL_EXT_subtexture (GLEW_CONTEXT_ARG_DEF_INIT)
  5836. {
  5837. GLboolean r = GL_FALSE;
  5838. r = ((glTexSubImage1DEXT = (PFNGLTEXSUBIMAGE1DEXTPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage1DEXT")) == NULL) || r;
  5839. r = ((glTexSubImage2DEXT = (PFNGLTEXSUBIMAGE2DEXTPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage2DEXT")) == NULL) || r;
  5840. r = ((glTexSubImage3DEXT = (PFNGLTEXSUBIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage3DEXT")) == NULL) || r;
  5841. return r;
  5842. }
  5843. #endif /* GL_EXT_subtexture */
  5844. #ifdef GL_EXT_texture
  5845. #endif /* GL_EXT_texture */
  5846. #ifdef GL_EXT_texture3D
  5847. static GLboolean _glewInit_GL_EXT_texture3D (GLEW_CONTEXT_ARG_DEF_INIT)
  5848. {
  5849. GLboolean r = GL_FALSE;
  5850. r = ((glTexImage3DEXT = (PFNGLTEXIMAGE3DEXTPROC)glewGetProcAddress((const GLubyte*)"glTexImage3DEXT")) == NULL) || r;
  5851. return r;
  5852. }
  5853. #endif /* GL_EXT_texture3D */
  5854. #ifdef GL_EXT_texture_array
  5855. static GLboolean _glewInit_GL_EXT_texture_array (GLEW_CONTEXT_ARG_DEF_INIT)
  5856. {
  5857. GLboolean r = GL_FALSE;
  5858. r = ((glFramebufferTextureLayerEXT = (PFNGLFRAMEBUFFERTEXTURELAYEREXTPROC)glewGetProcAddress((const GLubyte*)"glFramebufferTextureLayerEXT")) == NULL) || r;
  5859. return r;
  5860. }
  5861. #endif /* GL_EXT_texture_array */
  5862. #ifdef GL_EXT_texture_buffer_object
  5863. static GLboolean _glewInit_GL_EXT_texture_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  5864. {
  5865. GLboolean r = GL_FALSE;
  5866. r = ((glTexBufferEXT = (PFNGLTEXBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"glTexBufferEXT")) == NULL) || r;
  5867. return r;
  5868. }
  5869. #endif /* GL_EXT_texture_buffer_object */
  5870. #ifdef GL_EXT_texture_compression_dxt1
  5871. #endif /* GL_EXT_texture_compression_dxt1 */
  5872. #ifdef GL_EXT_texture_compression_latc
  5873. #endif /* GL_EXT_texture_compression_latc */
  5874. #ifdef GL_EXT_texture_compression_rgtc
  5875. #endif /* GL_EXT_texture_compression_rgtc */
  5876. #ifdef GL_EXT_texture_compression_s3tc
  5877. #endif /* GL_EXT_texture_compression_s3tc */
  5878. #ifdef GL_EXT_texture_cube_map
  5879. #endif /* GL_EXT_texture_cube_map */
  5880. #ifdef GL_EXT_texture_edge_clamp
  5881. #endif /* GL_EXT_texture_edge_clamp */
  5882. #ifdef GL_EXT_texture_env
  5883. #endif /* GL_EXT_texture_env */
  5884. #ifdef GL_EXT_texture_env_add
  5885. #endif /* GL_EXT_texture_env_add */
  5886. #ifdef GL_EXT_texture_env_combine
  5887. #endif /* GL_EXT_texture_env_combine */
  5888. #ifdef GL_EXT_texture_env_dot3
  5889. #endif /* GL_EXT_texture_env_dot3 */
  5890. #ifdef GL_EXT_texture_filter_anisotropic
  5891. #endif /* GL_EXT_texture_filter_anisotropic */
  5892. #ifdef GL_EXT_texture_integer
  5893. static GLboolean _glewInit_GL_EXT_texture_integer (GLEW_CONTEXT_ARG_DEF_INIT)
  5894. {
  5895. GLboolean r = GL_FALSE;
  5896. r = ((glClearColorIiEXT = (PFNGLCLEARCOLORIIEXTPROC)glewGetProcAddress((const GLubyte*)"glClearColorIiEXT")) == NULL) || r;
  5897. r = ((glClearColorIuiEXT = (PFNGLCLEARCOLORIUIEXTPROC)glewGetProcAddress((const GLubyte*)"glClearColorIuiEXT")) == NULL) || r;
  5898. r = ((glGetTexParameterIivEXT = (PFNGLGETTEXPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterIivEXT")) == NULL) || r;
  5899. r = ((glGetTexParameterIuivEXT = (PFNGLGETTEXPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterIuivEXT")) == NULL) || r;
  5900. r = ((glTexParameterIivEXT = (PFNGLTEXPARAMETERIIVEXTPROC)glewGetProcAddress((const GLubyte*)"glTexParameterIivEXT")) == NULL) || r;
  5901. r = ((glTexParameterIuivEXT = (PFNGLTEXPARAMETERIUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glTexParameterIuivEXT")) == NULL) || r;
  5902. return r;
  5903. }
  5904. #endif /* GL_EXT_texture_integer */
  5905. #ifdef GL_EXT_texture_lod_bias
  5906. #endif /* GL_EXT_texture_lod_bias */
  5907. #ifdef GL_EXT_texture_mirror_clamp
  5908. #endif /* GL_EXT_texture_mirror_clamp */
  5909. #ifdef GL_EXT_texture_object
  5910. static GLboolean _glewInit_GL_EXT_texture_object (GLEW_CONTEXT_ARG_DEF_INIT)
  5911. {
  5912. GLboolean r = GL_FALSE;
  5913. r = ((glAreTexturesResidentEXT = (PFNGLARETEXTURESRESIDENTEXTPROC)glewGetProcAddress((const GLubyte*)"glAreTexturesResidentEXT")) == NULL) || r;
  5914. r = ((glBindTextureEXT = (PFNGLBINDTEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glBindTextureEXT")) == NULL) || r;
  5915. r = ((glDeleteTexturesEXT = (PFNGLDELETETEXTURESEXTPROC)glewGetProcAddress((const GLubyte*)"glDeleteTexturesEXT")) == NULL) || r;
  5916. r = ((glGenTexturesEXT = (PFNGLGENTEXTURESEXTPROC)glewGetProcAddress((const GLubyte*)"glGenTexturesEXT")) == NULL) || r;
  5917. r = ((glIsTextureEXT = (PFNGLISTEXTUREEXTPROC)glewGetProcAddress((const GLubyte*)"glIsTextureEXT")) == NULL) || r;
  5918. r = ((glPrioritizeTexturesEXT = (PFNGLPRIORITIZETEXTURESEXTPROC)glewGetProcAddress((const GLubyte*)"glPrioritizeTexturesEXT")) == NULL) || r;
  5919. return r;
  5920. }
  5921. #endif /* GL_EXT_texture_object */
  5922. #ifdef GL_EXT_texture_perturb_normal
  5923. static GLboolean _glewInit_GL_EXT_texture_perturb_normal (GLEW_CONTEXT_ARG_DEF_INIT)
  5924. {
  5925. GLboolean r = GL_FALSE;
  5926. r = ((glTextureNormalEXT = (PFNGLTEXTURENORMALEXTPROC)glewGetProcAddress((const GLubyte*)"glTextureNormalEXT")) == NULL) || r;
  5927. return r;
  5928. }
  5929. #endif /* GL_EXT_texture_perturb_normal */
  5930. #ifdef GL_EXT_texture_rectangle
  5931. #endif /* GL_EXT_texture_rectangle */
  5932. #ifdef GL_EXT_texture_sRGB
  5933. #endif /* GL_EXT_texture_sRGB */
  5934. #ifdef GL_EXT_texture_sRGB_decode
  5935. #endif /* GL_EXT_texture_sRGB_decode */
  5936. #ifdef GL_EXT_texture_shared_exponent
  5937. #endif /* GL_EXT_texture_shared_exponent */
  5938. #ifdef GL_EXT_texture_snorm
  5939. #endif /* GL_EXT_texture_snorm */
  5940. #ifdef GL_EXT_texture_swizzle
  5941. #endif /* GL_EXT_texture_swizzle */
  5942. #ifdef GL_EXT_timer_query
  5943. static GLboolean _glewInit_GL_EXT_timer_query (GLEW_CONTEXT_ARG_DEF_INIT)
  5944. {
  5945. GLboolean r = GL_FALSE;
  5946. r = ((glGetQueryObjecti64vEXT = (PFNGLGETQUERYOBJECTI64VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjecti64vEXT")) == NULL) || r;
  5947. r = ((glGetQueryObjectui64vEXT = (PFNGLGETQUERYOBJECTUI64VEXTPROC)glewGetProcAddress((const GLubyte*)"glGetQueryObjectui64vEXT")) == NULL) || r;
  5948. return r;
  5949. }
  5950. #endif /* GL_EXT_timer_query */
  5951. #ifdef GL_EXT_transform_feedback
  5952. static GLboolean _glewInit_GL_EXT_transform_feedback (GLEW_CONTEXT_ARG_DEF_INIT)
  5953. {
  5954. GLboolean r = GL_FALSE;
  5955. r = ((glBeginTransformFeedbackEXT = (PFNGLBEGINTRANSFORMFEEDBACKEXTPROC)glewGetProcAddress((const GLubyte*)"glBeginTransformFeedbackEXT")) == NULL) || r;
  5956. r = ((glBindBufferBaseEXT = (PFNGLBINDBUFFERBASEEXTPROC)glewGetProcAddress((const GLubyte*)"glBindBufferBaseEXT")) == NULL) || r;
  5957. r = ((glBindBufferOffsetEXT = (PFNGLBINDBUFFEROFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glBindBufferOffsetEXT")) == NULL) || r;
  5958. r = ((glBindBufferRangeEXT = (PFNGLBINDBUFFERRANGEEXTPROC)glewGetProcAddress((const GLubyte*)"glBindBufferRangeEXT")) == NULL) || r;
  5959. r = ((glEndTransformFeedbackEXT = (PFNGLENDTRANSFORMFEEDBACKEXTPROC)glewGetProcAddress((const GLubyte*)"glEndTransformFeedbackEXT")) == NULL) || r;
  5960. r = ((glGetTransformFeedbackVaryingEXT = (PFNGLGETTRANSFORMFEEDBACKVARYINGEXTPROC)glewGetProcAddress((const GLubyte*)"glGetTransformFeedbackVaryingEXT")) == NULL) || r;
  5961. r = ((glTransformFeedbackVaryingsEXT = (PFNGLTRANSFORMFEEDBACKVARYINGSEXTPROC)glewGetProcAddress((const GLubyte*)"glTransformFeedbackVaryingsEXT")) == NULL) || r;
  5962. return r;
  5963. }
  5964. #endif /* GL_EXT_transform_feedback */
  5965. #ifdef GL_EXT_vertex_array
  5966. static GLboolean _glewInit_GL_EXT_vertex_array (GLEW_CONTEXT_ARG_DEF_INIT)
  5967. {
  5968. GLboolean r = GL_FALSE;
  5969. r = ((glArrayElementEXT = (PFNGLARRAYELEMENTEXTPROC)glewGetProcAddress((const GLubyte*)"glArrayElementEXT")) == NULL) || r;
  5970. r = ((glColorPointerEXT = (PFNGLCOLORPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glColorPointerEXT")) == NULL) || r;
  5971. r = ((glDrawArraysEXT = (PFNGLDRAWARRAYSEXTPROC)glewGetProcAddress((const GLubyte*)"glDrawArraysEXT")) == NULL) || r;
  5972. r = ((glEdgeFlagPointerEXT = (PFNGLEDGEFLAGPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glEdgeFlagPointerEXT")) == NULL) || r;
  5973. r = ((glIndexPointerEXT = (PFNGLINDEXPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glIndexPointerEXT")) == NULL) || r;
  5974. r = ((glNormalPointerEXT = (PFNGLNORMALPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glNormalPointerEXT")) == NULL) || r;
  5975. r = ((glTexCoordPointerEXT = (PFNGLTEXCOORDPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glTexCoordPointerEXT")) == NULL) || r;
  5976. r = ((glVertexPointerEXT = (PFNGLVERTEXPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glVertexPointerEXT")) == NULL) || r;
  5977. return r;
  5978. }
  5979. #endif /* GL_EXT_vertex_array */
  5980. #ifdef GL_EXT_vertex_array_bgra
  5981. #endif /* GL_EXT_vertex_array_bgra */
  5982. #ifdef GL_EXT_vertex_attrib_64bit
  5983. static GLboolean _glewInit_GL_EXT_vertex_attrib_64bit (GLEW_CONTEXT_ARG_DEF_INIT)
  5984. {
  5985. GLboolean r = GL_FALSE;
  5986. r = ((glGetVertexAttribLdvEXT = (PFNGLGETVERTEXATTRIBLDVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribLdvEXT")) == NULL) || r;
  5987. r = ((glVertexArrayVertexAttribLOffsetEXT = (PFNGLVERTEXARRAYVERTEXATTRIBLOFFSETEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayVertexAttribLOffsetEXT")) == NULL) || r;
  5988. r = ((glVertexAttribL1dEXT = (PFNGLVERTEXATTRIBL1DEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1dEXT")) == NULL) || r;
  5989. r = ((glVertexAttribL1dvEXT = (PFNGLVERTEXATTRIBL1DVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1dvEXT")) == NULL) || r;
  5990. r = ((glVertexAttribL2dEXT = (PFNGLVERTEXATTRIBL2DEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2dEXT")) == NULL) || r;
  5991. r = ((glVertexAttribL2dvEXT = (PFNGLVERTEXATTRIBL2DVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2dvEXT")) == NULL) || r;
  5992. r = ((glVertexAttribL3dEXT = (PFNGLVERTEXATTRIBL3DEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3dEXT")) == NULL) || r;
  5993. r = ((glVertexAttribL3dvEXT = (PFNGLVERTEXATTRIBL3DVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3dvEXT")) == NULL) || r;
  5994. r = ((glVertexAttribL4dEXT = (PFNGLVERTEXATTRIBL4DEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4dEXT")) == NULL) || r;
  5995. r = ((glVertexAttribL4dvEXT = (PFNGLVERTEXATTRIBL4DVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4dvEXT")) == NULL) || r;
  5996. r = ((glVertexAttribLPointerEXT = (PFNGLVERTEXATTRIBLPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribLPointerEXT")) == NULL) || r;
  5997. return r;
  5998. }
  5999. #endif /* GL_EXT_vertex_attrib_64bit */
  6000. #ifdef GL_EXT_vertex_shader
  6001. static GLboolean _glewInit_GL_EXT_vertex_shader (GLEW_CONTEXT_ARG_DEF_INIT)
  6002. {
  6003. GLboolean r = GL_FALSE;
  6004. r = ((glBeginVertexShaderEXT = (PFNGLBEGINVERTEXSHADEREXTPROC)glewGetProcAddress((const GLubyte*)"glBeginVertexShaderEXT")) == NULL) || r;
  6005. r = ((glBindLightParameterEXT = (PFNGLBINDLIGHTPARAMETEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindLightParameterEXT")) == NULL) || r;
  6006. r = ((glBindMaterialParameterEXT = (PFNGLBINDMATERIALPARAMETEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindMaterialParameterEXT")) == NULL) || r;
  6007. r = ((glBindParameterEXT = (PFNGLBINDPARAMETEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindParameterEXT")) == NULL) || r;
  6008. r = ((glBindTexGenParameterEXT = (PFNGLBINDTEXGENPARAMETEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindTexGenParameterEXT")) == NULL) || r;
  6009. r = ((glBindTextureUnitParameterEXT = (PFNGLBINDTEXTUREUNITPARAMETEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindTextureUnitParameterEXT")) == NULL) || r;
  6010. r = ((glBindVertexShaderEXT = (PFNGLBINDVERTEXSHADEREXTPROC)glewGetProcAddress((const GLubyte*)"glBindVertexShaderEXT")) == NULL) || r;
  6011. r = ((glDeleteVertexShaderEXT = (PFNGLDELETEVERTEXSHADEREXTPROC)glewGetProcAddress((const GLubyte*)"glDeleteVertexShaderEXT")) == NULL) || r;
  6012. r = ((glDisableVariantClientStateEXT = (PFNGLDISABLEVARIANTCLIENTSTATEEXTPROC)glewGetProcAddress((const GLubyte*)"glDisableVariantClientStateEXT")) == NULL) || r;
  6013. r = ((glEnableVariantClientStateEXT = (PFNGLENABLEVARIANTCLIENTSTATEEXTPROC)glewGetProcAddress((const GLubyte*)"glEnableVariantClientStateEXT")) == NULL) || r;
  6014. r = ((glEndVertexShaderEXT = (PFNGLENDVERTEXSHADEREXTPROC)glewGetProcAddress((const GLubyte*)"glEndVertexShaderEXT")) == NULL) || r;
  6015. r = ((glExtractComponentEXT = (PFNGLEXTRACTCOMPONENTEXTPROC)glewGetProcAddress((const GLubyte*)"glExtractComponentEXT")) == NULL) || r;
  6016. r = ((glGenSymbolsEXT = (PFNGLGENSYMBOLSEXTPROC)glewGetProcAddress((const GLubyte*)"glGenSymbolsEXT")) == NULL) || r;
  6017. r = ((glGenVertexShadersEXT = (PFNGLGENVERTEXSHADERSEXTPROC)glewGetProcAddress((const GLubyte*)"glGenVertexShadersEXT")) == NULL) || r;
  6018. r = ((glGetInvariantBooleanvEXT = (PFNGLGETINVARIANTBOOLEANVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetInvariantBooleanvEXT")) == NULL) || r;
  6019. r = ((glGetInvariantFloatvEXT = (PFNGLGETINVARIANTFLOATVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetInvariantFloatvEXT")) == NULL) || r;
  6020. r = ((glGetInvariantIntegervEXT = (PFNGLGETINVARIANTINTEGERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetInvariantIntegervEXT")) == NULL) || r;
  6021. r = ((glGetLocalConstantBooleanvEXT = (PFNGLGETLOCALCONSTANTBOOLEANVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetLocalConstantBooleanvEXT")) == NULL) || r;
  6022. r = ((glGetLocalConstantFloatvEXT = (PFNGLGETLOCALCONSTANTFLOATVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetLocalConstantFloatvEXT")) == NULL) || r;
  6023. r = ((glGetLocalConstantIntegervEXT = (PFNGLGETLOCALCONSTANTINTEGERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetLocalConstantIntegervEXT")) == NULL) || r;
  6024. r = ((glGetVariantBooleanvEXT = (PFNGLGETVARIANTBOOLEANVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVariantBooleanvEXT")) == NULL) || r;
  6025. r = ((glGetVariantFloatvEXT = (PFNGLGETVARIANTFLOATVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVariantFloatvEXT")) == NULL) || r;
  6026. r = ((glGetVariantIntegervEXT = (PFNGLGETVARIANTINTEGERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVariantIntegervEXT")) == NULL) || r;
  6027. r = ((glGetVariantPointervEXT = (PFNGLGETVARIANTPOINTERVEXTPROC)glewGetProcAddress((const GLubyte*)"glGetVariantPointervEXT")) == NULL) || r;
  6028. r = ((glInsertComponentEXT = (PFNGLINSERTCOMPONENTEXTPROC)glewGetProcAddress((const GLubyte*)"glInsertComponentEXT")) == NULL) || r;
  6029. r = ((glIsVariantEnabledEXT = (PFNGLISVARIANTENABLEDEXTPROC)glewGetProcAddress((const GLubyte*)"glIsVariantEnabledEXT")) == NULL) || r;
  6030. r = ((glSetInvariantEXT = (PFNGLSETINVARIANTEXTPROC)glewGetProcAddress((const GLubyte*)"glSetInvariantEXT")) == NULL) || r;
  6031. r = ((glSetLocalConstantEXT = (PFNGLSETLOCALCONSTANTEXTPROC)glewGetProcAddress((const GLubyte*)"glSetLocalConstantEXT")) == NULL) || r;
  6032. r = ((glShaderOp1EXT = (PFNGLSHADEROP1EXTPROC)glewGetProcAddress((const GLubyte*)"glShaderOp1EXT")) == NULL) || r;
  6033. r = ((glShaderOp2EXT = (PFNGLSHADEROP2EXTPROC)glewGetProcAddress((const GLubyte*)"glShaderOp2EXT")) == NULL) || r;
  6034. r = ((glShaderOp3EXT = (PFNGLSHADEROP3EXTPROC)glewGetProcAddress((const GLubyte*)"glShaderOp3EXT")) == NULL) || r;
  6035. r = ((glSwizzleEXT = (PFNGLSWIZZLEEXTPROC)glewGetProcAddress((const GLubyte*)"glSwizzleEXT")) == NULL) || r;
  6036. r = ((glVariantPointerEXT = (PFNGLVARIANTPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glVariantPointerEXT")) == NULL) || r;
  6037. r = ((glVariantbvEXT = (PFNGLVARIANTBVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantbvEXT")) == NULL) || r;
  6038. r = ((glVariantdvEXT = (PFNGLVARIANTDVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantdvEXT")) == NULL) || r;
  6039. r = ((glVariantfvEXT = (PFNGLVARIANTFVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantfvEXT")) == NULL) || r;
  6040. r = ((glVariantivEXT = (PFNGLVARIANTIVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantivEXT")) == NULL) || r;
  6041. r = ((glVariantsvEXT = (PFNGLVARIANTSVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantsvEXT")) == NULL) || r;
  6042. r = ((glVariantubvEXT = (PFNGLVARIANTUBVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantubvEXT")) == NULL) || r;
  6043. r = ((glVariantuivEXT = (PFNGLVARIANTUIVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantuivEXT")) == NULL) || r;
  6044. r = ((glVariantusvEXT = (PFNGLVARIANTUSVEXTPROC)glewGetProcAddress((const GLubyte*)"glVariantusvEXT")) == NULL) || r;
  6045. r = ((glWriteMaskEXT = (PFNGLWRITEMASKEXTPROC)glewGetProcAddress((const GLubyte*)"glWriteMaskEXT")) == NULL) || r;
  6046. return r;
  6047. }
  6048. #endif /* GL_EXT_vertex_shader */
  6049. #ifdef GL_EXT_vertex_weighting
  6050. static GLboolean _glewInit_GL_EXT_vertex_weighting (GLEW_CONTEXT_ARG_DEF_INIT)
  6051. {
  6052. GLboolean r = GL_FALSE;
  6053. r = ((glVertexWeightPointerEXT = (PFNGLVERTEXWEIGHTPOINTEREXTPROC)glewGetProcAddress((const GLubyte*)"glVertexWeightPointerEXT")) == NULL) || r;
  6054. r = ((glVertexWeightfEXT = (PFNGLVERTEXWEIGHTFEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexWeightfEXT")) == NULL) || r;
  6055. r = ((glVertexWeightfvEXT = (PFNGLVERTEXWEIGHTFVEXTPROC)glewGetProcAddress((const GLubyte*)"glVertexWeightfvEXT")) == NULL) || r;
  6056. return r;
  6057. }
  6058. #endif /* GL_EXT_vertex_weighting */
  6059. #ifdef GL_EXT_x11_sync_object
  6060. static GLboolean _glewInit_GL_EXT_x11_sync_object (GLEW_CONTEXT_ARG_DEF_INIT)
  6061. {
  6062. GLboolean r = GL_FALSE;
  6063. r = ((glImportSyncEXT = (PFNGLIMPORTSYNCEXTPROC)glewGetProcAddress((const GLubyte*)"glImportSyncEXT")) == NULL) || r;
  6064. return r;
  6065. }
  6066. #endif /* GL_EXT_x11_sync_object */
  6067. #ifdef GL_GREMEDY_frame_terminator
  6068. static GLboolean _glewInit_GL_GREMEDY_frame_terminator (GLEW_CONTEXT_ARG_DEF_INIT)
  6069. {
  6070. GLboolean r = GL_FALSE;
  6071. r = ((glFrameTerminatorGREMEDY = (PFNGLFRAMETERMINATORGREMEDYPROC)glewGetProcAddress((const GLubyte*)"glFrameTerminatorGREMEDY")) == NULL) || r;
  6072. return r;
  6073. }
  6074. #endif /* GL_GREMEDY_frame_terminator */
  6075. #ifdef GL_GREMEDY_string_marker
  6076. static GLboolean _glewInit_GL_GREMEDY_string_marker (GLEW_CONTEXT_ARG_DEF_INIT)
  6077. {
  6078. GLboolean r = GL_FALSE;
  6079. r = ((glStringMarkerGREMEDY = (PFNGLSTRINGMARKERGREMEDYPROC)glewGetProcAddress((const GLubyte*)"glStringMarkerGREMEDY")) == NULL) || r;
  6080. return r;
  6081. }
  6082. #endif /* GL_GREMEDY_string_marker */
  6083. #ifdef GL_HP_convolution_border_modes
  6084. #endif /* GL_HP_convolution_border_modes */
  6085. #ifdef GL_HP_image_transform
  6086. static GLboolean _glewInit_GL_HP_image_transform (GLEW_CONTEXT_ARG_DEF_INIT)
  6087. {
  6088. GLboolean r = GL_FALSE;
  6089. r = ((glGetImageTransformParameterfvHP = (PFNGLGETIMAGETRANSFORMPARAMETERFVHPPROC)glewGetProcAddress((const GLubyte*)"glGetImageTransformParameterfvHP")) == NULL) || r;
  6090. r = ((glGetImageTransformParameterivHP = (PFNGLGETIMAGETRANSFORMPARAMETERIVHPPROC)glewGetProcAddress((const GLubyte*)"glGetImageTransformParameterivHP")) == NULL) || r;
  6091. r = ((glImageTransformParameterfHP = (PFNGLIMAGETRANSFORMPARAMETERFHPPROC)glewGetProcAddress((const GLubyte*)"glImageTransformParameterfHP")) == NULL) || r;
  6092. r = ((glImageTransformParameterfvHP = (PFNGLIMAGETRANSFORMPARAMETERFVHPPROC)glewGetProcAddress((const GLubyte*)"glImageTransformParameterfvHP")) == NULL) || r;
  6093. r = ((glImageTransformParameteriHP = (PFNGLIMAGETRANSFORMPARAMETERIHPPROC)glewGetProcAddress((const GLubyte*)"glImageTransformParameteriHP")) == NULL) || r;
  6094. r = ((glImageTransformParameterivHP = (PFNGLIMAGETRANSFORMPARAMETERIVHPPROC)glewGetProcAddress((const GLubyte*)"glImageTransformParameterivHP")) == NULL) || r;
  6095. return r;
  6096. }
  6097. #endif /* GL_HP_image_transform */
  6098. #ifdef GL_HP_occlusion_test
  6099. #endif /* GL_HP_occlusion_test */
  6100. #ifdef GL_HP_texture_lighting
  6101. #endif /* GL_HP_texture_lighting */
  6102. #ifdef GL_IBM_cull_vertex
  6103. #endif /* GL_IBM_cull_vertex */
  6104. #ifdef GL_IBM_multimode_draw_arrays
  6105. static GLboolean _glewInit_GL_IBM_multimode_draw_arrays (GLEW_CONTEXT_ARG_DEF_INIT)
  6106. {
  6107. GLboolean r = GL_FALSE;
  6108. r = ((glMultiModeDrawArraysIBM = (PFNGLMULTIMODEDRAWARRAYSIBMPROC)glewGetProcAddress((const GLubyte*)"glMultiModeDrawArraysIBM")) == NULL) || r;
  6109. r = ((glMultiModeDrawElementsIBM = (PFNGLMULTIMODEDRAWELEMENTSIBMPROC)glewGetProcAddress((const GLubyte*)"glMultiModeDrawElementsIBM")) == NULL) || r;
  6110. return r;
  6111. }
  6112. #endif /* GL_IBM_multimode_draw_arrays */
  6113. #ifdef GL_IBM_rasterpos_clip
  6114. #endif /* GL_IBM_rasterpos_clip */
  6115. #ifdef GL_IBM_static_data
  6116. #endif /* GL_IBM_static_data */
  6117. #ifdef GL_IBM_texture_mirrored_repeat
  6118. #endif /* GL_IBM_texture_mirrored_repeat */
  6119. #ifdef GL_IBM_vertex_array_lists
  6120. static GLboolean _glewInit_GL_IBM_vertex_array_lists (GLEW_CONTEXT_ARG_DEF_INIT)
  6121. {
  6122. GLboolean r = GL_FALSE;
  6123. r = ((glColorPointerListIBM = (PFNGLCOLORPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glColorPointerListIBM")) == NULL) || r;
  6124. r = ((glEdgeFlagPointerListIBM = (PFNGLEDGEFLAGPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glEdgeFlagPointerListIBM")) == NULL) || r;
  6125. r = ((glFogCoordPointerListIBM = (PFNGLFOGCOORDPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glFogCoordPointerListIBM")) == NULL) || r;
  6126. r = ((glIndexPointerListIBM = (PFNGLINDEXPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glIndexPointerListIBM")) == NULL) || r;
  6127. r = ((glNormalPointerListIBM = (PFNGLNORMALPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glNormalPointerListIBM")) == NULL) || r;
  6128. r = ((glSecondaryColorPointerListIBM = (PFNGLSECONDARYCOLORPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorPointerListIBM")) == NULL) || r;
  6129. r = ((glTexCoordPointerListIBM = (PFNGLTEXCOORDPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glTexCoordPointerListIBM")) == NULL) || r;
  6130. r = ((glVertexPointerListIBM = (PFNGLVERTEXPOINTERLISTIBMPROC)glewGetProcAddress((const GLubyte*)"glVertexPointerListIBM")) == NULL) || r;
  6131. return r;
  6132. }
  6133. #endif /* GL_IBM_vertex_array_lists */
  6134. #ifdef GL_INGR_color_clamp
  6135. #endif /* GL_INGR_color_clamp */
  6136. #ifdef GL_INGR_interlace_read
  6137. #endif /* GL_INGR_interlace_read */
  6138. #ifdef GL_INTEL_map_texture
  6139. static GLboolean _glewInit_GL_INTEL_map_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  6140. {
  6141. GLboolean r = GL_FALSE;
  6142. r = ((glMapTexture2DINTEL = (PFNGLMAPTEXTURE2DINTELPROC)glewGetProcAddress((const GLubyte*)"glMapTexture2DINTEL")) == NULL) || r;
  6143. r = ((glSyncTextureINTEL = (PFNGLSYNCTEXTUREINTELPROC)glewGetProcAddress((const GLubyte*)"glSyncTextureINTEL")) == NULL) || r;
  6144. r = ((glUnmapTexture2DINTEL = (PFNGLUNMAPTEXTURE2DINTELPROC)glewGetProcAddress((const GLubyte*)"glUnmapTexture2DINTEL")) == NULL) || r;
  6145. return r;
  6146. }
  6147. #endif /* GL_INTEL_map_texture */
  6148. #ifdef GL_INTEL_parallel_arrays
  6149. static GLboolean _glewInit_GL_INTEL_parallel_arrays (GLEW_CONTEXT_ARG_DEF_INIT)
  6150. {
  6151. GLboolean r = GL_FALSE;
  6152. r = ((glColorPointervINTEL = (PFNGLCOLORPOINTERVINTELPROC)glewGetProcAddress((const GLubyte*)"glColorPointervINTEL")) == NULL) || r;
  6153. r = ((glNormalPointervINTEL = (PFNGLNORMALPOINTERVINTELPROC)glewGetProcAddress((const GLubyte*)"glNormalPointervINTEL")) == NULL) || r;
  6154. r = ((glTexCoordPointervINTEL = (PFNGLTEXCOORDPOINTERVINTELPROC)glewGetProcAddress((const GLubyte*)"glTexCoordPointervINTEL")) == NULL) || r;
  6155. r = ((glVertexPointervINTEL = (PFNGLVERTEXPOINTERVINTELPROC)glewGetProcAddress((const GLubyte*)"glVertexPointervINTEL")) == NULL) || r;
  6156. return r;
  6157. }
  6158. #endif /* GL_INTEL_parallel_arrays */
  6159. #ifdef GL_INTEL_texture_scissor
  6160. static GLboolean _glewInit_GL_INTEL_texture_scissor (GLEW_CONTEXT_ARG_DEF_INIT)
  6161. {
  6162. GLboolean r = GL_FALSE;
  6163. r = ((glTexScissorFuncINTEL = (PFNGLTEXSCISSORFUNCINTELPROC)glewGetProcAddress((const GLubyte*)"glTexScissorFuncINTEL")) == NULL) || r;
  6164. r = ((glTexScissorINTEL = (PFNGLTEXSCISSORINTELPROC)glewGetProcAddress((const GLubyte*)"glTexScissorINTEL")) == NULL) || r;
  6165. return r;
  6166. }
  6167. #endif /* GL_INTEL_texture_scissor */
  6168. #ifdef GL_KHR_debug
  6169. static GLboolean _glewInit_GL_KHR_debug (GLEW_CONTEXT_ARG_DEF_INIT)
  6170. {
  6171. GLboolean r = GL_FALSE;
  6172. r = ((glDebugMessageCallback = (PFNGLDEBUGMESSAGECALLBACKPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageCallback")) == NULL) || r;
  6173. r = ((glDebugMessageControl = (PFNGLDEBUGMESSAGECONTROLPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageControl")) == NULL) || r;
  6174. r = ((glDebugMessageInsert = (PFNGLDEBUGMESSAGEINSERTPROC)glewGetProcAddress((const GLubyte*)"glDebugMessageInsert")) == NULL) || r;
  6175. r = ((glGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGPROC)glewGetProcAddress((const GLubyte*)"glGetDebugMessageLog")) == NULL) || r;
  6176. r = ((glGetObjectLabel = (PFNGLGETOBJECTLABELPROC)glewGetProcAddress((const GLubyte*)"glGetObjectLabel")) == NULL) || r;
  6177. r = ((glGetObjectPtrLabel = (PFNGLGETOBJECTPTRLABELPROC)glewGetProcAddress((const GLubyte*)"glGetObjectPtrLabel")) == NULL) || r;
  6178. r = ((glObjectLabel = (PFNGLOBJECTLABELPROC)glewGetProcAddress((const GLubyte*)"glObjectLabel")) == NULL) || r;
  6179. r = ((glObjectPtrLabel = (PFNGLOBJECTPTRLABELPROC)glewGetProcAddress((const GLubyte*)"glObjectPtrLabel")) == NULL) || r;
  6180. r = ((glPopDebugGroup = (PFNGLPOPDEBUGGROUPPROC)glewGetProcAddress((const GLubyte*)"glPopDebugGroup")) == NULL) || r;
  6181. r = ((glPushDebugGroup = (PFNGLPUSHDEBUGGROUPPROC)glewGetProcAddress((const GLubyte*)"glPushDebugGroup")) == NULL) || r;
  6182. return r;
  6183. }
  6184. #endif /* GL_KHR_debug */
  6185. #ifdef GL_KHR_texture_compression_astc_ldr
  6186. #endif /* GL_KHR_texture_compression_astc_ldr */
  6187. #ifdef GL_KTX_buffer_region
  6188. static GLboolean _glewInit_GL_KTX_buffer_region (GLEW_CONTEXT_ARG_DEF_INIT)
  6189. {
  6190. GLboolean r = GL_FALSE;
  6191. r = ((glBufferRegionEnabled = (PFNGLBUFFERREGIONENABLEDPROC)glewGetProcAddress((const GLubyte*)"glBufferRegionEnabled")) == NULL) || r;
  6192. r = ((glDeleteBufferRegion = (PFNGLDELETEBUFFERREGIONPROC)glewGetProcAddress((const GLubyte*)"glDeleteBufferRegion")) == NULL) || r;
  6193. r = ((glDrawBufferRegion = (PFNGLDRAWBUFFERREGIONPROC)glewGetProcAddress((const GLubyte*)"glDrawBufferRegion")) == NULL) || r;
  6194. r = ((glNewBufferRegion = (PFNGLNEWBUFFERREGIONPROC)glewGetProcAddress((const GLubyte*)"glNewBufferRegion")) == NULL) || r;
  6195. r = ((glReadBufferRegion = (PFNGLREADBUFFERREGIONPROC)glewGetProcAddress((const GLubyte*)"glReadBufferRegion")) == NULL) || r;
  6196. return r;
  6197. }
  6198. #endif /* GL_KTX_buffer_region */
  6199. #ifdef GL_MESAX_texture_stack
  6200. #endif /* GL_MESAX_texture_stack */
  6201. #ifdef GL_MESA_pack_invert
  6202. #endif /* GL_MESA_pack_invert */
  6203. #ifdef GL_MESA_resize_buffers
  6204. static GLboolean _glewInit_GL_MESA_resize_buffers (GLEW_CONTEXT_ARG_DEF_INIT)
  6205. {
  6206. GLboolean r = GL_FALSE;
  6207. r = ((glResizeBuffersMESA = (PFNGLRESIZEBUFFERSMESAPROC)glewGetProcAddress((const GLubyte*)"glResizeBuffersMESA")) == NULL) || r;
  6208. return r;
  6209. }
  6210. #endif /* GL_MESA_resize_buffers */
  6211. #ifdef GL_MESA_window_pos
  6212. static GLboolean _glewInit_GL_MESA_window_pos (GLEW_CONTEXT_ARG_DEF_INIT)
  6213. {
  6214. GLboolean r = GL_FALSE;
  6215. r = ((glWindowPos2dMESA = (PFNGLWINDOWPOS2DMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2dMESA")) == NULL) || r;
  6216. r = ((glWindowPos2dvMESA = (PFNGLWINDOWPOS2DVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2dvMESA")) == NULL) || r;
  6217. r = ((glWindowPos2fMESA = (PFNGLWINDOWPOS2FMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2fMESA")) == NULL) || r;
  6218. r = ((glWindowPos2fvMESA = (PFNGLWINDOWPOS2FVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2fvMESA")) == NULL) || r;
  6219. r = ((glWindowPos2iMESA = (PFNGLWINDOWPOS2IMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2iMESA")) == NULL) || r;
  6220. r = ((glWindowPos2ivMESA = (PFNGLWINDOWPOS2IVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2ivMESA")) == NULL) || r;
  6221. r = ((glWindowPos2sMESA = (PFNGLWINDOWPOS2SMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2sMESA")) == NULL) || r;
  6222. r = ((glWindowPos2svMESA = (PFNGLWINDOWPOS2SVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos2svMESA")) == NULL) || r;
  6223. r = ((glWindowPos3dMESA = (PFNGLWINDOWPOS3DMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3dMESA")) == NULL) || r;
  6224. r = ((glWindowPos3dvMESA = (PFNGLWINDOWPOS3DVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3dvMESA")) == NULL) || r;
  6225. r = ((glWindowPos3fMESA = (PFNGLWINDOWPOS3FMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3fMESA")) == NULL) || r;
  6226. r = ((glWindowPos3fvMESA = (PFNGLWINDOWPOS3FVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3fvMESA")) == NULL) || r;
  6227. r = ((glWindowPos3iMESA = (PFNGLWINDOWPOS3IMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3iMESA")) == NULL) || r;
  6228. r = ((glWindowPos3ivMESA = (PFNGLWINDOWPOS3IVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3ivMESA")) == NULL) || r;
  6229. r = ((glWindowPos3sMESA = (PFNGLWINDOWPOS3SMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3sMESA")) == NULL) || r;
  6230. r = ((glWindowPos3svMESA = (PFNGLWINDOWPOS3SVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos3svMESA")) == NULL) || r;
  6231. r = ((glWindowPos4dMESA = (PFNGLWINDOWPOS4DMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4dMESA")) == NULL) || r;
  6232. r = ((glWindowPos4dvMESA = (PFNGLWINDOWPOS4DVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4dvMESA")) == NULL) || r;
  6233. r = ((glWindowPos4fMESA = (PFNGLWINDOWPOS4FMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4fMESA")) == NULL) || r;
  6234. r = ((glWindowPos4fvMESA = (PFNGLWINDOWPOS4FVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4fvMESA")) == NULL) || r;
  6235. r = ((glWindowPos4iMESA = (PFNGLWINDOWPOS4IMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4iMESA")) == NULL) || r;
  6236. r = ((glWindowPos4ivMESA = (PFNGLWINDOWPOS4IVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4ivMESA")) == NULL) || r;
  6237. r = ((glWindowPos4sMESA = (PFNGLWINDOWPOS4SMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4sMESA")) == NULL) || r;
  6238. r = ((glWindowPos4svMESA = (PFNGLWINDOWPOS4SVMESAPROC)glewGetProcAddress((const GLubyte*)"glWindowPos4svMESA")) == NULL) || r;
  6239. return r;
  6240. }
  6241. #endif /* GL_MESA_window_pos */
  6242. #ifdef GL_MESA_ycbcr_texture
  6243. #endif /* GL_MESA_ycbcr_texture */
  6244. #ifdef GL_NVX_conditional_render
  6245. static GLboolean _glewInit_GL_NVX_conditional_render (GLEW_CONTEXT_ARG_DEF_INIT)
  6246. {
  6247. GLboolean r = GL_FALSE;
  6248. r = ((glBeginConditionalRenderNVX = (PFNGLBEGINCONDITIONALRENDERNVXPROC)glewGetProcAddress((const GLubyte*)"glBeginConditionalRenderNVX")) == NULL) || r;
  6249. r = ((glEndConditionalRenderNVX = (PFNGLENDCONDITIONALRENDERNVXPROC)glewGetProcAddress((const GLubyte*)"glEndConditionalRenderNVX")) == NULL) || r;
  6250. return r;
  6251. }
  6252. #endif /* GL_NVX_conditional_render */
  6253. #ifdef GL_NVX_gpu_memory_info
  6254. #endif /* GL_NVX_gpu_memory_info */
  6255. #ifdef GL_NV_bindless_multi_draw_indirect
  6256. static GLboolean _glewInit_GL_NV_bindless_multi_draw_indirect (GLEW_CONTEXT_ARG_DEF_INIT)
  6257. {
  6258. GLboolean r = GL_FALSE;
  6259. r = ((glMultiDrawArraysIndirectBindlessNV = (PFNGLMULTIDRAWARRAYSINDIRECTBINDLESSNVPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawArraysIndirectBindlessNV")) == NULL) || r;
  6260. r = ((glMultiDrawElementsIndirectBindlessNV = (PFNGLMULTIDRAWELEMENTSINDIRECTBINDLESSNVPROC)glewGetProcAddress((const GLubyte*)"glMultiDrawElementsIndirectBindlessNV")) == NULL) || r;
  6261. return r;
  6262. }
  6263. #endif /* GL_NV_bindless_multi_draw_indirect */
  6264. #ifdef GL_NV_bindless_texture
  6265. static GLboolean _glewInit_GL_NV_bindless_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  6266. {
  6267. GLboolean r = GL_FALSE;
  6268. r = ((glGetImageHandleNV = (PFNGLGETIMAGEHANDLENVPROC)glewGetProcAddress((const GLubyte*)"glGetImageHandleNV")) == NULL) || r;
  6269. r = ((glGetTextureHandleNV = (PFNGLGETTEXTUREHANDLENVPROC)glewGetProcAddress((const GLubyte*)"glGetTextureHandleNV")) == NULL) || r;
  6270. r = ((glGetTextureSamplerHandleNV = (PFNGLGETTEXTURESAMPLERHANDLENVPROC)glewGetProcAddress((const GLubyte*)"glGetTextureSamplerHandleNV")) == NULL) || r;
  6271. r = ((glIsImageHandleResidentNV = (PFNGLISIMAGEHANDLERESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glIsImageHandleResidentNV")) == NULL) || r;
  6272. r = ((glIsTextureHandleResidentNV = (PFNGLISTEXTUREHANDLERESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glIsTextureHandleResidentNV")) == NULL) || r;
  6273. r = ((glMakeImageHandleNonResidentNV = (PFNGLMAKEIMAGEHANDLENONRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeImageHandleNonResidentNV")) == NULL) || r;
  6274. r = ((glMakeImageHandleResidentNV = (PFNGLMAKEIMAGEHANDLERESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeImageHandleResidentNV")) == NULL) || r;
  6275. r = ((glMakeTextureHandleNonResidentNV = (PFNGLMAKETEXTUREHANDLENONRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeTextureHandleNonResidentNV")) == NULL) || r;
  6276. r = ((glMakeTextureHandleResidentNV = (PFNGLMAKETEXTUREHANDLERESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeTextureHandleResidentNV")) == NULL) || r;
  6277. r = ((glProgramUniformHandleui64NV = (PFNGLPROGRAMUNIFORMHANDLEUI64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformHandleui64NV")) == NULL) || r;
  6278. r = ((glProgramUniformHandleui64vNV = (PFNGLPROGRAMUNIFORMHANDLEUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformHandleui64vNV")) == NULL) || r;
  6279. r = ((glUniformHandleui64NV = (PFNGLUNIFORMHANDLEUI64NVPROC)glewGetProcAddress((const GLubyte*)"glUniformHandleui64NV")) == NULL) || r;
  6280. r = ((glUniformHandleui64vNV = (PFNGLUNIFORMHANDLEUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniformHandleui64vNV")) == NULL) || r;
  6281. return r;
  6282. }
  6283. #endif /* GL_NV_bindless_texture */
  6284. #ifdef GL_NV_blend_equation_advanced
  6285. static GLboolean _glewInit_GL_NV_blend_equation_advanced (GLEW_CONTEXT_ARG_DEF_INIT)
  6286. {
  6287. GLboolean r = GL_FALSE;
  6288. r = ((glBlendBarrierNV = (PFNGLBLENDBARRIERNVPROC)glewGetProcAddress((const GLubyte*)"glBlendBarrierNV")) == NULL) || r;
  6289. r = ((glBlendParameteriNV = (PFNGLBLENDPARAMETERINVPROC)glewGetProcAddress((const GLubyte*)"glBlendParameteriNV")) == NULL) || r;
  6290. return r;
  6291. }
  6292. #endif /* GL_NV_blend_equation_advanced */
  6293. #ifdef GL_NV_blend_equation_advanced_coherent
  6294. #endif /* GL_NV_blend_equation_advanced_coherent */
  6295. #ifdef GL_NV_blend_square
  6296. #endif /* GL_NV_blend_square */
  6297. #ifdef GL_NV_compute_program5
  6298. #endif /* GL_NV_compute_program5 */
  6299. #ifdef GL_NV_conditional_render
  6300. static GLboolean _glewInit_GL_NV_conditional_render (GLEW_CONTEXT_ARG_DEF_INIT)
  6301. {
  6302. GLboolean r = GL_FALSE;
  6303. r = ((glBeginConditionalRenderNV = (PFNGLBEGINCONDITIONALRENDERNVPROC)glewGetProcAddress((const GLubyte*)"glBeginConditionalRenderNV")) == NULL) || r;
  6304. r = ((glEndConditionalRenderNV = (PFNGLENDCONDITIONALRENDERNVPROC)glewGetProcAddress((const GLubyte*)"glEndConditionalRenderNV")) == NULL) || r;
  6305. return r;
  6306. }
  6307. #endif /* GL_NV_conditional_render */
  6308. #ifdef GL_NV_copy_depth_to_color
  6309. #endif /* GL_NV_copy_depth_to_color */
  6310. #ifdef GL_NV_copy_image
  6311. static GLboolean _glewInit_GL_NV_copy_image (GLEW_CONTEXT_ARG_DEF_INIT)
  6312. {
  6313. GLboolean r = GL_FALSE;
  6314. r = ((glCopyImageSubDataNV = (PFNGLCOPYIMAGESUBDATANVPROC)glewGetProcAddress((const GLubyte*)"glCopyImageSubDataNV")) == NULL) || r;
  6315. return r;
  6316. }
  6317. #endif /* GL_NV_copy_image */
  6318. #ifdef GL_NV_deep_texture3D
  6319. #endif /* GL_NV_deep_texture3D */
  6320. #ifdef GL_NV_depth_buffer_float
  6321. static GLboolean _glewInit_GL_NV_depth_buffer_float (GLEW_CONTEXT_ARG_DEF_INIT)
  6322. {
  6323. GLboolean r = GL_FALSE;
  6324. r = ((glClearDepthdNV = (PFNGLCLEARDEPTHDNVPROC)glewGetProcAddress((const GLubyte*)"glClearDepthdNV")) == NULL) || r;
  6325. r = ((glDepthBoundsdNV = (PFNGLDEPTHBOUNDSDNVPROC)glewGetProcAddress((const GLubyte*)"glDepthBoundsdNV")) == NULL) || r;
  6326. r = ((glDepthRangedNV = (PFNGLDEPTHRANGEDNVPROC)glewGetProcAddress((const GLubyte*)"glDepthRangedNV")) == NULL) || r;
  6327. return r;
  6328. }
  6329. #endif /* GL_NV_depth_buffer_float */
  6330. #ifdef GL_NV_depth_clamp
  6331. #endif /* GL_NV_depth_clamp */
  6332. #ifdef GL_NV_depth_range_unclamped
  6333. #endif /* GL_NV_depth_range_unclamped */
  6334. #ifdef GL_NV_draw_texture
  6335. static GLboolean _glewInit_GL_NV_draw_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  6336. {
  6337. GLboolean r = GL_FALSE;
  6338. r = ((glDrawTextureNV = (PFNGLDRAWTEXTURENVPROC)glewGetProcAddress((const GLubyte*)"glDrawTextureNV")) == NULL) || r;
  6339. return r;
  6340. }
  6341. #endif /* GL_NV_draw_texture */
  6342. #ifdef GL_NV_evaluators
  6343. static GLboolean _glewInit_GL_NV_evaluators (GLEW_CONTEXT_ARG_DEF_INIT)
  6344. {
  6345. GLboolean r = GL_FALSE;
  6346. r = ((glEvalMapsNV = (PFNGLEVALMAPSNVPROC)glewGetProcAddress((const GLubyte*)"glEvalMapsNV")) == NULL) || r;
  6347. r = ((glGetMapAttribParameterfvNV = (PFNGLGETMAPATTRIBPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetMapAttribParameterfvNV")) == NULL) || r;
  6348. r = ((glGetMapAttribParameterivNV = (PFNGLGETMAPATTRIBPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetMapAttribParameterivNV")) == NULL) || r;
  6349. r = ((glGetMapControlPointsNV = (PFNGLGETMAPCONTROLPOINTSNVPROC)glewGetProcAddress((const GLubyte*)"glGetMapControlPointsNV")) == NULL) || r;
  6350. r = ((glGetMapParameterfvNV = (PFNGLGETMAPPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetMapParameterfvNV")) == NULL) || r;
  6351. r = ((glGetMapParameterivNV = (PFNGLGETMAPPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetMapParameterivNV")) == NULL) || r;
  6352. r = ((glMapControlPointsNV = (PFNGLMAPCONTROLPOINTSNVPROC)glewGetProcAddress((const GLubyte*)"glMapControlPointsNV")) == NULL) || r;
  6353. r = ((glMapParameterfvNV = (PFNGLMAPPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glMapParameterfvNV")) == NULL) || r;
  6354. r = ((glMapParameterivNV = (PFNGLMAPPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glMapParameterivNV")) == NULL) || r;
  6355. return r;
  6356. }
  6357. #endif /* GL_NV_evaluators */
  6358. #ifdef GL_NV_explicit_multisample
  6359. static GLboolean _glewInit_GL_NV_explicit_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  6360. {
  6361. GLboolean r = GL_FALSE;
  6362. r = ((glGetMultisamplefvNV = (PFNGLGETMULTISAMPLEFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetMultisamplefvNV")) == NULL) || r;
  6363. r = ((glSampleMaskIndexedNV = (PFNGLSAMPLEMASKINDEXEDNVPROC)glewGetProcAddress((const GLubyte*)"glSampleMaskIndexedNV")) == NULL) || r;
  6364. r = ((glTexRenderbufferNV = (PFNGLTEXRENDERBUFFERNVPROC)glewGetProcAddress((const GLubyte*)"glTexRenderbufferNV")) == NULL) || r;
  6365. return r;
  6366. }
  6367. #endif /* GL_NV_explicit_multisample */
  6368. #ifdef GL_NV_fence
  6369. static GLboolean _glewInit_GL_NV_fence (GLEW_CONTEXT_ARG_DEF_INIT)
  6370. {
  6371. GLboolean r = GL_FALSE;
  6372. r = ((glDeleteFencesNV = (PFNGLDELETEFENCESNVPROC)glewGetProcAddress((const GLubyte*)"glDeleteFencesNV")) == NULL) || r;
  6373. r = ((glFinishFenceNV = (PFNGLFINISHFENCENVPROC)glewGetProcAddress((const GLubyte*)"glFinishFenceNV")) == NULL) || r;
  6374. r = ((glGenFencesNV = (PFNGLGENFENCESNVPROC)glewGetProcAddress((const GLubyte*)"glGenFencesNV")) == NULL) || r;
  6375. r = ((glGetFenceivNV = (PFNGLGETFENCEIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetFenceivNV")) == NULL) || r;
  6376. r = ((glIsFenceNV = (PFNGLISFENCENVPROC)glewGetProcAddress((const GLubyte*)"glIsFenceNV")) == NULL) || r;
  6377. r = ((glSetFenceNV = (PFNGLSETFENCENVPROC)glewGetProcAddress((const GLubyte*)"glSetFenceNV")) == NULL) || r;
  6378. r = ((glTestFenceNV = (PFNGLTESTFENCENVPROC)glewGetProcAddress((const GLubyte*)"glTestFenceNV")) == NULL) || r;
  6379. return r;
  6380. }
  6381. #endif /* GL_NV_fence */
  6382. #ifdef GL_NV_float_buffer
  6383. #endif /* GL_NV_float_buffer */
  6384. #ifdef GL_NV_fog_distance
  6385. #endif /* GL_NV_fog_distance */
  6386. #ifdef GL_NV_fragment_program
  6387. static GLboolean _glewInit_GL_NV_fragment_program (GLEW_CONTEXT_ARG_DEF_INIT)
  6388. {
  6389. GLboolean r = GL_FALSE;
  6390. r = ((glGetProgramNamedParameterdvNV = (PFNGLGETPROGRAMNAMEDPARAMETERDVNVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramNamedParameterdvNV")) == NULL) || r;
  6391. r = ((glGetProgramNamedParameterfvNV = (PFNGLGETPROGRAMNAMEDPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramNamedParameterfvNV")) == NULL) || r;
  6392. r = ((glProgramNamedParameter4dNV = (PFNGLPROGRAMNAMEDPARAMETER4DNVPROC)glewGetProcAddress((const GLubyte*)"glProgramNamedParameter4dNV")) == NULL) || r;
  6393. r = ((glProgramNamedParameter4dvNV = (PFNGLPROGRAMNAMEDPARAMETER4DVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramNamedParameter4dvNV")) == NULL) || r;
  6394. r = ((glProgramNamedParameter4fNV = (PFNGLPROGRAMNAMEDPARAMETER4FNVPROC)glewGetProcAddress((const GLubyte*)"glProgramNamedParameter4fNV")) == NULL) || r;
  6395. r = ((glProgramNamedParameter4fvNV = (PFNGLPROGRAMNAMEDPARAMETER4FVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramNamedParameter4fvNV")) == NULL) || r;
  6396. return r;
  6397. }
  6398. #endif /* GL_NV_fragment_program */
  6399. #ifdef GL_NV_fragment_program2
  6400. #endif /* GL_NV_fragment_program2 */
  6401. #ifdef GL_NV_fragment_program4
  6402. #endif /* GL_NV_fragment_program4 */
  6403. #ifdef GL_NV_fragment_program_option
  6404. #endif /* GL_NV_fragment_program_option */
  6405. #ifdef GL_NV_framebuffer_multisample_coverage
  6406. static GLboolean _glewInit_GL_NV_framebuffer_multisample_coverage (GLEW_CONTEXT_ARG_DEF_INIT)
  6407. {
  6408. GLboolean r = GL_FALSE;
  6409. r = ((glRenderbufferStorageMultisampleCoverageNV = (PFNGLRENDERBUFFERSTORAGEMULTISAMPLECOVERAGENVPROC)glewGetProcAddress((const GLubyte*)"glRenderbufferStorageMultisampleCoverageNV")) == NULL) || r;
  6410. return r;
  6411. }
  6412. #endif /* GL_NV_framebuffer_multisample_coverage */
  6413. #ifdef GL_NV_geometry_program4
  6414. static GLboolean _glewInit_GL_NV_geometry_program4 (GLEW_CONTEXT_ARG_DEF_INIT)
  6415. {
  6416. GLboolean r = GL_FALSE;
  6417. r = ((glProgramVertexLimitNV = (PFNGLPROGRAMVERTEXLIMITNVPROC)glewGetProcAddress((const GLubyte*)"glProgramVertexLimitNV")) == NULL) || r;
  6418. return r;
  6419. }
  6420. #endif /* GL_NV_geometry_program4 */
  6421. #ifdef GL_NV_geometry_shader4
  6422. #endif /* GL_NV_geometry_shader4 */
  6423. #ifdef GL_NV_gpu_program4
  6424. static GLboolean _glewInit_GL_NV_gpu_program4 (GLEW_CONTEXT_ARG_DEF_INIT)
  6425. {
  6426. GLboolean r = GL_FALSE;
  6427. r = ((glProgramEnvParameterI4iNV = (PFNGLPROGRAMENVPARAMETERI4INVPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameterI4iNV")) == NULL) || r;
  6428. r = ((glProgramEnvParameterI4ivNV = (PFNGLPROGRAMENVPARAMETERI4IVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameterI4ivNV")) == NULL) || r;
  6429. r = ((glProgramEnvParameterI4uiNV = (PFNGLPROGRAMENVPARAMETERI4UINVPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameterI4uiNV")) == NULL) || r;
  6430. r = ((glProgramEnvParameterI4uivNV = (PFNGLPROGRAMENVPARAMETERI4UIVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParameterI4uivNV")) == NULL) || r;
  6431. r = ((glProgramEnvParametersI4ivNV = (PFNGLPROGRAMENVPARAMETERSI4IVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParametersI4ivNV")) == NULL) || r;
  6432. r = ((glProgramEnvParametersI4uivNV = (PFNGLPROGRAMENVPARAMETERSI4UIVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramEnvParametersI4uivNV")) == NULL) || r;
  6433. r = ((glProgramLocalParameterI4iNV = (PFNGLPROGRAMLOCALPARAMETERI4INVPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameterI4iNV")) == NULL) || r;
  6434. r = ((glProgramLocalParameterI4ivNV = (PFNGLPROGRAMLOCALPARAMETERI4IVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameterI4ivNV")) == NULL) || r;
  6435. r = ((glProgramLocalParameterI4uiNV = (PFNGLPROGRAMLOCALPARAMETERI4UINVPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameterI4uiNV")) == NULL) || r;
  6436. r = ((glProgramLocalParameterI4uivNV = (PFNGLPROGRAMLOCALPARAMETERI4UIVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParameterI4uivNV")) == NULL) || r;
  6437. r = ((glProgramLocalParametersI4ivNV = (PFNGLPROGRAMLOCALPARAMETERSI4IVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParametersI4ivNV")) == NULL) || r;
  6438. r = ((glProgramLocalParametersI4uivNV = (PFNGLPROGRAMLOCALPARAMETERSI4UIVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramLocalParametersI4uivNV")) == NULL) || r;
  6439. return r;
  6440. }
  6441. #endif /* GL_NV_gpu_program4 */
  6442. #ifdef GL_NV_gpu_program5
  6443. #endif /* GL_NV_gpu_program5 */
  6444. #ifdef GL_NV_gpu_program5_mem_extended
  6445. #endif /* GL_NV_gpu_program5_mem_extended */
  6446. #ifdef GL_NV_gpu_program_fp64
  6447. #endif /* GL_NV_gpu_program_fp64 */
  6448. #ifdef GL_NV_gpu_shader5
  6449. static GLboolean _glewInit_GL_NV_gpu_shader5 (GLEW_CONTEXT_ARG_DEF_INIT)
  6450. {
  6451. GLboolean r = GL_FALSE;
  6452. r = ((glGetUniformi64vNV = (PFNGLGETUNIFORMI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformi64vNV")) == NULL) || r;
  6453. r = ((glGetUniformui64vNV = (PFNGLGETUNIFORMUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetUniformui64vNV")) == NULL) || r;
  6454. r = ((glProgramUniform1i64NV = (PFNGLPROGRAMUNIFORM1I64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1i64NV")) == NULL) || r;
  6455. r = ((glProgramUniform1i64vNV = (PFNGLPROGRAMUNIFORM1I64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1i64vNV")) == NULL) || r;
  6456. r = ((glProgramUniform1ui64NV = (PFNGLPROGRAMUNIFORM1UI64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1ui64NV")) == NULL) || r;
  6457. r = ((glProgramUniform1ui64vNV = (PFNGLPROGRAMUNIFORM1UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform1ui64vNV")) == NULL) || r;
  6458. r = ((glProgramUniform2i64NV = (PFNGLPROGRAMUNIFORM2I64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2i64NV")) == NULL) || r;
  6459. r = ((glProgramUniform2i64vNV = (PFNGLPROGRAMUNIFORM2I64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2i64vNV")) == NULL) || r;
  6460. r = ((glProgramUniform2ui64NV = (PFNGLPROGRAMUNIFORM2UI64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2ui64NV")) == NULL) || r;
  6461. r = ((glProgramUniform2ui64vNV = (PFNGLPROGRAMUNIFORM2UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform2ui64vNV")) == NULL) || r;
  6462. r = ((glProgramUniform3i64NV = (PFNGLPROGRAMUNIFORM3I64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3i64NV")) == NULL) || r;
  6463. r = ((glProgramUniform3i64vNV = (PFNGLPROGRAMUNIFORM3I64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3i64vNV")) == NULL) || r;
  6464. r = ((glProgramUniform3ui64NV = (PFNGLPROGRAMUNIFORM3UI64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3ui64NV")) == NULL) || r;
  6465. r = ((glProgramUniform3ui64vNV = (PFNGLPROGRAMUNIFORM3UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform3ui64vNV")) == NULL) || r;
  6466. r = ((glProgramUniform4i64NV = (PFNGLPROGRAMUNIFORM4I64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4i64NV")) == NULL) || r;
  6467. r = ((glProgramUniform4i64vNV = (PFNGLPROGRAMUNIFORM4I64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4i64vNV")) == NULL) || r;
  6468. r = ((glProgramUniform4ui64NV = (PFNGLPROGRAMUNIFORM4UI64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4ui64NV")) == NULL) || r;
  6469. r = ((glProgramUniform4ui64vNV = (PFNGLPROGRAMUNIFORM4UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniform4ui64vNV")) == NULL) || r;
  6470. r = ((glUniform1i64NV = (PFNGLUNIFORM1I64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform1i64NV")) == NULL) || r;
  6471. r = ((glUniform1i64vNV = (PFNGLUNIFORM1I64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform1i64vNV")) == NULL) || r;
  6472. r = ((glUniform1ui64NV = (PFNGLUNIFORM1UI64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform1ui64NV")) == NULL) || r;
  6473. r = ((glUniform1ui64vNV = (PFNGLUNIFORM1UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform1ui64vNV")) == NULL) || r;
  6474. r = ((glUniform2i64NV = (PFNGLUNIFORM2I64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform2i64NV")) == NULL) || r;
  6475. r = ((glUniform2i64vNV = (PFNGLUNIFORM2I64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform2i64vNV")) == NULL) || r;
  6476. r = ((glUniform2ui64NV = (PFNGLUNIFORM2UI64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform2ui64NV")) == NULL) || r;
  6477. r = ((glUniform2ui64vNV = (PFNGLUNIFORM2UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform2ui64vNV")) == NULL) || r;
  6478. r = ((glUniform3i64NV = (PFNGLUNIFORM3I64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform3i64NV")) == NULL) || r;
  6479. r = ((glUniform3i64vNV = (PFNGLUNIFORM3I64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform3i64vNV")) == NULL) || r;
  6480. r = ((glUniform3ui64NV = (PFNGLUNIFORM3UI64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform3ui64NV")) == NULL) || r;
  6481. r = ((glUniform3ui64vNV = (PFNGLUNIFORM3UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform3ui64vNV")) == NULL) || r;
  6482. r = ((glUniform4i64NV = (PFNGLUNIFORM4I64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform4i64NV")) == NULL) || r;
  6483. r = ((glUniform4i64vNV = (PFNGLUNIFORM4I64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform4i64vNV")) == NULL) || r;
  6484. r = ((glUniform4ui64NV = (PFNGLUNIFORM4UI64NVPROC)glewGetProcAddress((const GLubyte*)"glUniform4ui64NV")) == NULL) || r;
  6485. r = ((glUniform4ui64vNV = (PFNGLUNIFORM4UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniform4ui64vNV")) == NULL) || r;
  6486. return r;
  6487. }
  6488. #endif /* GL_NV_gpu_shader5 */
  6489. #ifdef GL_NV_half_float
  6490. static GLboolean _glewInit_GL_NV_half_float (GLEW_CONTEXT_ARG_DEF_INIT)
  6491. {
  6492. GLboolean r = GL_FALSE;
  6493. r = ((glColor3hNV = (PFNGLCOLOR3HNVPROC)glewGetProcAddress((const GLubyte*)"glColor3hNV")) == NULL) || r;
  6494. r = ((glColor3hvNV = (PFNGLCOLOR3HVNVPROC)glewGetProcAddress((const GLubyte*)"glColor3hvNV")) == NULL) || r;
  6495. r = ((glColor4hNV = (PFNGLCOLOR4HNVPROC)glewGetProcAddress((const GLubyte*)"glColor4hNV")) == NULL) || r;
  6496. r = ((glColor4hvNV = (PFNGLCOLOR4HVNVPROC)glewGetProcAddress((const GLubyte*)"glColor4hvNV")) == NULL) || r;
  6497. r = ((glFogCoordhNV = (PFNGLFOGCOORDHNVPROC)glewGetProcAddress((const GLubyte*)"glFogCoordhNV")) == NULL) || r;
  6498. r = ((glFogCoordhvNV = (PFNGLFOGCOORDHVNVPROC)glewGetProcAddress((const GLubyte*)"glFogCoordhvNV")) == NULL) || r;
  6499. r = ((glMultiTexCoord1hNV = (PFNGLMULTITEXCOORD1HNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1hNV")) == NULL) || r;
  6500. r = ((glMultiTexCoord1hvNV = (PFNGLMULTITEXCOORD1HVNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord1hvNV")) == NULL) || r;
  6501. r = ((glMultiTexCoord2hNV = (PFNGLMULTITEXCOORD2HNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2hNV")) == NULL) || r;
  6502. r = ((glMultiTexCoord2hvNV = (PFNGLMULTITEXCOORD2HVNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord2hvNV")) == NULL) || r;
  6503. r = ((glMultiTexCoord3hNV = (PFNGLMULTITEXCOORD3HNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3hNV")) == NULL) || r;
  6504. r = ((glMultiTexCoord3hvNV = (PFNGLMULTITEXCOORD3HVNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord3hvNV")) == NULL) || r;
  6505. r = ((glMultiTexCoord4hNV = (PFNGLMULTITEXCOORD4HNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4hNV")) == NULL) || r;
  6506. r = ((glMultiTexCoord4hvNV = (PFNGLMULTITEXCOORD4HVNVPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4hvNV")) == NULL) || r;
  6507. r = ((glNormal3hNV = (PFNGLNORMAL3HNVPROC)glewGetProcAddress((const GLubyte*)"glNormal3hNV")) == NULL) || r;
  6508. r = ((glNormal3hvNV = (PFNGLNORMAL3HVNVPROC)glewGetProcAddress((const GLubyte*)"glNormal3hvNV")) == NULL) || r;
  6509. r = ((glSecondaryColor3hNV = (PFNGLSECONDARYCOLOR3HNVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3hNV")) == NULL) || r;
  6510. r = ((glSecondaryColor3hvNV = (PFNGLSECONDARYCOLOR3HVNVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColor3hvNV")) == NULL) || r;
  6511. r = ((glTexCoord1hNV = (PFNGLTEXCOORD1HNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1hNV")) == NULL) || r;
  6512. r = ((glTexCoord1hvNV = (PFNGLTEXCOORD1HVNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord1hvNV")) == NULL) || r;
  6513. r = ((glTexCoord2hNV = (PFNGLTEXCOORD2HNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2hNV")) == NULL) || r;
  6514. r = ((glTexCoord2hvNV = (PFNGLTEXCOORD2HVNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2hvNV")) == NULL) || r;
  6515. r = ((glTexCoord3hNV = (PFNGLTEXCOORD3HNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3hNV")) == NULL) || r;
  6516. r = ((glTexCoord3hvNV = (PFNGLTEXCOORD3HVNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord3hvNV")) == NULL) || r;
  6517. r = ((glTexCoord4hNV = (PFNGLTEXCOORD4HNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4hNV")) == NULL) || r;
  6518. r = ((glTexCoord4hvNV = (PFNGLTEXCOORD4HVNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4hvNV")) == NULL) || r;
  6519. r = ((glVertex2hNV = (PFNGLVERTEX2HNVPROC)glewGetProcAddress((const GLubyte*)"glVertex2hNV")) == NULL) || r;
  6520. r = ((glVertex2hvNV = (PFNGLVERTEX2HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertex2hvNV")) == NULL) || r;
  6521. r = ((glVertex3hNV = (PFNGLVERTEX3HNVPROC)glewGetProcAddress((const GLubyte*)"glVertex3hNV")) == NULL) || r;
  6522. r = ((glVertex3hvNV = (PFNGLVERTEX3HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertex3hvNV")) == NULL) || r;
  6523. r = ((glVertex4hNV = (PFNGLVERTEX4HNVPROC)glewGetProcAddress((const GLubyte*)"glVertex4hNV")) == NULL) || r;
  6524. r = ((glVertex4hvNV = (PFNGLVERTEX4HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertex4hvNV")) == NULL) || r;
  6525. r = ((glVertexAttrib1hNV = (PFNGLVERTEXATTRIB1HNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1hNV")) == NULL) || r;
  6526. r = ((glVertexAttrib1hvNV = (PFNGLVERTEXATTRIB1HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1hvNV")) == NULL) || r;
  6527. r = ((glVertexAttrib2hNV = (PFNGLVERTEXATTRIB2HNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2hNV")) == NULL) || r;
  6528. r = ((glVertexAttrib2hvNV = (PFNGLVERTEXATTRIB2HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2hvNV")) == NULL) || r;
  6529. r = ((glVertexAttrib3hNV = (PFNGLVERTEXATTRIB3HNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3hNV")) == NULL) || r;
  6530. r = ((glVertexAttrib3hvNV = (PFNGLVERTEXATTRIB3HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3hvNV")) == NULL) || r;
  6531. r = ((glVertexAttrib4hNV = (PFNGLVERTEXATTRIB4HNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4hNV")) == NULL) || r;
  6532. r = ((glVertexAttrib4hvNV = (PFNGLVERTEXATTRIB4HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4hvNV")) == NULL) || r;
  6533. r = ((glVertexAttribs1hvNV = (PFNGLVERTEXATTRIBS1HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs1hvNV")) == NULL) || r;
  6534. r = ((glVertexAttribs2hvNV = (PFNGLVERTEXATTRIBS2HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs2hvNV")) == NULL) || r;
  6535. r = ((glVertexAttribs3hvNV = (PFNGLVERTEXATTRIBS3HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs3hvNV")) == NULL) || r;
  6536. r = ((glVertexAttribs4hvNV = (PFNGLVERTEXATTRIBS4HVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs4hvNV")) == NULL) || r;
  6537. r = ((glVertexWeighthNV = (PFNGLVERTEXWEIGHTHNVPROC)glewGetProcAddress((const GLubyte*)"glVertexWeighthNV")) == NULL) || r;
  6538. r = ((glVertexWeighthvNV = (PFNGLVERTEXWEIGHTHVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexWeighthvNV")) == NULL) || r;
  6539. return r;
  6540. }
  6541. #endif /* GL_NV_half_float */
  6542. #ifdef GL_NV_light_max_exponent
  6543. #endif /* GL_NV_light_max_exponent */
  6544. #ifdef GL_NV_multisample_coverage
  6545. #endif /* GL_NV_multisample_coverage */
  6546. #ifdef GL_NV_multisample_filter_hint
  6547. #endif /* GL_NV_multisample_filter_hint */
  6548. #ifdef GL_NV_occlusion_query
  6549. static GLboolean _glewInit_GL_NV_occlusion_query (GLEW_CONTEXT_ARG_DEF_INIT)
  6550. {
  6551. GLboolean r = GL_FALSE;
  6552. r = ((glBeginOcclusionQueryNV = (PFNGLBEGINOCCLUSIONQUERYNVPROC)glewGetProcAddress((const GLubyte*)"glBeginOcclusionQueryNV")) == NULL) || r;
  6553. r = ((glDeleteOcclusionQueriesNV = (PFNGLDELETEOCCLUSIONQUERIESNVPROC)glewGetProcAddress((const GLubyte*)"glDeleteOcclusionQueriesNV")) == NULL) || r;
  6554. r = ((glEndOcclusionQueryNV = (PFNGLENDOCCLUSIONQUERYNVPROC)glewGetProcAddress((const GLubyte*)"glEndOcclusionQueryNV")) == NULL) || r;
  6555. r = ((glGenOcclusionQueriesNV = (PFNGLGENOCCLUSIONQUERIESNVPROC)glewGetProcAddress((const GLubyte*)"glGenOcclusionQueriesNV")) == NULL) || r;
  6556. r = ((glGetOcclusionQueryivNV = (PFNGLGETOCCLUSIONQUERYIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetOcclusionQueryivNV")) == NULL) || r;
  6557. r = ((glGetOcclusionQueryuivNV = (PFNGLGETOCCLUSIONQUERYUIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetOcclusionQueryuivNV")) == NULL) || r;
  6558. r = ((glIsOcclusionQueryNV = (PFNGLISOCCLUSIONQUERYNVPROC)glewGetProcAddress((const GLubyte*)"glIsOcclusionQueryNV")) == NULL) || r;
  6559. return r;
  6560. }
  6561. #endif /* GL_NV_occlusion_query */
  6562. #ifdef GL_NV_packed_depth_stencil
  6563. #endif /* GL_NV_packed_depth_stencil */
  6564. #ifdef GL_NV_parameter_buffer_object
  6565. static GLboolean _glewInit_GL_NV_parameter_buffer_object (GLEW_CONTEXT_ARG_DEF_INIT)
  6566. {
  6567. GLboolean r = GL_FALSE;
  6568. r = ((glProgramBufferParametersIivNV = (PFNGLPROGRAMBUFFERPARAMETERSIIVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramBufferParametersIivNV")) == NULL) || r;
  6569. r = ((glProgramBufferParametersIuivNV = (PFNGLPROGRAMBUFFERPARAMETERSIUIVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramBufferParametersIuivNV")) == NULL) || r;
  6570. r = ((glProgramBufferParametersfvNV = (PFNGLPROGRAMBUFFERPARAMETERSFVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramBufferParametersfvNV")) == NULL) || r;
  6571. return r;
  6572. }
  6573. #endif /* GL_NV_parameter_buffer_object */
  6574. #ifdef GL_NV_parameter_buffer_object2
  6575. #endif /* GL_NV_parameter_buffer_object2 */
  6576. #ifdef GL_NV_path_rendering
  6577. static GLboolean _glewInit_GL_NV_path_rendering (GLEW_CONTEXT_ARG_DEF_INIT)
  6578. {
  6579. GLboolean r = GL_FALSE;
  6580. r = ((glCopyPathNV = (PFNGLCOPYPATHNVPROC)glewGetProcAddress((const GLubyte*)"glCopyPathNV")) == NULL) || r;
  6581. r = ((glCoverFillPathInstancedNV = (PFNGLCOVERFILLPATHINSTANCEDNVPROC)glewGetProcAddress((const GLubyte*)"glCoverFillPathInstancedNV")) == NULL) || r;
  6582. r = ((glCoverFillPathNV = (PFNGLCOVERFILLPATHNVPROC)glewGetProcAddress((const GLubyte*)"glCoverFillPathNV")) == NULL) || r;
  6583. r = ((glCoverStrokePathInstancedNV = (PFNGLCOVERSTROKEPATHINSTANCEDNVPROC)glewGetProcAddress((const GLubyte*)"glCoverStrokePathInstancedNV")) == NULL) || r;
  6584. r = ((glCoverStrokePathNV = (PFNGLCOVERSTROKEPATHNVPROC)glewGetProcAddress((const GLubyte*)"glCoverStrokePathNV")) == NULL) || r;
  6585. r = ((glDeletePathsNV = (PFNGLDELETEPATHSNVPROC)glewGetProcAddress((const GLubyte*)"glDeletePathsNV")) == NULL) || r;
  6586. r = ((glGenPathsNV = (PFNGLGENPATHSNVPROC)glewGetProcAddress((const GLubyte*)"glGenPathsNV")) == NULL) || r;
  6587. r = ((glGetPathColorGenfvNV = (PFNGLGETPATHCOLORGENFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathColorGenfvNV")) == NULL) || r;
  6588. r = ((glGetPathColorGenivNV = (PFNGLGETPATHCOLORGENIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathColorGenivNV")) == NULL) || r;
  6589. r = ((glGetPathCommandsNV = (PFNGLGETPATHCOMMANDSNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathCommandsNV")) == NULL) || r;
  6590. r = ((glGetPathCoordsNV = (PFNGLGETPATHCOORDSNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathCoordsNV")) == NULL) || r;
  6591. r = ((glGetPathDashArrayNV = (PFNGLGETPATHDASHARRAYNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathDashArrayNV")) == NULL) || r;
  6592. r = ((glGetPathLengthNV = (PFNGLGETPATHLENGTHNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathLengthNV")) == NULL) || r;
  6593. r = ((glGetPathMetricRangeNV = (PFNGLGETPATHMETRICRANGENVPROC)glewGetProcAddress((const GLubyte*)"glGetPathMetricRangeNV")) == NULL) || r;
  6594. r = ((glGetPathMetricsNV = (PFNGLGETPATHMETRICSNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathMetricsNV")) == NULL) || r;
  6595. r = ((glGetPathParameterfvNV = (PFNGLGETPATHPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathParameterfvNV")) == NULL) || r;
  6596. r = ((glGetPathParameterivNV = (PFNGLGETPATHPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathParameterivNV")) == NULL) || r;
  6597. r = ((glGetPathSpacingNV = (PFNGLGETPATHSPACINGNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathSpacingNV")) == NULL) || r;
  6598. r = ((glGetPathTexGenfvNV = (PFNGLGETPATHTEXGENFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathTexGenfvNV")) == NULL) || r;
  6599. r = ((glGetPathTexGenivNV = (PFNGLGETPATHTEXGENIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetPathTexGenivNV")) == NULL) || r;
  6600. r = ((glInterpolatePathsNV = (PFNGLINTERPOLATEPATHSNVPROC)glewGetProcAddress((const GLubyte*)"glInterpolatePathsNV")) == NULL) || r;
  6601. r = ((glIsPathNV = (PFNGLISPATHNVPROC)glewGetProcAddress((const GLubyte*)"glIsPathNV")) == NULL) || r;
  6602. r = ((glIsPointInFillPathNV = (PFNGLISPOINTINFILLPATHNVPROC)glewGetProcAddress((const GLubyte*)"glIsPointInFillPathNV")) == NULL) || r;
  6603. r = ((glIsPointInStrokePathNV = (PFNGLISPOINTINSTROKEPATHNVPROC)glewGetProcAddress((const GLubyte*)"glIsPointInStrokePathNV")) == NULL) || r;
  6604. r = ((glPathColorGenNV = (PFNGLPATHCOLORGENNVPROC)glewGetProcAddress((const GLubyte*)"glPathColorGenNV")) == NULL) || r;
  6605. r = ((glPathCommandsNV = (PFNGLPATHCOMMANDSNVPROC)glewGetProcAddress((const GLubyte*)"glPathCommandsNV")) == NULL) || r;
  6606. r = ((glPathCoordsNV = (PFNGLPATHCOORDSNVPROC)glewGetProcAddress((const GLubyte*)"glPathCoordsNV")) == NULL) || r;
  6607. r = ((glPathCoverDepthFuncNV = (PFNGLPATHCOVERDEPTHFUNCNVPROC)glewGetProcAddress((const GLubyte*)"glPathCoverDepthFuncNV")) == NULL) || r;
  6608. r = ((glPathDashArrayNV = (PFNGLPATHDASHARRAYNVPROC)glewGetProcAddress((const GLubyte*)"glPathDashArrayNV")) == NULL) || r;
  6609. r = ((glPathFogGenNV = (PFNGLPATHFOGGENNVPROC)glewGetProcAddress((const GLubyte*)"glPathFogGenNV")) == NULL) || r;
  6610. r = ((glPathGlyphRangeNV = (PFNGLPATHGLYPHRANGENVPROC)glewGetProcAddress((const GLubyte*)"glPathGlyphRangeNV")) == NULL) || r;
  6611. r = ((glPathGlyphsNV = (PFNGLPATHGLYPHSNVPROC)glewGetProcAddress((const GLubyte*)"glPathGlyphsNV")) == NULL) || r;
  6612. r = ((glPathParameterfNV = (PFNGLPATHPARAMETERFNVPROC)glewGetProcAddress((const GLubyte*)"glPathParameterfNV")) == NULL) || r;
  6613. r = ((glPathParameterfvNV = (PFNGLPATHPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glPathParameterfvNV")) == NULL) || r;
  6614. r = ((glPathParameteriNV = (PFNGLPATHPARAMETERINVPROC)glewGetProcAddress((const GLubyte*)"glPathParameteriNV")) == NULL) || r;
  6615. r = ((glPathParameterivNV = (PFNGLPATHPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glPathParameterivNV")) == NULL) || r;
  6616. r = ((glPathStencilDepthOffsetNV = (PFNGLPATHSTENCILDEPTHOFFSETNVPROC)glewGetProcAddress((const GLubyte*)"glPathStencilDepthOffsetNV")) == NULL) || r;
  6617. r = ((glPathStencilFuncNV = (PFNGLPATHSTENCILFUNCNVPROC)glewGetProcAddress((const GLubyte*)"glPathStencilFuncNV")) == NULL) || r;
  6618. r = ((glPathStringNV = (PFNGLPATHSTRINGNVPROC)glewGetProcAddress((const GLubyte*)"glPathStringNV")) == NULL) || r;
  6619. r = ((glPathSubCommandsNV = (PFNGLPATHSUBCOMMANDSNVPROC)glewGetProcAddress((const GLubyte*)"glPathSubCommandsNV")) == NULL) || r;
  6620. r = ((glPathSubCoordsNV = (PFNGLPATHSUBCOORDSNVPROC)glewGetProcAddress((const GLubyte*)"glPathSubCoordsNV")) == NULL) || r;
  6621. r = ((glPathTexGenNV = (PFNGLPATHTEXGENNVPROC)glewGetProcAddress((const GLubyte*)"glPathTexGenNV")) == NULL) || r;
  6622. r = ((glPointAlongPathNV = (PFNGLPOINTALONGPATHNVPROC)glewGetProcAddress((const GLubyte*)"glPointAlongPathNV")) == NULL) || r;
  6623. r = ((glStencilFillPathInstancedNV = (PFNGLSTENCILFILLPATHINSTANCEDNVPROC)glewGetProcAddress((const GLubyte*)"glStencilFillPathInstancedNV")) == NULL) || r;
  6624. r = ((glStencilFillPathNV = (PFNGLSTENCILFILLPATHNVPROC)glewGetProcAddress((const GLubyte*)"glStencilFillPathNV")) == NULL) || r;
  6625. r = ((glStencilStrokePathInstancedNV = (PFNGLSTENCILSTROKEPATHINSTANCEDNVPROC)glewGetProcAddress((const GLubyte*)"glStencilStrokePathInstancedNV")) == NULL) || r;
  6626. r = ((glStencilStrokePathNV = (PFNGLSTENCILSTROKEPATHNVPROC)glewGetProcAddress((const GLubyte*)"glStencilStrokePathNV")) == NULL) || r;
  6627. r = ((glTransformPathNV = (PFNGLTRANSFORMPATHNVPROC)glewGetProcAddress((const GLubyte*)"glTransformPathNV")) == NULL) || r;
  6628. r = ((glWeightPathsNV = (PFNGLWEIGHTPATHSNVPROC)glewGetProcAddress((const GLubyte*)"glWeightPathsNV")) == NULL) || r;
  6629. return r;
  6630. }
  6631. #endif /* GL_NV_path_rendering */
  6632. #ifdef GL_NV_pixel_data_range
  6633. static GLboolean _glewInit_GL_NV_pixel_data_range (GLEW_CONTEXT_ARG_DEF_INIT)
  6634. {
  6635. GLboolean r = GL_FALSE;
  6636. r = ((glFlushPixelDataRangeNV = (PFNGLFLUSHPIXELDATARANGENVPROC)glewGetProcAddress((const GLubyte*)"glFlushPixelDataRangeNV")) == NULL) || r;
  6637. r = ((glPixelDataRangeNV = (PFNGLPIXELDATARANGENVPROC)glewGetProcAddress((const GLubyte*)"glPixelDataRangeNV")) == NULL) || r;
  6638. return r;
  6639. }
  6640. #endif /* GL_NV_pixel_data_range */
  6641. #ifdef GL_NV_point_sprite
  6642. static GLboolean _glewInit_GL_NV_point_sprite (GLEW_CONTEXT_ARG_DEF_INIT)
  6643. {
  6644. GLboolean r = GL_FALSE;
  6645. r = ((glPointParameteriNV = (PFNGLPOINTPARAMETERINVPROC)glewGetProcAddress((const GLubyte*)"glPointParameteriNV")) == NULL) || r;
  6646. r = ((glPointParameterivNV = (PFNGLPOINTPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glPointParameterivNV")) == NULL) || r;
  6647. return r;
  6648. }
  6649. #endif /* GL_NV_point_sprite */
  6650. #ifdef GL_NV_present_video
  6651. static GLboolean _glewInit_GL_NV_present_video (GLEW_CONTEXT_ARG_DEF_INIT)
  6652. {
  6653. GLboolean r = GL_FALSE;
  6654. r = ((glGetVideoi64vNV = (PFNGLGETVIDEOI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoi64vNV")) == NULL) || r;
  6655. r = ((glGetVideoivNV = (PFNGLGETVIDEOIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoivNV")) == NULL) || r;
  6656. r = ((glGetVideoui64vNV = (PFNGLGETVIDEOUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoui64vNV")) == NULL) || r;
  6657. r = ((glGetVideouivNV = (PFNGLGETVIDEOUIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideouivNV")) == NULL) || r;
  6658. r = ((glPresentFrameDualFillNV = (PFNGLPRESENTFRAMEDUALFILLNVPROC)glewGetProcAddress((const GLubyte*)"glPresentFrameDualFillNV")) == NULL) || r;
  6659. r = ((glPresentFrameKeyedNV = (PFNGLPRESENTFRAMEKEYEDNVPROC)glewGetProcAddress((const GLubyte*)"glPresentFrameKeyedNV")) == NULL) || r;
  6660. return r;
  6661. }
  6662. #endif /* GL_NV_present_video */
  6663. #ifdef GL_NV_primitive_restart
  6664. static GLboolean _glewInit_GL_NV_primitive_restart (GLEW_CONTEXT_ARG_DEF_INIT)
  6665. {
  6666. GLboolean r = GL_FALSE;
  6667. r = ((glPrimitiveRestartIndexNV = (PFNGLPRIMITIVERESTARTINDEXNVPROC)glewGetProcAddress((const GLubyte*)"glPrimitiveRestartIndexNV")) == NULL) || r;
  6668. r = ((glPrimitiveRestartNV = (PFNGLPRIMITIVERESTARTNVPROC)glewGetProcAddress((const GLubyte*)"glPrimitiveRestartNV")) == NULL) || r;
  6669. return r;
  6670. }
  6671. #endif /* GL_NV_primitive_restart */
  6672. #ifdef GL_NV_register_combiners
  6673. static GLboolean _glewInit_GL_NV_register_combiners (GLEW_CONTEXT_ARG_DEF_INIT)
  6674. {
  6675. GLboolean r = GL_FALSE;
  6676. r = ((glCombinerInputNV = (PFNGLCOMBINERINPUTNVPROC)glewGetProcAddress((const GLubyte*)"glCombinerInputNV")) == NULL) || r;
  6677. r = ((glCombinerOutputNV = (PFNGLCOMBINEROUTPUTNVPROC)glewGetProcAddress((const GLubyte*)"glCombinerOutputNV")) == NULL) || r;
  6678. r = ((glCombinerParameterfNV = (PFNGLCOMBINERPARAMETERFNVPROC)glewGetProcAddress((const GLubyte*)"glCombinerParameterfNV")) == NULL) || r;
  6679. r = ((glCombinerParameterfvNV = (PFNGLCOMBINERPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glCombinerParameterfvNV")) == NULL) || r;
  6680. r = ((glCombinerParameteriNV = (PFNGLCOMBINERPARAMETERINVPROC)glewGetProcAddress((const GLubyte*)"glCombinerParameteriNV")) == NULL) || r;
  6681. r = ((glCombinerParameterivNV = (PFNGLCOMBINERPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glCombinerParameterivNV")) == NULL) || r;
  6682. r = ((glFinalCombinerInputNV = (PFNGLFINALCOMBINERINPUTNVPROC)glewGetProcAddress((const GLubyte*)"glFinalCombinerInputNV")) == NULL) || r;
  6683. r = ((glGetCombinerInputParameterfvNV = (PFNGLGETCOMBINERINPUTPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetCombinerInputParameterfvNV")) == NULL) || r;
  6684. r = ((glGetCombinerInputParameterivNV = (PFNGLGETCOMBINERINPUTPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetCombinerInputParameterivNV")) == NULL) || r;
  6685. r = ((glGetCombinerOutputParameterfvNV = (PFNGLGETCOMBINEROUTPUTPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetCombinerOutputParameterfvNV")) == NULL) || r;
  6686. r = ((glGetCombinerOutputParameterivNV = (PFNGLGETCOMBINEROUTPUTPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetCombinerOutputParameterivNV")) == NULL) || r;
  6687. r = ((glGetFinalCombinerInputParameterfvNV = (PFNGLGETFINALCOMBINERINPUTPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetFinalCombinerInputParameterfvNV")) == NULL) || r;
  6688. r = ((glGetFinalCombinerInputParameterivNV = (PFNGLGETFINALCOMBINERINPUTPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetFinalCombinerInputParameterivNV")) == NULL) || r;
  6689. return r;
  6690. }
  6691. #endif /* GL_NV_register_combiners */
  6692. #ifdef GL_NV_register_combiners2
  6693. static GLboolean _glewInit_GL_NV_register_combiners2 (GLEW_CONTEXT_ARG_DEF_INIT)
  6694. {
  6695. GLboolean r = GL_FALSE;
  6696. r = ((glCombinerStageParameterfvNV = (PFNGLCOMBINERSTAGEPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glCombinerStageParameterfvNV")) == NULL) || r;
  6697. r = ((glGetCombinerStageParameterfvNV = (PFNGLGETCOMBINERSTAGEPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetCombinerStageParameterfvNV")) == NULL) || r;
  6698. return r;
  6699. }
  6700. #endif /* GL_NV_register_combiners2 */
  6701. #ifdef GL_NV_shader_atomic_counters
  6702. #endif /* GL_NV_shader_atomic_counters */
  6703. #ifdef GL_NV_shader_atomic_float
  6704. #endif /* GL_NV_shader_atomic_float */
  6705. #ifdef GL_NV_shader_buffer_load
  6706. static GLboolean _glewInit_GL_NV_shader_buffer_load (GLEW_CONTEXT_ARG_DEF_INIT)
  6707. {
  6708. GLboolean r = GL_FALSE;
  6709. r = ((glGetBufferParameterui64vNV = (PFNGLGETBUFFERPARAMETERUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetBufferParameterui64vNV")) == NULL) || r;
  6710. r = ((glGetIntegerui64vNV = (PFNGLGETINTEGERUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetIntegerui64vNV")) == NULL) || r;
  6711. r = ((glGetNamedBufferParameterui64vNV = (PFNGLGETNAMEDBUFFERPARAMETERUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetNamedBufferParameterui64vNV")) == NULL) || r;
  6712. r = ((glIsBufferResidentNV = (PFNGLISBUFFERRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glIsBufferResidentNV")) == NULL) || r;
  6713. r = ((glIsNamedBufferResidentNV = (PFNGLISNAMEDBUFFERRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glIsNamedBufferResidentNV")) == NULL) || r;
  6714. r = ((glMakeBufferNonResidentNV = (PFNGLMAKEBUFFERNONRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeBufferNonResidentNV")) == NULL) || r;
  6715. r = ((glMakeBufferResidentNV = (PFNGLMAKEBUFFERRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeBufferResidentNV")) == NULL) || r;
  6716. r = ((glMakeNamedBufferNonResidentNV = (PFNGLMAKENAMEDBUFFERNONRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeNamedBufferNonResidentNV")) == NULL) || r;
  6717. r = ((glMakeNamedBufferResidentNV = (PFNGLMAKENAMEDBUFFERRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glMakeNamedBufferResidentNV")) == NULL) || r;
  6718. r = ((glProgramUniformui64NV = (PFNGLPROGRAMUNIFORMUI64NVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformui64NV")) == NULL) || r;
  6719. r = ((glProgramUniformui64vNV = (PFNGLPROGRAMUNIFORMUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glProgramUniformui64vNV")) == NULL) || r;
  6720. r = ((glUniformui64NV = (PFNGLUNIFORMUI64NVPROC)glewGetProcAddress((const GLubyte*)"glUniformui64NV")) == NULL) || r;
  6721. r = ((glUniformui64vNV = (PFNGLUNIFORMUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glUniformui64vNV")) == NULL) || r;
  6722. return r;
  6723. }
  6724. #endif /* GL_NV_shader_buffer_load */
  6725. #ifdef GL_NV_shader_storage_buffer_object
  6726. #endif /* GL_NV_shader_storage_buffer_object */
  6727. #ifdef GL_NV_tessellation_program5
  6728. #endif /* GL_NV_tessellation_program5 */
  6729. #ifdef GL_NV_texgen_emboss
  6730. #endif /* GL_NV_texgen_emboss */
  6731. #ifdef GL_NV_texgen_reflection
  6732. #endif /* GL_NV_texgen_reflection */
  6733. #ifdef GL_NV_texture_barrier
  6734. static GLboolean _glewInit_GL_NV_texture_barrier (GLEW_CONTEXT_ARG_DEF_INIT)
  6735. {
  6736. GLboolean r = GL_FALSE;
  6737. r = ((glTextureBarrierNV = (PFNGLTEXTUREBARRIERNVPROC)glewGetProcAddress((const GLubyte*)"glTextureBarrierNV")) == NULL) || r;
  6738. return r;
  6739. }
  6740. #endif /* GL_NV_texture_barrier */
  6741. #ifdef GL_NV_texture_compression_vtc
  6742. #endif /* GL_NV_texture_compression_vtc */
  6743. #ifdef GL_NV_texture_env_combine4
  6744. #endif /* GL_NV_texture_env_combine4 */
  6745. #ifdef GL_NV_texture_expand_normal
  6746. #endif /* GL_NV_texture_expand_normal */
  6747. #ifdef GL_NV_texture_multisample
  6748. static GLboolean _glewInit_GL_NV_texture_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  6749. {
  6750. GLboolean r = GL_FALSE;
  6751. r = ((glTexImage2DMultisampleCoverageNV = (PFNGLTEXIMAGE2DMULTISAMPLECOVERAGENVPROC)glewGetProcAddress((const GLubyte*)"glTexImage2DMultisampleCoverageNV")) == NULL) || r;
  6752. r = ((glTexImage3DMultisampleCoverageNV = (PFNGLTEXIMAGE3DMULTISAMPLECOVERAGENVPROC)glewGetProcAddress((const GLubyte*)"glTexImage3DMultisampleCoverageNV")) == NULL) || r;
  6753. r = ((glTextureImage2DMultisampleCoverageNV = (PFNGLTEXTUREIMAGE2DMULTISAMPLECOVERAGENVPROC)glewGetProcAddress((const GLubyte*)"glTextureImage2DMultisampleCoverageNV")) == NULL) || r;
  6754. r = ((glTextureImage2DMultisampleNV = (PFNGLTEXTUREIMAGE2DMULTISAMPLENVPROC)glewGetProcAddress((const GLubyte*)"glTextureImage2DMultisampleNV")) == NULL) || r;
  6755. r = ((glTextureImage3DMultisampleCoverageNV = (PFNGLTEXTUREIMAGE3DMULTISAMPLECOVERAGENVPROC)glewGetProcAddress((const GLubyte*)"glTextureImage3DMultisampleCoverageNV")) == NULL) || r;
  6756. r = ((glTextureImage3DMultisampleNV = (PFNGLTEXTUREIMAGE3DMULTISAMPLENVPROC)glewGetProcAddress((const GLubyte*)"glTextureImage3DMultisampleNV")) == NULL) || r;
  6757. return r;
  6758. }
  6759. #endif /* GL_NV_texture_multisample */
  6760. #ifdef GL_NV_texture_rectangle
  6761. #endif /* GL_NV_texture_rectangle */
  6762. #ifdef GL_NV_texture_shader
  6763. #endif /* GL_NV_texture_shader */
  6764. #ifdef GL_NV_texture_shader2
  6765. #endif /* GL_NV_texture_shader2 */
  6766. #ifdef GL_NV_texture_shader3
  6767. #endif /* GL_NV_texture_shader3 */
  6768. #ifdef GL_NV_transform_feedback
  6769. static GLboolean _glewInit_GL_NV_transform_feedback (GLEW_CONTEXT_ARG_DEF_INIT)
  6770. {
  6771. GLboolean r = GL_FALSE;
  6772. r = ((glActiveVaryingNV = (PFNGLACTIVEVARYINGNVPROC)glewGetProcAddress((const GLubyte*)"glActiveVaryingNV")) == NULL) || r;
  6773. r = ((glBeginTransformFeedbackNV = (PFNGLBEGINTRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glBeginTransformFeedbackNV")) == NULL) || r;
  6774. r = ((glBindBufferBaseNV = (PFNGLBINDBUFFERBASENVPROC)glewGetProcAddress((const GLubyte*)"glBindBufferBaseNV")) == NULL) || r;
  6775. r = ((glBindBufferOffsetNV = (PFNGLBINDBUFFEROFFSETNVPROC)glewGetProcAddress((const GLubyte*)"glBindBufferOffsetNV")) == NULL) || r;
  6776. r = ((glBindBufferRangeNV = (PFNGLBINDBUFFERRANGENVPROC)glewGetProcAddress((const GLubyte*)"glBindBufferRangeNV")) == NULL) || r;
  6777. r = ((glEndTransformFeedbackNV = (PFNGLENDTRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glEndTransformFeedbackNV")) == NULL) || r;
  6778. r = ((glGetActiveVaryingNV = (PFNGLGETACTIVEVARYINGNVPROC)glewGetProcAddress((const GLubyte*)"glGetActiveVaryingNV")) == NULL) || r;
  6779. r = ((glGetTransformFeedbackVaryingNV = (PFNGLGETTRANSFORMFEEDBACKVARYINGNVPROC)glewGetProcAddress((const GLubyte*)"glGetTransformFeedbackVaryingNV")) == NULL) || r;
  6780. r = ((glGetVaryingLocationNV = (PFNGLGETVARYINGLOCATIONNVPROC)glewGetProcAddress((const GLubyte*)"glGetVaryingLocationNV")) == NULL) || r;
  6781. r = ((glTransformFeedbackAttribsNV = (PFNGLTRANSFORMFEEDBACKATTRIBSNVPROC)glewGetProcAddress((const GLubyte*)"glTransformFeedbackAttribsNV")) == NULL) || r;
  6782. r = ((glTransformFeedbackVaryingsNV = (PFNGLTRANSFORMFEEDBACKVARYINGSNVPROC)glewGetProcAddress((const GLubyte*)"glTransformFeedbackVaryingsNV")) == NULL) || r;
  6783. return r;
  6784. }
  6785. #endif /* GL_NV_transform_feedback */
  6786. #ifdef GL_NV_transform_feedback2
  6787. static GLboolean _glewInit_GL_NV_transform_feedback2 (GLEW_CONTEXT_ARG_DEF_INIT)
  6788. {
  6789. GLboolean r = GL_FALSE;
  6790. r = ((glBindTransformFeedbackNV = (PFNGLBINDTRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glBindTransformFeedbackNV")) == NULL) || r;
  6791. r = ((glDeleteTransformFeedbacksNV = (PFNGLDELETETRANSFORMFEEDBACKSNVPROC)glewGetProcAddress((const GLubyte*)"glDeleteTransformFeedbacksNV")) == NULL) || r;
  6792. r = ((glDrawTransformFeedbackNV = (PFNGLDRAWTRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glDrawTransformFeedbackNV")) == NULL) || r;
  6793. r = ((glGenTransformFeedbacksNV = (PFNGLGENTRANSFORMFEEDBACKSNVPROC)glewGetProcAddress((const GLubyte*)"glGenTransformFeedbacksNV")) == NULL) || r;
  6794. r = ((glIsTransformFeedbackNV = (PFNGLISTRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glIsTransformFeedbackNV")) == NULL) || r;
  6795. r = ((glPauseTransformFeedbackNV = (PFNGLPAUSETRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glPauseTransformFeedbackNV")) == NULL) || r;
  6796. r = ((glResumeTransformFeedbackNV = (PFNGLRESUMETRANSFORMFEEDBACKNVPROC)glewGetProcAddress((const GLubyte*)"glResumeTransformFeedbackNV")) == NULL) || r;
  6797. return r;
  6798. }
  6799. #endif /* GL_NV_transform_feedback2 */
  6800. #ifdef GL_NV_vdpau_interop
  6801. static GLboolean _glewInit_GL_NV_vdpau_interop (GLEW_CONTEXT_ARG_DEF_INIT)
  6802. {
  6803. GLboolean r = GL_FALSE;
  6804. r = ((glVDPAUFiniNV = (PFNGLVDPAUFININVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUFiniNV")) == NULL) || r;
  6805. r = ((glVDPAUGetSurfaceivNV = (PFNGLVDPAUGETSURFACEIVNVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUGetSurfaceivNV")) == NULL) || r;
  6806. r = ((glVDPAUInitNV = (PFNGLVDPAUINITNVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUInitNV")) == NULL) || r;
  6807. r = ((glVDPAUIsSurfaceNV = (PFNGLVDPAUISSURFACENVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUIsSurfaceNV")) == NULL) || r;
  6808. r = ((glVDPAUMapSurfacesNV = (PFNGLVDPAUMAPSURFACESNVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUMapSurfacesNV")) == NULL) || r;
  6809. r = ((glVDPAURegisterOutputSurfaceNV = (PFNGLVDPAUREGISTEROUTPUTSURFACENVPROC)glewGetProcAddress((const GLubyte*)"glVDPAURegisterOutputSurfaceNV")) == NULL) || r;
  6810. r = ((glVDPAURegisterVideoSurfaceNV = (PFNGLVDPAUREGISTERVIDEOSURFACENVPROC)glewGetProcAddress((const GLubyte*)"glVDPAURegisterVideoSurfaceNV")) == NULL) || r;
  6811. r = ((glVDPAUSurfaceAccessNV = (PFNGLVDPAUSURFACEACCESSNVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUSurfaceAccessNV")) == NULL) || r;
  6812. r = ((glVDPAUUnmapSurfacesNV = (PFNGLVDPAUUNMAPSURFACESNVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUUnmapSurfacesNV")) == NULL) || r;
  6813. r = ((glVDPAUUnregisterSurfaceNV = (PFNGLVDPAUUNREGISTERSURFACENVPROC)glewGetProcAddress((const GLubyte*)"glVDPAUUnregisterSurfaceNV")) == NULL) || r;
  6814. return r;
  6815. }
  6816. #endif /* GL_NV_vdpau_interop */
  6817. #ifdef GL_NV_vertex_array_range
  6818. static GLboolean _glewInit_GL_NV_vertex_array_range (GLEW_CONTEXT_ARG_DEF_INIT)
  6819. {
  6820. GLboolean r = GL_FALSE;
  6821. r = ((glFlushVertexArrayRangeNV = (PFNGLFLUSHVERTEXARRAYRANGENVPROC)glewGetProcAddress((const GLubyte*)"glFlushVertexArrayRangeNV")) == NULL) || r;
  6822. r = ((glVertexArrayRangeNV = (PFNGLVERTEXARRAYRANGENVPROC)glewGetProcAddress((const GLubyte*)"glVertexArrayRangeNV")) == NULL) || r;
  6823. return r;
  6824. }
  6825. #endif /* GL_NV_vertex_array_range */
  6826. #ifdef GL_NV_vertex_array_range2
  6827. #endif /* GL_NV_vertex_array_range2 */
  6828. #ifdef GL_NV_vertex_attrib_integer_64bit
  6829. static GLboolean _glewInit_GL_NV_vertex_attrib_integer_64bit (GLEW_CONTEXT_ARG_DEF_INIT)
  6830. {
  6831. GLboolean r = GL_FALSE;
  6832. r = ((glGetVertexAttribLi64vNV = (PFNGLGETVERTEXATTRIBLI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribLi64vNV")) == NULL) || r;
  6833. r = ((glGetVertexAttribLui64vNV = (PFNGLGETVERTEXATTRIBLUI64VNVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribLui64vNV")) == NULL) || r;
  6834. r = ((glVertexAttribL1i64NV = (PFNGLVERTEXATTRIBL1I64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1i64NV")) == NULL) || r;
  6835. r = ((glVertexAttribL1i64vNV = (PFNGLVERTEXATTRIBL1I64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1i64vNV")) == NULL) || r;
  6836. r = ((glVertexAttribL1ui64NV = (PFNGLVERTEXATTRIBL1UI64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1ui64NV")) == NULL) || r;
  6837. r = ((glVertexAttribL1ui64vNV = (PFNGLVERTEXATTRIBL1UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL1ui64vNV")) == NULL) || r;
  6838. r = ((glVertexAttribL2i64NV = (PFNGLVERTEXATTRIBL2I64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2i64NV")) == NULL) || r;
  6839. r = ((glVertexAttribL2i64vNV = (PFNGLVERTEXATTRIBL2I64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2i64vNV")) == NULL) || r;
  6840. r = ((glVertexAttribL2ui64NV = (PFNGLVERTEXATTRIBL2UI64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2ui64NV")) == NULL) || r;
  6841. r = ((glVertexAttribL2ui64vNV = (PFNGLVERTEXATTRIBL2UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL2ui64vNV")) == NULL) || r;
  6842. r = ((glVertexAttribL3i64NV = (PFNGLVERTEXATTRIBL3I64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3i64NV")) == NULL) || r;
  6843. r = ((glVertexAttribL3i64vNV = (PFNGLVERTEXATTRIBL3I64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3i64vNV")) == NULL) || r;
  6844. r = ((glVertexAttribL3ui64NV = (PFNGLVERTEXATTRIBL3UI64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3ui64NV")) == NULL) || r;
  6845. r = ((glVertexAttribL3ui64vNV = (PFNGLVERTEXATTRIBL3UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL3ui64vNV")) == NULL) || r;
  6846. r = ((glVertexAttribL4i64NV = (PFNGLVERTEXATTRIBL4I64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4i64NV")) == NULL) || r;
  6847. r = ((glVertexAttribL4i64vNV = (PFNGLVERTEXATTRIBL4I64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4i64vNV")) == NULL) || r;
  6848. r = ((glVertexAttribL4ui64NV = (PFNGLVERTEXATTRIBL4UI64NVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4ui64NV")) == NULL) || r;
  6849. r = ((glVertexAttribL4ui64vNV = (PFNGLVERTEXATTRIBL4UI64VNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribL4ui64vNV")) == NULL) || r;
  6850. r = ((glVertexAttribLFormatNV = (PFNGLVERTEXATTRIBLFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribLFormatNV")) == NULL) || r;
  6851. return r;
  6852. }
  6853. #endif /* GL_NV_vertex_attrib_integer_64bit */
  6854. #ifdef GL_NV_vertex_buffer_unified_memory
  6855. static GLboolean _glewInit_GL_NV_vertex_buffer_unified_memory (GLEW_CONTEXT_ARG_DEF_INIT)
  6856. {
  6857. GLboolean r = GL_FALSE;
  6858. r = ((glBufferAddressRangeNV = (PFNGLBUFFERADDRESSRANGENVPROC)glewGetProcAddress((const GLubyte*)"glBufferAddressRangeNV")) == NULL) || r;
  6859. r = ((glColorFormatNV = (PFNGLCOLORFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glColorFormatNV")) == NULL) || r;
  6860. r = ((glEdgeFlagFormatNV = (PFNGLEDGEFLAGFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glEdgeFlagFormatNV")) == NULL) || r;
  6861. r = ((glFogCoordFormatNV = (PFNGLFOGCOORDFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glFogCoordFormatNV")) == NULL) || r;
  6862. r = ((glGetIntegerui64i_vNV = (PFNGLGETINTEGERUI64I_VNVPROC)glewGetProcAddress((const GLubyte*)"glGetIntegerui64i_vNV")) == NULL) || r;
  6863. r = ((glIndexFormatNV = (PFNGLINDEXFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glIndexFormatNV")) == NULL) || r;
  6864. r = ((glNormalFormatNV = (PFNGLNORMALFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glNormalFormatNV")) == NULL) || r;
  6865. r = ((glSecondaryColorFormatNV = (PFNGLSECONDARYCOLORFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glSecondaryColorFormatNV")) == NULL) || r;
  6866. r = ((glTexCoordFormatNV = (PFNGLTEXCOORDFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glTexCoordFormatNV")) == NULL) || r;
  6867. r = ((glVertexAttribFormatNV = (PFNGLVERTEXATTRIBFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribFormatNV")) == NULL) || r;
  6868. r = ((glVertexAttribIFormatNV = (PFNGLVERTEXATTRIBIFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribIFormatNV")) == NULL) || r;
  6869. r = ((glVertexFormatNV = (PFNGLVERTEXFORMATNVPROC)glewGetProcAddress((const GLubyte*)"glVertexFormatNV")) == NULL) || r;
  6870. return r;
  6871. }
  6872. #endif /* GL_NV_vertex_buffer_unified_memory */
  6873. #ifdef GL_NV_vertex_program
  6874. static GLboolean _glewInit_GL_NV_vertex_program (GLEW_CONTEXT_ARG_DEF_INIT)
  6875. {
  6876. GLboolean r = GL_FALSE;
  6877. r = ((glAreProgramsResidentNV = (PFNGLAREPROGRAMSRESIDENTNVPROC)glewGetProcAddress((const GLubyte*)"glAreProgramsResidentNV")) == NULL) || r;
  6878. r = ((glBindProgramNV = (PFNGLBINDPROGRAMNVPROC)glewGetProcAddress((const GLubyte*)"glBindProgramNV")) == NULL) || r;
  6879. r = ((glDeleteProgramsNV = (PFNGLDELETEPROGRAMSNVPROC)glewGetProcAddress((const GLubyte*)"glDeleteProgramsNV")) == NULL) || r;
  6880. r = ((glExecuteProgramNV = (PFNGLEXECUTEPROGRAMNVPROC)glewGetProcAddress((const GLubyte*)"glExecuteProgramNV")) == NULL) || r;
  6881. r = ((glGenProgramsNV = (PFNGLGENPROGRAMSNVPROC)glewGetProcAddress((const GLubyte*)"glGenProgramsNV")) == NULL) || r;
  6882. r = ((glGetProgramParameterdvNV = (PFNGLGETPROGRAMPARAMETERDVNVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramParameterdvNV")) == NULL) || r;
  6883. r = ((glGetProgramParameterfvNV = (PFNGLGETPROGRAMPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramParameterfvNV")) == NULL) || r;
  6884. r = ((glGetProgramStringNV = (PFNGLGETPROGRAMSTRINGNVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramStringNV")) == NULL) || r;
  6885. r = ((glGetProgramivNV = (PFNGLGETPROGRAMIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetProgramivNV")) == NULL) || r;
  6886. r = ((glGetTrackMatrixivNV = (PFNGLGETTRACKMATRIXIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetTrackMatrixivNV")) == NULL) || r;
  6887. r = ((glGetVertexAttribPointervNV = (PFNGLGETVERTEXATTRIBPOINTERVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribPointervNV")) == NULL) || r;
  6888. r = ((glGetVertexAttribdvNV = (PFNGLGETVERTEXATTRIBDVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribdvNV")) == NULL) || r;
  6889. r = ((glGetVertexAttribfvNV = (PFNGLGETVERTEXATTRIBFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribfvNV")) == NULL) || r;
  6890. r = ((glGetVertexAttribivNV = (PFNGLGETVERTEXATTRIBIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVertexAttribivNV")) == NULL) || r;
  6891. r = ((glIsProgramNV = (PFNGLISPROGRAMNVPROC)glewGetProcAddress((const GLubyte*)"glIsProgramNV")) == NULL) || r;
  6892. r = ((glLoadProgramNV = (PFNGLLOADPROGRAMNVPROC)glewGetProcAddress((const GLubyte*)"glLoadProgramNV")) == NULL) || r;
  6893. r = ((glProgramParameter4dNV = (PFNGLPROGRAMPARAMETER4DNVPROC)glewGetProcAddress((const GLubyte*)"glProgramParameter4dNV")) == NULL) || r;
  6894. r = ((glProgramParameter4dvNV = (PFNGLPROGRAMPARAMETER4DVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramParameter4dvNV")) == NULL) || r;
  6895. r = ((glProgramParameter4fNV = (PFNGLPROGRAMPARAMETER4FNVPROC)glewGetProcAddress((const GLubyte*)"glProgramParameter4fNV")) == NULL) || r;
  6896. r = ((glProgramParameter4fvNV = (PFNGLPROGRAMPARAMETER4FVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramParameter4fvNV")) == NULL) || r;
  6897. r = ((glProgramParameters4dvNV = (PFNGLPROGRAMPARAMETERS4DVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramParameters4dvNV")) == NULL) || r;
  6898. r = ((glProgramParameters4fvNV = (PFNGLPROGRAMPARAMETERS4FVNVPROC)glewGetProcAddress((const GLubyte*)"glProgramParameters4fvNV")) == NULL) || r;
  6899. r = ((glRequestResidentProgramsNV = (PFNGLREQUESTRESIDENTPROGRAMSNVPROC)glewGetProcAddress((const GLubyte*)"glRequestResidentProgramsNV")) == NULL) || r;
  6900. r = ((glTrackMatrixNV = (PFNGLTRACKMATRIXNVPROC)glewGetProcAddress((const GLubyte*)"glTrackMatrixNV")) == NULL) || r;
  6901. r = ((glVertexAttrib1dNV = (PFNGLVERTEXATTRIB1DNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1dNV")) == NULL) || r;
  6902. r = ((glVertexAttrib1dvNV = (PFNGLVERTEXATTRIB1DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1dvNV")) == NULL) || r;
  6903. r = ((glVertexAttrib1fNV = (PFNGLVERTEXATTRIB1FNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1fNV")) == NULL) || r;
  6904. r = ((glVertexAttrib1fvNV = (PFNGLVERTEXATTRIB1FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1fvNV")) == NULL) || r;
  6905. r = ((glVertexAttrib1sNV = (PFNGLVERTEXATTRIB1SNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1sNV")) == NULL) || r;
  6906. r = ((glVertexAttrib1svNV = (PFNGLVERTEXATTRIB1SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib1svNV")) == NULL) || r;
  6907. r = ((glVertexAttrib2dNV = (PFNGLVERTEXATTRIB2DNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2dNV")) == NULL) || r;
  6908. r = ((glVertexAttrib2dvNV = (PFNGLVERTEXATTRIB2DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2dvNV")) == NULL) || r;
  6909. r = ((glVertexAttrib2fNV = (PFNGLVERTEXATTRIB2FNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2fNV")) == NULL) || r;
  6910. r = ((glVertexAttrib2fvNV = (PFNGLVERTEXATTRIB2FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2fvNV")) == NULL) || r;
  6911. r = ((glVertexAttrib2sNV = (PFNGLVERTEXATTRIB2SNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2sNV")) == NULL) || r;
  6912. r = ((glVertexAttrib2svNV = (PFNGLVERTEXATTRIB2SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib2svNV")) == NULL) || r;
  6913. r = ((glVertexAttrib3dNV = (PFNGLVERTEXATTRIB3DNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3dNV")) == NULL) || r;
  6914. r = ((glVertexAttrib3dvNV = (PFNGLVERTEXATTRIB3DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3dvNV")) == NULL) || r;
  6915. r = ((glVertexAttrib3fNV = (PFNGLVERTEXATTRIB3FNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3fNV")) == NULL) || r;
  6916. r = ((glVertexAttrib3fvNV = (PFNGLVERTEXATTRIB3FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3fvNV")) == NULL) || r;
  6917. r = ((glVertexAttrib3sNV = (PFNGLVERTEXATTRIB3SNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3sNV")) == NULL) || r;
  6918. r = ((glVertexAttrib3svNV = (PFNGLVERTEXATTRIB3SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib3svNV")) == NULL) || r;
  6919. r = ((glVertexAttrib4dNV = (PFNGLVERTEXATTRIB4DNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4dNV")) == NULL) || r;
  6920. r = ((glVertexAttrib4dvNV = (PFNGLVERTEXATTRIB4DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4dvNV")) == NULL) || r;
  6921. r = ((glVertexAttrib4fNV = (PFNGLVERTEXATTRIB4FNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4fNV")) == NULL) || r;
  6922. r = ((glVertexAttrib4fvNV = (PFNGLVERTEXATTRIB4FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4fvNV")) == NULL) || r;
  6923. r = ((glVertexAttrib4sNV = (PFNGLVERTEXATTRIB4SNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4sNV")) == NULL) || r;
  6924. r = ((glVertexAttrib4svNV = (PFNGLVERTEXATTRIB4SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4svNV")) == NULL) || r;
  6925. r = ((glVertexAttrib4ubNV = (PFNGLVERTEXATTRIB4UBNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4ubNV")) == NULL) || r;
  6926. r = ((glVertexAttrib4ubvNV = (PFNGLVERTEXATTRIB4UBVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttrib4ubvNV")) == NULL) || r;
  6927. r = ((glVertexAttribPointerNV = (PFNGLVERTEXATTRIBPOINTERNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribPointerNV")) == NULL) || r;
  6928. r = ((glVertexAttribs1dvNV = (PFNGLVERTEXATTRIBS1DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs1dvNV")) == NULL) || r;
  6929. r = ((glVertexAttribs1fvNV = (PFNGLVERTEXATTRIBS1FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs1fvNV")) == NULL) || r;
  6930. r = ((glVertexAttribs1svNV = (PFNGLVERTEXATTRIBS1SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs1svNV")) == NULL) || r;
  6931. r = ((glVertexAttribs2dvNV = (PFNGLVERTEXATTRIBS2DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs2dvNV")) == NULL) || r;
  6932. r = ((glVertexAttribs2fvNV = (PFNGLVERTEXATTRIBS2FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs2fvNV")) == NULL) || r;
  6933. r = ((glVertexAttribs2svNV = (PFNGLVERTEXATTRIBS2SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs2svNV")) == NULL) || r;
  6934. r = ((glVertexAttribs3dvNV = (PFNGLVERTEXATTRIBS3DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs3dvNV")) == NULL) || r;
  6935. r = ((glVertexAttribs3fvNV = (PFNGLVERTEXATTRIBS3FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs3fvNV")) == NULL) || r;
  6936. r = ((glVertexAttribs3svNV = (PFNGLVERTEXATTRIBS3SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs3svNV")) == NULL) || r;
  6937. r = ((glVertexAttribs4dvNV = (PFNGLVERTEXATTRIBS4DVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs4dvNV")) == NULL) || r;
  6938. r = ((glVertexAttribs4fvNV = (PFNGLVERTEXATTRIBS4FVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs4fvNV")) == NULL) || r;
  6939. r = ((glVertexAttribs4svNV = (PFNGLVERTEXATTRIBS4SVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs4svNV")) == NULL) || r;
  6940. r = ((glVertexAttribs4ubvNV = (PFNGLVERTEXATTRIBS4UBVNVPROC)glewGetProcAddress((const GLubyte*)"glVertexAttribs4ubvNV")) == NULL) || r;
  6941. return r;
  6942. }
  6943. #endif /* GL_NV_vertex_program */
  6944. #ifdef GL_NV_vertex_program1_1
  6945. #endif /* GL_NV_vertex_program1_1 */
  6946. #ifdef GL_NV_vertex_program2
  6947. #endif /* GL_NV_vertex_program2 */
  6948. #ifdef GL_NV_vertex_program2_option
  6949. #endif /* GL_NV_vertex_program2_option */
  6950. #ifdef GL_NV_vertex_program3
  6951. #endif /* GL_NV_vertex_program3 */
  6952. #ifdef GL_NV_vertex_program4
  6953. #endif /* GL_NV_vertex_program4 */
  6954. #ifdef GL_NV_video_capture
  6955. static GLboolean _glewInit_GL_NV_video_capture (GLEW_CONTEXT_ARG_DEF_INIT)
  6956. {
  6957. GLboolean r = GL_FALSE;
  6958. r = ((glBeginVideoCaptureNV = (PFNGLBEGINVIDEOCAPTURENVPROC)glewGetProcAddress((const GLubyte*)"glBeginVideoCaptureNV")) == NULL) || r;
  6959. r = ((glBindVideoCaptureStreamBufferNV = (PFNGLBINDVIDEOCAPTURESTREAMBUFFERNVPROC)glewGetProcAddress((const GLubyte*)"glBindVideoCaptureStreamBufferNV")) == NULL) || r;
  6960. r = ((glBindVideoCaptureStreamTextureNV = (PFNGLBINDVIDEOCAPTURESTREAMTEXTURENVPROC)glewGetProcAddress((const GLubyte*)"glBindVideoCaptureStreamTextureNV")) == NULL) || r;
  6961. r = ((glEndVideoCaptureNV = (PFNGLENDVIDEOCAPTURENVPROC)glewGetProcAddress((const GLubyte*)"glEndVideoCaptureNV")) == NULL) || r;
  6962. r = ((glGetVideoCaptureStreamdvNV = (PFNGLGETVIDEOCAPTURESTREAMDVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoCaptureStreamdvNV")) == NULL) || r;
  6963. r = ((glGetVideoCaptureStreamfvNV = (PFNGLGETVIDEOCAPTURESTREAMFVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoCaptureStreamfvNV")) == NULL) || r;
  6964. r = ((glGetVideoCaptureStreamivNV = (PFNGLGETVIDEOCAPTURESTREAMIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoCaptureStreamivNV")) == NULL) || r;
  6965. r = ((glGetVideoCaptureivNV = (PFNGLGETVIDEOCAPTUREIVNVPROC)glewGetProcAddress((const GLubyte*)"glGetVideoCaptureivNV")) == NULL) || r;
  6966. r = ((glVideoCaptureNV = (PFNGLVIDEOCAPTURENVPROC)glewGetProcAddress((const GLubyte*)"glVideoCaptureNV")) == NULL) || r;
  6967. r = ((glVideoCaptureStreamParameterdvNV = (PFNGLVIDEOCAPTURESTREAMPARAMETERDVNVPROC)glewGetProcAddress((const GLubyte*)"glVideoCaptureStreamParameterdvNV")) == NULL) || r;
  6968. r = ((glVideoCaptureStreamParameterfvNV = (PFNGLVIDEOCAPTURESTREAMPARAMETERFVNVPROC)glewGetProcAddress((const GLubyte*)"glVideoCaptureStreamParameterfvNV")) == NULL) || r;
  6969. r = ((glVideoCaptureStreamParameterivNV = (PFNGLVIDEOCAPTURESTREAMPARAMETERIVNVPROC)glewGetProcAddress((const GLubyte*)"glVideoCaptureStreamParameterivNV")) == NULL) || r;
  6970. return r;
  6971. }
  6972. #endif /* GL_NV_video_capture */
  6973. #ifdef GL_OES_byte_coordinates
  6974. #endif /* GL_OES_byte_coordinates */
  6975. #ifdef GL_OES_compressed_paletted_texture
  6976. #endif /* GL_OES_compressed_paletted_texture */
  6977. #ifdef GL_OES_read_format
  6978. #endif /* GL_OES_read_format */
  6979. #ifdef GL_OES_single_precision
  6980. static GLboolean _glewInit_GL_OES_single_precision (GLEW_CONTEXT_ARG_DEF_INIT)
  6981. {
  6982. GLboolean r = GL_FALSE;
  6983. r = ((glClearDepthfOES = (PFNGLCLEARDEPTHFOESPROC)glewGetProcAddress((const GLubyte*)"glClearDepthfOES")) == NULL) || r;
  6984. r = ((glClipPlanefOES = (PFNGLCLIPPLANEFOESPROC)glewGetProcAddress((const GLubyte*)"glClipPlanefOES")) == NULL) || r;
  6985. r = ((glDepthRangefOES = (PFNGLDEPTHRANGEFOESPROC)glewGetProcAddress((const GLubyte*)"glDepthRangefOES")) == NULL) || r;
  6986. r = ((glFrustumfOES = (PFNGLFRUSTUMFOESPROC)glewGetProcAddress((const GLubyte*)"glFrustumfOES")) == NULL) || r;
  6987. r = ((glGetClipPlanefOES = (PFNGLGETCLIPPLANEFOESPROC)glewGetProcAddress((const GLubyte*)"glGetClipPlanefOES")) == NULL) || r;
  6988. r = ((glOrthofOES = (PFNGLORTHOFOESPROC)glewGetProcAddress((const GLubyte*)"glOrthofOES")) == NULL) || r;
  6989. return r;
  6990. }
  6991. #endif /* GL_OES_single_precision */
  6992. #ifdef GL_OML_interlace
  6993. #endif /* GL_OML_interlace */
  6994. #ifdef GL_OML_resample
  6995. #endif /* GL_OML_resample */
  6996. #ifdef GL_OML_subsample
  6997. #endif /* GL_OML_subsample */
  6998. #ifdef GL_PGI_misc_hints
  6999. #endif /* GL_PGI_misc_hints */
  7000. #ifdef GL_PGI_vertex_hints
  7001. #endif /* GL_PGI_vertex_hints */
  7002. #ifdef GL_REGAL_ES1_0_compatibility
  7003. static GLboolean _glewInit_GL_REGAL_ES1_0_compatibility (GLEW_CONTEXT_ARG_DEF_INIT)
  7004. {
  7005. GLboolean r = GL_FALSE;
  7006. r = ((glAlphaFuncx = (PFNGLALPHAFUNCXPROC)glewGetProcAddress((const GLubyte*)"glAlphaFuncx")) == NULL) || r;
  7007. r = ((glClearColorx = (PFNGLCLEARCOLORXPROC)glewGetProcAddress((const GLubyte*)"glClearColorx")) == NULL) || r;
  7008. r = ((glClearDepthx = (PFNGLCLEARDEPTHXPROC)glewGetProcAddress((const GLubyte*)"glClearDepthx")) == NULL) || r;
  7009. r = ((glColor4x = (PFNGLCOLOR4XPROC)glewGetProcAddress((const GLubyte*)"glColor4x")) == NULL) || r;
  7010. r = ((glDepthRangex = (PFNGLDEPTHRANGEXPROC)glewGetProcAddress((const GLubyte*)"glDepthRangex")) == NULL) || r;
  7011. r = ((glFogx = (PFNGLFOGXPROC)glewGetProcAddress((const GLubyte*)"glFogx")) == NULL) || r;
  7012. r = ((glFogxv = (PFNGLFOGXVPROC)glewGetProcAddress((const GLubyte*)"glFogxv")) == NULL) || r;
  7013. r = ((glFrustumf = (PFNGLFRUSTUMFPROC)glewGetProcAddress((const GLubyte*)"glFrustumf")) == NULL) || r;
  7014. r = ((glFrustumx = (PFNGLFRUSTUMXPROC)glewGetProcAddress((const GLubyte*)"glFrustumx")) == NULL) || r;
  7015. r = ((glLightModelx = (PFNGLLIGHTMODELXPROC)glewGetProcAddress((const GLubyte*)"glLightModelx")) == NULL) || r;
  7016. r = ((glLightModelxv = (PFNGLLIGHTMODELXVPROC)glewGetProcAddress((const GLubyte*)"glLightModelxv")) == NULL) || r;
  7017. r = ((glLightx = (PFNGLLIGHTXPROC)glewGetProcAddress((const GLubyte*)"glLightx")) == NULL) || r;
  7018. r = ((glLightxv = (PFNGLLIGHTXVPROC)glewGetProcAddress((const GLubyte*)"glLightxv")) == NULL) || r;
  7019. r = ((glLineWidthx = (PFNGLLINEWIDTHXPROC)glewGetProcAddress((const GLubyte*)"glLineWidthx")) == NULL) || r;
  7020. r = ((glLoadMatrixx = (PFNGLLOADMATRIXXPROC)glewGetProcAddress((const GLubyte*)"glLoadMatrixx")) == NULL) || r;
  7021. r = ((glMaterialx = (PFNGLMATERIALXPROC)glewGetProcAddress((const GLubyte*)"glMaterialx")) == NULL) || r;
  7022. r = ((glMaterialxv = (PFNGLMATERIALXVPROC)glewGetProcAddress((const GLubyte*)"glMaterialxv")) == NULL) || r;
  7023. r = ((glMultMatrixx = (PFNGLMULTMATRIXXPROC)glewGetProcAddress((const GLubyte*)"glMultMatrixx")) == NULL) || r;
  7024. r = ((glMultiTexCoord4x = (PFNGLMULTITEXCOORD4XPROC)glewGetProcAddress((const GLubyte*)"glMultiTexCoord4x")) == NULL) || r;
  7025. r = ((glNormal3x = (PFNGLNORMAL3XPROC)glewGetProcAddress((const GLubyte*)"glNormal3x")) == NULL) || r;
  7026. r = ((glOrthof = (PFNGLORTHOFPROC)glewGetProcAddress((const GLubyte*)"glOrthof")) == NULL) || r;
  7027. r = ((glOrthox = (PFNGLORTHOXPROC)glewGetProcAddress((const GLubyte*)"glOrthox")) == NULL) || r;
  7028. r = ((glPointSizex = (PFNGLPOINTSIZEXPROC)glewGetProcAddress((const GLubyte*)"glPointSizex")) == NULL) || r;
  7029. r = ((glPolygonOffsetx = (PFNGLPOLYGONOFFSETXPROC)glewGetProcAddress((const GLubyte*)"glPolygonOffsetx")) == NULL) || r;
  7030. r = ((glRotatex = (PFNGLROTATEXPROC)glewGetProcAddress((const GLubyte*)"glRotatex")) == NULL) || r;
  7031. r = ((glSampleCoveragex = (PFNGLSAMPLECOVERAGEXPROC)glewGetProcAddress((const GLubyte*)"glSampleCoveragex")) == NULL) || r;
  7032. r = ((glScalex = (PFNGLSCALEXPROC)glewGetProcAddress((const GLubyte*)"glScalex")) == NULL) || r;
  7033. r = ((glTexEnvx = (PFNGLTEXENVXPROC)glewGetProcAddress((const GLubyte*)"glTexEnvx")) == NULL) || r;
  7034. r = ((glTexEnvxv = (PFNGLTEXENVXVPROC)glewGetProcAddress((const GLubyte*)"glTexEnvxv")) == NULL) || r;
  7035. r = ((glTexParameterx = (PFNGLTEXPARAMETERXPROC)glewGetProcAddress((const GLubyte*)"glTexParameterx")) == NULL) || r;
  7036. r = ((glTranslatex = (PFNGLTRANSLATEXPROC)glewGetProcAddress((const GLubyte*)"glTranslatex")) == NULL) || r;
  7037. return r;
  7038. }
  7039. #endif /* GL_REGAL_ES1_0_compatibility */
  7040. #ifdef GL_REGAL_ES1_1_compatibility
  7041. static GLboolean _glewInit_GL_REGAL_ES1_1_compatibility (GLEW_CONTEXT_ARG_DEF_INIT)
  7042. {
  7043. GLboolean r = GL_FALSE;
  7044. r = ((glClipPlanef = (PFNGLCLIPPLANEFPROC)glewGetProcAddress((const GLubyte*)"glClipPlanef")) == NULL) || r;
  7045. r = ((glClipPlanex = (PFNGLCLIPPLANEXPROC)glewGetProcAddress((const GLubyte*)"glClipPlanex")) == NULL) || r;
  7046. r = ((glGetClipPlanef = (PFNGLGETCLIPPLANEFPROC)glewGetProcAddress((const GLubyte*)"glGetClipPlanef")) == NULL) || r;
  7047. r = ((glGetClipPlanex = (PFNGLGETCLIPPLANEXPROC)glewGetProcAddress((const GLubyte*)"glGetClipPlanex")) == NULL) || r;
  7048. r = ((glGetFixedv = (PFNGLGETFIXEDVPROC)glewGetProcAddress((const GLubyte*)"glGetFixedv")) == NULL) || r;
  7049. r = ((glGetLightxv = (PFNGLGETLIGHTXVPROC)glewGetProcAddress((const GLubyte*)"glGetLightxv")) == NULL) || r;
  7050. r = ((glGetMaterialxv = (PFNGLGETMATERIALXVPROC)glewGetProcAddress((const GLubyte*)"glGetMaterialxv")) == NULL) || r;
  7051. r = ((glGetTexEnvxv = (PFNGLGETTEXENVXVPROC)glewGetProcAddress((const GLubyte*)"glGetTexEnvxv")) == NULL) || r;
  7052. r = ((glGetTexParameterxv = (PFNGLGETTEXPARAMETERXVPROC)glewGetProcAddress((const GLubyte*)"glGetTexParameterxv")) == NULL) || r;
  7053. r = ((glPointParameterx = (PFNGLPOINTPARAMETERXPROC)glewGetProcAddress((const GLubyte*)"glPointParameterx")) == NULL) || r;
  7054. r = ((glPointParameterxv = (PFNGLPOINTPARAMETERXVPROC)glewGetProcAddress((const GLubyte*)"glPointParameterxv")) == NULL) || r;
  7055. r = ((glPointSizePointerOES = (PFNGLPOINTSIZEPOINTEROESPROC)glewGetProcAddress((const GLubyte*)"glPointSizePointerOES")) == NULL) || r;
  7056. r = ((glTexParameterxv = (PFNGLTEXPARAMETERXVPROC)glewGetProcAddress((const GLubyte*)"glTexParameterxv")) == NULL) || r;
  7057. return r;
  7058. }
  7059. #endif /* GL_REGAL_ES1_1_compatibility */
  7060. #ifdef GL_REGAL_enable
  7061. #endif /* GL_REGAL_enable */
  7062. #ifdef GL_REGAL_error_string
  7063. static GLboolean _glewInit_GL_REGAL_error_string (GLEW_CONTEXT_ARG_DEF_INIT)
  7064. {
  7065. GLboolean r = GL_FALSE;
  7066. r = ((glErrorStringREGAL = (PFNGLERRORSTRINGREGALPROC)glewGetProcAddress((const GLubyte*)"glErrorStringREGAL")) == NULL) || r;
  7067. return r;
  7068. }
  7069. #endif /* GL_REGAL_error_string */
  7070. #ifdef GL_REGAL_extension_query
  7071. static GLboolean _glewInit_GL_REGAL_extension_query (GLEW_CONTEXT_ARG_DEF_INIT)
  7072. {
  7073. GLboolean r = GL_FALSE;
  7074. r = ((glGetExtensionREGAL = (PFNGLGETEXTENSIONREGALPROC)glewGetProcAddress((const GLubyte*)"glGetExtensionREGAL")) == NULL) || r;
  7075. r = ((glIsSupportedREGAL = (PFNGLISSUPPORTEDREGALPROC)glewGetProcAddress((const GLubyte*)"glIsSupportedREGAL")) == NULL) || r;
  7076. return r;
  7077. }
  7078. #endif /* GL_REGAL_extension_query */
  7079. #ifdef GL_REGAL_log
  7080. static GLboolean _glewInit_GL_REGAL_log (GLEW_CONTEXT_ARG_DEF_INIT)
  7081. {
  7082. GLboolean r = GL_FALSE;
  7083. r = ((glLogMessageCallbackREGAL = (PFNGLLOGMESSAGECALLBACKREGALPROC)glewGetProcAddress((const GLubyte*)"glLogMessageCallbackREGAL")) == NULL) || r;
  7084. return r;
  7085. }
  7086. #endif /* GL_REGAL_log */
  7087. #ifdef GL_REND_screen_coordinates
  7088. #endif /* GL_REND_screen_coordinates */
  7089. #ifdef GL_S3_s3tc
  7090. #endif /* GL_S3_s3tc */
  7091. #ifdef GL_SGIS_color_range
  7092. #endif /* GL_SGIS_color_range */
  7093. #ifdef GL_SGIS_detail_texture
  7094. static GLboolean _glewInit_GL_SGIS_detail_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  7095. {
  7096. GLboolean r = GL_FALSE;
  7097. r = ((glDetailTexFuncSGIS = (PFNGLDETAILTEXFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glDetailTexFuncSGIS")) == NULL) || r;
  7098. r = ((glGetDetailTexFuncSGIS = (PFNGLGETDETAILTEXFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glGetDetailTexFuncSGIS")) == NULL) || r;
  7099. return r;
  7100. }
  7101. #endif /* GL_SGIS_detail_texture */
  7102. #ifdef GL_SGIS_fog_function
  7103. static GLboolean _glewInit_GL_SGIS_fog_function (GLEW_CONTEXT_ARG_DEF_INIT)
  7104. {
  7105. GLboolean r = GL_FALSE;
  7106. r = ((glFogFuncSGIS = (PFNGLFOGFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glFogFuncSGIS")) == NULL) || r;
  7107. r = ((glGetFogFuncSGIS = (PFNGLGETFOGFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glGetFogFuncSGIS")) == NULL) || r;
  7108. return r;
  7109. }
  7110. #endif /* GL_SGIS_fog_function */
  7111. #ifdef GL_SGIS_generate_mipmap
  7112. #endif /* GL_SGIS_generate_mipmap */
  7113. #ifdef GL_SGIS_multisample
  7114. static GLboolean _glewInit_GL_SGIS_multisample (GLEW_CONTEXT_ARG_DEF_INIT)
  7115. {
  7116. GLboolean r = GL_FALSE;
  7117. r = ((glSampleMaskSGIS = (PFNGLSAMPLEMASKSGISPROC)glewGetProcAddress((const GLubyte*)"glSampleMaskSGIS")) == NULL) || r;
  7118. r = ((glSamplePatternSGIS = (PFNGLSAMPLEPATTERNSGISPROC)glewGetProcAddress((const GLubyte*)"glSamplePatternSGIS")) == NULL) || r;
  7119. return r;
  7120. }
  7121. #endif /* GL_SGIS_multisample */
  7122. #ifdef GL_SGIS_pixel_texture
  7123. #endif /* GL_SGIS_pixel_texture */
  7124. #ifdef GL_SGIS_point_line_texgen
  7125. #endif /* GL_SGIS_point_line_texgen */
  7126. #ifdef GL_SGIS_sharpen_texture
  7127. static GLboolean _glewInit_GL_SGIS_sharpen_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  7128. {
  7129. GLboolean r = GL_FALSE;
  7130. r = ((glGetSharpenTexFuncSGIS = (PFNGLGETSHARPENTEXFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glGetSharpenTexFuncSGIS")) == NULL) || r;
  7131. r = ((glSharpenTexFuncSGIS = (PFNGLSHARPENTEXFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glSharpenTexFuncSGIS")) == NULL) || r;
  7132. return r;
  7133. }
  7134. #endif /* GL_SGIS_sharpen_texture */
  7135. #ifdef GL_SGIS_texture4D
  7136. static GLboolean _glewInit_GL_SGIS_texture4D (GLEW_CONTEXT_ARG_DEF_INIT)
  7137. {
  7138. GLboolean r = GL_FALSE;
  7139. r = ((glTexImage4DSGIS = (PFNGLTEXIMAGE4DSGISPROC)glewGetProcAddress((const GLubyte*)"glTexImage4DSGIS")) == NULL) || r;
  7140. r = ((glTexSubImage4DSGIS = (PFNGLTEXSUBIMAGE4DSGISPROC)glewGetProcAddress((const GLubyte*)"glTexSubImage4DSGIS")) == NULL) || r;
  7141. return r;
  7142. }
  7143. #endif /* GL_SGIS_texture4D */
  7144. #ifdef GL_SGIS_texture_border_clamp
  7145. #endif /* GL_SGIS_texture_border_clamp */
  7146. #ifdef GL_SGIS_texture_edge_clamp
  7147. #endif /* GL_SGIS_texture_edge_clamp */
  7148. #ifdef GL_SGIS_texture_filter4
  7149. static GLboolean _glewInit_GL_SGIS_texture_filter4 (GLEW_CONTEXT_ARG_DEF_INIT)
  7150. {
  7151. GLboolean r = GL_FALSE;
  7152. r = ((glGetTexFilterFuncSGIS = (PFNGLGETTEXFILTERFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glGetTexFilterFuncSGIS")) == NULL) || r;
  7153. r = ((glTexFilterFuncSGIS = (PFNGLTEXFILTERFUNCSGISPROC)glewGetProcAddress((const GLubyte*)"glTexFilterFuncSGIS")) == NULL) || r;
  7154. return r;
  7155. }
  7156. #endif /* GL_SGIS_texture_filter4 */
  7157. #ifdef GL_SGIS_texture_lod
  7158. #endif /* GL_SGIS_texture_lod */
  7159. #ifdef GL_SGIS_texture_select
  7160. #endif /* GL_SGIS_texture_select */
  7161. #ifdef GL_SGIX_async
  7162. static GLboolean _glewInit_GL_SGIX_async (GLEW_CONTEXT_ARG_DEF_INIT)
  7163. {
  7164. GLboolean r = GL_FALSE;
  7165. r = ((glAsyncMarkerSGIX = (PFNGLASYNCMARKERSGIXPROC)glewGetProcAddress((const GLubyte*)"glAsyncMarkerSGIX")) == NULL) || r;
  7166. r = ((glDeleteAsyncMarkersSGIX = (PFNGLDELETEASYNCMARKERSSGIXPROC)glewGetProcAddress((const GLubyte*)"glDeleteAsyncMarkersSGIX")) == NULL) || r;
  7167. r = ((glFinishAsyncSGIX = (PFNGLFINISHASYNCSGIXPROC)glewGetProcAddress((const GLubyte*)"glFinishAsyncSGIX")) == NULL) || r;
  7168. r = ((glGenAsyncMarkersSGIX = (PFNGLGENASYNCMARKERSSGIXPROC)glewGetProcAddress((const GLubyte*)"glGenAsyncMarkersSGIX")) == NULL) || r;
  7169. r = ((glIsAsyncMarkerSGIX = (PFNGLISASYNCMARKERSGIXPROC)glewGetProcAddress((const GLubyte*)"glIsAsyncMarkerSGIX")) == NULL) || r;
  7170. r = ((glPollAsyncSGIX = (PFNGLPOLLASYNCSGIXPROC)glewGetProcAddress((const GLubyte*)"glPollAsyncSGIX")) == NULL) || r;
  7171. return r;
  7172. }
  7173. #endif /* GL_SGIX_async */
  7174. #ifdef GL_SGIX_async_histogram
  7175. #endif /* GL_SGIX_async_histogram */
  7176. #ifdef GL_SGIX_async_pixel
  7177. #endif /* GL_SGIX_async_pixel */
  7178. #ifdef GL_SGIX_blend_alpha_minmax
  7179. #endif /* GL_SGIX_blend_alpha_minmax */
  7180. #ifdef GL_SGIX_clipmap
  7181. #endif /* GL_SGIX_clipmap */
  7182. #ifdef GL_SGIX_convolution_accuracy
  7183. #endif /* GL_SGIX_convolution_accuracy */
  7184. #ifdef GL_SGIX_depth_texture
  7185. #endif /* GL_SGIX_depth_texture */
  7186. #ifdef GL_SGIX_flush_raster
  7187. static GLboolean _glewInit_GL_SGIX_flush_raster (GLEW_CONTEXT_ARG_DEF_INIT)
  7188. {
  7189. GLboolean r = GL_FALSE;
  7190. r = ((glFlushRasterSGIX = (PFNGLFLUSHRASTERSGIXPROC)glewGetProcAddress((const GLubyte*)"glFlushRasterSGIX")) == NULL) || r;
  7191. return r;
  7192. }
  7193. #endif /* GL_SGIX_flush_raster */
  7194. #ifdef GL_SGIX_fog_offset
  7195. #endif /* GL_SGIX_fog_offset */
  7196. #ifdef GL_SGIX_fog_texture
  7197. static GLboolean _glewInit_GL_SGIX_fog_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  7198. {
  7199. GLboolean r = GL_FALSE;
  7200. r = ((glTextureFogSGIX = (PFNGLTEXTUREFOGSGIXPROC)glewGetProcAddress((const GLubyte*)"glTextureFogSGIX")) == NULL) || r;
  7201. return r;
  7202. }
  7203. #endif /* GL_SGIX_fog_texture */
  7204. #ifdef GL_SGIX_fragment_specular_lighting
  7205. static GLboolean _glewInit_GL_SGIX_fragment_specular_lighting (GLEW_CONTEXT_ARG_DEF_INIT)
  7206. {
  7207. GLboolean r = GL_FALSE;
  7208. r = ((glFragmentColorMaterialSGIX = (PFNGLFRAGMENTCOLORMATERIALSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentColorMaterialSGIX")) == NULL) || r;
  7209. r = ((glFragmentLightModelfSGIX = (PFNGLFRAGMENTLIGHTMODELFSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModelfSGIX")) == NULL) || r;
  7210. r = ((glFragmentLightModelfvSGIX = (PFNGLFRAGMENTLIGHTMODELFVSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModelfvSGIX")) == NULL) || r;
  7211. r = ((glFragmentLightModeliSGIX = (PFNGLFRAGMENTLIGHTMODELISGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModeliSGIX")) == NULL) || r;
  7212. r = ((glFragmentLightModelivSGIX = (PFNGLFRAGMENTLIGHTMODELIVSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightModelivSGIX")) == NULL) || r;
  7213. r = ((glFragmentLightfSGIX = (PFNGLFRAGMENTLIGHTFSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightfSGIX")) == NULL) || r;
  7214. r = ((glFragmentLightfvSGIX = (PFNGLFRAGMENTLIGHTFVSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightfvSGIX")) == NULL) || r;
  7215. r = ((glFragmentLightiSGIX = (PFNGLFRAGMENTLIGHTISGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightiSGIX")) == NULL) || r;
  7216. r = ((glFragmentLightivSGIX = (PFNGLFRAGMENTLIGHTIVSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentLightivSGIX")) == NULL) || r;
  7217. r = ((glFragmentMaterialfSGIX = (PFNGLFRAGMENTMATERIALFSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialfSGIX")) == NULL) || r;
  7218. r = ((glFragmentMaterialfvSGIX = (PFNGLFRAGMENTMATERIALFVSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialfvSGIX")) == NULL) || r;
  7219. r = ((glFragmentMaterialiSGIX = (PFNGLFRAGMENTMATERIALISGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialiSGIX")) == NULL) || r;
  7220. r = ((glFragmentMaterialivSGIX = (PFNGLFRAGMENTMATERIALIVSGIXPROC)glewGetProcAddress((const GLubyte*)"glFragmentMaterialivSGIX")) == NULL) || r;
  7221. r = ((glGetFragmentLightfvSGIX = (PFNGLGETFRAGMENTLIGHTFVSGIXPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentLightfvSGIX")) == NULL) || r;
  7222. r = ((glGetFragmentLightivSGIX = (PFNGLGETFRAGMENTLIGHTIVSGIXPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentLightivSGIX")) == NULL) || r;
  7223. r = ((glGetFragmentMaterialfvSGIX = (PFNGLGETFRAGMENTMATERIALFVSGIXPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentMaterialfvSGIX")) == NULL) || r;
  7224. r = ((glGetFragmentMaterialivSGIX = (PFNGLGETFRAGMENTMATERIALIVSGIXPROC)glewGetProcAddress((const GLubyte*)"glGetFragmentMaterialivSGIX")) == NULL) || r;
  7225. return r;
  7226. }
  7227. #endif /* GL_SGIX_fragment_specular_lighting */
  7228. #ifdef GL_SGIX_framezoom
  7229. static GLboolean _glewInit_GL_SGIX_framezoom (GLEW_CONTEXT_ARG_DEF_INIT)
  7230. {
  7231. GLboolean r = GL_FALSE;
  7232. r = ((glFrameZoomSGIX = (PFNGLFRAMEZOOMSGIXPROC)glewGetProcAddress((const GLubyte*)"glFrameZoomSGIX")) == NULL) || r;
  7233. return r;
  7234. }
  7235. #endif /* GL_SGIX_framezoom */
  7236. #ifdef GL_SGIX_interlace
  7237. #endif /* GL_SGIX_interlace */
  7238. #ifdef GL_SGIX_ir_instrument1
  7239. #endif /* GL_SGIX_ir_instrument1 */
  7240. #ifdef GL_SGIX_list_priority
  7241. #endif /* GL_SGIX_list_priority */
  7242. #ifdef GL_SGIX_pixel_texture
  7243. static GLboolean _glewInit_GL_SGIX_pixel_texture (GLEW_CONTEXT_ARG_DEF_INIT)
  7244. {
  7245. GLboolean r = GL_FALSE;
  7246. r = ((glPixelTexGenSGIX = (PFNGLPIXELTEXGENSGIXPROC)glewGetProcAddress((const GLubyte*)"glPixelTexGenSGIX")) == NULL) || r;
  7247. return r;
  7248. }
  7249. #endif /* GL_SGIX_pixel_texture */
  7250. #ifdef GL_SGIX_pixel_texture_bits
  7251. #endif /* GL_SGIX_pixel_texture_bits */
  7252. #ifdef GL_SGIX_reference_plane
  7253. static GLboolean _glewInit_GL_SGIX_reference_plane (GLEW_CONTEXT_ARG_DEF_INIT)
  7254. {
  7255. GLboolean r = GL_FALSE;
  7256. r = ((glReferencePlaneSGIX = (PFNGLREFERENCEPLANESGIXPROC)glewGetProcAddress((const GLubyte*)"glReferencePlaneSGIX")) == NULL) || r;
  7257. return r;
  7258. }
  7259. #endif /* GL_SGIX_reference_plane */
  7260. #ifdef GL_SGIX_resample
  7261. #endif /* GL_SGIX_resample */
  7262. #ifdef GL_SGIX_shadow
  7263. #endif /* GL_SGIX_shadow */
  7264. #ifdef GL_SGIX_shadow_ambient
  7265. #endif /* GL_SGIX_shadow_ambient */
  7266. #ifdef GL_SGIX_sprite
  7267. static GLboolean _glewInit_GL_SGIX_sprite (GLEW_CONTEXT_ARG_DEF_INIT)
  7268. {
  7269. GLboolean r = GL_FALSE;
  7270. r = ((glSpriteParameterfSGIX = (PFNGLSPRITEPARAMETERFSGIXPROC)glewGetProcAddress((const GLubyte*)"glSpriteParameterfSGIX")) == NULL) || r;
  7271. r = ((glSpriteParameterfvSGIX = (PFNGLSPRITEPARAMETERFVSGIXPROC)glewGetProcAddress((const GLubyte*)"glSpriteParameterfvSGIX")) == NULL) || r;
  7272. r = ((glSpriteParameteriSGIX = (PFNGLSPRITEPARAMETERISGIXPROC)glewGetProcAddress((const GLubyte*)"glSpriteParameteriSGIX")) == NULL) || r;
  7273. r = ((glSpriteParameterivSGIX = (PFNGLSPRITEPARAMETERIVSGIXPROC)glewGetProcAddress((const GLubyte*)"glSpriteParameterivSGIX")) == NULL) || r;
  7274. return r;
  7275. }
  7276. #endif /* GL_SGIX_sprite */
  7277. #ifdef GL_SGIX_tag_sample_buffer
  7278. static GLboolean _glewInit_GL_SGIX_tag_sample_buffer (GLEW_CONTEXT_ARG_DEF_INIT)
  7279. {
  7280. GLboolean r = GL_FALSE;
  7281. r = ((glTagSampleBufferSGIX = (PFNGLTAGSAMPLEBUFFERSGIXPROC)glewGetProcAddress((const GLubyte*)"glTagSampleBufferSGIX")) == NULL) || r;
  7282. return r;
  7283. }
  7284. #endif /* GL_SGIX_tag_sample_buffer */
  7285. #ifdef GL_SGIX_texture_add_env
  7286. #endif /* GL_SGIX_texture_add_env */
  7287. #ifdef GL_SGIX_texture_coordinate_clamp
  7288. #endif /* GL_SGIX_texture_coordinate_clamp */
  7289. #ifdef GL_SGIX_texture_lod_bias
  7290. #endif /* GL_SGIX_texture_lod_bias */
  7291. #ifdef GL_SGIX_texture_multi_buffer
  7292. #endif /* GL_SGIX_texture_multi_buffer */
  7293. #ifdef GL_SGIX_texture_range
  7294. #endif /* GL_SGIX_texture_range */
  7295. #ifdef GL_SGIX_texture_scale_bias
  7296. #endif /* GL_SGIX_texture_scale_bias */
  7297. #ifdef GL_SGIX_vertex_preclip
  7298. #endif /* GL_SGIX_vertex_preclip */
  7299. #ifdef GL_SGIX_vertex_preclip_hint
  7300. #endif /* GL_SGIX_vertex_preclip_hint */
  7301. #ifdef GL_SGIX_ycrcb
  7302. #endif /* GL_SGIX_ycrcb */
  7303. #ifdef GL_SGI_color_matrix
  7304. #endif /* GL_SGI_color_matrix */
  7305. #ifdef GL_SGI_color_table
  7306. static GLboolean _glewInit_GL_SGI_color_table (GLEW_CONTEXT_ARG_DEF_INIT)
  7307. {
  7308. GLboolean r = GL_FALSE;
  7309. r = ((glColorTableParameterfvSGI = (PFNGLCOLORTABLEPARAMETERFVSGIPROC)glewGetProcAddress((const GLubyte*)"glColorTableParameterfvSGI")) == NULL) || r;
  7310. r = ((glColorTableParameterivSGI = (PFNGLCOLORTABLEPARAMETERIVSGIPROC)glewGetProcAddress((const GLubyte*)"glColorTableParameterivSGI")) == NULL) || r;
  7311. r = ((glColorTableSGI = (PFNGLCOLORTABLESGIPROC)glewGetProcAddress((const GLubyte*)"glColorTableSGI")) == NULL) || r;
  7312. r = ((glCopyColorTableSGI = (PFNGLCOPYCOLORTABLESGIPROC)glewGetProcAddress((const GLubyte*)"glCopyColorTableSGI")) == NULL) || r;
  7313. r = ((glGetColorTableParameterfvSGI = (PFNGLGETCOLORTABLEPARAMETERFVSGIPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableParameterfvSGI")) == NULL) || r;
  7314. r = ((glGetColorTableParameterivSGI = (PFNGLGETCOLORTABLEPARAMETERIVSGIPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableParameterivSGI")) == NULL) || r;
  7315. r = ((glGetColorTableSGI = (PFNGLGETCOLORTABLESGIPROC)glewGetProcAddress((const GLubyte*)"glGetColorTableSGI")) == NULL) || r;
  7316. return r;
  7317. }
  7318. #endif /* GL_SGI_color_table */
  7319. #ifdef GL_SGI_texture_color_table
  7320. #endif /* GL_SGI_texture_color_table */
  7321. #ifdef GL_SUNX_constant_data
  7322. static GLboolean _glewInit_GL_SUNX_constant_data (GLEW_CONTEXT_ARG_DEF_INIT)
  7323. {
  7324. GLboolean r = GL_FALSE;
  7325. r = ((glFinishTextureSUNX = (PFNGLFINISHTEXTURESUNXPROC)glewGetProcAddress((const GLubyte*)"glFinishTextureSUNX")) == NULL) || r;
  7326. return r;
  7327. }
  7328. #endif /* GL_SUNX_constant_data */
  7329. #ifdef GL_SUN_convolution_border_modes
  7330. #endif /* GL_SUN_convolution_border_modes */
  7331. #ifdef GL_SUN_global_alpha
  7332. static GLboolean _glewInit_GL_SUN_global_alpha (GLEW_CONTEXT_ARG_DEF_INIT)
  7333. {
  7334. GLboolean r = GL_FALSE;
  7335. r = ((glGlobalAlphaFactorbSUN = (PFNGLGLOBALALPHAFACTORBSUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactorbSUN")) == NULL) || r;
  7336. r = ((glGlobalAlphaFactordSUN = (PFNGLGLOBALALPHAFACTORDSUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactordSUN")) == NULL) || r;
  7337. r = ((glGlobalAlphaFactorfSUN = (PFNGLGLOBALALPHAFACTORFSUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactorfSUN")) == NULL) || r;
  7338. r = ((glGlobalAlphaFactoriSUN = (PFNGLGLOBALALPHAFACTORISUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactoriSUN")) == NULL) || r;
  7339. r = ((glGlobalAlphaFactorsSUN = (PFNGLGLOBALALPHAFACTORSSUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactorsSUN")) == NULL) || r;
  7340. r = ((glGlobalAlphaFactorubSUN = (PFNGLGLOBALALPHAFACTORUBSUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactorubSUN")) == NULL) || r;
  7341. r = ((glGlobalAlphaFactoruiSUN = (PFNGLGLOBALALPHAFACTORUISUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactoruiSUN")) == NULL) || r;
  7342. r = ((glGlobalAlphaFactorusSUN = (PFNGLGLOBALALPHAFACTORUSSUNPROC)glewGetProcAddress((const GLubyte*)"glGlobalAlphaFactorusSUN")) == NULL) || r;
  7343. return r;
  7344. }
  7345. #endif /* GL_SUN_global_alpha */
  7346. #ifdef GL_SUN_mesh_array
  7347. #endif /* GL_SUN_mesh_array */
  7348. #ifdef GL_SUN_read_video_pixels
  7349. static GLboolean _glewInit_GL_SUN_read_video_pixels (GLEW_CONTEXT_ARG_DEF_INIT)
  7350. {
  7351. GLboolean r = GL_FALSE;
  7352. r = ((glReadVideoPixelsSUN = (PFNGLREADVIDEOPIXELSSUNPROC)glewGetProcAddress((const GLubyte*)"glReadVideoPixelsSUN")) == NULL) || r;
  7353. return r;
  7354. }
  7355. #endif /* GL_SUN_read_video_pixels */
  7356. #ifdef GL_SUN_slice_accum
  7357. #endif /* GL_SUN_slice_accum */
  7358. #ifdef GL_SUN_triangle_list
  7359. static GLboolean _glewInit_GL_SUN_triangle_list (GLEW_CONTEXT_ARG_DEF_INIT)
  7360. {
  7361. GLboolean r = GL_FALSE;
  7362. r = ((glReplacementCodePointerSUN = (PFNGLREPLACEMENTCODEPOINTERSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodePointerSUN")) == NULL) || r;
  7363. r = ((glReplacementCodeubSUN = (PFNGLREPLACEMENTCODEUBSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeubSUN")) == NULL) || r;
  7364. r = ((glReplacementCodeubvSUN = (PFNGLREPLACEMENTCODEUBVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeubvSUN")) == NULL) || r;
  7365. r = ((glReplacementCodeuiSUN = (PFNGLREPLACEMENTCODEUISUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiSUN")) == NULL) || r;
  7366. r = ((glReplacementCodeuivSUN = (PFNGLREPLACEMENTCODEUIVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuivSUN")) == NULL) || r;
  7367. r = ((glReplacementCodeusSUN = (PFNGLREPLACEMENTCODEUSSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeusSUN")) == NULL) || r;
  7368. r = ((glReplacementCodeusvSUN = (PFNGLREPLACEMENTCODEUSVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeusvSUN")) == NULL) || r;
  7369. return r;
  7370. }
  7371. #endif /* GL_SUN_triangle_list */
  7372. #ifdef GL_SUN_vertex
  7373. static GLboolean _glewInit_GL_SUN_vertex (GLEW_CONTEXT_ARG_DEF_INIT)
  7374. {
  7375. GLboolean r = GL_FALSE;
  7376. r = ((glColor3fVertex3fSUN = (PFNGLCOLOR3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glColor3fVertex3fSUN")) == NULL) || r;
  7377. r = ((glColor3fVertex3fvSUN = (PFNGLCOLOR3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glColor3fVertex3fvSUN")) == NULL) || r;
  7378. r = ((glColor4fNormal3fVertex3fSUN = (PFNGLCOLOR4FNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glColor4fNormal3fVertex3fSUN")) == NULL) || r;
  7379. r = ((glColor4fNormal3fVertex3fvSUN = (PFNGLCOLOR4FNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glColor4fNormal3fVertex3fvSUN")) == NULL) || r;
  7380. r = ((glColor4ubVertex2fSUN = (PFNGLCOLOR4UBVERTEX2FSUNPROC)glewGetProcAddress((const GLubyte*)"glColor4ubVertex2fSUN")) == NULL) || r;
  7381. r = ((glColor4ubVertex2fvSUN = (PFNGLCOLOR4UBVERTEX2FVSUNPROC)glewGetProcAddress((const GLubyte*)"glColor4ubVertex2fvSUN")) == NULL) || r;
  7382. r = ((glColor4ubVertex3fSUN = (PFNGLCOLOR4UBVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glColor4ubVertex3fSUN")) == NULL) || r;
  7383. r = ((glColor4ubVertex3fvSUN = (PFNGLCOLOR4UBVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glColor4ubVertex3fvSUN")) == NULL) || r;
  7384. r = ((glNormal3fVertex3fSUN = (PFNGLNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glNormal3fVertex3fSUN")) == NULL) || r;
  7385. r = ((glNormal3fVertex3fvSUN = (PFNGLNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glNormal3fVertex3fvSUN")) == NULL) || r;
  7386. r = ((glReplacementCodeuiColor3fVertex3fSUN = (PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiColor3fVertex3fSUN")) == NULL) || r;
  7387. r = ((glReplacementCodeuiColor3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUICOLOR3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiColor3fVertex3fvSUN")) == NULL) || r;
  7388. r = ((glReplacementCodeuiColor4fNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiColor4fNormal3fVertex3fSUN")) == NULL) || r;
  7389. r = ((glReplacementCodeuiColor4fNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUICOLOR4FNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiColor4fNormal3fVertex3fvSUN")) == NULL) || r;
  7390. r = ((glReplacementCodeuiColor4ubVertex3fSUN = (PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiColor4ubVertex3fSUN")) == NULL) || r;
  7391. r = ((glReplacementCodeuiColor4ubVertex3fvSUN = (PFNGLREPLACEMENTCODEUICOLOR4UBVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiColor4ubVertex3fvSUN")) == NULL) || r;
  7392. r = ((glReplacementCodeuiNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiNormal3fVertex3fSUN")) == NULL) || r;
  7393. r = ((glReplacementCodeuiNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUINORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiNormal3fVertex3fvSUN")) == NULL) || r;
  7394. r = ((glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fSUN")) == NULL) || r;
  7395. r = ((glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiTexCoord2fColor4fNormal3fVertex3fvSUN")) == NULL) || r;
  7396. r = ((glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiTexCoord2fNormal3fVertex3fSUN")) == NULL) || r;
  7397. r = ((glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiTexCoord2fNormal3fVertex3fvSUN")) == NULL) || r;
  7398. r = ((glReplacementCodeuiTexCoord2fVertex3fSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiTexCoord2fVertex3fSUN")) == NULL) || r;
  7399. r = ((glReplacementCodeuiTexCoord2fVertex3fvSUN = (PFNGLREPLACEMENTCODEUITEXCOORD2FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiTexCoord2fVertex3fvSUN")) == NULL) || r;
  7400. r = ((glReplacementCodeuiVertex3fSUN = (PFNGLREPLACEMENTCODEUIVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiVertex3fSUN")) == NULL) || r;
  7401. r = ((glReplacementCodeuiVertex3fvSUN = (PFNGLREPLACEMENTCODEUIVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glReplacementCodeuiVertex3fvSUN")) == NULL) || r;
  7402. r = ((glTexCoord2fColor3fVertex3fSUN = (PFNGLTEXCOORD2FCOLOR3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fColor3fVertex3fSUN")) == NULL) || r;
  7403. r = ((glTexCoord2fColor3fVertex3fvSUN = (PFNGLTEXCOORD2FCOLOR3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fColor3fVertex3fvSUN")) == NULL) || r;
  7404. r = ((glTexCoord2fColor4fNormal3fVertex3fSUN = (PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fColor4fNormal3fVertex3fSUN")) == NULL) || r;
  7405. r = ((glTexCoord2fColor4fNormal3fVertex3fvSUN = (PFNGLTEXCOORD2FCOLOR4FNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fColor4fNormal3fVertex3fvSUN")) == NULL) || r;
  7406. r = ((glTexCoord2fColor4ubVertex3fSUN = (PFNGLTEXCOORD2FCOLOR4UBVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fColor4ubVertex3fSUN")) == NULL) || r;
  7407. r = ((glTexCoord2fColor4ubVertex3fvSUN = (PFNGLTEXCOORD2FCOLOR4UBVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fColor4ubVertex3fvSUN")) == NULL) || r;
  7408. r = ((glTexCoord2fNormal3fVertex3fSUN = (PFNGLTEXCOORD2FNORMAL3FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fNormal3fVertex3fSUN")) == NULL) || r;
  7409. r = ((glTexCoord2fNormal3fVertex3fvSUN = (PFNGLTEXCOORD2FNORMAL3FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fNormal3fVertex3fvSUN")) == NULL) || r;
  7410. r = ((glTexCoord2fVertex3fSUN = (PFNGLTEXCOORD2FVERTEX3FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fVertex3fSUN")) == NULL) || r;
  7411. r = ((glTexCoord2fVertex3fvSUN = (PFNGLTEXCOORD2FVERTEX3FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord2fVertex3fvSUN")) == NULL) || r;
  7412. r = ((glTexCoord4fColor4fNormal3fVertex4fSUN = (PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4fColor4fNormal3fVertex4fSUN")) == NULL) || r;
  7413. r = ((glTexCoord4fColor4fNormal3fVertex4fvSUN = (PFNGLTEXCOORD4FCOLOR4FNORMAL3FVERTEX4FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4fColor4fNormal3fVertex4fvSUN")) == NULL) || r;
  7414. r = ((glTexCoord4fVertex4fSUN = (PFNGLTEXCOORD4FVERTEX4FSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4fVertex4fSUN")) == NULL) || r;
  7415. r = ((glTexCoord4fVertex4fvSUN = (PFNGLTEXCOORD4FVERTEX4FVSUNPROC)glewGetProcAddress((const GLubyte*)"glTexCoord4fVertex4fvSUN")) == NULL) || r;
  7416. return r;
  7417. }
  7418. #endif /* GL_SUN_vertex */
  7419. #ifdef GL_WIN_phong_shading
  7420. #endif /* GL_WIN_phong_shading */
  7421. #ifdef GL_WIN_specular_fog
  7422. #endif /* GL_WIN_specular_fog */
  7423. #ifdef GL_WIN_swap_hint
  7424. static GLboolean _glewInit_GL_WIN_swap_hint (GLEW_CONTEXT_ARG_DEF_INIT)
  7425. {
  7426. GLboolean r = GL_FALSE;
  7427. r = ((glAddSwapHintRectWIN = (PFNGLADDSWAPHINTRECTWINPROC)glewGetProcAddress((const GLubyte*)"glAddSwapHintRectWIN")) == NULL) || r;
  7428. return r;
  7429. }
  7430. #endif /* GL_WIN_swap_hint */
  7431. /* ------------------------------------------------------------------------- */
  7432. GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
  7433. {
  7434. const GLubyte* start;
  7435. const GLubyte* end;
  7436. start = (const GLubyte*)glGetString(GL_EXTENSIONS);
  7437. if (start == 0)
  7438. return GL_FALSE;
  7439. end = start + _glewStrLen(start);
  7440. return _glewSearchExtension(name, start, end);
  7441. }
  7442. /* ------------------------------------------------------------------------- */
  7443. #ifndef GLEW_MX
  7444. static
  7445. #endif
  7446. GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
  7447. {
  7448. const GLubyte* s;
  7449. GLuint dot;
  7450. GLint major, minor;
  7451. const GLubyte* extStart;
  7452. const GLubyte* extEnd;
  7453. /* query opengl version */
  7454. s = glGetString(GL_VERSION);
  7455. dot = _glewStrCLen(s, '.');
  7456. if (dot == 0)
  7457. return GLEW_ERROR_NO_GL_VERSION;
  7458. major = s[dot-1]-'0';
  7459. minor = s[dot+1]-'0';
  7460. if (minor < 0 || minor > 9)
  7461. minor = 0;
  7462. if (major<0 || major>9)
  7463. return GLEW_ERROR_NO_GL_VERSION;
  7464. if (major == 1 && minor == 0)
  7465. {
  7466. return GLEW_ERROR_GL_VERSION_10_ONLY;
  7467. }
  7468. else
  7469. {
  7470. CONST_CAST(GLEW_VERSION_4_4) = ( major > 4 ) || ( major == 4 && minor >= 4 ) ? GL_TRUE : GL_FALSE;
  7471. CONST_CAST(GLEW_VERSION_4_3) = GLEW_VERSION_4_4 == GL_TRUE || ( major == 4 && minor >= 3 ) ? GL_TRUE : GL_FALSE;
  7472. CONST_CAST(GLEW_VERSION_4_2) = GLEW_VERSION_4_3 == GL_TRUE || ( major == 4 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
  7473. CONST_CAST(GLEW_VERSION_4_1) = GLEW_VERSION_4_2 == GL_TRUE || ( major == 4 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
  7474. CONST_CAST(GLEW_VERSION_4_0) = GLEW_VERSION_4_1 == GL_TRUE || ( major == 4 ) ? GL_TRUE : GL_FALSE;
  7475. CONST_CAST(GLEW_VERSION_3_3) = GLEW_VERSION_4_0 == GL_TRUE || ( major == 3 && minor >= 3 ) ? GL_TRUE : GL_FALSE;
  7476. CONST_CAST(GLEW_VERSION_3_2) = GLEW_VERSION_3_3 == GL_TRUE || ( major == 3 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
  7477. CONST_CAST(GLEW_VERSION_3_1) = GLEW_VERSION_3_2 == GL_TRUE || ( major == 3 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
  7478. CONST_CAST(GLEW_VERSION_3_0) = GLEW_VERSION_3_1 == GL_TRUE || ( major == 3 ) ? GL_TRUE : GL_FALSE;
  7479. CONST_CAST(GLEW_VERSION_2_1) = GLEW_VERSION_3_0 == GL_TRUE || ( major == 2 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
  7480. CONST_CAST(GLEW_VERSION_2_0) = GLEW_VERSION_2_1 == GL_TRUE || ( major == 2 ) ? GL_TRUE : GL_FALSE;
  7481. CONST_CAST(GLEW_VERSION_1_5) = GLEW_VERSION_2_0 == GL_TRUE || ( major == 1 && minor >= 5 ) ? GL_TRUE : GL_FALSE;
  7482. CONST_CAST(GLEW_VERSION_1_4) = GLEW_VERSION_1_5 == GL_TRUE || ( major == 1 && minor >= 4 ) ? GL_TRUE : GL_FALSE;
  7483. CONST_CAST(GLEW_VERSION_1_3) = GLEW_VERSION_1_4 == GL_TRUE || ( major == 1 && minor >= 3 ) ? GL_TRUE : GL_FALSE;
  7484. CONST_CAST(GLEW_VERSION_1_2_1) = GLEW_VERSION_1_3 == GL_TRUE ? GL_TRUE : GL_FALSE;
  7485. CONST_CAST(GLEW_VERSION_1_2) = GLEW_VERSION_1_2_1 == GL_TRUE || ( major == 1 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
  7486. CONST_CAST(GLEW_VERSION_1_1) = GLEW_VERSION_1_2 == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
  7487. }
  7488. /* query opengl extensions string */
  7489. extStart = glGetString(GL_EXTENSIONS);
  7490. if (extStart == 0)
  7491. extStart = (const GLubyte*)"";
  7492. extEnd = extStart + _glewStrLen(extStart);
  7493. /* initialize extensions */
  7494. #ifdef GL_VERSION_1_2
  7495. if (glewExperimental || GLEW_VERSION_1_2) CONST_CAST(GLEW_VERSION_1_2) = !_glewInit_GL_VERSION_1_2(GLEW_CONTEXT_ARG_VAR_INIT);
  7496. #endif /* GL_VERSION_1_2 */
  7497. #ifdef GL_VERSION_1_2_1
  7498. #endif /* GL_VERSION_1_2_1 */
  7499. #ifdef GL_VERSION_1_3
  7500. if (glewExperimental || GLEW_VERSION_1_3) CONST_CAST(GLEW_VERSION_1_3) = !_glewInit_GL_VERSION_1_3(GLEW_CONTEXT_ARG_VAR_INIT);
  7501. #endif /* GL_VERSION_1_3 */
  7502. #ifdef GL_VERSION_1_4
  7503. if (glewExperimental || GLEW_VERSION_1_4) CONST_CAST(GLEW_VERSION_1_4) = !_glewInit_GL_VERSION_1_4(GLEW_CONTEXT_ARG_VAR_INIT);
  7504. #endif /* GL_VERSION_1_4 */
  7505. #ifdef GL_VERSION_1_5
  7506. if (glewExperimental || GLEW_VERSION_1_5) CONST_CAST(GLEW_VERSION_1_5) = !_glewInit_GL_VERSION_1_5(GLEW_CONTEXT_ARG_VAR_INIT);
  7507. #endif /* GL_VERSION_1_5 */
  7508. #ifdef GL_VERSION_2_0
  7509. if (glewExperimental || GLEW_VERSION_2_0) CONST_CAST(GLEW_VERSION_2_0) = !_glewInit_GL_VERSION_2_0(GLEW_CONTEXT_ARG_VAR_INIT);
  7510. #endif /* GL_VERSION_2_0 */
  7511. #ifdef GL_VERSION_2_1
  7512. if (glewExperimental || GLEW_VERSION_2_1) CONST_CAST(GLEW_VERSION_2_1) = !_glewInit_GL_VERSION_2_1(GLEW_CONTEXT_ARG_VAR_INIT);
  7513. #endif /* GL_VERSION_2_1 */
  7514. #ifdef GL_VERSION_3_0
  7515. if (glewExperimental || GLEW_VERSION_3_0) CONST_CAST(GLEW_VERSION_3_0) = !_glewInit_GL_VERSION_3_0(GLEW_CONTEXT_ARG_VAR_INIT);
  7516. #endif /* GL_VERSION_3_0 */
  7517. #ifdef GL_VERSION_3_1
  7518. if (glewExperimental || GLEW_VERSION_3_1) CONST_CAST(GLEW_VERSION_3_1) = !_glewInit_GL_VERSION_3_1(GLEW_CONTEXT_ARG_VAR_INIT);
  7519. #endif /* GL_VERSION_3_1 */
  7520. #ifdef GL_VERSION_3_2
  7521. if (glewExperimental || GLEW_VERSION_3_2) CONST_CAST(GLEW_VERSION_3_2) = !_glewInit_GL_VERSION_3_2(GLEW_CONTEXT_ARG_VAR_INIT);
  7522. #endif /* GL_VERSION_3_2 */
  7523. #ifdef GL_VERSION_3_3
  7524. if (glewExperimental || GLEW_VERSION_3_3) CONST_CAST(GLEW_VERSION_3_3) = !_glewInit_GL_VERSION_3_3(GLEW_CONTEXT_ARG_VAR_INIT);
  7525. #endif /* GL_VERSION_3_3 */
  7526. #ifdef GL_VERSION_4_0
  7527. if (glewExperimental || GLEW_VERSION_4_0) CONST_CAST(GLEW_VERSION_4_0) = !_glewInit_GL_VERSION_4_0(GLEW_CONTEXT_ARG_VAR_INIT);
  7528. #endif /* GL_VERSION_4_0 */
  7529. #ifdef GL_VERSION_4_1
  7530. #endif /* GL_VERSION_4_1 */
  7531. #ifdef GL_VERSION_4_2
  7532. #endif /* GL_VERSION_4_2 */
  7533. #ifdef GL_VERSION_4_3
  7534. #endif /* GL_VERSION_4_3 */
  7535. #ifdef GL_VERSION_4_4
  7536. #endif /* GL_VERSION_4_4 */
  7537. #ifdef GL_3DFX_multisample
  7538. CONST_CAST(GLEW_3DFX_multisample) = _glewSearchExtension("GL_3DFX_multisample", extStart, extEnd);
  7539. #endif /* GL_3DFX_multisample */
  7540. #ifdef GL_3DFX_tbuffer
  7541. CONST_CAST(GLEW_3DFX_tbuffer) = _glewSearchExtension("GL_3DFX_tbuffer", extStart, extEnd);
  7542. if (glewExperimental || GLEW_3DFX_tbuffer) CONST_CAST(GLEW_3DFX_tbuffer) = !_glewInit_GL_3DFX_tbuffer(GLEW_CONTEXT_ARG_VAR_INIT);
  7543. #endif /* GL_3DFX_tbuffer */
  7544. #ifdef GL_3DFX_texture_compression_FXT1
  7545. CONST_CAST(GLEW_3DFX_texture_compression_FXT1) = _glewSearchExtension("GL_3DFX_texture_compression_FXT1", extStart, extEnd);
  7546. #endif /* GL_3DFX_texture_compression_FXT1 */
  7547. #ifdef GL_AMD_blend_minmax_factor
  7548. CONST_CAST(GLEW_AMD_blend_minmax_factor) = _glewSearchExtension("GL_AMD_blend_minmax_factor", extStart, extEnd);
  7549. #endif /* GL_AMD_blend_minmax_factor */
  7550. #ifdef GL_AMD_conservative_depth
  7551. CONST_CAST(GLEW_AMD_conservative_depth) = _glewSearchExtension("GL_AMD_conservative_depth", extStart, extEnd);
  7552. #endif /* GL_AMD_conservative_depth */
  7553. #ifdef GL_AMD_debug_output
  7554. CONST_CAST(GLEW_AMD_debug_output) = _glewSearchExtension("GL_AMD_debug_output", extStart, extEnd);
  7555. if (glewExperimental || GLEW_AMD_debug_output) CONST_CAST(GLEW_AMD_debug_output) = !_glewInit_GL_AMD_debug_output(GLEW_CONTEXT_ARG_VAR_INIT);
  7556. #endif /* GL_AMD_debug_output */
  7557. #ifdef GL_AMD_depth_clamp_separate
  7558. CONST_CAST(GLEW_AMD_depth_clamp_separate) = _glewSearchExtension("GL_AMD_depth_clamp_separate", extStart, extEnd);
  7559. #endif /* GL_AMD_depth_clamp_separate */
  7560. #ifdef GL_AMD_draw_buffers_blend
  7561. CONST_CAST(GLEW_AMD_draw_buffers_blend) = _glewSearchExtension("GL_AMD_draw_buffers_blend", extStart, extEnd);
  7562. if (glewExperimental || GLEW_AMD_draw_buffers_blend) CONST_CAST(GLEW_AMD_draw_buffers_blend) = !_glewInit_GL_AMD_draw_buffers_blend(GLEW_CONTEXT_ARG_VAR_INIT);
  7563. #endif /* GL_AMD_draw_buffers_blend */
  7564. #ifdef GL_AMD_interleaved_elements
  7565. CONST_CAST(GLEW_AMD_interleaved_elements) = _glewSearchExtension("GL_AMD_interleaved_elements", extStart, extEnd);
  7566. if (glewExperimental || GLEW_AMD_interleaved_elements) CONST_CAST(GLEW_AMD_interleaved_elements) = !_glewInit_GL_AMD_interleaved_elements(GLEW_CONTEXT_ARG_VAR_INIT);
  7567. #endif /* GL_AMD_interleaved_elements */
  7568. #ifdef GL_AMD_multi_draw_indirect
  7569. CONST_CAST(GLEW_AMD_multi_draw_indirect) = _glewSearchExtension("GL_AMD_multi_draw_indirect", extStart, extEnd);
  7570. if (glewExperimental || GLEW_AMD_multi_draw_indirect) CONST_CAST(GLEW_AMD_multi_draw_indirect) = !_glewInit_GL_AMD_multi_draw_indirect(GLEW_CONTEXT_ARG_VAR_INIT);
  7571. #endif /* GL_AMD_multi_draw_indirect */
  7572. #ifdef GL_AMD_name_gen_delete
  7573. CONST_CAST(GLEW_AMD_name_gen_delete) = _glewSearchExtension("GL_AMD_name_gen_delete", extStart, extEnd);
  7574. if (glewExperimental || GLEW_AMD_name_gen_delete) CONST_CAST(GLEW_AMD_name_gen_delete) = !_glewInit_GL_AMD_name_gen_delete(GLEW_CONTEXT_ARG_VAR_INIT);
  7575. #endif /* GL_AMD_name_gen_delete */
  7576. #ifdef GL_AMD_performance_monitor
  7577. CONST_CAST(GLEW_AMD_performance_monitor) = _glewSearchExtension("GL_AMD_performance_monitor", extStart, extEnd);
  7578. if (glewExperimental || GLEW_AMD_performance_monitor) CONST_CAST(GLEW_AMD_performance_monitor) = !_glewInit_GL_AMD_performance_monitor(GLEW_CONTEXT_ARG_VAR_INIT);
  7579. #endif /* GL_AMD_performance_monitor */
  7580. #ifdef GL_AMD_pinned_memory
  7581. CONST_CAST(GLEW_AMD_pinned_memory) = _glewSearchExtension("GL_AMD_pinned_memory", extStart, extEnd);
  7582. #endif /* GL_AMD_pinned_memory */
  7583. #ifdef GL_AMD_query_buffer_object
  7584. CONST_CAST(GLEW_AMD_query_buffer_object) = _glewSearchExtension("GL_AMD_query_buffer_object", extStart, extEnd);
  7585. #endif /* GL_AMD_query_buffer_object */
  7586. #ifdef GL_AMD_sample_positions
  7587. CONST_CAST(GLEW_AMD_sample_positions) = _glewSearchExtension("GL_AMD_sample_positions", extStart, extEnd);
  7588. if (glewExperimental || GLEW_AMD_sample_positions) CONST_CAST(GLEW_AMD_sample_positions) = !_glewInit_GL_AMD_sample_positions(GLEW_CONTEXT_ARG_VAR_INIT);
  7589. #endif /* GL_AMD_sample_positions */
  7590. #ifdef GL_AMD_seamless_cubemap_per_texture
  7591. CONST_CAST(GLEW_AMD_seamless_cubemap_per_texture) = _glewSearchExtension("GL_AMD_seamless_cubemap_per_texture", extStart, extEnd);
  7592. #endif /* GL_AMD_seamless_cubemap_per_texture */
  7593. #ifdef GL_AMD_shader_stencil_export
  7594. CONST_CAST(GLEW_AMD_shader_stencil_export) = _glewSearchExtension("GL_AMD_shader_stencil_export", extStart, extEnd);
  7595. #endif /* GL_AMD_shader_stencil_export */
  7596. #ifdef GL_AMD_shader_trinary_minmax
  7597. CONST_CAST(GLEW_AMD_shader_trinary_minmax) = _glewSearchExtension("GL_AMD_shader_trinary_minmax", extStart, extEnd);
  7598. #endif /* GL_AMD_shader_trinary_minmax */
  7599. #ifdef GL_AMD_sparse_texture
  7600. CONST_CAST(GLEW_AMD_sparse_texture) = _glewSearchExtension("GL_AMD_sparse_texture", extStart, extEnd);
  7601. if (glewExperimental || GLEW_AMD_sparse_texture) CONST_CAST(GLEW_AMD_sparse_texture) = !_glewInit_GL_AMD_sparse_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  7602. #endif /* GL_AMD_sparse_texture */
  7603. #ifdef GL_AMD_stencil_operation_extended
  7604. CONST_CAST(GLEW_AMD_stencil_operation_extended) = _glewSearchExtension("GL_AMD_stencil_operation_extended", extStart, extEnd);
  7605. if (glewExperimental || GLEW_AMD_stencil_operation_extended) CONST_CAST(GLEW_AMD_stencil_operation_extended) = !_glewInit_GL_AMD_stencil_operation_extended(GLEW_CONTEXT_ARG_VAR_INIT);
  7606. #endif /* GL_AMD_stencil_operation_extended */
  7607. #ifdef GL_AMD_texture_texture4
  7608. CONST_CAST(GLEW_AMD_texture_texture4) = _glewSearchExtension("GL_AMD_texture_texture4", extStart, extEnd);
  7609. #endif /* GL_AMD_texture_texture4 */
  7610. #ifdef GL_AMD_transform_feedback3_lines_triangles
  7611. CONST_CAST(GLEW_AMD_transform_feedback3_lines_triangles) = _glewSearchExtension("GL_AMD_transform_feedback3_lines_triangles", extStart, extEnd);
  7612. #endif /* GL_AMD_transform_feedback3_lines_triangles */
  7613. #ifdef GL_AMD_vertex_shader_layer
  7614. CONST_CAST(GLEW_AMD_vertex_shader_layer) = _glewSearchExtension("GL_AMD_vertex_shader_layer", extStart, extEnd);
  7615. #endif /* GL_AMD_vertex_shader_layer */
  7616. #ifdef GL_AMD_vertex_shader_tessellator
  7617. CONST_CAST(GLEW_AMD_vertex_shader_tessellator) = _glewSearchExtension("GL_AMD_vertex_shader_tessellator", extStart, extEnd);
  7618. if (glewExperimental || GLEW_AMD_vertex_shader_tessellator) CONST_CAST(GLEW_AMD_vertex_shader_tessellator) = !_glewInit_GL_AMD_vertex_shader_tessellator(GLEW_CONTEXT_ARG_VAR_INIT);
  7619. #endif /* GL_AMD_vertex_shader_tessellator */
  7620. #ifdef GL_AMD_vertex_shader_viewport_index
  7621. CONST_CAST(GLEW_AMD_vertex_shader_viewport_index) = _glewSearchExtension("GL_AMD_vertex_shader_viewport_index", extStart, extEnd);
  7622. #endif /* GL_AMD_vertex_shader_viewport_index */
  7623. #ifdef GL_ANGLE_depth_texture
  7624. CONST_CAST(GLEW_ANGLE_depth_texture) = _glewSearchExtension("GL_ANGLE_depth_texture", extStart, extEnd);
  7625. #endif /* GL_ANGLE_depth_texture */
  7626. #ifdef GL_ANGLE_framebuffer_blit
  7627. CONST_CAST(GLEW_ANGLE_framebuffer_blit) = _glewSearchExtension("GL_ANGLE_framebuffer_blit", extStart, extEnd);
  7628. if (glewExperimental || GLEW_ANGLE_framebuffer_blit) CONST_CAST(GLEW_ANGLE_framebuffer_blit) = !_glewInit_GL_ANGLE_framebuffer_blit(GLEW_CONTEXT_ARG_VAR_INIT);
  7629. #endif /* GL_ANGLE_framebuffer_blit */
  7630. #ifdef GL_ANGLE_framebuffer_multisample
  7631. CONST_CAST(GLEW_ANGLE_framebuffer_multisample) = _glewSearchExtension("GL_ANGLE_framebuffer_multisample", extStart, extEnd);
  7632. if (glewExperimental || GLEW_ANGLE_framebuffer_multisample) CONST_CAST(GLEW_ANGLE_framebuffer_multisample) = !_glewInit_GL_ANGLE_framebuffer_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  7633. #endif /* GL_ANGLE_framebuffer_multisample */
  7634. #ifdef GL_ANGLE_instanced_arrays
  7635. CONST_CAST(GLEW_ANGLE_instanced_arrays) = _glewSearchExtension("GL_ANGLE_instanced_arrays", extStart, extEnd);
  7636. if (glewExperimental || GLEW_ANGLE_instanced_arrays) CONST_CAST(GLEW_ANGLE_instanced_arrays) = !_glewInit_GL_ANGLE_instanced_arrays(GLEW_CONTEXT_ARG_VAR_INIT);
  7637. #endif /* GL_ANGLE_instanced_arrays */
  7638. #ifdef GL_ANGLE_pack_reverse_row_order
  7639. CONST_CAST(GLEW_ANGLE_pack_reverse_row_order) = _glewSearchExtension("GL_ANGLE_pack_reverse_row_order", extStart, extEnd);
  7640. #endif /* GL_ANGLE_pack_reverse_row_order */
  7641. #ifdef GL_ANGLE_program_binary
  7642. CONST_CAST(GLEW_ANGLE_program_binary) = _glewSearchExtension("GL_ANGLE_program_binary", extStart, extEnd);
  7643. #endif /* GL_ANGLE_program_binary */
  7644. #ifdef GL_ANGLE_texture_compression_dxt1
  7645. CONST_CAST(GLEW_ANGLE_texture_compression_dxt1) = _glewSearchExtension("GL_ANGLE_texture_compression_dxt1", extStart, extEnd);
  7646. #endif /* GL_ANGLE_texture_compression_dxt1 */
  7647. #ifdef GL_ANGLE_texture_compression_dxt3
  7648. CONST_CAST(GLEW_ANGLE_texture_compression_dxt3) = _glewSearchExtension("GL_ANGLE_texture_compression_dxt3", extStart, extEnd);
  7649. #endif /* GL_ANGLE_texture_compression_dxt3 */
  7650. #ifdef GL_ANGLE_texture_compression_dxt5
  7651. CONST_CAST(GLEW_ANGLE_texture_compression_dxt5) = _glewSearchExtension("GL_ANGLE_texture_compression_dxt5", extStart, extEnd);
  7652. #endif /* GL_ANGLE_texture_compression_dxt5 */
  7653. #ifdef GL_ANGLE_texture_usage
  7654. CONST_CAST(GLEW_ANGLE_texture_usage) = _glewSearchExtension("GL_ANGLE_texture_usage", extStart, extEnd);
  7655. #endif /* GL_ANGLE_texture_usage */
  7656. #ifdef GL_ANGLE_timer_query
  7657. CONST_CAST(GLEW_ANGLE_timer_query) = _glewSearchExtension("GL_ANGLE_timer_query", extStart, extEnd);
  7658. if (glewExperimental || GLEW_ANGLE_timer_query) CONST_CAST(GLEW_ANGLE_timer_query) = !_glewInit_GL_ANGLE_timer_query(GLEW_CONTEXT_ARG_VAR_INIT);
  7659. #endif /* GL_ANGLE_timer_query */
  7660. #ifdef GL_ANGLE_translated_shader_source
  7661. CONST_CAST(GLEW_ANGLE_translated_shader_source) = _glewSearchExtension("GL_ANGLE_translated_shader_source", extStart, extEnd);
  7662. if (glewExperimental || GLEW_ANGLE_translated_shader_source) CONST_CAST(GLEW_ANGLE_translated_shader_source) = !_glewInit_GL_ANGLE_translated_shader_source(GLEW_CONTEXT_ARG_VAR_INIT);
  7663. #endif /* GL_ANGLE_translated_shader_source */
  7664. #ifdef GL_APPLE_aux_depth_stencil
  7665. CONST_CAST(GLEW_APPLE_aux_depth_stencil) = _glewSearchExtension("GL_APPLE_aux_depth_stencil", extStart, extEnd);
  7666. #endif /* GL_APPLE_aux_depth_stencil */
  7667. #ifdef GL_APPLE_client_storage
  7668. CONST_CAST(GLEW_APPLE_client_storage) = _glewSearchExtension("GL_APPLE_client_storage", extStart, extEnd);
  7669. #endif /* GL_APPLE_client_storage */
  7670. #ifdef GL_APPLE_element_array
  7671. CONST_CAST(GLEW_APPLE_element_array) = _glewSearchExtension("GL_APPLE_element_array", extStart, extEnd);
  7672. if (glewExperimental || GLEW_APPLE_element_array) CONST_CAST(GLEW_APPLE_element_array) = !_glewInit_GL_APPLE_element_array(GLEW_CONTEXT_ARG_VAR_INIT);
  7673. #endif /* GL_APPLE_element_array */
  7674. #ifdef GL_APPLE_fence
  7675. CONST_CAST(GLEW_APPLE_fence) = _glewSearchExtension("GL_APPLE_fence", extStart, extEnd);
  7676. if (glewExperimental || GLEW_APPLE_fence) CONST_CAST(GLEW_APPLE_fence) = !_glewInit_GL_APPLE_fence(GLEW_CONTEXT_ARG_VAR_INIT);
  7677. #endif /* GL_APPLE_fence */
  7678. #ifdef GL_APPLE_float_pixels
  7679. CONST_CAST(GLEW_APPLE_float_pixels) = _glewSearchExtension("GL_APPLE_float_pixels", extStart, extEnd);
  7680. #endif /* GL_APPLE_float_pixels */
  7681. #ifdef GL_APPLE_flush_buffer_range
  7682. CONST_CAST(GLEW_APPLE_flush_buffer_range) = _glewSearchExtension("GL_APPLE_flush_buffer_range", extStart, extEnd);
  7683. if (glewExperimental || GLEW_APPLE_flush_buffer_range) CONST_CAST(GLEW_APPLE_flush_buffer_range) = !_glewInit_GL_APPLE_flush_buffer_range(GLEW_CONTEXT_ARG_VAR_INIT);
  7684. #endif /* GL_APPLE_flush_buffer_range */
  7685. #ifdef GL_APPLE_object_purgeable
  7686. CONST_CAST(GLEW_APPLE_object_purgeable) = _glewSearchExtension("GL_APPLE_object_purgeable", extStart, extEnd);
  7687. if (glewExperimental || GLEW_APPLE_object_purgeable) CONST_CAST(GLEW_APPLE_object_purgeable) = !_glewInit_GL_APPLE_object_purgeable(GLEW_CONTEXT_ARG_VAR_INIT);
  7688. #endif /* GL_APPLE_object_purgeable */
  7689. #ifdef GL_APPLE_pixel_buffer
  7690. CONST_CAST(GLEW_APPLE_pixel_buffer) = _glewSearchExtension("GL_APPLE_pixel_buffer", extStart, extEnd);
  7691. #endif /* GL_APPLE_pixel_buffer */
  7692. #ifdef GL_APPLE_rgb_422
  7693. CONST_CAST(GLEW_APPLE_rgb_422) = _glewSearchExtension("GL_APPLE_rgb_422", extStart, extEnd);
  7694. #endif /* GL_APPLE_rgb_422 */
  7695. #ifdef GL_APPLE_row_bytes
  7696. CONST_CAST(GLEW_APPLE_row_bytes) = _glewSearchExtension("GL_APPLE_row_bytes", extStart, extEnd);
  7697. #endif /* GL_APPLE_row_bytes */
  7698. #ifdef GL_APPLE_specular_vector
  7699. CONST_CAST(GLEW_APPLE_specular_vector) = _glewSearchExtension("GL_APPLE_specular_vector", extStart, extEnd);
  7700. #endif /* GL_APPLE_specular_vector */
  7701. #ifdef GL_APPLE_texture_range
  7702. CONST_CAST(GLEW_APPLE_texture_range) = _glewSearchExtension("GL_APPLE_texture_range", extStart, extEnd);
  7703. if (glewExperimental || GLEW_APPLE_texture_range) CONST_CAST(GLEW_APPLE_texture_range) = !_glewInit_GL_APPLE_texture_range(GLEW_CONTEXT_ARG_VAR_INIT);
  7704. #endif /* GL_APPLE_texture_range */
  7705. #ifdef GL_APPLE_transform_hint
  7706. CONST_CAST(GLEW_APPLE_transform_hint) = _glewSearchExtension("GL_APPLE_transform_hint", extStart, extEnd);
  7707. #endif /* GL_APPLE_transform_hint */
  7708. #ifdef GL_APPLE_vertex_array_object
  7709. CONST_CAST(GLEW_APPLE_vertex_array_object) = _glewSearchExtension("GL_APPLE_vertex_array_object", extStart, extEnd);
  7710. if (glewExperimental || GLEW_APPLE_vertex_array_object) CONST_CAST(GLEW_APPLE_vertex_array_object) = !_glewInit_GL_APPLE_vertex_array_object(GLEW_CONTEXT_ARG_VAR_INIT);
  7711. #endif /* GL_APPLE_vertex_array_object */
  7712. #ifdef GL_APPLE_vertex_array_range
  7713. CONST_CAST(GLEW_APPLE_vertex_array_range) = _glewSearchExtension("GL_APPLE_vertex_array_range", extStart, extEnd);
  7714. if (glewExperimental || GLEW_APPLE_vertex_array_range) CONST_CAST(GLEW_APPLE_vertex_array_range) = !_glewInit_GL_APPLE_vertex_array_range(GLEW_CONTEXT_ARG_VAR_INIT);
  7715. #endif /* GL_APPLE_vertex_array_range */
  7716. #ifdef GL_APPLE_vertex_program_evaluators
  7717. CONST_CAST(GLEW_APPLE_vertex_program_evaluators) = _glewSearchExtension("GL_APPLE_vertex_program_evaluators", extStart, extEnd);
  7718. if (glewExperimental || GLEW_APPLE_vertex_program_evaluators) CONST_CAST(GLEW_APPLE_vertex_program_evaluators) = !_glewInit_GL_APPLE_vertex_program_evaluators(GLEW_CONTEXT_ARG_VAR_INIT);
  7719. #endif /* GL_APPLE_vertex_program_evaluators */
  7720. #ifdef GL_APPLE_ycbcr_422
  7721. CONST_CAST(GLEW_APPLE_ycbcr_422) = _glewSearchExtension("GL_APPLE_ycbcr_422", extStart, extEnd);
  7722. #endif /* GL_APPLE_ycbcr_422 */
  7723. #ifdef GL_ARB_ES2_compatibility
  7724. CONST_CAST(GLEW_ARB_ES2_compatibility) = _glewSearchExtension("GL_ARB_ES2_compatibility", extStart, extEnd);
  7725. if (glewExperimental || GLEW_ARB_ES2_compatibility) CONST_CAST(GLEW_ARB_ES2_compatibility) = !_glewInit_GL_ARB_ES2_compatibility(GLEW_CONTEXT_ARG_VAR_INIT);
  7726. #endif /* GL_ARB_ES2_compatibility */
  7727. #ifdef GL_ARB_ES3_compatibility
  7728. CONST_CAST(GLEW_ARB_ES3_compatibility) = _glewSearchExtension("GL_ARB_ES3_compatibility", extStart, extEnd);
  7729. #endif /* GL_ARB_ES3_compatibility */
  7730. #ifdef GL_ARB_arrays_of_arrays
  7731. CONST_CAST(GLEW_ARB_arrays_of_arrays) = _glewSearchExtension("GL_ARB_arrays_of_arrays", extStart, extEnd);
  7732. #endif /* GL_ARB_arrays_of_arrays */
  7733. #ifdef GL_ARB_base_instance
  7734. CONST_CAST(GLEW_ARB_base_instance) = _glewSearchExtension("GL_ARB_base_instance", extStart, extEnd);
  7735. if (glewExperimental || GLEW_ARB_base_instance) CONST_CAST(GLEW_ARB_base_instance) = !_glewInit_GL_ARB_base_instance(GLEW_CONTEXT_ARG_VAR_INIT);
  7736. #endif /* GL_ARB_base_instance */
  7737. #ifdef GL_ARB_bindless_texture
  7738. CONST_CAST(GLEW_ARB_bindless_texture) = _glewSearchExtension("GL_ARB_bindless_texture", extStart, extEnd);
  7739. if (glewExperimental || GLEW_ARB_bindless_texture) CONST_CAST(GLEW_ARB_bindless_texture) = !_glewInit_GL_ARB_bindless_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  7740. #endif /* GL_ARB_bindless_texture */
  7741. #ifdef GL_ARB_blend_func_extended
  7742. CONST_CAST(GLEW_ARB_blend_func_extended) = _glewSearchExtension("GL_ARB_blend_func_extended", extStart, extEnd);
  7743. if (glewExperimental || GLEW_ARB_blend_func_extended) CONST_CAST(GLEW_ARB_blend_func_extended) = !_glewInit_GL_ARB_blend_func_extended(GLEW_CONTEXT_ARG_VAR_INIT);
  7744. #endif /* GL_ARB_blend_func_extended */
  7745. #ifdef GL_ARB_buffer_storage
  7746. CONST_CAST(GLEW_ARB_buffer_storage) = _glewSearchExtension("GL_ARB_buffer_storage", extStart, extEnd);
  7747. if (glewExperimental || GLEW_ARB_buffer_storage) CONST_CAST(GLEW_ARB_buffer_storage) = !_glewInit_GL_ARB_buffer_storage(GLEW_CONTEXT_ARG_VAR_INIT);
  7748. #endif /* GL_ARB_buffer_storage */
  7749. #ifdef GL_ARB_cl_event
  7750. CONST_CAST(GLEW_ARB_cl_event) = _glewSearchExtension("GL_ARB_cl_event", extStart, extEnd);
  7751. if (glewExperimental || GLEW_ARB_cl_event) CONST_CAST(GLEW_ARB_cl_event) = !_glewInit_GL_ARB_cl_event(GLEW_CONTEXT_ARG_VAR_INIT);
  7752. #endif /* GL_ARB_cl_event */
  7753. #ifdef GL_ARB_clear_buffer_object
  7754. CONST_CAST(GLEW_ARB_clear_buffer_object) = _glewSearchExtension("GL_ARB_clear_buffer_object", extStart, extEnd);
  7755. if (glewExperimental || GLEW_ARB_clear_buffer_object) CONST_CAST(GLEW_ARB_clear_buffer_object) = !_glewInit_GL_ARB_clear_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  7756. #endif /* GL_ARB_clear_buffer_object */
  7757. #ifdef GL_ARB_clear_texture
  7758. CONST_CAST(GLEW_ARB_clear_texture) = _glewSearchExtension("GL_ARB_clear_texture", extStart, extEnd);
  7759. if (glewExperimental || GLEW_ARB_clear_texture) CONST_CAST(GLEW_ARB_clear_texture) = !_glewInit_GL_ARB_clear_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  7760. #endif /* GL_ARB_clear_texture */
  7761. #ifdef GL_ARB_color_buffer_float
  7762. CONST_CAST(GLEW_ARB_color_buffer_float) = _glewSearchExtension("GL_ARB_color_buffer_float", extStart, extEnd);
  7763. if (glewExperimental || GLEW_ARB_color_buffer_float) CONST_CAST(GLEW_ARB_color_buffer_float) = !_glewInit_GL_ARB_color_buffer_float(GLEW_CONTEXT_ARG_VAR_INIT);
  7764. #endif /* GL_ARB_color_buffer_float */
  7765. #ifdef GL_ARB_compatibility
  7766. CONST_CAST(GLEW_ARB_compatibility) = _glewSearchExtension("GL_ARB_compatibility", extStart, extEnd);
  7767. #endif /* GL_ARB_compatibility */
  7768. #ifdef GL_ARB_compressed_texture_pixel_storage
  7769. CONST_CAST(GLEW_ARB_compressed_texture_pixel_storage) = _glewSearchExtension("GL_ARB_compressed_texture_pixel_storage", extStart, extEnd);
  7770. #endif /* GL_ARB_compressed_texture_pixel_storage */
  7771. #ifdef GL_ARB_compute_shader
  7772. CONST_CAST(GLEW_ARB_compute_shader) = _glewSearchExtension("GL_ARB_compute_shader", extStart, extEnd);
  7773. if (glewExperimental || GLEW_ARB_compute_shader) CONST_CAST(GLEW_ARB_compute_shader) = !_glewInit_GL_ARB_compute_shader(GLEW_CONTEXT_ARG_VAR_INIT);
  7774. #endif /* GL_ARB_compute_shader */
  7775. #ifdef GL_ARB_compute_variable_group_size
  7776. CONST_CAST(GLEW_ARB_compute_variable_group_size) = _glewSearchExtension("GL_ARB_compute_variable_group_size", extStart, extEnd);
  7777. if (glewExperimental || GLEW_ARB_compute_variable_group_size) CONST_CAST(GLEW_ARB_compute_variable_group_size) = !_glewInit_GL_ARB_compute_variable_group_size(GLEW_CONTEXT_ARG_VAR_INIT);
  7778. #endif /* GL_ARB_compute_variable_group_size */
  7779. #ifdef GL_ARB_conservative_depth
  7780. CONST_CAST(GLEW_ARB_conservative_depth) = _glewSearchExtension("GL_ARB_conservative_depth", extStart, extEnd);
  7781. #endif /* GL_ARB_conservative_depth */
  7782. #ifdef GL_ARB_copy_buffer
  7783. CONST_CAST(GLEW_ARB_copy_buffer) = _glewSearchExtension("GL_ARB_copy_buffer", extStart, extEnd);
  7784. if (glewExperimental || GLEW_ARB_copy_buffer) CONST_CAST(GLEW_ARB_copy_buffer) = !_glewInit_GL_ARB_copy_buffer(GLEW_CONTEXT_ARG_VAR_INIT);
  7785. #endif /* GL_ARB_copy_buffer */
  7786. #ifdef GL_ARB_copy_image
  7787. CONST_CAST(GLEW_ARB_copy_image) = _glewSearchExtension("GL_ARB_copy_image", extStart, extEnd);
  7788. if (glewExperimental || GLEW_ARB_copy_image) CONST_CAST(GLEW_ARB_copy_image) = !_glewInit_GL_ARB_copy_image(GLEW_CONTEXT_ARG_VAR_INIT);
  7789. #endif /* GL_ARB_copy_image */
  7790. #ifdef GL_ARB_debug_output
  7791. CONST_CAST(GLEW_ARB_debug_output) = _glewSearchExtension("GL_ARB_debug_output", extStart, extEnd);
  7792. if (glewExperimental || GLEW_ARB_debug_output) CONST_CAST(GLEW_ARB_debug_output) = !_glewInit_GL_ARB_debug_output(GLEW_CONTEXT_ARG_VAR_INIT);
  7793. #endif /* GL_ARB_debug_output */
  7794. #ifdef GL_ARB_depth_buffer_float
  7795. CONST_CAST(GLEW_ARB_depth_buffer_float) = _glewSearchExtension("GL_ARB_depth_buffer_float", extStart, extEnd);
  7796. #endif /* GL_ARB_depth_buffer_float */
  7797. #ifdef GL_ARB_depth_clamp
  7798. CONST_CAST(GLEW_ARB_depth_clamp) = _glewSearchExtension("GL_ARB_depth_clamp", extStart, extEnd);
  7799. #endif /* GL_ARB_depth_clamp */
  7800. #ifdef GL_ARB_depth_texture
  7801. CONST_CAST(GLEW_ARB_depth_texture) = _glewSearchExtension("GL_ARB_depth_texture", extStart, extEnd);
  7802. #endif /* GL_ARB_depth_texture */
  7803. #ifdef GL_ARB_draw_buffers
  7804. CONST_CAST(GLEW_ARB_draw_buffers) = _glewSearchExtension("GL_ARB_draw_buffers", extStart, extEnd);
  7805. if (glewExperimental || GLEW_ARB_draw_buffers) CONST_CAST(GLEW_ARB_draw_buffers) = !_glewInit_GL_ARB_draw_buffers(GLEW_CONTEXT_ARG_VAR_INIT);
  7806. #endif /* GL_ARB_draw_buffers */
  7807. #ifdef GL_ARB_draw_buffers_blend
  7808. CONST_CAST(GLEW_ARB_draw_buffers_blend) = _glewSearchExtension("GL_ARB_draw_buffers_blend", extStart, extEnd);
  7809. if (glewExperimental || GLEW_ARB_draw_buffers_blend) CONST_CAST(GLEW_ARB_draw_buffers_blend) = !_glewInit_GL_ARB_draw_buffers_blend(GLEW_CONTEXT_ARG_VAR_INIT);
  7810. #endif /* GL_ARB_draw_buffers_blend */
  7811. #ifdef GL_ARB_draw_elements_base_vertex
  7812. CONST_CAST(GLEW_ARB_draw_elements_base_vertex) = _glewSearchExtension("GL_ARB_draw_elements_base_vertex", extStart, extEnd);
  7813. if (glewExperimental || GLEW_ARB_draw_elements_base_vertex) CONST_CAST(GLEW_ARB_draw_elements_base_vertex) = !_glewInit_GL_ARB_draw_elements_base_vertex(GLEW_CONTEXT_ARG_VAR_INIT);
  7814. #endif /* GL_ARB_draw_elements_base_vertex */
  7815. #ifdef GL_ARB_draw_indirect
  7816. CONST_CAST(GLEW_ARB_draw_indirect) = _glewSearchExtension("GL_ARB_draw_indirect", extStart, extEnd);
  7817. if (glewExperimental || GLEW_ARB_draw_indirect) CONST_CAST(GLEW_ARB_draw_indirect) = !_glewInit_GL_ARB_draw_indirect(GLEW_CONTEXT_ARG_VAR_INIT);
  7818. #endif /* GL_ARB_draw_indirect */
  7819. #ifdef GL_ARB_draw_instanced
  7820. CONST_CAST(GLEW_ARB_draw_instanced) = _glewSearchExtension("GL_ARB_draw_instanced", extStart, extEnd);
  7821. #endif /* GL_ARB_draw_instanced */
  7822. #ifdef GL_ARB_enhanced_layouts
  7823. CONST_CAST(GLEW_ARB_enhanced_layouts) = _glewSearchExtension("GL_ARB_enhanced_layouts", extStart, extEnd);
  7824. #endif /* GL_ARB_enhanced_layouts */
  7825. #ifdef GL_ARB_explicit_attrib_location
  7826. CONST_CAST(GLEW_ARB_explicit_attrib_location) = _glewSearchExtension("GL_ARB_explicit_attrib_location", extStart, extEnd);
  7827. #endif /* GL_ARB_explicit_attrib_location */
  7828. #ifdef GL_ARB_explicit_uniform_location
  7829. CONST_CAST(GLEW_ARB_explicit_uniform_location) = _glewSearchExtension("GL_ARB_explicit_uniform_location", extStart, extEnd);
  7830. #endif /* GL_ARB_explicit_uniform_location */
  7831. #ifdef GL_ARB_fragment_coord_conventions
  7832. CONST_CAST(GLEW_ARB_fragment_coord_conventions) = _glewSearchExtension("GL_ARB_fragment_coord_conventions", extStart, extEnd);
  7833. #endif /* GL_ARB_fragment_coord_conventions */
  7834. #ifdef GL_ARB_fragment_layer_viewport
  7835. CONST_CAST(GLEW_ARB_fragment_layer_viewport) = _glewSearchExtension("GL_ARB_fragment_layer_viewport", extStart, extEnd);
  7836. #endif /* GL_ARB_fragment_layer_viewport */
  7837. #ifdef GL_ARB_fragment_program
  7838. CONST_CAST(GLEW_ARB_fragment_program) = _glewSearchExtension("GL_ARB_fragment_program", extStart, extEnd);
  7839. #endif /* GL_ARB_fragment_program */
  7840. #ifdef GL_ARB_fragment_program_shadow
  7841. CONST_CAST(GLEW_ARB_fragment_program_shadow) = _glewSearchExtension("GL_ARB_fragment_program_shadow", extStart, extEnd);
  7842. #endif /* GL_ARB_fragment_program_shadow */
  7843. #ifdef GL_ARB_fragment_shader
  7844. CONST_CAST(GLEW_ARB_fragment_shader) = _glewSearchExtension("GL_ARB_fragment_shader", extStart, extEnd);
  7845. #endif /* GL_ARB_fragment_shader */
  7846. #ifdef GL_ARB_framebuffer_no_attachments
  7847. CONST_CAST(GLEW_ARB_framebuffer_no_attachments) = _glewSearchExtension("GL_ARB_framebuffer_no_attachments", extStart, extEnd);
  7848. if (glewExperimental || GLEW_ARB_framebuffer_no_attachments) CONST_CAST(GLEW_ARB_framebuffer_no_attachments) = !_glewInit_GL_ARB_framebuffer_no_attachments(GLEW_CONTEXT_ARG_VAR_INIT);
  7849. #endif /* GL_ARB_framebuffer_no_attachments */
  7850. #ifdef GL_ARB_framebuffer_object
  7851. CONST_CAST(GLEW_ARB_framebuffer_object) = _glewSearchExtension("GL_ARB_framebuffer_object", extStart, extEnd);
  7852. if (glewExperimental || GLEW_ARB_framebuffer_object) CONST_CAST(GLEW_ARB_framebuffer_object) = !_glewInit_GL_ARB_framebuffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  7853. #endif /* GL_ARB_framebuffer_object */
  7854. #ifdef GL_ARB_framebuffer_sRGB
  7855. CONST_CAST(GLEW_ARB_framebuffer_sRGB) = _glewSearchExtension("GL_ARB_framebuffer_sRGB", extStart, extEnd);
  7856. #endif /* GL_ARB_framebuffer_sRGB */
  7857. #ifdef GL_ARB_geometry_shader4
  7858. CONST_CAST(GLEW_ARB_geometry_shader4) = _glewSearchExtension("GL_ARB_geometry_shader4", extStart, extEnd);
  7859. if (glewExperimental || GLEW_ARB_geometry_shader4) CONST_CAST(GLEW_ARB_geometry_shader4) = !_glewInit_GL_ARB_geometry_shader4(GLEW_CONTEXT_ARG_VAR_INIT);
  7860. #endif /* GL_ARB_geometry_shader4 */
  7861. #ifdef GL_ARB_get_program_binary
  7862. CONST_CAST(GLEW_ARB_get_program_binary) = _glewSearchExtension("GL_ARB_get_program_binary", extStart, extEnd);
  7863. if (glewExperimental || GLEW_ARB_get_program_binary) CONST_CAST(GLEW_ARB_get_program_binary) = !_glewInit_GL_ARB_get_program_binary(GLEW_CONTEXT_ARG_VAR_INIT);
  7864. #endif /* GL_ARB_get_program_binary */
  7865. #ifdef GL_ARB_gpu_shader5
  7866. CONST_CAST(GLEW_ARB_gpu_shader5) = _glewSearchExtension("GL_ARB_gpu_shader5", extStart, extEnd);
  7867. #endif /* GL_ARB_gpu_shader5 */
  7868. #ifdef GL_ARB_gpu_shader_fp64
  7869. CONST_CAST(GLEW_ARB_gpu_shader_fp64) = _glewSearchExtension("GL_ARB_gpu_shader_fp64", extStart, extEnd);
  7870. if (glewExperimental || GLEW_ARB_gpu_shader_fp64) CONST_CAST(GLEW_ARB_gpu_shader_fp64) = !_glewInit_GL_ARB_gpu_shader_fp64(GLEW_CONTEXT_ARG_VAR_INIT);
  7871. #endif /* GL_ARB_gpu_shader_fp64 */
  7872. #ifdef GL_ARB_half_float_pixel
  7873. CONST_CAST(GLEW_ARB_half_float_pixel) = _glewSearchExtension("GL_ARB_half_float_pixel", extStart, extEnd);
  7874. #endif /* GL_ARB_half_float_pixel */
  7875. #ifdef GL_ARB_half_float_vertex
  7876. CONST_CAST(GLEW_ARB_half_float_vertex) = _glewSearchExtension("GL_ARB_half_float_vertex", extStart, extEnd);
  7877. #endif /* GL_ARB_half_float_vertex */
  7878. #ifdef GL_ARB_imaging
  7879. CONST_CAST(GLEW_ARB_imaging) = _glewSearchExtension("GL_ARB_imaging", extStart, extEnd);
  7880. if (glewExperimental || GLEW_ARB_imaging) CONST_CAST(GLEW_ARB_imaging) = !_glewInit_GL_ARB_imaging(GLEW_CONTEXT_ARG_VAR_INIT);
  7881. #endif /* GL_ARB_imaging */
  7882. #ifdef GL_ARB_indirect_parameters
  7883. CONST_CAST(GLEW_ARB_indirect_parameters) = _glewSearchExtension("GL_ARB_indirect_parameters", extStart, extEnd);
  7884. if (glewExperimental || GLEW_ARB_indirect_parameters) CONST_CAST(GLEW_ARB_indirect_parameters) = !_glewInit_GL_ARB_indirect_parameters(GLEW_CONTEXT_ARG_VAR_INIT);
  7885. #endif /* GL_ARB_indirect_parameters */
  7886. #ifdef GL_ARB_instanced_arrays
  7887. CONST_CAST(GLEW_ARB_instanced_arrays) = _glewSearchExtension("GL_ARB_instanced_arrays", extStart, extEnd);
  7888. if (glewExperimental || GLEW_ARB_instanced_arrays) CONST_CAST(GLEW_ARB_instanced_arrays) = !_glewInit_GL_ARB_instanced_arrays(GLEW_CONTEXT_ARG_VAR_INIT);
  7889. #endif /* GL_ARB_instanced_arrays */
  7890. #ifdef GL_ARB_internalformat_query
  7891. CONST_CAST(GLEW_ARB_internalformat_query) = _glewSearchExtension("GL_ARB_internalformat_query", extStart, extEnd);
  7892. if (glewExperimental || GLEW_ARB_internalformat_query) CONST_CAST(GLEW_ARB_internalformat_query) = !_glewInit_GL_ARB_internalformat_query(GLEW_CONTEXT_ARG_VAR_INIT);
  7893. #endif /* GL_ARB_internalformat_query */
  7894. #ifdef GL_ARB_internalformat_query2
  7895. CONST_CAST(GLEW_ARB_internalformat_query2) = _glewSearchExtension("GL_ARB_internalformat_query2", extStart, extEnd);
  7896. if (glewExperimental || GLEW_ARB_internalformat_query2) CONST_CAST(GLEW_ARB_internalformat_query2) = !_glewInit_GL_ARB_internalformat_query2(GLEW_CONTEXT_ARG_VAR_INIT);
  7897. #endif /* GL_ARB_internalformat_query2 */
  7898. #ifdef GL_ARB_invalidate_subdata
  7899. CONST_CAST(GLEW_ARB_invalidate_subdata) = _glewSearchExtension("GL_ARB_invalidate_subdata", extStart, extEnd);
  7900. if (glewExperimental || GLEW_ARB_invalidate_subdata) CONST_CAST(GLEW_ARB_invalidate_subdata) = !_glewInit_GL_ARB_invalidate_subdata(GLEW_CONTEXT_ARG_VAR_INIT);
  7901. #endif /* GL_ARB_invalidate_subdata */
  7902. #ifdef GL_ARB_map_buffer_alignment
  7903. CONST_CAST(GLEW_ARB_map_buffer_alignment) = _glewSearchExtension("GL_ARB_map_buffer_alignment", extStart, extEnd);
  7904. #endif /* GL_ARB_map_buffer_alignment */
  7905. #ifdef GL_ARB_map_buffer_range
  7906. CONST_CAST(GLEW_ARB_map_buffer_range) = _glewSearchExtension("GL_ARB_map_buffer_range", extStart, extEnd);
  7907. if (glewExperimental || GLEW_ARB_map_buffer_range) CONST_CAST(GLEW_ARB_map_buffer_range) = !_glewInit_GL_ARB_map_buffer_range(GLEW_CONTEXT_ARG_VAR_INIT);
  7908. #endif /* GL_ARB_map_buffer_range */
  7909. #ifdef GL_ARB_matrix_palette
  7910. CONST_CAST(GLEW_ARB_matrix_palette) = _glewSearchExtension("GL_ARB_matrix_palette", extStart, extEnd);
  7911. if (glewExperimental || GLEW_ARB_matrix_palette) CONST_CAST(GLEW_ARB_matrix_palette) = !_glewInit_GL_ARB_matrix_palette(GLEW_CONTEXT_ARG_VAR_INIT);
  7912. #endif /* GL_ARB_matrix_palette */
  7913. #ifdef GL_ARB_multi_bind
  7914. CONST_CAST(GLEW_ARB_multi_bind) = _glewSearchExtension("GL_ARB_multi_bind", extStart, extEnd);
  7915. if (glewExperimental || GLEW_ARB_multi_bind) CONST_CAST(GLEW_ARB_multi_bind) = !_glewInit_GL_ARB_multi_bind(GLEW_CONTEXT_ARG_VAR_INIT);
  7916. #endif /* GL_ARB_multi_bind */
  7917. #ifdef GL_ARB_multi_draw_indirect
  7918. CONST_CAST(GLEW_ARB_multi_draw_indirect) = _glewSearchExtension("GL_ARB_multi_draw_indirect", extStart, extEnd);
  7919. if (glewExperimental || GLEW_ARB_multi_draw_indirect) CONST_CAST(GLEW_ARB_multi_draw_indirect) = !_glewInit_GL_ARB_multi_draw_indirect(GLEW_CONTEXT_ARG_VAR_INIT);
  7920. #endif /* GL_ARB_multi_draw_indirect */
  7921. #ifdef GL_ARB_multisample
  7922. CONST_CAST(GLEW_ARB_multisample) = _glewSearchExtension("GL_ARB_multisample", extStart, extEnd);
  7923. if (glewExperimental || GLEW_ARB_multisample) CONST_CAST(GLEW_ARB_multisample) = !_glewInit_GL_ARB_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  7924. #endif /* GL_ARB_multisample */
  7925. #ifdef GL_ARB_multitexture
  7926. CONST_CAST(GLEW_ARB_multitexture) = _glewSearchExtension("GL_ARB_multitexture", extStart, extEnd);
  7927. if (glewExperimental || GLEW_ARB_multitexture) CONST_CAST(GLEW_ARB_multitexture) = !_glewInit_GL_ARB_multitexture(GLEW_CONTEXT_ARG_VAR_INIT);
  7928. #endif /* GL_ARB_multitexture */
  7929. #ifdef GL_ARB_occlusion_query
  7930. CONST_CAST(GLEW_ARB_occlusion_query) = _glewSearchExtension("GL_ARB_occlusion_query", extStart, extEnd);
  7931. if (glewExperimental || GLEW_ARB_occlusion_query) CONST_CAST(GLEW_ARB_occlusion_query) = !_glewInit_GL_ARB_occlusion_query(GLEW_CONTEXT_ARG_VAR_INIT);
  7932. #endif /* GL_ARB_occlusion_query */
  7933. #ifdef GL_ARB_occlusion_query2
  7934. CONST_CAST(GLEW_ARB_occlusion_query2) = _glewSearchExtension("GL_ARB_occlusion_query2", extStart, extEnd);
  7935. #endif /* GL_ARB_occlusion_query2 */
  7936. #ifdef GL_ARB_pixel_buffer_object
  7937. CONST_CAST(GLEW_ARB_pixel_buffer_object) = _glewSearchExtension("GL_ARB_pixel_buffer_object", extStart, extEnd);
  7938. #endif /* GL_ARB_pixel_buffer_object */
  7939. #ifdef GL_ARB_point_parameters
  7940. CONST_CAST(GLEW_ARB_point_parameters) = _glewSearchExtension("GL_ARB_point_parameters", extStart, extEnd);
  7941. if (glewExperimental || GLEW_ARB_point_parameters) CONST_CAST(GLEW_ARB_point_parameters) = !_glewInit_GL_ARB_point_parameters(GLEW_CONTEXT_ARG_VAR_INIT);
  7942. #endif /* GL_ARB_point_parameters */
  7943. #ifdef GL_ARB_point_sprite
  7944. CONST_CAST(GLEW_ARB_point_sprite) = _glewSearchExtension("GL_ARB_point_sprite", extStart, extEnd);
  7945. #endif /* GL_ARB_point_sprite */
  7946. #ifdef GL_ARB_program_interface_query
  7947. CONST_CAST(GLEW_ARB_program_interface_query) = _glewSearchExtension("GL_ARB_program_interface_query", extStart, extEnd);
  7948. if (glewExperimental || GLEW_ARB_program_interface_query) CONST_CAST(GLEW_ARB_program_interface_query) = !_glewInit_GL_ARB_program_interface_query(GLEW_CONTEXT_ARG_VAR_INIT);
  7949. #endif /* GL_ARB_program_interface_query */
  7950. #ifdef GL_ARB_provoking_vertex
  7951. CONST_CAST(GLEW_ARB_provoking_vertex) = _glewSearchExtension("GL_ARB_provoking_vertex", extStart, extEnd);
  7952. if (glewExperimental || GLEW_ARB_provoking_vertex) CONST_CAST(GLEW_ARB_provoking_vertex) = !_glewInit_GL_ARB_provoking_vertex(GLEW_CONTEXT_ARG_VAR_INIT);
  7953. #endif /* GL_ARB_provoking_vertex */
  7954. #ifdef GL_ARB_query_buffer_object
  7955. CONST_CAST(GLEW_ARB_query_buffer_object) = _glewSearchExtension("GL_ARB_query_buffer_object", extStart, extEnd);
  7956. #endif /* GL_ARB_query_buffer_object */
  7957. #ifdef GL_ARB_robust_buffer_access_behavior
  7958. CONST_CAST(GLEW_ARB_robust_buffer_access_behavior) = _glewSearchExtension("GL_ARB_robust_buffer_access_behavior", extStart, extEnd);
  7959. #endif /* GL_ARB_robust_buffer_access_behavior */
  7960. #ifdef GL_ARB_robustness
  7961. CONST_CAST(GLEW_ARB_robustness) = _glewSearchExtension("GL_ARB_robustness", extStart, extEnd);
  7962. if (glewExperimental || GLEW_ARB_robustness) CONST_CAST(GLEW_ARB_robustness) = !_glewInit_GL_ARB_robustness(GLEW_CONTEXT_ARG_VAR_INIT);
  7963. #endif /* GL_ARB_robustness */
  7964. #ifdef GL_ARB_robustness_application_isolation
  7965. CONST_CAST(GLEW_ARB_robustness_application_isolation) = _glewSearchExtension("GL_ARB_robustness_application_isolation", extStart, extEnd);
  7966. #endif /* GL_ARB_robustness_application_isolation */
  7967. #ifdef GL_ARB_robustness_share_group_isolation
  7968. CONST_CAST(GLEW_ARB_robustness_share_group_isolation) = _glewSearchExtension("GL_ARB_robustness_share_group_isolation", extStart, extEnd);
  7969. #endif /* GL_ARB_robustness_share_group_isolation */
  7970. #ifdef GL_ARB_sample_shading
  7971. CONST_CAST(GLEW_ARB_sample_shading) = _glewSearchExtension("GL_ARB_sample_shading", extStart, extEnd);
  7972. if (glewExperimental || GLEW_ARB_sample_shading) CONST_CAST(GLEW_ARB_sample_shading) = !_glewInit_GL_ARB_sample_shading(GLEW_CONTEXT_ARG_VAR_INIT);
  7973. #endif /* GL_ARB_sample_shading */
  7974. #ifdef GL_ARB_sampler_objects
  7975. CONST_CAST(GLEW_ARB_sampler_objects) = _glewSearchExtension("GL_ARB_sampler_objects", extStart, extEnd);
  7976. if (glewExperimental || GLEW_ARB_sampler_objects) CONST_CAST(GLEW_ARB_sampler_objects) = !_glewInit_GL_ARB_sampler_objects(GLEW_CONTEXT_ARG_VAR_INIT);
  7977. #endif /* GL_ARB_sampler_objects */
  7978. #ifdef GL_ARB_seamless_cube_map
  7979. CONST_CAST(GLEW_ARB_seamless_cube_map) = _glewSearchExtension("GL_ARB_seamless_cube_map", extStart, extEnd);
  7980. #endif /* GL_ARB_seamless_cube_map */
  7981. #ifdef GL_ARB_seamless_cubemap_per_texture
  7982. CONST_CAST(GLEW_ARB_seamless_cubemap_per_texture) = _glewSearchExtension("GL_ARB_seamless_cubemap_per_texture", extStart, extEnd);
  7983. #endif /* GL_ARB_seamless_cubemap_per_texture */
  7984. #ifdef GL_ARB_separate_shader_objects
  7985. CONST_CAST(GLEW_ARB_separate_shader_objects) = _glewSearchExtension("GL_ARB_separate_shader_objects", extStart, extEnd);
  7986. if (glewExperimental || GLEW_ARB_separate_shader_objects) CONST_CAST(GLEW_ARB_separate_shader_objects) = !_glewInit_GL_ARB_separate_shader_objects(GLEW_CONTEXT_ARG_VAR_INIT);
  7987. #endif /* GL_ARB_separate_shader_objects */
  7988. #ifdef GL_ARB_shader_atomic_counters
  7989. CONST_CAST(GLEW_ARB_shader_atomic_counters) = _glewSearchExtension("GL_ARB_shader_atomic_counters", extStart, extEnd);
  7990. if (glewExperimental || GLEW_ARB_shader_atomic_counters) CONST_CAST(GLEW_ARB_shader_atomic_counters) = !_glewInit_GL_ARB_shader_atomic_counters(GLEW_CONTEXT_ARG_VAR_INIT);
  7991. #endif /* GL_ARB_shader_atomic_counters */
  7992. #ifdef GL_ARB_shader_bit_encoding
  7993. CONST_CAST(GLEW_ARB_shader_bit_encoding) = _glewSearchExtension("GL_ARB_shader_bit_encoding", extStart, extEnd);
  7994. #endif /* GL_ARB_shader_bit_encoding */
  7995. #ifdef GL_ARB_shader_draw_parameters
  7996. CONST_CAST(GLEW_ARB_shader_draw_parameters) = _glewSearchExtension("GL_ARB_shader_draw_parameters", extStart, extEnd);
  7997. #endif /* GL_ARB_shader_draw_parameters */
  7998. #ifdef GL_ARB_shader_group_vote
  7999. CONST_CAST(GLEW_ARB_shader_group_vote) = _glewSearchExtension("GL_ARB_shader_group_vote", extStart, extEnd);
  8000. #endif /* GL_ARB_shader_group_vote */
  8001. #ifdef GL_ARB_shader_image_load_store
  8002. CONST_CAST(GLEW_ARB_shader_image_load_store) = _glewSearchExtension("GL_ARB_shader_image_load_store", extStart, extEnd);
  8003. if (glewExperimental || GLEW_ARB_shader_image_load_store) CONST_CAST(GLEW_ARB_shader_image_load_store) = !_glewInit_GL_ARB_shader_image_load_store(GLEW_CONTEXT_ARG_VAR_INIT);
  8004. #endif /* GL_ARB_shader_image_load_store */
  8005. #ifdef GL_ARB_shader_image_size
  8006. CONST_CAST(GLEW_ARB_shader_image_size) = _glewSearchExtension("GL_ARB_shader_image_size", extStart, extEnd);
  8007. #endif /* GL_ARB_shader_image_size */
  8008. #ifdef GL_ARB_shader_objects
  8009. CONST_CAST(GLEW_ARB_shader_objects) = _glewSearchExtension("GL_ARB_shader_objects", extStart, extEnd);
  8010. if (glewExperimental || GLEW_ARB_shader_objects) CONST_CAST(GLEW_ARB_shader_objects) = !_glewInit_GL_ARB_shader_objects(GLEW_CONTEXT_ARG_VAR_INIT);
  8011. #endif /* GL_ARB_shader_objects */
  8012. #ifdef GL_ARB_shader_precision
  8013. CONST_CAST(GLEW_ARB_shader_precision) = _glewSearchExtension("GL_ARB_shader_precision", extStart, extEnd);
  8014. #endif /* GL_ARB_shader_precision */
  8015. #ifdef GL_ARB_shader_stencil_export
  8016. CONST_CAST(GLEW_ARB_shader_stencil_export) = _glewSearchExtension("GL_ARB_shader_stencil_export", extStart, extEnd);
  8017. #endif /* GL_ARB_shader_stencil_export */
  8018. #ifdef GL_ARB_shader_storage_buffer_object
  8019. CONST_CAST(GLEW_ARB_shader_storage_buffer_object) = _glewSearchExtension("GL_ARB_shader_storage_buffer_object", extStart, extEnd);
  8020. if (glewExperimental || GLEW_ARB_shader_storage_buffer_object) CONST_CAST(GLEW_ARB_shader_storage_buffer_object) = !_glewInit_GL_ARB_shader_storage_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8021. #endif /* GL_ARB_shader_storage_buffer_object */
  8022. #ifdef GL_ARB_shader_subroutine
  8023. CONST_CAST(GLEW_ARB_shader_subroutine) = _glewSearchExtension("GL_ARB_shader_subroutine", extStart, extEnd);
  8024. if (glewExperimental || GLEW_ARB_shader_subroutine) CONST_CAST(GLEW_ARB_shader_subroutine) = !_glewInit_GL_ARB_shader_subroutine(GLEW_CONTEXT_ARG_VAR_INIT);
  8025. #endif /* GL_ARB_shader_subroutine */
  8026. #ifdef GL_ARB_shader_texture_lod
  8027. CONST_CAST(GLEW_ARB_shader_texture_lod) = _glewSearchExtension("GL_ARB_shader_texture_lod", extStart, extEnd);
  8028. #endif /* GL_ARB_shader_texture_lod */
  8029. #ifdef GL_ARB_shading_language_100
  8030. CONST_CAST(GLEW_ARB_shading_language_100) = _glewSearchExtension("GL_ARB_shading_language_100", extStart, extEnd);
  8031. #endif /* GL_ARB_shading_language_100 */
  8032. #ifdef GL_ARB_shading_language_420pack
  8033. CONST_CAST(GLEW_ARB_shading_language_420pack) = _glewSearchExtension("GL_ARB_shading_language_420pack", extStart, extEnd);
  8034. #endif /* GL_ARB_shading_language_420pack */
  8035. #ifdef GL_ARB_shading_language_include
  8036. CONST_CAST(GLEW_ARB_shading_language_include) = _glewSearchExtension("GL_ARB_shading_language_include", extStart, extEnd);
  8037. if (glewExperimental || GLEW_ARB_shading_language_include) CONST_CAST(GLEW_ARB_shading_language_include) = !_glewInit_GL_ARB_shading_language_include(GLEW_CONTEXT_ARG_VAR_INIT);
  8038. #endif /* GL_ARB_shading_language_include */
  8039. #ifdef GL_ARB_shading_language_packing
  8040. CONST_CAST(GLEW_ARB_shading_language_packing) = _glewSearchExtension("GL_ARB_shading_language_packing", extStart, extEnd);
  8041. #endif /* GL_ARB_shading_language_packing */
  8042. #ifdef GL_ARB_shadow
  8043. CONST_CAST(GLEW_ARB_shadow) = _glewSearchExtension("GL_ARB_shadow", extStart, extEnd);
  8044. #endif /* GL_ARB_shadow */
  8045. #ifdef GL_ARB_shadow_ambient
  8046. CONST_CAST(GLEW_ARB_shadow_ambient) = _glewSearchExtension("GL_ARB_shadow_ambient", extStart, extEnd);
  8047. #endif /* GL_ARB_shadow_ambient */
  8048. #ifdef GL_ARB_sparse_texture
  8049. CONST_CAST(GLEW_ARB_sparse_texture) = _glewSearchExtension("GL_ARB_sparse_texture", extStart, extEnd);
  8050. if (glewExperimental || GLEW_ARB_sparse_texture) CONST_CAST(GLEW_ARB_sparse_texture) = !_glewInit_GL_ARB_sparse_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8051. #endif /* GL_ARB_sparse_texture */
  8052. #ifdef GL_ARB_stencil_texturing
  8053. CONST_CAST(GLEW_ARB_stencil_texturing) = _glewSearchExtension("GL_ARB_stencil_texturing", extStart, extEnd);
  8054. #endif /* GL_ARB_stencil_texturing */
  8055. #ifdef GL_ARB_sync
  8056. CONST_CAST(GLEW_ARB_sync) = _glewSearchExtension("GL_ARB_sync", extStart, extEnd);
  8057. if (glewExperimental || GLEW_ARB_sync) CONST_CAST(GLEW_ARB_sync) = !_glewInit_GL_ARB_sync(GLEW_CONTEXT_ARG_VAR_INIT);
  8058. #endif /* GL_ARB_sync */
  8059. #ifdef GL_ARB_tessellation_shader
  8060. CONST_CAST(GLEW_ARB_tessellation_shader) = _glewSearchExtension("GL_ARB_tessellation_shader", extStart, extEnd);
  8061. if (glewExperimental || GLEW_ARB_tessellation_shader) CONST_CAST(GLEW_ARB_tessellation_shader) = !_glewInit_GL_ARB_tessellation_shader(GLEW_CONTEXT_ARG_VAR_INIT);
  8062. #endif /* GL_ARB_tessellation_shader */
  8063. #ifdef GL_ARB_texture_border_clamp
  8064. CONST_CAST(GLEW_ARB_texture_border_clamp) = _glewSearchExtension("GL_ARB_texture_border_clamp", extStart, extEnd);
  8065. #endif /* GL_ARB_texture_border_clamp */
  8066. #ifdef GL_ARB_texture_buffer_object
  8067. CONST_CAST(GLEW_ARB_texture_buffer_object) = _glewSearchExtension("GL_ARB_texture_buffer_object", extStart, extEnd);
  8068. if (glewExperimental || GLEW_ARB_texture_buffer_object) CONST_CAST(GLEW_ARB_texture_buffer_object) = !_glewInit_GL_ARB_texture_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8069. #endif /* GL_ARB_texture_buffer_object */
  8070. #ifdef GL_ARB_texture_buffer_object_rgb32
  8071. CONST_CAST(GLEW_ARB_texture_buffer_object_rgb32) = _glewSearchExtension("GL_ARB_texture_buffer_object_rgb32", extStart, extEnd);
  8072. #endif /* GL_ARB_texture_buffer_object_rgb32 */
  8073. #ifdef GL_ARB_texture_buffer_range
  8074. CONST_CAST(GLEW_ARB_texture_buffer_range) = _glewSearchExtension("GL_ARB_texture_buffer_range", extStart, extEnd);
  8075. if (glewExperimental || GLEW_ARB_texture_buffer_range) CONST_CAST(GLEW_ARB_texture_buffer_range) = !_glewInit_GL_ARB_texture_buffer_range(GLEW_CONTEXT_ARG_VAR_INIT);
  8076. #endif /* GL_ARB_texture_buffer_range */
  8077. #ifdef GL_ARB_texture_compression
  8078. CONST_CAST(GLEW_ARB_texture_compression) = _glewSearchExtension("GL_ARB_texture_compression", extStart, extEnd);
  8079. if (glewExperimental || GLEW_ARB_texture_compression) CONST_CAST(GLEW_ARB_texture_compression) = !_glewInit_GL_ARB_texture_compression(GLEW_CONTEXT_ARG_VAR_INIT);
  8080. #endif /* GL_ARB_texture_compression */
  8081. #ifdef GL_ARB_texture_compression_bptc
  8082. CONST_CAST(GLEW_ARB_texture_compression_bptc) = _glewSearchExtension("GL_ARB_texture_compression_bptc", extStart, extEnd);
  8083. #endif /* GL_ARB_texture_compression_bptc */
  8084. #ifdef GL_ARB_texture_compression_rgtc
  8085. CONST_CAST(GLEW_ARB_texture_compression_rgtc) = _glewSearchExtension("GL_ARB_texture_compression_rgtc", extStart, extEnd);
  8086. #endif /* GL_ARB_texture_compression_rgtc */
  8087. #ifdef GL_ARB_texture_cube_map
  8088. CONST_CAST(GLEW_ARB_texture_cube_map) = _glewSearchExtension("GL_ARB_texture_cube_map", extStart, extEnd);
  8089. #endif /* GL_ARB_texture_cube_map */
  8090. #ifdef GL_ARB_texture_cube_map_array
  8091. CONST_CAST(GLEW_ARB_texture_cube_map_array) = _glewSearchExtension("GL_ARB_texture_cube_map_array", extStart, extEnd);
  8092. #endif /* GL_ARB_texture_cube_map_array */
  8093. #ifdef GL_ARB_texture_env_add
  8094. CONST_CAST(GLEW_ARB_texture_env_add) = _glewSearchExtension("GL_ARB_texture_env_add", extStart, extEnd);
  8095. #endif /* GL_ARB_texture_env_add */
  8096. #ifdef GL_ARB_texture_env_combine
  8097. CONST_CAST(GLEW_ARB_texture_env_combine) = _glewSearchExtension("GL_ARB_texture_env_combine", extStart, extEnd);
  8098. #endif /* GL_ARB_texture_env_combine */
  8099. #ifdef GL_ARB_texture_env_crossbar
  8100. CONST_CAST(GLEW_ARB_texture_env_crossbar) = _glewSearchExtension("GL_ARB_texture_env_crossbar", extStart, extEnd);
  8101. #endif /* GL_ARB_texture_env_crossbar */
  8102. #ifdef GL_ARB_texture_env_dot3
  8103. CONST_CAST(GLEW_ARB_texture_env_dot3) = _glewSearchExtension("GL_ARB_texture_env_dot3", extStart, extEnd);
  8104. #endif /* GL_ARB_texture_env_dot3 */
  8105. #ifdef GL_ARB_texture_float
  8106. CONST_CAST(GLEW_ARB_texture_float) = _glewSearchExtension("GL_ARB_texture_float", extStart, extEnd);
  8107. #endif /* GL_ARB_texture_float */
  8108. #ifdef GL_ARB_texture_gather
  8109. CONST_CAST(GLEW_ARB_texture_gather) = _glewSearchExtension("GL_ARB_texture_gather", extStart, extEnd);
  8110. #endif /* GL_ARB_texture_gather */
  8111. #ifdef GL_ARB_texture_mirror_clamp_to_edge
  8112. CONST_CAST(GLEW_ARB_texture_mirror_clamp_to_edge) = _glewSearchExtension("GL_ARB_texture_mirror_clamp_to_edge", extStart, extEnd);
  8113. #endif /* GL_ARB_texture_mirror_clamp_to_edge */
  8114. #ifdef GL_ARB_texture_mirrored_repeat
  8115. CONST_CAST(GLEW_ARB_texture_mirrored_repeat) = _glewSearchExtension("GL_ARB_texture_mirrored_repeat", extStart, extEnd);
  8116. #endif /* GL_ARB_texture_mirrored_repeat */
  8117. #ifdef GL_ARB_texture_multisample
  8118. CONST_CAST(GLEW_ARB_texture_multisample) = _glewSearchExtension("GL_ARB_texture_multisample", extStart, extEnd);
  8119. if (glewExperimental || GLEW_ARB_texture_multisample) CONST_CAST(GLEW_ARB_texture_multisample) = !_glewInit_GL_ARB_texture_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  8120. #endif /* GL_ARB_texture_multisample */
  8121. #ifdef GL_ARB_texture_non_power_of_two
  8122. CONST_CAST(GLEW_ARB_texture_non_power_of_two) = _glewSearchExtension("GL_ARB_texture_non_power_of_two", extStart, extEnd);
  8123. #endif /* GL_ARB_texture_non_power_of_two */
  8124. #ifdef GL_ARB_texture_query_levels
  8125. CONST_CAST(GLEW_ARB_texture_query_levels) = _glewSearchExtension("GL_ARB_texture_query_levels", extStart, extEnd);
  8126. #endif /* GL_ARB_texture_query_levels */
  8127. #ifdef GL_ARB_texture_query_lod
  8128. CONST_CAST(GLEW_ARB_texture_query_lod) = _glewSearchExtension("GL_ARB_texture_query_lod", extStart, extEnd);
  8129. #endif /* GL_ARB_texture_query_lod */
  8130. #ifdef GL_ARB_texture_rectangle
  8131. CONST_CAST(GLEW_ARB_texture_rectangle) = _glewSearchExtension("GL_ARB_texture_rectangle", extStart, extEnd);
  8132. #endif /* GL_ARB_texture_rectangle */
  8133. #ifdef GL_ARB_texture_rg
  8134. CONST_CAST(GLEW_ARB_texture_rg) = _glewSearchExtension("GL_ARB_texture_rg", extStart, extEnd);
  8135. #endif /* GL_ARB_texture_rg */
  8136. #ifdef GL_ARB_texture_rgb10_a2ui
  8137. CONST_CAST(GLEW_ARB_texture_rgb10_a2ui) = _glewSearchExtension("GL_ARB_texture_rgb10_a2ui", extStart, extEnd);
  8138. #endif /* GL_ARB_texture_rgb10_a2ui */
  8139. #ifdef GL_ARB_texture_stencil8
  8140. CONST_CAST(GLEW_ARB_texture_stencil8) = _glewSearchExtension("GL_ARB_texture_stencil8", extStart, extEnd);
  8141. #endif /* GL_ARB_texture_stencil8 */
  8142. #ifdef GL_ARB_texture_storage
  8143. CONST_CAST(GLEW_ARB_texture_storage) = _glewSearchExtension("GL_ARB_texture_storage", extStart, extEnd);
  8144. if (glewExperimental || GLEW_ARB_texture_storage) CONST_CAST(GLEW_ARB_texture_storage) = !_glewInit_GL_ARB_texture_storage(GLEW_CONTEXT_ARG_VAR_INIT);
  8145. #endif /* GL_ARB_texture_storage */
  8146. #ifdef GL_ARB_texture_storage_multisample
  8147. CONST_CAST(GLEW_ARB_texture_storage_multisample) = _glewSearchExtension("GL_ARB_texture_storage_multisample", extStart, extEnd);
  8148. if (glewExperimental || GLEW_ARB_texture_storage_multisample) CONST_CAST(GLEW_ARB_texture_storage_multisample) = !_glewInit_GL_ARB_texture_storage_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  8149. #endif /* GL_ARB_texture_storage_multisample */
  8150. #ifdef GL_ARB_texture_swizzle
  8151. CONST_CAST(GLEW_ARB_texture_swizzle) = _glewSearchExtension("GL_ARB_texture_swizzle", extStart, extEnd);
  8152. #endif /* GL_ARB_texture_swizzle */
  8153. #ifdef GL_ARB_texture_view
  8154. CONST_CAST(GLEW_ARB_texture_view) = _glewSearchExtension("GL_ARB_texture_view", extStart, extEnd);
  8155. if (glewExperimental || GLEW_ARB_texture_view) CONST_CAST(GLEW_ARB_texture_view) = !_glewInit_GL_ARB_texture_view(GLEW_CONTEXT_ARG_VAR_INIT);
  8156. #endif /* GL_ARB_texture_view */
  8157. #ifdef GL_ARB_timer_query
  8158. CONST_CAST(GLEW_ARB_timer_query) = _glewSearchExtension("GL_ARB_timer_query", extStart, extEnd);
  8159. if (glewExperimental || GLEW_ARB_timer_query) CONST_CAST(GLEW_ARB_timer_query) = !_glewInit_GL_ARB_timer_query(GLEW_CONTEXT_ARG_VAR_INIT);
  8160. #endif /* GL_ARB_timer_query */
  8161. #ifdef GL_ARB_transform_feedback2
  8162. CONST_CAST(GLEW_ARB_transform_feedback2) = _glewSearchExtension("GL_ARB_transform_feedback2", extStart, extEnd);
  8163. if (glewExperimental || GLEW_ARB_transform_feedback2) CONST_CAST(GLEW_ARB_transform_feedback2) = !_glewInit_GL_ARB_transform_feedback2(GLEW_CONTEXT_ARG_VAR_INIT);
  8164. #endif /* GL_ARB_transform_feedback2 */
  8165. #ifdef GL_ARB_transform_feedback3
  8166. CONST_CAST(GLEW_ARB_transform_feedback3) = _glewSearchExtension("GL_ARB_transform_feedback3", extStart, extEnd);
  8167. if (glewExperimental || GLEW_ARB_transform_feedback3) CONST_CAST(GLEW_ARB_transform_feedback3) = !_glewInit_GL_ARB_transform_feedback3(GLEW_CONTEXT_ARG_VAR_INIT);
  8168. #endif /* GL_ARB_transform_feedback3 */
  8169. #ifdef GL_ARB_transform_feedback_instanced
  8170. CONST_CAST(GLEW_ARB_transform_feedback_instanced) = _glewSearchExtension("GL_ARB_transform_feedback_instanced", extStart, extEnd);
  8171. if (glewExperimental || GLEW_ARB_transform_feedback_instanced) CONST_CAST(GLEW_ARB_transform_feedback_instanced) = !_glewInit_GL_ARB_transform_feedback_instanced(GLEW_CONTEXT_ARG_VAR_INIT);
  8172. #endif /* GL_ARB_transform_feedback_instanced */
  8173. #ifdef GL_ARB_transpose_matrix
  8174. CONST_CAST(GLEW_ARB_transpose_matrix) = _glewSearchExtension("GL_ARB_transpose_matrix", extStart, extEnd);
  8175. if (glewExperimental || GLEW_ARB_transpose_matrix) CONST_CAST(GLEW_ARB_transpose_matrix) = !_glewInit_GL_ARB_transpose_matrix(GLEW_CONTEXT_ARG_VAR_INIT);
  8176. #endif /* GL_ARB_transpose_matrix */
  8177. #ifdef GL_ARB_uniform_buffer_object
  8178. CONST_CAST(GLEW_ARB_uniform_buffer_object) = _glewSearchExtension("GL_ARB_uniform_buffer_object", extStart, extEnd);
  8179. if (glewExperimental || GLEW_ARB_uniform_buffer_object) CONST_CAST(GLEW_ARB_uniform_buffer_object) = !_glewInit_GL_ARB_uniform_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8180. #endif /* GL_ARB_uniform_buffer_object */
  8181. #ifdef GL_ARB_vertex_array_bgra
  8182. CONST_CAST(GLEW_ARB_vertex_array_bgra) = _glewSearchExtension("GL_ARB_vertex_array_bgra", extStart, extEnd);
  8183. #endif /* GL_ARB_vertex_array_bgra */
  8184. #ifdef GL_ARB_vertex_array_object
  8185. CONST_CAST(GLEW_ARB_vertex_array_object) = _glewSearchExtension("GL_ARB_vertex_array_object", extStart, extEnd);
  8186. if (glewExperimental || GLEW_ARB_vertex_array_object) CONST_CAST(GLEW_ARB_vertex_array_object) = !_glewInit_GL_ARB_vertex_array_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8187. #endif /* GL_ARB_vertex_array_object */
  8188. #ifdef GL_ARB_vertex_attrib_64bit
  8189. CONST_CAST(GLEW_ARB_vertex_attrib_64bit) = _glewSearchExtension("GL_ARB_vertex_attrib_64bit", extStart, extEnd);
  8190. if (glewExperimental || GLEW_ARB_vertex_attrib_64bit) CONST_CAST(GLEW_ARB_vertex_attrib_64bit) = !_glewInit_GL_ARB_vertex_attrib_64bit(GLEW_CONTEXT_ARG_VAR_INIT);
  8191. #endif /* GL_ARB_vertex_attrib_64bit */
  8192. #ifdef GL_ARB_vertex_attrib_binding
  8193. CONST_CAST(GLEW_ARB_vertex_attrib_binding) = _glewSearchExtension("GL_ARB_vertex_attrib_binding", extStart, extEnd);
  8194. if (glewExperimental || GLEW_ARB_vertex_attrib_binding) CONST_CAST(GLEW_ARB_vertex_attrib_binding) = !_glewInit_GL_ARB_vertex_attrib_binding(GLEW_CONTEXT_ARG_VAR_INIT);
  8195. #endif /* GL_ARB_vertex_attrib_binding */
  8196. #ifdef GL_ARB_vertex_blend
  8197. CONST_CAST(GLEW_ARB_vertex_blend) = _glewSearchExtension("GL_ARB_vertex_blend", extStart, extEnd);
  8198. if (glewExperimental || GLEW_ARB_vertex_blend) CONST_CAST(GLEW_ARB_vertex_blend) = !_glewInit_GL_ARB_vertex_blend(GLEW_CONTEXT_ARG_VAR_INIT);
  8199. #endif /* GL_ARB_vertex_blend */
  8200. #ifdef GL_ARB_vertex_buffer_object
  8201. CONST_CAST(GLEW_ARB_vertex_buffer_object) = _glewSearchExtension("GL_ARB_vertex_buffer_object", extStart, extEnd);
  8202. if (glewExperimental || GLEW_ARB_vertex_buffer_object) CONST_CAST(GLEW_ARB_vertex_buffer_object) = !_glewInit_GL_ARB_vertex_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8203. #endif /* GL_ARB_vertex_buffer_object */
  8204. #ifdef GL_ARB_vertex_program
  8205. CONST_CAST(GLEW_ARB_vertex_program) = _glewSearchExtension("GL_ARB_vertex_program", extStart, extEnd);
  8206. if (glewExperimental || GLEW_ARB_vertex_program) CONST_CAST(GLEW_ARB_vertex_program) = !_glewInit_GL_ARB_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT);
  8207. #endif /* GL_ARB_vertex_program */
  8208. #ifdef GL_ARB_vertex_shader
  8209. CONST_CAST(GLEW_ARB_vertex_shader) = _glewSearchExtension("GL_ARB_vertex_shader", extStart, extEnd);
  8210. if (glewExperimental || GLEW_ARB_vertex_shader) CONST_CAST(GLEW_ARB_vertex_shader) = !_glewInit_GL_ARB_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT);
  8211. #endif /* GL_ARB_vertex_shader */
  8212. #ifdef GL_ARB_vertex_type_10f_11f_11f_rev
  8213. CONST_CAST(GLEW_ARB_vertex_type_10f_11f_11f_rev) = _glewSearchExtension("GL_ARB_vertex_type_10f_11f_11f_rev", extStart, extEnd);
  8214. #endif /* GL_ARB_vertex_type_10f_11f_11f_rev */
  8215. #ifdef GL_ARB_vertex_type_2_10_10_10_rev
  8216. CONST_CAST(GLEW_ARB_vertex_type_2_10_10_10_rev) = _glewSearchExtension("GL_ARB_vertex_type_2_10_10_10_rev", extStart, extEnd);
  8217. if (glewExperimental || GLEW_ARB_vertex_type_2_10_10_10_rev) CONST_CAST(GLEW_ARB_vertex_type_2_10_10_10_rev) = !_glewInit_GL_ARB_vertex_type_2_10_10_10_rev(GLEW_CONTEXT_ARG_VAR_INIT);
  8218. #endif /* GL_ARB_vertex_type_2_10_10_10_rev */
  8219. #ifdef GL_ARB_viewport_array
  8220. CONST_CAST(GLEW_ARB_viewport_array) = _glewSearchExtension("GL_ARB_viewport_array", extStart, extEnd);
  8221. if (glewExperimental || GLEW_ARB_viewport_array) CONST_CAST(GLEW_ARB_viewport_array) = !_glewInit_GL_ARB_viewport_array(GLEW_CONTEXT_ARG_VAR_INIT);
  8222. #endif /* GL_ARB_viewport_array */
  8223. #ifdef GL_ARB_window_pos
  8224. CONST_CAST(GLEW_ARB_window_pos) = _glewSearchExtension("GL_ARB_window_pos", extStart, extEnd);
  8225. if (glewExperimental || GLEW_ARB_window_pos) CONST_CAST(GLEW_ARB_window_pos) = !_glewInit_GL_ARB_window_pos(GLEW_CONTEXT_ARG_VAR_INIT);
  8226. #endif /* GL_ARB_window_pos */
  8227. #ifdef GL_ATIX_point_sprites
  8228. CONST_CAST(GLEW_ATIX_point_sprites) = _glewSearchExtension("GL_ATIX_point_sprites", extStart, extEnd);
  8229. #endif /* GL_ATIX_point_sprites */
  8230. #ifdef GL_ATIX_texture_env_combine3
  8231. CONST_CAST(GLEW_ATIX_texture_env_combine3) = _glewSearchExtension("GL_ATIX_texture_env_combine3", extStart, extEnd);
  8232. #endif /* GL_ATIX_texture_env_combine3 */
  8233. #ifdef GL_ATIX_texture_env_route
  8234. CONST_CAST(GLEW_ATIX_texture_env_route) = _glewSearchExtension("GL_ATIX_texture_env_route", extStart, extEnd);
  8235. #endif /* GL_ATIX_texture_env_route */
  8236. #ifdef GL_ATIX_vertex_shader_output_point_size
  8237. CONST_CAST(GLEW_ATIX_vertex_shader_output_point_size) = _glewSearchExtension("GL_ATIX_vertex_shader_output_point_size", extStart, extEnd);
  8238. #endif /* GL_ATIX_vertex_shader_output_point_size */
  8239. #ifdef GL_ATI_draw_buffers
  8240. CONST_CAST(GLEW_ATI_draw_buffers) = _glewSearchExtension("GL_ATI_draw_buffers", extStart, extEnd);
  8241. if (glewExperimental || GLEW_ATI_draw_buffers) CONST_CAST(GLEW_ATI_draw_buffers) = !_glewInit_GL_ATI_draw_buffers(GLEW_CONTEXT_ARG_VAR_INIT);
  8242. #endif /* GL_ATI_draw_buffers */
  8243. #ifdef GL_ATI_element_array
  8244. CONST_CAST(GLEW_ATI_element_array) = _glewSearchExtension("GL_ATI_element_array", extStart, extEnd);
  8245. if (glewExperimental || GLEW_ATI_element_array) CONST_CAST(GLEW_ATI_element_array) = !_glewInit_GL_ATI_element_array(GLEW_CONTEXT_ARG_VAR_INIT);
  8246. #endif /* GL_ATI_element_array */
  8247. #ifdef GL_ATI_envmap_bumpmap
  8248. CONST_CAST(GLEW_ATI_envmap_bumpmap) = _glewSearchExtension("GL_ATI_envmap_bumpmap", extStart, extEnd);
  8249. if (glewExperimental || GLEW_ATI_envmap_bumpmap) CONST_CAST(GLEW_ATI_envmap_bumpmap) = !_glewInit_GL_ATI_envmap_bumpmap(GLEW_CONTEXT_ARG_VAR_INIT);
  8250. #endif /* GL_ATI_envmap_bumpmap */
  8251. #ifdef GL_ATI_fragment_shader
  8252. CONST_CAST(GLEW_ATI_fragment_shader) = _glewSearchExtension("GL_ATI_fragment_shader", extStart, extEnd);
  8253. if (glewExperimental || GLEW_ATI_fragment_shader) CONST_CAST(GLEW_ATI_fragment_shader) = !_glewInit_GL_ATI_fragment_shader(GLEW_CONTEXT_ARG_VAR_INIT);
  8254. #endif /* GL_ATI_fragment_shader */
  8255. #ifdef GL_ATI_map_object_buffer
  8256. CONST_CAST(GLEW_ATI_map_object_buffer) = _glewSearchExtension("GL_ATI_map_object_buffer", extStart, extEnd);
  8257. if (glewExperimental || GLEW_ATI_map_object_buffer) CONST_CAST(GLEW_ATI_map_object_buffer) = !_glewInit_GL_ATI_map_object_buffer(GLEW_CONTEXT_ARG_VAR_INIT);
  8258. #endif /* GL_ATI_map_object_buffer */
  8259. #ifdef GL_ATI_meminfo
  8260. CONST_CAST(GLEW_ATI_meminfo) = _glewSearchExtension("GL_ATI_meminfo", extStart, extEnd);
  8261. #endif /* GL_ATI_meminfo */
  8262. #ifdef GL_ATI_pn_triangles
  8263. CONST_CAST(GLEW_ATI_pn_triangles) = _glewSearchExtension("GL_ATI_pn_triangles", extStart, extEnd);
  8264. if (glewExperimental || GLEW_ATI_pn_triangles) CONST_CAST(GLEW_ATI_pn_triangles) = !_glewInit_GL_ATI_pn_triangles(GLEW_CONTEXT_ARG_VAR_INIT);
  8265. #endif /* GL_ATI_pn_triangles */
  8266. #ifdef GL_ATI_separate_stencil
  8267. CONST_CAST(GLEW_ATI_separate_stencil) = _glewSearchExtension("GL_ATI_separate_stencil", extStart, extEnd);
  8268. if (glewExperimental || GLEW_ATI_separate_stencil) CONST_CAST(GLEW_ATI_separate_stencil) = !_glewInit_GL_ATI_separate_stencil(GLEW_CONTEXT_ARG_VAR_INIT);
  8269. #endif /* GL_ATI_separate_stencil */
  8270. #ifdef GL_ATI_shader_texture_lod
  8271. CONST_CAST(GLEW_ATI_shader_texture_lod) = _glewSearchExtension("GL_ATI_shader_texture_lod", extStart, extEnd);
  8272. #endif /* GL_ATI_shader_texture_lod */
  8273. #ifdef GL_ATI_text_fragment_shader
  8274. CONST_CAST(GLEW_ATI_text_fragment_shader) = _glewSearchExtension("GL_ATI_text_fragment_shader", extStart, extEnd);
  8275. #endif /* GL_ATI_text_fragment_shader */
  8276. #ifdef GL_ATI_texture_compression_3dc
  8277. CONST_CAST(GLEW_ATI_texture_compression_3dc) = _glewSearchExtension("GL_ATI_texture_compression_3dc", extStart, extEnd);
  8278. #endif /* GL_ATI_texture_compression_3dc */
  8279. #ifdef GL_ATI_texture_env_combine3
  8280. CONST_CAST(GLEW_ATI_texture_env_combine3) = _glewSearchExtension("GL_ATI_texture_env_combine3", extStart, extEnd);
  8281. #endif /* GL_ATI_texture_env_combine3 */
  8282. #ifdef GL_ATI_texture_float
  8283. CONST_CAST(GLEW_ATI_texture_float) = _glewSearchExtension("GL_ATI_texture_float", extStart, extEnd);
  8284. #endif /* GL_ATI_texture_float */
  8285. #ifdef GL_ATI_texture_mirror_once
  8286. CONST_CAST(GLEW_ATI_texture_mirror_once) = _glewSearchExtension("GL_ATI_texture_mirror_once", extStart, extEnd);
  8287. #endif /* GL_ATI_texture_mirror_once */
  8288. #ifdef GL_ATI_vertex_array_object
  8289. CONST_CAST(GLEW_ATI_vertex_array_object) = _glewSearchExtension("GL_ATI_vertex_array_object", extStart, extEnd);
  8290. if (glewExperimental || GLEW_ATI_vertex_array_object) CONST_CAST(GLEW_ATI_vertex_array_object) = !_glewInit_GL_ATI_vertex_array_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8291. #endif /* GL_ATI_vertex_array_object */
  8292. #ifdef GL_ATI_vertex_attrib_array_object
  8293. CONST_CAST(GLEW_ATI_vertex_attrib_array_object) = _glewSearchExtension("GL_ATI_vertex_attrib_array_object", extStart, extEnd);
  8294. if (glewExperimental || GLEW_ATI_vertex_attrib_array_object) CONST_CAST(GLEW_ATI_vertex_attrib_array_object) = !_glewInit_GL_ATI_vertex_attrib_array_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8295. #endif /* GL_ATI_vertex_attrib_array_object */
  8296. #ifdef GL_ATI_vertex_streams
  8297. CONST_CAST(GLEW_ATI_vertex_streams) = _glewSearchExtension("GL_ATI_vertex_streams", extStart, extEnd);
  8298. if (glewExperimental || GLEW_ATI_vertex_streams) CONST_CAST(GLEW_ATI_vertex_streams) = !_glewInit_GL_ATI_vertex_streams(GLEW_CONTEXT_ARG_VAR_INIT);
  8299. #endif /* GL_ATI_vertex_streams */
  8300. #ifdef GL_EXT_422_pixels
  8301. CONST_CAST(GLEW_EXT_422_pixels) = _glewSearchExtension("GL_EXT_422_pixels", extStart, extEnd);
  8302. #endif /* GL_EXT_422_pixels */
  8303. #ifdef GL_EXT_Cg_shader
  8304. CONST_CAST(GLEW_EXT_Cg_shader) = _glewSearchExtension("GL_EXT_Cg_shader", extStart, extEnd);
  8305. #endif /* GL_EXT_Cg_shader */
  8306. #ifdef GL_EXT_abgr
  8307. CONST_CAST(GLEW_EXT_abgr) = _glewSearchExtension("GL_EXT_abgr", extStart, extEnd);
  8308. #endif /* GL_EXT_abgr */
  8309. #ifdef GL_EXT_bgra
  8310. CONST_CAST(GLEW_EXT_bgra) = _glewSearchExtension("GL_EXT_bgra", extStart, extEnd);
  8311. #endif /* GL_EXT_bgra */
  8312. #ifdef GL_EXT_bindable_uniform
  8313. CONST_CAST(GLEW_EXT_bindable_uniform) = _glewSearchExtension("GL_EXT_bindable_uniform", extStart, extEnd);
  8314. if (glewExperimental || GLEW_EXT_bindable_uniform) CONST_CAST(GLEW_EXT_bindable_uniform) = !_glewInit_GL_EXT_bindable_uniform(GLEW_CONTEXT_ARG_VAR_INIT);
  8315. #endif /* GL_EXT_bindable_uniform */
  8316. #ifdef GL_EXT_blend_color
  8317. CONST_CAST(GLEW_EXT_blend_color) = _glewSearchExtension("GL_EXT_blend_color", extStart, extEnd);
  8318. if (glewExperimental || GLEW_EXT_blend_color) CONST_CAST(GLEW_EXT_blend_color) = !_glewInit_GL_EXT_blend_color(GLEW_CONTEXT_ARG_VAR_INIT);
  8319. #endif /* GL_EXT_blend_color */
  8320. #ifdef GL_EXT_blend_equation_separate
  8321. CONST_CAST(GLEW_EXT_blend_equation_separate) = _glewSearchExtension("GL_EXT_blend_equation_separate", extStart, extEnd);
  8322. if (glewExperimental || GLEW_EXT_blend_equation_separate) CONST_CAST(GLEW_EXT_blend_equation_separate) = !_glewInit_GL_EXT_blend_equation_separate(GLEW_CONTEXT_ARG_VAR_INIT);
  8323. #endif /* GL_EXT_blend_equation_separate */
  8324. #ifdef GL_EXT_blend_func_separate
  8325. CONST_CAST(GLEW_EXT_blend_func_separate) = _glewSearchExtension("GL_EXT_blend_func_separate", extStart, extEnd);
  8326. if (glewExperimental || GLEW_EXT_blend_func_separate) CONST_CAST(GLEW_EXT_blend_func_separate) = !_glewInit_GL_EXT_blend_func_separate(GLEW_CONTEXT_ARG_VAR_INIT);
  8327. #endif /* GL_EXT_blend_func_separate */
  8328. #ifdef GL_EXT_blend_logic_op
  8329. CONST_CAST(GLEW_EXT_blend_logic_op) = _glewSearchExtension("GL_EXT_blend_logic_op", extStart, extEnd);
  8330. #endif /* GL_EXT_blend_logic_op */
  8331. #ifdef GL_EXT_blend_minmax
  8332. CONST_CAST(GLEW_EXT_blend_minmax) = _glewSearchExtension("GL_EXT_blend_minmax", extStart, extEnd);
  8333. if (glewExperimental || GLEW_EXT_blend_minmax) CONST_CAST(GLEW_EXT_blend_minmax) = !_glewInit_GL_EXT_blend_minmax(GLEW_CONTEXT_ARG_VAR_INIT);
  8334. #endif /* GL_EXT_blend_minmax */
  8335. #ifdef GL_EXT_blend_subtract
  8336. CONST_CAST(GLEW_EXT_blend_subtract) = _glewSearchExtension("GL_EXT_blend_subtract", extStart, extEnd);
  8337. #endif /* GL_EXT_blend_subtract */
  8338. #ifdef GL_EXT_clip_volume_hint
  8339. CONST_CAST(GLEW_EXT_clip_volume_hint) = _glewSearchExtension("GL_EXT_clip_volume_hint", extStart, extEnd);
  8340. #endif /* GL_EXT_clip_volume_hint */
  8341. #ifdef GL_EXT_cmyka
  8342. CONST_CAST(GLEW_EXT_cmyka) = _glewSearchExtension("GL_EXT_cmyka", extStart, extEnd);
  8343. #endif /* GL_EXT_cmyka */
  8344. #ifdef GL_EXT_color_subtable
  8345. CONST_CAST(GLEW_EXT_color_subtable) = _glewSearchExtension("GL_EXT_color_subtable", extStart, extEnd);
  8346. if (glewExperimental || GLEW_EXT_color_subtable) CONST_CAST(GLEW_EXT_color_subtable) = !_glewInit_GL_EXT_color_subtable(GLEW_CONTEXT_ARG_VAR_INIT);
  8347. #endif /* GL_EXT_color_subtable */
  8348. #ifdef GL_EXT_compiled_vertex_array
  8349. CONST_CAST(GLEW_EXT_compiled_vertex_array) = _glewSearchExtension("GL_EXT_compiled_vertex_array", extStart, extEnd);
  8350. if (glewExperimental || GLEW_EXT_compiled_vertex_array) CONST_CAST(GLEW_EXT_compiled_vertex_array) = !_glewInit_GL_EXT_compiled_vertex_array(GLEW_CONTEXT_ARG_VAR_INIT);
  8351. #endif /* GL_EXT_compiled_vertex_array */
  8352. #ifdef GL_EXT_convolution
  8353. CONST_CAST(GLEW_EXT_convolution) = _glewSearchExtension("GL_EXT_convolution", extStart, extEnd);
  8354. if (glewExperimental || GLEW_EXT_convolution) CONST_CAST(GLEW_EXT_convolution) = !_glewInit_GL_EXT_convolution(GLEW_CONTEXT_ARG_VAR_INIT);
  8355. #endif /* GL_EXT_convolution */
  8356. #ifdef GL_EXT_coordinate_frame
  8357. CONST_CAST(GLEW_EXT_coordinate_frame) = _glewSearchExtension("GL_EXT_coordinate_frame", extStart, extEnd);
  8358. if (glewExperimental || GLEW_EXT_coordinate_frame) CONST_CAST(GLEW_EXT_coordinate_frame) = !_glewInit_GL_EXT_coordinate_frame(GLEW_CONTEXT_ARG_VAR_INIT);
  8359. #endif /* GL_EXT_coordinate_frame */
  8360. #ifdef GL_EXT_copy_texture
  8361. CONST_CAST(GLEW_EXT_copy_texture) = _glewSearchExtension("GL_EXT_copy_texture", extStart, extEnd);
  8362. if (glewExperimental || GLEW_EXT_copy_texture) CONST_CAST(GLEW_EXT_copy_texture) = !_glewInit_GL_EXT_copy_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8363. #endif /* GL_EXT_copy_texture */
  8364. #ifdef GL_EXT_cull_vertex
  8365. CONST_CAST(GLEW_EXT_cull_vertex) = _glewSearchExtension("GL_EXT_cull_vertex", extStart, extEnd);
  8366. if (glewExperimental || GLEW_EXT_cull_vertex) CONST_CAST(GLEW_EXT_cull_vertex) = !_glewInit_GL_EXT_cull_vertex(GLEW_CONTEXT_ARG_VAR_INIT);
  8367. #endif /* GL_EXT_cull_vertex */
  8368. #ifdef GL_EXT_debug_marker
  8369. CONST_CAST(GLEW_EXT_debug_marker) = _glewSearchExtension("GL_EXT_debug_marker", extStart, extEnd);
  8370. if (glewExperimental || GLEW_EXT_debug_marker) CONST_CAST(GLEW_EXT_debug_marker) = !_glewInit_GL_EXT_debug_marker(GLEW_CONTEXT_ARG_VAR_INIT);
  8371. #endif /* GL_EXT_debug_marker */
  8372. #ifdef GL_EXT_depth_bounds_test
  8373. CONST_CAST(GLEW_EXT_depth_bounds_test) = _glewSearchExtension("GL_EXT_depth_bounds_test", extStart, extEnd);
  8374. if (glewExperimental || GLEW_EXT_depth_bounds_test) CONST_CAST(GLEW_EXT_depth_bounds_test) = !_glewInit_GL_EXT_depth_bounds_test(GLEW_CONTEXT_ARG_VAR_INIT);
  8375. #endif /* GL_EXT_depth_bounds_test */
  8376. #ifdef GL_EXT_direct_state_access
  8377. CONST_CAST(GLEW_EXT_direct_state_access) = _glewSearchExtension("GL_EXT_direct_state_access", extStart, extEnd);
  8378. if (glewExperimental || GLEW_EXT_direct_state_access) CONST_CAST(GLEW_EXT_direct_state_access) = !_glewInit_GL_EXT_direct_state_access(GLEW_CONTEXT_ARG_VAR_INIT);
  8379. #endif /* GL_EXT_direct_state_access */
  8380. #ifdef GL_EXT_draw_buffers2
  8381. CONST_CAST(GLEW_EXT_draw_buffers2) = _glewSearchExtension("GL_EXT_draw_buffers2", extStart, extEnd);
  8382. if (glewExperimental || GLEW_EXT_draw_buffers2) CONST_CAST(GLEW_EXT_draw_buffers2) = !_glewInit_GL_EXT_draw_buffers2(GLEW_CONTEXT_ARG_VAR_INIT);
  8383. #endif /* GL_EXT_draw_buffers2 */
  8384. #ifdef GL_EXT_draw_instanced
  8385. CONST_CAST(GLEW_EXT_draw_instanced) = _glewSearchExtension("GL_EXT_draw_instanced", extStart, extEnd);
  8386. if (glewExperimental || GLEW_EXT_draw_instanced) CONST_CAST(GLEW_EXT_draw_instanced) = !_glewInit_GL_EXT_draw_instanced(GLEW_CONTEXT_ARG_VAR_INIT);
  8387. #endif /* GL_EXT_draw_instanced */
  8388. #ifdef GL_EXT_draw_range_elements
  8389. CONST_CAST(GLEW_EXT_draw_range_elements) = _glewSearchExtension("GL_EXT_draw_range_elements", extStart, extEnd);
  8390. if (glewExperimental || GLEW_EXT_draw_range_elements) CONST_CAST(GLEW_EXT_draw_range_elements) = !_glewInit_GL_EXT_draw_range_elements(GLEW_CONTEXT_ARG_VAR_INIT);
  8391. #endif /* GL_EXT_draw_range_elements */
  8392. #ifdef GL_EXT_fog_coord
  8393. CONST_CAST(GLEW_EXT_fog_coord) = _glewSearchExtension("GL_EXT_fog_coord", extStart, extEnd);
  8394. if (glewExperimental || GLEW_EXT_fog_coord) CONST_CAST(GLEW_EXT_fog_coord) = !_glewInit_GL_EXT_fog_coord(GLEW_CONTEXT_ARG_VAR_INIT);
  8395. #endif /* GL_EXT_fog_coord */
  8396. #ifdef GL_EXT_fragment_lighting
  8397. CONST_CAST(GLEW_EXT_fragment_lighting) = _glewSearchExtension("GL_EXT_fragment_lighting", extStart, extEnd);
  8398. if (glewExperimental || GLEW_EXT_fragment_lighting) CONST_CAST(GLEW_EXT_fragment_lighting) = !_glewInit_GL_EXT_fragment_lighting(GLEW_CONTEXT_ARG_VAR_INIT);
  8399. #endif /* GL_EXT_fragment_lighting */
  8400. #ifdef GL_EXT_framebuffer_blit
  8401. CONST_CAST(GLEW_EXT_framebuffer_blit) = _glewSearchExtension("GL_EXT_framebuffer_blit", extStart, extEnd);
  8402. if (glewExperimental || GLEW_EXT_framebuffer_blit) CONST_CAST(GLEW_EXT_framebuffer_blit) = !_glewInit_GL_EXT_framebuffer_blit(GLEW_CONTEXT_ARG_VAR_INIT);
  8403. #endif /* GL_EXT_framebuffer_blit */
  8404. #ifdef GL_EXT_framebuffer_multisample
  8405. CONST_CAST(GLEW_EXT_framebuffer_multisample) = _glewSearchExtension("GL_EXT_framebuffer_multisample", extStart, extEnd);
  8406. if (glewExperimental || GLEW_EXT_framebuffer_multisample) CONST_CAST(GLEW_EXT_framebuffer_multisample) = !_glewInit_GL_EXT_framebuffer_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  8407. #endif /* GL_EXT_framebuffer_multisample */
  8408. #ifdef GL_EXT_framebuffer_multisample_blit_scaled
  8409. CONST_CAST(GLEW_EXT_framebuffer_multisample_blit_scaled) = _glewSearchExtension("GL_EXT_framebuffer_multisample_blit_scaled", extStart, extEnd);
  8410. #endif /* GL_EXT_framebuffer_multisample_blit_scaled */
  8411. #ifdef GL_EXT_framebuffer_object
  8412. CONST_CAST(GLEW_EXT_framebuffer_object) = _glewSearchExtension("GL_EXT_framebuffer_object", extStart, extEnd);
  8413. if (glewExperimental || GLEW_EXT_framebuffer_object) CONST_CAST(GLEW_EXT_framebuffer_object) = !_glewInit_GL_EXT_framebuffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8414. #endif /* GL_EXT_framebuffer_object */
  8415. #ifdef GL_EXT_framebuffer_sRGB
  8416. CONST_CAST(GLEW_EXT_framebuffer_sRGB) = _glewSearchExtension("GL_EXT_framebuffer_sRGB", extStart, extEnd);
  8417. #endif /* GL_EXT_framebuffer_sRGB */
  8418. #ifdef GL_EXT_geometry_shader4
  8419. CONST_CAST(GLEW_EXT_geometry_shader4) = _glewSearchExtension("GL_EXT_geometry_shader4", extStart, extEnd);
  8420. if (glewExperimental || GLEW_EXT_geometry_shader4) CONST_CAST(GLEW_EXT_geometry_shader4) = !_glewInit_GL_EXT_geometry_shader4(GLEW_CONTEXT_ARG_VAR_INIT);
  8421. #endif /* GL_EXT_geometry_shader4 */
  8422. #ifdef GL_EXT_gpu_program_parameters
  8423. CONST_CAST(GLEW_EXT_gpu_program_parameters) = _glewSearchExtension("GL_EXT_gpu_program_parameters", extStart, extEnd);
  8424. if (glewExperimental || GLEW_EXT_gpu_program_parameters) CONST_CAST(GLEW_EXT_gpu_program_parameters) = !_glewInit_GL_EXT_gpu_program_parameters(GLEW_CONTEXT_ARG_VAR_INIT);
  8425. #endif /* GL_EXT_gpu_program_parameters */
  8426. #ifdef GL_EXT_gpu_shader4
  8427. CONST_CAST(GLEW_EXT_gpu_shader4) = _glewSearchExtension("GL_EXT_gpu_shader4", extStart, extEnd);
  8428. if (glewExperimental || GLEW_EXT_gpu_shader4) CONST_CAST(GLEW_EXT_gpu_shader4) = !_glewInit_GL_EXT_gpu_shader4(GLEW_CONTEXT_ARG_VAR_INIT);
  8429. #endif /* GL_EXT_gpu_shader4 */
  8430. #ifdef GL_EXT_histogram
  8431. CONST_CAST(GLEW_EXT_histogram) = _glewSearchExtension("GL_EXT_histogram", extStart, extEnd);
  8432. if (glewExperimental || GLEW_EXT_histogram) CONST_CAST(GLEW_EXT_histogram) = !_glewInit_GL_EXT_histogram(GLEW_CONTEXT_ARG_VAR_INIT);
  8433. #endif /* GL_EXT_histogram */
  8434. #ifdef GL_EXT_index_array_formats
  8435. CONST_CAST(GLEW_EXT_index_array_formats) = _glewSearchExtension("GL_EXT_index_array_formats", extStart, extEnd);
  8436. #endif /* GL_EXT_index_array_formats */
  8437. #ifdef GL_EXT_index_func
  8438. CONST_CAST(GLEW_EXT_index_func) = _glewSearchExtension("GL_EXT_index_func", extStart, extEnd);
  8439. if (glewExperimental || GLEW_EXT_index_func) CONST_CAST(GLEW_EXT_index_func) = !_glewInit_GL_EXT_index_func(GLEW_CONTEXT_ARG_VAR_INIT);
  8440. #endif /* GL_EXT_index_func */
  8441. #ifdef GL_EXT_index_material
  8442. CONST_CAST(GLEW_EXT_index_material) = _glewSearchExtension("GL_EXT_index_material", extStart, extEnd);
  8443. if (glewExperimental || GLEW_EXT_index_material) CONST_CAST(GLEW_EXT_index_material) = !_glewInit_GL_EXT_index_material(GLEW_CONTEXT_ARG_VAR_INIT);
  8444. #endif /* GL_EXT_index_material */
  8445. #ifdef GL_EXT_index_texture
  8446. CONST_CAST(GLEW_EXT_index_texture) = _glewSearchExtension("GL_EXT_index_texture", extStart, extEnd);
  8447. #endif /* GL_EXT_index_texture */
  8448. #ifdef GL_EXT_light_texture
  8449. CONST_CAST(GLEW_EXT_light_texture) = _glewSearchExtension("GL_EXT_light_texture", extStart, extEnd);
  8450. if (glewExperimental || GLEW_EXT_light_texture) CONST_CAST(GLEW_EXT_light_texture) = !_glewInit_GL_EXT_light_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8451. #endif /* GL_EXT_light_texture */
  8452. #ifdef GL_EXT_misc_attribute
  8453. CONST_CAST(GLEW_EXT_misc_attribute) = _glewSearchExtension("GL_EXT_misc_attribute", extStart, extEnd);
  8454. #endif /* GL_EXT_misc_attribute */
  8455. #ifdef GL_EXT_multi_draw_arrays
  8456. CONST_CAST(GLEW_EXT_multi_draw_arrays) = _glewSearchExtension("GL_EXT_multi_draw_arrays", extStart, extEnd);
  8457. if (glewExperimental || GLEW_EXT_multi_draw_arrays) CONST_CAST(GLEW_EXT_multi_draw_arrays) = !_glewInit_GL_EXT_multi_draw_arrays(GLEW_CONTEXT_ARG_VAR_INIT);
  8458. #endif /* GL_EXT_multi_draw_arrays */
  8459. #ifdef GL_EXT_multisample
  8460. CONST_CAST(GLEW_EXT_multisample) = _glewSearchExtension("GL_EXT_multisample", extStart, extEnd);
  8461. if (glewExperimental || GLEW_EXT_multisample) CONST_CAST(GLEW_EXT_multisample) = !_glewInit_GL_EXT_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  8462. #endif /* GL_EXT_multisample */
  8463. #ifdef GL_EXT_packed_depth_stencil
  8464. CONST_CAST(GLEW_EXT_packed_depth_stencil) = _glewSearchExtension("GL_EXT_packed_depth_stencil", extStart, extEnd);
  8465. #endif /* GL_EXT_packed_depth_stencil */
  8466. #ifdef GL_EXT_packed_float
  8467. CONST_CAST(GLEW_EXT_packed_float) = _glewSearchExtension("GL_EXT_packed_float", extStart, extEnd);
  8468. #endif /* GL_EXT_packed_float */
  8469. #ifdef GL_EXT_packed_pixels
  8470. CONST_CAST(GLEW_EXT_packed_pixels) = _glewSearchExtension("GL_EXT_packed_pixels", extStart, extEnd);
  8471. #endif /* GL_EXT_packed_pixels */
  8472. #ifdef GL_EXT_paletted_texture
  8473. CONST_CAST(GLEW_EXT_paletted_texture) = _glewSearchExtension("GL_EXT_paletted_texture", extStart, extEnd);
  8474. if (glewExperimental || GLEW_EXT_paletted_texture) CONST_CAST(GLEW_EXT_paletted_texture) = !_glewInit_GL_EXT_paletted_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8475. #endif /* GL_EXT_paletted_texture */
  8476. #ifdef GL_EXT_pixel_buffer_object
  8477. CONST_CAST(GLEW_EXT_pixel_buffer_object) = _glewSearchExtension("GL_EXT_pixel_buffer_object", extStart, extEnd);
  8478. #endif /* GL_EXT_pixel_buffer_object */
  8479. #ifdef GL_EXT_pixel_transform
  8480. CONST_CAST(GLEW_EXT_pixel_transform) = _glewSearchExtension("GL_EXT_pixel_transform", extStart, extEnd);
  8481. if (glewExperimental || GLEW_EXT_pixel_transform) CONST_CAST(GLEW_EXT_pixel_transform) = !_glewInit_GL_EXT_pixel_transform(GLEW_CONTEXT_ARG_VAR_INIT);
  8482. #endif /* GL_EXT_pixel_transform */
  8483. #ifdef GL_EXT_pixel_transform_color_table
  8484. CONST_CAST(GLEW_EXT_pixel_transform_color_table) = _glewSearchExtension("GL_EXT_pixel_transform_color_table", extStart, extEnd);
  8485. #endif /* GL_EXT_pixel_transform_color_table */
  8486. #ifdef GL_EXT_point_parameters
  8487. CONST_CAST(GLEW_EXT_point_parameters) = _glewSearchExtension("GL_EXT_point_parameters", extStart, extEnd);
  8488. if (glewExperimental || GLEW_EXT_point_parameters) CONST_CAST(GLEW_EXT_point_parameters) = !_glewInit_GL_EXT_point_parameters(GLEW_CONTEXT_ARG_VAR_INIT);
  8489. #endif /* GL_EXT_point_parameters */
  8490. #ifdef GL_EXT_polygon_offset
  8491. CONST_CAST(GLEW_EXT_polygon_offset) = _glewSearchExtension("GL_EXT_polygon_offset", extStart, extEnd);
  8492. if (glewExperimental || GLEW_EXT_polygon_offset) CONST_CAST(GLEW_EXT_polygon_offset) = !_glewInit_GL_EXT_polygon_offset(GLEW_CONTEXT_ARG_VAR_INIT);
  8493. #endif /* GL_EXT_polygon_offset */
  8494. #ifdef GL_EXT_provoking_vertex
  8495. CONST_CAST(GLEW_EXT_provoking_vertex) = _glewSearchExtension("GL_EXT_provoking_vertex", extStart, extEnd);
  8496. if (glewExperimental || GLEW_EXT_provoking_vertex) CONST_CAST(GLEW_EXT_provoking_vertex) = !_glewInit_GL_EXT_provoking_vertex(GLEW_CONTEXT_ARG_VAR_INIT);
  8497. #endif /* GL_EXT_provoking_vertex */
  8498. #ifdef GL_EXT_rescale_normal
  8499. CONST_CAST(GLEW_EXT_rescale_normal) = _glewSearchExtension("GL_EXT_rescale_normal", extStart, extEnd);
  8500. #endif /* GL_EXT_rescale_normal */
  8501. #ifdef GL_EXT_scene_marker
  8502. CONST_CAST(GLEW_EXT_scene_marker) = _glewSearchExtension("GL_EXT_scene_marker", extStart, extEnd);
  8503. if (glewExperimental || GLEW_EXT_scene_marker) CONST_CAST(GLEW_EXT_scene_marker) = !_glewInit_GL_EXT_scene_marker(GLEW_CONTEXT_ARG_VAR_INIT);
  8504. #endif /* GL_EXT_scene_marker */
  8505. #ifdef GL_EXT_secondary_color
  8506. CONST_CAST(GLEW_EXT_secondary_color) = _glewSearchExtension("GL_EXT_secondary_color", extStart, extEnd);
  8507. if (glewExperimental || GLEW_EXT_secondary_color) CONST_CAST(GLEW_EXT_secondary_color) = !_glewInit_GL_EXT_secondary_color(GLEW_CONTEXT_ARG_VAR_INIT);
  8508. #endif /* GL_EXT_secondary_color */
  8509. #ifdef GL_EXT_separate_shader_objects
  8510. CONST_CAST(GLEW_EXT_separate_shader_objects) = _glewSearchExtension("GL_EXT_separate_shader_objects", extStart, extEnd);
  8511. if (glewExperimental || GLEW_EXT_separate_shader_objects) CONST_CAST(GLEW_EXT_separate_shader_objects) = !_glewInit_GL_EXT_separate_shader_objects(GLEW_CONTEXT_ARG_VAR_INIT);
  8512. #endif /* GL_EXT_separate_shader_objects */
  8513. #ifdef GL_EXT_separate_specular_color
  8514. CONST_CAST(GLEW_EXT_separate_specular_color) = _glewSearchExtension("GL_EXT_separate_specular_color", extStart, extEnd);
  8515. #endif /* GL_EXT_separate_specular_color */
  8516. #ifdef GL_EXT_shader_image_load_store
  8517. CONST_CAST(GLEW_EXT_shader_image_load_store) = _glewSearchExtension("GL_EXT_shader_image_load_store", extStart, extEnd);
  8518. if (glewExperimental || GLEW_EXT_shader_image_load_store) CONST_CAST(GLEW_EXT_shader_image_load_store) = !_glewInit_GL_EXT_shader_image_load_store(GLEW_CONTEXT_ARG_VAR_INIT);
  8519. #endif /* GL_EXT_shader_image_load_store */
  8520. #ifdef GL_EXT_shadow_funcs
  8521. CONST_CAST(GLEW_EXT_shadow_funcs) = _glewSearchExtension("GL_EXT_shadow_funcs", extStart, extEnd);
  8522. #endif /* GL_EXT_shadow_funcs */
  8523. #ifdef GL_EXT_shared_texture_palette
  8524. CONST_CAST(GLEW_EXT_shared_texture_palette) = _glewSearchExtension("GL_EXT_shared_texture_palette", extStart, extEnd);
  8525. #endif /* GL_EXT_shared_texture_palette */
  8526. #ifdef GL_EXT_stencil_clear_tag
  8527. CONST_CAST(GLEW_EXT_stencil_clear_tag) = _glewSearchExtension("GL_EXT_stencil_clear_tag", extStart, extEnd);
  8528. #endif /* GL_EXT_stencil_clear_tag */
  8529. #ifdef GL_EXT_stencil_two_side
  8530. CONST_CAST(GLEW_EXT_stencil_two_side) = _glewSearchExtension("GL_EXT_stencil_two_side", extStart, extEnd);
  8531. if (glewExperimental || GLEW_EXT_stencil_two_side) CONST_CAST(GLEW_EXT_stencil_two_side) = !_glewInit_GL_EXT_stencil_two_side(GLEW_CONTEXT_ARG_VAR_INIT);
  8532. #endif /* GL_EXT_stencil_two_side */
  8533. #ifdef GL_EXT_stencil_wrap
  8534. CONST_CAST(GLEW_EXT_stencil_wrap) = _glewSearchExtension("GL_EXT_stencil_wrap", extStart, extEnd);
  8535. #endif /* GL_EXT_stencil_wrap */
  8536. #ifdef GL_EXT_subtexture
  8537. CONST_CAST(GLEW_EXT_subtexture) = _glewSearchExtension("GL_EXT_subtexture", extStart, extEnd);
  8538. if (glewExperimental || GLEW_EXT_subtexture) CONST_CAST(GLEW_EXT_subtexture) = !_glewInit_GL_EXT_subtexture(GLEW_CONTEXT_ARG_VAR_INIT);
  8539. #endif /* GL_EXT_subtexture */
  8540. #ifdef GL_EXT_texture
  8541. CONST_CAST(GLEW_EXT_texture) = _glewSearchExtension("GL_EXT_texture", extStart, extEnd);
  8542. #endif /* GL_EXT_texture */
  8543. #ifdef GL_EXT_texture3D
  8544. CONST_CAST(GLEW_EXT_texture3D) = _glewSearchExtension("GL_EXT_texture3D", extStart, extEnd);
  8545. if (glewExperimental || GLEW_EXT_texture3D) CONST_CAST(GLEW_EXT_texture3D) = !_glewInit_GL_EXT_texture3D(GLEW_CONTEXT_ARG_VAR_INIT);
  8546. #endif /* GL_EXT_texture3D */
  8547. #ifdef GL_EXT_texture_array
  8548. CONST_CAST(GLEW_EXT_texture_array) = _glewSearchExtension("GL_EXT_texture_array", extStart, extEnd);
  8549. if (glewExperimental || GLEW_EXT_texture_array) CONST_CAST(GLEW_EXT_texture_array) = !_glewInit_GL_EXT_texture_array(GLEW_CONTEXT_ARG_VAR_INIT);
  8550. #endif /* GL_EXT_texture_array */
  8551. #ifdef GL_EXT_texture_buffer_object
  8552. CONST_CAST(GLEW_EXT_texture_buffer_object) = _glewSearchExtension("GL_EXT_texture_buffer_object", extStart, extEnd);
  8553. if (glewExperimental || GLEW_EXT_texture_buffer_object) CONST_CAST(GLEW_EXT_texture_buffer_object) = !_glewInit_GL_EXT_texture_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8554. #endif /* GL_EXT_texture_buffer_object */
  8555. #ifdef GL_EXT_texture_compression_dxt1
  8556. CONST_CAST(GLEW_EXT_texture_compression_dxt1) = _glewSearchExtension("GL_EXT_texture_compression_dxt1", extStart, extEnd);
  8557. #endif /* GL_EXT_texture_compression_dxt1 */
  8558. #ifdef GL_EXT_texture_compression_latc
  8559. CONST_CAST(GLEW_EXT_texture_compression_latc) = _glewSearchExtension("GL_EXT_texture_compression_latc", extStart, extEnd);
  8560. #endif /* GL_EXT_texture_compression_latc */
  8561. #ifdef GL_EXT_texture_compression_rgtc
  8562. CONST_CAST(GLEW_EXT_texture_compression_rgtc) = _glewSearchExtension("GL_EXT_texture_compression_rgtc", extStart, extEnd);
  8563. #endif /* GL_EXT_texture_compression_rgtc */
  8564. #ifdef GL_EXT_texture_compression_s3tc
  8565. CONST_CAST(GLEW_EXT_texture_compression_s3tc) = _glewSearchExtension("GL_EXT_texture_compression_s3tc", extStart, extEnd);
  8566. #endif /* GL_EXT_texture_compression_s3tc */
  8567. #ifdef GL_EXT_texture_cube_map
  8568. CONST_CAST(GLEW_EXT_texture_cube_map) = _glewSearchExtension("GL_EXT_texture_cube_map", extStart, extEnd);
  8569. #endif /* GL_EXT_texture_cube_map */
  8570. #ifdef GL_EXT_texture_edge_clamp
  8571. CONST_CAST(GLEW_EXT_texture_edge_clamp) = _glewSearchExtension("GL_EXT_texture_edge_clamp", extStart, extEnd);
  8572. #endif /* GL_EXT_texture_edge_clamp */
  8573. #ifdef GL_EXT_texture_env
  8574. CONST_CAST(GLEW_EXT_texture_env) = _glewSearchExtension("GL_EXT_texture_env", extStart, extEnd);
  8575. #endif /* GL_EXT_texture_env */
  8576. #ifdef GL_EXT_texture_env_add
  8577. CONST_CAST(GLEW_EXT_texture_env_add) = _glewSearchExtension("GL_EXT_texture_env_add", extStart, extEnd);
  8578. #endif /* GL_EXT_texture_env_add */
  8579. #ifdef GL_EXT_texture_env_combine
  8580. CONST_CAST(GLEW_EXT_texture_env_combine) = _glewSearchExtension("GL_EXT_texture_env_combine", extStart, extEnd);
  8581. #endif /* GL_EXT_texture_env_combine */
  8582. #ifdef GL_EXT_texture_env_dot3
  8583. CONST_CAST(GLEW_EXT_texture_env_dot3) = _glewSearchExtension("GL_EXT_texture_env_dot3", extStart, extEnd);
  8584. #endif /* GL_EXT_texture_env_dot3 */
  8585. #ifdef GL_EXT_texture_filter_anisotropic
  8586. CONST_CAST(GLEW_EXT_texture_filter_anisotropic) = _glewSearchExtension("GL_EXT_texture_filter_anisotropic", extStart, extEnd);
  8587. #endif /* GL_EXT_texture_filter_anisotropic */
  8588. #ifdef GL_EXT_texture_integer
  8589. CONST_CAST(GLEW_EXT_texture_integer) = _glewSearchExtension("GL_EXT_texture_integer", extStart, extEnd);
  8590. if (glewExperimental || GLEW_EXT_texture_integer) CONST_CAST(GLEW_EXT_texture_integer) = !_glewInit_GL_EXT_texture_integer(GLEW_CONTEXT_ARG_VAR_INIT);
  8591. #endif /* GL_EXT_texture_integer */
  8592. #ifdef GL_EXT_texture_lod_bias
  8593. CONST_CAST(GLEW_EXT_texture_lod_bias) = _glewSearchExtension("GL_EXT_texture_lod_bias", extStart, extEnd);
  8594. #endif /* GL_EXT_texture_lod_bias */
  8595. #ifdef GL_EXT_texture_mirror_clamp
  8596. CONST_CAST(GLEW_EXT_texture_mirror_clamp) = _glewSearchExtension("GL_EXT_texture_mirror_clamp", extStart, extEnd);
  8597. #endif /* GL_EXT_texture_mirror_clamp */
  8598. #ifdef GL_EXT_texture_object
  8599. CONST_CAST(GLEW_EXT_texture_object) = _glewSearchExtension("GL_EXT_texture_object", extStart, extEnd);
  8600. if (glewExperimental || GLEW_EXT_texture_object) CONST_CAST(GLEW_EXT_texture_object) = !_glewInit_GL_EXT_texture_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8601. #endif /* GL_EXT_texture_object */
  8602. #ifdef GL_EXT_texture_perturb_normal
  8603. CONST_CAST(GLEW_EXT_texture_perturb_normal) = _glewSearchExtension("GL_EXT_texture_perturb_normal", extStart, extEnd);
  8604. if (glewExperimental || GLEW_EXT_texture_perturb_normal) CONST_CAST(GLEW_EXT_texture_perturb_normal) = !_glewInit_GL_EXT_texture_perturb_normal(GLEW_CONTEXT_ARG_VAR_INIT);
  8605. #endif /* GL_EXT_texture_perturb_normal */
  8606. #ifdef GL_EXT_texture_rectangle
  8607. CONST_CAST(GLEW_EXT_texture_rectangle) = _glewSearchExtension("GL_EXT_texture_rectangle", extStart, extEnd);
  8608. #endif /* GL_EXT_texture_rectangle */
  8609. #ifdef GL_EXT_texture_sRGB
  8610. CONST_CAST(GLEW_EXT_texture_sRGB) = _glewSearchExtension("GL_EXT_texture_sRGB", extStart, extEnd);
  8611. #endif /* GL_EXT_texture_sRGB */
  8612. #ifdef GL_EXT_texture_sRGB_decode
  8613. CONST_CAST(GLEW_EXT_texture_sRGB_decode) = _glewSearchExtension("GL_EXT_texture_sRGB_decode", extStart, extEnd);
  8614. #endif /* GL_EXT_texture_sRGB_decode */
  8615. #ifdef GL_EXT_texture_shared_exponent
  8616. CONST_CAST(GLEW_EXT_texture_shared_exponent) = _glewSearchExtension("GL_EXT_texture_shared_exponent", extStart, extEnd);
  8617. #endif /* GL_EXT_texture_shared_exponent */
  8618. #ifdef GL_EXT_texture_snorm
  8619. CONST_CAST(GLEW_EXT_texture_snorm) = _glewSearchExtension("GL_EXT_texture_snorm", extStart, extEnd);
  8620. #endif /* GL_EXT_texture_snorm */
  8621. #ifdef GL_EXT_texture_swizzle
  8622. CONST_CAST(GLEW_EXT_texture_swizzle) = _glewSearchExtension("GL_EXT_texture_swizzle", extStart, extEnd);
  8623. #endif /* GL_EXT_texture_swizzle */
  8624. #ifdef GL_EXT_timer_query
  8625. CONST_CAST(GLEW_EXT_timer_query) = _glewSearchExtension("GL_EXT_timer_query", extStart, extEnd);
  8626. if (glewExperimental || GLEW_EXT_timer_query) CONST_CAST(GLEW_EXT_timer_query) = !_glewInit_GL_EXT_timer_query(GLEW_CONTEXT_ARG_VAR_INIT);
  8627. #endif /* GL_EXT_timer_query */
  8628. #ifdef GL_EXT_transform_feedback
  8629. CONST_CAST(GLEW_EXT_transform_feedback) = _glewSearchExtension("GL_EXT_transform_feedback", extStart, extEnd);
  8630. if (glewExperimental || GLEW_EXT_transform_feedback) CONST_CAST(GLEW_EXT_transform_feedback) = !_glewInit_GL_EXT_transform_feedback(GLEW_CONTEXT_ARG_VAR_INIT);
  8631. #endif /* GL_EXT_transform_feedback */
  8632. #ifdef GL_EXT_vertex_array
  8633. CONST_CAST(GLEW_EXT_vertex_array) = _glewSearchExtension("GL_EXT_vertex_array", extStart, extEnd);
  8634. if (glewExperimental || GLEW_EXT_vertex_array) CONST_CAST(GLEW_EXT_vertex_array) = !_glewInit_GL_EXT_vertex_array(GLEW_CONTEXT_ARG_VAR_INIT);
  8635. #endif /* GL_EXT_vertex_array */
  8636. #ifdef GL_EXT_vertex_array_bgra
  8637. CONST_CAST(GLEW_EXT_vertex_array_bgra) = _glewSearchExtension("GL_EXT_vertex_array_bgra", extStart, extEnd);
  8638. #endif /* GL_EXT_vertex_array_bgra */
  8639. #ifdef GL_EXT_vertex_attrib_64bit
  8640. CONST_CAST(GLEW_EXT_vertex_attrib_64bit) = _glewSearchExtension("GL_EXT_vertex_attrib_64bit", extStart, extEnd);
  8641. if (glewExperimental || GLEW_EXT_vertex_attrib_64bit) CONST_CAST(GLEW_EXT_vertex_attrib_64bit) = !_glewInit_GL_EXT_vertex_attrib_64bit(GLEW_CONTEXT_ARG_VAR_INIT);
  8642. #endif /* GL_EXT_vertex_attrib_64bit */
  8643. #ifdef GL_EXT_vertex_shader
  8644. CONST_CAST(GLEW_EXT_vertex_shader) = _glewSearchExtension("GL_EXT_vertex_shader", extStart, extEnd);
  8645. if (glewExperimental || GLEW_EXT_vertex_shader) CONST_CAST(GLEW_EXT_vertex_shader) = !_glewInit_GL_EXT_vertex_shader(GLEW_CONTEXT_ARG_VAR_INIT);
  8646. #endif /* GL_EXT_vertex_shader */
  8647. #ifdef GL_EXT_vertex_weighting
  8648. CONST_CAST(GLEW_EXT_vertex_weighting) = _glewSearchExtension("GL_EXT_vertex_weighting", extStart, extEnd);
  8649. if (glewExperimental || GLEW_EXT_vertex_weighting) CONST_CAST(GLEW_EXT_vertex_weighting) = !_glewInit_GL_EXT_vertex_weighting(GLEW_CONTEXT_ARG_VAR_INIT);
  8650. #endif /* GL_EXT_vertex_weighting */
  8651. #ifdef GL_EXT_x11_sync_object
  8652. CONST_CAST(GLEW_EXT_x11_sync_object) = _glewSearchExtension("GL_EXT_x11_sync_object", extStart, extEnd);
  8653. if (glewExperimental || GLEW_EXT_x11_sync_object) CONST_CAST(GLEW_EXT_x11_sync_object) = !_glewInit_GL_EXT_x11_sync_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8654. #endif /* GL_EXT_x11_sync_object */
  8655. #ifdef GL_GREMEDY_frame_terminator
  8656. CONST_CAST(GLEW_GREMEDY_frame_terminator) = _glewSearchExtension("GL_GREMEDY_frame_terminator", extStart, extEnd);
  8657. if (glewExperimental || GLEW_GREMEDY_frame_terminator) CONST_CAST(GLEW_GREMEDY_frame_terminator) = !_glewInit_GL_GREMEDY_frame_terminator(GLEW_CONTEXT_ARG_VAR_INIT);
  8658. #endif /* GL_GREMEDY_frame_terminator */
  8659. #ifdef GL_GREMEDY_string_marker
  8660. CONST_CAST(GLEW_GREMEDY_string_marker) = _glewSearchExtension("GL_GREMEDY_string_marker", extStart, extEnd);
  8661. if (glewExperimental || GLEW_GREMEDY_string_marker) CONST_CAST(GLEW_GREMEDY_string_marker) = !_glewInit_GL_GREMEDY_string_marker(GLEW_CONTEXT_ARG_VAR_INIT);
  8662. #endif /* GL_GREMEDY_string_marker */
  8663. #ifdef GL_HP_convolution_border_modes
  8664. CONST_CAST(GLEW_HP_convolution_border_modes) = _glewSearchExtension("GL_HP_convolution_border_modes", extStart, extEnd);
  8665. #endif /* GL_HP_convolution_border_modes */
  8666. #ifdef GL_HP_image_transform
  8667. CONST_CAST(GLEW_HP_image_transform) = _glewSearchExtension("GL_HP_image_transform", extStart, extEnd);
  8668. if (glewExperimental || GLEW_HP_image_transform) CONST_CAST(GLEW_HP_image_transform) = !_glewInit_GL_HP_image_transform(GLEW_CONTEXT_ARG_VAR_INIT);
  8669. #endif /* GL_HP_image_transform */
  8670. #ifdef GL_HP_occlusion_test
  8671. CONST_CAST(GLEW_HP_occlusion_test) = _glewSearchExtension("GL_HP_occlusion_test", extStart, extEnd);
  8672. #endif /* GL_HP_occlusion_test */
  8673. #ifdef GL_HP_texture_lighting
  8674. CONST_CAST(GLEW_HP_texture_lighting) = _glewSearchExtension("GL_HP_texture_lighting", extStart, extEnd);
  8675. #endif /* GL_HP_texture_lighting */
  8676. #ifdef GL_IBM_cull_vertex
  8677. CONST_CAST(GLEW_IBM_cull_vertex) = _glewSearchExtension("GL_IBM_cull_vertex", extStart, extEnd);
  8678. #endif /* GL_IBM_cull_vertex */
  8679. #ifdef GL_IBM_multimode_draw_arrays
  8680. CONST_CAST(GLEW_IBM_multimode_draw_arrays) = _glewSearchExtension("GL_IBM_multimode_draw_arrays", extStart, extEnd);
  8681. if (glewExperimental || GLEW_IBM_multimode_draw_arrays) CONST_CAST(GLEW_IBM_multimode_draw_arrays) = !_glewInit_GL_IBM_multimode_draw_arrays(GLEW_CONTEXT_ARG_VAR_INIT);
  8682. #endif /* GL_IBM_multimode_draw_arrays */
  8683. #ifdef GL_IBM_rasterpos_clip
  8684. CONST_CAST(GLEW_IBM_rasterpos_clip) = _glewSearchExtension("GL_IBM_rasterpos_clip", extStart, extEnd);
  8685. #endif /* GL_IBM_rasterpos_clip */
  8686. #ifdef GL_IBM_static_data
  8687. CONST_CAST(GLEW_IBM_static_data) = _glewSearchExtension("GL_IBM_static_data", extStart, extEnd);
  8688. #endif /* GL_IBM_static_data */
  8689. #ifdef GL_IBM_texture_mirrored_repeat
  8690. CONST_CAST(GLEW_IBM_texture_mirrored_repeat) = _glewSearchExtension("GL_IBM_texture_mirrored_repeat", extStart, extEnd);
  8691. #endif /* GL_IBM_texture_mirrored_repeat */
  8692. #ifdef GL_IBM_vertex_array_lists
  8693. CONST_CAST(GLEW_IBM_vertex_array_lists) = _glewSearchExtension("GL_IBM_vertex_array_lists", extStart, extEnd);
  8694. if (glewExperimental || GLEW_IBM_vertex_array_lists) CONST_CAST(GLEW_IBM_vertex_array_lists) = !_glewInit_GL_IBM_vertex_array_lists(GLEW_CONTEXT_ARG_VAR_INIT);
  8695. #endif /* GL_IBM_vertex_array_lists */
  8696. #ifdef GL_INGR_color_clamp
  8697. CONST_CAST(GLEW_INGR_color_clamp) = _glewSearchExtension("GL_INGR_color_clamp", extStart, extEnd);
  8698. #endif /* GL_INGR_color_clamp */
  8699. #ifdef GL_INGR_interlace_read
  8700. CONST_CAST(GLEW_INGR_interlace_read) = _glewSearchExtension("GL_INGR_interlace_read", extStart, extEnd);
  8701. #endif /* GL_INGR_interlace_read */
  8702. #ifdef GL_INTEL_map_texture
  8703. CONST_CAST(GLEW_INTEL_map_texture) = _glewSearchExtension("GL_INTEL_map_texture", extStart, extEnd);
  8704. if (glewExperimental || GLEW_INTEL_map_texture) CONST_CAST(GLEW_INTEL_map_texture) = !_glewInit_GL_INTEL_map_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8705. #endif /* GL_INTEL_map_texture */
  8706. #ifdef GL_INTEL_parallel_arrays
  8707. CONST_CAST(GLEW_INTEL_parallel_arrays) = _glewSearchExtension("GL_INTEL_parallel_arrays", extStart, extEnd);
  8708. if (glewExperimental || GLEW_INTEL_parallel_arrays) CONST_CAST(GLEW_INTEL_parallel_arrays) = !_glewInit_GL_INTEL_parallel_arrays(GLEW_CONTEXT_ARG_VAR_INIT);
  8709. #endif /* GL_INTEL_parallel_arrays */
  8710. #ifdef GL_INTEL_texture_scissor
  8711. CONST_CAST(GLEW_INTEL_texture_scissor) = _glewSearchExtension("GL_INTEL_texture_scissor", extStart, extEnd);
  8712. if (glewExperimental || GLEW_INTEL_texture_scissor) CONST_CAST(GLEW_INTEL_texture_scissor) = !_glewInit_GL_INTEL_texture_scissor(GLEW_CONTEXT_ARG_VAR_INIT);
  8713. #endif /* GL_INTEL_texture_scissor */
  8714. #ifdef GL_KHR_debug
  8715. CONST_CAST(GLEW_KHR_debug) = _glewSearchExtension("GL_KHR_debug", extStart, extEnd);
  8716. if (glewExperimental || GLEW_KHR_debug) CONST_CAST(GLEW_KHR_debug) = !_glewInit_GL_KHR_debug(GLEW_CONTEXT_ARG_VAR_INIT);
  8717. #endif /* GL_KHR_debug */
  8718. #ifdef GL_KHR_texture_compression_astc_ldr
  8719. CONST_CAST(GLEW_KHR_texture_compression_astc_ldr) = _glewSearchExtension("GL_KHR_texture_compression_astc_ldr", extStart, extEnd);
  8720. #endif /* GL_KHR_texture_compression_astc_ldr */
  8721. #ifdef GL_KTX_buffer_region
  8722. CONST_CAST(GLEW_KTX_buffer_region) = _glewSearchExtension("GL_KTX_buffer_region", extStart, extEnd);
  8723. if (glewExperimental || GLEW_KTX_buffer_region) CONST_CAST(GLEW_KTX_buffer_region) = !_glewInit_GL_KTX_buffer_region(GLEW_CONTEXT_ARG_VAR_INIT);
  8724. #endif /* GL_KTX_buffer_region */
  8725. #ifdef GL_MESAX_texture_stack
  8726. CONST_CAST(GLEW_MESAX_texture_stack) = _glewSearchExtension("GL_MESAX_texture_stack", extStart, extEnd);
  8727. #endif /* GL_MESAX_texture_stack */
  8728. #ifdef GL_MESA_pack_invert
  8729. CONST_CAST(GLEW_MESA_pack_invert) = _glewSearchExtension("GL_MESA_pack_invert", extStart, extEnd);
  8730. #endif /* GL_MESA_pack_invert */
  8731. #ifdef GL_MESA_resize_buffers
  8732. CONST_CAST(GLEW_MESA_resize_buffers) = _glewSearchExtension("GL_MESA_resize_buffers", extStart, extEnd);
  8733. if (glewExperimental || GLEW_MESA_resize_buffers) CONST_CAST(GLEW_MESA_resize_buffers) = !_glewInit_GL_MESA_resize_buffers(GLEW_CONTEXT_ARG_VAR_INIT);
  8734. #endif /* GL_MESA_resize_buffers */
  8735. #ifdef GL_MESA_window_pos
  8736. CONST_CAST(GLEW_MESA_window_pos) = _glewSearchExtension("GL_MESA_window_pos", extStart, extEnd);
  8737. if (glewExperimental || GLEW_MESA_window_pos) CONST_CAST(GLEW_MESA_window_pos) = !_glewInit_GL_MESA_window_pos(GLEW_CONTEXT_ARG_VAR_INIT);
  8738. #endif /* GL_MESA_window_pos */
  8739. #ifdef GL_MESA_ycbcr_texture
  8740. CONST_CAST(GLEW_MESA_ycbcr_texture) = _glewSearchExtension("GL_MESA_ycbcr_texture", extStart, extEnd);
  8741. #endif /* GL_MESA_ycbcr_texture */
  8742. #ifdef GL_NVX_conditional_render
  8743. CONST_CAST(GLEW_NVX_conditional_render) = _glewSearchExtension("GL_NVX_conditional_render", extStart, extEnd);
  8744. if (glewExperimental || GLEW_NVX_conditional_render) CONST_CAST(GLEW_NVX_conditional_render) = !_glewInit_GL_NVX_conditional_render(GLEW_CONTEXT_ARG_VAR_INIT);
  8745. #endif /* GL_NVX_conditional_render */
  8746. #ifdef GL_NVX_gpu_memory_info
  8747. CONST_CAST(GLEW_NVX_gpu_memory_info) = _glewSearchExtension("GL_NVX_gpu_memory_info", extStart, extEnd);
  8748. #endif /* GL_NVX_gpu_memory_info */
  8749. #ifdef GL_NV_bindless_multi_draw_indirect
  8750. CONST_CAST(GLEW_NV_bindless_multi_draw_indirect) = _glewSearchExtension("GL_NV_bindless_multi_draw_indirect", extStart, extEnd);
  8751. if (glewExperimental || GLEW_NV_bindless_multi_draw_indirect) CONST_CAST(GLEW_NV_bindless_multi_draw_indirect) = !_glewInit_GL_NV_bindless_multi_draw_indirect(GLEW_CONTEXT_ARG_VAR_INIT);
  8752. #endif /* GL_NV_bindless_multi_draw_indirect */
  8753. #ifdef GL_NV_bindless_texture
  8754. CONST_CAST(GLEW_NV_bindless_texture) = _glewSearchExtension("GL_NV_bindless_texture", extStart, extEnd);
  8755. if (glewExperimental || GLEW_NV_bindless_texture) CONST_CAST(GLEW_NV_bindless_texture) = !_glewInit_GL_NV_bindless_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8756. #endif /* GL_NV_bindless_texture */
  8757. #ifdef GL_NV_blend_equation_advanced
  8758. CONST_CAST(GLEW_NV_blend_equation_advanced) = _glewSearchExtension("GL_NV_blend_equation_advanced", extStart, extEnd);
  8759. if (glewExperimental || GLEW_NV_blend_equation_advanced) CONST_CAST(GLEW_NV_blend_equation_advanced) = !_glewInit_GL_NV_blend_equation_advanced(GLEW_CONTEXT_ARG_VAR_INIT);
  8760. #endif /* GL_NV_blend_equation_advanced */
  8761. #ifdef GL_NV_blend_equation_advanced_coherent
  8762. CONST_CAST(GLEW_NV_blend_equation_advanced_coherent) = _glewSearchExtension("GL_NV_blend_equation_advanced_coherent", extStart, extEnd);
  8763. #endif /* GL_NV_blend_equation_advanced_coherent */
  8764. #ifdef GL_NV_blend_square
  8765. CONST_CAST(GLEW_NV_blend_square) = _glewSearchExtension("GL_NV_blend_square", extStart, extEnd);
  8766. #endif /* GL_NV_blend_square */
  8767. #ifdef GL_NV_compute_program5
  8768. CONST_CAST(GLEW_NV_compute_program5) = _glewSearchExtension("GL_NV_compute_program5", extStart, extEnd);
  8769. #endif /* GL_NV_compute_program5 */
  8770. #ifdef GL_NV_conditional_render
  8771. CONST_CAST(GLEW_NV_conditional_render) = _glewSearchExtension("GL_NV_conditional_render", extStart, extEnd);
  8772. if (glewExperimental || GLEW_NV_conditional_render) CONST_CAST(GLEW_NV_conditional_render) = !_glewInit_GL_NV_conditional_render(GLEW_CONTEXT_ARG_VAR_INIT);
  8773. #endif /* GL_NV_conditional_render */
  8774. #ifdef GL_NV_copy_depth_to_color
  8775. CONST_CAST(GLEW_NV_copy_depth_to_color) = _glewSearchExtension("GL_NV_copy_depth_to_color", extStart, extEnd);
  8776. #endif /* GL_NV_copy_depth_to_color */
  8777. #ifdef GL_NV_copy_image
  8778. CONST_CAST(GLEW_NV_copy_image) = _glewSearchExtension("GL_NV_copy_image", extStart, extEnd);
  8779. if (glewExperimental || GLEW_NV_copy_image) CONST_CAST(GLEW_NV_copy_image) = !_glewInit_GL_NV_copy_image(GLEW_CONTEXT_ARG_VAR_INIT);
  8780. #endif /* GL_NV_copy_image */
  8781. #ifdef GL_NV_deep_texture3D
  8782. CONST_CAST(GLEW_NV_deep_texture3D) = _glewSearchExtension("GL_NV_deep_texture3D", extStart, extEnd);
  8783. #endif /* GL_NV_deep_texture3D */
  8784. #ifdef GL_NV_depth_buffer_float
  8785. CONST_CAST(GLEW_NV_depth_buffer_float) = _glewSearchExtension("GL_NV_depth_buffer_float", extStart, extEnd);
  8786. if (glewExperimental || GLEW_NV_depth_buffer_float) CONST_CAST(GLEW_NV_depth_buffer_float) = !_glewInit_GL_NV_depth_buffer_float(GLEW_CONTEXT_ARG_VAR_INIT);
  8787. #endif /* GL_NV_depth_buffer_float */
  8788. #ifdef GL_NV_depth_clamp
  8789. CONST_CAST(GLEW_NV_depth_clamp) = _glewSearchExtension("GL_NV_depth_clamp", extStart, extEnd);
  8790. #endif /* GL_NV_depth_clamp */
  8791. #ifdef GL_NV_depth_range_unclamped
  8792. CONST_CAST(GLEW_NV_depth_range_unclamped) = _glewSearchExtension("GL_NV_depth_range_unclamped", extStart, extEnd);
  8793. #endif /* GL_NV_depth_range_unclamped */
  8794. #ifdef GL_NV_draw_texture
  8795. CONST_CAST(GLEW_NV_draw_texture) = _glewSearchExtension("GL_NV_draw_texture", extStart, extEnd);
  8796. if (glewExperimental || GLEW_NV_draw_texture) CONST_CAST(GLEW_NV_draw_texture) = !_glewInit_GL_NV_draw_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  8797. #endif /* GL_NV_draw_texture */
  8798. #ifdef GL_NV_evaluators
  8799. CONST_CAST(GLEW_NV_evaluators) = _glewSearchExtension("GL_NV_evaluators", extStart, extEnd);
  8800. if (glewExperimental || GLEW_NV_evaluators) CONST_CAST(GLEW_NV_evaluators) = !_glewInit_GL_NV_evaluators(GLEW_CONTEXT_ARG_VAR_INIT);
  8801. #endif /* GL_NV_evaluators */
  8802. #ifdef GL_NV_explicit_multisample
  8803. CONST_CAST(GLEW_NV_explicit_multisample) = _glewSearchExtension("GL_NV_explicit_multisample", extStart, extEnd);
  8804. if (glewExperimental || GLEW_NV_explicit_multisample) CONST_CAST(GLEW_NV_explicit_multisample) = !_glewInit_GL_NV_explicit_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  8805. #endif /* GL_NV_explicit_multisample */
  8806. #ifdef GL_NV_fence
  8807. CONST_CAST(GLEW_NV_fence) = _glewSearchExtension("GL_NV_fence", extStart, extEnd);
  8808. if (glewExperimental || GLEW_NV_fence) CONST_CAST(GLEW_NV_fence) = !_glewInit_GL_NV_fence(GLEW_CONTEXT_ARG_VAR_INIT);
  8809. #endif /* GL_NV_fence */
  8810. #ifdef GL_NV_float_buffer
  8811. CONST_CAST(GLEW_NV_float_buffer) = _glewSearchExtension("GL_NV_float_buffer", extStart, extEnd);
  8812. #endif /* GL_NV_float_buffer */
  8813. #ifdef GL_NV_fog_distance
  8814. CONST_CAST(GLEW_NV_fog_distance) = _glewSearchExtension("GL_NV_fog_distance", extStart, extEnd);
  8815. #endif /* GL_NV_fog_distance */
  8816. #ifdef GL_NV_fragment_program
  8817. CONST_CAST(GLEW_NV_fragment_program) = _glewSearchExtension("GL_NV_fragment_program", extStart, extEnd);
  8818. if (glewExperimental || GLEW_NV_fragment_program) CONST_CAST(GLEW_NV_fragment_program) = !_glewInit_GL_NV_fragment_program(GLEW_CONTEXT_ARG_VAR_INIT);
  8819. #endif /* GL_NV_fragment_program */
  8820. #ifdef GL_NV_fragment_program2
  8821. CONST_CAST(GLEW_NV_fragment_program2) = _glewSearchExtension("GL_NV_fragment_program2", extStart, extEnd);
  8822. #endif /* GL_NV_fragment_program2 */
  8823. #ifdef GL_NV_fragment_program4
  8824. CONST_CAST(GLEW_NV_fragment_program4) = _glewSearchExtension("GL_NV_gpu_program4", extStart, extEnd);
  8825. #endif /* GL_NV_fragment_program4 */
  8826. #ifdef GL_NV_fragment_program_option
  8827. CONST_CAST(GLEW_NV_fragment_program_option) = _glewSearchExtension("GL_NV_fragment_program_option", extStart, extEnd);
  8828. #endif /* GL_NV_fragment_program_option */
  8829. #ifdef GL_NV_framebuffer_multisample_coverage
  8830. CONST_CAST(GLEW_NV_framebuffer_multisample_coverage) = _glewSearchExtension("GL_NV_framebuffer_multisample_coverage", extStart, extEnd);
  8831. if (glewExperimental || GLEW_NV_framebuffer_multisample_coverage) CONST_CAST(GLEW_NV_framebuffer_multisample_coverage) = !_glewInit_GL_NV_framebuffer_multisample_coverage(GLEW_CONTEXT_ARG_VAR_INIT);
  8832. #endif /* GL_NV_framebuffer_multisample_coverage */
  8833. #ifdef GL_NV_geometry_program4
  8834. CONST_CAST(GLEW_NV_geometry_program4) = _glewSearchExtension("GL_NV_gpu_program4", extStart, extEnd);
  8835. if (glewExperimental || GLEW_NV_geometry_program4) CONST_CAST(GLEW_NV_geometry_program4) = !_glewInit_GL_NV_geometry_program4(GLEW_CONTEXT_ARG_VAR_INIT);
  8836. #endif /* GL_NV_geometry_program4 */
  8837. #ifdef GL_NV_geometry_shader4
  8838. CONST_CAST(GLEW_NV_geometry_shader4) = _glewSearchExtension("GL_NV_geometry_shader4", extStart, extEnd);
  8839. #endif /* GL_NV_geometry_shader4 */
  8840. #ifdef GL_NV_gpu_program4
  8841. CONST_CAST(GLEW_NV_gpu_program4) = _glewSearchExtension("GL_NV_gpu_program4", extStart, extEnd);
  8842. if (glewExperimental || GLEW_NV_gpu_program4) CONST_CAST(GLEW_NV_gpu_program4) = !_glewInit_GL_NV_gpu_program4(GLEW_CONTEXT_ARG_VAR_INIT);
  8843. #endif /* GL_NV_gpu_program4 */
  8844. #ifdef GL_NV_gpu_program5
  8845. CONST_CAST(GLEW_NV_gpu_program5) = _glewSearchExtension("GL_NV_gpu_program5", extStart, extEnd);
  8846. #endif /* GL_NV_gpu_program5 */
  8847. #ifdef GL_NV_gpu_program5_mem_extended
  8848. CONST_CAST(GLEW_NV_gpu_program5_mem_extended) = _glewSearchExtension("GL_NV_gpu_program5_mem_extended", extStart, extEnd);
  8849. #endif /* GL_NV_gpu_program5_mem_extended */
  8850. #ifdef GL_NV_gpu_program_fp64
  8851. CONST_CAST(GLEW_NV_gpu_program_fp64) = _glewSearchExtension("GL_NV_gpu_program_fp64", extStart, extEnd);
  8852. #endif /* GL_NV_gpu_program_fp64 */
  8853. #ifdef GL_NV_gpu_shader5
  8854. CONST_CAST(GLEW_NV_gpu_shader5) = _glewSearchExtension("GL_NV_gpu_shader5", extStart, extEnd);
  8855. if (glewExperimental || GLEW_NV_gpu_shader5) CONST_CAST(GLEW_NV_gpu_shader5) = !_glewInit_GL_NV_gpu_shader5(GLEW_CONTEXT_ARG_VAR_INIT);
  8856. #endif /* GL_NV_gpu_shader5 */
  8857. #ifdef GL_NV_half_float
  8858. CONST_CAST(GLEW_NV_half_float) = _glewSearchExtension("GL_NV_half_float", extStart, extEnd);
  8859. if (glewExperimental || GLEW_NV_half_float) CONST_CAST(GLEW_NV_half_float) = !_glewInit_GL_NV_half_float(GLEW_CONTEXT_ARG_VAR_INIT);
  8860. #endif /* GL_NV_half_float */
  8861. #ifdef GL_NV_light_max_exponent
  8862. CONST_CAST(GLEW_NV_light_max_exponent) = _glewSearchExtension("GL_NV_light_max_exponent", extStart, extEnd);
  8863. #endif /* GL_NV_light_max_exponent */
  8864. #ifdef GL_NV_multisample_coverage
  8865. CONST_CAST(GLEW_NV_multisample_coverage) = _glewSearchExtension("GL_NV_multisample_coverage", extStart, extEnd);
  8866. #endif /* GL_NV_multisample_coverage */
  8867. #ifdef GL_NV_multisample_filter_hint
  8868. CONST_CAST(GLEW_NV_multisample_filter_hint) = _glewSearchExtension("GL_NV_multisample_filter_hint", extStart, extEnd);
  8869. #endif /* GL_NV_multisample_filter_hint */
  8870. #ifdef GL_NV_occlusion_query
  8871. CONST_CAST(GLEW_NV_occlusion_query) = _glewSearchExtension("GL_NV_occlusion_query", extStart, extEnd);
  8872. if (glewExperimental || GLEW_NV_occlusion_query) CONST_CAST(GLEW_NV_occlusion_query) = !_glewInit_GL_NV_occlusion_query(GLEW_CONTEXT_ARG_VAR_INIT);
  8873. #endif /* GL_NV_occlusion_query */
  8874. #ifdef GL_NV_packed_depth_stencil
  8875. CONST_CAST(GLEW_NV_packed_depth_stencil) = _glewSearchExtension("GL_NV_packed_depth_stencil", extStart, extEnd);
  8876. #endif /* GL_NV_packed_depth_stencil */
  8877. #ifdef GL_NV_parameter_buffer_object
  8878. CONST_CAST(GLEW_NV_parameter_buffer_object) = _glewSearchExtension("GL_NV_parameter_buffer_object", extStart, extEnd);
  8879. if (glewExperimental || GLEW_NV_parameter_buffer_object) CONST_CAST(GLEW_NV_parameter_buffer_object) = !_glewInit_GL_NV_parameter_buffer_object(GLEW_CONTEXT_ARG_VAR_INIT);
  8880. #endif /* GL_NV_parameter_buffer_object */
  8881. #ifdef GL_NV_parameter_buffer_object2
  8882. CONST_CAST(GLEW_NV_parameter_buffer_object2) = _glewSearchExtension("GL_NV_parameter_buffer_object2", extStart, extEnd);
  8883. #endif /* GL_NV_parameter_buffer_object2 */
  8884. #ifdef GL_NV_path_rendering
  8885. CONST_CAST(GLEW_NV_path_rendering) = _glewSearchExtension("GL_NV_path_rendering", extStart, extEnd);
  8886. if (glewExperimental || GLEW_NV_path_rendering) CONST_CAST(GLEW_NV_path_rendering) = !_glewInit_GL_NV_path_rendering(GLEW_CONTEXT_ARG_VAR_INIT);
  8887. #endif /* GL_NV_path_rendering */
  8888. #ifdef GL_NV_pixel_data_range
  8889. CONST_CAST(GLEW_NV_pixel_data_range) = _glewSearchExtension("GL_NV_pixel_data_range", extStart, extEnd);
  8890. if (glewExperimental || GLEW_NV_pixel_data_range) CONST_CAST(GLEW_NV_pixel_data_range) = !_glewInit_GL_NV_pixel_data_range(GLEW_CONTEXT_ARG_VAR_INIT);
  8891. #endif /* GL_NV_pixel_data_range */
  8892. #ifdef GL_NV_point_sprite
  8893. CONST_CAST(GLEW_NV_point_sprite) = _glewSearchExtension("GL_NV_point_sprite", extStart, extEnd);
  8894. if (glewExperimental || GLEW_NV_point_sprite) CONST_CAST(GLEW_NV_point_sprite) = !_glewInit_GL_NV_point_sprite(GLEW_CONTEXT_ARG_VAR_INIT);
  8895. #endif /* GL_NV_point_sprite */
  8896. #ifdef GL_NV_present_video
  8897. CONST_CAST(GLEW_NV_present_video) = _glewSearchExtension("GL_NV_present_video", extStart, extEnd);
  8898. if (glewExperimental || GLEW_NV_present_video) CONST_CAST(GLEW_NV_present_video) = !_glewInit_GL_NV_present_video(GLEW_CONTEXT_ARG_VAR_INIT);
  8899. #endif /* GL_NV_present_video */
  8900. #ifdef GL_NV_primitive_restart
  8901. CONST_CAST(GLEW_NV_primitive_restart) = _glewSearchExtension("GL_NV_primitive_restart", extStart, extEnd);
  8902. if (glewExperimental || GLEW_NV_primitive_restart) CONST_CAST(GLEW_NV_primitive_restart) = !_glewInit_GL_NV_primitive_restart(GLEW_CONTEXT_ARG_VAR_INIT);
  8903. #endif /* GL_NV_primitive_restart */
  8904. #ifdef GL_NV_register_combiners
  8905. CONST_CAST(GLEW_NV_register_combiners) = _glewSearchExtension("GL_NV_register_combiners", extStart, extEnd);
  8906. if (glewExperimental || GLEW_NV_register_combiners) CONST_CAST(GLEW_NV_register_combiners) = !_glewInit_GL_NV_register_combiners(GLEW_CONTEXT_ARG_VAR_INIT);
  8907. #endif /* GL_NV_register_combiners */
  8908. #ifdef GL_NV_register_combiners2
  8909. CONST_CAST(GLEW_NV_register_combiners2) = _glewSearchExtension("GL_NV_register_combiners2", extStart, extEnd);
  8910. if (glewExperimental || GLEW_NV_register_combiners2) CONST_CAST(GLEW_NV_register_combiners2) = !_glewInit_GL_NV_register_combiners2(GLEW_CONTEXT_ARG_VAR_INIT);
  8911. #endif /* GL_NV_register_combiners2 */
  8912. #ifdef GL_NV_shader_atomic_counters
  8913. CONST_CAST(GLEW_NV_shader_atomic_counters) = _glewSearchExtension("GL_NV_shader_atomic_counters", extStart, extEnd);
  8914. #endif /* GL_NV_shader_atomic_counters */
  8915. #ifdef GL_NV_shader_atomic_float
  8916. CONST_CAST(GLEW_NV_shader_atomic_float) = _glewSearchExtension("GL_NV_shader_atomic_float", extStart, extEnd);
  8917. #endif /* GL_NV_shader_atomic_float */
  8918. #ifdef GL_NV_shader_buffer_load
  8919. CONST_CAST(GLEW_NV_shader_buffer_load) = _glewSearchExtension("GL_NV_shader_buffer_load", extStart, extEnd);
  8920. if (glewExperimental || GLEW_NV_shader_buffer_load) CONST_CAST(GLEW_NV_shader_buffer_load) = !_glewInit_GL_NV_shader_buffer_load(GLEW_CONTEXT_ARG_VAR_INIT);
  8921. #endif /* GL_NV_shader_buffer_load */
  8922. #ifdef GL_NV_shader_storage_buffer_object
  8923. CONST_CAST(GLEW_NV_shader_storage_buffer_object) = _glewSearchExtension("GL_NV_shader_storage_buffer_object", extStart, extEnd);
  8924. #endif /* GL_NV_shader_storage_buffer_object */
  8925. #ifdef GL_NV_tessellation_program5
  8926. CONST_CAST(GLEW_NV_tessellation_program5) = _glewSearchExtension("GL_NV_gpu_program5", extStart, extEnd);
  8927. #endif /* GL_NV_tessellation_program5 */
  8928. #ifdef GL_NV_texgen_emboss
  8929. CONST_CAST(GLEW_NV_texgen_emboss) = _glewSearchExtension("GL_NV_texgen_emboss", extStart, extEnd);
  8930. #endif /* GL_NV_texgen_emboss */
  8931. #ifdef GL_NV_texgen_reflection
  8932. CONST_CAST(GLEW_NV_texgen_reflection) = _glewSearchExtension("GL_NV_texgen_reflection", extStart, extEnd);
  8933. #endif /* GL_NV_texgen_reflection */
  8934. #ifdef GL_NV_texture_barrier
  8935. CONST_CAST(GLEW_NV_texture_barrier) = _glewSearchExtension("GL_NV_texture_barrier", extStart, extEnd);
  8936. if (glewExperimental || GLEW_NV_texture_barrier) CONST_CAST(GLEW_NV_texture_barrier) = !_glewInit_GL_NV_texture_barrier(GLEW_CONTEXT_ARG_VAR_INIT);
  8937. #endif /* GL_NV_texture_barrier */
  8938. #ifdef GL_NV_texture_compression_vtc
  8939. CONST_CAST(GLEW_NV_texture_compression_vtc) = _glewSearchExtension("GL_NV_texture_compression_vtc", extStart, extEnd);
  8940. #endif /* GL_NV_texture_compression_vtc */
  8941. #ifdef GL_NV_texture_env_combine4
  8942. CONST_CAST(GLEW_NV_texture_env_combine4) = _glewSearchExtension("GL_NV_texture_env_combine4", extStart, extEnd);
  8943. #endif /* GL_NV_texture_env_combine4 */
  8944. #ifdef GL_NV_texture_expand_normal
  8945. CONST_CAST(GLEW_NV_texture_expand_normal) = _glewSearchExtension("GL_NV_texture_expand_normal", extStart, extEnd);
  8946. #endif /* GL_NV_texture_expand_normal */
  8947. #ifdef GL_NV_texture_multisample
  8948. CONST_CAST(GLEW_NV_texture_multisample) = _glewSearchExtension("GL_NV_texture_multisample", extStart, extEnd);
  8949. if (glewExperimental || GLEW_NV_texture_multisample) CONST_CAST(GLEW_NV_texture_multisample) = !_glewInit_GL_NV_texture_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  8950. #endif /* GL_NV_texture_multisample */
  8951. #ifdef GL_NV_texture_rectangle
  8952. CONST_CAST(GLEW_NV_texture_rectangle) = _glewSearchExtension("GL_NV_texture_rectangle", extStart, extEnd);
  8953. #endif /* GL_NV_texture_rectangle */
  8954. #ifdef GL_NV_texture_shader
  8955. CONST_CAST(GLEW_NV_texture_shader) = _glewSearchExtension("GL_NV_texture_shader", extStart, extEnd);
  8956. #endif /* GL_NV_texture_shader */
  8957. #ifdef GL_NV_texture_shader2
  8958. CONST_CAST(GLEW_NV_texture_shader2) = _glewSearchExtension("GL_NV_texture_shader2", extStart, extEnd);
  8959. #endif /* GL_NV_texture_shader2 */
  8960. #ifdef GL_NV_texture_shader3
  8961. CONST_CAST(GLEW_NV_texture_shader3) = _glewSearchExtension("GL_NV_texture_shader3", extStart, extEnd);
  8962. #endif /* GL_NV_texture_shader3 */
  8963. #ifdef GL_NV_transform_feedback
  8964. CONST_CAST(GLEW_NV_transform_feedback) = _glewSearchExtension("GL_NV_transform_feedback", extStart, extEnd);
  8965. if (glewExperimental || GLEW_NV_transform_feedback) CONST_CAST(GLEW_NV_transform_feedback) = !_glewInit_GL_NV_transform_feedback(GLEW_CONTEXT_ARG_VAR_INIT);
  8966. #endif /* GL_NV_transform_feedback */
  8967. #ifdef GL_NV_transform_feedback2
  8968. CONST_CAST(GLEW_NV_transform_feedback2) = _glewSearchExtension("GL_NV_transform_feedback2", extStart, extEnd);
  8969. if (glewExperimental || GLEW_NV_transform_feedback2) CONST_CAST(GLEW_NV_transform_feedback2) = !_glewInit_GL_NV_transform_feedback2(GLEW_CONTEXT_ARG_VAR_INIT);
  8970. #endif /* GL_NV_transform_feedback2 */
  8971. #ifdef GL_NV_vdpau_interop
  8972. CONST_CAST(GLEW_NV_vdpau_interop) = _glewSearchExtension("GL_NV_vdpau_interop", extStart, extEnd);
  8973. if (glewExperimental || GLEW_NV_vdpau_interop) CONST_CAST(GLEW_NV_vdpau_interop) = !_glewInit_GL_NV_vdpau_interop(GLEW_CONTEXT_ARG_VAR_INIT);
  8974. #endif /* GL_NV_vdpau_interop */
  8975. #ifdef GL_NV_vertex_array_range
  8976. CONST_CAST(GLEW_NV_vertex_array_range) = _glewSearchExtension("GL_NV_vertex_array_range", extStart, extEnd);
  8977. if (glewExperimental || GLEW_NV_vertex_array_range) CONST_CAST(GLEW_NV_vertex_array_range) = !_glewInit_GL_NV_vertex_array_range(GLEW_CONTEXT_ARG_VAR_INIT);
  8978. #endif /* GL_NV_vertex_array_range */
  8979. #ifdef GL_NV_vertex_array_range2
  8980. CONST_CAST(GLEW_NV_vertex_array_range2) = _glewSearchExtension("GL_NV_vertex_array_range2", extStart, extEnd);
  8981. #endif /* GL_NV_vertex_array_range2 */
  8982. #ifdef GL_NV_vertex_attrib_integer_64bit
  8983. CONST_CAST(GLEW_NV_vertex_attrib_integer_64bit) = _glewSearchExtension("GL_NV_vertex_attrib_integer_64bit", extStart, extEnd);
  8984. if (glewExperimental || GLEW_NV_vertex_attrib_integer_64bit) CONST_CAST(GLEW_NV_vertex_attrib_integer_64bit) = !_glewInit_GL_NV_vertex_attrib_integer_64bit(GLEW_CONTEXT_ARG_VAR_INIT);
  8985. #endif /* GL_NV_vertex_attrib_integer_64bit */
  8986. #ifdef GL_NV_vertex_buffer_unified_memory
  8987. CONST_CAST(GLEW_NV_vertex_buffer_unified_memory) = _glewSearchExtension("GL_NV_vertex_buffer_unified_memory", extStart, extEnd);
  8988. if (glewExperimental || GLEW_NV_vertex_buffer_unified_memory) CONST_CAST(GLEW_NV_vertex_buffer_unified_memory) = !_glewInit_GL_NV_vertex_buffer_unified_memory(GLEW_CONTEXT_ARG_VAR_INIT);
  8989. #endif /* GL_NV_vertex_buffer_unified_memory */
  8990. #ifdef GL_NV_vertex_program
  8991. CONST_CAST(GLEW_NV_vertex_program) = _glewSearchExtension("GL_NV_vertex_program", extStart, extEnd);
  8992. if (glewExperimental || GLEW_NV_vertex_program) CONST_CAST(GLEW_NV_vertex_program) = !_glewInit_GL_NV_vertex_program(GLEW_CONTEXT_ARG_VAR_INIT);
  8993. #endif /* GL_NV_vertex_program */
  8994. #ifdef GL_NV_vertex_program1_1
  8995. CONST_CAST(GLEW_NV_vertex_program1_1) = _glewSearchExtension("GL_NV_vertex_program1_1", extStart, extEnd);
  8996. #endif /* GL_NV_vertex_program1_1 */
  8997. #ifdef GL_NV_vertex_program2
  8998. CONST_CAST(GLEW_NV_vertex_program2) = _glewSearchExtension("GL_NV_vertex_program2", extStart, extEnd);
  8999. #endif /* GL_NV_vertex_program2 */
  9000. #ifdef GL_NV_vertex_program2_option
  9001. CONST_CAST(GLEW_NV_vertex_program2_option) = _glewSearchExtension("GL_NV_vertex_program2_option", extStart, extEnd);
  9002. #endif /* GL_NV_vertex_program2_option */
  9003. #ifdef GL_NV_vertex_program3
  9004. CONST_CAST(GLEW_NV_vertex_program3) = _glewSearchExtension("GL_NV_vertex_program3", extStart, extEnd);
  9005. #endif /* GL_NV_vertex_program3 */
  9006. #ifdef GL_NV_vertex_program4
  9007. CONST_CAST(GLEW_NV_vertex_program4) = _glewSearchExtension("GL_NV_gpu_program4", extStart, extEnd);
  9008. #endif /* GL_NV_vertex_program4 */
  9009. #ifdef GL_NV_video_capture
  9010. CONST_CAST(GLEW_NV_video_capture) = _glewSearchExtension("GL_NV_video_capture", extStart, extEnd);
  9011. if (glewExperimental || GLEW_NV_video_capture) CONST_CAST(GLEW_NV_video_capture) = !_glewInit_GL_NV_video_capture(GLEW_CONTEXT_ARG_VAR_INIT);
  9012. #endif /* GL_NV_video_capture */
  9013. #ifdef GL_OES_byte_coordinates
  9014. CONST_CAST(GLEW_OES_byte_coordinates) = _glewSearchExtension("GL_OES_byte_coordinates", extStart, extEnd);
  9015. #endif /* GL_OES_byte_coordinates */
  9016. #ifdef GL_OES_compressed_paletted_texture
  9017. CONST_CAST(GLEW_OES_compressed_paletted_texture) = _glewSearchExtension("GL_OES_compressed_paletted_texture", extStart, extEnd);
  9018. #endif /* GL_OES_compressed_paletted_texture */
  9019. #ifdef GL_OES_read_format
  9020. CONST_CAST(GLEW_OES_read_format) = _glewSearchExtension("GL_OES_read_format", extStart, extEnd);
  9021. #endif /* GL_OES_read_format */
  9022. #ifdef GL_OES_single_precision
  9023. CONST_CAST(GLEW_OES_single_precision) = _glewSearchExtension("GL_OES_single_precision", extStart, extEnd);
  9024. if (glewExperimental || GLEW_OES_single_precision) CONST_CAST(GLEW_OES_single_precision) = !_glewInit_GL_OES_single_precision(GLEW_CONTEXT_ARG_VAR_INIT);
  9025. #endif /* GL_OES_single_precision */
  9026. #ifdef GL_OML_interlace
  9027. CONST_CAST(GLEW_OML_interlace) = _glewSearchExtension("GL_OML_interlace", extStart, extEnd);
  9028. #endif /* GL_OML_interlace */
  9029. #ifdef GL_OML_resample
  9030. CONST_CAST(GLEW_OML_resample) = _glewSearchExtension("GL_OML_resample", extStart, extEnd);
  9031. #endif /* GL_OML_resample */
  9032. #ifdef GL_OML_subsample
  9033. CONST_CAST(GLEW_OML_subsample) = _glewSearchExtension("GL_OML_subsample", extStart, extEnd);
  9034. #endif /* GL_OML_subsample */
  9035. #ifdef GL_PGI_misc_hints
  9036. CONST_CAST(GLEW_PGI_misc_hints) = _glewSearchExtension("GL_PGI_misc_hints", extStart, extEnd);
  9037. #endif /* GL_PGI_misc_hints */
  9038. #ifdef GL_PGI_vertex_hints
  9039. CONST_CAST(GLEW_PGI_vertex_hints) = _glewSearchExtension("GL_PGI_vertex_hints", extStart, extEnd);
  9040. #endif /* GL_PGI_vertex_hints */
  9041. #ifdef GL_REGAL_ES1_0_compatibility
  9042. CONST_CAST(GLEW_REGAL_ES1_0_compatibility) = _glewSearchExtension("GL_REGAL_ES1_0_compatibility", extStart, extEnd);
  9043. if (glewExperimental || GLEW_REGAL_ES1_0_compatibility) CONST_CAST(GLEW_REGAL_ES1_0_compatibility) = !_glewInit_GL_REGAL_ES1_0_compatibility(GLEW_CONTEXT_ARG_VAR_INIT);
  9044. #endif /* GL_REGAL_ES1_0_compatibility */
  9045. #ifdef GL_REGAL_ES1_1_compatibility
  9046. CONST_CAST(GLEW_REGAL_ES1_1_compatibility) = _glewSearchExtension("GL_REGAL_ES1_1_compatibility", extStart, extEnd);
  9047. if (glewExperimental || GLEW_REGAL_ES1_1_compatibility) CONST_CAST(GLEW_REGAL_ES1_1_compatibility) = !_glewInit_GL_REGAL_ES1_1_compatibility(GLEW_CONTEXT_ARG_VAR_INIT);
  9048. #endif /* GL_REGAL_ES1_1_compatibility */
  9049. #ifdef GL_REGAL_enable
  9050. CONST_CAST(GLEW_REGAL_enable) = _glewSearchExtension("GL_REGAL_enable", extStart, extEnd);
  9051. #endif /* GL_REGAL_enable */
  9052. #ifdef GL_REGAL_error_string
  9053. CONST_CAST(GLEW_REGAL_error_string) = _glewSearchExtension("GL_REGAL_error_string", extStart, extEnd);
  9054. if (glewExperimental || GLEW_REGAL_error_string) CONST_CAST(GLEW_REGAL_error_string) = !_glewInit_GL_REGAL_error_string(GLEW_CONTEXT_ARG_VAR_INIT);
  9055. #endif /* GL_REGAL_error_string */
  9056. #ifdef GL_REGAL_extension_query
  9057. CONST_CAST(GLEW_REGAL_extension_query) = _glewSearchExtension("GL_REGAL_extension_query", extStart, extEnd);
  9058. if (glewExperimental || GLEW_REGAL_extension_query) CONST_CAST(GLEW_REGAL_extension_query) = !_glewInit_GL_REGAL_extension_query(GLEW_CONTEXT_ARG_VAR_INIT);
  9059. #endif /* GL_REGAL_extension_query */
  9060. #ifdef GL_REGAL_log
  9061. CONST_CAST(GLEW_REGAL_log) = _glewSearchExtension("GL_REGAL_log", extStart, extEnd);
  9062. if (glewExperimental || GLEW_REGAL_log) CONST_CAST(GLEW_REGAL_log) = !_glewInit_GL_REGAL_log(GLEW_CONTEXT_ARG_VAR_INIT);
  9063. #endif /* GL_REGAL_log */
  9064. #ifdef GL_REND_screen_coordinates
  9065. CONST_CAST(GLEW_REND_screen_coordinates) = _glewSearchExtension("GL_REND_screen_coordinates", extStart, extEnd);
  9066. #endif /* GL_REND_screen_coordinates */
  9067. #ifdef GL_S3_s3tc
  9068. CONST_CAST(GLEW_S3_s3tc) = _glewSearchExtension("GL_S3_s3tc", extStart, extEnd);
  9069. #endif /* GL_S3_s3tc */
  9070. #ifdef GL_SGIS_color_range
  9071. CONST_CAST(GLEW_SGIS_color_range) = _glewSearchExtension("GL_SGIS_color_range", extStart, extEnd);
  9072. #endif /* GL_SGIS_color_range */
  9073. #ifdef GL_SGIS_detail_texture
  9074. CONST_CAST(GLEW_SGIS_detail_texture) = _glewSearchExtension("GL_SGIS_detail_texture", extStart, extEnd);
  9075. if (glewExperimental || GLEW_SGIS_detail_texture) CONST_CAST(GLEW_SGIS_detail_texture) = !_glewInit_GL_SGIS_detail_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  9076. #endif /* GL_SGIS_detail_texture */
  9077. #ifdef GL_SGIS_fog_function
  9078. CONST_CAST(GLEW_SGIS_fog_function) = _glewSearchExtension("GL_SGIS_fog_function", extStart, extEnd);
  9079. if (glewExperimental || GLEW_SGIS_fog_function) CONST_CAST(GLEW_SGIS_fog_function) = !_glewInit_GL_SGIS_fog_function(GLEW_CONTEXT_ARG_VAR_INIT);
  9080. #endif /* GL_SGIS_fog_function */
  9081. #ifdef GL_SGIS_generate_mipmap
  9082. CONST_CAST(GLEW_SGIS_generate_mipmap) = _glewSearchExtension("GL_SGIS_generate_mipmap", extStart, extEnd);
  9083. #endif /* GL_SGIS_generate_mipmap */
  9084. #ifdef GL_SGIS_multisample
  9085. CONST_CAST(GLEW_SGIS_multisample) = _glewSearchExtension("GL_SGIS_multisample", extStart, extEnd);
  9086. if (glewExperimental || GLEW_SGIS_multisample) CONST_CAST(GLEW_SGIS_multisample) = !_glewInit_GL_SGIS_multisample(GLEW_CONTEXT_ARG_VAR_INIT);
  9087. #endif /* GL_SGIS_multisample */
  9088. #ifdef GL_SGIS_pixel_texture
  9089. CONST_CAST(GLEW_SGIS_pixel_texture) = _glewSearchExtension("GL_SGIS_pixel_texture", extStart, extEnd);
  9090. #endif /* GL_SGIS_pixel_texture */
  9091. #ifdef GL_SGIS_point_line_texgen
  9092. CONST_CAST(GLEW_SGIS_point_line_texgen) = _glewSearchExtension("GL_SGIS_point_line_texgen", extStart, extEnd);
  9093. #endif /* GL_SGIS_point_line_texgen */
  9094. #ifdef GL_SGIS_sharpen_texture
  9095. CONST_CAST(GLEW_SGIS_sharpen_texture) = _glewSearchExtension("GL_SGIS_sharpen_texture", extStart, extEnd);
  9096. if (glewExperimental || GLEW_SGIS_sharpen_texture) CONST_CAST(GLEW_SGIS_sharpen_texture) = !_glewInit_GL_SGIS_sharpen_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  9097. #endif /* GL_SGIS_sharpen_texture */
  9098. #ifdef GL_SGIS_texture4D
  9099. CONST_CAST(GLEW_SGIS_texture4D) = _glewSearchExtension("GL_SGIS_texture4D", extStart, extEnd);
  9100. if (glewExperimental || GLEW_SGIS_texture4D) CONST_CAST(GLEW_SGIS_texture4D) = !_glewInit_GL_SGIS_texture4D(GLEW_CONTEXT_ARG_VAR_INIT);
  9101. #endif /* GL_SGIS_texture4D */
  9102. #ifdef GL_SGIS_texture_border_clamp
  9103. CONST_CAST(GLEW_SGIS_texture_border_clamp) = _glewSearchExtension("GL_SGIS_texture_border_clamp", extStart, extEnd);
  9104. #endif /* GL_SGIS_texture_border_clamp */
  9105. #ifdef GL_SGIS_texture_edge_clamp
  9106. CONST_CAST(GLEW_SGIS_texture_edge_clamp) = _glewSearchExtension("GL_SGIS_texture_edge_clamp", extStart, extEnd);
  9107. #endif /* GL_SGIS_texture_edge_clamp */
  9108. #ifdef GL_SGIS_texture_filter4
  9109. CONST_CAST(GLEW_SGIS_texture_filter4) = _glewSearchExtension("GL_SGIS_texture_filter4", extStart, extEnd);
  9110. if (glewExperimental || GLEW_SGIS_texture_filter4) CONST_CAST(GLEW_SGIS_texture_filter4) = !_glewInit_GL_SGIS_texture_filter4(GLEW_CONTEXT_ARG_VAR_INIT);
  9111. #endif /* GL_SGIS_texture_filter4 */
  9112. #ifdef GL_SGIS_texture_lod
  9113. CONST_CAST(GLEW_SGIS_texture_lod) = _glewSearchExtension("GL_SGIS_texture_lod", extStart, extEnd);
  9114. #endif /* GL_SGIS_texture_lod */
  9115. #ifdef GL_SGIS_texture_select
  9116. CONST_CAST(GLEW_SGIS_texture_select) = _glewSearchExtension("GL_SGIS_texture_select", extStart, extEnd);
  9117. #endif /* GL_SGIS_texture_select */
  9118. #ifdef GL_SGIX_async
  9119. CONST_CAST(GLEW_SGIX_async) = _glewSearchExtension("GL_SGIX_async", extStart, extEnd);
  9120. if (glewExperimental || GLEW_SGIX_async) CONST_CAST(GLEW_SGIX_async) = !_glewInit_GL_SGIX_async(GLEW_CONTEXT_ARG_VAR_INIT);
  9121. #endif /* GL_SGIX_async */
  9122. #ifdef GL_SGIX_async_histogram
  9123. CONST_CAST(GLEW_SGIX_async_histogram) = _glewSearchExtension("GL_SGIX_async_histogram", extStart, extEnd);
  9124. #endif /* GL_SGIX_async_histogram */
  9125. #ifdef GL_SGIX_async_pixel
  9126. CONST_CAST(GLEW_SGIX_async_pixel) = _glewSearchExtension("GL_SGIX_async_pixel", extStart, extEnd);
  9127. #endif /* GL_SGIX_async_pixel */
  9128. #ifdef GL_SGIX_blend_alpha_minmax
  9129. CONST_CAST(GLEW_SGIX_blend_alpha_minmax) = _glewSearchExtension("GL_SGIX_blend_alpha_minmax", extStart, extEnd);
  9130. #endif /* GL_SGIX_blend_alpha_minmax */
  9131. #ifdef GL_SGIX_clipmap
  9132. CONST_CAST(GLEW_SGIX_clipmap) = _glewSearchExtension("GL_SGIX_clipmap", extStart, extEnd);
  9133. #endif /* GL_SGIX_clipmap */
  9134. #ifdef GL_SGIX_convolution_accuracy
  9135. CONST_CAST(GLEW_SGIX_convolution_accuracy) = _glewSearchExtension("GL_SGIX_convolution_accuracy", extStart, extEnd);
  9136. #endif /* GL_SGIX_convolution_accuracy */
  9137. #ifdef GL_SGIX_depth_texture
  9138. CONST_CAST(GLEW_SGIX_depth_texture) = _glewSearchExtension("GL_SGIX_depth_texture", extStart, extEnd);
  9139. #endif /* GL_SGIX_depth_texture */
  9140. #ifdef GL_SGIX_flush_raster
  9141. CONST_CAST(GLEW_SGIX_flush_raster) = _glewSearchExtension("GL_SGIX_flush_raster", extStart, extEnd);
  9142. if (glewExperimental || GLEW_SGIX_flush_raster) CONST_CAST(GLEW_SGIX_flush_raster) = !_glewInit_GL_SGIX_flush_raster(GLEW_CONTEXT_ARG_VAR_INIT);
  9143. #endif /* GL_SGIX_flush_raster */
  9144. #ifdef GL_SGIX_fog_offset
  9145. CONST_CAST(GLEW_SGIX_fog_offset) = _glewSearchExtension("GL_SGIX_fog_offset", extStart, extEnd);
  9146. #endif /* GL_SGIX_fog_offset */
  9147. #ifdef GL_SGIX_fog_texture
  9148. CONST_CAST(GLEW_SGIX_fog_texture) = _glewSearchExtension("GL_SGIX_fog_texture", extStart, extEnd);
  9149. if (glewExperimental || GLEW_SGIX_fog_texture) CONST_CAST(GLEW_SGIX_fog_texture) = !_glewInit_GL_SGIX_fog_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  9150. #endif /* GL_SGIX_fog_texture */
  9151. #ifdef GL_SGIX_fragment_specular_lighting
  9152. CONST_CAST(GLEW_SGIX_fragment_specular_lighting) = _glewSearchExtension("GL_SGIX_fragment_specular_lighting", extStart, extEnd);
  9153. if (glewExperimental || GLEW_SGIX_fragment_specular_lighting) CONST_CAST(GLEW_SGIX_fragment_specular_lighting) = !_glewInit_GL_SGIX_fragment_specular_lighting(GLEW_CONTEXT_ARG_VAR_INIT);
  9154. #endif /* GL_SGIX_fragment_specular_lighting */
  9155. #ifdef GL_SGIX_framezoom
  9156. CONST_CAST(GLEW_SGIX_framezoom) = _glewSearchExtension("GL_SGIX_framezoom", extStart, extEnd);
  9157. if (glewExperimental || GLEW_SGIX_framezoom) CONST_CAST(GLEW_SGIX_framezoom) = !_glewInit_GL_SGIX_framezoom(GLEW_CONTEXT_ARG_VAR_INIT);
  9158. #endif /* GL_SGIX_framezoom */
  9159. #ifdef GL_SGIX_interlace
  9160. CONST_CAST(GLEW_SGIX_interlace) = _glewSearchExtension("GL_SGIX_interlace", extStart, extEnd);
  9161. #endif /* GL_SGIX_interlace */
  9162. #ifdef GL_SGIX_ir_instrument1
  9163. CONST_CAST(GLEW_SGIX_ir_instrument1) = _glewSearchExtension("GL_SGIX_ir_instrument1", extStart, extEnd);
  9164. #endif /* GL_SGIX_ir_instrument1 */
  9165. #ifdef GL_SGIX_list_priority
  9166. CONST_CAST(GLEW_SGIX_list_priority) = _glewSearchExtension("GL_SGIX_list_priority", extStart, extEnd);
  9167. #endif /* GL_SGIX_list_priority */
  9168. #ifdef GL_SGIX_pixel_texture
  9169. CONST_CAST(GLEW_SGIX_pixel_texture) = _glewSearchExtension("GL_SGIX_pixel_texture", extStart, extEnd);
  9170. if (glewExperimental || GLEW_SGIX_pixel_texture) CONST_CAST(GLEW_SGIX_pixel_texture) = !_glewInit_GL_SGIX_pixel_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  9171. #endif /* GL_SGIX_pixel_texture */
  9172. #ifdef GL_SGIX_pixel_texture_bits
  9173. CONST_CAST(GLEW_SGIX_pixel_texture_bits) = _glewSearchExtension("GL_SGIX_pixel_texture_bits", extStart, extEnd);
  9174. #endif /* GL_SGIX_pixel_texture_bits */
  9175. #ifdef GL_SGIX_reference_plane
  9176. CONST_CAST(GLEW_SGIX_reference_plane) = _glewSearchExtension("GL_SGIX_reference_plane", extStart, extEnd);
  9177. if (glewExperimental || GLEW_SGIX_reference_plane) CONST_CAST(GLEW_SGIX_reference_plane) = !_glewInit_GL_SGIX_reference_plane(GLEW_CONTEXT_ARG_VAR_INIT);
  9178. #endif /* GL_SGIX_reference_plane */
  9179. #ifdef GL_SGIX_resample
  9180. CONST_CAST(GLEW_SGIX_resample) = _glewSearchExtension("GL_SGIX_resample", extStart, extEnd);
  9181. #endif /* GL_SGIX_resample */
  9182. #ifdef GL_SGIX_shadow
  9183. CONST_CAST(GLEW_SGIX_shadow) = _glewSearchExtension("GL_SGIX_shadow", extStart, extEnd);
  9184. #endif /* GL_SGIX_shadow */
  9185. #ifdef GL_SGIX_shadow_ambient
  9186. CONST_CAST(GLEW_SGIX_shadow_ambient) = _glewSearchExtension("GL_SGIX_shadow_ambient", extStart, extEnd);
  9187. #endif /* GL_SGIX_shadow_ambient */
  9188. #ifdef GL_SGIX_sprite
  9189. CONST_CAST(GLEW_SGIX_sprite) = _glewSearchExtension("GL_SGIX_sprite", extStart, extEnd);
  9190. if (glewExperimental || GLEW_SGIX_sprite) CONST_CAST(GLEW_SGIX_sprite) = !_glewInit_GL_SGIX_sprite(GLEW_CONTEXT_ARG_VAR_INIT);
  9191. #endif /* GL_SGIX_sprite */
  9192. #ifdef GL_SGIX_tag_sample_buffer
  9193. CONST_CAST(GLEW_SGIX_tag_sample_buffer) = _glewSearchExtension("GL_SGIX_tag_sample_buffer", extStart, extEnd);
  9194. if (glewExperimental || GLEW_SGIX_tag_sample_buffer) CONST_CAST(GLEW_SGIX_tag_sample_buffer) = !_glewInit_GL_SGIX_tag_sample_buffer(GLEW_CONTEXT_ARG_VAR_INIT);
  9195. #endif /* GL_SGIX_tag_sample_buffer */
  9196. #ifdef GL_SGIX_texture_add_env
  9197. CONST_CAST(GLEW_SGIX_texture_add_env) = _glewSearchExtension("GL_SGIX_texture_add_env", extStart, extEnd);
  9198. #endif /* GL_SGIX_texture_add_env */
  9199. #ifdef GL_SGIX_texture_coordinate_clamp
  9200. CONST_CAST(GLEW_SGIX_texture_coordinate_clamp) = _glewSearchExtension("GL_SGIX_texture_coordinate_clamp", extStart, extEnd);
  9201. #endif /* GL_SGIX_texture_coordinate_clamp */
  9202. #ifdef GL_SGIX_texture_lod_bias
  9203. CONST_CAST(GLEW_SGIX_texture_lod_bias) = _glewSearchExtension("GL_SGIX_texture_lod_bias", extStart, extEnd);
  9204. #endif /* GL_SGIX_texture_lod_bias */
  9205. #ifdef GL_SGIX_texture_multi_buffer
  9206. CONST_CAST(GLEW_SGIX_texture_multi_buffer) = _glewSearchExtension("GL_SGIX_texture_multi_buffer", extStart, extEnd);
  9207. #endif /* GL_SGIX_texture_multi_buffer */
  9208. #ifdef GL_SGIX_texture_range
  9209. CONST_CAST(GLEW_SGIX_texture_range) = _glewSearchExtension("GL_SGIX_texture_range", extStart, extEnd);
  9210. #endif /* GL_SGIX_texture_range */
  9211. #ifdef GL_SGIX_texture_scale_bias
  9212. CONST_CAST(GLEW_SGIX_texture_scale_bias) = _glewSearchExtension("GL_SGIX_texture_scale_bias", extStart, extEnd);
  9213. #endif /* GL_SGIX_texture_scale_bias */
  9214. #ifdef GL_SGIX_vertex_preclip
  9215. CONST_CAST(GLEW_SGIX_vertex_preclip) = _glewSearchExtension("GL_SGIX_vertex_preclip", extStart, extEnd);
  9216. #endif /* GL_SGIX_vertex_preclip */
  9217. #ifdef GL_SGIX_vertex_preclip_hint
  9218. CONST_CAST(GLEW_SGIX_vertex_preclip_hint) = _glewSearchExtension("GL_SGIX_vertex_preclip_hint", extStart, extEnd);
  9219. #endif /* GL_SGIX_vertex_preclip_hint */
  9220. #ifdef GL_SGIX_ycrcb
  9221. CONST_CAST(GLEW_SGIX_ycrcb) = _glewSearchExtension("GL_SGIX_ycrcb", extStart, extEnd);
  9222. #endif /* GL_SGIX_ycrcb */
  9223. #ifdef GL_SGI_color_matrix
  9224. CONST_CAST(GLEW_SGI_color_matrix) = _glewSearchExtension("GL_SGI_color_matrix", extStart, extEnd);
  9225. #endif /* GL_SGI_color_matrix */
  9226. #ifdef GL_SGI_color_table
  9227. CONST_CAST(GLEW_SGI_color_table) = _glewSearchExtension("GL_SGI_color_table", extStart, extEnd);
  9228. if (glewExperimental || GLEW_SGI_color_table) CONST_CAST(GLEW_SGI_color_table) = !_glewInit_GL_SGI_color_table(GLEW_CONTEXT_ARG_VAR_INIT);
  9229. #endif /* GL_SGI_color_table */
  9230. #ifdef GL_SGI_texture_color_table
  9231. CONST_CAST(GLEW_SGI_texture_color_table) = _glewSearchExtension("GL_SGI_texture_color_table", extStart, extEnd);
  9232. #endif /* GL_SGI_texture_color_table */
  9233. #ifdef GL_SUNX_constant_data
  9234. CONST_CAST(GLEW_SUNX_constant_data) = _glewSearchExtension("GL_SUNX_constant_data", extStart, extEnd);
  9235. if (glewExperimental || GLEW_SUNX_constant_data) CONST_CAST(GLEW_SUNX_constant_data) = !_glewInit_GL_SUNX_constant_data(GLEW_CONTEXT_ARG_VAR_INIT);
  9236. #endif /* GL_SUNX_constant_data */
  9237. #ifdef GL_SUN_convolution_border_modes
  9238. CONST_CAST(GLEW_SUN_convolution_border_modes) = _glewSearchExtension("GL_SUN_convolution_border_modes", extStart, extEnd);
  9239. #endif /* GL_SUN_convolution_border_modes */
  9240. #ifdef GL_SUN_global_alpha
  9241. CONST_CAST(GLEW_SUN_global_alpha) = _glewSearchExtension("GL_SUN_global_alpha", extStart, extEnd);
  9242. if (glewExperimental || GLEW_SUN_global_alpha) CONST_CAST(GLEW_SUN_global_alpha) = !_glewInit_GL_SUN_global_alpha(GLEW_CONTEXT_ARG_VAR_INIT);
  9243. #endif /* GL_SUN_global_alpha */
  9244. #ifdef GL_SUN_mesh_array
  9245. CONST_CAST(GLEW_SUN_mesh_array) = _glewSearchExtension("GL_SUN_mesh_array", extStart, extEnd);
  9246. #endif /* GL_SUN_mesh_array */
  9247. #ifdef GL_SUN_read_video_pixels
  9248. CONST_CAST(GLEW_SUN_read_video_pixels) = _glewSearchExtension("GL_SUN_read_video_pixels", extStart, extEnd);
  9249. if (glewExperimental || GLEW_SUN_read_video_pixels) CONST_CAST(GLEW_SUN_read_video_pixels) = !_glewInit_GL_SUN_read_video_pixels(GLEW_CONTEXT_ARG_VAR_INIT);
  9250. #endif /* GL_SUN_read_video_pixels */
  9251. #ifdef GL_SUN_slice_accum
  9252. CONST_CAST(GLEW_SUN_slice_accum) = _glewSearchExtension("GL_SUN_slice_accum", extStart, extEnd);
  9253. #endif /* GL_SUN_slice_accum */
  9254. #ifdef GL_SUN_triangle_list
  9255. CONST_CAST(GLEW_SUN_triangle_list) = _glewSearchExtension("GL_SUN_triangle_list", extStart, extEnd);
  9256. if (glewExperimental || GLEW_SUN_triangle_list) CONST_CAST(GLEW_SUN_triangle_list) = !_glewInit_GL_SUN_triangle_list(GLEW_CONTEXT_ARG_VAR_INIT);
  9257. #endif /* GL_SUN_triangle_list */
  9258. #ifdef GL_SUN_vertex
  9259. CONST_CAST(GLEW_SUN_vertex) = _glewSearchExtension("GL_SUN_vertex", extStart, extEnd);
  9260. if (glewExperimental || GLEW_SUN_vertex) CONST_CAST(GLEW_SUN_vertex) = !_glewInit_GL_SUN_vertex(GLEW_CONTEXT_ARG_VAR_INIT);
  9261. #endif /* GL_SUN_vertex */
  9262. #ifdef GL_WIN_phong_shading
  9263. CONST_CAST(GLEW_WIN_phong_shading) = _glewSearchExtension("GL_WIN_phong_shading", extStart, extEnd);
  9264. #endif /* GL_WIN_phong_shading */
  9265. #ifdef GL_WIN_specular_fog
  9266. CONST_CAST(GLEW_WIN_specular_fog) = _glewSearchExtension("GL_WIN_specular_fog", extStart, extEnd);
  9267. #endif /* GL_WIN_specular_fog */
  9268. #ifdef GL_WIN_swap_hint
  9269. CONST_CAST(GLEW_WIN_swap_hint) = _glewSearchExtension("GL_WIN_swap_hint", extStart, extEnd);
  9270. if (glewExperimental || GLEW_WIN_swap_hint) CONST_CAST(GLEW_WIN_swap_hint) = !_glewInit_GL_WIN_swap_hint(GLEW_CONTEXT_ARG_VAR_INIT);
  9271. #endif /* GL_WIN_swap_hint */
  9272. return GLEW_OK;
  9273. }
  9274. #if defined(_WIN32)
  9275. #if !defined(GLEW_MX)
  9276. PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL = NULL;
  9277. PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD = NULL;
  9278. PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD = NULL;
  9279. PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD = NULL;
  9280. PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD = NULL;
  9281. PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD = NULL;
  9282. PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD = NULL;
  9283. PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD = NULL;
  9284. PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD = NULL;
  9285. PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD = NULL;
  9286. PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB = NULL;
  9287. PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB = NULL;
  9288. PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB = NULL;
  9289. PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB = NULL;
  9290. PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB = NULL;
  9291. PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB = NULL;
  9292. PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB = NULL;
  9293. PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB = NULL;
  9294. PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB = NULL;
  9295. PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB = NULL;
  9296. PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB = NULL;
  9297. PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB = NULL;
  9298. PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB = NULL;
  9299. PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB = NULL;
  9300. PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB = NULL;
  9301. PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB = NULL;
  9302. PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB = NULL;
  9303. PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB = NULL;
  9304. PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB = NULL;
  9305. PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT = NULL;
  9306. PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT = NULL;
  9307. PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT = NULL;
  9308. PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT = NULL;
  9309. PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT = NULL;
  9310. PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT = NULL;
  9311. PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT = NULL;
  9312. PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT = NULL;
  9313. PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT = NULL;
  9314. PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT = NULL;
  9315. PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT = NULL;
  9316. PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT = NULL;
  9317. PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT = NULL;
  9318. PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT = NULL;
  9319. PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT = NULL;
  9320. PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT = NULL;
  9321. PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT = NULL;
  9322. PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D = NULL;
  9323. PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D = NULL;
  9324. PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D = NULL;
  9325. PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D = NULL;
  9326. PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D = NULL;
  9327. PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D = NULL;
  9328. PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D = NULL;
  9329. PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D = NULL;
  9330. PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D = NULL;
  9331. PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D = NULL;
  9332. PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D = NULL;
  9333. PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D = NULL;
  9334. PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D = NULL;
  9335. PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D = NULL;
  9336. PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D = NULL;
  9337. PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D = NULL;
  9338. PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D = NULL;
  9339. PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D = NULL;
  9340. PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D = NULL;
  9341. PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D = NULL;
  9342. PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D = NULL;
  9343. PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D = NULL;
  9344. PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D = NULL;
  9345. PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D = NULL;
  9346. PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D = NULL;
  9347. PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D = NULL;
  9348. PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D = NULL;
  9349. PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D = NULL;
  9350. PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D = NULL;
  9351. PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D = NULL;
  9352. PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV = NULL;
  9353. PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV = NULL;
  9354. PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV = NULL;
  9355. PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV = NULL;
  9356. PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV = NULL;
  9357. PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV = NULL;
  9358. PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV = NULL;
  9359. PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV = NULL;
  9360. PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV = NULL;
  9361. PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV = NULL;
  9362. PFNWGLDELETEDCNVPROC __wglewDeleteDCNV = NULL;
  9363. PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV = NULL;
  9364. PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV = NULL;
  9365. PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV = NULL;
  9366. PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV = NULL;
  9367. PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV = NULL;
  9368. PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV = NULL;
  9369. PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV = NULL;
  9370. PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV = NULL;
  9371. PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV = NULL;
  9372. PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV = NULL;
  9373. PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV = NULL;
  9374. PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV = NULL;
  9375. PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV = NULL;
  9376. PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV = NULL;
  9377. PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV = NULL;
  9378. PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV = NULL;
  9379. PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV = NULL;
  9380. PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV = NULL;
  9381. PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV = NULL;
  9382. PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV = NULL;
  9383. PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV = NULL;
  9384. PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV = NULL;
  9385. PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV = NULL;
  9386. PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV = NULL;
  9387. PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV = NULL;
  9388. PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML = NULL;
  9389. PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML = NULL;
  9390. PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML = NULL;
  9391. PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML = NULL;
  9392. PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML = NULL;
  9393. PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML = NULL;
  9394. GLboolean __WGLEW_3DFX_multisample = GL_FALSE;
  9395. GLboolean __WGLEW_3DL_stereo_control = GL_FALSE;
  9396. GLboolean __WGLEW_AMD_gpu_association = GL_FALSE;
  9397. GLboolean __WGLEW_ARB_buffer_region = GL_FALSE;
  9398. GLboolean __WGLEW_ARB_create_context = GL_FALSE;
  9399. GLboolean __WGLEW_ARB_create_context_profile = GL_FALSE;
  9400. GLboolean __WGLEW_ARB_create_context_robustness = GL_FALSE;
  9401. GLboolean __WGLEW_ARB_extensions_string = GL_FALSE;
  9402. GLboolean __WGLEW_ARB_framebuffer_sRGB = GL_FALSE;
  9403. GLboolean __WGLEW_ARB_make_current_read = GL_FALSE;
  9404. GLboolean __WGLEW_ARB_multisample = GL_FALSE;
  9405. GLboolean __WGLEW_ARB_pbuffer = GL_FALSE;
  9406. GLboolean __WGLEW_ARB_pixel_format = GL_FALSE;
  9407. GLboolean __WGLEW_ARB_pixel_format_float = GL_FALSE;
  9408. GLboolean __WGLEW_ARB_render_texture = GL_FALSE;
  9409. GLboolean __WGLEW_ARB_robustness_application_isolation = GL_FALSE;
  9410. GLboolean __WGLEW_ARB_robustness_share_group_isolation = GL_FALSE;
  9411. GLboolean __WGLEW_ATI_pixel_format_float = GL_FALSE;
  9412. GLboolean __WGLEW_ATI_render_texture_rectangle = GL_FALSE;
  9413. GLboolean __WGLEW_EXT_create_context_es2_profile = GL_FALSE;
  9414. GLboolean __WGLEW_EXT_create_context_es_profile = GL_FALSE;
  9415. GLboolean __WGLEW_EXT_depth_float = GL_FALSE;
  9416. GLboolean __WGLEW_EXT_display_color_table = GL_FALSE;
  9417. GLboolean __WGLEW_EXT_extensions_string = GL_FALSE;
  9418. GLboolean __WGLEW_EXT_framebuffer_sRGB = GL_FALSE;
  9419. GLboolean __WGLEW_EXT_make_current_read = GL_FALSE;
  9420. GLboolean __WGLEW_EXT_multisample = GL_FALSE;
  9421. GLboolean __WGLEW_EXT_pbuffer = GL_FALSE;
  9422. GLboolean __WGLEW_EXT_pixel_format = GL_FALSE;
  9423. GLboolean __WGLEW_EXT_pixel_format_packed_float = GL_FALSE;
  9424. GLboolean __WGLEW_EXT_swap_control = GL_FALSE;
  9425. GLboolean __WGLEW_EXT_swap_control_tear = GL_FALSE;
  9426. GLboolean __WGLEW_I3D_digital_video_control = GL_FALSE;
  9427. GLboolean __WGLEW_I3D_gamma = GL_FALSE;
  9428. GLboolean __WGLEW_I3D_genlock = GL_FALSE;
  9429. GLboolean __WGLEW_I3D_image_buffer = GL_FALSE;
  9430. GLboolean __WGLEW_I3D_swap_frame_lock = GL_FALSE;
  9431. GLboolean __WGLEW_I3D_swap_frame_usage = GL_FALSE;
  9432. GLboolean __WGLEW_NV_DX_interop = GL_FALSE;
  9433. GLboolean __WGLEW_NV_DX_interop2 = GL_FALSE;
  9434. GLboolean __WGLEW_NV_copy_image = GL_FALSE;
  9435. GLboolean __WGLEW_NV_float_buffer = GL_FALSE;
  9436. GLboolean __WGLEW_NV_gpu_affinity = GL_FALSE;
  9437. GLboolean __WGLEW_NV_multisample_coverage = GL_FALSE;
  9438. GLboolean __WGLEW_NV_present_video = GL_FALSE;
  9439. GLboolean __WGLEW_NV_render_depth_texture = GL_FALSE;
  9440. GLboolean __WGLEW_NV_render_texture_rectangle = GL_FALSE;
  9441. GLboolean __WGLEW_NV_swap_group = GL_FALSE;
  9442. GLboolean __WGLEW_NV_vertex_array_range = GL_FALSE;
  9443. GLboolean __WGLEW_NV_video_capture = GL_FALSE;
  9444. GLboolean __WGLEW_NV_video_output = GL_FALSE;
  9445. GLboolean __WGLEW_OML_sync_control = GL_FALSE;
  9446. #endif /* !GLEW_MX */
  9447. #ifdef WGL_3DFX_multisample
  9448. #endif /* WGL_3DFX_multisample */
  9449. #ifdef WGL_3DL_stereo_control
  9450. static GLboolean _glewInit_WGL_3DL_stereo_control (WGLEW_CONTEXT_ARG_DEF_INIT)
  9451. {
  9452. GLboolean r = GL_FALSE;
  9453. r = ((wglSetStereoEmitterState3DL = (PFNWGLSETSTEREOEMITTERSTATE3DLPROC)glewGetProcAddress((const GLubyte*)"wglSetStereoEmitterState3DL")) == NULL) || r;
  9454. return r;
  9455. }
  9456. #endif /* WGL_3DL_stereo_control */
  9457. #ifdef WGL_AMD_gpu_association
  9458. static GLboolean _glewInit_WGL_AMD_gpu_association (WGLEW_CONTEXT_ARG_DEF_INIT)
  9459. {
  9460. GLboolean r = GL_FALSE;
  9461. r = ((wglBlitContextFramebufferAMD = (PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC)glewGetProcAddress((const GLubyte*)"wglBlitContextFramebufferAMD")) == NULL) || r;
  9462. r = ((wglCreateAssociatedContextAMD = (PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC)glewGetProcAddress((const GLubyte*)"wglCreateAssociatedContextAMD")) == NULL) || r;
  9463. r = ((wglCreateAssociatedContextAttribsAMD = (PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)glewGetProcAddress((const GLubyte*)"wglCreateAssociatedContextAttribsAMD")) == NULL) || r;
  9464. r = ((wglDeleteAssociatedContextAMD = (PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC)glewGetProcAddress((const GLubyte*)"wglDeleteAssociatedContextAMD")) == NULL) || r;
  9465. r = ((wglGetContextGPUIDAMD = (PFNWGLGETCONTEXTGPUIDAMDPROC)glewGetProcAddress((const GLubyte*)"wglGetContextGPUIDAMD")) == NULL) || r;
  9466. r = ((wglGetCurrentAssociatedContextAMD = (PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC)glewGetProcAddress((const GLubyte*)"wglGetCurrentAssociatedContextAMD")) == NULL) || r;
  9467. r = ((wglGetGPUIDsAMD = (PFNWGLGETGPUIDSAMDPROC)glewGetProcAddress((const GLubyte*)"wglGetGPUIDsAMD")) == NULL) || r;
  9468. r = ((wglGetGPUInfoAMD = (PFNWGLGETGPUINFOAMDPROC)glewGetProcAddress((const GLubyte*)"wglGetGPUInfoAMD")) == NULL) || r;
  9469. r = ((wglMakeAssociatedContextCurrentAMD = (PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)glewGetProcAddress((const GLubyte*)"wglMakeAssociatedContextCurrentAMD")) == NULL) || r;
  9470. return r;
  9471. }
  9472. #endif /* WGL_AMD_gpu_association */
  9473. #ifdef WGL_ARB_buffer_region
  9474. static GLboolean _glewInit_WGL_ARB_buffer_region (WGLEW_CONTEXT_ARG_DEF_INIT)
  9475. {
  9476. GLboolean r = GL_FALSE;
  9477. r = ((wglCreateBufferRegionARB = (PFNWGLCREATEBUFFERREGIONARBPROC)glewGetProcAddress((const GLubyte*)"wglCreateBufferRegionARB")) == NULL) || r;
  9478. r = ((wglDeleteBufferRegionARB = (PFNWGLDELETEBUFFERREGIONARBPROC)glewGetProcAddress((const GLubyte*)"wglDeleteBufferRegionARB")) == NULL) || r;
  9479. r = ((wglRestoreBufferRegionARB = (PFNWGLRESTOREBUFFERREGIONARBPROC)glewGetProcAddress((const GLubyte*)"wglRestoreBufferRegionARB")) == NULL) || r;
  9480. r = ((wglSaveBufferRegionARB = (PFNWGLSAVEBUFFERREGIONARBPROC)glewGetProcAddress((const GLubyte*)"wglSaveBufferRegionARB")) == NULL) || r;
  9481. return r;
  9482. }
  9483. #endif /* WGL_ARB_buffer_region */
  9484. #ifdef WGL_ARB_create_context
  9485. static GLboolean _glewInit_WGL_ARB_create_context (WGLEW_CONTEXT_ARG_DEF_INIT)
  9486. {
  9487. GLboolean r = GL_FALSE;
  9488. r = ((wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC)glewGetProcAddress((const GLubyte*)"wglCreateContextAttribsARB")) == NULL) || r;
  9489. return r;
  9490. }
  9491. #endif /* WGL_ARB_create_context */
  9492. #ifdef WGL_ARB_create_context_profile
  9493. #endif /* WGL_ARB_create_context_profile */
  9494. #ifdef WGL_ARB_create_context_robustness
  9495. #endif /* WGL_ARB_create_context_robustness */
  9496. #ifdef WGL_ARB_extensions_string
  9497. static GLboolean _glewInit_WGL_ARB_extensions_string (WGLEW_CONTEXT_ARG_DEF_INIT)
  9498. {
  9499. GLboolean r = GL_FALSE;
  9500. r = ((wglGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB")) == NULL) || r;
  9501. return r;
  9502. }
  9503. #endif /* WGL_ARB_extensions_string */
  9504. #ifdef WGL_ARB_framebuffer_sRGB
  9505. #endif /* WGL_ARB_framebuffer_sRGB */
  9506. #ifdef WGL_ARB_make_current_read
  9507. static GLboolean _glewInit_WGL_ARB_make_current_read (WGLEW_CONTEXT_ARG_DEF_INIT)
  9508. {
  9509. GLboolean r = GL_FALSE;
  9510. r = ((wglGetCurrentReadDCARB = (PFNWGLGETCURRENTREADDCARBPROC)glewGetProcAddress((const GLubyte*)"wglGetCurrentReadDCARB")) == NULL) || r;
  9511. r = ((wglMakeContextCurrentARB = (PFNWGLMAKECONTEXTCURRENTARBPROC)glewGetProcAddress((const GLubyte*)"wglMakeContextCurrentARB")) == NULL) || r;
  9512. return r;
  9513. }
  9514. #endif /* WGL_ARB_make_current_read */
  9515. #ifdef WGL_ARB_multisample
  9516. #endif /* WGL_ARB_multisample */
  9517. #ifdef WGL_ARB_pbuffer
  9518. static GLboolean _glewInit_WGL_ARB_pbuffer (WGLEW_CONTEXT_ARG_DEF_INIT)
  9519. {
  9520. GLboolean r = GL_FALSE;
  9521. r = ((wglCreatePbufferARB = (PFNWGLCREATEPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"wglCreatePbufferARB")) == NULL) || r;
  9522. r = ((wglDestroyPbufferARB = (PFNWGLDESTROYPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"wglDestroyPbufferARB")) == NULL) || r;
  9523. r = ((wglGetPbufferDCARB = (PFNWGLGETPBUFFERDCARBPROC)glewGetProcAddress((const GLubyte*)"wglGetPbufferDCARB")) == NULL) || r;
  9524. r = ((wglQueryPbufferARB = (PFNWGLQUERYPBUFFERARBPROC)glewGetProcAddress((const GLubyte*)"wglQueryPbufferARB")) == NULL) || r;
  9525. r = ((wglReleasePbufferDCARB = (PFNWGLRELEASEPBUFFERDCARBPROC)glewGetProcAddress((const GLubyte*)"wglReleasePbufferDCARB")) == NULL) || r;
  9526. return r;
  9527. }
  9528. #endif /* WGL_ARB_pbuffer */
  9529. #ifdef WGL_ARB_pixel_format
  9530. static GLboolean _glewInit_WGL_ARB_pixel_format (WGLEW_CONTEXT_ARG_DEF_INIT)
  9531. {
  9532. GLboolean r = GL_FALSE;
  9533. r = ((wglChoosePixelFormatARB = (PFNWGLCHOOSEPIXELFORMATARBPROC)glewGetProcAddress((const GLubyte*)"wglChoosePixelFormatARB")) == NULL) || r;
  9534. r = ((wglGetPixelFormatAttribfvARB = (PFNWGLGETPIXELFORMATATTRIBFVARBPROC)glewGetProcAddress((const GLubyte*)"wglGetPixelFormatAttribfvARB")) == NULL) || r;
  9535. r = ((wglGetPixelFormatAttribivARB = (PFNWGLGETPIXELFORMATATTRIBIVARBPROC)glewGetProcAddress((const GLubyte*)"wglGetPixelFormatAttribivARB")) == NULL) || r;
  9536. return r;
  9537. }
  9538. #endif /* WGL_ARB_pixel_format */
  9539. #ifdef WGL_ARB_pixel_format_float
  9540. #endif /* WGL_ARB_pixel_format_float */
  9541. #ifdef WGL_ARB_render_texture
  9542. static GLboolean _glewInit_WGL_ARB_render_texture (WGLEW_CONTEXT_ARG_DEF_INIT)
  9543. {
  9544. GLboolean r = GL_FALSE;
  9545. r = ((wglBindTexImageARB = (PFNWGLBINDTEXIMAGEARBPROC)glewGetProcAddress((const GLubyte*)"wglBindTexImageARB")) == NULL) || r;
  9546. r = ((wglReleaseTexImageARB = (PFNWGLRELEASETEXIMAGEARBPROC)glewGetProcAddress((const GLubyte*)"wglReleaseTexImageARB")) == NULL) || r;
  9547. r = ((wglSetPbufferAttribARB = (PFNWGLSETPBUFFERATTRIBARBPROC)glewGetProcAddress((const GLubyte*)"wglSetPbufferAttribARB")) == NULL) || r;
  9548. return r;
  9549. }
  9550. #endif /* WGL_ARB_render_texture */
  9551. #ifdef WGL_ARB_robustness_application_isolation
  9552. #endif /* WGL_ARB_robustness_application_isolation */
  9553. #ifdef WGL_ARB_robustness_share_group_isolation
  9554. #endif /* WGL_ARB_robustness_share_group_isolation */
  9555. #ifdef WGL_ATI_pixel_format_float
  9556. #endif /* WGL_ATI_pixel_format_float */
  9557. #ifdef WGL_ATI_render_texture_rectangle
  9558. #endif /* WGL_ATI_render_texture_rectangle */
  9559. #ifdef WGL_EXT_create_context_es2_profile
  9560. #endif /* WGL_EXT_create_context_es2_profile */
  9561. #ifdef WGL_EXT_create_context_es_profile
  9562. #endif /* WGL_EXT_create_context_es_profile */
  9563. #ifdef WGL_EXT_depth_float
  9564. #endif /* WGL_EXT_depth_float */
  9565. #ifdef WGL_EXT_display_color_table
  9566. static GLboolean _glewInit_WGL_EXT_display_color_table (WGLEW_CONTEXT_ARG_DEF_INIT)
  9567. {
  9568. GLboolean r = GL_FALSE;
  9569. r = ((wglBindDisplayColorTableEXT = (PFNWGLBINDDISPLAYCOLORTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"wglBindDisplayColorTableEXT")) == NULL) || r;
  9570. r = ((wglCreateDisplayColorTableEXT = (PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"wglCreateDisplayColorTableEXT")) == NULL) || r;
  9571. r = ((wglDestroyDisplayColorTableEXT = (PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"wglDestroyDisplayColorTableEXT")) == NULL) || r;
  9572. r = ((wglLoadDisplayColorTableEXT = (PFNWGLLOADDISPLAYCOLORTABLEEXTPROC)glewGetProcAddress((const GLubyte*)"wglLoadDisplayColorTableEXT")) == NULL) || r;
  9573. return r;
  9574. }
  9575. #endif /* WGL_EXT_display_color_table */
  9576. #ifdef WGL_EXT_extensions_string
  9577. static GLboolean _glewInit_WGL_EXT_extensions_string (WGLEW_CONTEXT_ARG_DEF_INIT)
  9578. {
  9579. GLboolean r = GL_FALSE;
  9580. r = ((wglGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT")) == NULL) || r;
  9581. return r;
  9582. }
  9583. #endif /* WGL_EXT_extensions_string */
  9584. #ifdef WGL_EXT_framebuffer_sRGB
  9585. #endif /* WGL_EXT_framebuffer_sRGB */
  9586. #ifdef WGL_EXT_make_current_read
  9587. static GLboolean _glewInit_WGL_EXT_make_current_read (WGLEW_CONTEXT_ARG_DEF_INIT)
  9588. {
  9589. GLboolean r = GL_FALSE;
  9590. r = ((wglGetCurrentReadDCEXT = (PFNWGLGETCURRENTREADDCEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetCurrentReadDCEXT")) == NULL) || r;
  9591. r = ((wglMakeContextCurrentEXT = (PFNWGLMAKECONTEXTCURRENTEXTPROC)glewGetProcAddress((const GLubyte*)"wglMakeContextCurrentEXT")) == NULL) || r;
  9592. return r;
  9593. }
  9594. #endif /* WGL_EXT_make_current_read */
  9595. #ifdef WGL_EXT_multisample
  9596. #endif /* WGL_EXT_multisample */
  9597. #ifdef WGL_EXT_pbuffer
  9598. static GLboolean _glewInit_WGL_EXT_pbuffer (WGLEW_CONTEXT_ARG_DEF_INIT)
  9599. {
  9600. GLboolean r = GL_FALSE;
  9601. r = ((wglCreatePbufferEXT = (PFNWGLCREATEPBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"wglCreatePbufferEXT")) == NULL) || r;
  9602. r = ((wglDestroyPbufferEXT = (PFNWGLDESTROYPBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"wglDestroyPbufferEXT")) == NULL) || r;
  9603. r = ((wglGetPbufferDCEXT = (PFNWGLGETPBUFFERDCEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetPbufferDCEXT")) == NULL) || r;
  9604. r = ((wglQueryPbufferEXT = (PFNWGLQUERYPBUFFEREXTPROC)glewGetProcAddress((const GLubyte*)"wglQueryPbufferEXT")) == NULL) || r;
  9605. r = ((wglReleasePbufferDCEXT = (PFNWGLRELEASEPBUFFERDCEXTPROC)glewGetProcAddress((const GLubyte*)"wglReleasePbufferDCEXT")) == NULL) || r;
  9606. return r;
  9607. }
  9608. #endif /* WGL_EXT_pbuffer */
  9609. #ifdef WGL_EXT_pixel_format
  9610. static GLboolean _glewInit_WGL_EXT_pixel_format (WGLEW_CONTEXT_ARG_DEF_INIT)
  9611. {
  9612. GLboolean r = GL_FALSE;
  9613. r = ((wglChoosePixelFormatEXT = (PFNWGLCHOOSEPIXELFORMATEXTPROC)glewGetProcAddress((const GLubyte*)"wglChoosePixelFormatEXT")) == NULL) || r;
  9614. r = ((wglGetPixelFormatAttribfvEXT = (PFNWGLGETPIXELFORMATATTRIBFVEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetPixelFormatAttribfvEXT")) == NULL) || r;
  9615. r = ((wglGetPixelFormatAttribivEXT = (PFNWGLGETPIXELFORMATATTRIBIVEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetPixelFormatAttribivEXT")) == NULL) || r;
  9616. return r;
  9617. }
  9618. #endif /* WGL_EXT_pixel_format */
  9619. #ifdef WGL_EXT_pixel_format_packed_float
  9620. #endif /* WGL_EXT_pixel_format_packed_float */
  9621. #ifdef WGL_EXT_swap_control
  9622. static GLboolean _glewInit_WGL_EXT_swap_control (WGLEW_CONTEXT_ARG_DEF_INIT)
  9623. {
  9624. GLboolean r = GL_FALSE;
  9625. r = ((wglGetSwapIntervalEXT = (PFNWGLGETSWAPINTERVALEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetSwapIntervalEXT")) == NULL) || r;
  9626. r = ((wglSwapIntervalEXT = (PFNWGLSWAPINTERVALEXTPROC)glewGetProcAddress((const GLubyte*)"wglSwapIntervalEXT")) == NULL) || r;
  9627. return r;
  9628. }
  9629. #endif /* WGL_EXT_swap_control */
  9630. #ifdef WGL_EXT_swap_control_tear
  9631. #endif /* WGL_EXT_swap_control_tear */
  9632. #ifdef WGL_I3D_digital_video_control
  9633. static GLboolean _glewInit_WGL_I3D_digital_video_control (WGLEW_CONTEXT_ARG_DEF_INIT)
  9634. {
  9635. GLboolean r = GL_FALSE;
  9636. r = ((wglGetDigitalVideoParametersI3D = (PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetDigitalVideoParametersI3D")) == NULL) || r;
  9637. r = ((wglSetDigitalVideoParametersI3D = (PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC)glewGetProcAddress((const GLubyte*)"wglSetDigitalVideoParametersI3D")) == NULL) || r;
  9638. return r;
  9639. }
  9640. #endif /* WGL_I3D_digital_video_control */
  9641. #ifdef WGL_I3D_gamma
  9642. static GLboolean _glewInit_WGL_I3D_gamma (WGLEW_CONTEXT_ARG_DEF_INIT)
  9643. {
  9644. GLboolean r = GL_FALSE;
  9645. r = ((wglGetGammaTableI3D = (PFNWGLGETGAMMATABLEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetGammaTableI3D")) == NULL) || r;
  9646. r = ((wglGetGammaTableParametersI3D = (PFNWGLGETGAMMATABLEPARAMETERSI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetGammaTableParametersI3D")) == NULL) || r;
  9647. r = ((wglSetGammaTableI3D = (PFNWGLSETGAMMATABLEI3DPROC)glewGetProcAddress((const GLubyte*)"wglSetGammaTableI3D")) == NULL) || r;
  9648. r = ((wglSetGammaTableParametersI3D = (PFNWGLSETGAMMATABLEPARAMETERSI3DPROC)glewGetProcAddress((const GLubyte*)"wglSetGammaTableParametersI3D")) == NULL) || r;
  9649. return r;
  9650. }
  9651. #endif /* WGL_I3D_gamma */
  9652. #ifdef WGL_I3D_genlock
  9653. static GLboolean _glewInit_WGL_I3D_genlock (WGLEW_CONTEXT_ARG_DEF_INIT)
  9654. {
  9655. GLboolean r = GL_FALSE;
  9656. r = ((wglDisableGenlockI3D = (PFNWGLDISABLEGENLOCKI3DPROC)glewGetProcAddress((const GLubyte*)"wglDisableGenlockI3D")) == NULL) || r;
  9657. r = ((wglEnableGenlockI3D = (PFNWGLENABLEGENLOCKI3DPROC)glewGetProcAddress((const GLubyte*)"wglEnableGenlockI3D")) == NULL) || r;
  9658. r = ((wglGenlockSampleRateI3D = (PFNWGLGENLOCKSAMPLERATEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGenlockSampleRateI3D")) == NULL) || r;
  9659. r = ((wglGenlockSourceDelayI3D = (PFNWGLGENLOCKSOURCEDELAYI3DPROC)glewGetProcAddress((const GLubyte*)"wglGenlockSourceDelayI3D")) == NULL) || r;
  9660. r = ((wglGenlockSourceEdgeI3D = (PFNWGLGENLOCKSOURCEEDGEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGenlockSourceEdgeI3D")) == NULL) || r;
  9661. r = ((wglGenlockSourceI3D = (PFNWGLGENLOCKSOURCEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGenlockSourceI3D")) == NULL) || r;
  9662. r = ((wglGetGenlockSampleRateI3D = (PFNWGLGETGENLOCKSAMPLERATEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetGenlockSampleRateI3D")) == NULL) || r;
  9663. r = ((wglGetGenlockSourceDelayI3D = (PFNWGLGETGENLOCKSOURCEDELAYI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetGenlockSourceDelayI3D")) == NULL) || r;
  9664. r = ((wglGetGenlockSourceEdgeI3D = (PFNWGLGETGENLOCKSOURCEEDGEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetGenlockSourceEdgeI3D")) == NULL) || r;
  9665. r = ((wglGetGenlockSourceI3D = (PFNWGLGETGENLOCKSOURCEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetGenlockSourceI3D")) == NULL) || r;
  9666. r = ((wglIsEnabledGenlockI3D = (PFNWGLISENABLEDGENLOCKI3DPROC)glewGetProcAddress((const GLubyte*)"wglIsEnabledGenlockI3D")) == NULL) || r;
  9667. r = ((wglQueryGenlockMaxSourceDelayI3D = (PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC)glewGetProcAddress((const GLubyte*)"wglQueryGenlockMaxSourceDelayI3D")) == NULL) || r;
  9668. return r;
  9669. }
  9670. #endif /* WGL_I3D_genlock */
  9671. #ifdef WGL_I3D_image_buffer
  9672. static GLboolean _glewInit_WGL_I3D_image_buffer (WGLEW_CONTEXT_ARG_DEF_INIT)
  9673. {
  9674. GLboolean r = GL_FALSE;
  9675. r = ((wglAssociateImageBufferEventsI3D = (PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC)glewGetProcAddress((const GLubyte*)"wglAssociateImageBufferEventsI3D")) == NULL) || r;
  9676. r = ((wglCreateImageBufferI3D = (PFNWGLCREATEIMAGEBUFFERI3DPROC)glewGetProcAddress((const GLubyte*)"wglCreateImageBufferI3D")) == NULL) || r;
  9677. r = ((wglDestroyImageBufferI3D = (PFNWGLDESTROYIMAGEBUFFERI3DPROC)glewGetProcAddress((const GLubyte*)"wglDestroyImageBufferI3D")) == NULL) || r;
  9678. r = ((wglReleaseImageBufferEventsI3D = (PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC)glewGetProcAddress((const GLubyte*)"wglReleaseImageBufferEventsI3D")) == NULL) || r;
  9679. return r;
  9680. }
  9681. #endif /* WGL_I3D_image_buffer */
  9682. #ifdef WGL_I3D_swap_frame_lock
  9683. static GLboolean _glewInit_WGL_I3D_swap_frame_lock (WGLEW_CONTEXT_ARG_DEF_INIT)
  9684. {
  9685. GLboolean r = GL_FALSE;
  9686. r = ((wglDisableFrameLockI3D = (PFNWGLDISABLEFRAMELOCKI3DPROC)glewGetProcAddress((const GLubyte*)"wglDisableFrameLockI3D")) == NULL) || r;
  9687. r = ((wglEnableFrameLockI3D = (PFNWGLENABLEFRAMELOCKI3DPROC)glewGetProcAddress((const GLubyte*)"wglEnableFrameLockI3D")) == NULL) || r;
  9688. r = ((wglIsEnabledFrameLockI3D = (PFNWGLISENABLEDFRAMELOCKI3DPROC)glewGetProcAddress((const GLubyte*)"wglIsEnabledFrameLockI3D")) == NULL) || r;
  9689. r = ((wglQueryFrameLockMasterI3D = (PFNWGLQUERYFRAMELOCKMASTERI3DPROC)glewGetProcAddress((const GLubyte*)"wglQueryFrameLockMasterI3D")) == NULL) || r;
  9690. return r;
  9691. }
  9692. #endif /* WGL_I3D_swap_frame_lock */
  9693. #ifdef WGL_I3D_swap_frame_usage
  9694. static GLboolean _glewInit_WGL_I3D_swap_frame_usage (WGLEW_CONTEXT_ARG_DEF_INIT)
  9695. {
  9696. GLboolean r = GL_FALSE;
  9697. r = ((wglBeginFrameTrackingI3D = (PFNWGLBEGINFRAMETRACKINGI3DPROC)glewGetProcAddress((const GLubyte*)"wglBeginFrameTrackingI3D")) == NULL) || r;
  9698. r = ((wglEndFrameTrackingI3D = (PFNWGLENDFRAMETRACKINGI3DPROC)glewGetProcAddress((const GLubyte*)"wglEndFrameTrackingI3D")) == NULL) || r;
  9699. r = ((wglGetFrameUsageI3D = (PFNWGLGETFRAMEUSAGEI3DPROC)glewGetProcAddress((const GLubyte*)"wglGetFrameUsageI3D")) == NULL) || r;
  9700. r = ((wglQueryFrameTrackingI3D = (PFNWGLQUERYFRAMETRACKINGI3DPROC)glewGetProcAddress((const GLubyte*)"wglQueryFrameTrackingI3D")) == NULL) || r;
  9701. return r;
  9702. }
  9703. #endif /* WGL_I3D_swap_frame_usage */
  9704. #ifdef WGL_NV_DX_interop
  9705. static GLboolean _glewInit_WGL_NV_DX_interop (WGLEW_CONTEXT_ARG_DEF_INIT)
  9706. {
  9707. GLboolean r = GL_FALSE;
  9708. r = ((wglDXCloseDeviceNV = (PFNWGLDXCLOSEDEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglDXCloseDeviceNV")) == NULL) || r;
  9709. r = ((wglDXLockObjectsNV = (PFNWGLDXLOCKOBJECTSNVPROC)glewGetProcAddress((const GLubyte*)"wglDXLockObjectsNV")) == NULL) || r;
  9710. r = ((wglDXObjectAccessNV = (PFNWGLDXOBJECTACCESSNVPROC)glewGetProcAddress((const GLubyte*)"wglDXObjectAccessNV")) == NULL) || r;
  9711. r = ((wglDXOpenDeviceNV = (PFNWGLDXOPENDEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglDXOpenDeviceNV")) == NULL) || r;
  9712. r = ((wglDXRegisterObjectNV = (PFNWGLDXREGISTEROBJECTNVPROC)glewGetProcAddress((const GLubyte*)"wglDXRegisterObjectNV")) == NULL) || r;
  9713. r = ((wglDXSetResourceShareHandleNV = (PFNWGLDXSETRESOURCESHAREHANDLENVPROC)glewGetProcAddress((const GLubyte*)"wglDXSetResourceShareHandleNV")) == NULL) || r;
  9714. r = ((wglDXUnlockObjectsNV = (PFNWGLDXUNLOCKOBJECTSNVPROC)glewGetProcAddress((const GLubyte*)"wglDXUnlockObjectsNV")) == NULL) || r;
  9715. r = ((wglDXUnregisterObjectNV = (PFNWGLDXUNREGISTEROBJECTNVPROC)glewGetProcAddress((const GLubyte*)"wglDXUnregisterObjectNV")) == NULL) || r;
  9716. return r;
  9717. }
  9718. #endif /* WGL_NV_DX_interop */
  9719. #ifdef WGL_NV_DX_interop2
  9720. #endif /* WGL_NV_DX_interop2 */
  9721. #ifdef WGL_NV_copy_image
  9722. static GLboolean _glewInit_WGL_NV_copy_image (WGLEW_CONTEXT_ARG_DEF_INIT)
  9723. {
  9724. GLboolean r = GL_FALSE;
  9725. r = ((wglCopyImageSubDataNV = (PFNWGLCOPYIMAGESUBDATANVPROC)glewGetProcAddress((const GLubyte*)"wglCopyImageSubDataNV")) == NULL) || r;
  9726. return r;
  9727. }
  9728. #endif /* WGL_NV_copy_image */
  9729. #ifdef WGL_NV_float_buffer
  9730. #endif /* WGL_NV_float_buffer */
  9731. #ifdef WGL_NV_gpu_affinity
  9732. static GLboolean _glewInit_WGL_NV_gpu_affinity (WGLEW_CONTEXT_ARG_DEF_INIT)
  9733. {
  9734. GLboolean r = GL_FALSE;
  9735. r = ((wglCreateAffinityDCNV = (PFNWGLCREATEAFFINITYDCNVPROC)glewGetProcAddress((const GLubyte*)"wglCreateAffinityDCNV")) == NULL) || r;
  9736. r = ((wglDeleteDCNV = (PFNWGLDELETEDCNVPROC)glewGetProcAddress((const GLubyte*)"wglDeleteDCNV")) == NULL) || r;
  9737. r = ((wglEnumGpuDevicesNV = (PFNWGLENUMGPUDEVICESNVPROC)glewGetProcAddress((const GLubyte*)"wglEnumGpuDevicesNV")) == NULL) || r;
  9738. r = ((wglEnumGpusFromAffinityDCNV = (PFNWGLENUMGPUSFROMAFFINITYDCNVPROC)glewGetProcAddress((const GLubyte*)"wglEnumGpusFromAffinityDCNV")) == NULL) || r;
  9739. r = ((wglEnumGpusNV = (PFNWGLENUMGPUSNVPROC)glewGetProcAddress((const GLubyte*)"wglEnumGpusNV")) == NULL) || r;
  9740. return r;
  9741. }
  9742. #endif /* WGL_NV_gpu_affinity */
  9743. #ifdef WGL_NV_multisample_coverage
  9744. #endif /* WGL_NV_multisample_coverage */
  9745. #ifdef WGL_NV_present_video
  9746. static GLboolean _glewInit_WGL_NV_present_video (WGLEW_CONTEXT_ARG_DEF_INIT)
  9747. {
  9748. GLboolean r = GL_FALSE;
  9749. r = ((wglBindVideoDeviceNV = (PFNWGLBINDVIDEODEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglBindVideoDeviceNV")) == NULL) || r;
  9750. r = ((wglEnumerateVideoDevicesNV = (PFNWGLENUMERATEVIDEODEVICESNVPROC)glewGetProcAddress((const GLubyte*)"wglEnumerateVideoDevicesNV")) == NULL) || r;
  9751. r = ((wglQueryCurrentContextNV = (PFNWGLQUERYCURRENTCONTEXTNVPROC)glewGetProcAddress((const GLubyte*)"wglQueryCurrentContextNV")) == NULL) || r;
  9752. return r;
  9753. }
  9754. #endif /* WGL_NV_present_video */
  9755. #ifdef WGL_NV_render_depth_texture
  9756. #endif /* WGL_NV_render_depth_texture */
  9757. #ifdef WGL_NV_render_texture_rectangle
  9758. #endif /* WGL_NV_render_texture_rectangle */
  9759. #ifdef WGL_NV_swap_group
  9760. static GLboolean _glewInit_WGL_NV_swap_group (WGLEW_CONTEXT_ARG_DEF_INIT)
  9761. {
  9762. GLboolean r = GL_FALSE;
  9763. r = ((wglBindSwapBarrierNV = (PFNWGLBINDSWAPBARRIERNVPROC)glewGetProcAddress((const GLubyte*)"wglBindSwapBarrierNV")) == NULL) || r;
  9764. r = ((wglJoinSwapGroupNV = (PFNWGLJOINSWAPGROUPNVPROC)glewGetProcAddress((const GLubyte*)"wglJoinSwapGroupNV")) == NULL) || r;
  9765. r = ((wglQueryFrameCountNV = (PFNWGLQUERYFRAMECOUNTNVPROC)glewGetProcAddress((const GLubyte*)"wglQueryFrameCountNV")) == NULL) || r;
  9766. r = ((wglQueryMaxSwapGroupsNV = (PFNWGLQUERYMAXSWAPGROUPSNVPROC)glewGetProcAddress((const GLubyte*)"wglQueryMaxSwapGroupsNV")) == NULL) || r;
  9767. r = ((wglQuerySwapGroupNV = (PFNWGLQUERYSWAPGROUPNVPROC)glewGetProcAddress((const GLubyte*)"wglQuerySwapGroupNV")) == NULL) || r;
  9768. r = ((wglResetFrameCountNV = (PFNWGLRESETFRAMECOUNTNVPROC)glewGetProcAddress((const GLubyte*)"wglResetFrameCountNV")) == NULL) || r;
  9769. return r;
  9770. }
  9771. #endif /* WGL_NV_swap_group */
  9772. #ifdef WGL_NV_vertex_array_range
  9773. static GLboolean _glewInit_WGL_NV_vertex_array_range (WGLEW_CONTEXT_ARG_DEF_INIT)
  9774. {
  9775. GLboolean r = GL_FALSE;
  9776. r = ((wglAllocateMemoryNV = (PFNWGLALLOCATEMEMORYNVPROC)glewGetProcAddress((const GLubyte*)"wglAllocateMemoryNV")) == NULL) || r;
  9777. r = ((wglFreeMemoryNV = (PFNWGLFREEMEMORYNVPROC)glewGetProcAddress((const GLubyte*)"wglFreeMemoryNV")) == NULL) || r;
  9778. return r;
  9779. }
  9780. #endif /* WGL_NV_vertex_array_range */
  9781. #ifdef WGL_NV_video_capture
  9782. static GLboolean _glewInit_WGL_NV_video_capture (WGLEW_CONTEXT_ARG_DEF_INIT)
  9783. {
  9784. GLboolean r = GL_FALSE;
  9785. r = ((wglBindVideoCaptureDeviceNV = (PFNWGLBINDVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglBindVideoCaptureDeviceNV")) == NULL) || r;
  9786. r = ((wglEnumerateVideoCaptureDevicesNV = (PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC)glewGetProcAddress((const GLubyte*)"wglEnumerateVideoCaptureDevicesNV")) == NULL) || r;
  9787. r = ((wglLockVideoCaptureDeviceNV = (PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglLockVideoCaptureDeviceNV")) == NULL) || r;
  9788. r = ((wglQueryVideoCaptureDeviceNV = (PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglQueryVideoCaptureDeviceNV")) == NULL) || r;
  9789. r = ((wglReleaseVideoCaptureDeviceNV = (PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglReleaseVideoCaptureDeviceNV")) == NULL) || r;
  9790. return r;
  9791. }
  9792. #endif /* WGL_NV_video_capture */
  9793. #ifdef WGL_NV_video_output
  9794. static GLboolean _glewInit_WGL_NV_video_output (WGLEW_CONTEXT_ARG_DEF_INIT)
  9795. {
  9796. GLboolean r = GL_FALSE;
  9797. r = ((wglBindVideoImageNV = (PFNWGLBINDVIDEOIMAGENVPROC)glewGetProcAddress((const GLubyte*)"wglBindVideoImageNV")) == NULL) || r;
  9798. r = ((wglGetVideoDeviceNV = (PFNWGLGETVIDEODEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglGetVideoDeviceNV")) == NULL) || r;
  9799. r = ((wglGetVideoInfoNV = (PFNWGLGETVIDEOINFONVPROC)glewGetProcAddress((const GLubyte*)"wglGetVideoInfoNV")) == NULL) || r;
  9800. r = ((wglReleaseVideoDeviceNV = (PFNWGLRELEASEVIDEODEVICENVPROC)glewGetProcAddress((const GLubyte*)"wglReleaseVideoDeviceNV")) == NULL) || r;
  9801. r = ((wglReleaseVideoImageNV = (PFNWGLRELEASEVIDEOIMAGENVPROC)glewGetProcAddress((const GLubyte*)"wglReleaseVideoImageNV")) == NULL) || r;
  9802. r = ((wglSendPbufferToVideoNV = (PFNWGLSENDPBUFFERTOVIDEONVPROC)glewGetProcAddress((const GLubyte*)"wglSendPbufferToVideoNV")) == NULL) || r;
  9803. return r;
  9804. }
  9805. #endif /* WGL_NV_video_output */
  9806. #ifdef WGL_OML_sync_control
  9807. static GLboolean _glewInit_WGL_OML_sync_control (WGLEW_CONTEXT_ARG_DEF_INIT)
  9808. {
  9809. GLboolean r = GL_FALSE;
  9810. r = ((wglGetMscRateOML = (PFNWGLGETMSCRATEOMLPROC)glewGetProcAddress((const GLubyte*)"wglGetMscRateOML")) == NULL) || r;
  9811. r = ((wglGetSyncValuesOML = (PFNWGLGETSYNCVALUESOMLPROC)glewGetProcAddress((const GLubyte*)"wglGetSyncValuesOML")) == NULL) || r;
  9812. r = ((wglSwapBuffersMscOML = (PFNWGLSWAPBUFFERSMSCOMLPROC)glewGetProcAddress((const GLubyte*)"wglSwapBuffersMscOML")) == NULL) || r;
  9813. r = ((wglSwapLayerBuffersMscOML = (PFNWGLSWAPLAYERBUFFERSMSCOMLPROC)glewGetProcAddress((const GLubyte*)"wglSwapLayerBuffersMscOML")) == NULL) || r;
  9814. r = ((wglWaitForMscOML = (PFNWGLWAITFORMSCOMLPROC)glewGetProcAddress((const GLubyte*)"wglWaitForMscOML")) == NULL) || r;
  9815. r = ((wglWaitForSbcOML = (PFNWGLWAITFORSBCOMLPROC)glewGetProcAddress((const GLubyte*)"wglWaitForSbcOML")) == NULL) || r;
  9816. return r;
  9817. }
  9818. #endif /* WGL_OML_sync_control */
  9819. /* ------------------------------------------------------------------------- */
  9820. static PFNWGLGETEXTENSIONSSTRINGARBPROC _wglewGetExtensionsStringARB = NULL;
  9821. static PFNWGLGETEXTENSIONSSTRINGEXTPROC _wglewGetExtensionsStringEXT = NULL;
  9822. GLboolean GLEWAPIENTRY wglewGetExtension (const char* name)
  9823. {
  9824. const GLubyte* start;
  9825. const GLubyte* end;
  9826. if (_wglewGetExtensionsStringARB == NULL)
  9827. if (_wglewGetExtensionsStringEXT == NULL)
  9828. return GL_FALSE;
  9829. else
  9830. start = (const GLubyte*)_wglewGetExtensionsStringEXT();
  9831. else
  9832. start = (const GLubyte*)_wglewGetExtensionsStringARB(wglGetCurrentDC());
  9833. if (start == 0)
  9834. return GL_FALSE;
  9835. end = start + _glewStrLen(start);
  9836. return _glewSearchExtension(name, start, end);
  9837. }
  9838. GLenum GLEWAPIENTRY wglewContextInit (WGLEW_CONTEXT_ARG_DEF_LIST)
  9839. {
  9840. GLboolean crippled;
  9841. const GLubyte* extStart;
  9842. const GLubyte* extEnd;
  9843. /* find wgl extension string query functions */
  9844. _wglewGetExtensionsStringARB = (PFNWGLGETEXTENSIONSSTRINGARBPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringARB");
  9845. _wglewGetExtensionsStringEXT = (PFNWGLGETEXTENSIONSSTRINGEXTPROC)glewGetProcAddress((const GLubyte*)"wglGetExtensionsStringEXT");
  9846. /* query wgl extension string */
  9847. if (_wglewGetExtensionsStringARB == NULL)
  9848. if (_wglewGetExtensionsStringEXT == NULL)
  9849. extStart = (const GLubyte*)"";
  9850. else
  9851. extStart = (const GLubyte*)_wglewGetExtensionsStringEXT();
  9852. else
  9853. extStart = (const GLubyte*)_wglewGetExtensionsStringARB(wglGetCurrentDC());
  9854. extEnd = extStart + _glewStrLen(extStart);
  9855. /* initialize extensions */
  9856. crippled = _wglewGetExtensionsStringARB == NULL && _wglewGetExtensionsStringEXT == NULL;
  9857. #ifdef WGL_3DFX_multisample
  9858. CONST_CAST(WGLEW_3DFX_multisample) = _glewSearchExtension("WGL_3DFX_multisample", extStart, extEnd);
  9859. #endif /* WGL_3DFX_multisample */
  9860. #ifdef WGL_3DL_stereo_control
  9861. CONST_CAST(WGLEW_3DL_stereo_control) = _glewSearchExtension("WGL_3DL_stereo_control", extStart, extEnd);
  9862. if (glewExperimental || WGLEW_3DL_stereo_control|| crippled) CONST_CAST(WGLEW_3DL_stereo_control)= !_glewInit_WGL_3DL_stereo_control(GLEW_CONTEXT_ARG_VAR_INIT);
  9863. #endif /* WGL_3DL_stereo_control */
  9864. #ifdef WGL_AMD_gpu_association
  9865. CONST_CAST(WGLEW_AMD_gpu_association) = _glewSearchExtension("WGL_AMD_gpu_association", extStart, extEnd);
  9866. if (glewExperimental || WGLEW_AMD_gpu_association|| crippled) CONST_CAST(WGLEW_AMD_gpu_association)= !_glewInit_WGL_AMD_gpu_association(GLEW_CONTEXT_ARG_VAR_INIT);
  9867. #endif /* WGL_AMD_gpu_association */
  9868. #ifdef WGL_ARB_buffer_region
  9869. CONST_CAST(WGLEW_ARB_buffer_region) = _glewSearchExtension("WGL_ARB_buffer_region", extStart, extEnd);
  9870. if (glewExperimental || WGLEW_ARB_buffer_region|| crippled) CONST_CAST(WGLEW_ARB_buffer_region)= !_glewInit_WGL_ARB_buffer_region(GLEW_CONTEXT_ARG_VAR_INIT);
  9871. #endif /* WGL_ARB_buffer_region */
  9872. #ifdef WGL_ARB_create_context
  9873. CONST_CAST(WGLEW_ARB_create_context) = _glewSearchExtension("WGL_ARB_create_context", extStart, extEnd);
  9874. if (glewExperimental || WGLEW_ARB_create_context|| crippled) CONST_CAST(WGLEW_ARB_create_context)= !_glewInit_WGL_ARB_create_context(GLEW_CONTEXT_ARG_VAR_INIT);
  9875. #endif /* WGL_ARB_create_context */
  9876. #ifdef WGL_ARB_create_context_profile
  9877. CONST_CAST(WGLEW_ARB_create_context_profile) = _glewSearchExtension("WGL_ARB_create_context_profile", extStart, extEnd);
  9878. #endif /* WGL_ARB_create_context_profile */
  9879. #ifdef WGL_ARB_create_context_robustness
  9880. CONST_CAST(WGLEW_ARB_create_context_robustness) = _glewSearchExtension("WGL_ARB_create_context_robustness", extStart, extEnd);
  9881. #endif /* WGL_ARB_create_context_robustness */
  9882. #ifdef WGL_ARB_extensions_string
  9883. CONST_CAST(WGLEW_ARB_extensions_string) = _glewSearchExtension("WGL_ARB_extensions_string", extStart, extEnd);
  9884. if (glewExperimental || WGLEW_ARB_extensions_string|| crippled) CONST_CAST(WGLEW_ARB_extensions_string)= !_glewInit_WGL_ARB_extensions_string(GLEW_CONTEXT_ARG_VAR_INIT);
  9885. #endif /* WGL_ARB_extensions_string */
  9886. #ifdef WGL_ARB_framebuffer_sRGB
  9887. CONST_CAST(WGLEW_ARB_framebuffer_sRGB) = _glewSearchExtension("WGL_ARB_framebuffer_sRGB", extStart, extEnd);
  9888. #endif /* WGL_ARB_framebuffer_sRGB */
  9889. #ifdef WGL_ARB_make_current_read
  9890. CONST_CAST(WGLEW_ARB_make_current_read) = _glewSearchExtension("WGL_ARB_make_current_read", extStart, extEnd);
  9891. if (glewExperimental || WGLEW_ARB_make_current_read|| crippled) CONST_CAST(WGLEW_ARB_make_current_read)= !_glewInit_WGL_ARB_make_current_read(GLEW_CONTEXT_ARG_VAR_INIT);
  9892. #endif /* WGL_ARB_make_current_read */
  9893. #ifdef WGL_ARB_multisample
  9894. CONST_CAST(WGLEW_ARB_multisample) = _glewSearchExtension("WGL_ARB_multisample", extStart, extEnd);
  9895. #endif /* WGL_ARB_multisample */
  9896. #ifdef WGL_ARB_pbuffer
  9897. CONST_CAST(WGLEW_ARB_pbuffer) = _glewSearchExtension("WGL_ARB_pbuffer", extStart, extEnd);
  9898. if (glewExperimental || WGLEW_ARB_pbuffer|| crippled) CONST_CAST(WGLEW_ARB_pbuffer)= !_glewInit_WGL_ARB_pbuffer(GLEW_CONTEXT_ARG_VAR_INIT);
  9899. #endif /* WGL_ARB_pbuffer */
  9900. #ifdef WGL_ARB_pixel_format
  9901. CONST_CAST(WGLEW_ARB_pixel_format) = _glewSearchExtension("WGL_ARB_pixel_format", extStart, extEnd);
  9902. if (glewExperimental || WGLEW_ARB_pixel_format|| crippled) CONST_CAST(WGLEW_ARB_pixel_format)= !_glewInit_WGL_ARB_pixel_format(GLEW_CONTEXT_ARG_VAR_INIT);
  9903. #endif /* WGL_ARB_pixel_format */
  9904. #ifdef WGL_ARB_pixel_format_float
  9905. CONST_CAST(WGLEW_ARB_pixel_format_float) = _glewSearchExtension("WGL_ARB_pixel_format_float", extStart, extEnd);
  9906. #endif /* WGL_ARB_pixel_format_float */
  9907. #ifdef WGL_ARB_render_texture
  9908. CONST_CAST(WGLEW_ARB_render_texture) = _glewSearchExtension("WGL_ARB_render_texture", extStart, extEnd);
  9909. if (glewExperimental || WGLEW_ARB_render_texture|| crippled) CONST_CAST(WGLEW_ARB_render_texture)= !_glewInit_WGL_ARB_render_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  9910. #endif /* WGL_ARB_render_texture */
  9911. #ifdef WGL_ARB_robustness_application_isolation
  9912. CONST_CAST(WGLEW_ARB_robustness_application_isolation) = _glewSearchExtension("WGL_ARB_robustness_application_isolation", extStart, extEnd);
  9913. #endif /* WGL_ARB_robustness_application_isolation */
  9914. #ifdef WGL_ARB_robustness_share_group_isolation
  9915. CONST_CAST(WGLEW_ARB_robustness_share_group_isolation) = _glewSearchExtension("WGL_ARB_robustness_share_group_isolation", extStart, extEnd);
  9916. #endif /* WGL_ARB_robustness_share_group_isolation */
  9917. #ifdef WGL_ATI_pixel_format_float
  9918. CONST_CAST(WGLEW_ATI_pixel_format_float) = _glewSearchExtension("WGL_ATI_pixel_format_float", extStart, extEnd);
  9919. #endif /* WGL_ATI_pixel_format_float */
  9920. #ifdef WGL_ATI_render_texture_rectangle
  9921. CONST_CAST(WGLEW_ATI_render_texture_rectangle) = _glewSearchExtension("WGL_ATI_render_texture_rectangle", extStart, extEnd);
  9922. #endif /* WGL_ATI_render_texture_rectangle */
  9923. #ifdef WGL_EXT_create_context_es2_profile
  9924. CONST_CAST(WGLEW_EXT_create_context_es2_profile) = _glewSearchExtension("WGL_EXT_create_context_es2_profile", extStart, extEnd);
  9925. #endif /* WGL_EXT_create_context_es2_profile */
  9926. #ifdef WGL_EXT_create_context_es_profile
  9927. CONST_CAST(WGLEW_EXT_create_context_es_profile) = _glewSearchExtension("WGL_EXT_create_context_es_profile", extStart, extEnd);
  9928. #endif /* WGL_EXT_create_context_es_profile */
  9929. #ifdef WGL_EXT_depth_float
  9930. CONST_CAST(WGLEW_EXT_depth_float) = _glewSearchExtension("WGL_EXT_depth_float", extStart, extEnd);
  9931. #endif /* WGL_EXT_depth_float */
  9932. #ifdef WGL_EXT_display_color_table
  9933. CONST_CAST(WGLEW_EXT_display_color_table) = _glewSearchExtension("WGL_EXT_display_color_table", extStart, extEnd);
  9934. if (glewExperimental || WGLEW_EXT_display_color_table|| crippled) CONST_CAST(WGLEW_EXT_display_color_table)= !_glewInit_WGL_EXT_display_color_table(GLEW_CONTEXT_ARG_VAR_INIT);
  9935. #endif /* WGL_EXT_display_color_table */
  9936. #ifdef WGL_EXT_extensions_string
  9937. CONST_CAST(WGLEW_EXT_extensions_string) = _glewSearchExtension("WGL_EXT_extensions_string", extStart, extEnd);
  9938. if (glewExperimental || WGLEW_EXT_extensions_string|| crippled) CONST_CAST(WGLEW_EXT_extensions_string)= !_glewInit_WGL_EXT_extensions_string(GLEW_CONTEXT_ARG_VAR_INIT);
  9939. #endif /* WGL_EXT_extensions_string */
  9940. #ifdef WGL_EXT_framebuffer_sRGB
  9941. CONST_CAST(WGLEW_EXT_framebuffer_sRGB) = _glewSearchExtension("WGL_EXT_framebuffer_sRGB", extStart, extEnd);
  9942. #endif /* WGL_EXT_framebuffer_sRGB */
  9943. #ifdef WGL_EXT_make_current_read
  9944. CONST_CAST(WGLEW_EXT_make_current_read) = _glewSearchExtension("WGL_EXT_make_current_read", extStart, extEnd);
  9945. if (glewExperimental || WGLEW_EXT_make_current_read|| crippled) CONST_CAST(WGLEW_EXT_make_current_read)= !_glewInit_WGL_EXT_make_current_read(GLEW_CONTEXT_ARG_VAR_INIT);
  9946. #endif /* WGL_EXT_make_current_read */
  9947. #ifdef WGL_EXT_multisample
  9948. CONST_CAST(WGLEW_EXT_multisample) = _glewSearchExtension("WGL_EXT_multisample", extStart, extEnd);
  9949. #endif /* WGL_EXT_multisample */
  9950. #ifdef WGL_EXT_pbuffer
  9951. CONST_CAST(WGLEW_EXT_pbuffer) = _glewSearchExtension("WGL_EXT_pbuffer", extStart, extEnd);
  9952. if (glewExperimental || WGLEW_EXT_pbuffer|| crippled) CONST_CAST(WGLEW_EXT_pbuffer)= !_glewInit_WGL_EXT_pbuffer(GLEW_CONTEXT_ARG_VAR_INIT);
  9953. #endif /* WGL_EXT_pbuffer */
  9954. #ifdef WGL_EXT_pixel_format
  9955. CONST_CAST(WGLEW_EXT_pixel_format) = _glewSearchExtension("WGL_EXT_pixel_format", extStart, extEnd);
  9956. if (glewExperimental || WGLEW_EXT_pixel_format|| crippled) CONST_CAST(WGLEW_EXT_pixel_format)= !_glewInit_WGL_EXT_pixel_format(GLEW_CONTEXT_ARG_VAR_INIT);
  9957. #endif /* WGL_EXT_pixel_format */
  9958. #ifdef WGL_EXT_pixel_format_packed_float
  9959. CONST_CAST(WGLEW_EXT_pixel_format_packed_float) = _glewSearchExtension("WGL_EXT_pixel_format_packed_float", extStart, extEnd);
  9960. #endif /* WGL_EXT_pixel_format_packed_float */
  9961. #ifdef WGL_EXT_swap_control
  9962. CONST_CAST(WGLEW_EXT_swap_control) = _glewSearchExtension("WGL_EXT_swap_control", extStart, extEnd);
  9963. if (glewExperimental || WGLEW_EXT_swap_control|| crippled) CONST_CAST(WGLEW_EXT_swap_control)= !_glewInit_WGL_EXT_swap_control(GLEW_CONTEXT_ARG_VAR_INIT);
  9964. #endif /* WGL_EXT_swap_control */
  9965. #ifdef WGL_EXT_swap_control_tear
  9966. CONST_CAST(WGLEW_EXT_swap_control_tear) = _glewSearchExtension("WGL_EXT_swap_control_tear", extStart, extEnd);
  9967. #endif /* WGL_EXT_swap_control_tear */
  9968. #ifdef WGL_I3D_digital_video_control
  9969. CONST_CAST(WGLEW_I3D_digital_video_control) = _glewSearchExtension("WGL_I3D_digital_video_control", extStart, extEnd);
  9970. if (glewExperimental || WGLEW_I3D_digital_video_control|| crippled) CONST_CAST(WGLEW_I3D_digital_video_control)= !_glewInit_WGL_I3D_digital_video_control(GLEW_CONTEXT_ARG_VAR_INIT);
  9971. #endif /* WGL_I3D_digital_video_control */
  9972. #ifdef WGL_I3D_gamma
  9973. CONST_CAST(WGLEW_I3D_gamma) = _glewSearchExtension("WGL_I3D_gamma", extStart, extEnd);
  9974. if (glewExperimental || WGLEW_I3D_gamma|| crippled) CONST_CAST(WGLEW_I3D_gamma)= !_glewInit_WGL_I3D_gamma(GLEW_CONTEXT_ARG_VAR_INIT);
  9975. #endif /* WGL_I3D_gamma */
  9976. #ifdef WGL_I3D_genlock
  9977. CONST_CAST(WGLEW_I3D_genlock) = _glewSearchExtension("WGL_I3D_genlock", extStart, extEnd);
  9978. if (glewExperimental || WGLEW_I3D_genlock|| crippled) CONST_CAST(WGLEW_I3D_genlock)= !_glewInit_WGL_I3D_genlock(GLEW_CONTEXT_ARG_VAR_INIT);
  9979. #endif /* WGL_I3D_genlock */
  9980. #ifdef WGL_I3D_image_buffer
  9981. CONST_CAST(WGLEW_I3D_image_buffer) = _glewSearchExtension("WGL_I3D_image_buffer", extStart, extEnd);
  9982. if (glewExperimental || WGLEW_I3D_image_buffer|| crippled) CONST_CAST(WGLEW_I3D_image_buffer)= !_glewInit_WGL_I3D_image_buffer(GLEW_CONTEXT_ARG_VAR_INIT);
  9983. #endif /* WGL_I3D_image_buffer */
  9984. #ifdef WGL_I3D_swap_frame_lock
  9985. CONST_CAST(WGLEW_I3D_swap_frame_lock) = _glewSearchExtension("WGL_I3D_swap_frame_lock", extStart, extEnd);
  9986. if (glewExperimental || WGLEW_I3D_swap_frame_lock|| crippled) CONST_CAST(WGLEW_I3D_swap_frame_lock)= !_glewInit_WGL_I3D_swap_frame_lock(GLEW_CONTEXT_ARG_VAR_INIT);
  9987. #endif /* WGL_I3D_swap_frame_lock */
  9988. #ifdef WGL_I3D_swap_frame_usage
  9989. CONST_CAST(WGLEW_I3D_swap_frame_usage) = _glewSearchExtension("WGL_I3D_swap_frame_usage", extStart, extEnd);
  9990. if (glewExperimental || WGLEW_I3D_swap_frame_usage|| crippled) CONST_CAST(WGLEW_I3D_swap_frame_usage)= !_glewInit_WGL_I3D_swap_frame_usage(GLEW_CONTEXT_ARG_VAR_INIT);
  9991. #endif /* WGL_I3D_swap_frame_usage */
  9992. #ifdef WGL_NV_DX_interop
  9993. CONST_CAST(WGLEW_NV_DX_interop) = _glewSearchExtension("WGL_NV_DX_interop", extStart, extEnd);
  9994. if (glewExperimental || WGLEW_NV_DX_interop|| crippled) CONST_CAST(WGLEW_NV_DX_interop)= !_glewInit_WGL_NV_DX_interop(GLEW_CONTEXT_ARG_VAR_INIT);
  9995. #endif /* WGL_NV_DX_interop */
  9996. #ifdef WGL_NV_DX_interop2
  9997. CONST_CAST(WGLEW_NV_DX_interop2) = _glewSearchExtension("WGL_NV_DX_interop2", extStart, extEnd);
  9998. #endif /* WGL_NV_DX_interop2 */
  9999. #ifdef WGL_NV_copy_image
  10000. CONST_CAST(WGLEW_NV_copy_image) = _glewSearchExtension("WGL_NV_copy_image", extStart, extEnd);
  10001. if (glewExperimental || WGLEW_NV_copy_image|| crippled) CONST_CAST(WGLEW_NV_copy_image)= !_glewInit_WGL_NV_copy_image(GLEW_CONTEXT_ARG_VAR_INIT);
  10002. #endif /* WGL_NV_copy_image */
  10003. #ifdef WGL_NV_float_buffer
  10004. CONST_CAST(WGLEW_NV_float_buffer) = _glewSearchExtension("WGL_NV_float_buffer", extStart, extEnd);
  10005. #endif /* WGL_NV_float_buffer */
  10006. #ifdef WGL_NV_gpu_affinity
  10007. CONST_CAST(WGLEW_NV_gpu_affinity) = _glewSearchExtension("WGL_NV_gpu_affinity", extStart, extEnd);
  10008. if (glewExperimental || WGLEW_NV_gpu_affinity|| crippled) CONST_CAST(WGLEW_NV_gpu_affinity)= !_glewInit_WGL_NV_gpu_affinity(GLEW_CONTEXT_ARG_VAR_INIT);
  10009. #endif /* WGL_NV_gpu_affinity */
  10010. #ifdef WGL_NV_multisample_coverage
  10011. CONST_CAST(WGLEW_NV_multisample_coverage) = _glewSearchExtension("WGL_NV_multisample_coverage", extStart, extEnd);
  10012. #endif /* WGL_NV_multisample_coverage */
  10013. #ifdef WGL_NV_present_video
  10014. CONST_CAST(WGLEW_NV_present_video) = _glewSearchExtension("WGL_NV_present_video", extStart, extEnd);
  10015. if (glewExperimental || WGLEW_NV_present_video|| crippled) CONST_CAST(WGLEW_NV_present_video)= !_glewInit_WGL_NV_present_video(GLEW_CONTEXT_ARG_VAR_INIT);
  10016. #endif /* WGL_NV_present_video */
  10017. #ifdef WGL_NV_render_depth_texture
  10018. CONST_CAST(WGLEW_NV_render_depth_texture) = _glewSearchExtension("WGL_NV_render_depth_texture", extStart, extEnd);
  10019. #endif /* WGL_NV_render_depth_texture */
  10020. #ifdef WGL_NV_render_texture_rectangle
  10021. CONST_CAST(WGLEW_NV_render_texture_rectangle) = _glewSearchExtension("WGL_NV_render_texture_rectangle", extStart, extEnd);
  10022. #endif /* WGL_NV_render_texture_rectangle */
  10023. #ifdef WGL_NV_swap_group
  10024. CONST_CAST(WGLEW_NV_swap_group) = _glewSearchExtension("WGL_NV_swap_group", extStart, extEnd);
  10025. if (glewExperimental || WGLEW_NV_swap_group|| crippled) CONST_CAST(WGLEW_NV_swap_group)= !_glewInit_WGL_NV_swap_group(GLEW_CONTEXT_ARG_VAR_INIT);
  10026. #endif /* WGL_NV_swap_group */
  10027. #ifdef WGL_NV_vertex_array_range
  10028. CONST_CAST(WGLEW_NV_vertex_array_range) = _glewSearchExtension("WGL_NV_vertex_array_range", extStart, extEnd);
  10029. if (glewExperimental || WGLEW_NV_vertex_array_range|| crippled) CONST_CAST(WGLEW_NV_vertex_array_range)= !_glewInit_WGL_NV_vertex_array_range(GLEW_CONTEXT_ARG_VAR_INIT);
  10030. #endif /* WGL_NV_vertex_array_range */
  10031. #ifdef WGL_NV_video_capture
  10032. CONST_CAST(WGLEW_NV_video_capture) = _glewSearchExtension("WGL_NV_video_capture", extStart, extEnd);
  10033. if (glewExperimental || WGLEW_NV_video_capture|| crippled) CONST_CAST(WGLEW_NV_video_capture)= !_glewInit_WGL_NV_video_capture(GLEW_CONTEXT_ARG_VAR_INIT);
  10034. #endif /* WGL_NV_video_capture */
  10035. #ifdef WGL_NV_video_output
  10036. CONST_CAST(WGLEW_NV_video_output) = _glewSearchExtension("WGL_NV_video_output", extStart, extEnd);
  10037. if (glewExperimental || WGLEW_NV_video_output|| crippled) CONST_CAST(WGLEW_NV_video_output)= !_glewInit_WGL_NV_video_output(GLEW_CONTEXT_ARG_VAR_INIT);
  10038. #endif /* WGL_NV_video_output */
  10039. #ifdef WGL_OML_sync_control
  10040. CONST_CAST(WGLEW_OML_sync_control) = _glewSearchExtension("WGL_OML_sync_control", extStart, extEnd);
  10041. if (glewExperimental || WGLEW_OML_sync_control|| crippled) CONST_CAST(WGLEW_OML_sync_control)= !_glewInit_WGL_OML_sync_control(GLEW_CONTEXT_ARG_VAR_INIT);
  10042. #endif /* WGL_OML_sync_control */
  10043. return GLEW_OK;
  10044. }
  10045. #elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
  10046. #ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  10047. PFNGLXGETPROCADDRESSARBPROC __glewXGetProcAddressARB = NULL;
  10048. PFNGLXQUERYEXTENSION __glewXQueryExtension=NULL;
  10049. PFNGLXQUERYVERSION __glewXQueryVersion=NULL;
  10050. PFNGLXGETCONFIG __glewXGetConfig=NULL;
  10051. PFNGLXCHOOSEVISUAL __glewXChooseVisual=NULL;
  10052. PFNGLXCREATECONTEXT __glewXCreateContext=NULL;
  10053. PFNGLXDESTROYCONTEXT __glewXDestroyContext=NULL;
  10054. PFNGLXISDIRECT __glewXIsDirect=NULL;
  10055. PFNGLXMAKECURRENT __glewXMakeCurrent=NULL;
  10056. PFNGLXQUERYEXTENSIONSSTRING __glewXQueryExtensionsString=NULL;
  10057. PFNGLXGETCLIENTSTRING __glewXGetClientString=NULL;
  10058. PFNGLXQUERYSERVERSTRING __glewXQueryServerString=NULL;
  10059. PFNGLXSWAPBUFFERS __glewXSwapBuffers=NULL;
  10060. #endif//GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  10061. PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay = NULL;
  10062. PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig = NULL;
  10063. PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext = NULL;
  10064. PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer = NULL;
  10065. PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap = NULL;
  10066. PFNGLXCREATEWINDOWPROC __glewXCreateWindow = NULL;
  10067. PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer = NULL;
  10068. PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap = NULL;
  10069. PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow = NULL;
  10070. PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable = NULL;
  10071. PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib = NULL;
  10072. PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs = NULL;
  10073. PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent = NULL;
  10074. PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig = NULL;
  10075. PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent = NULL;
  10076. PFNGLXQUERYCONTEXTPROC __glewXQueryContext = NULL;
  10077. PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable = NULL;
  10078. PFNGLXSELECTEVENTPROC __glewXSelectEvent = NULL;
  10079. PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC __glewXBlitContextFramebufferAMD = NULL;
  10080. PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC __glewXCreateAssociatedContextAMD = NULL;
  10081. PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __glewXCreateAssociatedContextAttribsAMD = NULL;
  10082. PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC __glewXDeleteAssociatedContextAMD = NULL;
  10083. PFNGLXGETCONTEXTGPUIDAMDPROC __glewXGetContextGPUIDAMD = NULL;
  10084. PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC __glewXGetCurrentAssociatedContextAMD = NULL;
  10085. PFNGLXGETGPUIDSAMDPROC __glewXGetGPUIDsAMD = NULL;
  10086. PFNGLXGETGPUINFOAMDPROC __glewXGetGPUInfoAMD = NULL;
  10087. PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __glewXMakeAssociatedContextCurrentAMD = NULL;
  10088. PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB = NULL;
  10089. PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI = NULL;
  10090. PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI = NULL;
  10091. PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI = NULL;
  10092. PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT = NULL;
  10093. PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT = NULL;
  10094. PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT = NULL;
  10095. PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT = NULL;
  10096. PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT = NULL;
  10097. PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT = NULL;
  10098. PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT = NULL;
  10099. PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA = NULL;
  10100. PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA = NULL;
  10101. PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA = NULL;
  10102. PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA = NULL;
  10103. PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA = NULL;
  10104. PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA = NULL;
  10105. PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA = NULL;
  10106. PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV = NULL;
  10107. PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV = NULL;
  10108. PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV = NULL;
  10109. PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV = NULL;
  10110. PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV = NULL;
  10111. PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV = NULL;
  10112. PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV = NULL;
  10113. PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV = NULL;
  10114. PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV = NULL;
  10115. PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV = NULL;
  10116. PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV = NULL;
  10117. PFNGLXBINDVIDEOCAPTUREDEVICENVPROC __glewXBindVideoCaptureDeviceNV = NULL;
  10118. PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC __glewXEnumerateVideoCaptureDevicesNV = NULL;
  10119. PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC __glewXLockVideoCaptureDeviceNV = NULL;
  10120. PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC __glewXQueryVideoCaptureDeviceNV = NULL;
  10121. PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC __glewXReleaseVideoCaptureDeviceNV = NULL;
  10122. PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV = NULL;
  10123. PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV = NULL;
  10124. PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV = NULL;
  10125. PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV = NULL;
  10126. PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV = NULL;
  10127. PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV = NULL;
  10128. PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML = NULL;
  10129. PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML = NULL;
  10130. PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML = NULL;
  10131. PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML = NULL;
  10132. PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML = NULL;
  10133. PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX = NULL;
  10134. PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX = NULL;
  10135. PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX = NULL;
  10136. PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX = NULL;
  10137. PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX = NULL;
  10138. PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX = NULL;
  10139. PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX = NULL;
  10140. PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX = NULL;
  10141. PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX = NULL;
  10142. PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX = NULL;
  10143. PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX = NULL;
  10144. PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX = NULL;
  10145. PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX = NULL;
  10146. PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX = NULL;
  10147. PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX = NULL;
  10148. PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX = NULL;
  10149. PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX = NULL;
  10150. PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX = NULL;
  10151. PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX = NULL;
  10152. PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX = NULL;
  10153. PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX = NULL;
  10154. PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX = NULL;
  10155. PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX = NULL;
  10156. PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX = NULL;
  10157. PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX = NULL;
  10158. PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX = NULL;
  10159. PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX = NULL;
  10160. PFNGLXCUSHIONSGIPROC __glewXCushionSGI = NULL;
  10161. PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI = NULL;
  10162. PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI = NULL;
  10163. PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI = NULL;
  10164. PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI = NULL;
  10165. PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI = NULL;
  10166. PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN = NULL;
  10167. PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN = NULL;
  10168. PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN = NULL;
  10169. #if !defined(GLEW_MX)
  10170. GLboolean __GLXEW_VERSION_1_0 = GL_FALSE;
  10171. GLboolean __GLXEW_VERSION_1_1 = GL_FALSE;
  10172. GLboolean __GLXEW_VERSION_1_2 = GL_FALSE;
  10173. GLboolean __GLXEW_VERSION_1_3 = GL_FALSE;
  10174. GLboolean __GLXEW_VERSION_1_4 = GL_FALSE;
  10175. GLboolean __GLXEW_3DFX_multisample = GL_FALSE;
  10176. GLboolean __GLXEW_AMD_gpu_association = GL_FALSE;
  10177. GLboolean __GLXEW_ARB_create_context = GL_FALSE;
  10178. GLboolean __GLXEW_ARB_create_context_profile = GL_FALSE;
  10179. GLboolean __GLXEW_ARB_create_context_robustness = GL_FALSE;
  10180. GLboolean __GLXEW_ARB_fbconfig_float = GL_FALSE;
  10181. GLboolean __GLXEW_ARB_framebuffer_sRGB = GL_FALSE;
  10182. GLboolean __GLXEW_ARB_get_proc_address = GL_FALSE;
  10183. GLboolean __GLXEW_ARB_multisample = GL_FALSE;
  10184. GLboolean __GLXEW_ARB_robustness_application_isolation = GL_FALSE;
  10185. GLboolean __GLXEW_ARB_robustness_share_group_isolation = GL_FALSE;
  10186. GLboolean __GLXEW_ARB_vertex_buffer_object = GL_FALSE;
  10187. GLboolean __GLXEW_ATI_pixel_format_float = GL_FALSE;
  10188. GLboolean __GLXEW_ATI_render_texture = GL_FALSE;
  10189. GLboolean __GLXEW_EXT_buffer_age = GL_FALSE;
  10190. GLboolean __GLXEW_EXT_create_context_es2_profile = GL_FALSE;
  10191. GLboolean __GLXEW_EXT_create_context_es_profile = GL_FALSE;
  10192. GLboolean __GLXEW_EXT_fbconfig_packed_float = GL_FALSE;
  10193. GLboolean __GLXEW_EXT_framebuffer_sRGB = GL_FALSE;
  10194. GLboolean __GLXEW_EXT_import_context = GL_FALSE;
  10195. GLboolean __GLXEW_EXT_scene_marker = GL_FALSE;
  10196. GLboolean __GLXEW_EXT_swap_control = GL_FALSE;
  10197. GLboolean __GLXEW_EXT_swap_control_tear = GL_FALSE;
  10198. GLboolean __GLXEW_EXT_texture_from_pixmap = GL_FALSE;
  10199. GLboolean __GLXEW_EXT_visual_info = GL_FALSE;
  10200. GLboolean __GLXEW_EXT_visual_rating = GL_FALSE;
  10201. GLboolean __GLXEW_INTEL_swap_event = GL_FALSE;
  10202. GLboolean __GLXEW_MESA_agp_offset = GL_FALSE;
  10203. GLboolean __GLXEW_MESA_copy_sub_buffer = GL_FALSE;
  10204. GLboolean __GLXEW_MESA_pixmap_colormap = GL_FALSE;
  10205. GLboolean __GLXEW_MESA_release_buffers = GL_FALSE;
  10206. GLboolean __GLXEW_MESA_set_3dfx_mode = GL_FALSE;
  10207. GLboolean __GLXEW_MESA_swap_control = GL_FALSE;
  10208. GLboolean __GLXEW_NV_copy_image = GL_FALSE;
  10209. GLboolean __GLXEW_NV_float_buffer = GL_FALSE;
  10210. GLboolean __GLXEW_NV_multisample_coverage = GL_FALSE;
  10211. GLboolean __GLXEW_NV_present_video = GL_FALSE;
  10212. GLboolean __GLXEW_NV_swap_group = GL_FALSE;
  10213. GLboolean __GLXEW_NV_vertex_array_range = GL_FALSE;
  10214. GLboolean __GLXEW_NV_video_capture = GL_FALSE;
  10215. GLboolean __GLXEW_NV_video_output = GL_FALSE;
  10216. GLboolean __GLXEW_OML_swap_method = GL_FALSE;
  10217. GLboolean __GLXEW_OML_sync_control = GL_FALSE;
  10218. GLboolean __GLXEW_SGIS_blended_overlay = GL_FALSE;
  10219. GLboolean __GLXEW_SGIS_color_range = GL_FALSE;
  10220. GLboolean __GLXEW_SGIS_multisample = GL_FALSE;
  10221. GLboolean __GLXEW_SGIS_shared_multisample = GL_FALSE;
  10222. GLboolean __GLXEW_SGIX_fbconfig = GL_FALSE;
  10223. GLboolean __GLXEW_SGIX_hyperpipe = GL_FALSE;
  10224. GLboolean __GLXEW_SGIX_pbuffer = GL_FALSE;
  10225. GLboolean __GLXEW_SGIX_swap_barrier = GL_FALSE;
  10226. GLboolean __GLXEW_SGIX_swap_group = GL_FALSE;
  10227. GLboolean __GLXEW_SGIX_video_resize = GL_FALSE;
  10228. GLboolean __GLXEW_SGIX_visual_select_group = GL_FALSE;
  10229. GLboolean __GLXEW_SGI_cushion = GL_FALSE;
  10230. GLboolean __GLXEW_SGI_make_current_read = GL_FALSE;
  10231. GLboolean __GLXEW_SGI_swap_control = GL_FALSE;
  10232. GLboolean __GLXEW_SGI_video_sync = GL_FALSE;
  10233. GLboolean __GLXEW_SUN_get_transparent_index = GL_FALSE;
  10234. GLboolean __GLXEW_SUN_video_resize = GL_FALSE;
  10235. #endif /* !GLEW_MX */
  10236. #ifdef GLX_VERSION_1_2
  10237. static GLboolean _glewInit_GLX_VERSION_1_2 (GLXEW_CONTEXT_ARG_DEF_INIT)
  10238. {
  10239. GLboolean r = GL_FALSE;
  10240. r = ((glXGetCurrentDisplay = (PFNGLXGETCURRENTDISPLAYPROC)glewGetProcAddress((const GLubyte*)"glXGetCurrentDisplay")) == NULL) || r;
  10241. return r;
  10242. }
  10243. #endif /* GLX_VERSION_1_2 */
  10244. #ifdef GLX_VERSION_1_3
  10245. static GLboolean _glewInit_GLX_VERSION_1_3 (GLXEW_CONTEXT_ARG_DEF_INIT)
  10246. {
  10247. GLboolean r = GL_FALSE;
  10248. r = ((glXChooseFBConfig = (PFNGLXCHOOSEFBCONFIGPROC)glewGetProcAddress((const GLubyte*)"glXChooseFBConfig")) == NULL) || r;
  10249. r = ((glXCreateNewContext = (PFNGLXCREATENEWCONTEXTPROC)glewGetProcAddress((const GLubyte*)"glXCreateNewContext")) == NULL) || r;
  10250. r = ((glXCreatePbuffer = (PFNGLXCREATEPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glXCreatePbuffer")) == NULL) || r;
  10251. r = ((glXCreatePixmap = (PFNGLXCREATEPIXMAPPROC)glewGetProcAddress((const GLubyte*)"glXCreatePixmap")) == NULL) || r;
  10252. r = ((glXCreateWindow = (PFNGLXCREATEWINDOWPROC)glewGetProcAddress((const GLubyte*)"glXCreateWindow")) == NULL) || r;
  10253. r = ((glXDestroyPbuffer = (PFNGLXDESTROYPBUFFERPROC)glewGetProcAddress((const GLubyte*)"glXDestroyPbuffer")) == NULL) || r;
  10254. r = ((glXDestroyPixmap = (PFNGLXDESTROYPIXMAPPROC)glewGetProcAddress((const GLubyte*)"glXDestroyPixmap")) == NULL) || r;
  10255. r = ((glXDestroyWindow = (PFNGLXDESTROYWINDOWPROC)glewGetProcAddress((const GLubyte*)"glXDestroyWindow")) == NULL) || r;
  10256. r = ((glXGetCurrentReadDrawable = (PFNGLXGETCURRENTREADDRAWABLEPROC)glewGetProcAddress((const GLubyte*)"glXGetCurrentReadDrawable")) == NULL) || r;
  10257. r = ((glXGetFBConfigAttrib = (PFNGLXGETFBCONFIGATTRIBPROC)glewGetProcAddress((const GLubyte*)"glXGetFBConfigAttrib")) == NULL) || r;
  10258. r = ((glXGetFBConfigs = (PFNGLXGETFBCONFIGSPROC)glewGetProcAddress((const GLubyte*)"glXGetFBConfigs")) == NULL) || r;
  10259. r = ((glXGetSelectedEvent = (PFNGLXGETSELECTEDEVENTPROC)glewGetProcAddress((const GLubyte*)"glXGetSelectedEvent")) == NULL) || r;
  10260. r = ((glXGetVisualFromFBConfig = (PFNGLXGETVISUALFROMFBCONFIGPROC)glewGetProcAddress((const GLubyte*)"glXGetVisualFromFBConfig")) == NULL) || r;
  10261. r = ((glXMakeContextCurrent = (PFNGLXMAKECONTEXTCURRENTPROC)glewGetProcAddress((const GLubyte*)"glXMakeContextCurrent")) == NULL) || r;
  10262. r = ((glXQueryContext = (PFNGLXQUERYCONTEXTPROC)glewGetProcAddress((const GLubyte*)"glXQueryContext")) == NULL) || r;
  10263. r = ((glXQueryDrawable = (PFNGLXQUERYDRAWABLEPROC)glewGetProcAddress((const GLubyte*)"glXQueryDrawable")) == NULL) || r;
  10264. r = ((glXSelectEvent = (PFNGLXSELECTEVENTPROC)glewGetProcAddress((const GLubyte*)"glXSelectEvent")) == NULL) || r;
  10265. return r;
  10266. }
  10267. #endif /* GLX_VERSION_1_3 */
  10268. #ifdef GLX_VERSION_1_4
  10269. #endif /* GLX_VERSION_1_4 */
  10270. #ifdef GLX_3DFX_multisample
  10271. #endif /* GLX_3DFX_multisample */
  10272. #ifdef GLX_AMD_gpu_association
  10273. static GLboolean _glewInit_GLX_AMD_gpu_association (GLXEW_CONTEXT_ARG_DEF_INIT)
  10274. {
  10275. GLboolean r = GL_FALSE;
  10276. r = ((glXBlitContextFramebufferAMD = (PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC)glewGetProcAddress((const GLubyte*)"glXBlitContextFramebufferAMD")) == NULL) || r;
  10277. r = ((glXCreateAssociatedContextAMD = (PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC)glewGetProcAddress((const GLubyte*)"glXCreateAssociatedContextAMD")) == NULL) || r;
  10278. r = ((glXCreateAssociatedContextAttribsAMD = (PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC)glewGetProcAddress((const GLubyte*)"glXCreateAssociatedContextAttribsAMD")) == NULL) || r;
  10279. r = ((glXDeleteAssociatedContextAMD = (PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC)glewGetProcAddress((const GLubyte*)"glXDeleteAssociatedContextAMD")) == NULL) || r;
  10280. r = ((glXGetContextGPUIDAMD = (PFNGLXGETCONTEXTGPUIDAMDPROC)glewGetProcAddress((const GLubyte*)"glXGetContextGPUIDAMD")) == NULL) || r;
  10281. r = ((glXGetCurrentAssociatedContextAMD = (PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC)glewGetProcAddress((const GLubyte*)"glXGetCurrentAssociatedContextAMD")) == NULL) || r;
  10282. r = ((glXGetGPUIDsAMD = (PFNGLXGETGPUIDSAMDPROC)glewGetProcAddress((const GLubyte*)"glXGetGPUIDsAMD")) == NULL) || r;
  10283. r = ((glXGetGPUInfoAMD = (PFNGLXGETGPUINFOAMDPROC)glewGetProcAddress((const GLubyte*)"glXGetGPUInfoAMD")) == NULL) || r;
  10284. r = ((glXMakeAssociatedContextCurrentAMD = (PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC)glewGetProcAddress((const GLubyte*)"glXMakeAssociatedContextCurrentAMD")) == NULL) || r;
  10285. return r;
  10286. }
  10287. #endif /* GLX_AMD_gpu_association */
  10288. #ifdef GLX_ARB_create_context
  10289. static GLboolean _glewInit_GLX_ARB_create_context (GLXEW_CONTEXT_ARG_DEF_INIT)
  10290. {
  10291. GLboolean r = GL_FALSE;
  10292. r = ((glXCreateContextAttribsARB = (PFNGLXCREATECONTEXTATTRIBSARBPROC)glewGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB")) == NULL) || r;
  10293. return r;
  10294. }
  10295. #endif /* GLX_ARB_create_context */
  10296. #ifdef GLX_ARB_create_context_profile
  10297. #endif /* GLX_ARB_create_context_profile */
  10298. #ifdef GLX_ARB_create_context_robustness
  10299. #endif /* GLX_ARB_create_context_robustness */
  10300. #ifdef GLX_ARB_fbconfig_float
  10301. #endif /* GLX_ARB_fbconfig_float */
  10302. #ifdef GLX_ARB_framebuffer_sRGB
  10303. #endif /* GLX_ARB_framebuffer_sRGB */
  10304. #ifdef GLX_ARB_get_proc_address
  10305. #endif /* GLX_ARB_get_proc_address */
  10306. #ifdef GLX_ARB_multisample
  10307. #endif /* GLX_ARB_multisample */
  10308. #ifdef GLX_ARB_robustness_application_isolation
  10309. #endif /* GLX_ARB_robustness_application_isolation */
  10310. #ifdef GLX_ARB_robustness_share_group_isolation
  10311. #endif /* GLX_ARB_robustness_share_group_isolation */
  10312. #ifdef GLX_ARB_vertex_buffer_object
  10313. #endif /* GLX_ARB_vertex_buffer_object */
  10314. #ifdef GLX_ATI_pixel_format_float
  10315. #endif /* GLX_ATI_pixel_format_float */
  10316. #ifdef GLX_ATI_render_texture
  10317. static GLboolean _glewInit_GLX_ATI_render_texture (GLXEW_CONTEXT_ARG_DEF_INIT)
  10318. {
  10319. GLboolean r = GL_FALSE;
  10320. r = ((glXBindTexImageATI = (PFNGLXBINDTEXIMAGEATIPROC)glewGetProcAddress((const GLubyte*)"glXBindTexImageATI")) == NULL) || r;
  10321. r = ((glXDrawableAttribATI = (PFNGLXDRAWABLEATTRIBATIPROC)glewGetProcAddress((const GLubyte*)"glXDrawableAttribATI")) == NULL) || r;
  10322. r = ((glXReleaseTexImageATI = (PFNGLXRELEASETEXIMAGEATIPROC)glewGetProcAddress((const GLubyte*)"glXReleaseTexImageATI")) == NULL) || r;
  10323. return r;
  10324. }
  10325. #endif /* GLX_ATI_render_texture */
  10326. #ifdef GLX_EXT_buffer_age
  10327. #endif /* GLX_EXT_buffer_age */
  10328. #ifdef GLX_EXT_create_context_es2_profile
  10329. #endif /* GLX_EXT_create_context_es2_profile */
  10330. #ifdef GLX_EXT_create_context_es_profile
  10331. #endif /* GLX_EXT_create_context_es_profile */
  10332. #ifdef GLX_EXT_fbconfig_packed_float
  10333. #endif /* GLX_EXT_fbconfig_packed_float */
  10334. #ifdef GLX_EXT_framebuffer_sRGB
  10335. #endif /* GLX_EXT_framebuffer_sRGB */
  10336. #ifdef GLX_EXT_import_context
  10337. static GLboolean _glewInit_GLX_EXT_import_context (GLXEW_CONTEXT_ARG_DEF_INIT)
  10338. {
  10339. GLboolean r = GL_FALSE;
  10340. r = ((glXFreeContextEXT = (PFNGLXFREECONTEXTEXTPROC)glewGetProcAddress((const GLubyte*)"glXFreeContextEXT")) == NULL) || r;
  10341. r = ((glXGetContextIDEXT = (PFNGLXGETCONTEXTIDEXTPROC)glewGetProcAddress((const GLubyte*)"glXGetContextIDEXT")) == NULL) || r;
  10342. r = ((glXImportContextEXT = (PFNGLXIMPORTCONTEXTEXTPROC)glewGetProcAddress((const GLubyte*)"glXImportContextEXT")) == NULL) || r;
  10343. r = ((glXQueryContextInfoEXT = (PFNGLXQUERYCONTEXTINFOEXTPROC)glewGetProcAddress((const GLubyte*)"glXQueryContextInfoEXT")) == NULL) || r;
  10344. return r;
  10345. }
  10346. #endif /* GLX_EXT_import_context */
  10347. #ifdef GLX_EXT_scene_marker
  10348. #endif /* GLX_EXT_scene_marker */
  10349. #ifdef GLX_EXT_swap_control
  10350. static GLboolean _glewInit_GLX_EXT_swap_control (GLXEW_CONTEXT_ARG_DEF_INIT)
  10351. {
  10352. GLboolean r = GL_FALSE;
  10353. r = ((glXSwapIntervalEXT = (PFNGLXSWAPINTERVALEXTPROC)glewGetProcAddress((const GLubyte*)"glXSwapIntervalEXT")) == NULL) || r;
  10354. return r;
  10355. }
  10356. #endif /* GLX_EXT_swap_control */
  10357. #ifdef GLX_EXT_swap_control_tear
  10358. #endif /* GLX_EXT_swap_control_tear */
  10359. #ifdef GLX_EXT_texture_from_pixmap
  10360. static GLboolean _glewInit_GLX_EXT_texture_from_pixmap (GLXEW_CONTEXT_ARG_DEF_INIT)
  10361. {
  10362. GLboolean r = GL_FALSE;
  10363. r = ((glXBindTexImageEXT = (PFNGLXBINDTEXIMAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glXBindTexImageEXT")) == NULL) || r;
  10364. r = ((glXReleaseTexImageEXT = (PFNGLXRELEASETEXIMAGEEXTPROC)glewGetProcAddress((const GLubyte*)"glXReleaseTexImageEXT")) == NULL) || r;
  10365. return r;
  10366. }
  10367. #endif /* GLX_EXT_texture_from_pixmap */
  10368. #ifdef GLX_EXT_visual_info
  10369. #endif /* GLX_EXT_visual_info */
  10370. #ifdef GLX_EXT_visual_rating
  10371. #endif /* GLX_EXT_visual_rating */
  10372. #ifdef GLX_INTEL_swap_event
  10373. #endif /* GLX_INTEL_swap_event */
  10374. #ifdef GLX_MESA_agp_offset
  10375. static GLboolean _glewInit_GLX_MESA_agp_offset (GLXEW_CONTEXT_ARG_DEF_INIT)
  10376. {
  10377. GLboolean r = GL_FALSE;
  10378. r = ((glXGetAGPOffsetMESA = (PFNGLXGETAGPOFFSETMESAPROC)glewGetProcAddress((const GLubyte*)"glXGetAGPOffsetMESA")) == NULL) || r;
  10379. return r;
  10380. }
  10381. #endif /* GLX_MESA_agp_offset */
  10382. #ifdef GLX_MESA_copy_sub_buffer
  10383. static GLboolean _glewInit_GLX_MESA_copy_sub_buffer (GLXEW_CONTEXT_ARG_DEF_INIT)
  10384. {
  10385. GLboolean r = GL_FALSE;
  10386. r = ((glXCopySubBufferMESA = (PFNGLXCOPYSUBBUFFERMESAPROC)glewGetProcAddress((const GLubyte*)"glXCopySubBufferMESA")) == NULL) || r;
  10387. return r;
  10388. }
  10389. #endif /* GLX_MESA_copy_sub_buffer */
  10390. #ifdef GLX_MESA_pixmap_colormap
  10391. static GLboolean _glewInit_GLX_MESA_pixmap_colormap (GLXEW_CONTEXT_ARG_DEF_INIT)
  10392. {
  10393. GLboolean r = GL_FALSE;
  10394. r = ((glXCreateGLXPixmapMESA = (PFNGLXCREATEGLXPIXMAPMESAPROC)glewGetProcAddress((const GLubyte*)"glXCreateGLXPixmapMESA")) == NULL) || r;
  10395. return r;
  10396. }
  10397. #endif /* GLX_MESA_pixmap_colormap */
  10398. #ifdef GLX_MESA_release_buffers
  10399. static GLboolean _glewInit_GLX_MESA_release_buffers (GLXEW_CONTEXT_ARG_DEF_INIT)
  10400. {
  10401. GLboolean r = GL_FALSE;
  10402. r = ((glXReleaseBuffersMESA = (PFNGLXRELEASEBUFFERSMESAPROC)glewGetProcAddress((const GLubyte*)"glXReleaseBuffersMESA")) == NULL) || r;
  10403. return r;
  10404. }
  10405. #endif /* GLX_MESA_release_buffers */
  10406. #ifdef GLX_MESA_set_3dfx_mode
  10407. static GLboolean _glewInit_GLX_MESA_set_3dfx_mode (GLXEW_CONTEXT_ARG_DEF_INIT)
  10408. {
  10409. GLboolean r = GL_FALSE;
  10410. r = ((glXSet3DfxModeMESA = (PFNGLXSET3DFXMODEMESAPROC)glewGetProcAddress((const GLubyte*)"glXSet3DfxModeMESA")) == NULL) || r;
  10411. return r;
  10412. }
  10413. #endif /* GLX_MESA_set_3dfx_mode */
  10414. #ifdef GLX_MESA_swap_control
  10415. static GLboolean _glewInit_GLX_MESA_swap_control (GLXEW_CONTEXT_ARG_DEF_INIT)
  10416. {
  10417. GLboolean r = GL_FALSE;
  10418. r = ((glXGetSwapIntervalMESA = (PFNGLXGETSWAPINTERVALMESAPROC)glewGetProcAddress((const GLubyte*)"glXGetSwapIntervalMESA")) == NULL) || r;
  10419. r = ((glXSwapIntervalMESA = (PFNGLXSWAPINTERVALMESAPROC)glewGetProcAddress((const GLubyte*)"glXSwapIntervalMESA")) == NULL) || r;
  10420. return r;
  10421. }
  10422. #endif /* GLX_MESA_swap_control */
  10423. #ifdef GLX_NV_copy_image
  10424. static GLboolean _glewInit_GLX_NV_copy_image (GLXEW_CONTEXT_ARG_DEF_INIT)
  10425. {
  10426. GLboolean r = GL_FALSE;
  10427. r = ((glXCopyImageSubDataNV = (PFNGLXCOPYIMAGESUBDATANVPROC)glewGetProcAddress((const GLubyte*)"glXCopyImageSubDataNV")) == NULL) || r;
  10428. return r;
  10429. }
  10430. #endif /* GLX_NV_copy_image */
  10431. #ifdef GLX_NV_float_buffer
  10432. #endif /* GLX_NV_float_buffer */
  10433. #ifdef GLX_NV_multisample_coverage
  10434. #endif /* GLX_NV_multisample_coverage */
  10435. #ifdef GLX_NV_present_video
  10436. static GLboolean _glewInit_GLX_NV_present_video (GLXEW_CONTEXT_ARG_DEF_INIT)
  10437. {
  10438. GLboolean r = GL_FALSE;
  10439. r = ((glXBindVideoDeviceNV = (PFNGLXBINDVIDEODEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXBindVideoDeviceNV")) == NULL) || r;
  10440. r = ((glXEnumerateVideoDevicesNV = (PFNGLXENUMERATEVIDEODEVICESNVPROC)glewGetProcAddress((const GLubyte*)"glXEnumerateVideoDevicesNV")) == NULL) || r;
  10441. return r;
  10442. }
  10443. #endif /* GLX_NV_present_video */
  10444. #ifdef GLX_NV_swap_group
  10445. static GLboolean _glewInit_GLX_NV_swap_group (GLXEW_CONTEXT_ARG_DEF_INIT)
  10446. {
  10447. GLboolean r = GL_FALSE;
  10448. r = ((glXBindSwapBarrierNV = (PFNGLXBINDSWAPBARRIERNVPROC)glewGetProcAddress((const GLubyte*)"glXBindSwapBarrierNV")) == NULL) || r;
  10449. r = ((glXJoinSwapGroupNV = (PFNGLXJOINSWAPGROUPNVPROC)glewGetProcAddress((const GLubyte*)"glXJoinSwapGroupNV")) == NULL) || r;
  10450. r = ((glXQueryFrameCountNV = (PFNGLXQUERYFRAMECOUNTNVPROC)glewGetProcAddress((const GLubyte*)"glXQueryFrameCountNV")) == NULL) || r;
  10451. r = ((glXQueryMaxSwapGroupsNV = (PFNGLXQUERYMAXSWAPGROUPSNVPROC)glewGetProcAddress((const GLubyte*)"glXQueryMaxSwapGroupsNV")) == NULL) || r;
  10452. r = ((glXQuerySwapGroupNV = (PFNGLXQUERYSWAPGROUPNVPROC)glewGetProcAddress((const GLubyte*)"glXQuerySwapGroupNV")) == NULL) || r;
  10453. r = ((glXResetFrameCountNV = (PFNGLXRESETFRAMECOUNTNVPROC)glewGetProcAddress((const GLubyte*)"glXResetFrameCountNV")) == NULL) || r;
  10454. return r;
  10455. }
  10456. #endif /* GLX_NV_swap_group */
  10457. #ifdef GLX_NV_vertex_array_range
  10458. static GLboolean _glewInit_GLX_NV_vertex_array_range (GLXEW_CONTEXT_ARG_DEF_INIT)
  10459. {
  10460. GLboolean r = GL_FALSE;
  10461. r = ((glXAllocateMemoryNV = (PFNGLXALLOCATEMEMORYNVPROC)glewGetProcAddress((const GLubyte*)"glXAllocateMemoryNV")) == NULL) || r;
  10462. r = ((glXFreeMemoryNV = (PFNGLXFREEMEMORYNVPROC)glewGetProcAddress((const GLubyte*)"glXFreeMemoryNV")) == NULL) || r;
  10463. return r;
  10464. }
  10465. #endif /* GLX_NV_vertex_array_range */
  10466. #ifdef GLX_NV_video_capture
  10467. static GLboolean _glewInit_GLX_NV_video_capture (GLXEW_CONTEXT_ARG_DEF_INIT)
  10468. {
  10469. GLboolean r = GL_FALSE;
  10470. r = ((glXBindVideoCaptureDeviceNV = (PFNGLXBINDVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXBindVideoCaptureDeviceNV")) == NULL) || r;
  10471. r = ((glXEnumerateVideoCaptureDevicesNV = (PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC)glewGetProcAddress((const GLubyte*)"glXEnumerateVideoCaptureDevicesNV")) == NULL) || r;
  10472. r = ((glXLockVideoCaptureDeviceNV = (PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXLockVideoCaptureDeviceNV")) == NULL) || r;
  10473. r = ((glXQueryVideoCaptureDeviceNV = (PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXQueryVideoCaptureDeviceNV")) == NULL) || r;
  10474. r = ((glXReleaseVideoCaptureDeviceNV = (PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXReleaseVideoCaptureDeviceNV")) == NULL) || r;
  10475. return r;
  10476. }
  10477. #endif /* GLX_NV_video_capture */
  10478. #ifdef GLX_NV_video_output
  10479. static GLboolean _glewInit_GLX_NV_video_output (GLXEW_CONTEXT_ARG_DEF_INIT)
  10480. {
  10481. GLboolean r = GL_FALSE;
  10482. r = ((glXBindVideoImageNV = (PFNGLXBINDVIDEOIMAGENVPROC)glewGetProcAddress((const GLubyte*)"glXBindVideoImageNV")) == NULL) || r;
  10483. r = ((glXGetVideoDeviceNV = (PFNGLXGETVIDEODEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXGetVideoDeviceNV")) == NULL) || r;
  10484. r = ((glXGetVideoInfoNV = (PFNGLXGETVIDEOINFONVPROC)glewGetProcAddress((const GLubyte*)"glXGetVideoInfoNV")) == NULL) || r;
  10485. r = ((glXReleaseVideoDeviceNV = (PFNGLXRELEASEVIDEODEVICENVPROC)glewGetProcAddress((const GLubyte*)"glXReleaseVideoDeviceNV")) == NULL) || r;
  10486. r = ((glXReleaseVideoImageNV = (PFNGLXRELEASEVIDEOIMAGENVPROC)glewGetProcAddress((const GLubyte*)"glXReleaseVideoImageNV")) == NULL) || r;
  10487. r = ((glXSendPbufferToVideoNV = (PFNGLXSENDPBUFFERTOVIDEONVPROC)glewGetProcAddress((const GLubyte*)"glXSendPbufferToVideoNV")) == NULL) || r;
  10488. return r;
  10489. }
  10490. #endif /* GLX_NV_video_output */
  10491. #ifdef GLX_OML_swap_method
  10492. #endif /* GLX_OML_swap_method */
  10493. #ifdef GLX_OML_sync_control
  10494. static GLboolean _glewInit_GLX_OML_sync_control (GLXEW_CONTEXT_ARG_DEF_INIT)
  10495. {
  10496. GLboolean r = GL_FALSE;
  10497. r = ((glXGetMscRateOML = (PFNGLXGETMSCRATEOMLPROC)glewGetProcAddress((const GLubyte*)"glXGetMscRateOML")) == NULL) || r;
  10498. r = ((glXGetSyncValuesOML = (PFNGLXGETSYNCVALUESOMLPROC)glewGetProcAddress((const GLubyte*)"glXGetSyncValuesOML")) == NULL) || r;
  10499. r = ((glXSwapBuffersMscOML = (PFNGLXSWAPBUFFERSMSCOMLPROC)glewGetProcAddress((const GLubyte*)"glXSwapBuffersMscOML")) == NULL) || r;
  10500. r = ((glXWaitForMscOML = (PFNGLXWAITFORMSCOMLPROC)glewGetProcAddress((const GLubyte*)"glXWaitForMscOML")) == NULL) || r;
  10501. r = ((glXWaitForSbcOML = (PFNGLXWAITFORSBCOMLPROC)glewGetProcAddress((const GLubyte*)"glXWaitForSbcOML")) == NULL) || r;
  10502. return r;
  10503. }
  10504. #endif /* GLX_OML_sync_control */
  10505. #ifdef GLX_SGIS_blended_overlay
  10506. #endif /* GLX_SGIS_blended_overlay */
  10507. #ifdef GLX_SGIS_color_range
  10508. #endif /* GLX_SGIS_color_range */
  10509. #ifdef GLX_SGIS_multisample
  10510. #endif /* GLX_SGIS_multisample */
  10511. #ifdef GLX_SGIS_shared_multisample
  10512. #endif /* GLX_SGIS_shared_multisample */
  10513. #ifdef GLX_SGIX_fbconfig
  10514. static GLboolean _glewInit_GLX_SGIX_fbconfig (GLXEW_CONTEXT_ARG_DEF_INIT)
  10515. {
  10516. GLboolean r = GL_FALSE;
  10517. r = ((glXChooseFBConfigSGIX = (PFNGLXCHOOSEFBCONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXChooseFBConfigSGIX")) == NULL) || r;
  10518. r = ((glXCreateContextWithConfigSGIX = (PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXCreateContextWithConfigSGIX")) == NULL) || r;
  10519. r = ((glXCreateGLXPixmapWithConfigSGIX = (PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXCreateGLXPixmapWithConfigSGIX")) == NULL) || r;
  10520. r = ((glXGetFBConfigAttribSGIX = (PFNGLXGETFBCONFIGATTRIBSGIXPROC)glewGetProcAddress((const GLubyte*)"glXGetFBConfigAttribSGIX")) == NULL) || r;
  10521. r = ((glXGetFBConfigFromVisualSGIX = (PFNGLXGETFBCONFIGFROMVISUALSGIXPROC)glewGetProcAddress((const GLubyte*)"glXGetFBConfigFromVisualSGIX")) == NULL) || r;
  10522. r = ((glXGetVisualFromFBConfigSGIX = (PFNGLXGETVISUALFROMFBCONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXGetVisualFromFBConfigSGIX")) == NULL) || r;
  10523. return r;
  10524. }
  10525. #endif /* GLX_SGIX_fbconfig */
  10526. #ifdef GLX_SGIX_hyperpipe
  10527. static GLboolean _glewInit_GLX_SGIX_hyperpipe (GLXEW_CONTEXT_ARG_DEF_INIT)
  10528. {
  10529. GLboolean r = GL_FALSE;
  10530. r = ((glXBindHyperpipeSGIX = (PFNGLXBINDHYPERPIPESGIXPROC)glewGetProcAddress((const GLubyte*)"glXBindHyperpipeSGIX")) == NULL) || r;
  10531. r = ((glXDestroyHyperpipeConfigSGIX = (PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXDestroyHyperpipeConfigSGIX")) == NULL) || r;
  10532. r = ((glXHyperpipeAttribSGIX = (PFNGLXHYPERPIPEATTRIBSGIXPROC)glewGetProcAddress((const GLubyte*)"glXHyperpipeAttribSGIX")) == NULL) || r;
  10533. r = ((glXHyperpipeConfigSGIX = (PFNGLXHYPERPIPECONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXHyperpipeConfigSGIX")) == NULL) || r;
  10534. r = ((glXQueryHyperpipeAttribSGIX = (PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryHyperpipeAttribSGIX")) == NULL) || r;
  10535. r = ((glXQueryHyperpipeBestAttribSGIX = (PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryHyperpipeBestAttribSGIX")) == NULL) || r;
  10536. r = ((glXQueryHyperpipeConfigSGIX = (PFNGLXQUERYHYPERPIPECONFIGSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryHyperpipeConfigSGIX")) == NULL) || r;
  10537. r = ((glXQueryHyperpipeNetworkSGIX = (PFNGLXQUERYHYPERPIPENETWORKSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryHyperpipeNetworkSGIX")) == NULL) || r;
  10538. return r;
  10539. }
  10540. #endif /* GLX_SGIX_hyperpipe */
  10541. #ifdef GLX_SGIX_pbuffer
  10542. static GLboolean _glewInit_GLX_SGIX_pbuffer (GLXEW_CONTEXT_ARG_DEF_INIT)
  10543. {
  10544. GLboolean r = GL_FALSE;
  10545. r = ((glXCreateGLXPbufferSGIX = (PFNGLXCREATEGLXPBUFFERSGIXPROC)glewGetProcAddress((const GLubyte*)"glXCreateGLXPbufferSGIX")) == NULL) || r;
  10546. r = ((glXDestroyGLXPbufferSGIX = (PFNGLXDESTROYGLXPBUFFERSGIXPROC)glewGetProcAddress((const GLubyte*)"glXDestroyGLXPbufferSGIX")) == NULL) || r;
  10547. r = ((glXGetSelectedEventSGIX = (PFNGLXGETSELECTEDEVENTSGIXPROC)glewGetProcAddress((const GLubyte*)"glXGetSelectedEventSGIX")) == NULL) || r;
  10548. r = ((glXQueryGLXPbufferSGIX = (PFNGLXQUERYGLXPBUFFERSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryGLXPbufferSGIX")) == NULL) || r;
  10549. r = ((glXSelectEventSGIX = (PFNGLXSELECTEVENTSGIXPROC)glewGetProcAddress((const GLubyte*)"glXSelectEventSGIX")) == NULL) || r;
  10550. return r;
  10551. }
  10552. #endif /* GLX_SGIX_pbuffer */
  10553. #ifdef GLX_SGIX_swap_barrier
  10554. static GLboolean _glewInit_GLX_SGIX_swap_barrier (GLXEW_CONTEXT_ARG_DEF_INIT)
  10555. {
  10556. GLboolean r = GL_FALSE;
  10557. r = ((glXBindSwapBarrierSGIX = (PFNGLXBINDSWAPBARRIERSGIXPROC)glewGetProcAddress((const GLubyte*)"glXBindSwapBarrierSGIX")) == NULL) || r;
  10558. r = ((glXQueryMaxSwapBarriersSGIX = (PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryMaxSwapBarriersSGIX")) == NULL) || r;
  10559. return r;
  10560. }
  10561. #endif /* GLX_SGIX_swap_barrier */
  10562. #ifdef GLX_SGIX_swap_group
  10563. static GLboolean _glewInit_GLX_SGIX_swap_group (GLXEW_CONTEXT_ARG_DEF_INIT)
  10564. {
  10565. GLboolean r = GL_FALSE;
  10566. r = ((glXJoinSwapGroupSGIX = (PFNGLXJOINSWAPGROUPSGIXPROC)glewGetProcAddress((const GLubyte*)"glXJoinSwapGroupSGIX")) == NULL) || r;
  10567. return r;
  10568. }
  10569. #endif /* GLX_SGIX_swap_group */
  10570. #ifdef GLX_SGIX_video_resize
  10571. static GLboolean _glewInit_GLX_SGIX_video_resize (GLXEW_CONTEXT_ARG_DEF_INIT)
  10572. {
  10573. GLboolean r = GL_FALSE;
  10574. r = ((glXBindChannelToWindowSGIX = (PFNGLXBINDCHANNELTOWINDOWSGIXPROC)glewGetProcAddress((const GLubyte*)"glXBindChannelToWindowSGIX")) == NULL) || r;
  10575. r = ((glXChannelRectSGIX = (PFNGLXCHANNELRECTSGIXPROC)glewGetProcAddress((const GLubyte*)"glXChannelRectSGIX")) == NULL) || r;
  10576. r = ((glXChannelRectSyncSGIX = (PFNGLXCHANNELRECTSYNCSGIXPROC)glewGetProcAddress((const GLubyte*)"glXChannelRectSyncSGIX")) == NULL) || r;
  10577. r = ((glXQueryChannelDeltasSGIX = (PFNGLXQUERYCHANNELDELTASSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryChannelDeltasSGIX")) == NULL) || r;
  10578. r = ((glXQueryChannelRectSGIX = (PFNGLXQUERYCHANNELRECTSGIXPROC)glewGetProcAddress((const GLubyte*)"glXQueryChannelRectSGIX")) == NULL) || r;
  10579. return r;
  10580. }
  10581. #endif /* GLX_SGIX_video_resize */
  10582. #ifdef GLX_SGIX_visual_select_group
  10583. #endif /* GLX_SGIX_visual_select_group */
  10584. #ifdef GLX_SGI_cushion
  10585. static GLboolean _glewInit_GLX_SGI_cushion (GLXEW_CONTEXT_ARG_DEF_INIT)
  10586. {
  10587. GLboolean r = GL_FALSE;
  10588. r = ((glXCushionSGI = (PFNGLXCUSHIONSGIPROC)glewGetProcAddress((const GLubyte*)"glXCushionSGI")) == NULL) || r;
  10589. return r;
  10590. }
  10591. #endif /* GLX_SGI_cushion */
  10592. #ifdef GLX_SGI_make_current_read
  10593. static GLboolean _glewInit_GLX_SGI_make_current_read (GLXEW_CONTEXT_ARG_DEF_INIT)
  10594. {
  10595. GLboolean r = GL_FALSE;
  10596. r = ((glXGetCurrentReadDrawableSGI = (PFNGLXGETCURRENTREADDRAWABLESGIPROC)glewGetProcAddress((const GLubyte*)"glXGetCurrentReadDrawableSGI")) == NULL) || r;
  10597. r = ((glXMakeCurrentReadSGI = (PFNGLXMAKECURRENTREADSGIPROC)glewGetProcAddress((const GLubyte*)"glXMakeCurrentReadSGI")) == NULL) || r;
  10598. return r;
  10599. }
  10600. #endif /* GLX_SGI_make_current_read */
  10601. #ifdef GLX_SGI_swap_control
  10602. static GLboolean _glewInit_GLX_SGI_swap_control (GLXEW_CONTEXT_ARG_DEF_INIT)
  10603. {
  10604. GLboolean r = GL_FALSE;
  10605. r = ((glXSwapIntervalSGI = (PFNGLXSWAPINTERVALSGIPROC)glewGetProcAddress((const GLubyte*)"glXSwapIntervalSGI")) == NULL) || r;
  10606. return r;
  10607. }
  10608. #endif /* GLX_SGI_swap_control */
  10609. #ifdef GLX_SGI_video_sync
  10610. static GLboolean _glewInit_GLX_SGI_video_sync (GLXEW_CONTEXT_ARG_DEF_INIT)
  10611. {
  10612. GLboolean r = GL_FALSE;
  10613. r = ((glXGetVideoSyncSGI = (PFNGLXGETVIDEOSYNCSGIPROC)glewGetProcAddress((const GLubyte*)"glXGetVideoSyncSGI")) == NULL) || r;
  10614. r = ((glXWaitVideoSyncSGI = (PFNGLXWAITVIDEOSYNCSGIPROC)glewGetProcAddress((const GLubyte*)"glXWaitVideoSyncSGI")) == NULL) || r;
  10615. return r;
  10616. }
  10617. #endif /* GLX_SGI_video_sync */
  10618. #ifdef GLX_SUN_get_transparent_index
  10619. static GLboolean _glewInit_GLX_SUN_get_transparent_index (GLXEW_CONTEXT_ARG_DEF_INIT)
  10620. {
  10621. GLboolean r = GL_FALSE;
  10622. r = ((glXGetTransparentIndexSUN = (PFNGLXGETTRANSPARENTINDEXSUNPROC)glewGetProcAddress((const GLubyte*)"glXGetTransparentIndexSUN")) == NULL) || r;
  10623. return r;
  10624. }
  10625. #endif /* GLX_SUN_get_transparent_index */
  10626. #ifdef GLX_SUN_video_resize
  10627. static GLboolean _glewInit_GLX_SUN_video_resize (GLXEW_CONTEXT_ARG_DEF_INIT)
  10628. {
  10629. GLboolean r = GL_FALSE;
  10630. r = ((glXGetVideoResizeSUN = (PFNGLXGETVIDEORESIZESUNPROC)glewGetProcAddress((const GLubyte*)"glXGetVideoResizeSUN")) == NULL) || r;
  10631. r = ((glXVideoResizeSUN = (PFNGLXVIDEORESIZESUNPROC)glewGetProcAddress((const GLubyte*)"glXVideoResizeSUN")) == NULL) || r;
  10632. return r;
  10633. }
  10634. #endif /* GLX_SUN_video_resize */
  10635. /* ------------------------------------------------------------------------ */
  10636. GLboolean glxewGetExtension (const char* name)
  10637. {
  10638. const GLubyte* start;
  10639. const GLubyte* end;
  10640. if (glXGetCurrentDisplay == NULL) return GL_FALSE;
  10641. start = (const GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS);
  10642. if (0 == start) return GL_FALSE;
  10643. end = start + _glewStrLen(start);
  10644. return _glewSearchExtension(name, start, end);
  10645. }
  10646. GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST)
  10647. {
  10648. int major, minor;
  10649. const GLubyte* extStart;
  10650. const GLubyte* extEnd;
  10651. /* initialize core GLX 1.2 */
  10652. if (_glewInit_GLX_VERSION_1_2(GLEW_CONTEXT_ARG_VAR_INIT)) return GLEW_ERROR_GLX_VERSION_11_ONLY;
  10653. /* initialize flags */
  10654. CONST_CAST(GLXEW_VERSION_1_0) = GL_TRUE;
  10655. CONST_CAST(GLXEW_VERSION_1_1) = GL_TRUE;
  10656. CONST_CAST(GLXEW_VERSION_1_2) = GL_TRUE;
  10657. CONST_CAST(GLXEW_VERSION_1_3) = GL_TRUE;
  10658. CONST_CAST(GLXEW_VERSION_1_4) = GL_TRUE;
  10659. /* query GLX version */
  10660. glXQueryVersion(glXGetCurrentDisplay(), &major, &minor);
  10661. if (major == 1 && minor <= 3)
  10662. {
  10663. switch (minor)
  10664. {
  10665. case 3:
  10666. CONST_CAST(GLXEW_VERSION_1_4) = GL_FALSE;
  10667. break;
  10668. case 2:
  10669. CONST_CAST(GLXEW_VERSION_1_4) = GL_FALSE;
  10670. CONST_CAST(GLXEW_VERSION_1_3) = GL_FALSE;
  10671. break;
  10672. default:
  10673. return GLEW_ERROR_GLX_VERSION_11_ONLY;
  10674. break;
  10675. }
  10676. }
  10677. /* query GLX extension string */
  10678. extStart = 0;
  10679. if (glXGetCurrentDisplay != NULL)
  10680. extStart = (const GLubyte*)glXGetClientString(glXGetCurrentDisplay(), GLX_EXTENSIONS);
  10681. if (extStart == 0)
  10682. extStart = (const GLubyte *)"";
  10683. extEnd = extStart + _glewStrLen(extStart);
  10684. /* initialize extensions */
  10685. #ifdef GLX_VERSION_1_3
  10686. if (glewExperimental || GLXEW_VERSION_1_3) CONST_CAST(GLXEW_VERSION_1_3) = !_glewInit_GLX_VERSION_1_3(GLEW_CONTEXT_ARG_VAR_INIT);
  10687. #endif /* GLX_VERSION_1_3 */
  10688. #ifdef GLX_3DFX_multisample
  10689. CONST_CAST(GLXEW_3DFX_multisample) = _glewSearchExtension("GLX_3DFX_multisample", extStart, extEnd);
  10690. #endif /* GLX_3DFX_multisample */
  10691. #ifdef GLX_AMD_gpu_association
  10692. CONST_CAST(GLXEW_AMD_gpu_association) = _glewSearchExtension("GLX_AMD_gpu_association", extStart, extEnd);
  10693. if (glewExperimental || GLXEW_AMD_gpu_association) CONST_CAST(GLXEW_AMD_gpu_association) = !_glewInit_GLX_AMD_gpu_association(GLEW_CONTEXT_ARG_VAR_INIT);
  10694. #endif /* GLX_AMD_gpu_association */
  10695. #ifdef GLX_ARB_create_context
  10696. CONST_CAST(GLXEW_ARB_create_context) = _glewSearchExtension("GLX_ARB_create_context", extStart, extEnd);
  10697. if (glewExperimental || GLXEW_ARB_create_context) CONST_CAST(GLXEW_ARB_create_context) = !_glewInit_GLX_ARB_create_context(GLEW_CONTEXT_ARG_VAR_INIT);
  10698. #endif /* GLX_ARB_create_context */
  10699. #ifdef GLX_ARB_create_context_profile
  10700. CONST_CAST(GLXEW_ARB_create_context_profile) = _glewSearchExtension("GLX_ARB_create_context_profile", extStart, extEnd);
  10701. #endif /* GLX_ARB_create_context_profile */
  10702. #ifdef GLX_ARB_create_context_robustness
  10703. CONST_CAST(GLXEW_ARB_create_context_robustness) = _glewSearchExtension("GLX_ARB_create_context_robustness", extStart, extEnd);
  10704. #endif /* GLX_ARB_create_context_robustness */
  10705. #ifdef GLX_ARB_fbconfig_float
  10706. CONST_CAST(GLXEW_ARB_fbconfig_float) = _glewSearchExtension("GLX_ARB_fbconfig_float", extStart, extEnd);
  10707. #endif /* GLX_ARB_fbconfig_float */
  10708. #ifdef GLX_ARB_framebuffer_sRGB
  10709. CONST_CAST(GLXEW_ARB_framebuffer_sRGB) = _glewSearchExtension("GLX_ARB_framebuffer_sRGB", extStart, extEnd);
  10710. #endif /* GLX_ARB_framebuffer_sRGB */
  10711. #ifdef GLX_ARB_get_proc_address
  10712. CONST_CAST(GLXEW_ARB_get_proc_address) = _glewSearchExtension("GLX_ARB_get_proc_address", extStart, extEnd);
  10713. #endif /* GLX_ARB_get_proc_address */
  10714. #ifdef GLX_ARB_multisample
  10715. CONST_CAST(GLXEW_ARB_multisample) = _glewSearchExtension("GLX_ARB_multisample", extStart, extEnd);
  10716. #endif /* GLX_ARB_multisample */
  10717. #ifdef GLX_ARB_robustness_application_isolation
  10718. CONST_CAST(GLXEW_ARB_robustness_application_isolation) = _glewSearchExtension("GLX_ARB_robustness_application_isolation", extStart, extEnd);
  10719. #endif /* GLX_ARB_robustness_application_isolation */
  10720. #ifdef GLX_ARB_robustness_share_group_isolation
  10721. CONST_CAST(GLXEW_ARB_robustness_share_group_isolation) = _glewSearchExtension("GLX_ARB_robustness_share_group_isolation", extStart, extEnd);
  10722. #endif /* GLX_ARB_robustness_share_group_isolation */
  10723. #ifdef GLX_ARB_vertex_buffer_object
  10724. CONST_CAST(GLXEW_ARB_vertex_buffer_object) = _glewSearchExtension("GLX_ARB_vertex_buffer_object", extStart, extEnd);
  10725. #endif /* GLX_ARB_vertex_buffer_object */
  10726. #ifdef GLX_ATI_pixel_format_float
  10727. CONST_CAST(GLXEW_ATI_pixel_format_float) = _glewSearchExtension("GLX_ATI_pixel_format_float", extStart, extEnd);
  10728. #endif /* GLX_ATI_pixel_format_float */
  10729. #ifdef GLX_ATI_render_texture
  10730. CONST_CAST(GLXEW_ATI_render_texture) = _glewSearchExtension("GLX_ATI_render_texture", extStart, extEnd);
  10731. if (glewExperimental || GLXEW_ATI_render_texture) CONST_CAST(GLXEW_ATI_render_texture) = !_glewInit_GLX_ATI_render_texture(GLEW_CONTEXT_ARG_VAR_INIT);
  10732. #endif /* GLX_ATI_render_texture */
  10733. #ifdef GLX_EXT_buffer_age
  10734. CONST_CAST(GLXEW_EXT_buffer_age) = _glewSearchExtension("GLX_EXT_buffer_age", extStart, extEnd);
  10735. #endif /* GLX_EXT_buffer_age */
  10736. #ifdef GLX_EXT_create_context_es2_profile
  10737. CONST_CAST(GLXEW_EXT_create_context_es2_profile) = _glewSearchExtension("GLX_EXT_create_context_es2_profile", extStart, extEnd);
  10738. #endif /* GLX_EXT_create_context_es2_profile */
  10739. #ifdef GLX_EXT_create_context_es_profile
  10740. CONST_CAST(GLXEW_EXT_create_context_es_profile) = _glewSearchExtension("GLX_EXT_create_context_es_profile", extStart, extEnd);
  10741. #endif /* GLX_EXT_create_context_es_profile */
  10742. #ifdef GLX_EXT_fbconfig_packed_float
  10743. CONST_CAST(GLXEW_EXT_fbconfig_packed_float) = _glewSearchExtension("GLX_EXT_fbconfig_packed_float", extStart, extEnd);
  10744. #endif /* GLX_EXT_fbconfig_packed_float */
  10745. #ifdef GLX_EXT_framebuffer_sRGB
  10746. CONST_CAST(GLXEW_EXT_framebuffer_sRGB) = _glewSearchExtension("GLX_EXT_framebuffer_sRGB", extStart, extEnd);
  10747. #endif /* GLX_EXT_framebuffer_sRGB */
  10748. #ifdef GLX_EXT_import_context
  10749. CONST_CAST(GLXEW_EXT_import_context) = _glewSearchExtension("GLX_EXT_import_context", extStart, extEnd);
  10750. if (glewExperimental || GLXEW_EXT_import_context) CONST_CAST(GLXEW_EXT_import_context) = !_glewInit_GLX_EXT_import_context(GLEW_CONTEXT_ARG_VAR_INIT);
  10751. #endif /* GLX_EXT_import_context */
  10752. #ifdef GLX_EXT_scene_marker
  10753. CONST_CAST(GLXEW_EXT_scene_marker) = _glewSearchExtension("GLX_EXT_scene_marker", extStart, extEnd);
  10754. #endif /* GLX_EXT_scene_marker */
  10755. #ifdef GLX_EXT_swap_control
  10756. CONST_CAST(GLXEW_EXT_swap_control) = _glewSearchExtension("GLX_EXT_swap_control", extStart, extEnd);
  10757. if (glewExperimental || GLXEW_EXT_swap_control) CONST_CAST(GLXEW_EXT_swap_control) = !_glewInit_GLX_EXT_swap_control(GLEW_CONTEXT_ARG_VAR_INIT);
  10758. #endif /* GLX_EXT_swap_control */
  10759. #ifdef GLX_EXT_swap_control_tear
  10760. CONST_CAST(GLXEW_EXT_swap_control_tear) = _glewSearchExtension("GLX_EXT_swap_control_tear", extStart, extEnd);
  10761. #endif /* GLX_EXT_swap_control_tear */
  10762. #ifdef GLX_EXT_texture_from_pixmap
  10763. CONST_CAST(GLXEW_EXT_texture_from_pixmap) = _glewSearchExtension("GLX_EXT_texture_from_pixmap", extStart, extEnd);
  10764. if (glewExperimental || GLXEW_EXT_texture_from_pixmap) CONST_CAST(GLXEW_EXT_texture_from_pixmap) = !_glewInit_GLX_EXT_texture_from_pixmap(GLEW_CONTEXT_ARG_VAR_INIT);
  10765. #endif /* GLX_EXT_texture_from_pixmap */
  10766. #ifdef GLX_EXT_visual_info
  10767. CONST_CAST(GLXEW_EXT_visual_info) = _glewSearchExtension("GLX_EXT_visual_info", extStart, extEnd);
  10768. #endif /* GLX_EXT_visual_info */
  10769. #ifdef GLX_EXT_visual_rating
  10770. CONST_CAST(GLXEW_EXT_visual_rating) = _glewSearchExtension("GLX_EXT_visual_rating", extStart, extEnd);
  10771. #endif /* GLX_EXT_visual_rating */
  10772. #ifdef GLX_INTEL_swap_event
  10773. CONST_CAST(GLXEW_INTEL_swap_event) = _glewSearchExtension("GLX_INTEL_swap_event", extStart, extEnd);
  10774. #endif /* GLX_INTEL_swap_event */
  10775. #ifdef GLX_MESA_agp_offset
  10776. CONST_CAST(GLXEW_MESA_agp_offset) = _glewSearchExtension("GLX_MESA_agp_offset", extStart, extEnd);
  10777. if (glewExperimental || GLXEW_MESA_agp_offset) CONST_CAST(GLXEW_MESA_agp_offset) = !_glewInit_GLX_MESA_agp_offset(GLEW_CONTEXT_ARG_VAR_INIT);
  10778. #endif /* GLX_MESA_agp_offset */
  10779. #ifdef GLX_MESA_copy_sub_buffer
  10780. CONST_CAST(GLXEW_MESA_copy_sub_buffer) = _glewSearchExtension("GLX_MESA_copy_sub_buffer", extStart, extEnd);
  10781. if (glewExperimental || GLXEW_MESA_copy_sub_buffer) CONST_CAST(GLXEW_MESA_copy_sub_buffer) = !_glewInit_GLX_MESA_copy_sub_buffer(GLEW_CONTEXT_ARG_VAR_INIT);
  10782. #endif /* GLX_MESA_copy_sub_buffer */
  10783. #ifdef GLX_MESA_pixmap_colormap
  10784. CONST_CAST(GLXEW_MESA_pixmap_colormap) = _glewSearchExtension("GLX_MESA_pixmap_colormap", extStart, extEnd);
  10785. if (glewExperimental || GLXEW_MESA_pixmap_colormap) CONST_CAST(GLXEW_MESA_pixmap_colormap) = !_glewInit_GLX_MESA_pixmap_colormap(GLEW_CONTEXT_ARG_VAR_INIT);
  10786. #endif /* GLX_MESA_pixmap_colormap */
  10787. #ifdef GLX_MESA_release_buffers
  10788. CONST_CAST(GLXEW_MESA_release_buffers) = _glewSearchExtension("GLX_MESA_release_buffers", extStart, extEnd);
  10789. if (glewExperimental || GLXEW_MESA_release_buffers) CONST_CAST(GLXEW_MESA_release_buffers) = !_glewInit_GLX_MESA_release_buffers(GLEW_CONTEXT_ARG_VAR_INIT);
  10790. #endif /* GLX_MESA_release_buffers */
  10791. #ifdef GLX_MESA_set_3dfx_mode
  10792. CONST_CAST(GLXEW_MESA_set_3dfx_mode) = _glewSearchExtension("GLX_MESA_set_3dfx_mode", extStart, extEnd);
  10793. if (glewExperimental || GLXEW_MESA_set_3dfx_mode) CONST_CAST(GLXEW_MESA_set_3dfx_mode) = !_glewInit_GLX_MESA_set_3dfx_mode(GLEW_CONTEXT_ARG_VAR_INIT);
  10794. #endif /* GLX_MESA_set_3dfx_mode */
  10795. #ifdef GLX_MESA_swap_control
  10796. CONST_CAST(GLXEW_MESA_swap_control) = _glewSearchExtension("GLX_MESA_swap_control", extStart, extEnd);
  10797. if (glewExperimental || GLXEW_MESA_swap_control) CONST_CAST(GLXEW_MESA_swap_control) = !_glewInit_GLX_MESA_swap_control(GLEW_CONTEXT_ARG_VAR_INIT);
  10798. #endif /* GLX_MESA_swap_control */
  10799. #ifdef GLX_NV_copy_image
  10800. CONST_CAST(GLXEW_NV_copy_image) = _glewSearchExtension("GLX_NV_copy_image", extStart, extEnd);
  10801. if (glewExperimental || GLXEW_NV_copy_image) CONST_CAST(GLXEW_NV_copy_image) = !_glewInit_GLX_NV_copy_image(GLEW_CONTEXT_ARG_VAR_INIT);
  10802. #endif /* GLX_NV_copy_image */
  10803. #ifdef GLX_NV_float_buffer
  10804. CONST_CAST(GLXEW_NV_float_buffer) = _glewSearchExtension("GLX_NV_float_buffer", extStart, extEnd);
  10805. #endif /* GLX_NV_float_buffer */
  10806. #ifdef GLX_NV_multisample_coverage
  10807. CONST_CAST(GLXEW_NV_multisample_coverage) = _glewSearchExtension("GLX_NV_multisample_coverage", extStart, extEnd);
  10808. #endif /* GLX_NV_multisample_coverage */
  10809. #ifdef GLX_NV_present_video
  10810. CONST_CAST(GLXEW_NV_present_video) = _glewSearchExtension("GLX_NV_present_video", extStart, extEnd);
  10811. if (glewExperimental || GLXEW_NV_present_video) CONST_CAST(GLXEW_NV_present_video) = !_glewInit_GLX_NV_present_video(GLEW_CONTEXT_ARG_VAR_INIT);
  10812. #endif /* GLX_NV_present_video */
  10813. #ifdef GLX_NV_swap_group
  10814. CONST_CAST(GLXEW_NV_swap_group) = _glewSearchExtension("GLX_NV_swap_group", extStart, extEnd);
  10815. if (glewExperimental || GLXEW_NV_swap_group) CONST_CAST(GLXEW_NV_swap_group) = !_glewInit_GLX_NV_swap_group(GLEW_CONTEXT_ARG_VAR_INIT);
  10816. #endif /* GLX_NV_swap_group */
  10817. #ifdef GLX_NV_vertex_array_range
  10818. CONST_CAST(GLXEW_NV_vertex_array_range) = _glewSearchExtension("GLX_NV_vertex_array_range", extStart, extEnd);
  10819. if (glewExperimental || GLXEW_NV_vertex_array_range) CONST_CAST(GLXEW_NV_vertex_array_range) = !_glewInit_GLX_NV_vertex_array_range(GLEW_CONTEXT_ARG_VAR_INIT);
  10820. #endif /* GLX_NV_vertex_array_range */
  10821. #ifdef GLX_NV_video_capture
  10822. CONST_CAST(GLXEW_NV_video_capture) = _glewSearchExtension("GLX_NV_video_capture", extStart, extEnd);
  10823. if (glewExperimental || GLXEW_NV_video_capture) CONST_CAST(GLXEW_NV_video_capture) = !_glewInit_GLX_NV_video_capture(GLEW_CONTEXT_ARG_VAR_INIT);
  10824. #endif /* GLX_NV_video_capture */
  10825. #ifdef GLX_NV_video_output
  10826. CONST_CAST(GLXEW_NV_video_output) = _glewSearchExtension("GLX_NV_video_output", extStart, extEnd);
  10827. if (glewExperimental || GLXEW_NV_video_output) CONST_CAST(GLXEW_NV_video_output) = !_glewInit_GLX_NV_video_output(GLEW_CONTEXT_ARG_VAR_INIT);
  10828. #endif /* GLX_NV_video_output */
  10829. #ifdef GLX_OML_swap_method
  10830. CONST_CAST(GLXEW_OML_swap_method) = _glewSearchExtension("GLX_OML_swap_method", extStart, extEnd);
  10831. #endif /* GLX_OML_swap_method */
  10832. #ifdef GLX_OML_sync_control
  10833. CONST_CAST(GLXEW_OML_sync_control) = _glewSearchExtension("GLX_OML_sync_control", extStart, extEnd);
  10834. if (glewExperimental || GLXEW_OML_sync_control) CONST_CAST(GLXEW_OML_sync_control) = !_glewInit_GLX_OML_sync_control(GLEW_CONTEXT_ARG_VAR_INIT);
  10835. #endif /* GLX_OML_sync_control */
  10836. #ifdef GLX_SGIS_blended_overlay
  10837. CONST_CAST(GLXEW_SGIS_blended_overlay) = _glewSearchExtension("GLX_SGIS_blended_overlay", extStart, extEnd);
  10838. #endif /* GLX_SGIS_blended_overlay */
  10839. #ifdef GLX_SGIS_color_range
  10840. CONST_CAST(GLXEW_SGIS_color_range) = _glewSearchExtension("GLX_SGIS_color_range", extStart, extEnd);
  10841. #endif /* GLX_SGIS_color_range */
  10842. #ifdef GLX_SGIS_multisample
  10843. CONST_CAST(GLXEW_SGIS_multisample) = _glewSearchExtension("GLX_SGIS_multisample", extStart, extEnd);
  10844. #endif /* GLX_SGIS_multisample */
  10845. #ifdef GLX_SGIS_shared_multisample
  10846. CONST_CAST(GLXEW_SGIS_shared_multisample) = _glewSearchExtension("GLX_SGIS_shared_multisample", extStart, extEnd);
  10847. #endif /* GLX_SGIS_shared_multisample */
  10848. #ifdef GLX_SGIX_fbconfig
  10849. CONST_CAST(GLXEW_SGIX_fbconfig) = _glewSearchExtension("GLX_SGIX_fbconfig", extStart, extEnd);
  10850. if (glewExperimental || GLXEW_SGIX_fbconfig) CONST_CAST(GLXEW_SGIX_fbconfig) = !_glewInit_GLX_SGIX_fbconfig(GLEW_CONTEXT_ARG_VAR_INIT);
  10851. #endif /* GLX_SGIX_fbconfig */
  10852. #ifdef GLX_SGIX_hyperpipe
  10853. CONST_CAST(GLXEW_SGIX_hyperpipe) = _glewSearchExtension("GLX_SGIX_hyperpipe", extStart, extEnd);
  10854. if (glewExperimental || GLXEW_SGIX_hyperpipe) CONST_CAST(GLXEW_SGIX_hyperpipe) = !_glewInit_GLX_SGIX_hyperpipe(GLEW_CONTEXT_ARG_VAR_INIT);
  10855. #endif /* GLX_SGIX_hyperpipe */
  10856. #ifdef GLX_SGIX_pbuffer
  10857. CONST_CAST(GLXEW_SGIX_pbuffer) = _glewSearchExtension("GLX_SGIX_pbuffer", extStart, extEnd);
  10858. if (glewExperimental || GLXEW_SGIX_pbuffer) CONST_CAST(GLXEW_SGIX_pbuffer) = !_glewInit_GLX_SGIX_pbuffer(GLEW_CONTEXT_ARG_VAR_INIT);
  10859. #endif /* GLX_SGIX_pbuffer */
  10860. #ifdef GLX_SGIX_swap_barrier
  10861. CONST_CAST(GLXEW_SGIX_swap_barrier) = _glewSearchExtension("GLX_SGIX_swap_barrier", extStart, extEnd);
  10862. if (glewExperimental || GLXEW_SGIX_swap_barrier) CONST_CAST(GLXEW_SGIX_swap_barrier) = !_glewInit_GLX_SGIX_swap_barrier(GLEW_CONTEXT_ARG_VAR_INIT);
  10863. #endif /* GLX_SGIX_swap_barrier */
  10864. #ifdef GLX_SGIX_swap_group
  10865. CONST_CAST(GLXEW_SGIX_swap_group) = _glewSearchExtension("GLX_SGIX_swap_group", extStart, extEnd);
  10866. if (glewExperimental || GLXEW_SGIX_swap_group) CONST_CAST(GLXEW_SGIX_swap_group) = !_glewInit_GLX_SGIX_swap_group(GLEW_CONTEXT_ARG_VAR_INIT);
  10867. #endif /* GLX_SGIX_swap_group */
  10868. #ifdef GLX_SGIX_video_resize
  10869. CONST_CAST(GLXEW_SGIX_video_resize) = _glewSearchExtension("GLX_SGIX_video_resize", extStart, extEnd);
  10870. if (glewExperimental || GLXEW_SGIX_video_resize) CONST_CAST(GLXEW_SGIX_video_resize) = !_glewInit_GLX_SGIX_video_resize(GLEW_CONTEXT_ARG_VAR_INIT);
  10871. #endif /* GLX_SGIX_video_resize */
  10872. #ifdef GLX_SGIX_visual_select_group
  10873. CONST_CAST(GLXEW_SGIX_visual_select_group) = _glewSearchExtension("GLX_SGIX_visual_select_group", extStart, extEnd);
  10874. #endif /* GLX_SGIX_visual_select_group */
  10875. #ifdef GLX_SGI_cushion
  10876. CONST_CAST(GLXEW_SGI_cushion) = _glewSearchExtension("GLX_SGI_cushion", extStart, extEnd);
  10877. if (glewExperimental || GLXEW_SGI_cushion) CONST_CAST(GLXEW_SGI_cushion) = !_glewInit_GLX_SGI_cushion(GLEW_CONTEXT_ARG_VAR_INIT);
  10878. #endif /* GLX_SGI_cushion */
  10879. #ifdef GLX_SGI_make_current_read
  10880. CONST_CAST(GLXEW_SGI_make_current_read) = _glewSearchExtension("GLX_SGI_make_current_read", extStart, extEnd);
  10881. if (glewExperimental || GLXEW_SGI_make_current_read) CONST_CAST(GLXEW_SGI_make_current_read) = !_glewInit_GLX_SGI_make_current_read(GLEW_CONTEXT_ARG_VAR_INIT);
  10882. #endif /* GLX_SGI_make_current_read */
  10883. #ifdef GLX_SGI_swap_control
  10884. CONST_CAST(GLXEW_SGI_swap_control) = _glewSearchExtension("GLX_SGI_swap_control", extStart, extEnd);
  10885. if (glewExperimental || GLXEW_SGI_swap_control) CONST_CAST(GLXEW_SGI_swap_control) = !_glewInit_GLX_SGI_swap_control(GLEW_CONTEXT_ARG_VAR_INIT);
  10886. #endif /* GLX_SGI_swap_control */
  10887. #ifdef GLX_SGI_video_sync
  10888. CONST_CAST(GLXEW_SGI_video_sync) = _glewSearchExtension("GLX_SGI_video_sync", extStart, extEnd);
  10889. if (glewExperimental || GLXEW_SGI_video_sync) CONST_CAST(GLXEW_SGI_video_sync) = !_glewInit_GLX_SGI_video_sync(GLEW_CONTEXT_ARG_VAR_INIT);
  10890. #endif /* GLX_SGI_video_sync */
  10891. #ifdef GLX_SUN_get_transparent_index
  10892. CONST_CAST(GLXEW_SUN_get_transparent_index) = _glewSearchExtension("GLX_SUN_get_transparent_index", extStart, extEnd);
  10893. if (glewExperimental || GLXEW_SUN_get_transparent_index) CONST_CAST(GLXEW_SUN_get_transparent_index) = !_glewInit_GLX_SUN_get_transparent_index(GLEW_CONTEXT_ARG_VAR_INIT);
  10894. #endif /* GLX_SUN_get_transparent_index */
  10895. #ifdef GLX_SUN_video_resize
  10896. CONST_CAST(GLXEW_SUN_video_resize) = _glewSearchExtension("GLX_SUN_video_resize", extStart, extEnd);
  10897. if (glewExperimental || GLXEW_SUN_video_resize) CONST_CAST(GLXEW_SUN_video_resize) = !_glewInit_GLX_SUN_video_resize(GLEW_CONTEXT_ARG_VAR_INIT);
  10898. #endif /* GLX_SUN_video_resize */
  10899. return GLEW_OK;
  10900. }
  10901. #endif /* !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) */
  10902. /* ------------------------------------------------------------------------ */
  10903. const GLubyte * GLEWAPIENTRY glewGetErrorString (GLenum error)
  10904. {
  10905. static const GLubyte* _glewErrorString[] =
  10906. {
  10907. (const GLubyte*)"No error",
  10908. (const GLubyte*)"Missing GL version",
  10909. (const GLubyte*)"GL 1.1 and up are not supported",
  10910. (const GLubyte*)"GLX 1.2 and up are not supported",
  10911. (const GLubyte*)"Unknown error"
  10912. };
  10913. const int max_error = sizeof(_glewErrorString)/sizeof(*_glewErrorString) - 1;
  10914. return _glewErrorString[(int)error > max_error ? max_error : (int)error];
  10915. }
  10916. const GLubyte * GLEWAPIENTRY glewGetString (GLenum name)
  10917. {
  10918. static const GLubyte* _glewString[] =
  10919. {
  10920. (const GLubyte*)NULL,
  10921. (const GLubyte*)"1.10.0",
  10922. (const GLubyte*)"1",
  10923. (const GLubyte*)"10",
  10924. (const GLubyte*)"0"
  10925. };
  10926. const int max_string = sizeof(_glewString)/sizeof(*_glewString) - 1;
  10927. return _glewString[(int)name > max_string ? 0 : (int)name];
  10928. }
  10929. /* ------------------------------------------------------------------------ */
  10930. GLboolean glewExperimental = GL_FALSE;
  10931. #if !defined(GLEW_MX)
  10932. #if defined(_WIN32)
  10933. extern GLenum GLEWAPIENTRY wglewContextInit (void);
  10934. #elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
  10935. extern GLenum GLEWAPIENTRY glxewContextInit (void);
  10936. #endif /* _WIN32 */
  10937. #ifdef GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  10938. GLboolean GLEWAPIENTRY glewXInit(void)
  10939. {
  10940. GLboolean r = GL_FALSE;
  10941. r = ((glXGetProcAddressARB = (PFNGLXGETPROCADDRESSARBPROC)dlglXGetProcAddressARB((const GLubyte*)"glXGetProcAddressARB")) == NULL) || r;
  10942. r = ((glXQueryExtension = (PFNGLXQUERYEXTENSION)dlglXGetProcAddressARB((const GLubyte*)"glXQueryExtension")) == NULL) || r;
  10943. r = ((glXQueryVersion = (PFNGLXQUERYVERSION)dlglXGetProcAddressARB((const GLubyte*)"glXQueryVersion")) == NULL) || r;
  10944. r = ((glXGetConfig = (PFNGLXGETCONFIG)dlglXGetProcAddressARB((const GLubyte*)"glXGetConfig")) == NULL) || r;
  10945. r = ((glXChooseVisual = (PFNGLXCHOOSEVISUAL)dlglXGetProcAddressARB((const GLubyte*)"glXChooseVisual")) == NULL) || r;
  10946. r = ((glXCreateContext = (PFNGLXCREATECONTEXT)dlglXGetProcAddressARB((const GLubyte*)"glXCreateContext")) == NULL) || r;
  10947. r = ((glXDestroyContext = (PFNGLXDESTROYCONTEXT)dlglXGetProcAddressARB((const GLubyte*)"glXDestroyContext")) == NULL) || r;
  10948. r = ((glXDestroyContext = (PFNGLXDESTROYCONTEXT)dlglXGetProcAddressARB((const GLubyte*)"glXDestroyContext")) == NULL) || r;
  10949. r = ((glXIsDirect = (PFNGLXISDIRECT)dlglXGetProcAddressARB((const GLubyte*)"glXIsDirect")) == NULL) || r;
  10950. r = ((glXMakeCurrent = (PFNGLXMAKECURRENT)dlglXGetProcAddressARB((const GLubyte*)"glXMakeCurrent")) == NULL) || r;
  10951. r = ((glXQueryExtensionsString = (PFNGLXQUERYEXTENSIONSSTRING)dlglXGetProcAddressARB((const GLubyte*)"glXQueryExtensionsString")) == NULL) || r;
  10952. r = ((glXGetClientString = (PFNGLXGETCLIENTSTRING)dlglXGetProcAddressARB((const GLubyte*)"glXGetClientString")) == NULL) || r;
  10953. r = ((glXQueryServerString = (PFNGLXQUERYSERVERSTRING)dlglXGetProcAddressARB((const GLubyte*)"glXQueryServerString")) == NULL) || r;
  10954. r = ((glXSwapBuffers = (PFNGLXSWAPBUFFERS)dlglXGetProcAddressARB((const GLubyte*)"glXSwapBuffers")) == NULL) || r;
  10955. //glxewContextInit();
  10956. _glewInit_GLX_VERSION_1_3();
  10957. if (r==0)
  10958. {
  10959. printf("glewXInit dynamically loaded using dlopen/dlsym OK\n");
  10960. }
  10961. return r;
  10962. }
  10963. #endif //GLEW_DYNAMIC_LOAD_ALL_GLX_FUNCTIONS
  10964. #ifdef GLEW_INIT_OPENGL11_FUNCTIONS
  10965. PFNGLACCUMPROC __glewAccum = NULL;
  10966. PFNGLALPHAFUNCPROC __glewAlphaFunc = NULL;
  10967. PFNGLARETEXTURESRESIDENTPROC __glewAreTexturesResident = NULL;
  10968. PFNGLARRAYELEMENTPROC __glewArrayElement = NULL;
  10969. PFNGLBEGINPROC __glewBegin = NULL;
  10970. PFNGLBINDTEXTUREPROC __glewBindTexture = NULL;
  10971. PFNGLBITMAPPROC __glewBitmap = NULL;
  10972. PFNGLBLENDFUNCPROC __glewBlendFunc = NULL;
  10973. PFNGLCALLLISTPROC __glewCallList = NULL;
  10974. PFNGLCALLLISTSPROC __glewCallLists = NULL;
  10975. PFNGLCLEARPROC __glewClear = NULL;
  10976. PFNGLCLEARACCUMPROC __glewClearAccum = NULL;
  10977. PFNGLCLEARCOLORPROC __glewClearColor = NULL;
  10978. PFNGLCLEARDEPTHPROC __glewClearDepth = NULL;
  10979. PFNGLCLEARINDEXPROC __glewClearIndex = NULL;
  10980. PFNGLCLEARSTENCILPROC __glewClearStencil = NULL;
  10981. PFNGLCLIPPLANEPROC __glewClipPlane = NULL;
  10982. PFNGLCOLOR3BPROC __glewColor3b = NULL;
  10983. PFNGLCOLOR3BVPROC __glewColor3bv = NULL;
  10984. PFNGLCOLOR3DPROC __glewColor3d = NULL;
  10985. PFNGLCOLOR3DVPROC __glewColor3dv = NULL;
  10986. PFNGLCOLOR3FPROC __glewColor3f = NULL;
  10987. PFNGLCOLOR3FVPROC __glewColor3fv = NULL;
  10988. PFNGLCOLOR3IPROC __glewColor3i = NULL;
  10989. PFNGLCOLOR3IVPROC __glewColor3iv = NULL;
  10990. PFNGLCOLOR3SPROC __glewColor3s = NULL;
  10991. PFNGLCOLOR3SVPROC __glewColor3sv = NULL;
  10992. PFNGLCOLOR3UBPROC __glewColor3ub = NULL;
  10993. PFNGLCOLOR3UBVPROC __glewColor3ubv = NULL;
  10994. PFNGLCOLOR3UIPROC __glewColor3ui = NULL;
  10995. PFNGLCOLOR3UIVPROC __glewColor3uiv = NULL;
  10996. PFNGLCOLOR3USPROC __glewColor3us = NULL;
  10997. PFNGLCOLOR3USVPROC __glewColor3usv = NULL;
  10998. PFNGLCOLOR4BPROC __glewColor4b = NULL;
  10999. PFNGLCOLOR4BVPROC __glewColor4bv = NULL;
  11000. PFNGLCOLOR4DPROC __glewColor4d = NULL;
  11001. PFNGLCOLOR4DVPROC __glewColor4dv = NULL;
  11002. PFNGLCOLOR4FPROC __glewColor4f = NULL;
  11003. PFNGLCOLOR4FVPROC __glewColor4fv = NULL;
  11004. PFNGLCOLOR4IPROC __glewColor4i = NULL;
  11005. PFNGLCOLOR4IVPROC __glewColor4iv = NULL;
  11006. PFNGLCOLOR4SPROC __glewColor4s = NULL;
  11007. PFNGLCOLOR4SVPROC __glewColor4sv = NULL;
  11008. PFNGLCOLOR4UBPROC __glewColor4ub = NULL;
  11009. PFNGLCOLOR4UBVPROC __glewColor4ubv = NULL;
  11010. PFNGLCOLOR4UIPROC __glewColor4ui = NULL;
  11011. PFNGLCOLOR4UIVPROC __glewColor4uiv = NULL;
  11012. PFNGLCOLOR4USPROC __glewColor4us = NULL;
  11013. PFNGLCOLOR4USVPROC __glewColor4usv = NULL;
  11014. PFNGLCOLORMASKPROC __glewColorMask = NULL;
  11015. PFNGLCOLORMATERIALPROC __glewColorMaterial = NULL;
  11016. PFNGLCOLORPOINTERPROC __glewColorPointer = NULL;
  11017. PFNGLCOPYPIXELSPROC __glewCopyPixels = NULL;
  11018. PFNGLCOPYTEXIMAGE1DPROC __glewCopyTexImage1D = NULL;
  11019. PFNGLCOPYTEXIMAGE2DPROC __glewCopyTexImage2D = NULL;
  11020. PFNGLCOPYTEXSUBIMAGE1DPROC __glewCopyTexSubImage1D = NULL;
  11021. PFNGLCOPYTEXSUBIMAGE2DPROC __glewCopyTexSubImage2D = NULL;
  11022. PFNGLCULLFACEPROC __glewCullFace = NULL;
  11023. PFNGLDELETELISTSPROC __glewDeleteLists = NULL;
  11024. PFNGLDELETETEXTURESPROC __glewDeleteTextures = NULL;
  11025. PFNGLDEPTHFUNCPROC __glewDepthFunc = NULL;
  11026. PFNGLDEPTHMASKPROC __glewDepthMask = NULL;
  11027. PFNGLDEPTHRANGEPROC __glewDepthRange = NULL;
  11028. PFNGLDISABLEPROC __glewDisable = NULL;
  11029. PFNGLDISABLECLIENTSTATEPROC __glewDisableClientState = NULL;
  11030. PFNGLDRAWARRAYSPROC __glewDrawArrays = NULL;
  11031. PFNGLDRAWBUFFERPROC __glewDrawBuffer = NULL;
  11032. PFNGLDRAWELEMENTSPROC __glewDrawElements = NULL;
  11033. PFNGLDRAWPIXELSPROC __glewDrawPixels = NULL;
  11034. PFNGLEDGEFLAGPROC __glewEdgeFlag = NULL;
  11035. PFNGLEDGEFLAGPOINTERPROC __glewEdgeFlagPointer = NULL;
  11036. PFNGLEDGEFLAGVPROC __glewEdgeFlagv = NULL;
  11037. PFNGLENABLEPROC __glewEnable = NULL;
  11038. PFNGLENABLECLIENTSTATEPROC __glewEnableClientState = NULL;
  11039. PFNGLENDPROC __glewEnd = NULL;
  11040. PFNGLENDLISTPROC __glewEndList = NULL;
  11041. PFNGLEVALCOORD1DPROC __glewEvalCoord1d = NULL;
  11042. PFNGLEVALCOORD1DVPROC __glewEvalCoord1dv = NULL;
  11043. PFNGLEVALCOORD1FPROC __glewEvalCoord1f = NULL;
  11044. PFNGLEVALCOORD1FVPROC __glewEvalCoord1fv = NULL;
  11045. PFNGLEVALCOORD2DPROC __glewEvalCoord2d = NULL;
  11046. PFNGLEVALCOORD2DVPROC __glewEvalCoord2dv = NULL;
  11047. PFNGLEVALCOORD2FPROC __glewEvalCoord2f = NULL;
  11048. PFNGLEVALCOORD2FVPROC __glewEvalCoord2fv = NULL;
  11049. PFNGLEVALMESH1PROC __glewEvalMesh1 = NULL;
  11050. PFNGLEVALMESH2PROC __glewEvalMesh2 = NULL;
  11051. PFNGLEVALPOINT1PROC __glewEvalPoint1 = NULL;
  11052. PFNGLEVALPOINT2PROC __glewEvalPoint2 = NULL;
  11053. PFNGLFEEDBACKBUFFERPROC __glewFeedbackBuffer = NULL;
  11054. PFNGLFINISHPROC __glewFinish = NULL;
  11055. PFNGLFLUSHPROC __glewFlush = NULL;
  11056. PFNGLFOGFPROC __glewFogf = NULL;
  11057. PFNGLFOGFVPROC __glewFogfv = NULL;
  11058. PFNGLFOGIPROC __glewFogi = NULL;
  11059. PFNGLFOGIVPROC __glewFogiv = NULL;
  11060. PFNGLFRONTFACEPROC __glewFrontFace = NULL;
  11061. PFNGLFRUSTUMPROC __glewFrustum = NULL;
  11062. PFNGLGENLISTSPROC __glewGenLists = NULL;
  11063. PFNGLGENTEXTURESPROC __glewGenTextures = NULL;
  11064. PFNGLGETBOOLEANVPROC __glewGetBooleanv = NULL;
  11065. PFNGLGETCLIPPLANEPROC __glewGetClipPlane = NULL;
  11066. PFNGLGETDOUBLEVPROC __glewGetDoublev = NULL;
  11067. PFNGLGETERRORPROC __glewGetError = NULL;
  11068. PFNGLGETFLOATVPROC __glewGetFloatv = NULL;
  11069. PFNGLGETINTEGERVPROC __glewGetIntegerv = NULL;
  11070. PFNGLGETLIGHTFVPROC __glewGetLightfv = NULL;
  11071. PFNGLGETLIGHTIVPROC __glewGetLightiv = NULL;
  11072. PFNGLGETMAPDVPROC __glewGetMapdv = NULL;
  11073. PFNGLGETMAPFVPROC __glewGetMapfv = NULL;
  11074. PFNGLGETMAPIVPROC __glewGetMapiv = NULL;
  11075. PFNGLGETMATERIALFVPROC __glewGetMaterialfv = NULL;
  11076. PFNGLGETMATERIALIVPROC __glewGetMaterialiv = NULL;
  11077. PFNGLGETPIXELMAPFVPROC __glewGetPixelMapfv = NULL;
  11078. PFNGLGETPIXELMAPUIVPROC __glewGetPixelMapuiv = NULL;
  11079. PFNGLGETPIXELMAPUSVPROC __glewGetPixelMapusv = NULL;
  11080. PFNGLGETPOINTERVPROC __glewGetPointerv = NULL;
  11081. PFNGLGETPOLYGONSTIPPLEPROC __glewGetPolygonStipple = NULL;
  11082. PFNGLGETSTRINGPROC __glewGetString = NULL;
  11083. PFNGLGETTEXENVFVPROC __glewGetTexEnvfv = NULL;
  11084. PFNGLGETTEXENVIVPROC __glewGetTexEnviv = NULL;
  11085. PFNGLGETTEXGENDVPROC __glewGetTexGendv = NULL;
  11086. PFNGLGETTEXGENFVPROC __glewGetTexGenfv = NULL;
  11087. PFNGLGETTEXGENIVPROC __glewGetTexGeniv = NULL;
  11088. PFNGLGETTEXIMAGEPROC __glewGetTexImage = NULL;
  11089. PFNGLGETTEXLEVELPARAMETERFVPROC __glewGetTexLevelParameterfv = NULL;
  11090. PFNGLGETTEXLEVELPARAMETERIVPROC __glewGetTexLevelParameteriv = NULL;
  11091. PFNGLGETTEXPARAMETERFVPROC __glewGetTexParameterfv = NULL;
  11092. PFNGLGETTEXPARAMETERIVPROC __glewGetTexParameteriv = NULL;
  11093. PFNGLHINTPROC __glewHint = NULL;
  11094. PFNGLINDEXMASKPROC __glewIndexMask = NULL;
  11095. PFNGLINDEXPOINTERPROC __glewIndexPointer = NULL;
  11096. PFNGLINDEXDPROC __glewIndexd = NULL;
  11097. PFNGLINDEXDVPROC __glewIndexdv = NULL;
  11098. PFNGLINDEXFPROC __glewIndexf = NULL;
  11099. PFNGLINDEXFVPROC __glewIndexfv = NULL;
  11100. PFNGLINDEXIPROC __glewIndexi = NULL;
  11101. PFNGLINDEXIVPROC __glewIndexiv = NULL;
  11102. PFNGLINDEXSPROC __glewIndexs = NULL;
  11103. PFNGLINDEXSVPROC __glewIndexsv = NULL;
  11104. PFNGLINDEXUBPROC __glewIndexub = NULL;
  11105. PFNGLINDEXUBVPROC __glewIndexubv = NULL;
  11106. PFNGLINITNAMESPROC __glewInitNames = NULL;
  11107. PFNGLINTERLEAVEDARRAYSPROC __glewInterleavedArrays = NULL;
  11108. PFNGLISENABLEDPROC __glewIsEnabled = NULL;
  11109. PFNGLISLISTPROC __glewIsList = NULL;
  11110. PFNGLISTEXTUREPROC __glewIsTexture = NULL;
  11111. PFNGLLIGHTMODELFPROC __glewLightModelf = NULL;
  11112. PFNGLLIGHTMODELFVPROC __glewLightModelfv = NULL;
  11113. PFNGLLIGHTMODELIPROC __glewLightModeli = NULL;
  11114. PFNGLLIGHTMODELIVPROC __glewLightModeliv = NULL;
  11115. PFNGLLIGHTFPROC __glewLightf = NULL;
  11116. PFNGLLIGHTFVPROC __glewLightfv = NULL;
  11117. PFNGLLIGHTIPROC __glewLighti = NULL;
  11118. PFNGLLIGHTIVPROC __glewLightiv = NULL;
  11119. PFNGLLINESTIPPLEPROC __glewLineStipple = NULL;
  11120. PFNGLLINEWIDTHPROC __glewLineWidth = NULL;
  11121. PFNGLLISTBASEPROC __glewListBase = NULL;
  11122. PFNGLLOADIDENTITYPROC __glewLoadIdentity = NULL;
  11123. PFNGLLOADMATRIXDPROC __glewLoadMatrixd = NULL;
  11124. PFNGLLOADMATRIXFPROC __glewLoadMatrixf = NULL;
  11125. PFNGLLOADNAMEPROC __glewLoadName = NULL;
  11126. PFNGLLOGICOPPROC __glewLogicOp = NULL;
  11127. PFNGLMAP1DPROC __glewMap1d = NULL;
  11128. PFNGLMAP1FPROC __glewMap1f = NULL;
  11129. PFNGLMAP2DPROC __glewMap2d = NULL;
  11130. PFNGLMAP2FPROC __glewMap2f = NULL;
  11131. PFNGLMAPGRID1DPROC __glewMapGrid1d = NULL;
  11132. PFNGLMAPGRID1FPROC __glewMapGrid1f = NULL;
  11133. PFNGLMAPGRID2DPROC __glewMapGrid2d = NULL;
  11134. PFNGLMAPGRID2FPROC __glewMapGrid2f = NULL;
  11135. PFNGLMATERIALFPROC __glewMaterialf = NULL;
  11136. PFNGLMATERIALFVPROC __glewMaterialfv = NULL;
  11137. PFNGLMATERIALIPROC __glewMateriali = NULL;
  11138. PFNGLMATERIALIVPROC __glewMaterialiv = NULL;
  11139. PFNGLMATRIXMODEPROC __glewMatrixMode = NULL;
  11140. PFNGLMULTMATRIXDPROC __glewMultMatrixd = NULL;
  11141. PFNGLMULTMATRIXFPROC __glewMultMatrixf = NULL;
  11142. PFNGLNEWLISTPROC __glewNewList = NULL;
  11143. PFNGLNORMAL3BPROC __glewNormal3b = NULL;
  11144. PFNGLNORMAL3BVPROC __glewNormal3bv = NULL;
  11145. PFNGLNORMAL3DPROC __glewNormal3d = NULL;
  11146. PFNGLNORMAL3DVPROC __glewNormal3dv = NULL;
  11147. PFNGLNORMAL3FPROC __glewNormal3f = NULL;
  11148. PFNGLNORMAL3FVPROC __glewNormal3fv = NULL;
  11149. PFNGLNORMAL3IPROC __glewNormal3i = NULL;
  11150. PFNGLNORMAL3IVPROC __glewNormal3iv = NULL;
  11151. PFNGLNORMAL3SPROC __glewNormal3s = NULL;
  11152. PFNGLNORMAL3SVPROC __glewNormal3sv = NULL;
  11153. PFNGLNORMALPOINTERPROC __glewNormalPointer = NULL;
  11154. PFNGLORTHOPROC __glewOrtho = NULL;
  11155. PFNGLPASSTHROUGHPROC __glewPassThrough = NULL;
  11156. PFNGLPIXELMAPFVPROC __glewPixelMapfv = NULL;
  11157. PFNGLPIXELMAPUIVPROC __glewPixelMapuiv = NULL;
  11158. PFNGLPIXELMAPUSVPROC __glewPixelMapusv = NULL;
  11159. PFNGLPIXELSTOREFPROC __glewPixelStoref = NULL;
  11160. PFNGLPIXELSTOREIPROC __glewPixelStorei = NULL;
  11161. PFNGLPIXELTRANSFERFPROC __glewPixelTransferf = NULL;
  11162. PFNGLPIXELTRANSFERIPROC __glewPixelTransferi = NULL;
  11163. PFNGLPIXELZOOMPROC __glewPixelZoom = NULL;
  11164. PFNGLPOINTSIZEPROC __glewPointSize = NULL;
  11165. PFNGLPOLYGONMODEPROC __glewPolygonMode = NULL;
  11166. PFNGLPOLYGONOFFSETPROC __glewPolygonOffset = NULL;
  11167. PFNGLPOLYGONSTIPPLEPROC __glewPolygonStipple = NULL;
  11168. PFNGLPOPATTRIBPROC __glewPopAttrib = NULL;
  11169. PFNGLPOPCLIENTATTRIBPROC __glewPopClientAttrib = NULL;
  11170. PFNGLPOPMATRIXPROC __glewPopMatrix = NULL;
  11171. PFNGLPOPNAMEPROC __glewPopName = NULL;
  11172. PFNGLPRIORITIZETEXTURESPROC __glewPrioritizeTextures = NULL;
  11173. PFNGLPUSHATTRIBPROC __glewPushAttrib = NULL;
  11174. PFNGLPUSHCLIENTATTRIBPROC __glewPushClientAttrib = NULL;
  11175. PFNGLPUSHMATRIXPROC __glewPushMatrix = NULL;
  11176. PFNGLPUSHNAMEPROC __glewPushName = NULL;
  11177. PFNGLRASTERPOS2DPROC __glewRasterPos2d = NULL;
  11178. PFNGLRASTERPOS2DVPROC __glewRasterPos2dv = NULL;
  11179. PFNGLRASTERPOS2FPROC __glewRasterPos2f = NULL;
  11180. PFNGLRASTERPOS2FVPROC __glewRasterPos2fv = NULL;
  11181. PFNGLRASTERPOS2IPROC __glewRasterPos2i = NULL;
  11182. PFNGLRASTERPOS2IVPROC __glewRasterPos2iv = NULL;
  11183. PFNGLRASTERPOS2SPROC __glewRasterPos2s = NULL;
  11184. PFNGLRASTERPOS2SVPROC __glewRasterPos2sv = NULL;
  11185. PFNGLRASTERPOS3DPROC __glewRasterPos3d = NULL;
  11186. PFNGLRASTERPOS3DVPROC __glewRasterPos3dv = NULL;
  11187. PFNGLRASTERPOS3FPROC __glewRasterPos3f = NULL;
  11188. PFNGLRASTERPOS3FVPROC __glewRasterPos3fv = NULL;
  11189. PFNGLRASTERPOS3IPROC __glewRasterPos3i = NULL;
  11190. PFNGLRASTERPOS3IVPROC __glewRasterPos3iv = NULL;
  11191. PFNGLRASTERPOS3SPROC __glewRasterPos3s = NULL;
  11192. PFNGLRASTERPOS3SVPROC __glewRasterPos3sv = NULL;
  11193. PFNGLRASTERPOS4DPROC __glewRasterPos4d = NULL;
  11194. PFNGLRASTERPOS4DVPROC __glewRasterPos4dv = NULL;
  11195. PFNGLRASTERPOS4FPROC __glewRasterPos4f = NULL;
  11196. PFNGLRASTERPOS4FVPROC __glewRasterPos4fv = NULL;
  11197. PFNGLRASTERPOS4IPROC __glewRasterPos4i = NULL;
  11198. PFNGLRASTERPOS4IVPROC __glewRasterPos4iv = NULL;
  11199. PFNGLRASTERPOS4SPROC __glewRasterPos4s = NULL;
  11200. PFNGLRASTERPOS4SVPROC __glewRasterPos4sv = NULL;
  11201. PFNGLREADBUFFERPROC __glewReadBuffer = NULL;
  11202. PFNGLREADPIXELSPROC __glewReadPixels = NULL;
  11203. PFNGLRECTDPROC __glewRectd = NULL;
  11204. PFNGLRECTDVPROC __glewRectdv = NULL;
  11205. PFNGLRECTFPROC __glewRectf = NULL;
  11206. PFNGLRECTFVPROC __glewRectfv = NULL;
  11207. PFNGLRECTIPROC __glewRecti = NULL;
  11208. PFNGLRECTIVPROC __glewRectiv = NULL;
  11209. PFNGLRECTSPROC __glewRects = NULL;
  11210. PFNGLRECTSVPROC __glewRectsv = NULL;
  11211. PFNGLRENDERMODEPROC __glewRenderMode = NULL;
  11212. PFNGLROTATEDPROC __glewRotated = NULL;
  11213. PFNGLROTATEFPROC __glewRotatef = NULL;
  11214. PFNGLSCALEDPROC __glewScaled = NULL;
  11215. PFNGLSCALEFPROC __glewScalef = NULL;
  11216. PFNGLSCISSORPROC __glewScissor = NULL;
  11217. PFNGLSELECTBUFFERPROC __glewSelectBuffer = NULL;
  11218. PFNGLSHADEMODELPROC __glewShadeModel = NULL;
  11219. PFNGLSTENCILFUNCPROC __glewStencilFunc = NULL;
  11220. PFNGLSTENCILMASKPROC __glewStencilMask = NULL;
  11221. PFNGLSTENCILOPPROC __glewStencilOp = NULL;
  11222. PFNGLTEXCOORD1DPROC __glewTexCoord1d = NULL;
  11223. PFNGLTEXCOORD1DVPROC __glewTexCoord1dv = NULL;
  11224. PFNGLTEXCOORD1FPROC __glewTexCoord1f = NULL;
  11225. PFNGLTEXCOORD1FVPROC __glewTexCoord1fv = NULL;
  11226. PFNGLTEXCOORD1IPROC __glewTexCoord1i = NULL;
  11227. PFNGLTEXCOORD1IVPROC __glewTexCoord1iv = NULL;
  11228. PFNGLTEXCOORD1SPROC __glewTexCoord1s = NULL;
  11229. PFNGLTEXCOORD1SVPROC __glewTexCoord1sv = NULL;
  11230. PFNGLTEXCOORD2DPROC __glewTexCoord2d = NULL;
  11231. PFNGLTEXCOORD2DVPROC __glewTexCoord2dv = NULL;
  11232. PFNGLTEXCOORD2FPROC __glewTexCoord2f = NULL;
  11233. PFNGLTEXCOORD2FVPROC __glewTexCoord2fv = NULL;
  11234. PFNGLTEXCOORD2IPROC __glewTexCoord2i = NULL;
  11235. PFNGLTEXCOORD2IVPROC __glewTexCoord2iv = NULL;
  11236. PFNGLTEXCOORD2SPROC __glewTexCoord2s = NULL;
  11237. PFNGLTEXCOORD2SVPROC __glewTexCoord2sv = NULL;
  11238. PFNGLTEXCOORD3DPROC __glewTexCoord3d = NULL;
  11239. PFNGLTEXCOORD3DVPROC __glewTexCoord3dv = NULL;
  11240. PFNGLTEXCOORD3FPROC __glewTexCoord3f = NULL;
  11241. PFNGLTEXCOORD3FVPROC __glewTexCoord3fv = NULL;
  11242. PFNGLTEXCOORD3IPROC __glewTexCoord3i = NULL;
  11243. PFNGLTEXCOORD3IVPROC __glewTexCoord3iv = NULL;
  11244. PFNGLTEXCOORD3SPROC __glewTexCoord3s = NULL;
  11245. PFNGLTEXCOORD3SVPROC __glewTexCoord3sv = NULL;
  11246. PFNGLTEXCOORD4DPROC __glewTexCoord4d = NULL;
  11247. PFNGLTEXCOORD4DVPROC __glewTexCoord4dv = NULL;
  11248. PFNGLTEXCOORD4FPROC __glewTexCoord4f = NULL;
  11249. PFNGLTEXCOORD4FVPROC __glewTexCoord4fv = NULL;
  11250. PFNGLTEXCOORD4IPROC __glewTexCoord4i = NULL;
  11251. PFNGLTEXCOORD4IVPROC __glewTexCoord4iv = NULL;
  11252. PFNGLTEXCOORD4SPROC __glewTexCoord4s = NULL;
  11253. PFNGLTEXCOORD4SVPROC __glewTexCoord4sv = NULL;
  11254. PFNGLTEXCOORDPOINTERPROC __glewTexCoordPointer = NULL;
  11255. PFNGLTEXENVFPROC __glewTexEnvf = NULL;
  11256. PFNGLTEXENVFVPROC __glewTexEnvfv = NULL;
  11257. PFNGLTEXENVIPROC __glewTexEnvi = NULL;
  11258. PFNGLTEXENVIVPROC __glewTexEnviv = NULL;
  11259. PFNGLTEXGENDPROC __glewTexGend = NULL;
  11260. PFNGLTEXGENDVPROC __glewTexGendv = NULL;
  11261. PFNGLTEXGENFPROC __glewTexGenf = NULL;
  11262. PFNGLTEXGENFVPROC __glewTexGenfv = NULL;
  11263. PFNGLTEXGENIPROC __glewTexGeni = NULL;
  11264. PFNGLTEXGENIVPROC __glewTexGeniv = NULL;
  11265. PFNGLTEXIMAGE1DPROC __glewTexImage1D = NULL;
  11266. PFNGLTEXIMAGE2DPROC __glewTexImage2D = NULL;
  11267. PFNGLTEXPARAMETERFPROC __glewTexParameterf = NULL;
  11268. PFNGLTEXPARAMETERFVPROC __glewTexParameterfv = NULL;
  11269. PFNGLTEXPARAMETERIPROC __glewTexParameteri = NULL;
  11270. PFNGLTEXPARAMETERIVPROC __glewTexParameteriv = NULL;
  11271. PFNGLTEXSUBIMAGE1DPROC __glewTexSubImage1D = NULL;
  11272. PFNGLTEXSUBIMAGE2DPROC __glewTexSubImage2D = NULL;
  11273. PFNGLTRANSLATEDPROC __glewTranslated = NULL;
  11274. PFNGLTRANSLATEFPROC __glewTranslatef = NULL;
  11275. PFNGLVERTEX2DPROC __glewVertex2d = NULL;
  11276. PFNGLVERTEX2DVPROC __glewVertex2dv = NULL;
  11277. PFNGLVERTEX2FPROC __glewVertex2f = NULL;
  11278. PFNGLVERTEX2FVPROC __glewVertex2fv = NULL;
  11279. PFNGLVERTEX2IPROC __glewVertex2i = NULL;
  11280. PFNGLVERTEX2IVPROC __glewVertex2iv = NULL;
  11281. PFNGLVERTEX2SPROC __glewVertex2s = NULL;
  11282. PFNGLVERTEX2SVPROC __glewVertex2sv = NULL;
  11283. PFNGLVERTEX3DPROC __glewVertex3d = NULL;
  11284. PFNGLVERTEX3DVPROC __glewVertex3dv = NULL;
  11285. PFNGLVERTEX3FPROC __glewVertex3f = NULL;
  11286. PFNGLVERTEX3FVPROC __glewVertex3fv = NULL;
  11287. PFNGLVERTEX3IPROC __glewVertex3i = NULL;
  11288. PFNGLVERTEX3IVPROC __glewVertex3iv = NULL;
  11289. PFNGLVERTEX3SPROC __glewVertex3s = NULL;
  11290. PFNGLVERTEX3SVPROC __glewVertex3sv = NULL;
  11291. PFNGLVERTEX4DPROC __glewVertex4d = NULL;
  11292. PFNGLVERTEX4DVPROC __glewVertex4dv = NULL;
  11293. PFNGLVERTEX4FPROC __glewVertex4f = NULL;
  11294. PFNGLVERTEX4FVPROC __glewVertex4fv = NULL;
  11295. PFNGLVERTEX4IPROC __glewVertex4i = NULL;
  11296. PFNGLVERTEX4IVPROC __glewVertex4iv = NULL;
  11297. PFNGLVERTEX4SPROC __glewVertex4s = NULL;
  11298. PFNGLVERTEX4SVPROC __glewVertex4sv = NULL;
  11299. PFNGLVERTEXPOINTERPROC __glewVertexPointer = NULL;
  11300. PFNGLVIEWPORTPROC __glewViewport = NULL;
  11301. #define fqn_from_convention(convention, fqn) \
  11302. (const GLubyte*)fqn
  11303. GLboolean GLEWAPIENTRY glewOpenGL11Init(void)
  11304. {
  11305. GLboolean r = GL_FALSE;
  11306. r = ((glAccum = (PFNGLACCUMPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glAccum"))) == NULL) || r;
  11307. r = ((glAlphaFunc = (PFNGLALPHAFUNCPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glAlphaFunc"))) == NULL) || r;
  11308. r = ((glAreTexturesResident = (PFNGLARETEXTURESRESIDENTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glAreTexturesResident"))) == NULL) || r;
  11309. r = ((glArrayElement = (PFNGLARRAYELEMENTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glArrayElement"))) == NULL) || r;
  11310. r = ((glBegin = (PFNGLBEGINPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glBegin"))) == NULL) || r;
  11311. r = ((glBindTexture = (PFNGLBINDTEXTUREPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glBindTexture"))) == NULL) || r;
  11312. r = ((glBitmap = (PFNGLBITMAPPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glBitmap"))) == NULL) || r;
  11313. r = ((glBlendFunc = (PFNGLBLENDFUNCPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glBlendFunc"))) == NULL) || r;
  11314. r = ((glCallList = (PFNGLCALLLISTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCallList"))) == NULL) || r;
  11315. r = ((glCallLists = (PFNGLCALLLISTSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCallLists"))) == NULL) || r;
  11316. r = ((glClear = (PFNGLCLEARPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClear"))) == NULL) || r;
  11317. r = ((glClearAccum = (PFNGLCLEARACCUMPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClearAccum"))) == NULL) || r;
  11318. r = ((glClearColor = (PFNGLCLEARCOLORPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClearColor"))) == NULL) || r;
  11319. r = ((glClearDepth = (PFNGLCLEARDEPTHPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClearDepth"))) == NULL) || r;
  11320. r = ((glClearIndex = (PFNGLCLEARINDEXPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClearIndex"))) == NULL) || r;
  11321. r = ((glClearStencil = (PFNGLCLEARSTENCILPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClearStencil"))) == NULL) || r;
  11322. r = ((glClipPlane = (PFNGLCLIPPLANEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glClipPlane"))) == NULL) || r;
  11323. r = ((glColor3b = (PFNGLCOLOR3BPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3b"))) == NULL) || r;
  11324. r = ((glColor3bv = (PFNGLCOLOR3BVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3bv"))) == NULL) || r;
  11325. r = ((glColor3d = (PFNGLCOLOR3DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3d"))) == NULL) || r;
  11326. r = ((glColor3dv = (PFNGLCOLOR3DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3dv"))) == NULL) || r;
  11327. r = ((glColor3f = (PFNGLCOLOR3FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3f"))) == NULL) || r;
  11328. r = ((glColor3fv = (PFNGLCOLOR3FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3fv"))) == NULL) || r;
  11329. r = ((glColor3i = (PFNGLCOLOR3IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3i"))) == NULL) || r;
  11330. r = ((glColor3iv = (PFNGLCOLOR3IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3iv"))) == NULL) || r;
  11331. r = ((glColor3s = (PFNGLCOLOR3SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3s"))) == NULL) || r;
  11332. r = ((glColor3sv = (PFNGLCOLOR3SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3sv"))) == NULL) || r;
  11333. r = ((glColor3ub = (PFNGLCOLOR3UBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3ub"))) == NULL) || r;
  11334. r = ((glColor3ubv = (PFNGLCOLOR3UBVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3ubv"))) == NULL) || r;
  11335. r = ((glColor3ui = (PFNGLCOLOR3UIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3ui"))) == NULL) || r;
  11336. r = ((glColor3uiv = (PFNGLCOLOR3UIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3uiv"))) == NULL) || r;
  11337. r = ((glColor3us = (PFNGLCOLOR3USPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3us"))) == NULL) || r;
  11338. r = ((glColor3usv = (PFNGLCOLOR3USVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor3usv"))) == NULL) || r;
  11339. r = ((glColor4b = (PFNGLCOLOR4BPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4b"))) == NULL) || r;
  11340. r = ((glColor4bv = (PFNGLCOLOR4BVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4bv"))) == NULL) || r;
  11341. r = ((glColor4d = (PFNGLCOLOR4DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4d"))) == NULL) || r;
  11342. r = ((glColor4dv = (PFNGLCOLOR4DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4dv"))) == NULL) || r;
  11343. r = ((glColor4f = (PFNGLCOLOR4FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4f"))) == NULL) || r;
  11344. r = ((glColor4fv = (PFNGLCOLOR4FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4fv"))) == NULL) || r;
  11345. r = ((glColor4i = (PFNGLCOLOR4IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4i"))) == NULL) || r;
  11346. r = ((glColor4iv = (PFNGLCOLOR4IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4iv"))) == NULL) || r;
  11347. r = ((glColor4s = (PFNGLCOLOR4SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4s"))) == NULL) || r;
  11348. r = ((glColor4sv = (PFNGLCOLOR4SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4sv"))) == NULL) || r;
  11349. r = ((glColor4ub = (PFNGLCOLOR4UBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4ub"))) == NULL) || r;
  11350. r = ((glColor4ubv = (PFNGLCOLOR4UBVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4ubv"))) == NULL) || r;
  11351. r = ((glColor4ui = (PFNGLCOLOR4UIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4ui"))) == NULL) || r;
  11352. r = ((glColor4uiv = (PFNGLCOLOR4UIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4uiv"))) == NULL) || r;
  11353. r = ((glColor4us = (PFNGLCOLOR4USPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4us"))) == NULL) || r;
  11354. r = ((glColor4usv = (PFNGLCOLOR4USVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColor4usv"))) == NULL) || r;
  11355. r = ((glColorMask = (PFNGLCOLORMASKPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColorMask"))) == NULL) || r;
  11356. r = ((glColorMaterial = (PFNGLCOLORMATERIALPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColorMaterial"))) == NULL) || r;
  11357. r = ((glColorPointer = (PFNGLCOLORPOINTERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glColorPointer"))) == NULL) || r;
  11358. r = ((glCopyPixels = (PFNGLCOPYPIXELSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCopyPixels"))) == NULL) || r;
  11359. r = ((glCopyTexImage1D = (PFNGLCOPYTEXIMAGE1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCopyTexImage1D"))) == NULL) || r;
  11360. r = ((glCopyTexImage2D = (PFNGLCOPYTEXIMAGE2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCopyTexImage2D"))) == NULL) || r;
  11361. r = ((glCopyTexSubImage1D = (PFNGLCOPYTEXSUBIMAGE1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCopyTexSubImage1D"))) == NULL) || r;
  11362. r = ((glCopyTexSubImage2D = (PFNGLCOPYTEXSUBIMAGE2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCopyTexSubImage2D"))) == NULL) || r;
  11363. r = ((glCullFace = (PFNGLCULLFACEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glCullFace"))) == NULL) || r;
  11364. r = ((glDeleteLists = (PFNGLDELETELISTSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDeleteLists"))) == NULL) || r;
  11365. r = ((glDeleteTextures = (PFNGLDELETETEXTURESPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDeleteTextures"))) == NULL) || r;
  11366. r = ((glDepthFunc = (PFNGLDEPTHFUNCPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDepthFunc"))) == NULL) || r;
  11367. r = ((glDepthMask = (PFNGLDEPTHMASKPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDepthMask"))) == NULL) || r;
  11368. r = ((glDepthRange = (PFNGLDEPTHRANGEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDepthRange"))) == NULL) || r;
  11369. r = ((glDisable = (PFNGLDISABLEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDisable"))) == NULL) || r;
  11370. r = ((glDisableClientState = (PFNGLDISABLECLIENTSTATEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDisableClientState"))) == NULL) || r;
  11371. r = ((glDrawArrays = (PFNGLDRAWARRAYSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDrawArrays"))) == NULL) || r;
  11372. r = ((glDrawBuffer = (PFNGLDRAWBUFFERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDrawBuffer"))) == NULL) || r;
  11373. r = ((glDrawElements = (PFNGLDRAWELEMENTSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDrawElements"))) == NULL) || r;
  11374. r = ((glDrawPixels = (PFNGLDRAWPIXELSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glDrawPixels"))) == NULL) || r;
  11375. r = ((glEdgeFlag = (PFNGLEDGEFLAGPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEdgeFlag"))) == NULL) || r;
  11376. r = ((glEdgeFlagPointer = (PFNGLEDGEFLAGPOINTERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEdgeFlagPointer"))) == NULL) || r;
  11377. r = ((glEdgeFlagv = (PFNGLEDGEFLAGVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEdgeFlagv"))) == NULL) || r;
  11378. r = ((glEnable = (PFNGLENABLEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEnable"))) == NULL) || r;
  11379. r = ((glEnableClientState = (PFNGLENABLECLIENTSTATEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEnableClientState"))) == NULL) || r;
  11380. r = ((glEnd = (PFNGLENDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEnd"))) == NULL) || r;
  11381. r = ((glEndList = (PFNGLENDLISTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEndList"))) == NULL) || r;
  11382. r = ((glEvalCoord1d = (PFNGLEVALCOORD1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord1d"))) == NULL) || r;
  11383. r = ((glEvalCoord1dv = (PFNGLEVALCOORD1DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord1dv"))) == NULL) || r;
  11384. r = ((glEvalCoord1f = (PFNGLEVALCOORD1FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord1f"))) == NULL) || r;
  11385. r = ((glEvalCoord1fv = (PFNGLEVALCOORD1FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord1fv"))) == NULL) || r;
  11386. r = ((glEvalCoord2d = (PFNGLEVALCOORD2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord2d"))) == NULL) || r;
  11387. r = ((glEvalCoord2dv = (PFNGLEVALCOORD2DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord2dv"))) == NULL) || r;
  11388. r = ((glEvalCoord2f = (PFNGLEVALCOORD2FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord2f"))) == NULL) || r;
  11389. r = ((glEvalCoord2fv = (PFNGLEVALCOORD2FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalCoord2fv"))) == NULL) || r;
  11390. r = ((glEvalMesh1 = (PFNGLEVALMESH1PROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalMesh1"))) == NULL) || r;
  11391. r = ((glEvalMesh2 = (PFNGLEVALMESH2PROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalMesh2"))) == NULL) || r;
  11392. r = ((glEvalPoint1 = (PFNGLEVALPOINT1PROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalPoint1"))) == NULL) || r;
  11393. r = ((glEvalPoint2 = (PFNGLEVALPOINT2PROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glEvalPoint2"))) == NULL) || r;
  11394. r = ((glFeedbackBuffer = (PFNGLFEEDBACKBUFFERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFeedbackBuffer"))) == NULL) || r;
  11395. r = ((glFinish = (PFNGLFINISHPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFinish"))) == NULL) || r;
  11396. r = ((glFlush = (PFNGLFLUSHPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFlush"))) == NULL) || r;
  11397. r = ((glFogf = (PFNGLFOGFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFogf"))) == NULL) || r;
  11398. r = ((glFogfv = (PFNGLFOGFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFogfv"))) == NULL) || r;
  11399. r = ((glFogi = (PFNGLFOGIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFogi"))) == NULL) || r;
  11400. r = ((glFogiv = (PFNGLFOGIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFogiv"))) == NULL) || r;
  11401. r = ((glFrontFace = (PFNGLFRONTFACEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFrontFace"))) == NULL) || r;
  11402. r = ((glFrustum = (PFNGLFRUSTUMPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glFrustum"))) == NULL) || r;
  11403. r = ((glGenLists = (PFNGLGENLISTSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGenLists"))) == NULL) || r;
  11404. r = ((glGenTextures = (PFNGLGENTEXTURESPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGenTextures"))) == NULL) || r;
  11405. r = ((glGetBooleanv = (PFNGLGETBOOLEANVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetBooleanv"))) == NULL) || r;
  11406. r = ((glGetClipPlane = (PFNGLGETCLIPPLANEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetClipPlane"))) == NULL) || r;
  11407. r = ((glGetDoublev = (PFNGLGETDOUBLEVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetDoublev"))) == NULL) || r;
  11408. r = ((glGetError = (PFNGLGETERRORPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetError"))) == NULL) || r;
  11409. r = ((glGetFloatv = (PFNGLGETFLOATVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetFloatv"))) == NULL) || r;
  11410. r = ((glGetIntegerv = (PFNGLGETINTEGERVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetIntegerv"))) == NULL) || r;
  11411. r = ((glGetLightfv = (PFNGLGETLIGHTFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetLightfv"))) == NULL) || r;
  11412. r = ((glGetLightiv = (PFNGLGETLIGHTIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetLightiv"))) == NULL) || r;
  11413. r = ((glGetMapdv = (PFNGLGETMAPDVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetMapdv"))) == NULL) || r;
  11414. r = ((glGetMapfv = (PFNGLGETMAPFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetMapfv"))) == NULL) || r;
  11415. r = ((glGetMapiv = (PFNGLGETMAPIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetMapiv"))) == NULL) || r;
  11416. r = ((glGetMaterialfv = (PFNGLGETMATERIALFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetMaterialfv"))) == NULL) || r;
  11417. r = ((glGetMaterialiv = (PFNGLGETMATERIALIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetMaterialiv"))) == NULL) || r;
  11418. r = ((glGetPixelMapfv = (PFNGLGETPIXELMAPFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetPixelMapfv"))) == NULL) || r;
  11419. r = ((glGetPixelMapuiv = (PFNGLGETPIXELMAPUIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetPixelMapuiv"))) == NULL) || r;
  11420. r = ((glGetPixelMapusv = (PFNGLGETPIXELMAPUSVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetPixelMapusv"))) == NULL) || r;
  11421. r = ((glGetPointerv = (PFNGLGETPOINTERVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetPointerv"))) == NULL) || r;
  11422. r = ((glGetPolygonStipple = (PFNGLGETPOLYGONSTIPPLEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetPolygonStipple"))) == NULL) || r;
  11423. r = ((glGetString = (PFNGLGETSTRINGPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetString"))) == NULL) || r;
  11424. r = ((glGetTexEnvfv = (PFNGLGETTEXENVFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexEnvfv"))) == NULL) || r;
  11425. r = ((glGetTexEnviv = (PFNGLGETTEXENVIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexEnviv"))) == NULL) || r;
  11426. r = ((glGetTexGendv = (PFNGLGETTEXGENDVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexGendv"))) == NULL) || r;
  11427. r = ((glGetTexGenfv = (PFNGLGETTEXGENFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexGenfv"))) == NULL) || r;
  11428. r = ((glGetTexGeniv = (PFNGLGETTEXGENIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexGeniv"))) == NULL) || r;
  11429. r = ((glGetTexImage = (PFNGLGETTEXIMAGEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexImage"))) == NULL) || r;
  11430. r = ((glGetTexLevelParameterfv = (PFNGLGETTEXLEVELPARAMETERFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexLevelParameterfv"))) == NULL) || r;
  11431. r = ((glGetTexLevelParameteriv = (PFNGLGETTEXLEVELPARAMETERIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexLevelParameteriv"))) == NULL) || r;
  11432. r = ((glGetTexParameterfv = (PFNGLGETTEXPARAMETERFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexParameterfv"))) == NULL) || r;
  11433. r = ((glGetTexParameteriv = (PFNGLGETTEXPARAMETERIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glGetTexParameteriv"))) == NULL) || r;
  11434. r = ((glHint = (PFNGLHINTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glHint"))) == NULL) || r;
  11435. r = ((glIndexMask = (PFNGLINDEXMASKPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexMask"))) == NULL) || r;
  11436. r = ((glIndexPointer = (PFNGLINDEXPOINTERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexPointer"))) == NULL) || r;
  11437. r = ((glIndexd = (PFNGLINDEXDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexd"))) == NULL) || r;
  11438. r = ((glIndexdv = (PFNGLINDEXDVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexdv"))) == NULL) || r;
  11439. r = ((glIndexf = (PFNGLINDEXFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexf"))) == NULL) || r;
  11440. r = ((glIndexfv = (PFNGLINDEXFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexfv"))) == NULL) || r;
  11441. r = ((glIndexi = (PFNGLINDEXIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexi"))) == NULL) || r;
  11442. r = ((glIndexiv = (PFNGLINDEXIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexiv"))) == NULL) || r;
  11443. r = ((glIndexs = (PFNGLINDEXSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexs"))) == NULL) || r;
  11444. r = ((glIndexsv = (PFNGLINDEXSVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexsv"))) == NULL) || r;
  11445. r = ((glIndexub = (PFNGLINDEXUBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexub"))) == NULL) || r;
  11446. r = ((glIndexubv = (PFNGLINDEXUBVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIndexubv"))) == NULL) || r;
  11447. r = ((glInitNames = (PFNGLINITNAMESPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glInitNames"))) == NULL) || r;
  11448. r = ((glInterleavedArrays = (PFNGLINTERLEAVEDARRAYSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glInterleavedArrays"))) == NULL) || r;
  11449. r = ((glIsEnabled = (PFNGLISENABLEDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIsEnabled"))) == NULL) || r;
  11450. r = ((glIsList = (PFNGLISLISTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIsList"))) == NULL) || r;
  11451. r = ((glIsTexture = (PFNGLISTEXTUREPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glIsTexture"))) == NULL) || r;
  11452. r = ((glLightModelf = (PFNGLLIGHTMODELFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightModelf"))) == NULL) || r;
  11453. r = ((glLightModelfv = (PFNGLLIGHTMODELFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightModelfv"))) == NULL) || r;
  11454. r = ((glLightModeli = (PFNGLLIGHTMODELIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightModeli"))) == NULL) || r;
  11455. r = ((glLightModeliv = (PFNGLLIGHTMODELIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightModeliv"))) == NULL) || r;
  11456. r = ((glLightf = (PFNGLLIGHTFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightf"))) == NULL) || r;
  11457. r = ((glLightfv = (PFNGLLIGHTFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightfv"))) == NULL) || r;
  11458. r = ((glLighti = (PFNGLLIGHTIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLighti"))) == NULL) || r;
  11459. r = ((glLightiv = (PFNGLLIGHTIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLightiv"))) == NULL) || r;
  11460. r = ((glLineStipple = (PFNGLLINESTIPPLEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLineStipple"))) == NULL) || r;
  11461. r = ((glLineWidth = (PFNGLLINEWIDTHPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLineWidth"))) == NULL) || r;
  11462. r = ((glListBase = (PFNGLLISTBASEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glListBase"))) == NULL) || r;
  11463. r = ((glLoadIdentity = (PFNGLLOADIDENTITYPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLoadIdentity"))) == NULL) || r;
  11464. r = ((glLoadMatrixd = (PFNGLLOADMATRIXDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLoadMatrixd"))) == NULL) || r;
  11465. r = ((glLoadMatrixf = (PFNGLLOADMATRIXFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLoadMatrixf"))) == NULL) || r;
  11466. r = ((glLoadName = (PFNGLLOADNAMEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLoadName"))) == NULL) || r;
  11467. r = ((glLogicOp = (PFNGLLOGICOPPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glLogicOp"))) == NULL) || r;
  11468. r = ((glMap1d = (PFNGLMAP1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMap1d"))) == NULL) || r;
  11469. r = ((glMap1f = (PFNGLMAP1FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMap1f"))) == NULL) || r;
  11470. r = ((glMap2d = (PFNGLMAP2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMap2d"))) == NULL) || r;
  11471. r = ((glMap2f = (PFNGLMAP2FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMap2f"))) == NULL) || r;
  11472. r = ((glMapGrid1d = (PFNGLMAPGRID1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMapGrid1d"))) == NULL) || r;
  11473. r = ((glMapGrid1f = (PFNGLMAPGRID1FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMapGrid1f"))) == NULL) || r;
  11474. r = ((glMapGrid2d = (PFNGLMAPGRID2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMapGrid2d"))) == NULL) || r;
  11475. r = ((glMapGrid2f = (PFNGLMAPGRID2FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMapGrid2f"))) == NULL) || r;
  11476. r = ((glMaterialf = (PFNGLMATERIALFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMaterialf"))) == NULL) || r;
  11477. r = ((glMaterialfv = (PFNGLMATERIALFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMaterialfv"))) == NULL) || r;
  11478. r = ((glMateriali = (PFNGLMATERIALIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMateriali"))) == NULL) || r;
  11479. r = ((glMaterialiv = (PFNGLMATERIALIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMaterialiv"))) == NULL) || r;
  11480. r = ((glMatrixMode = (PFNGLMATRIXMODEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMatrixMode"))) == NULL) || r;
  11481. r = ((glMultMatrixd = (PFNGLMULTMATRIXDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMultMatrixd"))) == NULL) || r;
  11482. r = ((glMultMatrixf = (PFNGLMULTMATRIXFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glMultMatrixf"))) == NULL) || r;
  11483. r = ((glNewList = (PFNGLNEWLISTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNewList"))) == NULL) || r;
  11484. r = ((glNormal3b = (PFNGLNORMAL3BPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3b"))) == NULL) || r;
  11485. r = ((glNormal3bv = (PFNGLNORMAL3BVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3bv"))) == NULL) || r;
  11486. r = ((glNormal3d = (PFNGLNORMAL3DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3d"))) == NULL) || r;
  11487. r = ((glNormal3dv = (PFNGLNORMAL3DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3dv"))) == NULL) || r;
  11488. r = ((glNormal3f = (PFNGLNORMAL3FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3f"))) == NULL) || r;
  11489. r = ((glNormal3fv = (PFNGLNORMAL3FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3fv"))) == NULL) || r;
  11490. r = ((glNormal3i = (PFNGLNORMAL3IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3i"))) == NULL) || r;
  11491. r = ((glNormal3iv = (PFNGLNORMAL3IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3iv"))) == NULL) || r;
  11492. r = ((glNormal3s = (PFNGLNORMAL3SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3s"))) == NULL) || r;
  11493. r = ((glNormal3sv = (PFNGLNORMAL3SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormal3sv"))) == NULL) || r;
  11494. r = ((glNormalPointer = (PFNGLNORMALPOINTERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glNormalPointer"))) == NULL) || r;
  11495. r = ((glOrtho = (PFNGLORTHOPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glOrtho"))) == NULL) || r;
  11496. r = ((glPassThrough = (PFNGLPASSTHROUGHPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPassThrough"))) == NULL) || r;
  11497. r = ((glPixelMapfv = (PFNGLPIXELMAPFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelMapfv"))) == NULL) || r;
  11498. r = ((glPixelMapuiv = (PFNGLPIXELMAPUIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelMapuiv"))) == NULL) || r;
  11499. r = ((glPixelMapusv = (PFNGLPIXELMAPUSVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelMapusv"))) == NULL) || r;
  11500. r = ((glPixelStoref = (PFNGLPIXELSTOREFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelStoref"))) == NULL) || r;
  11501. r = ((glPixelStorei = (PFNGLPIXELSTOREIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelStorei"))) == NULL) || r;
  11502. r = ((glPixelTransferf = (PFNGLPIXELTRANSFERFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelTransferf"))) == NULL) || r;
  11503. r = ((glPixelTransferi = (PFNGLPIXELTRANSFERIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelTransferi"))) == NULL) || r;
  11504. r = ((glPixelZoom = (PFNGLPIXELZOOMPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPixelZoom"))) == NULL) || r;
  11505. r = ((glPointSize = (PFNGLPOINTSIZEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPointSize"))) == NULL) || r;
  11506. r = ((glPolygonMode = (PFNGLPOLYGONMODEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPolygonMode"))) == NULL) || r;
  11507. r = ((glPolygonOffset = (PFNGLPOLYGONOFFSETPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPolygonOffset"))) == NULL) || r;
  11508. r = ((glPolygonStipple = (PFNGLPOLYGONSTIPPLEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPolygonStipple"))) == NULL) || r;
  11509. r = ((glPopAttrib = (PFNGLPOPATTRIBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPopAttrib"))) == NULL) || r;
  11510. r = ((glPopClientAttrib = (PFNGLPOPCLIENTATTRIBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPopClientAttrib"))) == NULL) || r;
  11511. r = ((glPopMatrix = (PFNGLPOPMATRIXPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPopMatrix"))) == NULL) || r;
  11512. r = ((glPopName = (PFNGLPOPNAMEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPopName"))) == NULL) || r;
  11513. r = ((glPrioritizeTextures = (PFNGLPRIORITIZETEXTURESPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPrioritizeTextures"))) == NULL) || r;
  11514. r = ((glPushAttrib = (PFNGLPUSHATTRIBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPushAttrib"))) == NULL) || r;
  11515. r = ((glPushClientAttrib = (PFNGLPUSHCLIENTATTRIBPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPushClientAttrib"))) == NULL) || r;
  11516. r = ((glPushMatrix = (PFNGLPUSHMATRIXPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPushMatrix"))) == NULL) || r;
  11517. r = ((glPushName = (PFNGLPUSHNAMEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glPushName"))) == NULL) || r;
  11518. r = ((glRasterPos2d = (PFNGLRASTERPOS2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2d"))) == NULL) || r;
  11519. r = ((glRasterPos2dv = (PFNGLRASTERPOS2DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2dv"))) == NULL) || r;
  11520. r = ((glRasterPos2f = (PFNGLRASTERPOS2FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2f"))) == NULL) || r;
  11521. r = ((glRasterPos2fv = (PFNGLRASTERPOS2FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2fv"))) == NULL) || r;
  11522. r = ((glRasterPos2i = (PFNGLRASTERPOS2IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2i"))) == NULL) || r;
  11523. r = ((glRasterPos2iv = (PFNGLRASTERPOS2IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2iv"))) == NULL) || r;
  11524. r = ((glRasterPos2s = (PFNGLRASTERPOS2SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2s"))) == NULL) || r;
  11525. r = ((glRasterPos2sv = (PFNGLRASTERPOS2SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos2sv"))) == NULL) || r;
  11526. r = ((glRasterPos3d = (PFNGLRASTERPOS3DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3d"))) == NULL) || r;
  11527. r = ((glRasterPos3dv = (PFNGLRASTERPOS3DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3dv"))) == NULL) || r;
  11528. r = ((glRasterPos3f = (PFNGLRASTERPOS3FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3f"))) == NULL) || r;
  11529. r = ((glRasterPos3fv = (PFNGLRASTERPOS3FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3fv"))) == NULL) || r;
  11530. r = ((glRasterPos3i = (PFNGLRASTERPOS3IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3i"))) == NULL) || r;
  11531. r = ((glRasterPos3iv = (PFNGLRASTERPOS3IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3iv"))) == NULL) || r;
  11532. r = ((glRasterPos3s = (PFNGLRASTERPOS3SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3s"))) == NULL) || r;
  11533. r = ((glRasterPos3sv = (PFNGLRASTERPOS3SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos3sv"))) == NULL) || r;
  11534. r = ((glRasterPos4d = (PFNGLRASTERPOS4DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4d"))) == NULL) || r;
  11535. r = ((glRasterPos4dv = (PFNGLRASTERPOS4DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4dv"))) == NULL) || r;
  11536. r = ((glRasterPos4f = (PFNGLRASTERPOS4FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4f"))) == NULL) || r;
  11537. r = ((glRasterPos4fv = (PFNGLRASTERPOS4FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4fv"))) == NULL) || r;
  11538. r = ((glRasterPos4i = (PFNGLRASTERPOS4IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4i"))) == NULL) || r;
  11539. r = ((glRasterPos4iv = (PFNGLRASTERPOS4IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4iv"))) == NULL) || r;
  11540. r = ((glRasterPos4s = (PFNGLRASTERPOS4SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4s"))) == NULL) || r;
  11541. r = ((glRasterPos4sv = (PFNGLRASTERPOS4SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRasterPos4sv"))) == NULL) || r;
  11542. r = ((glReadBuffer = (PFNGLREADBUFFERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glReadBuffer"))) == NULL) || r;
  11543. r = ((glReadPixels = (PFNGLREADPIXELSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glReadPixels"))) == NULL) || r;
  11544. r = ((glRectd = (PFNGLRECTDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRectd"))) == NULL) || r;
  11545. r = ((glRectdv = (PFNGLRECTDVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRectdv"))) == NULL) || r;
  11546. r = ((glRectf = (PFNGLRECTFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRectf"))) == NULL) || r;
  11547. r = ((glRectfv = (PFNGLRECTFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRectfv"))) == NULL) || r;
  11548. r = ((glRecti = (PFNGLRECTIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRecti"))) == NULL) || r;
  11549. r = ((glRectiv = (PFNGLRECTIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRectiv"))) == NULL) || r;
  11550. r = ((glRects = (PFNGLRECTSPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRects"))) == NULL) || r;
  11551. r = ((glRectsv = (PFNGLRECTSVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRectsv"))) == NULL) || r;
  11552. r = ((glRenderMode = (PFNGLRENDERMODEPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRenderMode"))) == NULL) || r;
  11553. r = ((glRotated = (PFNGLROTATEDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRotated"))) == NULL) || r;
  11554. r = ((glRotatef = (PFNGLROTATEFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glRotatef"))) == NULL) || r;
  11555. r = ((glScaled = (PFNGLSCALEDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glScaled"))) == NULL) || r;
  11556. r = ((glScalef = (PFNGLSCALEFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glScalef"))) == NULL) || r;
  11557. r = ((glScissor = (PFNGLSCISSORPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glScissor"))) == NULL) || r;
  11558. r = ((glSelectBuffer = (PFNGLSELECTBUFFERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glSelectBuffer"))) == NULL) || r;
  11559. r = ((glShadeModel = (PFNGLSHADEMODELPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glShadeModel"))) == NULL) || r;
  11560. r = ((glStencilFunc = (PFNGLSTENCILFUNCPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glStencilFunc"))) == NULL) || r;
  11561. r = ((glStencilMask = (PFNGLSTENCILMASKPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glStencilMask"))) == NULL) || r;
  11562. r = ((glStencilOp = (PFNGLSTENCILOPPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glStencilOp"))) == NULL) || r;
  11563. r = ((glTexCoord1d = (PFNGLTEXCOORD1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1d"))) == NULL) || r;
  11564. r = ((glTexCoord1dv = (PFNGLTEXCOORD1DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1dv"))) == NULL) || r;
  11565. r = ((glTexCoord1f = (PFNGLTEXCOORD1FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1f"))) == NULL) || r;
  11566. r = ((glTexCoord1fv = (PFNGLTEXCOORD1FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1fv"))) == NULL) || r;
  11567. r = ((glTexCoord1i = (PFNGLTEXCOORD1IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1i"))) == NULL) || r;
  11568. r = ((glTexCoord1iv = (PFNGLTEXCOORD1IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1iv"))) == NULL) || r;
  11569. r = ((glTexCoord1s = (PFNGLTEXCOORD1SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1s"))) == NULL) || r;
  11570. r = ((glTexCoord1sv = (PFNGLTEXCOORD1SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord1sv"))) == NULL) || r;
  11571. r = ((glTexCoord2d = (PFNGLTEXCOORD2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2d"))) == NULL) || r;
  11572. r = ((glTexCoord2dv = (PFNGLTEXCOORD2DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2dv"))) == NULL) || r;
  11573. r = ((glTexCoord2f = (PFNGLTEXCOORD2FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2f"))) == NULL) || r;
  11574. r = ((glTexCoord2fv = (PFNGLTEXCOORD2FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2fv"))) == NULL) || r;
  11575. r = ((glTexCoord2i = (PFNGLTEXCOORD2IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2i"))) == NULL) || r;
  11576. r = ((glTexCoord2iv = (PFNGLTEXCOORD2IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2iv"))) == NULL) || r;
  11577. r = ((glTexCoord2s = (PFNGLTEXCOORD2SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2s"))) == NULL) || r;
  11578. r = ((glTexCoord2sv = (PFNGLTEXCOORD2SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord2sv"))) == NULL) || r;
  11579. r = ((glTexCoord3d = (PFNGLTEXCOORD3DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3d"))) == NULL) || r;
  11580. r = ((glTexCoord3dv = (PFNGLTEXCOORD3DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3dv"))) == NULL) || r;
  11581. r = ((glTexCoord3f = (PFNGLTEXCOORD3FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3f"))) == NULL) || r;
  11582. r = ((glTexCoord3fv = (PFNGLTEXCOORD3FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3fv"))) == NULL) || r;
  11583. r = ((glTexCoord3i = (PFNGLTEXCOORD3IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3i"))) == NULL) || r;
  11584. r = ((glTexCoord3iv = (PFNGLTEXCOORD3IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3iv"))) == NULL) || r;
  11585. r = ((glTexCoord3s = (PFNGLTEXCOORD3SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3s"))) == NULL) || r;
  11586. r = ((glTexCoord3sv = (PFNGLTEXCOORD3SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord3sv"))) == NULL) || r;
  11587. r = ((glTexCoord4d = (PFNGLTEXCOORD4DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4d"))) == NULL) || r;
  11588. r = ((glTexCoord4dv = (PFNGLTEXCOORD4DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4dv"))) == NULL) || r;
  11589. r = ((glTexCoord4f = (PFNGLTEXCOORD4FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4f"))) == NULL) || r;
  11590. r = ((glTexCoord4fv = (PFNGLTEXCOORD4FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4fv"))) == NULL) || r;
  11591. r = ((glTexCoord4i = (PFNGLTEXCOORD4IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4i"))) == NULL) || r;
  11592. r = ((glTexCoord4iv = (PFNGLTEXCOORD4IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4iv"))) == NULL) || r;
  11593. r = ((glTexCoord4s = (PFNGLTEXCOORD4SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4s"))) == NULL) || r;
  11594. r = ((glTexCoord4sv = (PFNGLTEXCOORD4SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoord4sv"))) == NULL) || r;
  11595. r = ((glTexCoordPointer = (PFNGLTEXCOORDPOINTERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexCoordPointer"))) == NULL) || r;
  11596. r = ((glTexEnvf = (PFNGLTEXENVFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexEnvf"))) == NULL) || r;
  11597. r = ((glTexEnvfv = (PFNGLTEXENVFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexEnvfv"))) == NULL) || r;
  11598. r = ((glTexEnvi = (PFNGLTEXENVIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexEnvi"))) == NULL) || r;
  11599. r = ((glTexEnviv = (PFNGLTEXENVIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexEnviv"))) == NULL) || r;
  11600. r = ((glTexGend = (PFNGLTEXGENDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexGend"))) == NULL) || r;
  11601. r = ((glTexGendv = (PFNGLTEXGENDVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexGendv"))) == NULL) || r;
  11602. r = ((glTexGenf = (PFNGLTEXGENFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexGenf"))) == NULL) || r;
  11603. r = ((glTexGenfv = (PFNGLTEXGENFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexGenfv"))) == NULL) || r;
  11604. r = ((glTexGeni = (PFNGLTEXGENIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexGeni"))) == NULL) || r;
  11605. r = ((glTexGeniv = (PFNGLTEXGENIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexGeniv"))) == NULL) || r;
  11606. r = ((glTexImage1D = (PFNGLTEXIMAGE1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexImage1D"))) == NULL) || r;
  11607. r = ((glTexImage2D = (PFNGLTEXIMAGE2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexImage2D"))) == NULL) || r;
  11608. r = ((glTexParameterf = (PFNGLTEXPARAMETERFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexParameterf"))) == NULL) || r;
  11609. r = ((glTexParameterfv = (PFNGLTEXPARAMETERFVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexParameterfv"))) == NULL) || r;
  11610. r = ((glTexParameteri = (PFNGLTEXPARAMETERIPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexParameteri"))) == NULL) || r;
  11611. r = ((glTexParameteriv = (PFNGLTEXPARAMETERIVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexParameteriv"))) == NULL) || r;
  11612. r = ((glTexSubImage1D = (PFNGLTEXSUBIMAGE1DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexSubImage1D"))) == NULL) || r;
  11613. r = ((glTexSubImage2D = (PFNGLTEXSUBIMAGE2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTexSubImage2D"))) == NULL) || r;
  11614. r = ((glTranslated = (PFNGLTRANSLATEDPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTranslated"))) == NULL) || r;
  11615. r = ((glTranslatef = (PFNGLTRANSLATEFPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glTranslatef"))) == NULL) || r;
  11616. r = ((glVertex2d = (PFNGLVERTEX2DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2d"))) == NULL) || r;
  11617. r = ((glVertex2dv = (PFNGLVERTEX2DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2dv"))) == NULL) || r;
  11618. r = ((glVertex2f = (PFNGLVERTEX2FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2f"))) == NULL) || r;
  11619. r = ((glVertex2fv = (PFNGLVERTEX2FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2fv"))) == NULL) || r;
  11620. r = ((glVertex2i = (PFNGLVERTEX2IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2i"))) == NULL) || r;
  11621. r = ((glVertex2iv = (PFNGLVERTEX2IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2iv"))) == NULL) || r;
  11622. r = ((glVertex2s = (PFNGLVERTEX2SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2s"))) == NULL) || r;
  11623. r = ((glVertex2sv = (PFNGLVERTEX2SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex2sv"))) == NULL) || r;
  11624. r = ((glVertex3d = (PFNGLVERTEX3DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3d"))) == NULL) || r;
  11625. r = ((glVertex3dv = (PFNGLVERTEX3DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3dv"))) == NULL) || r;
  11626. r = ((glVertex3f = (PFNGLVERTEX3FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3f"))) == NULL) || r;
  11627. r = ((glVertex3fv = (PFNGLVERTEX3FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3fv"))) == NULL) || r;
  11628. r = ((glVertex3i = (PFNGLVERTEX3IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3i"))) == NULL) || r;
  11629. r = ((glVertex3iv = (PFNGLVERTEX3IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3iv"))) == NULL) || r;
  11630. r = ((glVertex3s = (PFNGLVERTEX3SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3s"))) == NULL) || r;
  11631. r = ((glVertex3sv = (PFNGLVERTEX3SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex3sv"))) == NULL) || r;
  11632. r = ((glVertex4d = (PFNGLVERTEX4DPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4d"))) == NULL) || r;
  11633. r = ((glVertex4dv = (PFNGLVERTEX4DVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4dv"))) == NULL) || r;
  11634. r = ((glVertex4f = (PFNGLVERTEX4FPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4f"))) == NULL) || r;
  11635. r = ((glVertex4fv = (PFNGLVERTEX4FVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4fv"))) == NULL) || r;
  11636. r = ((glVertex4i = (PFNGLVERTEX4IPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4i"))) == NULL) || r;
  11637. r = ((glVertex4iv = (PFNGLVERTEX4IVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4iv"))) == NULL) || r;
  11638. r = ((glVertex4s = (PFNGLVERTEX4SPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4s"))) == NULL) || r;
  11639. r = ((glVertex4sv = (PFNGLVERTEX4SVPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertex4sv"))) == NULL) || r;
  11640. r = ((glVertexPointer = (PFNGLVERTEXPOINTERPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glVertexPointer"))) == NULL) || r;
  11641. r = ((glViewport = (PFNGLVIEWPORTPROC)glewGetProcAddress(fqn_from_convention(glew_convention, "glViewport"))) == NULL) || r;
  11642. if (r==0)
  11643. {
  11644. printf("glewOpenGL11Init dynamically loaded using dlopen/dlsym OK\n");
  11645. }
  11646. return r;
  11647. }
  11648. #endif //GLEW_INIT_OPENGL11_FUNCTIONS
  11649. GLenum GLEWAPIENTRY glewInit (void)
  11650. {
  11651. GLenum r;
  11652. r = glewContextInit();
  11653. if ( r != 0 ) return r;
  11654. #if defined(_WIN32)
  11655. return wglewContextInit();
  11656. #elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX)) /* _UNIX */
  11657. return glxewContextInit();
  11658. #else
  11659. return r;
  11660. #endif /* _WIN32 */
  11661. }
  11662. #endif /* !GLEW_MX */
  11663. #ifdef GLEW_MX
  11664. GLboolean GLEWAPIENTRY glewContextIsSupported (const GLEWContext* ctx, const char* name)
  11665. #else
  11666. GLboolean GLEWAPIENTRY glewIsSupported (const char* name)
  11667. #endif
  11668. {
  11669. GLubyte* pos = (GLubyte*)name;
  11670. GLuint len = _glewStrLen(pos);
  11671. GLboolean ret = GL_TRUE;
  11672. while (ret && len > 0)
  11673. {
  11674. if (_glewStrSame1(&pos, &len, (const GLubyte*)"GL_", 3))
  11675. {
  11676. if (_glewStrSame2(&pos, &len, (const GLubyte*)"VERSION_", 8))
  11677. {
  11678. #ifdef GL_VERSION_1_2
  11679. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_2", 3))
  11680. {
  11681. ret = GLEW_VERSION_1_2;
  11682. continue;
  11683. }
  11684. #endif
  11685. #ifdef GL_VERSION_1_2_1
  11686. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_2_1", 5))
  11687. {
  11688. ret = GLEW_VERSION_1_2_1;
  11689. continue;
  11690. }
  11691. #endif
  11692. #ifdef GL_VERSION_1_3
  11693. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_3", 3))
  11694. {
  11695. ret = GLEW_VERSION_1_3;
  11696. continue;
  11697. }
  11698. #endif
  11699. #ifdef GL_VERSION_1_4
  11700. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_4", 3))
  11701. {
  11702. ret = GLEW_VERSION_1_4;
  11703. continue;
  11704. }
  11705. #endif
  11706. #ifdef GL_VERSION_1_5
  11707. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_5", 3))
  11708. {
  11709. ret = GLEW_VERSION_1_5;
  11710. continue;
  11711. }
  11712. #endif
  11713. #ifdef GL_VERSION_2_0
  11714. if (_glewStrSame3(&pos, &len, (const GLubyte*)"2_0", 3))
  11715. {
  11716. ret = GLEW_VERSION_2_0;
  11717. continue;
  11718. }
  11719. #endif
  11720. #ifdef GL_VERSION_2_1
  11721. if (_glewStrSame3(&pos, &len, (const GLubyte*)"2_1", 3))
  11722. {
  11723. ret = GLEW_VERSION_2_1;
  11724. continue;
  11725. }
  11726. #endif
  11727. #ifdef GL_VERSION_3_0
  11728. if (_glewStrSame3(&pos, &len, (const GLubyte*)"3_0", 3))
  11729. {
  11730. ret = GLEW_VERSION_3_0;
  11731. continue;
  11732. }
  11733. #endif
  11734. #ifdef GL_VERSION_3_1
  11735. if (_glewStrSame3(&pos, &len, (const GLubyte*)"3_1", 3))
  11736. {
  11737. ret = GLEW_VERSION_3_1;
  11738. continue;
  11739. }
  11740. #endif
  11741. #ifdef GL_VERSION_3_2
  11742. if (_glewStrSame3(&pos, &len, (const GLubyte*)"3_2", 3))
  11743. {
  11744. ret = GLEW_VERSION_3_2;
  11745. continue;
  11746. }
  11747. #endif
  11748. #ifdef GL_VERSION_3_3
  11749. if (_glewStrSame3(&pos, &len, (const GLubyte*)"3_3", 3))
  11750. {
  11751. ret = GLEW_VERSION_3_3;
  11752. continue;
  11753. }
  11754. #endif
  11755. #ifdef GL_VERSION_4_0
  11756. if (_glewStrSame3(&pos, &len, (const GLubyte*)"4_0", 3))
  11757. {
  11758. ret = GLEW_VERSION_4_0;
  11759. continue;
  11760. }
  11761. #endif
  11762. #ifdef GL_VERSION_4_1
  11763. if (_glewStrSame3(&pos, &len, (const GLubyte*)"4_1", 3))
  11764. {
  11765. ret = GLEW_VERSION_4_1;
  11766. continue;
  11767. }
  11768. #endif
  11769. #ifdef GL_VERSION_4_2
  11770. if (_glewStrSame3(&pos, &len, (const GLubyte*)"4_2", 3))
  11771. {
  11772. ret = GLEW_VERSION_4_2;
  11773. continue;
  11774. }
  11775. #endif
  11776. #ifdef GL_VERSION_4_3
  11777. if (_glewStrSame3(&pos, &len, (const GLubyte*)"4_3", 3))
  11778. {
  11779. ret = GLEW_VERSION_4_3;
  11780. continue;
  11781. }
  11782. #endif
  11783. #ifdef GL_VERSION_4_4
  11784. if (_glewStrSame3(&pos, &len, (const GLubyte*)"4_4", 3))
  11785. {
  11786. ret = GLEW_VERSION_4_4;
  11787. continue;
  11788. }
  11789. #endif
  11790. }
  11791. if (_glewStrSame2(&pos, &len, (const GLubyte*)"3DFX_", 5))
  11792. {
  11793. #ifdef GL_3DFX_multisample
  11794. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  11795. {
  11796. ret = GLEW_3DFX_multisample;
  11797. continue;
  11798. }
  11799. #endif
  11800. #ifdef GL_3DFX_tbuffer
  11801. if (_glewStrSame3(&pos, &len, (const GLubyte*)"tbuffer", 7))
  11802. {
  11803. ret = GLEW_3DFX_tbuffer;
  11804. continue;
  11805. }
  11806. #endif
  11807. #ifdef GL_3DFX_texture_compression_FXT1
  11808. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_FXT1", 24))
  11809. {
  11810. ret = GLEW_3DFX_texture_compression_FXT1;
  11811. continue;
  11812. }
  11813. #endif
  11814. }
  11815. if (_glewStrSame2(&pos, &len, (const GLubyte*)"AMD_", 4))
  11816. {
  11817. #ifdef GL_AMD_blend_minmax_factor
  11818. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_minmax_factor", 19))
  11819. {
  11820. ret = GLEW_AMD_blend_minmax_factor;
  11821. continue;
  11822. }
  11823. #endif
  11824. #ifdef GL_AMD_conservative_depth
  11825. if (_glewStrSame3(&pos, &len, (const GLubyte*)"conservative_depth", 18))
  11826. {
  11827. ret = GLEW_AMD_conservative_depth;
  11828. continue;
  11829. }
  11830. #endif
  11831. #ifdef GL_AMD_debug_output
  11832. if (_glewStrSame3(&pos, &len, (const GLubyte*)"debug_output", 12))
  11833. {
  11834. ret = GLEW_AMD_debug_output;
  11835. continue;
  11836. }
  11837. #endif
  11838. #ifdef GL_AMD_depth_clamp_separate
  11839. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_clamp_separate", 20))
  11840. {
  11841. ret = GLEW_AMD_depth_clamp_separate;
  11842. continue;
  11843. }
  11844. #endif
  11845. #ifdef GL_AMD_draw_buffers_blend
  11846. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_buffers_blend", 18))
  11847. {
  11848. ret = GLEW_AMD_draw_buffers_blend;
  11849. continue;
  11850. }
  11851. #endif
  11852. #ifdef GL_AMD_interleaved_elements
  11853. if (_glewStrSame3(&pos, &len, (const GLubyte*)"interleaved_elements", 20))
  11854. {
  11855. ret = GLEW_AMD_interleaved_elements;
  11856. continue;
  11857. }
  11858. #endif
  11859. #ifdef GL_AMD_multi_draw_indirect
  11860. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multi_draw_indirect", 19))
  11861. {
  11862. ret = GLEW_AMD_multi_draw_indirect;
  11863. continue;
  11864. }
  11865. #endif
  11866. #ifdef GL_AMD_name_gen_delete
  11867. if (_glewStrSame3(&pos, &len, (const GLubyte*)"name_gen_delete", 15))
  11868. {
  11869. ret = GLEW_AMD_name_gen_delete;
  11870. continue;
  11871. }
  11872. #endif
  11873. #ifdef GL_AMD_performance_monitor
  11874. if (_glewStrSame3(&pos, &len, (const GLubyte*)"performance_monitor", 19))
  11875. {
  11876. ret = GLEW_AMD_performance_monitor;
  11877. continue;
  11878. }
  11879. #endif
  11880. #ifdef GL_AMD_pinned_memory
  11881. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pinned_memory", 13))
  11882. {
  11883. ret = GLEW_AMD_pinned_memory;
  11884. continue;
  11885. }
  11886. #endif
  11887. #ifdef GL_AMD_query_buffer_object
  11888. if (_glewStrSame3(&pos, &len, (const GLubyte*)"query_buffer_object", 19))
  11889. {
  11890. ret = GLEW_AMD_query_buffer_object;
  11891. continue;
  11892. }
  11893. #endif
  11894. #ifdef GL_AMD_sample_positions
  11895. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sample_positions", 16))
  11896. {
  11897. ret = GLEW_AMD_sample_positions;
  11898. continue;
  11899. }
  11900. #endif
  11901. #ifdef GL_AMD_seamless_cubemap_per_texture
  11902. if (_glewStrSame3(&pos, &len, (const GLubyte*)"seamless_cubemap_per_texture", 28))
  11903. {
  11904. ret = GLEW_AMD_seamless_cubemap_per_texture;
  11905. continue;
  11906. }
  11907. #endif
  11908. #ifdef GL_AMD_shader_stencil_export
  11909. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_stencil_export", 21))
  11910. {
  11911. ret = GLEW_AMD_shader_stencil_export;
  11912. continue;
  11913. }
  11914. #endif
  11915. #ifdef GL_AMD_shader_trinary_minmax
  11916. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_trinary_minmax", 21))
  11917. {
  11918. ret = GLEW_AMD_shader_trinary_minmax;
  11919. continue;
  11920. }
  11921. #endif
  11922. #ifdef GL_AMD_sparse_texture
  11923. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sparse_texture", 14))
  11924. {
  11925. ret = GLEW_AMD_sparse_texture;
  11926. continue;
  11927. }
  11928. #endif
  11929. #ifdef GL_AMD_stencil_operation_extended
  11930. if (_glewStrSame3(&pos, &len, (const GLubyte*)"stencil_operation_extended", 26))
  11931. {
  11932. ret = GLEW_AMD_stencil_operation_extended;
  11933. continue;
  11934. }
  11935. #endif
  11936. #ifdef GL_AMD_texture_texture4
  11937. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_texture4", 16))
  11938. {
  11939. ret = GLEW_AMD_texture_texture4;
  11940. continue;
  11941. }
  11942. #endif
  11943. #ifdef GL_AMD_transform_feedback3_lines_triangles
  11944. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback3_lines_triangles", 35))
  11945. {
  11946. ret = GLEW_AMD_transform_feedback3_lines_triangles;
  11947. continue;
  11948. }
  11949. #endif
  11950. #ifdef GL_AMD_vertex_shader_layer
  11951. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_shader_layer", 19))
  11952. {
  11953. ret = GLEW_AMD_vertex_shader_layer;
  11954. continue;
  11955. }
  11956. #endif
  11957. #ifdef GL_AMD_vertex_shader_tessellator
  11958. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_shader_tessellator", 25))
  11959. {
  11960. ret = GLEW_AMD_vertex_shader_tessellator;
  11961. continue;
  11962. }
  11963. #endif
  11964. #ifdef GL_AMD_vertex_shader_viewport_index
  11965. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_shader_viewport_index", 28))
  11966. {
  11967. ret = GLEW_AMD_vertex_shader_viewport_index;
  11968. continue;
  11969. }
  11970. #endif
  11971. }
  11972. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ANGLE_", 6))
  11973. {
  11974. #ifdef GL_ANGLE_depth_texture
  11975. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_texture", 13))
  11976. {
  11977. ret = GLEW_ANGLE_depth_texture;
  11978. continue;
  11979. }
  11980. #endif
  11981. #ifdef GL_ANGLE_framebuffer_blit
  11982. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_blit", 16))
  11983. {
  11984. ret = GLEW_ANGLE_framebuffer_blit;
  11985. continue;
  11986. }
  11987. #endif
  11988. #ifdef GL_ANGLE_framebuffer_multisample
  11989. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_multisample", 23))
  11990. {
  11991. ret = GLEW_ANGLE_framebuffer_multisample;
  11992. continue;
  11993. }
  11994. #endif
  11995. #ifdef GL_ANGLE_instanced_arrays
  11996. if (_glewStrSame3(&pos, &len, (const GLubyte*)"instanced_arrays", 16))
  11997. {
  11998. ret = GLEW_ANGLE_instanced_arrays;
  11999. continue;
  12000. }
  12001. #endif
  12002. #ifdef GL_ANGLE_pack_reverse_row_order
  12003. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pack_reverse_row_order", 22))
  12004. {
  12005. ret = GLEW_ANGLE_pack_reverse_row_order;
  12006. continue;
  12007. }
  12008. #endif
  12009. #ifdef GL_ANGLE_program_binary
  12010. if (_glewStrSame3(&pos, &len, (const GLubyte*)"program_binary", 14))
  12011. {
  12012. ret = GLEW_ANGLE_program_binary;
  12013. continue;
  12014. }
  12015. #endif
  12016. #ifdef GL_ANGLE_texture_compression_dxt1
  12017. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_dxt1", 24))
  12018. {
  12019. ret = GLEW_ANGLE_texture_compression_dxt1;
  12020. continue;
  12021. }
  12022. #endif
  12023. #ifdef GL_ANGLE_texture_compression_dxt3
  12024. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_dxt3", 24))
  12025. {
  12026. ret = GLEW_ANGLE_texture_compression_dxt3;
  12027. continue;
  12028. }
  12029. #endif
  12030. #ifdef GL_ANGLE_texture_compression_dxt5
  12031. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_dxt5", 24))
  12032. {
  12033. ret = GLEW_ANGLE_texture_compression_dxt5;
  12034. continue;
  12035. }
  12036. #endif
  12037. #ifdef GL_ANGLE_texture_usage
  12038. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_usage", 13))
  12039. {
  12040. ret = GLEW_ANGLE_texture_usage;
  12041. continue;
  12042. }
  12043. #endif
  12044. #ifdef GL_ANGLE_timer_query
  12045. if (_glewStrSame3(&pos, &len, (const GLubyte*)"timer_query", 11))
  12046. {
  12047. ret = GLEW_ANGLE_timer_query;
  12048. continue;
  12049. }
  12050. #endif
  12051. #ifdef GL_ANGLE_translated_shader_source
  12052. if (_glewStrSame3(&pos, &len, (const GLubyte*)"translated_shader_source", 24))
  12053. {
  12054. ret = GLEW_ANGLE_translated_shader_source;
  12055. continue;
  12056. }
  12057. #endif
  12058. }
  12059. if (_glewStrSame2(&pos, &len, (const GLubyte*)"APPLE_", 6))
  12060. {
  12061. #ifdef GL_APPLE_aux_depth_stencil
  12062. if (_glewStrSame3(&pos, &len, (const GLubyte*)"aux_depth_stencil", 17))
  12063. {
  12064. ret = GLEW_APPLE_aux_depth_stencil;
  12065. continue;
  12066. }
  12067. #endif
  12068. #ifdef GL_APPLE_client_storage
  12069. if (_glewStrSame3(&pos, &len, (const GLubyte*)"client_storage", 14))
  12070. {
  12071. ret = GLEW_APPLE_client_storage;
  12072. continue;
  12073. }
  12074. #endif
  12075. #ifdef GL_APPLE_element_array
  12076. if (_glewStrSame3(&pos, &len, (const GLubyte*)"element_array", 13))
  12077. {
  12078. ret = GLEW_APPLE_element_array;
  12079. continue;
  12080. }
  12081. #endif
  12082. #ifdef GL_APPLE_fence
  12083. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fence", 5))
  12084. {
  12085. ret = GLEW_APPLE_fence;
  12086. continue;
  12087. }
  12088. #endif
  12089. #ifdef GL_APPLE_float_pixels
  12090. if (_glewStrSame3(&pos, &len, (const GLubyte*)"float_pixels", 12))
  12091. {
  12092. ret = GLEW_APPLE_float_pixels;
  12093. continue;
  12094. }
  12095. #endif
  12096. #ifdef GL_APPLE_flush_buffer_range
  12097. if (_glewStrSame3(&pos, &len, (const GLubyte*)"flush_buffer_range", 18))
  12098. {
  12099. ret = GLEW_APPLE_flush_buffer_range;
  12100. continue;
  12101. }
  12102. #endif
  12103. #ifdef GL_APPLE_object_purgeable
  12104. if (_glewStrSame3(&pos, &len, (const GLubyte*)"object_purgeable", 16))
  12105. {
  12106. ret = GLEW_APPLE_object_purgeable;
  12107. continue;
  12108. }
  12109. #endif
  12110. #ifdef GL_APPLE_pixel_buffer
  12111. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_buffer", 12))
  12112. {
  12113. ret = GLEW_APPLE_pixel_buffer;
  12114. continue;
  12115. }
  12116. #endif
  12117. #ifdef GL_APPLE_rgb_422
  12118. if (_glewStrSame3(&pos, &len, (const GLubyte*)"rgb_422", 7))
  12119. {
  12120. ret = GLEW_APPLE_rgb_422;
  12121. continue;
  12122. }
  12123. #endif
  12124. #ifdef GL_APPLE_row_bytes
  12125. if (_glewStrSame3(&pos, &len, (const GLubyte*)"row_bytes", 9))
  12126. {
  12127. ret = GLEW_APPLE_row_bytes;
  12128. continue;
  12129. }
  12130. #endif
  12131. #ifdef GL_APPLE_specular_vector
  12132. if (_glewStrSame3(&pos, &len, (const GLubyte*)"specular_vector", 15))
  12133. {
  12134. ret = GLEW_APPLE_specular_vector;
  12135. continue;
  12136. }
  12137. #endif
  12138. #ifdef GL_APPLE_texture_range
  12139. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_range", 13))
  12140. {
  12141. ret = GLEW_APPLE_texture_range;
  12142. continue;
  12143. }
  12144. #endif
  12145. #ifdef GL_APPLE_transform_hint
  12146. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_hint", 14))
  12147. {
  12148. ret = GLEW_APPLE_transform_hint;
  12149. continue;
  12150. }
  12151. #endif
  12152. #ifdef GL_APPLE_vertex_array_object
  12153. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_object", 19))
  12154. {
  12155. ret = GLEW_APPLE_vertex_array_object;
  12156. continue;
  12157. }
  12158. #endif
  12159. #ifdef GL_APPLE_vertex_array_range
  12160. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_range", 18))
  12161. {
  12162. ret = GLEW_APPLE_vertex_array_range;
  12163. continue;
  12164. }
  12165. #endif
  12166. #ifdef GL_APPLE_vertex_program_evaluators
  12167. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program_evaluators", 25))
  12168. {
  12169. ret = GLEW_APPLE_vertex_program_evaluators;
  12170. continue;
  12171. }
  12172. #endif
  12173. #ifdef GL_APPLE_ycbcr_422
  12174. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ycbcr_422", 9))
  12175. {
  12176. ret = GLEW_APPLE_ycbcr_422;
  12177. continue;
  12178. }
  12179. #endif
  12180. }
  12181. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARB_", 4))
  12182. {
  12183. #ifdef GL_ARB_ES2_compatibility
  12184. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ES2_compatibility", 17))
  12185. {
  12186. ret = GLEW_ARB_ES2_compatibility;
  12187. continue;
  12188. }
  12189. #endif
  12190. #ifdef GL_ARB_ES3_compatibility
  12191. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ES3_compatibility", 17))
  12192. {
  12193. ret = GLEW_ARB_ES3_compatibility;
  12194. continue;
  12195. }
  12196. #endif
  12197. #ifdef GL_ARB_arrays_of_arrays
  12198. if (_glewStrSame3(&pos, &len, (const GLubyte*)"arrays_of_arrays", 16))
  12199. {
  12200. ret = GLEW_ARB_arrays_of_arrays;
  12201. continue;
  12202. }
  12203. #endif
  12204. #ifdef GL_ARB_base_instance
  12205. if (_glewStrSame3(&pos, &len, (const GLubyte*)"base_instance", 13))
  12206. {
  12207. ret = GLEW_ARB_base_instance;
  12208. continue;
  12209. }
  12210. #endif
  12211. #ifdef GL_ARB_bindless_texture
  12212. if (_glewStrSame3(&pos, &len, (const GLubyte*)"bindless_texture", 16))
  12213. {
  12214. ret = GLEW_ARB_bindless_texture;
  12215. continue;
  12216. }
  12217. #endif
  12218. #ifdef GL_ARB_blend_func_extended
  12219. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_func_extended", 19))
  12220. {
  12221. ret = GLEW_ARB_blend_func_extended;
  12222. continue;
  12223. }
  12224. #endif
  12225. #ifdef GL_ARB_buffer_storage
  12226. if (_glewStrSame3(&pos, &len, (const GLubyte*)"buffer_storage", 14))
  12227. {
  12228. ret = GLEW_ARB_buffer_storage;
  12229. continue;
  12230. }
  12231. #endif
  12232. #ifdef GL_ARB_cl_event
  12233. if (_glewStrSame3(&pos, &len, (const GLubyte*)"cl_event", 8))
  12234. {
  12235. ret = GLEW_ARB_cl_event;
  12236. continue;
  12237. }
  12238. #endif
  12239. #ifdef GL_ARB_clear_buffer_object
  12240. if (_glewStrSame3(&pos, &len, (const GLubyte*)"clear_buffer_object", 19))
  12241. {
  12242. ret = GLEW_ARB_clear_buffer_object;
  12243. continue;
  12244. }
  12245. #endif
  12246. #ifdef GL_ARB_clear_texture
  12247. if (_glewStrSame3(&pos, &len, (const GLubyte*)"clear_texture", 13))
  12248. {
  12249. ret = GLEW_ARB_clear_texture;
  12250. continue;
  12251. }
  12252. #endif
  12253. #ifdef GL_ARB_color_buffer_float
  12254. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_buffer_float", 18))
  12255. {
  12256. ret = GLEW_ARB_color_buffer_float;
  12257. continue;
  12258. }
  12259. #endif
  12260. #ifdef GL_ARB_compatibility
  12261. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compatibility", 13))
  12262. {
  12263. ret = GLEW_ARB_compatibility;
  12264. continue;
  12265. }
  12266. #endif
  12267. #ifdef GL_ARB_compressed_texture_pixel_storage
  12268. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compressed_texture_pixel_storage", 32))
  12269. {
  12270. ret = GLEW_ARB_compressed_texture_pixel_storage;
  12271. continue;
  12272. }
  12273. #endif
  12274. #ifdef GL_ARB_compute_shader
  12275. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compute_shader", 14))
  12276. {
  12277. ret = GLEW_ARB_compute_shader;
  12278. continue;
  12279. }
  12280. #endif
  12281. #ifdef GL_ARB_compute_variable_group_size
  12282. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compute_variable_group_size", 27))
  12283. {
  12284. ret = GLEW_ARB_compute_variable_group_size;
  12285. continue;
  12286. }
  12287. #endif
  12288. #ifdef GL_ARB_conservative_depth
  12289. if (_glewStrSame3(&pos, &len, (const GLubyte*)"conservative_depth", 18))
  12290. {
  12291. ret = GLEW_ARB_conservative_depth;
  12292. continue;
  12293. }
  12294. #endif
  12295. #ifdef GL_ARB_copy_buffer
  12296. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_buffer", 11))
  12297. {
  12298. ret = GLEW_ARB_copy_buffer;
  12299. continue;
  12300. }
  12301. #endif
  12302. #ifdef GL_ARB_copy_image
  12303. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_image", 10))
  12304. {
  12305. ret = GLEW_ARB_copy_image;
  12306. continue;
  12307. }
  12308. #endif
  12309. #ifdef GL_ARB_debug_output
  12310. if (_glewStrSame3(&pos, &len, (const GLubyte*)"debug_output", 12))
  12311. {
  12312. ret = GLEW_ARB_debug_output;
  12313. continue;
  12314. }
  12315. #endif
  12316. #ifdef GL_ARB_depth_buffer_float
  12317. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_buffer_float", 18))
  12318. {
  12319. ret = GLEW_ARB_depth_buffer_float;
  12320. continue;
  12321. }
  12322. #endif
  12323. #ifdef GL_ARB_depth_clamp
  12324. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_clamp", 11))
  12325. {
  12326. ret = GLEW_ARB_depth_clamp;
  12327. continue;
  12328. }
  12329. #endif
  12330. #ifdef GL_ARB_depth_texture
  12331. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_texture", 13))
  12332. {
  12333. ret = GLEW_ARB_depth_texture;
  12334. continue;
  12335. }
  12336. #endif
  12337. #ifdef GL_ARB_draw_buffers
  12338. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_buffers", 12))
  12339. {
  12340. ret = GLEW_ARB_draw_buffers;
  12341. continue;
  12342. }
  12343. #endif
  12344. #ifdef GL_ARB_draw_buffers_blend
  12345. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_buffers_blend", 18))
  12346. {
  12347. ret = GLEW_ARB_draw_buffers_blend;
  12348. continue;
  12349. }
  12350. #endif
  12351. #ifdef GL_ARB_draw_elements_base_vertex
  12352. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_elements_base_vertex", 25))
  12353. {
  12354. ret = GLEW_ARB_draw_elements_base_vertex;
  12355. continue;
  12356. }
  12357. #endif
  12358. #ifdef GL_ARB_draw_indirect
  12359. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_indirect", 13))
  12360. {
  12361. ret = GLEW_ARB_draw_indirect;
  12362. continue;
  12363. }
  12364. #endif
  12365. #ifdef GL_ARB_draw_instanced
  12366. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_instanced", 14))
  12367. {
  12368. ret = GLEW_ARB_draw_instanced;
  12369. continue;
  12370. }
  12371. #endif
  12372. #ifdef GL_ARB_enhanced_layouts
  12373. if (_glewStrSame3(&pos, &len, (const GLubyte*)"enhanced_layouts", 16))
  12374. {
  12375. ret = GLEW_ARB_enhanced_layouts;
  12376. continue;
  12377. }
  12378. #endif
  12379. #ifdef GL_ARB_explicit_attrib_location
  12380. if (_glewStrSame3(&pos, &len, (const GLubyte*)"explicit_attrib_location", 24))
  12381. {
  12382. ret = GLEW_ARB_explicit_attrib_location;
  12383. continue;
  12384. }
  12385. #endif
  12386. #ifdef GL_ARB_explicit_uniform_location
  12387. if (_glewStrSame3(&pos, &len, (const GLubyte*)"explicit_uniform_location", 25))
  12388. {
  12389. ret = GLEW_ARB_explicit_uniform_location;
  12390. continue;
  12391. }
  12392. #endif
  12393. #ifdef GL_ARB_fragment_coord_conventions
  12394. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_coord_conventions", 26))
  12395. {
  12396. ret = GLEW_ARB_fragment_coord_conventions;
  12397. continue;
  12398. }
  12399. #endif
  12400. #ifdef GL_ARB_fragment_layer_viewport
  12401. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_layer_viewport", 23))
  12402. {
  12403. ret = GLEW_ARB_fragment_layer_viewport;
  12404. continue;
  12405. }
  12406. #endif
  12407. #ifdef GL_ARB_fragment_program
  12408. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_program", 16))
  12409. {
  12410. ret = GLEW_ARB_fragment_program;
  12411. continue;
  12412. }
  12413. #endif
  12414. #ifdef GL_ARB_fragment_program_shadow
  12415. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_program_shadow", 23))
  12416. {
  12417. ret = GLEW_ARB_fragment_program_shadow;
  12418. continue;
  12419. }
  12420. #endif
  12421. #ifdef GL_ARB_fragment_shader
  12422. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_shader", 15))
  12423. {
  12424. ret = GLEW_ARB_fragment_shader;
  12425. continue;
  12426. }
  12427. #endif
  12428. #ifdef GL_ARB_framebuffer_no_attachments
  12429. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_no_attachments", 26))
  12430. {
  12431. ret = GLEW_ARB_framebuffer_no_attachments;
  12432. continue;
  12433. }
  12434. #endif
  12435. #ifdef GL_ARB_framebuffer_object
  12436. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_object", 18))
  12437. {
  12438. ret = GLEW_ARB_framebuffer_object;
  12439. continue;
  12440. }
  12441. #endif
  12442. #ifdef GL_ARB_framebuffer_sRGB
  12443. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_sRGB", 16))
  12444. {
  12445. ret = GLEW_ARB_framebuffer_sRGB;
  12446. continue;
  12447. }
  12448. #endif
  12449. #ifdef GL_ARB_geometry_shader4
  12450. if (_glewStrSame3(&pos, &len, (const GLubyte*)"geometry_shader4", 16))
  12451. {
  12452. ret = GLEW_ARB_geometry_shader4;
  12453. continue;
  12454. }
  12455. #endif
  12456. #ifdef GL_ARB_get_program_binary
  12457. if (_glewStrSame3(&pos, &len, (const GLubyte*)"get_program_binary", 18))
  12458. {
  12459. ret = GLEW_ARB_get_program_binary;
  12460. continue;
  12461. }
  12462. #endif
  12463. #ifdef GL_ARB_gpu_shader5
  12464. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_shader5", 11))
  12465. {
  12466. ret = GLEW_ARB_gpu_shader5;
  12467. continue;
  12468. }
  12469. #endif
  12470. #ifdef GL_ARB_gpu_shader_fp64
  12471. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_shader_fp64", 15))
  12472. {
  12473. ret = GLEW_ARB_gpu_shader_fp64;
  12474. continue;
  12475. }
  12476. #endif
  12477. #ifdef GL_ARB_half_float_pixel
  12478. if (_glewStrSame3(&pos, &len, (const GLubyte*)"half_float_pixel", 16))
  12479. {
  12480. ret = GLEW_ARB_half_float_pixel;
  12481. continue;
  12482. }
  12483. #endif
  12484. #ifdef GL_ARB_half_float_vertex
  12485. if (_glewStrSame3(&pos, &len, (const GLubyte*)"half_float_vertex", 17))
  12486. {
  12487. ret = GLEW_ARB_half_float_vertex;
  12488. continue;
  12489. }
  12490. #endif
  12491. #ifdef GL_ARB_imaging
  12492. if (_glewStrSame3(&pos, &len, (const GLubyte*)"imaging", 7))
  12493. {
  12494. ret = GLEW_ARB_imaging;
  12495. continue;
  12496. }
  12497. #endif
  12498. #ifdef GL_ARB_indirect_parameters
  12499. if (_glewStrSame3(&pos, &len, (const GLubyte*)"indirect_parameters", 19))
  12500. {
  12501. ret = GLEW_ARB_indirect_parameters;
  12502. continue;
  12503. }
  12504. #endif
  12505. #ifdef GL_ARB_instanced_arrays
  12506. if (_glewStrSame3(&pos, &len, (const GLubyte*)"instanced_arrays", 16))
  12507. {
  12508. ret = GLEW_ARB_instanced_arrays;
  12509. continue;
  12510. }
  12511. #endif
  12512. #ifdef GL_ARB_internalformat_query
  12513. if (_glewStrSame3(&pos, &len, (const GLubyte*)"internalformat_query", 20))
  12514. {
  12515. ret = GLEW_ARB_internalformat_query;
  12516. continue;
  12517. }
  12518. #endif
  12519. #ifdef GL_ARB_internalformat_query2
  12520. if (_glewStrSame3(&pos, &len, (const GLubyte*)"internalformat_query2", 21))
  12521. {
  12522. ret = GLEW_ARB_internalformat_query2;
  12523. continue;
  12524. }
  12525. #endif
  12526. #ifdef GL_ARB_invalidate_subdata
  12527. if (_glewStrSame3(&pos, &len, (const GLubyte*)"invalidate_subdata", 18))
  12528. {
  12529. ret = GLEW_ARB_invalidate_subdata;
  12530. continue;
  12531. }
  12532. #endif
  12533. #ifdef GL_ARB_map_buffer_alignment
  12534. if (_glewStrSame3(&pos, &len, (const GLubyte*)"map_buffer_alignment", 20))
  12535. {
  12536. ret = GLEW_ARB_map_buffer_alignment;
  12537. continue;
  12538. }
  12539. #endif
  12540. #ifdef GL_ARB_map_buffer_range
  12541. if (_glewStrSame3(&pos, &len, (const GLubyte*)"map_buffer_range", 16))
  12542. {
  12543. ret = GLEW_ARB_map_buffer_range;
  12544. continue;
  12545. }
  12546. #endif
  12547. #ifdef GL_ARB_matrix_palette
  12548. if (_glewStrSame3(&pos, &len, (const GLubyte*)"matrix_palette", 14))
  12549. {
  12550. ret = GLEW_ARB_matrix_palette;
  12551. continue;
  12552. }
  12553. #endif
  12554. #ifdef GL_ARB_multi_bind
  12555. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multi_bind", 10))
  12556. {
  12557. ret = GLEW_ARB_multi_bind;
  12558. continue;
  12559. }
  12560. #endif
  12561. #ifdef GL_ARB_multi_draw_indirect
  12562. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multi_draw_indirect", 19))
  12563. {
  12564. ret = GLEW_ARB_multi_draw_indirect;
  12565. continue;
  12566. }
  12567. #endif
  12568. #ifdef GL_ARB_multisample
  12569. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  12570. {
  12571. ret = GLEW_ARB_multisample;
  12572. continue;
  12573. }
  12574. #endif
  12575. #ifdef GL_ARB_multitexture
  12576. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multitexture", 12))
  12577. {
  12578. ret = GLEW_ARB_multitexture;
  12579. continue;
  12580. }
  12581. #endif
  12582. #ifdef GL_ARB_occlusion_query
  12583. if (_glewStrSame3(&pos, &len, (const GLubyte*)"occlusion_query", 15))
  12584. {
  12585. ret = GLEW_ARB_occlusion_query;
  12586. continue;
  12587. }
  12588. #endif
  12589. #ifdef GL_ARB_occlusion_query2
  12590. if (_glewStrSame3(&pos, &len, (const GLubyte*)"occlusion_query2", 16))
  12591. {
  12592. ret = GLEW_ARB_occlusion_query2;
  12593. continue;
  12594. }
  12595. #endif
  12596. #ifdef GL_ARB_pixel_buffer_object
  12597. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_buffer_object", 19))
  12598. {
  12599. ret = GLEW_ARB_pixel_buffer_object;
  12600. continue;
  12601. }
  12602. #endif
  12603. #ifdef GL_ARB_point_parameters
  12604. if (_glewStrSame3(&pos, &len, (const GLubyte*)"point_parameters", 16))
  12605. {
  12606. ret = GLEW_ARB_point_parameters;
  12607. continue;
  12608. }
  12609. #endif
  12610. #ifdef GL_ARB_point_sprite
  12611. if (_glewStrSame3(&pos, &len, (const GLubyte*)"point_sprite", 12))
  12612. {
  12613. ret = GLEW_ARB_point_sprite;
  12614. continue;
  12615. }
  12616. #endif
  12617. #ifdef GL_ARB_program_interface_query
  12618. if (_glewStrSame3(&pos, &len, (const GLubyte*)"program_interface_query", 23))
  12619. {
  12620. ret = GLEW_ARB_program_interface_query;
  12621. continue;
  12622. }
  12623. #endif
  12624. #ifdef GL_ARB_provoking_vertex
  12625. if (_glewStrSame3(&pos, &len, (const GLubyte*)"provoking_vertex", 16))
  12626. {
  12627. ret = GLEW_ARB_provoking_vertex;
  12628. continue;
  12629. }
  12630. #endif
  12631. #ifdef GL_ARB_query_buffer_object
  12632. if (_glewStrSame3(&pos, &len, (const GLubyte*)"query_buffer_object", 19))
  12633. {
  12634. ret = GLEW_ARB_query_buffer_object;
  12635. continue;
  12636. }
  12637. #endif
  12638. #ifdef GL_ARB_robust_buffer_access_behavior
  12639. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robust_buffer_access_behavior", 29))
  12640. {
  12641. ret = GLEW_ARB_robust_buffer_access_behavior;
  12642. continue;
  12643. }
  12644. #endif
  12645. #ifdef GL_ARB_robustness
  12646. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness", 10))
  12647. {
  12648. ret = GLEW_ARB_robustness;
  12649. continue;
  12650. }
  12651. #endif
  12652. #ifdef GL_ARB_robustness_application_isolation
  12653. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness_application_isolation", 32))
  12654. {
  12655. ret = GLEW_ARB_robustness_application_isolation;
  12656. continue;
  12657. }
  12658. #endif
  12659. #ifdef GL_ARB_robustness_share_group_isolation
  12660. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness_share_group_isolation", 32))
  12661. {
  12662. ret = GLEW_ARB_robustness_share_group_isolation;
  12663. continue;
  12664. }
  12665. #endif
  12666. #ifdef GL_ARB_sample_shading
  12667. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sample_shading", 14))
  12668. {
  12669. ret = GLEW_ARB_sample_shading;
  12670. continue;
  12671. }
  12672. #endif
  12673. #ifdef GL_ARB_sampler_objects
  12674. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sampler_objects", 15))
  12675. {
  12676. ret = GLEW_ARB_sampler_objects;
  12677. continue;
  12678. }
  12679. #endif
  12680. #ifdef GL_ARB_seamless_cube_map
  12681. if (_glewStrSame3(&pos, &len, (const GLubyte*)"seamless_cube_map", 17))
  12682. {
  12683. ret = GLEW_ARB_seamless_cube_map;
  12684. continue;
  12685. }
  12686. #endif
  12687. #ifdef GL_ARB_seamless_cubemap_per_texture
  12688. if (_glewStrSame3(&pos, &len, (const GLubyte*)"seamless_cubemap_per_texture", 28))
  12689. {
  12690. ret = GLEW_ARB_seamless_cubemap_per_texture;
  12691. continue;
  12692. }
  12693. #endif
  12694. #ifdef GL_ARB_separate_shader_objects
  12695. if (_glewStrSame3(&pos, &len, (const GLubyte*)"separate_shader_objects", 23))
  12696. {
  12697. ret = GLEW_ARB_separate_shader_objects;
  12698. continue;
  12699. }
  12700. #endif
  12701. #ifdef GL_ARB_shader_atomic_counters
  12702. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_atomic_counters", 22))
  12703. {
  12704. ret = GLEW_ARB_shader_atomic_counters;
  12705. continue;
  12706. }
  12707. #endif
  12708. #ifdef GL_ARB_shader_bit_encoding
  12709. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_bit_encoding", 19))
  12710. {
  12711. ret = GLEW_ARB_shader_bit_encoding;
  12712. continue;
  12713. }
  12714. #endif
  12715. #ifdef GL_ARB_shader_draw_parameters
  12716. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_draw_parameters", 22))
  12717. {
  12718. ret = GLEW_ARB_shader_draw_parameters;
  12719. continue;
  12720. }
  12721. #endif
  12722. #ifdef GL_ARB_shader_group_vote
  12723. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_group_vote", 17))
  12724. {
  12725. ret = GLEW_ARB_shader_group_vote;
  12726. continue;
  12727. }
  12728. #endif
  12729. #ifdef GL_ARB_shader_image_load_store
  12730. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_image_load_store", 23))
  12731. {
  12732. ret = GLEW_ARB_shader_image_load_store;
  12733. continue;
  12734. }
  12735. #endif
  12736. #ifdef GL_ARB_shader_image_size
  12737. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_image_size", 17))
  12738. {
  12739. ret = GLEW_ARB_shader_image_size;
  12740. continue;
  12741. }
  12742. #endif
  12743. #ifdef GL_ARB_shader_objects
  12744. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_objects", 14))
  12745. {
  12746. ret = GLEW_ARB_shader_objects;
  12747. continue;
  12748. }
  12749. #endif
  12750. #ifdef GL_ARB_shader_precision
  12751. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_precision", 16))
  12752. {
  12753. ret = GLEW_ARB_shader_precision;
  12754. continue;
  12755. }
  12756. #endif
  12757. #ifdef GL_ARB_shader_stencil_export
  12758. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_stencil_export", 21))
  12759. {
  12760. ret = GLEW_ARB_shader_stencil_export;
  12761. continue;
  12762. }
  12763. #endif
  12764. #ifdef GL_ARB_shader_storage_buffer_object
  12765. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_storage_buffer_object", 28))
  12766. {
  12767. ret = GLEW_ARB_shader_storage_buffer_object;
  12768. continue;
  12769. }
  12770. #endif
  12771. #ifdef GL_ARB_shader_subroutine
  12772. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_subroutine", 17))
  12773. {
  12774. ret = GLEW_ARB_shader_subroutine;
  12775. continue;
  12776. }
  12777. #endif
  12778. #ifdef GL_ARB_shader_texture_lod
  12779. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_texture_lod", 18))
  12780. {
  12781. ret = GLEW_ARB_shader_texture_lod;
  12782. continue;
  12783. }
  12784. #endif
  12785. #ifdef GL_ARB_shading_language_100
  12786. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shading_language_100", 20))
  12787. {
  12788. ret = GLEW_ARB_shading_language_100;
  12789. continue;
  12790. }
  12791. #endif
  12792. #ifdef GL_ARB_shading_language_420pack
  12793. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shading_language_420pack", 24))
  12794. {
  12795. ret = GLEW_ARB_shading_language_420pack;
  12796. continue;
  12797. }
  12798. #endif
  12799. #ifdef GL_ARB_shading_language_include
  12800. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shading_language_include", 24))
  12801. {
  12802. ret = GLEW_ARB_shading_language_include;
  12803. continue;
  12804. }
  12805. #endif
  12806. #ifdef GL_ARB_shading_language_packing
  12807. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shading_language_packing", 24))
  12808. {
  12809. ret = GLEW_ARB_shading_language_packing;
  12810. continue;
  12811. }
  12812. #endif
  12813. #ifdef GL_ARB_shadow
  12814. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shadow", 6))
  12815. {
  12816. ret = GLEW_ARB_shadow;
  12817. continue;
  12818. }
  12819. #endif
  12820. #ifdef GL_ARB_shadow_ambient
  12821. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shadow_ambient", 14))
  12822. {
  12823. ret = GLEW_ARB_shadow_ambient;
  12824. continue;
  12825. }
  12826. #endif
  12827. #ifdef GL_ARB_sparse_texture
  12828. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sparse_texture", 14))
  12829. {
  12830. ret = GLEW_ARB_sparse_texture;
  12831. continue;
  12832. }
  12833. #endif
  12834. #ifdef GL_ARB_stencil_texturing
  12835. if (_glewStrSame3(&pos, &len, (const GLubyte*)"stencil_texturing", 17))
  12836. {
  12837. ret = GLEW_ARB_stencil_texturing;
  12838. continue;
  12839. }
  12840. #endif
  12841. #ifdef GL_ARB_sync
  12842. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sync", 4))
  12843. {
  12844. ret = GLEW_ARB_sync;
  12845. continue;
  12846. }
  12847. #endif
  12848. #ifdef GL_ARB_tessellation_shader
  12849. if (_glewStrSame3(&pos, &len, (const GLubyte*)"tessellation_shader", 19))
  12850. {
  12851. ret = GLEW_ARB_tessellation_shader;
  12852. continue;
  12853. }
  12854. #endif
  12855. #ifdef GL_ARB_texture_border_clamp
  12856. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_border_clamp", 20))
  12857. {
  12858. ret = GLEW_ARB_texture_border_clamp;
  12859. continue;
  12860. }
  12861. #endif
  12862. #ifdef GL_ARB_texture_buffer_object
  12863. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_buffer_object", 21))
  12864. {
  12865. ret = GLEW_ARB_texture_buffer_object;
  12866. continue;
  12867. }
  12868. #endif
  12869. #ifdef GL_ARB_texture_buffer_object_rgb32
  12870. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_buffer_object_rgb32", 27))
  12871. {
  12872. ret = GLEW_ARB_texture_buffer_object_rgb32;
  12873. continue;
  12874. }
  12875. #endif
  12876. #ifdef GL_ARB_texture_buffer_range
  12877. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_buffer_range", 20))
  12878. {
  12879. ret = GLEW_ARB_texture_buffer_range;
  12880. continue;
  12881. }
  12882. #endif
  12883. #ifdef GL_ARB_texture_compression
  12884. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression", 19))
  12885. {
  12886. ret = GLEW_ARB_texture_compression;
  12887. continue;
  12888. }
  12889. #endif
  12890. #ifdef GL_ARB_texture_compression_bptc
  12891. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_bptc", 24))
  12892. {
  12893. ret = GLEW_ARB_texture_compression_bptc;
  12894. continue;
  12895. }
  12896. #endif
  12897. #ifdef GL_ARB_texture_compression_rgtc
  12898. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_rgtc", 24))
  12899. {
  12900. ret = GLEW_ARB_texture_compression_rgtc;
  12901. continue;
  12902. }
  12903. #endif
  12904. #ifdef GL_ARB_texture_cube_map
  12905. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_cube_map", 16))
  12906. {
  12907. ret = GLEW_ARB_texture_cube_map;
  12908. continue;
  12909. }
  12910. #endif
  12911. #ifdef GL_ARB_texture_cube_map_array
  12912. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_cube_map_array", 22))
  12913. {
  12914. ret = GLEW_ARB_texture_cube_map_array;
  12915. continue;
  12916. }
  12917. #endif
  12918. #ifdef GL_ARB_texture_env_add
  12919. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_add", 15))
  12920. {
  12921. ret = GLEW_ARB_texture_env_add;
  12922. continue;
  12923. }
  12924. #endif
  12925. #ifdef GL_ARB_texture_env_combine
  12926. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_combine", 19))
  12927. {
  12928. ret = GLEW_ARB_texture_env_combine;
  12929. continue;
  12930. }
  12931. #endif
  12932. #ifdef GL_ARB_texture_env_crossbar
  12933. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_crossbar", 20))
  12934. {
  12935. ret = GLEW_ARB_texture_env_crossbar;
  12936. continue;
  12937. }
  12938. #endif
  12939. #ifdef GL_ARB_texture_env_dot3
  12940. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_dot3", 16))
  12941. {
  12942. ret = GLEW_ARB_texture_env_dot3;
  12943. continue;
  12944. }
  12945. #endif
  12946. #ifdef GL_ARB_texture_float
  12947. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_float", 13))
  12948. {
  12949. ret = GLEW_ARB_texture_float;
  12950. continue;
  12951. }
  12952. #endif
  12953. #ifdef GL_ARB_texture_gather
  12954. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_gather", 14))
  12955. {
  12956. ret = GLEW_ARB_texture_gather;
  12957. continue;
  12958. }
  12959. #endif
  12960. #ifdef GL_ARB_texture_mirror_clamp_to_edge
  12961. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_mirror_clamp_to_edge", 28))
  12962. {
  12963. ret = GLEW_ARB_texture_mirror_clamp_to_edge;
  12964. continue;
  12965. }
  12966. #endif
  12967. #ifdef GL_ARB_texture_mirrored_repeat
  12968. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_mirrored_repeat", 23))
  12969. {
  12970. ret = GLEW_ARB_texture_mirrored_repeat;
  12971. continue;
  12972. }
  12973. #endif
  12974. #ifdef GL_ARB_texture_multisample
  12975. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_multisample", 19))
  12976. {
  12977. ret = GLEW_ARB_texture_multisample;
  12978. continue;
  12979. }
  12980. #endif
  12981. #ifdef GL_ARB_texture_non_power_of_two
  12982. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_non_power_of_two", 24))
  12983. {
  12984. ret = GLEW_ARB_texture_non_power_of_two;
  12985. continue;
  12986. }
  12987. #endif
  12988. #ifdef GL_ARB_texture_query_levels
  12989. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_query_levels", 20))
  12990. {
  12991. ret = GLEW_ARB_texture_query_levels;
  12992. continue;
  12993. }
  12994. #endif
  12995. #ifdef GL_ARB_texture_query_lod
  12996. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_query_lod", 17))
  12997. {
  12998. ret = GLEW_ARB_texture_query_lod;
  12999. continue;
  13000. }
  13001. #endif
  13002. #ifdef GL_ARB_texture_rectangle
  13003. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_rectangle", 17))
  13004. {
  13005. ret = GLEW_ARB_texture_rectangle;
  13006. continue;
  13007. }
  13008. #endif
  13009. #ifdef GL_ARB_texture_rg
  13010. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_rg", 10))
  13011. {
  13012. ret = GLEW_ARB_texture_rg;
  13013. continue;
  13014. }
  13015. #endif
  13016. #ifdef GL_ARB_texture_rgb10_a2ui
  13017. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_rgb10_a2ui", 18))
  13018. {
  13019. ret = GLEW_ARB_texture_rgb10_a2ui;
  13020. continue;
  13021. }
  13022. #endif
  13023. #ifdef GL_ARB_texture_stencil8
  13024. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_stencil8", 16))
  13025. {
  13026. ret = GLEW_ARB_texture_stencil8;
  13027. continue;
  13028. }
  13029. #endif
  13030. #ifdef GL_ARB_texture_storage
  13031. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_storage", 15))
  13032. {
  13033. ret = GLEW_ARB_texture_storage;
  13034. continue;
  13035. }
  13036. #endif
  13037. #ifdef GL_ARB_texture_storage_multisample
  13038. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_storage_multisample", 27))
  13039. {
  13040. ret = GLEW_ARB_texture_storage_multisample;
  13041. continue;
  13042. }
  13043. #endif
  13044. #ifdef GL_ARB_texture_swizzle
  13045. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_swizzle", 15))
  13046. {
  13047. ret = GLEW_ARB_texture_swizzle;
  13048. continue;
  13049. }
  13050. #endif
  13051. #ifdef GL_ARB_texture_view
  13052. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_view", 12))
  13053. {
  13054. ret = GLEW_ARB_texture_view;
  13055. continue;
  13056. }
  13057. #endif
  13058. #ifdef GL_ARB_timer_query
  13059. if (_glewStrSame3(&pos, &len, (const GLubyte*)"timer_query", 11))
  13060. {
  13061. ret = GLEW_ARB_timer_query;
  13062. continue;
  13063. }
  13064. #endif
  13065. #ifdef GL_ARB_transform_feedback2
  13066. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback2", 19))
  13067. {
  13068. ret = GLEW_ARB_transform_feedback2;
  13069. continue;
  13070. }
  13071. #endif
  13072. #ifdef GL_ARB_transform_feedback3
  13073. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback3", 19))
  13074. {
  13075. ret = GLEW_ARB_transform_feedback3;
  13076. continue;
  13077. }
  13078. #endif
  13079. #ifdef GL_ARB_transform_feedback_instanced
  13080. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback_instanced", 28))
  13081. {
  13082. ret = GLEW_ARB_transform_feedback_instanced;
  13083. continue;
  13084. }
  13085. #endif
  13086. #ifdef GL_ARB_transpose_matrix
  13087. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transpose_matrix", 16))
  13088. {
  13089. ret = GLEW_ARB_transpose_matrix;
  13090. continue;
  13091. }
  13092. #endif
  13093. #ifdef GL_ARB_uniform_buffer_object
  13094. if (_glewStrSame3(&pos, &len, (const GLubyte*)"uniform_buffer_object", 21))
  13095. {
  13096. ret = GLEW_ARB_uniform_buffer_object;
  13097. continue;
  13098. }
  13099. #endif
  13100. #ifdef GL_ARB_vertex_array_bgra
  13101. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_bgra", 17))
  13102. {
  13103. ret = GLEW_ARB_vertex_array_bgra;
  13104. continue;
  13105. }
  13106. #endif
  13107. #ifdef GL_ARB_vertex_array_object
  13108. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_object", 19))
  13109. {
  13110. ret = GLEW_ARB_vertex_array_object;
  13111. continue;
  13112. }
  13113. #endif
  13114. #ifdef GL_ARB_vertex_attrib_64bit
  13115. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_attrib_64bit", 19))
  13116. {
  13117. ret = GLEW_ARB_vertex_attrib_64bit;
  13118. continue;
  13119. }
  13120. #endif
  13121. #ifdef GL_ARB_vertex_attrib_binding
  13122. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_attrib_binding", 21))
  13123. {
  13124. ret = GLEW_ARB_vertex_attrib_binding;
  13125. continue;
  13126. }
  13127. #endif
  13128. #ifdef GL_ARB_vertex_blend
  13129. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_blend", 12))
  13130. {
  13131. ret = GLEW_ARB_vertex_blend;
  13132. continue;
  13133. }
  13134. #endif
  13135. #ifdef GL_ARB_vertex_buffer_object
  13136. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_buffer_object", 20))
  13137. {
  13138. ret = GLEW_ARB_vertex_buffer_object;
  13139. continue;
  13140. }
  13141. #endif
  13142. #ifdef GL_ARB_vertex_program
  13143. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program", 14))
  13144. {
  13145. ret = GLEW_ARB_vertex_program;
  13146. continue;
  13147. }
  13148. #endif
  13149. #ifdef GL_ARB_vertex_shader
  13150. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_shader", 13))
  13151. {
  13152. ret = GLEW_ARB_vertex_shader;
  13153. continue;
  13154. }
  13155. #endif
  13156. #ifdef GL_ARB_vertex_type_10f_11f_11f_rev
  13157. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_type_10f_11f_11f_rev", 27))
  13158. {
  13159. ret = GLEW_ARB_vertex_type_10f_11f_11f_rev;
  13160. continue;
  13161. }
  13162. #endif
  13163. #ifdef GL_ARB_vertex_type_2_10_10_10_rev
  13164. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_type_2_10_10_10_rev", 26))
  13165. {
  13166. ret = GLEW_ARB_vertex_type_2_10_10_10_rev;
  13167. continue;
  13168. }
  13169. #endif
  13170. #ifdef GL_ARB_viewport_array
  13171. if (_glewStrSame3(&pos, &len, (const GLubyte*)"viewport_array", 14))
  13172. {
  13173. ret = GLEW_ARB_viewport_array;
  13174. continue;
  13175. }
  13176. #endif
  13177. #ifdef GL_ARB_window_pos
  13178. if (_glewStrSame3(&pos, &len, (const GLubyte*)"window_pos", 10))
  13179. {
  13180. ret = GLEW_ARB_window_pos;
  13181. continue;
  13182. }
  13183. #endif
  13184. }
  13185. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ATIX_", 5))
  13186. {
  13187. #ifdef GL_ATIX_point_sprites
  13188. if (_glewStrSame3(&pos, &len, (const GLubyte*)"point_sprites", 13))
  13189. {
  13190. ret = GLEW_ATIX_point_sprites;
  13191. continue;
  13192. }
  13193. #endif
  13194. #ifdef GL_ATIX_texture_env_combine3
  13195. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_combine3", 20))
  13196. {
  13197. ret = GLEW_ATIX_texture_env_combine3;
  13198. continue;
  13199. }
  13200. #endif
  13201. #ifdef GL_ATIX_texture_env_route
  13202. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_route", 17))
  13203. {
  13204. ret = GLEW_ATIX_texture_env_route;
  13205. continue;
  13206. }
  13207. #endif
  13208. #ifdef GL_ATIX_vertex_shader_output_point_size
  13209. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_shader_output_point_size", 31))
  13210. {
  13211. ret = GLEW_ATIX_vertex_shader_output_point_size;
  13212. continue;
  13213. }
  13214. #endif
  13215. }
  13216. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ATI_", 4))
  13217. {
  13218. #ifdef GL_ATI_draw_buffers
  13219. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_buffers", 12))
  13220. {
  13221. ret = GLEW_ATI_draw_buffers;
  13222. continue;
  13223. }
  13224. #endif
  13225. #ifdef GL_ATI_element_array
  13226. if (_glewStrSame3(&pos, &len, (const GLubyte*)"element_array", 13))
  13227. {
  13228. ret = GLEW_ATI_element_array;
  13229. continue;
  13230. }
  13231. #endif
  13232. #ifdef GL_ATI_envmap_bumpmap
  13233. if (_glewStrSame3(&pos, &len, (const GLubyte*)"envmap_bumpmap", 14))
  13234. {
  13235. ret = GLEW_ATI_envmap_bumpmap;
  13236. continue;
  13237. }
  13238. #endif
  13239. #ifdef GL_ATI_fragment_shader
  13240. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_shader", 15))
  13241. {
  13242. ret = GLEW_ATI_fragment_shader;
  13243. continue;
  13244. }
  13245. #endif
  13246. #ifdef GL_ATI_map_object_buffer
  13247. if (_glewStrSame3(&pos, &len, (const GLubyte*)"map_object_buffer", 17))
  13248. {
  13249. ret = GLEW_ATI_map_object_buffer;
  13250. continue;
  13251. }
  13252. #endif
  13253. #ifdef GL_ATI_meminfo
  13254. if (_glewStrSame3(&pos, &len, (const GLubyte*)"meminfo", 7))
  13255. {
  13256. ret = GLEW_ATI_meminfo;
  13257. continue;
  13258. }
  13259. #endif
  13260. #ifdef GL_ATI_pn_triangles
  13261. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pn_triangles", 12))
  13262. {
  13263. ret = GLEW_ATI_pn_triangles;
  13264. continue;
  13265. }
  13266. #endif
  13267. #ifdef GL_ATI_separate_stencil
  13268. if (_glewStrSame3(&pos, &len, (const GLubyte*)"separate_stencil", 16))
  13269. {
  13270. ret = GLEW_ATI_separate_stencil;
  13271. continue;
  13272. }
  13273. #endif
  13274. #ifdef GL_ATI_shader_texture_lod
  13275. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_texture_lod", 18))
  13276. {
  13277. ret = GLEW_ATI_shader_texture_lod;
  13278. continue;
  13279. }
  13280. #endif
  13281. #ifdef GL_ATI_text_fragment_shader
  13282. if (_glewStrSame3(&pos, &len, (const GLubyte*)"text_fragment_shader", 20))
  13283. {
  13284. ret = GLEW_ATI_text_fragment_shader;
  13285. continue;
  13286. }
  13287. #endif
  13288. #ifdef GL_ATI_texture_compression_3dc
  13289. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_3dc", 23))
  13290. {
  13291. ret = GLEW_ATI_texture_compression_3dc;
  13292. continue;
  13293. }
  13294. #endif
  13295. #ifdef GL_ATI_texture_env_combine3
  13296. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_combine3", 20))
  13297. {
  13298. ret = GLEW_ATI_texture_env_combine3;
  13299. continue;
  13300. }
  13301. #endif
  13302. #ifdef GL_ATI_texture_float
  13303. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_float", 13))
  13304. {
  13305. ret = GLEW_ATI_texture_float;
  13306. continue;
  13307. }
  13308. #endif
  13309. #ifdef GL_ATI_texture_mirror_once
  13310. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_mirror_once", 19))
  13311. {
  13312. ret = GLEW_ATI_texture_mirror_once;
  13313. continue;
  13314. }
  13315. #endif
  13316. #ifdef GL_ATI_vertex_array_object
  13317. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_object", 19))
  13318. {
  13319. ret = GLEW_ATI_vertex_array_object;
  13320. continue;
  13321. }
  13322. #endif
  13323. #ifdef GL_ATI_vertex_attrib_array_object
  13324. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_attrib_array_object", 26))
  13325. {
  13326. ret = GLEW_ATI_vertex_attrib_array_object;
  13327. continue;
  13328. }
  13329. #endif
  13330. #ifdef GL_ATI_vertex_streams
  13331. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_streams", 14))
  13332. {
  13333. ret = GLEW_ATI_vertex_streams;
  13334. continue;
  13335. }
  13336. #endif
  13337. }
  13338. if (_glewStrSame2(&pos, &len, (const GLubyte*)"EXT_", 4))
  13339. {
  13340. #ifdef GL_EXT_422_pixels
  13341. if (_glewStrSame3(&pos, &len, (const GLubyte*)"422_pixels", 10))
  13342. {
  13343. ret = GLEW_EXT_422_pixels;
  13344. continue;
  13345. }
  13346. #endif
  13347. #ifdef GL_EXT_Cg_shader
  13348. if (_glewStrSame3(&pos, &len, (const GLubyte*)"Cg_shader", 9))
  13349. {
  13350. ret = GLEW_EXT_Cg_shader;
  13351. continue;
  13352. }
  13353. #endif
  13354. #ifdef GL_EXT_abgr
  13355. if (_glewStrSame3(&pos, &len, (const GLubyte*)"abgr", 4))
  13356. {
  13357. ret = GLEW_EXT_abgr;
  13358. continue;
  13359. }
  13360. #endif
  13361. #ifdef GL_EXT_bgra
  13362. if (_glewStrSame3(&pos, &len, (const GLubyte*)"bgra", 4))
  13363. {
  13364. ret = GLEW_EXT_bgra;
  13365. continue;
  13366. }
  13367. #endif
  13368. #ifdef GL_EXT_bindable_uniform
  13369. if (_glewStrSame3(&pos, &len, (const GLubyte*)"bindable_uniform", 16))
  13370. {
  13371. ret = GLEW_EXT_bindable_uniform;
  13372. continue;
  13373. }
  13374. #endif
  13375. #ifdef GL_EXT_blend_color
  13376. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_color", 11))
  13377. {
  13378. ret = GLEW_EXT_blend_color;
  13379. continue;
  13380. }
  13381. #endif
  13382. #ifdef GL_EXT_blend_equation_separate
  13383. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_equation_separate", 23))
  13384. {
  13385. ret = GLEW_EXT_blend_equation_separate;
  13386. continue;
  13387. }
  13388. #endif
  13389. #ifdef GL_EXT_blend_func_separate
  13390. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_func_separate", 19))
  13391. {
  13392. ret = GLEW_EXT_blend_func_separate;
  13393. continue;
  13394. }
  13395. #endif
  13396. #ifdef GL_EXT_blend_logic_op
  13397. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_logic_op", 14))
  13398. {
  13399. ret = GLEW_EXT_blend_logic_op;
  13400. continue;
  13401. }
  13402. #endif
  13403. #ifdef GL_EXT_blend_minmax
  13404. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_minmax", 12))
  13405. {
  13406. ret = GLEW_EXT_blend_minmax;
  13407. continue;
  13408. }
  13409. #endif
  13410. #ifdef GL_EXT_blend_subtract
  13411. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_subtract", 14))
  13412. {
  13413. ret = GLEW_EXT_blend_subtract;
  13414. continue;
  13415. }
  13416. #endif
  13417. #ifdef GL_EXT_clip_volume_hint
  13418. if (_glewStrSame3(&pos, &len, (const GLubyte*)"clip_volume_hint", 16))
  13419. {
  13420. ret = GLEW_EXT_clip_volume_hint;
  13421. continue;
  13422. }
  13423. #endif
  13424. #ifdef GL_EXT_cmyka
  13425. if (_glewStrSame3(&pos, &len, (const GLubyte*)"cmyka", 5))
  13426. {
  13427. ret = GLEW_EXT_cmyka;
  13428. continue;
  13429. }
  13430. #endif
  13431. #ifdef GL_EXT_color_subtable
  13432. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_subtable", 14))
  13433. {
  13434. ret = GLEW_EXT_color_subtable;
  13435. continue;
  13436. }
  13437. #endif
  13438. #ifdef GL_EXT_compiled_vertex_array
  13439. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compiled_vertex_array", 21))
  13440. {
  13441. ret = GLEW_EXT_compiled_vertex_array;
  13442. continue;
  13443. }
  13444. #endif
  13445. #ifdef GL_EXT_convolution
  13446. if (_glewStrSame3(&pos, &len, (const GLubyte*)"convolution", 11))
  13447. {
  13448. ret = GLEW_EXT_convolution;
  13449. continue;
  13450. }
  13451. #endif
  13452. #ifdef GL_EXT_coordinate_frame
  13453. if (_glewStrSame3(&pos, &len, (const GLubyte*)"coordinate_frame", 16))
  13454. {
  13455. ret = GLEW_EXT_coordinate_frame;
  13456. continue;
  13457. }
  13458. #endif
  13459. #ifdef GL_EXT_copy_texture
  13460. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_texture", 12))
  13461. {
  13462. ret = GLEW_EXT_copy_texture;
  13463. continue;
  13464. }
  13465. #endif
  13466. #ifdef GL_EXT_cull_vertex
  13467. if (_glewStrSame3(&pos, &len, (const GLubyte*)"cull_vertex", 11))
  13468. {
  13469. ret = GLEW_EXT_cull_vertex;
  13470. continue;
  13471. }
  13472. #endif
  13473. #ifdef GL_EXT_debug_marker
  13474. if (_glewStrSame3(&pos, &len, (const GLubyte*)"debug_marker", 12))
  13475. {
  13476. ret = GLEW_EXT_debug_marker;
  13477. continue;
  13478. }
  13479. #endif
  13480. #ifdef GL_EXT_depth_bounds_test
  13481. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_bounds_test", 17))
  13482. {
  13483. ret = GLEW_EXT_depth_bounds_test;
  13484. continue;
  13485. }
  13486. #endif
  13487. #ifdef GL_EXT_direct_state_access
  13488. if (_glewStrSame3(&pos, &len, (const GLubyte*)"direct_state_access", 19))
  13489. {
  13490. ret = GLEW_EXT_direct_state_access;
  13491. continue;
  13492. }
  13493. #endif
  13494. #ifdef GL_EXT_draw_buffers2
  13495. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_buffers2", 13))
  13496. {
  13497. ret = GLEW_EXT_draw_buffers2;
  13498. continue;
  13499. }
  13500. #endif
  13501. #ifdef GL_EXT_draw_instanced
  13502. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_instanced", 14))
  13503. {
  13504. ret = GLEW_EXT_draw_instanced;
  13505. continue;
  13506. }
  13507. #endif
  13508. #ifdef GL_EXT_draw_range_elements
  13509. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_range_elements", 19))
  13510. {
  13511. ret = GLEW_EXT_draw_range_elements;
  13512. continue;
  13513. }
  13514. #endif
  13515. #ifdef GL_EXT_fog_coord
  13516. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fog_coord", 9))
  13517. {
  13518. ret = GLEW_EXT_fog_coord;
  13519. continue;
  13520. }
  13521. #endif
  13522. #ifdef GL_EXT_fragment_lighting
  13523. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_lighting", 17))
  13524. {
  13525. ret = GLEW_EXT_fragment_lighting;
  13526. continue;
  13527. }
  13528. #endif
  13529. #ifdef GL_EXT_framebuffer_blit
  13530. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_blit", 16))
  13531. {
  13532. ret = GLEW_EXT_framebuffer_blit;
  13533. continue;
  13534. }
  13535. #endif
  13536. #ifdef GL_EXT_framebuffer_multisample
  13537. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_multisample", 23))
  13538. {
  13539. ret = GLEW_EXT_framebuffer_multisample;
  13540. continue;
  13541. }
  13542. #endif
  13543. #ifdef GL_EXT_framebuffer_multisample_blit_scaled
  13544. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_multisample_blit_scaled", 35))
  13545. {
  13546. ret = GLEW_EXT_framebuffer_multisample_blit_scaled;
  13547. continue;
  13548. }
  13549. #endif
  13550. #ifdef GL_EXT_framebuffer_object
  13551. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_object", 18))
  13552. {
  13553. ret = GLEW_EXT_framebuffer_object;
  13554. continue;
  13555. }
  13556. #endif
  13557. #ifdef GL_EXT_framebuffer_sRGB
  13558. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_sRGB", 16))
  13559. {
  13560. ret = GLEW_EXT_framebuffer_sRGB;
  13561. continue;
  13562. }
  13563. #endif
  13564. #ifdef GL_EXT_geometry_shader4
  13565. if (_glewStrSame3(&pos, &len, (const GLubyte*)"geometry_shader4", 16))
  13566. {
  13567. ret = GLEW_EXT_geometry_shader4;
  13568. continue;
  13569. }
  13570. #endif
  13571. #ifdef GL_EXT_gpu_program_parameters
  13572. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_program_parameters", 22))
  13573. {
  13574. ret = GLEW_EXT_gpu_program_parameters;
  13575. continue;
  13576. }
  13577. #endif
  13578. #ifdef GL_EXT_gpu_shader4
  13579. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_shader4", 11))
  13580. {
  13581. ret = GLEW_EXT_gpu_shader4;
  13582. continue;
  13583. }
  13584. #endif
  13585. #ifdef GL_EXT_histogram
  13586. if (_glewStrSame3(&pos, &len, (const GLubyte*)"histogram", 9))
  13587. {
  13588. ret = GLEW_EXT_histogram;
  13589. continue;
  13590. }
  13591. #endif
  13592. #ifdef GL_EXT_index_array_formats
  13593. if (_glewStrSame3(&pos, &len, (const GLubyte*)"index_array_formats", 19))
  13594. {
  13595. ret = GLEW_EXT_index_array_formats;
  13596. continue;
  13597. }
  13598. #endif
  13599. #ifdef GL_EXT_index_func
  13600. if (_glewStrSame3(&pos, &len, (const GLubyte*)"index_func", 10))
  13601. {
  13602. ret = GLEW_EXT_index_func;
  13603. continue;
  13604. }
  13605. #endif
  13606. #ifdef GL_EXT_index_material
  13607. if (_glewStrSame3(&pos, &len, (const GLubyte*)"index_material", 14))
  13608. {
  13609. ret = GLEW_EXT_index_material;
  13610. continue;
  13611. }
  13612. #endif
  13613. #ifdef GL_EXT_index_texture
  13614. if (_glewStrSame3(&pos, &len, (const GLubyte*)"index_texture", 13))
  13615. {
  13616. ret = GLEW_EXT_index_texture;
  13617. continue;
  13618. }
  13619. #endif
  13620. #ifdef GL_EXT_light_texture
  13621. if (_glewStrSame3(&pos, &len, (const GLubyte*)"light_texture", 13))
  13622. {
  13623. ret = GLEW_EXT_light_texture;
  13624. continue;
  13625. }
  13626. #endif
  13627. #ifdef GL_EXT_misc_attribute
  13628. if (_glewStrSame3(&pos, &len, (const GLubyte*)"misc_attribute", 14))
  13629. {
  13630. ret = GLEW_EXT_misc_attribute;
  13631. continue;
  13632. }
  13633. #endif
  13634. #ifdef GL_EXT_multi_draw_arrays
  13635. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multi_draw_arrays", 17))
  13636. {
  13637. ret = GLEW_EXT_multi_draw_arrays;
  13638. continue;
  13639. }
  13640. #endif
  13641. #ifdef GL_EXT_multisample
  13642. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  13643. {
  13644. ret = GLEW_EXT_multisample;
  13645. continue;
  13646. }
  13647. #endif
  13648. #ifdef GL_EXT_packed_depth_stencil
  13649. if (_glewStrSame3(&pos, &len, (const GLubyte*)"packed_depth_stencil", 20))
  13650. {
  13651. ret = GLEW_EXT_packed_depth_stencil;
  13652. continue;
  13653. }
  13654. #endif
  13655. #ifdef GL_EXT_packed_float
  13656. if (_glewStrSame3(&pos, &len, (const GLubyte*)"packed_float", 12))
  13657. {
  13658. ret = GLEW_EXT_packed_float;
  13659. continue;
  13660. }
  13661. #endif
  13662. #ifdef GL_EXT_packed_pixels
  13663. if (_glewStrSame3(&pos, &len, (const GLubyte*)"packed_pixels", 13))
  13664. {
  13665. ret = GLEW_EXT_packed_pixels;
  13666. continue;
  13667. }
  13668. #endif
  13669. #ifdef GL_EXT_paletted_texture
  13670. if (_glewStrSame3(&pos, &len, (const GLubyte*)"paletted_texture", 16))
  13671. {
  13672. ret = GLEW_EXT_paletted_texture;
  13673. continue;
  13674. }
  13675. #endif
  13676. #ifdef GL_EXT_pixel_buffer_object
  13677. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_buffer_object", 19))
  13678. {
  13679. ret = GLEW_EXT_pixel_buffer_object;
  13680. continue;
  13681. }
  13682. #endif
  13683. #ifdef GL_EXT_pixel_transform
  13684. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_transform", 15))
  13685. {
  13686. ret = GLEW_EXT_pixel_transform;
  13687. continue;
  13688. }
  13689. #endif
  13690. #ifdef GL_EXT_pixel_transform_color_table
  13691. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_transform_color_table", 27))
  13692. {
  13693. ret = GLEW_EXT_pixel_transform_color_table;
  13694. continue;
  13695. }
  13696. #endif
  13697. #ifdef GL_EXT_point_parameters
  13698. if (_glewStrSame3(&pos, &len, (const GLubyte*)"point_parameters", 16))
  13699. {
  13700. ret = GLEW_EXT_point_parameters;
  13701. continue;
  13702. }
  13703. #endif
  13704. #ifdef GL_EXT_polygon_offset
  13705. if (_glewStrSame3(&pos, &len, (const GLubyte*)"polygon_offset", 14))
  13706. {
  13707. ret = GLEW_EXT_polygon_offset;
  13708. continue;
  13709. }
  13710. #endif
  13711. #ifdef GL_EXT_provoking_vertex
  13712. if (_glewStrSame3(&pos, &len, (const GLubyte*)"provoking_vertex", 16))
  13713. {
  13714. ret = GLEW_EXT_provoking_vertex;
  13715. continue;
  13716. }
  13717. #endif
  13718. #ifdef GL_EXT_rescale_normal
  13719. if (_glewStrSame3(&pos, &len, (const GLubyte*)"rescale_normal", 14))
  13720. {
  13721. ret = GLEW_EXT_rescale_normal;
  13722. continue;
  13723. }
  13724. #endif
  13725. #ifdef GL_EXT_scene_marker
  13726. if (_glewStrSame3(&pos, &len, (const GLubyte*)"scene_marker", 12))
  13727. {
  13728. ret = GLEW_EXT_scene_marker;
  13729. continue;
  13730. }
  13731. #endif
  13732. #ifdef GL_EXT_secondary_color
  13733. if (_glewStrSame3(&pos, &len, (const GLubyte*)"secondary_color", 15))
  13734. {
  13735. ret = GLEW_EXT_secondary_color;
  13736. continue;
  13737. }
  13738. #endif
  13739. #ifdef GL_EXT_separate_shader_objects
  13740. if (_glewStrSame3(&pos, &len, (const GLubyte*)"separate_shader_objects", 23))
  13741. {
  13742. ret = GLEW_EXT_separate_shader_objects;
  13743. continue;
  13744. }
  13745. #endif
  13746. #ifdef GL_EXT_separate_specular_color
  13747. if (_glewStrSame3(&pos, &len, (const GLubyte*)"separate_specular_color", 23))
  13748. {
  13749. ret = GLEW_EXT_separate_specular_color;
  13750. continue;
  13751. }
  13752. #endif
  13753. #ifdef GL_EXT_shader_image_load_store
  13754. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_image_load_store", 23))
  13755. {
  13756. ret = GLEW_EXT_shader_image_load_store;
  13757. continue;
  13758. }
  13759. #endif
  13760. #ifdef GL_EXT_shadow_funcs
  13761. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shadow_funcs", 12))
  13762. {
  13763. ret = GLEW_EXT_shadow_funcs;
  13764. continue;
  13765. }
  13766. #endif
  13767. #ifdef GL_EXT_shared_texture_palette
  13768. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shared_texture_palette", 22))
  13769. {
  13770. ret = GLEW_EXT_shared_texture_palette;
  13771. continue;
  13772. }
  13773. #endif
  13774. #ifdef GL_EXT_stencil_clear_tag
  13775. if (_glewStrSame3(&pos, &len, (const GLubyte*)"stencil_clear_tag", 17))
  13776. {
  13777. ret = GLEW_EXT_stencil_clear_tag;
  13778. continue;
  13779. }
  13780. #endif
  13781. #ifdef GL_EXT_stencil_two_side
  13782. if (_glewStrSame3(&pos, &len, (const GLubyte*)"stencil_two_side", 16))
  13783. {
  13784. ret = GLEW_EXT_stencil_two_side;
  13785. continue;
  13786. }
  13787. #endif
  13788. #ifdef GL_EXT_stencil_wrap
  13789. if (_glewStrSame3(&pos, &len, (const GLubyte*)"stencil_wrap", 12))
  13790. {
  13791. ret = GLEW_EXT_stencil_wrap;
  13792. continue;
  13793. }
  13794. #endif
  13795. #ifdef GL_EXT_subtexture
  13796. if (_glewStrSame3(&pos, &len, (const GLubyte*)"subtexture", 10))
  13797. {
  13798. ret = GLEW_EXT_subtexture;
  13799. continue;
  13800. }
  13801. #endif
  13802. #ifdef GL_EXT_texture
  13803. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture", 7))
  13804. {
  13805. ret = GLEW_EXT_texture;
  13806. continue;
  13807. }
  13808. #endif
  13809. #ifdef GL_EXT_texture3D
  13810. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture3D", 9))
  13811. {
  13812. ret = GLEW_EXT_texture3D;
  13813. continue;
  13814. }
  13815. #endif
  13816. #ifdef GL_EXT_texture_array
  13817. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_array", 13))
  13818. {
  13819. ret = GLEW_EXT_texture_array;
  13820. continue;
  13821. }
  13822. #endif
  13823. #ifdef GL_EXT_texture_buffer_object
  13824. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_buffer_object", 21))
  13825. {
  13826. ret = GLEW_EXT_texture_buffer_object;
  13827. continue;
  13828. }
  13829. #endif
  13830. #ifdef GL_EXT_texture_compression_dxt1
  13831. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_dxt1", 24))
  13832. {
  13833. ret = GLEW_EXT_texture_compression_dxt1;
  13834. continue;
  13835. }
  13836. #endif
  13837. #ifdef GL_EXT_texture_compression_latc
  13838. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_latc", 24))
  13839. {
  13840. ret = GLEW_EXT_texture_compression_latc;
  13841. continue;
  13842. }
  13843. #endif
  13844. #ifdef GL_EXT_texture_compression_rgtc
  13845. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_rgtc", 24))
  13846. {
  13847. ret = GLEW_EXT_texture_compression_rgtc;
  13848. continue;
  13849. }
  13850. #endif
  13851. #ifdef GL_EXT_texture_compression_s3tc
  13852. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_s3tc", 24))
  13853. {
  13854. ret = GLEW_EXT_texture_compression_s3tc;
  13855. continue;
  13856. }
  13857. #endif
  13858. #ifdef GL_EXT_texture_cube_map
  13859. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_cube_map", 16))
  13860. {
  13861. ret = GLEW_EXT_texture_cube_map;
  13862. continue;
  13863. }
  13864. #endif
  13865. #ifdef GL_EXT_texture_edge_clamp
  13866. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_edge_clamp", 18))
  13867. {
  13868. ret = GLEW_EXT_texture_edge_clamp;
  13869. continue;
  13870. }
  13871. #endif
  13872. #ifdef GL_EXT_texture_env
  13873. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env", 11))
  13874. {
  13875. ret = GLEW_EXT_texture_env;
  13876. continue;
  13877. }
  13878. #endif
  13879. #ifdef GL_EXT_texture_env_add
  13880. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_add", 15))
  13881. {
  13882. ret = GLEW_EXT_texture_env_add;
  13883. continue;
  13884. }
  13885. #endif
  13886. #ifdef GL_EXT_texture_env_combine
  13887. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_combine", 19))
  13888. {
  13889. ret = GLEW_EXT_texture_env_combine;
  13890. continue;
  13891. }
  13892. #endif
  13893. #ifdef GL_EXT_texture_env_dot3
  13894. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_dot3", 16))
  13895. {
  13896. ret = GLEW_EXT_texture_env_dot3;
  13897. continue;
  13898. }
  13899. #endif
  13900. #ifdef GL_EXT_texture_filter_anisotropic
  13901. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_filter_anisotropic", 26))
  13902. {
  13903. ret = GLEW_EXT_texture_filter_anisotropic;
  13904. continue;
  13905. }
  13906. #endif
  13907. #ifdef GL_EXT_texture_integer
  13908. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_integer", 15))
  13909. {
  13910. ret = GLEW_EXT_texture_integer;
  13911. continue;
  13912. }
  13913. #endif
  13914. #ifdef GL_EXT_texture_lod_bias
  13915. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_lod_bias", 16))
  13916. {
  13917. ret = GLEW_EXT_texture_lod_bias;
  13918. continue;
  13919. }
  13920. #endif
  13921. #ifdef GL_EXT_texture_mirror_clamp
  13922. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_mirror_clamp", 20))
  13923. {
  13924. ret = GLEW_EXT_texture_mirror_clamp;
  13925. continue;
  13926. }
  13927. #endif
  13928. #ifdef GL_EXT_texture_object
  13929. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_object", 14))
  13930. {
  13931. ret = GLEW_EXT_texture_object;
  13932. continue;
  13933. }
  13934. #endif
  13935. #ifdef GL_EXT_texture_perturb_normal
  13936. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_perturb_normal", 22))
  13937. {
  13938. ret = GLEW_EXT_texture_perturb_normal;
  13939. continue;
  13940. }
  13941. #endif
  13942. #ifdef GL_EXT_texture_rectangle
  13943. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_rectangle", 17))
  13944. {
  13945. ret = GLEW_EXT_texture_rectangle;
  13946. continue;
  13947. }
  13948. #endif
  13949. #ifdef GL_EXT_texture_sRGB
  13950. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_sRGB", 12))
  13951. {
  13952. ret = GLEW_EXT_texture_sRGB;
  13953. continue;
  13954. }
  13955. #endif
  13956. #ifdef GL_EXT_texture_sRGB_decode
  13957. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_sRGB_decode", 19))
  13958. {
  13959. ret = GLEW_EXT_texture_sRGB_decode;
  13960. continue;
  13961. }
  13962. #endif
  13963. #ifdef GL_EXT_texture_shared_exponent
  13964. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_shared_exponent", 23))
  13965. {
  13966. ret = GLEW_EXT_texture_shared_exponent;
  13967. continue;
  13968. }
  13969. #endif
  13970. #ifdef GL_EXT_texture_snorm
  13971. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_snorm", 13))
  13972. {
  13973. ret = GLEW_EXT_texture_snorm;
  13974. continue;
  13975. }
  13976. #endif
  13977. #ifdef GL_EXT_texture_swizzle
  13978. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_swizzle", 15))
  13979. {
  13980. ret = GLEW_EXT_texture_swizzle;
  13981. continue;
  13982. }
  13983. #endif
  13984. #ifdef GL_EXT_timer_query
  13985. if (_glewStrSame3(&pos, &len, (const GLubyte*)"timer_query", 11))
  13986. {
  13987. ret = GLEW_EXT_timer_query;
  13988. continue;
  13989. }
  13990. #endif
  13991. #ifdef GL_EXT_transform_feedback
  13992. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback", 18))
  13993. {
  13994. ret = GLEW_EXT_transform_feedback;
  13995. continue;
  13996. }
  13997. #endif
  13998. #ifdef GL_EXT_vertex_array
  13999. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array", 12))
  14000. {
  14001. ret = GLEW_EXT_vertex_array;
  14002. continue;
  14003. }
  14004. #endif
  14005. #ifdef GL_EXT_vertex_array_bgra
  14006. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_bgra", 17))
  14007. {
  14008. ret = GLEW_EXT_vertex_array_bgra;
  14009. continue;
  14010. }
  14011. #endif
  14012. #ifdef GL_EXT_vertex_attrib_64bit
  14013. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_attrib_64bit", 19))
  14014. {
  14015. ret = GLEW_EXT_vertex_attrib_64bit;
  14016. continue;
  14017. }
  14018. #endif
  14019. #ifdef GL_EXT_vertex_shader
  14020. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_shader", 13))
  14021. {
  14022. ret = GLEW_EXT_vertex_shader;
  14023. continue;
  14024. }
  14025. #endif
  14026. #ifdef GL_EXT_vertex_weighting
  14027. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_weighting", 16))
  14028. {
  14029. ret = GLEW_EXT_vertex_weighting;
  14030. continue;
  14031. }
  14032. #endif
  14033. #ifdef GL_EXT_x11_sync_object
  14034. if (_glewStrSame3(&pos, &len, (const GLubyte*)"x11_sync_object", 15))
  14035. {
  14036. ret = GLEW_EXT_x11_sync_object;
  14037. continue;
  14038. }
  14039. #endif
  14040. }
  14041. if (_glewStrSame2(&pos, &len, (const GLubyte*)"GREMEDY_", 8))
  14042. {
  14043. #ifdef GL_GREMEDY_frame_terminator
  14044. if (_glewStrSame3(&pos, &len, (const GLubyte*)"frame_terminator", 16))
  14045. {
  14046. ret = GLEW_GREMEDY_frame_terminator;
  14047. continue;
  14048. }
  14049. #endif
  14050. #ifdef GL_GREMEDY_string_marker
  14051. if (_glewStrSame3(&pos, &len, (const GLubyte*)"string_marker", 13))
  14052. {
  14053. ret = GLEW_GREMEDY_string_marker;
  14054. continue;
  14055. }
  14056. #endif
  14057. }
  14058. if (_glewStrSame2(&pos, &len, (const GLubyte*)"HP_", 3))
  14059. {
  14060. #ifdef GL_HP_convolution_border_modes
  14061. if (_glewStrSame3(&pos, &len, (const GLubyte*)"convolution_border_modes", 24))
  14062. {
  14063. ret = GLEW_HP_convolution_border_modes;
  14064. continue;
  14065. }
  14066. #endif
  14067. #ifdef GL_HP_image_transform
  14068. if (_glewStrSame3(&pos, &len, (const GLubyte*)"image_transform", 15))
  14069. {
  14070. ret = GLEW_HP_image_transform;
  14071. continue;
  14072. }
  14073. #endif
  14074. #ifdef GL_HP_occlusion_test
  14075. if (_glewStrSame3(&pos, &len, (const GLubyte*)"occlusion_test", 14))
  14076. {
  14077. ret = GLEW_HP_occlusion_test;
  14078. continue;
  14079. }
  14080. #endif
  14081. #ifdef GL_HP_texture_lighting
  14082. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_lighting", 16))
  14083. {
  14084. ret = GLEW_HP_texture_lighting;
  14085. continue;
  14086. }
  14087. #endif
  14088. }
  14089. if (_glewStrSame2(&pos, &len, (const GLubyte*)"IBM_", 4))
  14090. {
  14091. #ifdef GL_IBM_cull_vertex
  14092. if (_glewStrSame3(&pos, &len, (const GLubyte*)"cull_vertex", 11))
  14093. {
  14094. ret = GLEW_IBM_cull_vertex;
  14095. continue;
  14096. }
  14097. #endif
  14098. #ifdef GL_IBM_multimode_draw_arrays
  14099. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multimode_draw_arrays", 21))
  14100. {
  14101. ret = GLEW_IBM_multimode_draw_arrays;
  14102. continue;
  14103. }
  14104. #endif
  14105. #ifdef GL_IBM_rasterpos_clip
  14106. if (_glewStrSame3(&pos, &len, (const GLubyte*)"rasterpos_clip", 14))
  14107. {
  14108. ret = GLEW_IBM_rasterpos_clip;
  14109. continue;
  14110. }
  14111. #endif
  14112. #ifdef GL_IBM_static_data
  14113. if (_glewStrSame3(&pos, &len, (const GLubyte*)"static_data", 11))
  14114. {
  14115. ret = GLEW_IBM_static_data;
  14116. continue;
  14117. }
  14118. #endif
  14119. #ifdef GL_IBM_texture_mirrored_repeat
  14120. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_mirrored_repeat", 23))
  14121. {
  14122. ret = GLEW_IBM_texture_mirrored_repeat;
  14123. continue;
  14124. }
  14125. #endif
  14126. #ifdef GL_IBM_vertex_array_lists
  14127. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_lists", 18))
  14128. {
  14129. ret = GLEW_IBM_vertex_array_lists;
  14130. continue;
  14131. }
  14132. #endif
  14133. }
  14134. if (_glewStrSame2(&pos, &len, (const GLubyte*)"INGR_", 5))
  14135. {
  14136. #ifdef GL_INGR_color_clamp
  14137. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_clamp", 11))
  14138. {
  14139. ret = GLEW_INGR_color_clamp;
  14140. continue;
  14141. }
  14142. #endif
  14143. #ifdef GL_INGR_interlace_read
  14144. if (_glewStrSame3(&pos, &len, (const GLubyte*)"interlace_read", 14))
  14145. {
  14146. ret = GLEW_INGR_interlace_read;
  14147. continue;
  14148. }
  14149. #endif
  14150. }
  14151. if (_glewStrSame2(&pos, &len, (const GLubyte*)"INTEL_", 6))
  14152. {
  14153. #ifdef GL_INTEL_map_texture
  14154. if (_glewStrSame3(&pos, &len, (const GLubyte*)"map_texture", 11))
  14155. {
  14156. ret = GLEW_INTEL_map_texture;
  14157. continue;
  14158. }
  14159. #endif
  14160. #ifdef GL_INTEL_parallel_arrays
  14161. if (_glewStrSame3(&pos, &len, (const GLubyte*)"parallel_arrays", 15))
  14162. {
  14163. ret = GLEW_INTEL_parallel_arrays;
  14164. continue;
  14165. }
  14166. #endif
  14167. #ifdef GL_INTEL_texture_scissor
  14168. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_scissor", 15))
  14169. {
  14170. ret = GLEW_INTEL_texture_scissor;
  14171. continue;
  14172. }
  14173. #endif
  14174. }
  14175. if (_glewStrSame2(&pos, &len, (const GLubyte*)"KHR_", 4))
  14176. {
  14177. #ifdef GL_KHR_debug
  14178. if (_glewStrSame3(&pos, &len, (const GLubyte*)"debug", 5))
  14179. {
  14180. ret = GLEW_KHR_debug;
  14181. continue;
  14182. }
  14183. #endif
  14184. #ifdef GL_KHR_texture_compression_astc_ldr
  14185. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_astc_ldr", 28))
  14186. {
  14187. ret = GLEW_KHR_texture_compression_astc_ldr;
  14188. continue;
  14189. }
  14190. #endif
  14191. }
  14192. if (_glewStrSame2(&pos, &len, (const GLubyte*)"KTX_", 4))
  14193. {
  14194. #ifdef GL_KTX_buffer_region
  14195. if (_glewStrSame3(&pos, &len, (const GLubyte*)"buffer_region", 13))
  14196. {
  14197. ret = GLEW_KTX_buffer_region;
  14198. continue;
  14199. }
  14200. #endif
  14201. }
  14202. if (_glewStrSame2(&pos, &len, (const GLubyte*)"MESAX_", 6))
  14203. {
  14204. #ifdef GL_MESAX_texture_stack
  14205. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_stack", 13))
  14206. {
  14207. ret = GLEW_MESAX_texture_stack;
  14208. continue;
  14209. }
  14210. #endif
  14211. }
  14212. if (_glewStrSame2(&pos, &len, (const GLubyte*)"MESA_", 5))
  14213. {
  14214. #ifdef GL_MESA_pack_invert
  14215. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pack_invert", 11))
  14216. {
  14217. ret = GLEW_MESA_pack_invert;
  14218. continue;
  14219. }
  14220. #endif
  14221. #ifdef GL_MESA_resize_buffers
  14222. if (_glewStrSame3(&pos, &len, (const GLubyte*)"resize_buffers", 14))
  14223. {
  14224. ret = GLEW_MESA_resize_buffers;
  14225. continue;
  14226. }
  14227. #endif
  14228. #ifdef GL_MESA_window_pos
  14229. if (_glewStrSame3(&pos, &len, (const GLubyte*)"window_pos", 10))
  14230. {
  14231. ret = GLEW_MESA_window_pos;
  14232. continue;
  14233. }
  14234. #endif
  14235. #ifdef GL_MESA_ycbcr_texture
  14236. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ycbcr_texture", 13))
  14237. {
  14238. ret = GLEW_MESA_ycbcr_texture;
  14239. continue;
  14240. }
  14241. #endif
  14242. }
  14243. if (_glewStrSame2(&pos, &len, (const GLubyte*)"NVX_", 4))
  14244. {
  14245. #ifdef GL_NVX_conditional_render
  14246. if (_glewStrSame3(&pos, &len, (const GLubyte*)"conditional_render", 18))
  14247. {
  14248. ret = GLEW_NVX_conditional_render;
  14249. continue;
  14250. }
  14251. #endif
  14252. #ifdef GL_NVX_gpu_memory_info
  14253. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_memory_info", 15))
  14254. {
  14255. ret = GLEW_NVX_gpu_memory_info;
  14256. continue;
  14257. }
  14258. #endif
  14259. }
  14260. if (_glewStrSame2(&pos, &len, (const GLubyte*)"NV_", 3))
  14261. {
  14262. #ifdef GL_NV_bindless_multi_draw_indirect
  14263. if (_glewStrSame3(&pos, &len, (const GLubyte*)"bindless_multi_draw_indirect", 28))
  14264. {
  14265. ret = GLEW_NV_bindless_multi_draw_indirect;
  14266. continue;
  14267. }
  14268. #endif
  14269. #ifdef GL_NV_bindless_texture
  14270. if (_glewStrSame3(&pos, &len, (const GLubyte*)"bindless_texture", 16))
  14271. {
  14272. ret = GLEW_NV_bindless_texture;
  14273. continue;
  14274. }
  14275. #endif
  14276. #ifdef GL_NV_blend_equation_advanced
  14277. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_equation_advanced", 23))
  14278. {
  14279. ret = GLEW_NV_blend_equation_advanced;
  14280. continue;
  14281. }
  14282. #endif
  14283. #ifdef GL_NV_blend_equation_advanced_coherent
  14284. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_equation_advanced_coherent", 32))
  14285. {
  14286. ret = GLEW_NV_blend_equation_advanced_coherent;
  14287. continue;
  14288. }
  14289. #endif
  14290. #ifdef GL_NV_blend_square
  14291. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_square", 12))
  14292. {
  14293. ret = GLEW_NV_blend_square;
  14294. continue;
  14295. }
  14296. #endif
  14297. #ifdef GL_NV_compute_program5
  14298. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compute_program5", 16))
  14299. {
  14300. ret = GLEW_NV_compute_program5;
  14301. continue;
  14302. }
  14303. #endif
  14304. #ifdef GL_NV_conditional_render
  14305. if (_glewStrSame3(&pos, &len, (const GLubyte*)"conditional_render", 18))
  14306. {
  14307. ret = GLEW_NV_conditional_render;
  14308. continue;
  14309. }
  14310. #endif
  14311. #ifdef GL_NV_copy_depth_to_color
  14312. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_depth_to_color", 19))
  14313. {
  14314. ret = GLEW_NV_copy_depth_to_color;
  14315. continue;
  14316. }
  14317. #endif
  14318. #ifdef GL_NV_copy_image
  14319. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_image", 10))
  14320. {
  14321. ret = GLEW_NV_copy_image;
  14322. continue;
  14323. }
  14324. #endif
  14325. #ifdef GL_NV_deep_texture3D
  14326. if (_glewStrSame3(&pos, &len, (const GLubyte*)"deep_texture3D", 14))
  14327. {
  14328. ret = GLEW_NV_deep_texture3D;
  14329. continue;
  14330. }
  14331. #endif
  14332. #ifdef GL_NV_depth_buffer_float
  14333. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_buffer_float", 18))
  14334. {
  14335. ret = GLEW_NV_depth_buffer_float;
  14336. continue;
  14337. }
  14338. #endif
  14339. #ifdef GL_NV_depth_clamp
  14340. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_clamp", 11))
  14341. {
  14342. ret = GLEW_NV_depth_clamp;
  14343. continue;
  14344. }
  14345. #endif
  14346. #ifdef GL_NV_depth_range_unclamped
  14347. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_range_unclamped", 21))
  14348. {
  14349. ret = GLEW_NV_depth_range_unclamped;
  14350. continue;
  14351. }
  14352. #endif
  14353. #ifdef GL_NV_draw_texture
  14354. if (_glewStrSame3(&pos, &len, (const GLubyte*)"draw_texture", 12))
  14355. {
  14356. ret = GLEW_NV_draw_texture;
  14357. continue;
  14358. }
  14359. #endif
  14360. #ifdef GL_NV_evaluators
  14361. if (_glewStrSame3(&pos, &len, (const GLubyte*)"evaluators", 10))
  14362. {
  14363. ret = GLEW_NV_evaluators;
  14364. continue;
  14365. }
  14366. #endif
  14367. #ifdef GL_NV_explicit_multisample
  14368. if (_glewStrSame3(&pos, &len, (const GLubyte*)"explicit_multisample", 20))
  14369. {
  14370. ret = GLEW_NV_explicit_multisample;
  14371. continue;
  14372. }
  14373. #endif
  14374. #ifdef GL_NV_fence
  14375. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fence", 5))
  14376. {
  14377. ret = GLEW_NV_fence;
  14378. continue;
  14379. }
  14380. #endif
  14381. #ifdef GL_NV_float_buffer
  14382. if (_glewStrSame3(&pos, &len, (const GLubyte*)"float_buffer", 12))
  14383. {
  14384. ret = GLEW_NV_float_buffer;
  14385. continue;
  14386. }
  14387. #endif
  14388. #ifdef GL_NV_fog_distance
  14389. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fog_distance", 12))
  14390. {
  14391. ret = GLEW_NV_fog_distance;
  14392. continue;
  14393. }
  14394. #endif
  14395. #ifdef GL_NV_fragment_program
  14396. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_program", 16))
  14397. {
  14398. ret = GLEW_NV_fragment_program;
  14399. continue;
  14400. }
  14401. #endif
  14402. #ifdef GL_NV_fragment_program2
  14403. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_program2", 17))
  14404. {
  14405. ret = GLEW_NV_fragment_program2;
  14406. continue;
  14407. }
  14408. #endif
  14409. #ifdef GL_NV_fragment_program4
  14410. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_program4", 17))
  14411. {
  14412. ret = GLEW_NV_fragment_program4;
  14413. continue;
  14414. }
  14415. #endif
  14416. #ifdef GL_NV_fragment_program_option
  14417. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_program_option", 23))
  14418. {
  14419. ret = GLEW_NV_fragment_program_option;
  14420. continue;
  14421. }
  14422. #endif
  14423. #ifdef GL_NV_framebuffer_multisample_coverage
  14424. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_multisample_coverage", 32))
  14425. {
  14426. ret = GLEW_NV_framebuffer_multisample_coverage;
  14427. continue;
  14428. }
  14429. #endif
  14430. #ifdef GL_NV_geometry_program4
  14431. if (_glewStrSame3(&pos, &len, (const GLubyte*)"geometry_program4", 17))
  14432. {
  14433. ret = GLEW_NV_geometry_program4;
  14434. continue;
  14435. }
  14436. #endif
  14437. #ifdef GL_NV_geometry_shader4
  14438. if (_glewStrSame3(&pos, &len, (const GLubyte*)"geometry_shader4", 16))
  14439. {
  14440. ret = GLEW_NV_geometry_shader4;
  14441. continue;
  14442. }
  14443. #endif
  14444. #ifdef GL_NV_gpu_program4
  14445. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_program4", 12))
  14446. {
  14447. ret = GLEW_NV_gpu_program4;
  14448. continue;
  14449. }
  14450. #endif
  14451. #ifdef GL_NV_gpu_program5
  14452. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_program5", 12))
  14453. {
  14454. ret = GLEW_NV_gpu_program5;
  14455. continue;
  14456. }
  14457. #endif
  14458. #ifdef GL_NV_gpu_program5_mem_extended
  14459. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_program5_mem_extended", 25))
  14460. {
  14461. ret = GLEW_NV_gpu_program5_mem_extended;
  14462. continue;
  14463. }
  14464. #endif
  14465. #ifdef GL_NV_gpu_program_fp64
  14466. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_program_fp64", 16))
  14467. {
  14468. ret = GLEW_NV_gpu_program_fp64;
  14469. continue;
  14470. }
  14471. #endif
  14472. #ifdef GL_NV_gpu_shader5
  14473. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_shader5", 11))
  14474. {
  14475. ret = GLEW_NV_gpu_shader5;
  14476. continue;
  14477. }
  14478. #endif
  14479. #ifdef GL_NV_half_float
  14480. if (_glewStrSame3(&pos, &len, (const GLubyte*)"half_float", 10))
  14481. {
  14482. ret = GLEW_NV_half_float;
  14483. continue;
  14484. }
  14485. #endif
  14486. #ifdef GL_NV_light_max_exponent
  14487. if (_glewStrSame3(&pos, &len, (const GLubyte*)"light_max_exponent", 18))
  14488. {
  14489. ret = GLEW_NV_light_max_exponent;
  14490. continue;
  14491. }
  14492. #endif
  14493. #ifdef GL_NV_multisample_coverage
  14494. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample_coverage", 20))
  14495. {
  14496. ret = GLEW_NV_multisample_coverage;
  14497. continue;
  14498. }
  14499. #endif
  14500. #ifdef GL_NV_multisample_filter_hint
  14501. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample_filter_hint", 23))
  14502. {
  14503. ret = GLEW_NV_multisample_filter_hint;
  14504. continue;
  14505. }
  14506. #endif
  14507. #ifdef GL_NV_occlusion_query
  14508. if (_glewStrSame3(&pos, &len, (const GLubyte*)"occlusion_query", 15))
  14509. {
  14510. ret = GLEW_NV_occlusion_query;
  14511. continue;
  14512. }
  14513. #endif
  14514. #ifdef GL_NV_packed_depth_stencil
  14515. if (_glewStrSame3(&pos, &len, (const GLubyte*)"packed_depth_stencil", 20))
  14516. {
  14517. ret = GLEW_NV_packed_depth_stencil;
  14518. continue;
  14519. }
  14520. #endif
  14521. #ifdef GL_NV_parameter_buffer_object
  14522. if (_glewStrSame3(&pos, &len, (const GLubyte*)"parameter_buffer_object", 23))
  14523. {
  14524. ret = GLEW_NV_parameter_buffer_object;
  14525. continue;
  14526. }
  14527. #endif
  14528. #ifdef GL_NV_parameter_buffer_object2
  14529. if (_glewStrSame3(&pos, &len, (const GLubyte*)"parameter_buffer_object2", 24))
  14530. {
  14531. ret = GLEW_NV_parameter_buffer_object2;
  14532. continue;
  14533. }
  14534. #endif
  14535. #ifdef GL_NV_path_rendering
  14536. if (_glewStrSame3(&pos, &len, (const GLubyte*)"path_rendering", 14))
  14537. {
  14538. ret = GLEW_NV_path_rendering;
  14539. continue;
  14540. }
  14541. #endif
  14542. #ifdef GL_NV_pixel_data_range
  14543. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_data_range", 16))
  14544. {
  14545. ret = GLEW_NV_pixel_data_range;
  14546. continue;
  14547. }
  14548. #endif
  14549. #ifdef GL_NV_point_sprite
  14550. if (_glewStrSame3(&pos, &len, (const GLubyte*)"point_sprite", 12))
  14551. {
  14552. ret = GLEW_NV_point_sprite;
  14553. continue;
  14554. }
  14555. #endif
  14556. #ifdef GL_NV_present_video
  14557. if (_glewStrSame3(&pos, &len, (const GLubyte*)"present_video", 13))
  14558. {
  14559. ret = GLEW_NV_present_video;
  14560. continue;
  14561. }
  14562. #endif
  14563. #ifdef GL_NV_primitive_restart
  14564. if (_glewStrSame3(&pos, &len, (const GLubyte*)"primitive_restart", 17))
  14565. {
  14566. ret = GLEW_NV_primitive_restart;
  14567. continue;
  14568. }
  14569. #endif
  14570. #ifdef GL_NV_register_combiners
  14571. if (_glewStrSame3(&pos, &len, (const GLubyte*)"register_combiners", 18))
  14572. {
  14573. ret = GLEW_NV_register_combiners;
  14574. continue;
  14575. }
  14576. #endif
  14577. #ifdef GL_NV_register_combiners2
  14578. if (_glewStrSame3(&pos, &len, (const GLubyte*)"register_combiners2", 19))
  14579. {
  14580. ret = GLEW_NV_register_combiners2;
  14581. continue;
  14582. }
  14583. #endif
  14584. #ifdef GL_NV_shader_atomic_counters
  14585. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_atomic_counters", 22))
  14586. {
  14587. ret = GLEW_NV_shader_atomic_counters;
  14588. continue;
  14589. }
  14590. #endif
  14591. #ifdef GL_NV_shader_atomic_float
  14592. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_atomic_float", 19))
  14593. {
  14594. ret = GLEW_NV_shader_atomic_float;
  14595. continue;
  14596. }
  14597. #endif
  14598. #ifdef GL_NV_shader_buffer_load
  14599. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_buffer_load", 18))
  14600. {
  14601. ret = GLEW_NV_shader_buffer_load;
  14602. continue;
  14603. }
  14604. #endif
  14605. #ifdef GL_NV_shader_storage_buffer_object
  14606. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shader_storage_buffer_object", 28))
  14607. {
  14608. ret = GLEW_NV_shader_storage_buffer_object;
  14609. continue;
  14610. }
  14611. #endif
  14612. #ifdef GL_NV_tessellation_program5
  14613. if (_glewStrSame3(&pos, &len, (const GLubyte*)"tessellation_program5", 21))
  14614. {
  14615. ret = GLEW_NV_tessellation_program5;
  14616. continue;
  14617. }
  14618. #endif
  14619. #ifdef GL_NV_texgen_emboss
  14620. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texgen_emboss", 13))
  14621. {
  14622. ret = GLEW_NV_texgen_emboss;
  14623. continue;
  14624. }
  14625. #endif
  14626. #ifdef GL_NV_texgen_reflection
  14627. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texgen_reflection", 17))
  14628. {
  14629. ret = GLEW_NV_texgen_reflection;
  14630. continue;
  14631. }
  14632. #endif
  14633. #ifdef GL_NV_texture_barrier
  14634. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_barrier", 15))
  14635. {
  14636. ret = GLEW_NV_texture_barrier;
  14637. continue;
  14638. }
  14639. #endif
  14640. #ifdef GL_NV_texture_compression_vtc
  14641. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_compression_vtc", 23))
  14642. {
  14643. ret = GLEW_NV_texture_compression_vtc;
  14644. continue;
  14645. }
  14646. #endif
  14647. #ifdef GL_NV_texture_env_combine4
  14648. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_env_combine4", 20))
  14649. {
  14650. ret = GLEW_NV_texture_env_combine4;
  14651. continue;
  14652. }
  14653. #endif
  14654. #ifdef GL_NV_texture_expand_normal
  14655. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_expand_normal", 21))
  14656. {
  14657. ret = GLEW_NV_texture_expand_normal;
  14658. continue;
  14659. }
  14660. #endif
  14661. #ifdef GL_NV_texture_multisample
  14662. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_multisample", 19))
  14663. {
  14664. ret = GLEW_NV_texture_multisample;
  14665. continue;
  14666. }
  14667. #endif
  14668. #ifdef GL_NV_texture_rectangle
  14669. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_rectangle", 17))
  14670. {
  14671. ret = GLEW_NV_texture_rectangle;
  14672. continue;
  14673. }
  14674. #endif
  14675. #ifdef GL_NV_texture_shader
  14676. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_shader", 14))
  14677. {
  14678. ret = GLEW_NV_texture_shader;
  14679. continue;
  14680. }
  14681. #endif
  14682. #ifdef GL_NV_texture_shader2
  14683. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_shader2", 15))
  14684. {
  14685. ret = GLEW_NV_texture_shader2;
  14686. continue;
  14687. }
  14688. #endif
  14689. #ifdef GL_NV_texture_shader3
  14690. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_shader3", 15))
  14691. {
  14692. ret = GLEW_NV_texture_shader3;
  14693. continue;
  14694. }
  14695. #endif
  14696. #ifdef GL_NV_transform_feedback
  14697. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback", 18))
  14698. {
  14699. ret = GLEW_NV_transform_feedback;
  14700. continue;
  14701. }
  14702. #endif
  14703. #ifdef GL_NV_transform_feedback2
  14704. if (_glewStrSame3(&pos, &len, (const GLubyte*)"transform_feedback2", 19))
  14705. {
  14706. ret = GLEW_NV_transform_feedback2;
  14707. continue;
  14708. }
  14709. #endif
  14710. #ifdef GL_NV_vdpau_interop
  14711. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vdpau_interop", 13))
  14712. {
  14713. ret = GLEW_NV_vdpau_interop;
  14714. continue;
  14715. }
  14716. #endif
  14717. #ifdef GL_NV_vertex_array_range
  14718. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_range", 18))
  14719. {
  14720. ret = GLEW_NV_vertex_array_range;
  14721. continue;
  14722. }
  14723. #endif
  14724. #ifdef GL_NV_vertex_array_range2
  14725. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_range2", 19))
  14726. {
  14727. ret = GLEW_NV_vertex_array_range2;
  14728. continue;
  14729. }
  14730. #endif
  14731. #ifdef GL_NV_vertex_attrib_integer_64bit
  14732. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_attrib_integer_64bit", 27))
  14733. {
  14734. ret = GLEW_NV_vertex_attrib_integer_64bit;
  14735. continue;
  14736. }
  14737. #endif
  14738. #ifdef GL_NV_vertex_buffer_unified_memory
  14739. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_buffer_unified_memory", 28))
  14740. {
  14741. ret = GLEW_NV_vertex_buffer_unified_memory;
  14742. continue;
  14743. }
  14744. #endif
  14745. #ifdef GL_NV_vertex_program
  14746. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program", 14))
  14747. {
  14748. ret = GLEW_NV_vertex_program;
  14749. continue;
  14750. }
  14751. #endif
  14752. #ifdef GL_NV_vertex_program1_1
  14753. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program1_1", 17))
  14754. {
  14755. ret = GLEW_NV_vertex_program1_1;
  14756. continue;
  14757. }
  14758. #endif
  14759. #ifdef GL_NV_vertex_program2
  14760. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program2", 15))
  14761. {
  14762. ret = GLEW_NV_vertex_program2;
  14763. continue;
  14764. }
  14765. #endif
  14766. #ifdef GL_NV_vertex_program2_option
  14767. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program2_option", 22))
  14768. {
  14769. ret = GLEW_NV_vertex_program2_option;
  14770. continue;
  14771. }
  14772. #endif
  14773. #ifdef GL_NV_vertex_program3
  14774. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program3", 15))
  14775. {
  14776. ret = GLEW_NV_vertex_program3;
  14777. continue;
  14778. }
  14779. #endif
  14780. #ifdef GL_NV_vertex_program4
  14781. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_program4", 15))
  14782. {
  14783. ret = GLEW_NV_vertex_program4;
  14784. continue;
  14785. }
  14786. #endif
  14787. #ifdef GL_NV_video_capture
  14788. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_capture", 13))
  14789. {
  14790. ret = GLEW_NV_video_capture;
  14791. continue;
  14792. }
  14793. #endif
  14794. }
  14795. if (_glewStrSame2(&pos, &len, (const GLubyte*)"OES_", 4))
  14796. {
  14797. #ifdef GL_OES_byte_coordinates
  14798. if (_glewStrSame3(&pos, &len, (const GLubyte*)"byte_coordinates", 16))
  14799. {
  14800. ret = GLEW_OES_byte_coordinates;
  14801. continue;
  14802. }
  14803. #endif
  14804. #ifdef GL_OES_compressed_paletted_texture
  14805. if (_glewStrSame3(&pos, &len, (const GLubyte*)"compressed_paletted_texture", 27))
  14806. {
  14807. ret = GLEW_OES_compressed_paletted_texture;
  14808. continue;
  14809. }
  14810. #endif
  14811. #ifdef GL_OES_read_format
  14812. if (_glewStrSame3(&pos, &len, (const GLubyte*)"read_format", 11))
  14813. {
  14814. ret = GLEW_OES_read_format;
  14815. continue;
  14816. }
  14817. #endif
  14818. #ifdef GL_OES_single_precision
  14819. if (_glewStrSame3(&pos, &len, (const GLubyte*)"single_precision", 16))
  14820. {
  14821. ret = GLEW_OES_single_precision;
  14822. continue;
  14823. }
  14824. #endif
  14825. }
  14826. if (_glewStrSame2(&pos, &len, (const GLubyte*)"OML_", 4))
  14827. {
  14828. #ifdef GL_OML_interlace
  14829. if (_glewStrSame3(&pos, &len, (const GLubyte*)"interlace", 9))
  14830. {
  14831. ret = GLEW_OML_interlace;
  14832. continue;
  14833. }
  14834. #endif
  14835. #ifdef GL_OML_resample
  14836. if (_glewStrSame3(&pos, &len, (const GLubyte*)"resample", 8))
  14837. {
  14838. ret = GLEW_OML_resample;
  14839. continue;
  14840. }
  14841. #endif
  14842. #ifdef GL_OML_subsample
  14843. if (_glewStrSame3(&pos, &len, (const GLubyte*)"subsample", 9))
  14844. {
  14845. ret = GLEW_OML_subsample;
  14846. continue;
  14847. }
  14848. #endif
  14849. }
  14850. if (_glewStrSame2(&pos, &len, (const GLubyte*)"PGI_", 4))
  14851. {
  14852. #ifdef GL_PGI_misc_hints
  14853. if (_glewStrSame3(&pos, &len, (const GLubyte*)"misc_hints", 10))
  14854. {
  14855. ret = GLEW_PGI_misc_hints;
  14856. continue;
  14857. }
  14858. #endif
  14859. #ifdef GL_PGI_vertex_hints
  14860. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_hints", 12))
  14861. {
  14862. ret = GLEW_PGI_vertex_hints;
  14863. continue;
  14864. }
  14865. #endif
  14866. }
  14867. if (_glewStrSame2(&pos, &len, (const GLubyte*)"REGAL_", 6))
  14868. {
  14869. #ifdef GL_REGAL_ES1_0_compatibility
  14870. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ES1_0_compatibility", 19))
  14871. {
  14872. ret = GLEW_REGAL_ES1_0_compatibility;
  14873. continue;
  14874. }
  14875. #endif
  14876. #ifdef GL_REGAL_ES1_1_compatibility
  14877. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ES1_1_compatibility", 19))
  14878. {
  14879. ret = GLEW_REGAL_ES1_1_compatibility;
  14880. continue;
  14881. }
  14882. #endif
  14883. #ifdef GL_REGAL_enable
  14884. if (_glewStrSame3(&pos, &len, (const GLubyte*)"enable", 6))
  14885. {
  14886. ret = GLEW_REGAL_enable;
  14887. continue;
  14888. }
  14889. #endif
  14890. #ifdef GL_REGAL_error_string
  14891. if (_glewStrSame3(&pos, &len, (const GLubyte*)"error_string", 12))
  14892. {
  14893. ret = GLEW_REGAL_error_string;
  14894. continue;
  14895. }
  14896. #endif
  14897. #ifdef GL_REGAL_extension_query
  14898. if (_glewStrSame3(&pos, &len, (const GLubyte*)"extension_query", 15))
  14899. {
  14900. ret = GLEW_REGAL_extension_query;
  14901. continue;
  14902. }
  14903. #endif
  14904. #ifdef GL_REGAL_log
  14905. if (_glewStrSame3(&pos, &len, (const GLubyte*)"log", 3))
  14906. {
  14907. ret = GLEW_REGAL_log;
  14908. continue;
  14909. }
  14910. #endif
  14911. }
  14912. if (_glewStrSame2(&pos, &len, (const GLubyte*)"REND_", 5))
  14913. {
  14914. #ifdef GL_REND_screen_coordinates
  14915. if (_glewStrSame3(&pos, &len, (const GLubyte*)"screen_coordinates", 18))
  14916. {
  14917. ret = GLEW_REND_screen_coordinates;
  14918. continue;
  14919. }
  14920. #endif
  14921. }
  14922. if (_glewStrSame2(&pos, &len, (const GLubyte*)"S3_", 3))
  14923. {
  14924. #ifdef GL_S3_s3tc
  14925. if (_glewStrSame3(&pos, &len, (const GLubyte*)"s3tc", 4))
  14926. {
  14927. ret = GLEW_S3_s3tc;
  14928. continue;
  14929. }
  14930. #endif
  14931. }
  14932. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGIS_", 5))
  14933. {
  14934. #ifdef GL_SGIS_color_range
  14935. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_range", 11))
  14936. {
  14937. ret = GLEW_SGIS_color_range;
  14938. continue;
  14939. }
  14940. #endif
  14941. #ifdef GL_SGIS_detail_texture
  14942. if (_glewStrSame3(&pos, &len, (const GLubyte*)"detail_texture", 14))
  14943. {
  14944. ret = GLEW_SGIS_detail_texture;
  14945. continue;
  14946. }
  14947. #endif
  14948. #ifdef GL_SGIS_fog_function
  14949. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fog_function", 12))
  14950. {
  14951. ret = GLEW_SGIS_fog_function;
  14952. continue;
  14953. }
  14954. #endif
  14955. #ifdef GL_SGIS_generate_mipmap
  14956. if (_glewStrSame3(&pos, &len, (const GLubyte*)"generate_mipmap", 15))
  14957. {
  14958. ret = GLEW_SGIS_generate_mipmap;
  14959. continue;
  14960. }
  14961. #endif
  14962. #ifdef GL_SGIS_multisample
  14963. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  14964. {
  14965. ret = GLEW_SGIS_multisample;
  14966. continue;
  14967. }
  14968. #endif
  14969. #ifdef GL_SGIS_pixel_texture
  14970. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_texture", 13))
  14971. {
  14972. ret = GLEW_SGIS_pixel_texture;
  14973. continue;
  14974. }
  14975. #endif
  14976. #ifdef GL_SGIS_point_line_texgen
  14977. if (_glewStrSame3(&pos, &len, (const GLubyte*)"point_line_texgen", 17))
  14978. {
  14979. ret = GLEW_SGIS_point_line_texgen;
  14980. continue;
  14981. }
  14982. #endif
  14983. #ifdef GL_SGIS_sharpen_texture
  14984. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sharpen_texture", 15))
  14985. {
  14986. ret = GLEW_SGIS_sharpen_texture;
  14987. continue;
  14988. }
  14989. #endif
  14990. #ifdef GL_SGIS_texture4D
  14991. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture4D", 9))
  14992. {
  14993. ret = GLEW_SGIS_texture4D;
  14994. continue;
  14995. }
  14996. #endif
  14997. #ifdef GL_SGIS_texture_border_clamp
  14998. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_border_clamp", 20))
  14999. {
  15000. ret = GLEW_SGIS_texture_border_clamp;
  15001. continue;
  15002. }
  15003. #endif
  15004. #ifdef GL_SGIS_texture_edge_clamp
  15005. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_edge_clamp", 18))
  15006. {
  15007. ret = GLEW_SGIS_texture_edge_clamp;
  15008. continue;
  15009. }
  15010. #endif
  15011. #ifdef GL_SGIS_texture_filter4
  15012. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_filter4", 15))
  15013. {
  15014. ret = GLEW_SGIS_texture_filter4;
  15015. continue;
  15016. }
  15017. #endif
  15018. #ifdef GL_SGIS_texture_lod
  15019. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_lod", 11))
  15020. {
  15021. ret = GLEW_SGIS_texture_lod;
  15022. continue;
  15023. }
  15024. #endif
  15025. #ifdef GL_SGIS_texture_select
  15026. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_select", 14))
  15027. {
  15028. ret = GLEW_SGIS_texture_select;
  15029. continue;
  15030. }
  15031. #endif
  15032. }
  15033. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGIX_", 5))
  15034. {
  15035. #ifdef GL_SGIX_async
  15036. if (_glewStrSame3(&pos, &len, (const GLubyte*)"async", 5))
  15037. {
  15038. ret = GLEW_SGIX_async;
  15039. continue;
  15040. }
  15041. #endif
  15042. #ifdef GL_SGIX_async_histogram
  15043. if (_glewStrSame3(&pos, &len, (const GLubyte*)"async_histogram", 15))
  15044. {
  15045. ret = GLEW_SGIX_async_histogram;
  15046. continue;
  15047. }
  15048. #endif
  15049. #ifdef GL_SGIX_async_pixel
  15050. if (_glewStrSame3(&pos, &len, (const GLubyte*)"async_pixel", 11))
  15051. {
  15052. ret = GLEW_SGIX_async_pixel;
  15053. continue;
  15054. }
  15055. #endif
  15056. #ifdef GL_SGIX_blend_alpha_minmax
  15057. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blend_alpha_minmax", 18))
  15058. {
  15059. ret = GLEW_SGIX_blend_alpha_minmax;
  15060. continue;
  15061. }
  15062. #endif
  15063. #ifdef GL_SGIX_clipmap
  15064. if (_glewStrSame3(&pos, &len, (const GLubyte*)"clipmap", 7))
  15065. {
  15066. ret = GLEW_SGIX_clipmap;
  15067. continue;
  15068. }
  15069. #endif
  15070. #ifdef GL_SGIX_convolution_accuracy
  15071. if (_glewStrSame3(&pos, &len, (const GLubyte*)"convolution_accuracy", 20))
  15072. {
  15073. ret = GLEW_SGIX_convolution_accuracy;
  15074. continue;
  15075. }
  15076. #endif
  15077. #ifdef GL_SGIX_depth_texture
  15078. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_texture", 13))
  15079. {
  15080. ret = GLEW_SGIX_depth_texture;
  15081. continue;
  15082. }
  15083. #endif
  15084. #ifdef GL_SGIX_flush_raster
  15085. if (_glewStrSame3(&pos, &len, (const GLubyte*)"flush_raster", 12))
  15086. {
  15087. ret = GLEW_SGIX_flush_raster;
  15088. continue;
  15089. }
  15090. #endif
  15091. #ifdef GL_SGIX_fog_offset
  15092. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fog_offset", 10))
  15093. {
  15094. ret = GLEW_SGIX_fog_offset;
  15095. continue;
  15096. }
  15097. #endif
  15098. #ifdef GL_SGIX_fog_texture
  15099. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fog_texture", 11))
  15100. {
  15101. ret = GLEW_SGIX_fog_texture;
  15102. continue;
  15103. }
  15104. #endif
  15105. #ifdef GL_SGIX_fragment_specular_lighting
  15106. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fragment_specular_lighting", 26))
  15107. {
  15108. ret = GLEW_SGIX_fragment_specular_lighting;
  15109. continue;
  15110. }
  15111. #endif
  15112. #ifdef GL_SGIX_framezoom
  15113. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framezoom", 9))
  15114. {
  15115. ret = GLEW_SGIX_framezoom;
  15116. continue;
  15117. }
  15118. #endif
  15119. #ifdef GL_SGIX_interlace
  15120. if (_glewStrSame3(&pos, &len, (const GLubyte*)"interlace", 9))
  15121. {
  15122. ret = GLEW_SGIX_interlace;
  15123. continue;
  15124. }
  15125. #endif
  15126. #ifdef GL_SGIX_ir_instrument1
  15127. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ir_instrument1", 14))
  15128. {
  15129. ret = GLEW_SGIX_ir_instrument1;
  15130. continue;
  15131. }
  15132. #endif
  15133. #ifdef GL_SGIX_list_priority
  15134. if (_glewStrSame3(&pos, &len, (const GLubyte*)"list_priority", 13))
  15135. {
  15136. ret = GLEW_SGIX_list_priority;
  15137. continue;
  15138. }
  15139. #endif
  15140. #ifdef GL_SGIX_pixel_texture
  15141. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_texture", 13))
  15142. {
  15143. ret = GLEW_SGIX_pixel_texture;
  15144. continue;
  15145. }
  15146. #endif
  15147. #ifdef GL_SGIX_pixel_texture_bits
  15148. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_texture_bits", 18))
  15149. {
  15150. ret = GLEW_SGIX_pixel_texture_bits;
  15151. continue;
  15152. }
  15153. #endif
  15154. #ifdef GL_SGIX_reference_plane
  15155. if (_glewStrSame3(&pos, &len, (const GLubyte*)"reference_plane", 15))
  15156. {
  15157. ret = GLEW_SGIX_reference_plane;
  15158. continue;
  15159. }
  15160. #endif
  15161. #ifdef GL_SGIX_resample
  15162. if (_glewStrSame3(&pos, &len, (const GLubyte*)"resample", 8))
  15163. {
  15164. ret = GLEW_SGIX_resample;
  15165. continue;
  15166. }
  15167. #endif
  15168. #ifdef GL_SGIX_shadow
  15169. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shadow", 6))
  15170. {
  15171. ret = GLEW_SGIX_shadow;
  15172. continue;
  15173. }
  15174. #endif
  15175. #ifdef GL_SGIX_shadow_ambient
  15176. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shadow_ambient", 14))
  15177. {
  15178. ret = GLEW_SGIX_shadow_ambient;
  15179. continue;
  15180. }
  15181. #endif
  15182. #ifdef GL_SGIX_sprite
  15183. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sprite", 6))
  15184. {
  15185. ret = GLEW_SGIX_sprite;
  15186. continue;
  15187. }
  15188. #endif
  15189. #ifdef GL_SGIX_tag_sample_buffer
  15190. if (_glewStrSame3(&pos, &len, (const GLubyte*)"tag_sample_buffer", 17))
  15191. {
  15192. ret = GLEW_SGIX_tag_sample_buffer;
  15193. continue;
  15194. }
  15195. #endif
  15196. #ifdef GL_SGIX_texture_add_env
  15197. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_add_env", 15))
  15198. {
  15199. ret = GLEW_SGIX_texture_add_env;
  15200. continue;
  15201. }
  15202. #endif
  15203. #ifdef GL_SGIX_texture_coordinate_clamp
  15204. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_coordinate_clamp", 24))
  15205. {
  15206. ret = GLEW_SGIX_texture_coordinate_clamp;
  15207. continue;
  15208. }
  15209. #endif
  15210. #ifdef GL_SGIX_texture_lod_bias
  15211. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_lod_bias", 16))
  15212. {
  15213. ret = GLEW_SGIX_texture_lod_bias;
  15214. continue;
  15215. }
  15216. #endif
  15217. #ifdef GL_SGIX_texture_multi_buffer
  15218. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_multi_buffer", 20))
  15219. {
  15220. ret = GLEW_SGIX_texture_multi_buffer;
  15221. continue;
  15222. }
  15223. #endif
  15224. #ifdef GL_SGIX_texture_range
  15225. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_range", 13))
  15226. {
  15227. ret = GLEW_SGIX_texture_range;
  15228. continue;
  15229. }
  15230. #endif
  15231. #ifdef GL_SGIX_texture_scale_bias
  15232. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_scale_bias", 18))
  15233. {
  15234. ret = GLEW_SGIX_texture_scale_bias;
  15235. continue;
  15236. }
  15237. #endif
  15238. #ifdef GL_SGIX_vertex_preclip
  15239. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_preclip", 14))
  15240. {
  15241. ret = GLEW_SGIX_vertex_preclip;
  15242. continue;
  15243. }
  15244. #endif
  15245. #ifdef GL_SGIX_vertex_preclip_hint
  15246. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_preclip_hint", 19))
  15247. {
  15248. ret = GLEW_SGIX_vertex_preclip_hint;
  15249. continue;
  15250. }
  15251. #endif
  15252. #ifdef GL_SGIX_ycrcb
  15253. if (_glewStrSame3(&pos, &len, (const GLubyte*)"ycrcb", 5))
  15254. {
  15255. ret = GLEW_SGIX_ycrcb;
  15256. continue;
  15257. }
  15258. #endif
  15259. }
  15260. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGI_", 4))
  15261. {
  15262. #ifdef GL_SGI_color_matrix
  15263. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_matrix", 12))
  15264. {
  15265. ret = GLEW_SGI_color_matrix;
  15266. continue;
  15267. }
  15268. #endif
  15269. #ifdef GL_SGI_color_table
  15270. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_table", 11))
  15271. {
  15272. ret = GLEW_SGI_color_table;
  15273. continue;
  15274. }
  15275. #endif
  15276. #ifdef GL_SGI_texture_color_table
  15277. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_color_table", 19))
  15278. {
  15279. ret = GLEW_SGI_texture_color_table;
  15280. continue;
  15281. }
  15282. #endif
  15283. }
  15284. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SUNX_", 5))
  15285. {
  15286. #ifdef GL_SUNX_constant_data
  15287. if (_glewStrSame3(&pos, &len, (const GLubyte*)"constant_data", 13))
  15288. {
  15289. ret = GLEW_SUNX_constant_data;
  15290. continue;
  15291. }
  15292. #endif
  15293. }
  15294. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SUN_", 4))
  15295. {
  15296. #ifdef GL_SUN_convolution_border_modes
  15297. if (_glewStrSame3(&pos, &len, (const GLubyte*)"convolution_border_modes", 24))
  15298. {
  15299. ret = GLEW_SUN_convolution_border_modes;
  15300. continue;
  15301. }
  15302. #endif
  15303. #ifdef GL_SUN_global_alpha
  15304. if (_glewStrSame3(&pos, &len, (const GLubyte*)"global_alpha", 12))
  15305. {
  15306. ret = GLEW_SUN_global_alpha;
  15307. continue;
  15308. }
  15309. #endif
  15310. #ifdef GL_SUN_mesh_array
  15311. if (_glewStrSame3(&pos, &len, (const GLubyte*)"mesh_array", 10))
  15312. {
  15313. ret = GLEW_SUN_mesh_array;
  15314. continue;
  15315. }
  15316. #endif
  15317. #ifdef GL_SUN_read_video_pixels
  15318. if (_glewStrSame3(&pos, &len, (const GLubyte*)"read_video_pixels", 17))
  15319. {
  15320. ret = GLEW_SUN_read_video_pixels;
  15321. continue;
  15322. }
  15323. #endif
  15324. #ifdef GL_SUN_slice_accum
  15325. if (_glewStrSame3(&pos, &len, (const GLubyte*)"slice_accum", 11))
  15326. {
  15327. ret = GLEW_SUN_slice_accum;
  15328. continue;
  15329. }
  15330. #endif
  15331. #ifdef GL_SUN_triangle_list
  15332. if (_glewStrSame3(&pos, &len, (const GLubyte*)"triangle_list", 13))
  15333. {
  15334. ret = GLEW_SUN_triangle_list;
  15335. continue;
  15336. }
  15337. #endif
  15338. #ifdef GL_SUN_vertex
  15339. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex", 6))
  15340. {
  15341. ret = GLEW_SUN_vertex;
  15342. continue;
  15343. }
  15344. #endif
  15345. }
  15346. if (_glewStrSame2(&pos, &len, (const GLubyte*)"WIN_", 4))
  15347. {
  15348. #ifdef GL_WIN_phong_shading
  15349. if (_glewStrSame3(&pos, &len, (const GLubyte*)"phong_shading", 13))
  15350. {
  15351. ret = GLEW_WIN_phong_shading;
  15352. continue;
  15353. }
  15354. #endif
  15355. #ifdef GL_WIN_specular_fog
  15356. if (_glewStrSame3(&pos, &len, (const GLubyte*)"specular_fog", 12))
  15357. {
  15358. ret = GLEW_WIN_specular_fog;
  15359. continue;
  15360. }
  15361. #endif
  15362. #ifdef GL_WIN_swap_hint
  15363. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_hint", 9))
  15364. {
  15365. ret = GLEW_WIN_swap_hint;
  15366. continue;
  15367. }
  15368. #endif
  15369. }
  15370. }
  15371. ret = (len == 0);
  15372. }
  15373. return ret;
  15374. }
  15375. #if defined(_WIN32)
  15376. #if defined(GLEW_MX)
  15377. GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext* ctx, const char* name)
  15378. #else
  15379. GLboolean GLEWAPIENTRY wglewIsSupported (const char* name)
  15380. #endif
  15381. {
  15382. GLubyte* pos = (GLubyte*)name;
  15383. GLuint len = _glewStrLen(pos);
  15384. GLboolean ret = GL_TRUE;
  15385. while (ret && len > 0)
  15386. {
  15387. if (_glewStrSame1(&pos, &len, (const GLubyte*)"WGL_", 4))
  15388. {
  15389. if (_glewStrSame2(&pos, &len, (const GLubyte*)"3DFX_", 5))
  15390. {
  15391. #ifdef WGL_3DFX_multisample
  15392. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  15393. {
  15394. ret = WGLEW_3DFX_multisample;
  15395. continue;
  15396. }
  15397. #endif
  15398. }
  15399. if (_glewStrSame2(&pos, &len, (const GLubyte*)"3DL_", 4))
  15400. {
  15401. #ifdef WGL_3DL_stereo_control
  15402. if (_glewStrSame3(&pos, &len, (const GLubyte*)"stereo_control", 14))
  15403. {
  15404. ret = WGLEW_3DL_stereo_control;
  15405. continue;
  15406. }
  15407. #endif
  15408. }
  15409. if (_glewStrSame2(&pos, &len, (const GLubyte*)"AMD_", 4))
  15410. {
  15411. #ifdef WGL_AMD_gpu_association
  15412. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_association", 15))
  15413. {
  15414. ret = WGLEW_AMD_gpu_association;
  15415. continue;
  15416. }
  15417. #endif
  15418. }
  15419. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARB_", 4))
  15420. {
  15421. #ifdef WGL_ARB_buffer_region
  15422. if (_glewStrSame3(&pos, &len, (const GLubyte*)"buffer_region", 13))
  15423. {
  15424. ret = WGLEW_ARB_buffer_region;
  15425. continue;
  15426. }
  15427. #endif
  15428. #ifdef WGL_ARB_create_context
  15429. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context", 14))
  15430. {
  15431. ret = WGLEW_ARB_create_context;
  15432. continue;
  15433. }
  15434. #endif
  15435. #ifdef WGL_ARB_create_context_profile
  15436. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_profile", 22))
  15437. {
  15438. ret = WGLEW_ARB_create_context_profile;
  15439. continue;
  15440. }
  15441. #endif
  15442. #ifdef WGL_ARB_create_context_robustness
  15443. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_robustness", 25))
  15444. {
  15445. ret = WGLEW_ARB_create_context_robustness;
  15446. continue;
  15447. }
  15448. #endif
  15449. #ifdef WGL_ARB_extensions_string
  15450. if (_glewStrSame3(&pos, &len, (const GLubyte*)"extensions_string", 17))
  15451. {
  15452. ret = WGLEW_ARB_extensions_string;
  15453. continue;
  15454. }
  15455. #endif
  15456. #ifdef WGL_ARB_framebuffer_sRGB
  15457. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_sRGB", 16))
  15458. {
  15459. ret = WGLEW_ARB_framebuffer_sRGB;
  15460. continue;
  15461. }
  15462. #endif
  15463. #ifdef WGL_ARB_make_current_read
  15464. if (_glewStrSame3(&pos, &len, (const GLubyte*)"make_current_read", 17))
  15465. {
  15466. ret = WGLEW_ARB_make_current_read;
  15467. continue;
  15468. }
  15469. #endif
  15470. #ifdef WGL_ARB_multisample
  15471. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  15472. {
  15473. ret = WGLEW_ARB_multisample;
  15474. continue;
  15475. }
  15476. #endif
  15477. #ifdef WGL_ARB_pbuffer
  15478. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pbuffer", 7))
  15479. {
  15480. ret = WGLEW_ARB_pbuffer;
  15481. continue;
  15482. }
  15483. #endif
  15484. #ifdef WGL_ARB_pixel_format
  15485. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_format", 12))
  15486. {
  15487. ret = WGLEW_ARB_pixel_format;
  15488. continue;
  15489. }
  15490. #endif
  15491. #ifdef WGL_ARB_pixel_format_float
  15492. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_format_float", 18))
  15493. {
  15494. ret = WGLEW_ARB_pixel_format_float;
  15495. continue;
  15496. }
  15497. #endif
  15498. #ifdef WGL_ARB_render_texture
  15499. if (_glewStrSame3(&pos, &len, (const GLubyte*)"render_texture", 14))
  15500. {
  15501. ret = WGLEW_ARB_render_texture;
  15502. continue;
  15503. }
  15504. #endif
  15505. #ifdef WGL_ARB_robustness_application_isolation
  15506. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness_application_isolation", 32))
  15507. {
  15508. ret = WGLEW_ARB_robustness_application_isolation;
  15509. continue;
  15510. }
  15511. #endif
  15512. #ifdef WGL_ARB_robustness_share_group_isolation
  15513. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness_share_group_isolation", 32))
  15514. {
  15515. ret = WGLEW_ARB_robustness_share_group_isolation;
  15516. continue;
  15517. }
  15518. #endif
  15519. }
  15520. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ATI_", 4))
  15521. {
  15522. #ifdef WGL_ATI_pixel_format_float
  15523. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_format_float", 18))
  15524. {
  15525. ret = WGLEW_ATI_pixel_format_float;
  15526. continue;
  15527. }
  15528. #endif
  15529. #ifdef WGL_ATI_render_texture_rectangle
  15530. if (_glewStrSame3(&pos, &len, (const GLubyte*)"render_texture_rectangle", 24))
  15531. {
  15532. ret = WGLEW_ATI_render_texture_rectangle;
  15533. continue;
  15534. }
  15535. #endif
  15536. }
  15537. if (_glewStrSame2(&pos, &len, (const GLubyte*)"EXT_", 4))
  15538. {
  15539. #ifdef WGL_EXT_create_context_es2_profile
  15540. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_es2_profile", 26))
  15541. {
  15542. ret = WGLEW_EXT_create_context_es2_profile;
  15543. continue;
  15544. }
  15545. #endif
  15546. #ifdef WGL_EXT_create_context_es_profile
  15547. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_es_profile", 25))
  15548. {
  15549. ret = WGLEW_EXT_create_context_es_profile;
  15550. continue;
  15551. }
  15552. #endif
  15553. #ifdef WGL_EXT_depth_float
  15554. if (_glewStrSame3(&pos, &len, (const GLubyte*)"depth_float", 11))
  15555. {
  15556. ret = WGLEW_EXT_depth_float;
  15557. continue;
  15558. }
  15559. #endif
  15560. #ifdef WGL_EXT_display_color_table
  15561. if (_glewStrSame3(&pos, &len, (const GLubyte*)"display_color_table", 19))
  15562. {
  15563. ret = WGLEW_EXT_display_color_table;
  15564. continue;
  15565. }
  15566. #endif
  15567. #ifdef WGL_EXT_extensions_string
  15568. if (_glewStrSame3(&pos, &len, (const GLubyte*)"extensions_string", 17))
  15569. {
  15570. ret = WGLEW_EXT_extensions_string;
  15571. continue;
  15572. }
  15573. #endif
  15574. #ifdef WGL_EXT_framebuffer_sRGB
  15575. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_sRGB", 16))
  15576. {
  15577. ret = WGLEW_EXT_framebuffer_sRGB;
  15578. continue;
  15579. }
  15580. #endif
  15581. #ifdef WGL_EXT_make_current_read
  15582. if (_glewStrSame3(&pos, &len, (const GLubyte*)"make_current_read", 17))
  15583. {
  15584. ret = WGLEW_EXT_make_current_read;
  15585. continue;
  15586. }
  15587. #endif
  15588. #ifdef WGL_EXT_multisample
  15589. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  15590. {
  15591. ret = WGLEW_EXT_multisample;
  15592. continue;
  15593. }
  15594. #endif
  15595. #ifdef WGL_EXT_pbuffer
  15596. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pbuffer", 7))
  15597. {
  15598. ret = WGLEW_EXT_pbuffer;
  15599. continue;
  15600. }
  15601. #endif
  15602. #ifdef WGL_EXT_pixel_format
  15603. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_format", 12))
  15604. {
  15605. ret = WGLEW_EXT_pixel_format;
  15606. continue;
  15607. }
  15608. #endif
  15609. #ifdef WGL_EXT_pixel_format_packed_float
  15610. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_format_packed_float", 25))
  15611. {
  15612. ret = WGLEW_EXT_pixel_format_packed_float;
  15613. continue;
  15614. }
  15615. #endif
  15616. #ifdef WGL_EXT_swap_control
  15617. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_control", 12))
  15618. {
  15619. ret = WGLEW_EXT_swap_control;
  15620. continue;
  15621. }
  15622. #endif
  15623. #ifdef WGL_EXT_swap_control_tear
  15624. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_control_tear", 17))
  15625. {
  15626. ret = WGLEW_EXT_swap_control_tear;
  15627. continue;
  15628. }
  15629. #endif
  15630. }
  15631. if (_glewStrSame2(&pos, &len, (const GLubyte*)"I3D_", 4))
  15632. {
  15633. #ifdef WGL_I3D_digital_video_control
  15634. if (_glewStrSame3(&pos, &len, (const GLubyte*)"digital_video_control", 21))
  15635. {
  15636. ret = WGLEW_I3D_digital_video_control;
  15637. continue;
  15638. }
  15639. #endif
  15640. #ifdef WGL_I3D_gamma
  15641. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gamma", 5))
  15642. {
  15643. ret = WGLEW_I3D_gamma;
  15644. continue;
  15645. }
  15646. #endif
  15647. #ifdef WGL_I3D_genlock
  15648. if (_glewStrSame3(&pos, &len, (const GLubyte*)"genlock", 7))
  15649. {
  15650. ret = WGLEW_I3D_genlock;
  15651. continue;
  15652. }
  15653. #endif
  15654. #ifdef WGL_I3D_image_buffer
  15655. if (_glewStrSame3(&pos, &len, (const GLubyte*)"image_buffer", 12))
  15656. {
  15657. ret = WGLEW_I3D_image_buffer;
  15658. continue;
  15659. }
  15660. #endif
  15661. #ifdef WGL_I3D_swap_frame_lock
  15662. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_frame_lock", 15))
  15663. {
  15664. ret = WGLEW_I3D_swap_frame_lock;
  15665. continue;
  15666. }
  15667. #endif
  15668. #ifdef WGL_I3D_swap_frame_usage
  15669. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_frame_usage", 16))
  15670. {
  15671. ret = WGLEW_I3D_swap_frame_usage;
  15672. continue;
  15673. }
  15674. #endif
  15675. }
  15676. if (_glewStrSame2(&pos, &len, (const GLubyte*)"NV_", 3))
  15677. {
  15678. #ifdef WGL_NV_DX_interop
  15679. if (_glewStrSame3(&pos, &len, (const GLubyte*)"DX_interop", 10))
  15680. {
  15681. ret = WGLEW_NV_DX_interop;
  15682. continue;
  15683. }
  15684. #endif
  15685. #ifdef WGL_NV_DX_interop2
  15686. if (_glewStrSame3(&pos, &len, (const GLubyte*)"DX_interop2", 11))
  15687. {
  15688. ret = WGLEW_NV_DX_interop2;
  15689. continue;
  15690. }
  15691. #endif
  15692. #ifdef WGL_NV_copy_image
  15693. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_image", 10))
  15694. {
  15695. ret = WGLEW_NV_copy_image;
  15696. continue;
  15697. }
  15698. #endif
  15699. #ifdef WGL_NV_float_buffer
  15700. if (_glewStrSame3(&pos, &len, (const GLubyte*)"float_buffer", 12))
  15701. {
  15702. ret = WGLEW_NV_float_buffer;
  15703. continue;
  15704. }
  15705. #endif
  15706. #ifdef WGL_NV_gpu_affinity
  15707. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_affinity", 12))
  15708. {
  15709. ret = WGLEW_NV_gpu_affinity;
  15710. continue;
  15711. }
  15712. #endif
  15713. #ifdef WGL_NV_multisample_coverage
  15714. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample_coverage", 20))
  15715. {
  15716. ret = WGLEW_NV_multisample_coverage;
  15717. continue;
  15718. }
  15719. #endif
  15720. #ifdef WGL_NV_present_video
  15721. if (_glewStrSame3(&pos, &len, (const GLubyte*)"present_video", 13))
  15722. {
  15723. ret = WGLEW_NV_present_video;
  15724. continue;
  15725. }
  15726. #endif
  15727. #ifdef WGL_NV_render_depth_texture
  15728. if (_glewStrSame3(&pos, &len, (const GLubyte*)"render_depth_texture", 20))
  15729. {
  15730. ret = WGLEW_NV_render_depth_texture;
  15731. continue;
  15732. }
  15733. #endif
  15734. #ifdef WGL_NV_render_texture_rectangle
  15735. if (_glewStrSame3(&pos, &len, (const GLubyte*)"render_texture_rectangle", 24))
  15736. {
  15737. ret = WGLEW_NV_render_texture_rectangle;
  15738. continue;
  15739. }
  15740. #endif
  15741. #ifdef WGL_NV_swap_group
  15742. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_group", 10))
  15743. {
  15744. ret = WGLEW_NV_swap_group;
  15745. continue;
  15746. }
  15747. #endif
  15748. #ifdef WGL_NV_vertex_array_range
  15749. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_range", 18))
  15750. {
  15751. ret = WGLEW_NV_vertex_array_range;
  15752. continue;
  15753. }
  15754. #endif
  15755. #ifdef WGL_NV_video_capture
  15756. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_capture", 13))
  15757. {
  15758. ret = WGLEW_NV_video_capture;
  15759. continue;
  15760. }
  15761. #endif
  15762. #ifdef WGL_NV_video_output
  15763. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_output", 12))
  15764. {
  15765. ret = WGLEW_NV_video_output;
  15766. continue;
  15767. }
  15768. #endif
  15769. }
  15770. if (_glewStrSame2(&pos, &len, (const GLubyte*)"OML_", 4))
  15771. {
  15772. #ifdef WGL_OML_sync_control
  15773. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sync_control", 12))
  15774. {
  15775. ret = WGLEW_OML_sync_control;
  15776. continue;
  15777. }
  15778. #endif
  15779. }
  15780. }
  15781. ret = (len == 0);
  15782. }
  15783. return ret;
  15784. }
  15785. #elif !defined(__ANDROID__) && !defined(__native_client__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
  15786. #if defined(GLEW_MX)
  15787. GLboolean glxewContextIsSupported (const GLXEWContext* ctx, const char* name)
  15788. #else
  15789. GLboolean glxewIsSupported (const char* name)
  15790. #endif
  15791. {
  15792. GLubyte* pos = (GLubyte*)name;
  15793. GLuint len = _glewStrLen(pos);
  15794. GLboolean ret = GL_TRUE;
  15795. while (ret && len > 0)
  15796. {
  15797. if(_glewStrSame1(&pos, &len, (const GLubyte*)"GLX_", 4))
  15798. {
  15799. if (_glewStrSame2(&pos, &len, (const GLubyte*)"VERSION_", 8))
  15800. {
  15801. #ifdef GLX_VERSION_1_2
  15802. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_2", 3))
  15803. {
  15804. ret = GLXEW_VERSION_1_2;
  15805. continue;
  15806. }
  15807. #endif
  15808. #ifdef GLX_VERSION_1_3
  15809. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_3", 3))
  15810. {
  15811. ret = GLXEW_VERSION_1_3;
  15812. continue;
  15813. }
  15814. #endif
  15815. #ifdef GLX_VERSION_1_4
  15816. if (_glewStrSame3(&pos, &len, (const GLubyte*)"1_4", 3))
  15817. {
  15818. ret = GLXEW_VERSION_1_4;
  15819. continue;
  15820. }
  15821. #endif
  15822. }
  15823. if (_glewStrSame2(&pos, &len, (const GLubyte*)"3DFX_", 5))
  15824. {
  15825. #ifdef GLX_3DFX_multisample
  15826. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  15827. {
  15828. ret = GLXEW_3DFX_multisample;
  15829. continue;
  15830. }
  15831. #endif
  15832. }
  15833. if (_glewStrSame2(&pos, &len, (const GLubyte*)"AMD_", 4))
  15834. {
  15835. #ifdef GLX_AMD_gpu_association
  15836. if (_glewStrSame3(&pos, &len, (const GLubyte*)"gpu_association", 15))
  15837. {
  15838. ret = GLXEW_AMD_gpu_association;
  15839. continue;
  15840. }
  15841. #endif
  15842. }
  15843. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ARB_", 4))
  15844. {
  15845. #ifdef GLX_ARB_create_context
  15846. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context", 14))
  15847. {
  15848. ret = GLXEW_ARB_create_context;
  15849. continue;
  15850. }
  15851. #endif
  15852. #ifdef GLX_ARB_create_context_profile
  15853. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_profile", 22))
  15854. {
  15855. ret = GLXEW_ARB_create_context_profile;
  15856. continue;
  15857. }
  15858. #endif
  15859. #ifdef GLX_ARB_create_context_robustness
  15860. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_robustness", 25))
  15861. {
  15862. ret = GLXEW_ARB_create_context_robustness;
  15863. continue;
  15864. }
  15865. #endif
  15866. #ifdef GLX_ARB_fbconfig_float
  15867. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fbconfig_float", 14))
  15868. {
  15869. ret = GLXEW_ARB_fbconfig_float;
  15870. continue;
  15871. }
  15872. #endif
  15873. #ifdef GLX_ARB_framebuffer_sRGB
  15874. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_sRGB", 16))
  15875. {
  15876. ret = GLXEW_ARB_framebuffer_sRGB;
  15877. continue;
  15878. }
  15879. #endif
  15880. #ifdef GLX_ARB_get_proc_address
  15881. if (_glewStrSame3(&pos, &len, (const GLubyte*)"get_proc_address", 16))
  15882. {
  15883. ret = GLXEW_ARB_get_proc_address;
  15884. continue;
  15885. }
  15886. #endif
  15887. #ifdef GLX_ARB_multisample
  15888. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  15889. {
  15890. ret = GLXEW_ARB_multisample;
  15891. continue;
  15892. }
  15893. #endif
  15894. #ifdef GLX_ARB_robustness_application_isolation
  15895. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness_application_isolation", 32))
  15896. {
  15897. ret = GLXEW_ARB_robustness_application_isolation;
  15898. continue;
  15899. }
  15900. #endif
  15901. #ifdef GLX_ARB_robustness_share_group_isolation
  15902. if (_glewStrSame3(&pos, &len, (const GLubyte*)"robustness_share_group_isolation", 32))
  15903. {
  15904. ret = GLXEW_ARB_robustness_share_group_isolation;
  15905. continue;
  15906. }
  15907. #endif
  15908. #ifdef GLX_ARB_vertex_buffer_object
  15909. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_buffer_object", 20))
  15910. {
  15911. ret = GLXEW_ARB_vertex_buffer_object;
  15912. continue;
  15913. }
  15914. #endif
  15915. }
  15916. if (_glewStrSame2(&pos, &len, (const GLubyte*)"ATI_", 4))
  15917. {
  15918. #ifdef GLX_ATI_pixel_format_float
  15919. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixel_format_float", 18))
  15920. {
  15921. ret = GLXEW_ATI_pixel_format_float;
  15922. continue;
  15923. }
  15924. #endif
  15925. #ifdef GLX_ATI_render_texture
  15926. if (_glewStrSame3(&pos, &len, (const GLubyte*)"render_texture", 14))
  15927. {
  15928. ret = GLXEW_ATI_render_texture;
  15929. continue;
  15930. }
  15931. #endif
  15932. }
  15933. if (_glewStrSame2(&pos, &len, (const GLubyte*)"EXT_", 4))
  15934. {
  15935. #ifdef GLX_EXT_buffer_age
  15936. if (_glewStrSame3(&pos, &len, (const GLubyte*)"buffer_age", 10))
  15937. {
  15938. ret = GLXEW_EXT_buffer_age;
  15939. continue;
  15940. }
  15941. #endif
  15942. #ifdef GLX_EXT_create_context_es2_profile
  15943. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_es2_profile", 26))
  15944. {
  15945. ret = GLXEW_EXT_create_context_es2_profile;
  15946. continue;
  15947. }
  15948. #endif
  15949. #ifdef GLX_EXT_create_context_es_profile
  15950. if (_glewStrSame3(&pos, &len, (const GLubyte*)"create_context_es_profile", 25))
  15951. {
  15952. ret = GLXEW_EXT_create_context_es_profile;
  15953. continue;
  15954. }
  15955. #endif
  15956. #ifdef GLX_EXT_fbconfig_packed_float
  15957. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fbconfig_packed_float", 21))
  15958. {
  15959. ret = GLXEW_EXT_fbconfig_packed_float;
  15960. continue;
  15961. }
  15962. #endif
  15963. #ifdef GLX_EXT_framebuffer_sRGB
  15964. if (_glewStrSame3(&pos, &len, (const GLubyte*)"framebuffer_sRGB", 16))
  15965. {
  15966. ret = GLXEW_EXT_framebuffer_sRGB;
  15967. continue;
  15968. }
  15969. #endif
  15970. #ifdef GLX_EXT_import_context
  15971. if (_glewStrSame3(&pos, &len, (const GLubyte*)"import_context", 14))
  15972. {
  15973. ret = GLXEW_EXT_import_context;
  15974. continue;
  15975. }
  15976. #endif
  15977. #ifdef GLX_EXT_scene_marker
  15978. if (_glewStrSame3(&pos, &len, (const GLubyte*)"scene_marker", 12))
  15979. {
  15980. ret = GLXEW_EXT_scene_marker;
  15981. continue;
  15982. }
  15983. #endif
  15984. #ifdef GLX_EXT_swap_control
  15985. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_control", 12))
  15986. {
  15987. ret = GLXEW_EXT_swap_control;
  15988. continue;
  15989. }
  15990. #endif
  15991. #ifdef GLX_EXT_swap_control_tear
  15992. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_control_tear", 17))
  15993. {
  15994. ret = GLXEW_EXT_swap_control_tear;
  15995. continue;
  15996. }
  15997. #endif
  15998. #ifdef GLX_EXT_texture_from_pixmap
  15999. if (_glewStrSame3(&pos, &len, (const GLubyte*)"texture_from_pixmap", 19))
  16000. {
  16001. ret = GLXEW_EXT_texture_from_pixmap;
  16002. continue;
  16003. }
  16004. #endif
  16005. #ifdef GLX_EXT_visual_info
  16006. if (_glewStrSame3(&pos, &len, (const GLubyte*)"visual_info", 11))
  16007. {
  16008. ret = GLXEW_EXT_visual_info;
  16009. continue;
  16010. }
  16011. #endif
  16012. #ifdef GLX_EXT_visual_rating
  16013. if (_glewStrSame3(&pos, &len, (const GLubyte*)"visual_rating", 13))
  16014. {
  16015. ret = GLXEW_EXT_visual_rating;
  16016. continue;
  16017. }
  16018. #endif
  16019. }
  16020. if (_glewStrSame2(&pos, &len, (const GLubyte*)"INTEL_", 6))
  16021. {
  16022. #ifdef GLX_INTEL_swap_event
  16023. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_event", 10))
  16024. {
  16025. ret = GLXEW_INTEL_swap_event;
  16026. continue;
  16027. }
  16028. #endif
  16029. }
  16030. if (_glewStrSame2(&pos, &len, (const GLubyte*)"MESA_", 5))
  16031. {
  16032. #ifdef GLX_MESA_agp_offset
  16033. if (_glewStrSame3(&pos, &len, (const GLubyte*)"agp_offset", 10))
  16034. {
  16035. ret = GLXEW_MESA_agp_offset;
  16036. continue;
  16037. }
  16038. #endif
  16039. #ifdef GLX_MESA_copy_sub_buffer
  16040. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_sub_buffer", 15))
  16041. {
  16042. ret = GLXEW_MESA_copy_sub_buffer;
  16043. continue;
  16044. }
  16045. #endif
  16046. #ifdef GLX_MESA_pixmap_colormap
  16047. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pixmap_colormap", 15))
  16048. {
  16049. ret = GLXEW_MESA_pixmap_colormap;
  16050. continue;
  16051. }
  16052. #endif
  16053. #ifdef GLX_MESA_release_buffers
  16054. if (_glewStrSame3(&pos, &len, (const GLubyte*)"release_buffers", 15))
  16055. {
  16056. ret = GLXEW_MESA_release_buffers;
  16057. continue;
  16058. }
  16059. #endif
  16060. #ifdef GLX_MESA_set_3dfx_mode
  16061. if (_glewStrSame3(&pos, &len, (const GLubyte*)"set_3dfx_mode", 13))
  16062. {
  16063. ret = GLXEW_MESA_set_3dfx_mode;
  16064. continue;
  16065. }
  16066. #endif
  16067. #ifdef GLX_MESA_swap_control
  16068. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_control", 12))
  16069. {
  16070. ret = GLXEW_MESA_swap_control;
  16071. continue;
  16072. }
  16073. #endif
  16074. }
  16075. if (_glewStrSame2(&pos, &len, (const GLubyte*)"NV_", 3))
  16076. {
  16077. #ifdef GLX_NV_copy_image
  16078. if (_glewStrSame3(&pos, &len, (const GLubyte*)"copy_image", 10))
  16079. {
  16080. ret = GLXEW_NV_copy_image;
  16081. continue;
  16082. }
  16083. #endif
  16084. #ifdef GLX_NV_float_buffer
  16085. if (_glewStrSame3(&pos, &len, (const GLubyte*)"float_buffer", 12))
  16086. {
  16087. ret = GLXEW_NV_float_buffer;
  16088. continue;
  16089. }
  16090. #endif
  16091. #ifdef GLX_NV_multisample_coverage
  16092. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample_coverage", 20))
  16093. {
  16094. ret = GLXEW_NV_multisample_coverage;
  16095. continue;
  16096. }
  16097. #endif
  16098. #ifdef GLX_NV_present_video
  16099. if (_glewStrSame3(&pos, &len, (const GLubyte*)"present_video", 13))
  16100. {
  16101. ret = GLXEW_NV_present_video;
  16102. continue;
  16103. }
  16104. #endif
  16105. #ifdef GLX_NV_swap_group
  16106. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_group", 10))
  16107. {
  16108. ret = GLXEW_NV_swap_group;
  16109. continue;
  16110. }
  16111. #endif
  16112. #ifdef GLX_NV_vertex_array_range
  16113. if (_glewStrSame3(&pos, &len, (const GLubyte*)"vertex_array_range", 18))
  16114. {
  16115. ret = GLXEW_NV_vertex_array_range;
  16116. continue;
  16117. }
  16118. #endif
  16119. #ifdef GLX_NV_video_capture
  16120. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_capture", 13))
  16121. {
  16122. ret = GLXEW_NV_video_capture;
  16123. continue;
  16124. }
  16125. #endif
  16126. #ifdef GLX_NV_video_output
  16127. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_output", 12))
  16128. {
  16129. ret = GLXEW_NV_video_output;
  16130. continue;
  16131. }
  16132. #endif
  16133. }
  16134. if (_glewStrSame2(&pos, &len, (const GLubyte*)"OML_", 4))
  16135. {
  16136. #ifdef GLX_OML_swap_method
  16137. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_method", 11))
  16138. {
  16139. ret = GLXEW_OML_swap_method;
  16140. continue;
  16141. }
  16142. #endif
  16143. #ifdef GLX_OML_sync_control
  16144. if (_glewStrSame3(&pos, &len, (const GLubyte*)"sync_control", 12))
  16145. {
  16146. ret = GLXEW_OML_sync_control;
  16147. continue;
  16148. }
  16149. #endif
  16150. }
  16151. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGIS_", 5))
  16152. {
  16153. #ifdef GLX_SGIS_blended_overlay
  16154. if (_glewStrSame3(&pos, &len, (const GLubyte*)"blended_overlay", 15))
  16155. {
  16156. ret = GLXEW_SGIS_blended_overlay;
  16157. continue;
  16158. }
  16159. #endif
  16160. #ifdef GLX_SGIS_color_range
  16161. if (_glewStrSame3(&pos, &len, (const GLubyte*)"color_range", 11))
  16162. {
  16163. ret = GLXEW_SGIS_color_range;
  16164. continue;
  16165. }
  16166. #endif
  16167. #ifdef GLX_SGIS_multisample
  16168. if (_glewStrSame3(&pos, &len, (const GLubyte*)"multisample", 11))
  16169. {
  16170. ret = GLXEW_SGIS_multisample;
  16171. continue;
  16172. }
  16173. #endif
  16174. #ifdef GLX_SGIS_shared_multisample
  16175. if (_glewStrSame3(&pos, &len, (const GLubyte*)"shared_multisample", 18))
  16176. {
  16177. ret = GLXEW_SGIS_shared_multisample;
  16178. continue;
  16179. }
  16180. #endif
  16181. }
  16182. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGIX_", 5))
  16183. {
  16184. #ifdef GLX_SGIX_fbconfig
  16185. if (_glewStrSame3(&pos, &len, (const GLubyte*)"fbconfig", 8))
  16186. {
  16187. ret = GLXEW_SGIX_fbconfig;
  16188. continue;
  16189. }
  16190. #endif
  16191. #ifdef GLX_SGIX_hyperpipe
  16192. if (_glewStrSame3(&pos, &len, (const GLubyte*)"hyperpipe", 9))
  16193. {
  16194. ret = GLXEW_SGIX_hyperpipe;
  16195. continue;
  16196. }
  16197. #endif
  16198. #ifdef GLX_SGIX_pbuffer
  16199. if (_glewStrSame3(&pos, &len, (const GLubyte*)"pbuffer", 7))
  16200. {
  16201. ret = GLXEW_SGIX_pbuffer;
  16202. continue;
  16203. }
  16204. #endif
  16205. #ifdef GLX_SGIX_swap_barrier
  16206. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_barrier", 12))
  16207. {
  16208. ret = GLXEW_SGIX_swap_barrier;
  16209. continue;
  16210. }
  16211. #endif
  16212. #ifdef GLX_SGIX_swap_group
  16213. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_group", 10))
  16214. {
  16215. ret = GLXEW_SGIX_swap_group;
  16216. continue;
  16217. }
  16218. #endif
  16219. #ifdef GLX_SGIX_video_resize
  16220. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_resize", 12))
  16221. {
  16222. ret = GLXEW_SGIX_video_resize;
  16223. continue;
  16224. }
  16225. #endif
  16226. #ifdef GLX_SGIX_visual_select_group
  16227. if (_glewStrSame3(&pos, &len, (const GLubyte*)"visual_select_group", 19))
  16228. {
  16229. ret = GLXEW_SGIX_visual_select_group;
  16230. continue;
  16231. }
  16232. #endif
  16233. }
  16234. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SGI_", 4))
  16235. {
  16236. #ifdef GLX_SGI_cushion
  16237. if (_glewStrSame3(&pos, &len, (const GLubyte*)"cushion", 7))
  16238. {
  16239. ret = GLXEW_SGI_cushion;
  16240. continue;
  16241. }
  16242. #endif
  16243. #ifdef GLX_SGI_make_current_read
  16244. if (_glewStrSame3(&pos, &len, (const GLubyte*)"make_current_read", 17))
  16245. {
  16246. ret = GLXEW_SGI_make_current_read;
  16247. continue;
  16248. }
  16249. #endif
  16250. #ifdef GLX_SGI_swap_control
  16251. if (_glewStrSame3(&pos, &len, (const GLubyte*)"swap_control", 12))
  16252. {
  16253. ret = GLXEW_SGI_swap_control;
  16254. continue;
  16255. }
  16256. #endif
  16257. #ifdef GLX_SGI_video_sync
  16258. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_sync", 10))
  16259. {
  16260. ret = GLXEW_SGI_video_sync;
  16261. continue;
  16262. }
  16263. #endif
  16264. }
  16265. if (_glewStrSame2(&pos, &len, (const GLubyte*)"SUN_", 4))
  16266. {
  16267. #ifdef GLX_SUN_get_transparent_index
  16268. if (_glewStrSame3(&pos, &len, (const GLubyte*)"get_transparent_index", 21))
  16269. {
  16270. ret = GLXEW_SUN_get_transparent_index;
  16271. continue;
  16272. }
  16273. #endif
  16274. #ifdef GLX_SUN_video_resize
  16275. if (_glewStrSame3(&pos, &len, (const GLubyte*)"video_resize", 12))
  16276. {
  16277. ret = GLXEW_SUN_video_resize;
  16278. continue;
  16279. }
  16280. #endif
  16281. }
  16282. }
  16283. ret = (len == 0);
  16284. }
  16285. return ret;
  16286. }
  16287. #endif /* _WIN32 */