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.
 
 
 
 
 
 

1776 lines
72 KiB

  1. /*
  2. ** The OpenGL Extension Wrangler Library
  3. ** Copyright (C) 2008-2017, Nigel Stewart <nigels[]users sourceforge net>
  4. ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  6. ** Copyright (C) 2002, Lev Povalahev
  7. ** All rights reserved.
  8. **
  9. ** Redistribution and use in source and binary forms, with or without
  10. ** modification, are permitted provided that the following conditions are met:
  11. **
  12. ** * Redistributions of source code must retain the above copyright notice,
  13. ** this list of conditions and the following disclaimer.
  14. ** * Redistributions in binary form must reproduce the above copyright notice,
  15. ** this list of conditions and the following disclaimer in the documentation
  16. ** and/or other materials provided with the distribution.
  17. ** * The name of the author may be used to endorse or promote products
  18. ** derived from this software without specific prior written permission.
  19. **
  20. ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  24. ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26. ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27. ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28. ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  30. ** THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. /*
  33. * Mesa 3-D graphics library
  34. * Version: 7.0
  35. *
  36. * Copyright (C) 1999-2007 Brian Paul All Rights Reserved.
  37. *
  38. * Permission is hereby granted, free of charge, to any person obtaining a
  39. * copy of this software and associated documentation files (the "Software"),
  40. * to deal in the Software without restriction, including without limitation
  41. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  42. * and/or sell copies of the Software, and to permit persons to whom the
  43. * Software is furnished to do so, subject to the following conditions:
  44. *
  45. * The above copyright notice and this permission notice shall be included
  46. * in all copies or substantial portions of the Software.
  47. *
  48. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  49. * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  50. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  51. * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  52. * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  53. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  54. */
  55. /*
  56. ** Copyright (c) 2007 The Khronos Group Inc.
  57. **
  58. ** Permission is hereby granted, free of charge, to any person obtaining a
  59. ** copy of this software and/or associated documentation files (the
  60. ** "Materials"), to deal in the Materials without restriction, including
  61. ** without limitation the rights to use, copy, modify, merge, publish,
  62. ** distribute, sublicense, and/or sell copies of the Materials, and to
  63. ** permit persons to whom the Materials are furnished to do so, subject to
  64. ** the following conditions:
  65. **
  66. ** The above copyright notice and this permission notice shall be included
  67. ** in all copies or substantial portions of the Materials.
  68. **
  69. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  70. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  71. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  72. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  73. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  74. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  75. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  76. */
  77. #ifndef __glxew_h__
  78. #define __glxew_h__
  79. #define __GLXEW_H__
  80. #ifdef __glxext_h_
  81. #error glxext.h included before glxew.h
  82. #endif
  83. #if defined(GLX_H) || defined(__GLX_glx_h__) || defined(__glx_h__)
  84. #error glx.h included before glxew.h
  85. #endif
  86. #define __glxext_h_
  87. #define GLX_H
  88. #define __GLX_glx_h__
  89. #define __glx_h__
  90. #include <X11/Xlib.h>
  91. #include <X11/Xutil.h>
  92. #include <X11/Xmd.h>
  93. #include <GL/glew.h>
  94. #ifdef __cplusplus
  95. extern "C" {
  96. #endif
  97. /* ---------------------------- GLX_VERSION_1_0 --------------------------- */
  98. #ifndef GLX_VERSION_1_0
  99. #define GLX_VERSION_1_0 1
  100. #define GLX_USE_GL 1
  101. #define GLX_BUFFER_SIZE 2
  102. #define GLX_LEVEL 3
  103. #define GLX_RGBA 4
  104. #define GLX_DOUBLEBUFFER 5
  105. #define GLX_STEREO 6
  106. #define GLX_AUX_BUFFERS 7
  107. #define GLX_RED_SIZE 8
  108. #define GLX_GREEN_SIZE 9
  109. #define GLX_BLUE_SIZE 10
  110. #define GLX_ALPHA_SIZE 11
  111. #define GLX_DEPTH_SIZE 12
  112. #define GLX_STENCIL_SIZE 13
  113. #define GLX_ACCUM_RED_SIZE 14
  114. #define GLX_ACCUM_GREEN_SIZE 15
  115. #define GLX_ACCUM_BLUE_SIZE 16
  116. #define GLX_ACCUM_ALPHA_SIZE 17
  117. #define GLX_BAD_SCREEN 1
  118. #define GLX_BAD_ATTRIBUTE 2
  119. #define GLX_NO_EXTENSION 3
  120. #define GLX_BAD_VISUAL 4
  121. #define GLX_BAD_CONTEXT 5
  122. #define GLX_BAD_VALUE 6
  123. #define GLX_BAD_ENUM 7
  124. typedef XID GLXDrawable;
  125. typedef XID GLXPixmap;
  126. #ifdef __sun
  127. typedef struct __glXContextRec *GLXContext;
  128. #else
  129. typedef struct __GLXcontextRec *GLXContext;
  130. #endif
  131. typedef unsigned int GLXVideoDeviceNV;
  132. extern Bool glXQueryExtension (Display *dpy, int *errorBase, int *eventBase);
  133. extern Bool glXQueryVersion (Display *dpy, int *major, int *minor);
  134. extern int glXGetConfig (Display *dpy, XVisualInfo *vis, int attrib, int *value);
  135. extern XVisualInfo* glXChooseVisual (Display *dpy, int screen, int *attribList);
  136. extern GLXPixmap glXCreateGLXPixmap (Display *dpy, XVisualInfo *vis, Pixmap pixmap);
  137. extern void glXDestroyGLXPixmap (Display *dpy, GLXPixmap pix);
  138. extern GLXContext glXCreateContext (Display *dpy, XVisualInfo *vis, GLXContext shareList, Bool direct);
  139. extern void glXDestroyContext (Display *dpy, GLXContext ctx);
  140. extern Bool glXIsDirect (Display *dpy, GLXContext ctx);
  141. extern void glXCopyContext (Display *dpy, GLXContext src, GLXContext dst, GLulong mask);
  142. extern Bool glXMakeCurrent (Display *dpy, GLXDrawable drawable, GLXContext ctx);
  143. extern GLXContext glXGetCurrentContext (void);
  144. extern GLXDrawable glXGetCurrentDrawable (void);
  145. extern void glXWaitGL (void);
  146. extern void glXWaitX (void);
  147. extern void glXSwapBuffers (Display *dpy, GLXDrawable drawable);
  148. extern void glXUseXFont (Font font, int first, int count, int listBase);
  149. #define GLXEW_VERSION_1_0 GLXEW_GET_VAR(__GLXEW_VERSION_1_0)
  150. #endif /* GLX_VERSION_1_0 */
  151. /* ---------------------------- GLX_VERSION_1_1 --------------------------- */
  152. #ifndef GLX_VERSION_1_1
  153. #define GLX_VERSION_1_1
  154. #define GLX_VENDOR 0x1
  155. #define GLX_VERSION 0x2
  156. #define GLX_EXTENSIONS 0x3
  157. extern const char* glXQueryExtensionsString (Display *dpy, int screen);
  158. extern const char* glXGetClientString (Display *dpy, int name);
  159. extern const char* glXQueryServerString (Display *dpy, int screen, int name);
  160. #define GLXEW_VERSION_1_1 GLXEW_GET_VAR(__GLXEW_VERSION_1_1)
  161. #endif /* GLX_VERSION_1_1 */
  162. /* ---------------------------- GLX_VERSION_1_2 ---------------------------- */
  163. #ifndef GLX_VERSION_1_2
  164. #define GLX_VERSION_1_2 1
  165. typedef Display* ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
  166. #define glXGetCurrentDisplay GLXEW_GET_FUN(__glewXGetCurrentDisplay)
  167. #define GLXEW_VERSION_1_2 GLXEW_GET_VAR(__GLXEW_VERSION_1_2)
  168. #endif /* GLX_VERSION_1_2 */
  169. /* ---------------------------- GLX_VERSION_1_3 ---------------------------- */
  170. #ifndef GLX_VERSION_1_3
  171. #define GLX_VERSION_1_3 1
  172. #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
  173. #define GLX_RGBA_BIT 0x00000001
  174. #define GLX_WINDOW_BIT 0x00000001
  175. #define GLX_COLOR_INDEX_BIT 0x00000002
  176. #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
  177. #define GLX_PIXMAP_BIT 0x00000002
  178. #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
  179. #define GLX_PBUFFER_BIT 0x00000004
  180. #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
  181. #define GLX_AUX_BUFFERS_BIT 0x00000010
  182. #define GLX_CONFIG_CAVEAT 0x20
  183. #define GLX_DEPTH_BUFFER_BIT 0x00000020
  184. #define GLX_X_VISUAL_TYPE 0x22
  185. #define GLX_TRANSPARENT_TYPE 0x23
  186. #define GLX_TRANSPARENT_INDEX_VALUE 0x24
  187. #define GLX_TRANSPARENT_RED_VALUE 0x25
  188. #define GLX_TRANSPARENT_GREEN_VALUE 0x26
  189. #define GLX_TRANSPARENT_BLUE_VALUE 0x27
  190. #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
  191. #define GLX_STENCIL_BUFFER_BIT 0x00000040
  192. #define GLX_ACCUM_BUFFER_BIT 0x00000080
  193. #define GLX_NONE 0x8000
  194. #define GLX_SLOW_CONFIG 0x8001
  195. #define GLX_TRUE_COLOR 0x8002
  196. #define GLX_DIRECT_COLOR 0x8003
  197. #define GLX_PSEUDO_COLOR 0x8004
  198. #define GLX_STATIC_COLOR 0x8005
  199. #define GLX_GRAY_SCALE 0x8006
  200. #define GLX_STATIC_GRAY 0x8007
  201. #define GLX_TRANSPARENT_RGB 0x8008
  202. #define GLX_TRANSPARENT_INDEX 0x8009
  203. #define GLX_VISUAL_ID 0x800B
  204. #define GLX_SCREEN 0x800C
  205. #define GLX_NON_CONFORMANT_CONFIG 0x800D
  206. #define GLX_DRAWABLE_TYPE 0x8010
  207. #define GLX_RENDER_TYPE 0x8011
  208. #define GLX_X_RENDERABLE 0x8012
  209. #define GLX_FBCONFIG_ID 0x8013
  210. #define GLX_RGBA_TYPE 0x8014
  211. #define GLX_COLOR_INDEX_TYPE 0x8015
  212. #define GLX_MAX_PBUFFER_WIDTH 0x8016
  213. #define GLX_MAX_PBUFFER_HEIGHT 0x8017
  214. #define GLX_MAX_PBUFFER_PIXELS 0x8018
  215. #define GLX_PRESERVED_CONTENTS 0x801B
  216. #define GLX_LARGEST_PBUFFER 0x801C
  217. #define GLX_WIDTH 0x801D
  218. #define GLX_HEIGHT 0x801E
  219. #define GLX_EVENT_MASK 0x801F
  220. #define GLX_DAMAGED 0x8020
  221. #define GLX_SAVED 0x8021
  222. #define GLX_WINDOW 0x8022
  223. #define GLX_PBUFFER 0x8023
  224. #define GLX_PBUFFER_HEIGHT 0x8040
  225. #define GLX_PBUFFER_WIDTH 0x8041
  226. #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
  227. #define GLX_DONT_CARE 0xFFFFFFFF
  228. typedef XID GLXFBConfigID;
  229. typedef XID GLXPbuffer;
  230. typedef XID GLXWindow;
  231. typedef struct __GLXFBConfigRec *GLXFBConfig;
  232. typedef struct {
  233. int event_type;
  234. int draw_type;
  235. unsigned long serial;
  236. Bool send_event;
  237. Display *display;
  238. GLXDrawable drawable;
  239. unsigned int buffer_mask;
  240. unsigned int aux_buffer;
  241. int x, y;
  242. int width, height;
  243. int count;
  244. } GLXPbufferClobberEvent;
  245. typedef union __GLXEvent {
  246. GLXPbufferClobberEvent glxpbufferclobber;
  247. long pad[24];
  248. } GLXEvent;
  249. typedef GLXFBConfig* ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  250. typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  251. typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  252. typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  253. typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  254. typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  255. typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  256. typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  257. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  258. typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  259. typedef GLXFBConfig* ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  260. typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  261. typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  262. typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *display, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  263. typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  264. typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  265. typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  266. #define glXChooseFBConfig GLXEW_GET_FUN(__glewXChooseFBConfig)
  267. #define glXCreateNewContext GLXEW_GET_FUN(__glewXCreateNewContext)
  268. #define glXCreatePbuffer GLXEW_GET_FUN(__glewXCreatePbuffer)
  269. #define glXCreatePixmap GLXEW_GET_FUN(__glewXCreatePixmap)
  270. #define glXCreateWindow GLXEW_GET_FUN(__glewXCreateWindow)
  271. #define glXDestroyPbuffer GLXEW_GET_FUN(__glewXDestroyPbuffer)
  272. #define glXDestroyPixmap GLXEW_GET_FUN(__glewXDestroyPixmap)
  273. #define glXDestroyWindow GLXEW_GET_FUN(__glewXDestroyWindow)
  274. #define glXGetCurrentReadDrawable GLXEW_GET_FUN(__glewXGetCurrentReadDrawable)
  275. #define glXGetFBConfigAttrib GLXEW_GET_FUN(__glewXGetFBConfigAttrib)
  276. #define glXGetFBConfigs GLXEW_GET_FUN(__glewXGetFBConfigs)
  277. #define glXGetSelectedEvent GLXEW_GET_FUN(__glewXGetSelectedEvent)
  278. #define glXGetVisualFromFBConfig GLXEW_GET_FUN(__glewXGetVisualFromFBConfig)
  279. #define glXMakeContextCurrent GLXEW_GET_FUN(__glewXMakeContextCurrent)
  280. #define glXQueryContext GLXEW_GET_FUN(__glewXQueryContext)
  281. #define glXQueryDrawable GLXEW_GET_FUN(__glewXQueryDrawable)
  282. #define glXSelectEvent GLXEW_GET_FUN(__glewXSelectEvent)
  283. #define GLXEW_VERSION_1_3 GLXEW_GET_VAR(__GLXEW_VERSION_1_3)
  284. #endif /* GLX_VERSION_1_3 */
  285. /* ---------------------------- GLX_VERSION_1_4 ---------------------------- */
  286. #ifndef GLX_VERSION_1_4
  287. #define GLX_VERSION_1_4 1
  288. #define GLX_SAMPLE_BUFFERS 100000
  289. #define GLX_SAMPLES 100001
  290. extern void ( * glXGetProcAddress (const GLubyte *procName)) (void);
  291. #define GLXEW_VERSION_1_4 GLXEW_GET_VAR(__GLXEW_VERSION_1_4)
  292. #endif /* GLX_VERSION_1_4 */
  293. /* -------------------------- GLX_3DFX_multisample ------------------------- */
  294. #ifndef GLX_3DFX_multisample
  295. #define GLX_3DFX_multisample 1
  296. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  297. #define GLX_SAMPLES_3DFX 0x8051
  298. #define GLXEW_3DFX_multisample GLXEW_GET_VAR(__GLXEW_3DFX_multisample)
  299. #endif /* GLX_3DFX_multisample */
  300. /* ------------------------ GLX_AMD_gpu_association ------------------------ */
  301. #ifndef GLX_AMD_gpu_association
  302. #define GLX_AMD_gpu_association 1
  303. #define GLX_GPU_VENDOR_AMD 0x1F00
  304. #define GLX_GPU_RENDERER_STRING_AMD 0x1F01
  305. #define GLX_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
  306. #define GLX_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
  307. #define GLX_GPU_RAM_AMD 0x21A3
  308. #define GLX_GPU_CLOCK_AMD 0x21A4
  309. #define GLX_GPU_NUM_PIPES_AMD 0x21A5
  310. #define GLX_GPU_NUM_SIMD_AMD 0x21A6
  311. #define GLX_GPU_NUM_RB_AMD 0x21A7
  312. #define GLX_GPU_NUM_SPI_AMD 0x21A8
  313. typedef void ( * PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC) (GLXContext dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  314. typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC) (unsigned int id, GLXContext share_list);
  315. typedef GLXContext ( * PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (unsigned int id, GLXContext share_context, const int* attribList);
  316. typedef Bool ( * PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC) (GLXContext ctx);
  317. typedef unsigned int ( * PFNGLXGETCONTEXTGPUIDAMDPROC) (GLXContext ctx);
  318. typedef GLXContext ( * PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
  319. typedef unsigned int ( * PFNGLXGETGPUIDSAMDPROC) (unsigned int maxCount, unsigned int* ids);
  320. typedef int ( * PFNGLXGETGPUINFOAMDPROC) (unsigned int id, int property, GLenum dataType, unsigned int size, void* data);
  321. typedef Bool ( * PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (GLXContext ctx);
  322. #define glXBlitContextFramebufferAMD GLXEW_GET_FUN(__glewXBlitContextFramebufferAMD)
  323. #define glXCreateAssociatedContextAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAMD)
  324. #define glXCreateAssociatedContextAttribsAMD GLXEW_GET_FUN(__glewXCreateAssociatedContextAttribsAMD)
  325. #define glXDeleteAssociatedContextAMD GLXEW_GET_FUN(__glewXDeleteAssociatedContextAMD)
  326. #define glXGetContextGPUIDAMD GLXEW_GET_FUN(__glewXGetContextGPUIDAMD)
  327. #define glXGetCurrentAssociatedContextAMD GLXEW_GET_FUN(__glewXGetCurrentAssociatedContextAMD)
  328. #define glXGetGPUIDsAMD GLXEW_GET_FUN(__glewXGetGPUIDsAMD)
  329. #define glXGetGPUInfoAMD GLXEW_GET_FUN(__glewXGetGPUInfoAMD)
  330. #define glXMakeAssociatedContextCurrentAMD GLXEW_GET_FUN(__glewXMakeAssociatedContextCurrentAMD)
  331. #define GLXEW_AMD_gpu_association GLXEW_GET_VAR(__GLXEW_AMD_gpu_association)
  332. #endif /* GLX_AMD_gpu_association */
  333. /* --------------------- GLX_ARB_context_flush_control --------------------- */
  334. #ifndef GLX_ARB_context_flush_control
  335. #define GLX_ARB_context_flush_control 1
  336. #define GLXEW_ARB_context_flush_control GLXEW_GET_VAR(__GLXEW_ARB_context_flush_control)
  337. #endif /* GLX_ARB_context_flush_control */
  338. /* ------------------------- GLX_ARB_create_context ------------------------ */
  339. #ifndef GLX_ARB_create_context
  340. #define GLX_ARB_create_context 1
  341. #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001
  342. #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
  343. #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
  344. #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
  345. #define GLX_CONTEXT_FLAGS_ARB 0x2094
  346. typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display* dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
  347. #define glXCreateContextAttribsARB GLXEW_GET_FUN(__glewXCreateContextAttribsARB)
  348. #define GLXEW_ARB_create_context GLXEW_GET_VAR(__GLXEW_ARB_create_context)
  349. #endif /* GLX_ARB_create_context */
  350. /* -------------------- GLX_ARB_create_context_no_error -------------------- */
  351. #ifndef GLX_ARB_create_context_no_error
  352. #define GLX_ARB_create_context_no_error 1
  353. #define GLXEW_ARB_create_context_no_error GLXEW_GET_VAR(__GLXEW_ARB_create_context_no_error)
  354. #endif /* GLX_ARB_create_context_no_error */
  355. /* --------------------- GLX_ARB_create_context_profile -------------------- */
  356. #ifndef GLX_ARB_create_context_profile
  357. #define GLX_ARB_create_context_profile 1
  358. #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
  359. #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
  360. #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
  361. #define GLXEW_ARB_create_context_profile GLXEW_GET_VAR(__GLXEW_ARB_create_context_profile)
  362. #endif /* GLX_ARB_create_context_profile */
  363. /* ------------------- GLX_ARB_create_context_robustness ------------------- */
  364. #ifndef GLX_ARB_create_context_robustness
  365. #define GLX_ARB_create_context_robustness 1
  366. #define GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
  367. #define GLX_LOSE_CONTEXT_ON_RESET_ARB 0x8252
  368. #define GLX_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  369. #define GLX_NO_RESET_NOTIFICATION_ARB 0x8261
  370. #define GLXEW_ARB_create_context_robustness GLXEW_GET_VAR(__GLXEW_ARB_create_context_robustness)
  371. #endif /* GLX_ARB_create_context_robustness */
  372. /* ------------------------- GLX_ARB_fbconfig_float ------------------------ */
  373. #ifndef GLX_ARB_fbconfig_float
  374. #define GLX_ARB_fbconfig_float 1
  375. #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
  376. #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
  377. #define GLXEW_ARB_fbconfig_float GLXEW_GET_VAR(__GLXEW_ARB_fbconfig_float)
  378. #endif /* GLX_ARB_fbconfig_float */
  379. /* ------------------------ GLX_ARB_framebuffer_sRGB ----------------------- */
  380. #ifndef GLX_ARB_framebuffer_sRGB
  381. #define GLX_ARB_framebuffer_sRGB 1
  382. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
  383. #define GLXEW_ARB_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_ARB_framebuffer_sRGB)
  384. #endif /* GLX_ARB_framebuffer_sRGB */
  385. /* ------------------------ GLX_ARB_get_proc_address ----------------------- */
  386. #ifndef GLX_ARB_get_proc_address
  387. #define GLX_ARB_get_proc_address 1
  388. extern void ( * glXGetProcAddressARB (const GLubyte *procName)) (void);
  389. #define GLXEW_ARB_get_proc_address GLXEW_GET_VAR(__GLXEW_ARB_get_proc_address)
  390. #endif /* GLX_ARB_get_proc_address */
  391. /* -------------------------- GLX_ARB_multisample -------------------------- */
  392. #ifndef GLX_ARB_multisample
  393. #define GLX_ARB_multisample 1
  394. #define GLX_SAMPLE_BUFFERS_ARB 100000
  395. #define GLX_SAMPLES_ARB 100001
  396. #define GLXEW_ARB_multisample GLXEW_GET_VAR(__GLXEW_ARB_multisample)
  397. #endif /* GLX_ARB_multisample */
  398. /* ---------------- GLX_ARB_robustness_application_isolation --------------- */
  399. #ifndef GLX_ARB_robustness_application_isolation
  400. #define GLX_ARB_robustness_application_isolation 1
  401. #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
  402. #define GLXEW_ARB_robustness_application_isolation GLXEW_GET_VAR(__GLXEW_ARB_robustness_application_isolation)
  403. #endif /* GLX_ARB_robustness_application_isolation */
  404. /* ---------------- GLX_ARB_robustness_share_group_isolation --------------- */
  405. #ifndef GLX_ARB_robustness_share_group_isolation
  406. #define GLX_ARB_robustness_share_group_isolation 1
  407. #define GLX_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
  408. #define GLXEW_ARB_robustness_share_group_isolation GLXEW_GET_VAR(__GLXEW_ARB_robustness_share_group_isolation)
  409. #endif /* GLX_ARB_robustness_share_group_isolation */
  410. /* ---------------------- GLX_ARB_vertex_buffer_object --------------------- */
  411. #ifndef GLX_ARB_vertex_buffer_object
  412. #define GLX_ARB_vertex_buffer_object 1
  413. #define GLX_CONTEXT_ALLOW_BUFFER_BYTE_ORDER_MISMATCH_ARB 0x2095
  414. #define GLXEW_ARB_vertex_buffer_object GLXEW_GET_VAR(__GLXEW_ARB_vertex_buffer_object)
  415. #endif /* GLX_ARB_vertex_buffer_object */
  416. /* ----------------------- GLX_ATI_pixel_format_float ---------------------- */
  417. #ifndef GLX_ATI_pixel_format_float
  418. #define GLX_ATI_pixel_format_float 1
  419. #define GLX_RGBA_FLOAT_ATI_BIT 0x00000100
  420. #define GLXEW_ATI_pixel_format_float GLXEW_GET_VAR(__GLXEW_ATI_pixel_format_float)
  421. #endif /* GLX_ATI_pixel_format_float */
  422. /* ------------------------- GLX_ATI_render_texture ------------------------ */
  423. #ifndef GLX_ATI_render_texture
  424. #define GLX_ATI_render_texture 1
  425. #define GLX_BIND_TO_TEXTURE_RGB_ATI 0x9800
  426. #define GLX_BIND_TO_TEXTURE_RGBA_ATI 0x9801
  427. #define GLX_TEXTURE_FORMAT_ATI 0x9802
  428. #define GLX_TEXTURE_TARGET_ATI 0x9803
  429. #define GLX_MIPMAP_TEXTURE_ATI 0x9804
  430. #define GLX_TEXTURE_RGB_ATI 0x9805
  431. #define GLX_TEXTURE_RGBA_ATI 0x9806
  432. #define GLX_NO_TEXTURE_ATI 0x9807
  433. #define GLX_TEXTURE_CUBE_MAP_ATI 0x9808
  434. #define GLX_TEXTURE_1D_ATI 0x9809
  435. #define GLX_TEXTURE_2D_ATI 0x980A
  436. #define GLX_MIPMAP_LEVEL_ATI 0x980B
  437. #define GLX_CUBE_MAP_FACE_ATI 0x980C
  438. #define GLX_TEXTURE_CUBE_MAP_POSITIVE_X_ATI 0x980D
  439. #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_X_ATI 0x980E
  440. #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Y_ATI 0x980F
  441. #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Y_ATI 0x9810
  442. #define GLX_TEXTURE_CUBE_MAP_POSITIVE_Z_ATI 0x9811
  443. #define GLX_TEXTURE_CUBE_MAP_NEGATIVE_Z_ATI 0x9812
  444. #define GLX_FRONT_LEFT_ATI 0x9813
  445. #define GLX_FRONT_RIGHT_ATI 0x9814
  446. #define GLX_BACK_LEFT_ATI 0x9815
  447. #define GLX_BACK_RIGHT_ATI 0x9816
  448. #define GLX_AUX0_ATI 0x9817
  449. #define GLX_AUX1_ATI 0x9818
  450. #define GLX_AUX2_ATI 0x9819
  451. #define GLX_AUX3_ATI 0x981A
  452. #define GLX_AUX4_ATI 0x981B
  453. #define GLX_AUX5_ATI 0x981C
  454. #define GLX_AUX6_ATI 0x981D
  455. #define GLX_AUX7_ATI 0x981E
  456. #define GLX_AUX8_ATI 0x981F
  457. #define GLX_AUX9_ATI 0x9820
  458. #define GLX_BIND_TO_TEXTURE_LUMINANCE_ATI 0x9821
  459. #define GLX_BIND_TO_TEXTURE_INTENSITY_ATI 0x9822
  460. typedef void ( * PFNGLXBINDTEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer);
  461. typedef void ( * PFNGLXDRAWABLEATTRIBATIPROC) (Display *dpy, GLXDrawable draw, const int *attrib_list);
  462. typedef void ( * PFNGLXRELEASETEXIMAGEATIPROC) (Display *dpy, GLXPbuffer pbuf, int buffer);
  463. #define glXBindTexImageATI GLXEW_GET_FUN(__glewXBindTexImageATI)
  464. #define glXDrawableAttribATI GLXEW_GET_FUN(__glewXDrawableAttribATI)
  465. #define glXReleaseTexImageATI GLXEW_GET_FUN(__glewXReleaseTexImageATI)
  466. #define GLXEW_ATI_render_texture GLXEW_GET_VAR(__GLXEW_ATI_render_texture)
  467. #endif /* GLX_ATI_render_texture */
  468. /* --------------------------- GLX_EXT_buffer_age -------------------------- */
  469. #ifndef GLX_EXT_buffer_age
  470. #define GLX_EXT_buffer_age 1
  471. #define GLX_BACK_BUFFER_AGE_EXT 0x20F4
  472. #define GLXEW_EXT_buffer_age GLXEW_GET_VAR(__GLXEW_EXT_buffer_age)
  473. #endif /* GLX_EXT_buffer_age */
  474. /* ------------------- GLX_EXT_create_context_es2_profile ------------------ */
  475. #ifndef GLX_EXT_create_context_es2_profile
  476. #define GLX_EXT_create_context_es2_profile 1
  477. #define GLX_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
  478. #define GLXEW_EXT_create_context_es2_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es2_profile)
  479. #endif /* GLX_EXT_create_context_es2_profile */
  480. /* ------------------- GLX_EXT_create_context_es_profile ------------------- */
  481. #ifndef GLX_EXT_create_context_es_profile
  482. #define GLX_EXT_create_context_es_profile 1
  483. #define GLX_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
  484. #define GLXEW_EXT_create_context_es_profile GLXEW_GET_VAR(__GLXEW_EXT_create_context_es_profile)
  485. #endif /* GLX_EXT_create_context_es_profile */
  486. /* --------------------- GLX_EXT_fbconfig_packed_float --------------------- */
  487. #ifndef GLX_EXT_fbconfig_packed_float
  488. #define GLX_EXT_fbconfig_packed_float 1
  489. #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
  490. #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
  491. #define GLXEW_EXT_fbconfig_packed_float GLXEW_GET_VAR(__GLXEW_EXT_fbconfig_packed_float)
  492. #endif /* GLX_EXT_fbconfig_packed_float */
  493. /* ------------------------ GLX_EXT_framebuffer_sRGB ----------------------- */
  494. #ifndef GLX_EXT_framebuffer_sRGB
  495. #define GLX_EXT_framebuffer_sRGB 1
  496. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
  497. #define GLXEW_EXT_framebuffer_sRGB GLXEW_GET_VAR(__GLXEW_EXT_framebuffer_sRGB)
  498. #endif /* GLX_EXT_framebuffer_sRGB */
  499. /* ------------------------- GLX_EXT_import_context ------------------------ */
  500. #ifndef GLX_EXT_import_context
  501. #define GLX_EXT_import_context 1
  502. #define GLX_SHARE_CONTEXT_EXT 0x800A
  503. #define GLX_VISUAL_ID_EXT 0x800B
  504. #define GLX_SCREEN_EXT 0x800C
  505. typedef XID GLXContextID;
  506. typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display* dpy, GLXContext context);
  507. typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
  508. typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display* dpy, GLXContextID contextID);
  509. typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display* dpy, GLXContext context, int attribute,int *value);
  510. #define glXFreeContextEXT GLXEW_GET_FUN(__glewXFreeContextEXT)
  511. #define glXGetContextIDEXT GLXEW_GET_FUN(__glewXGetContextIDEXT)
  512. #define glXImportContextEXT GLXEW_GET_FUN(__glewXImportContextEXT)
  513. #define glXQueryContextInfoEXT GLXEW_GET_FUN(__glewXQueryContextInfoEXT)
  514. #define GLXEW_EXT_import_context GLXEW_GET_VAR(__GLXEW_EXT_import_context)
  515. #endif /* GLX_EXT_import_context */
  516. /* ---------------------------- GLX_EXT_libglvnd --------------------------- */
  517. #ifndef GLX_EXT_libglvnd
  518. #define GLX_EXT_libglvnd 1
  519. #define GLX_VENDOR_NAMES_EXT 0x20F6
  520. #define GLXEW_EXT_libglvnd GLXEW_GET_VAR(__GLXEW_EXT_libglvnd)
  521. #endif /* GLX_EXT_libglvnd */
  522. /* -------------------------- GLX_EXT_scene_marker ------------------------- */
  523. #ifndef GLX_EXT_scene_marker
  524. #define GLX_EXT_scene_marker 1
  525. #define GLXEW_EXT_scene_marker GLXEW_GET_VAR(__GLXEW_EXT_scene_marker)
  526. #endif /* GLX_EXT_scene_marker */
  527. /* -------------------------- GLX_EXT_stereo_tree -------------------------- */
  528. #ifndef GLX_EXT_stereo_tree
  529. #define GLX_EXT_stereo_tree 1
  530. #define GLX_STEREO_NOTIFY_EXT 0x00000000
  531. #define GLX_STEREO_NOTIFY_MASK_EXT 0x00000001
  532. #define GLX_STEREO_TREE_EXT 0x20F5
  533. #define GLXEW_EXT_stereo_tree GLXEW_GET_VAR(__GLXEW_EXT_stereo_tree)
  534. #endif /* GLX_EXT_stereo_tree */
  535. /* -------------------------- GLX_EXT_swap_control ------------------------- */
  536. #ifndef GLX_EXT_swap_control
  537. #define GLX_EXT_swap_control 1
  538. #define GLX_SWAP_INTERVAL_EXT 0x20F1
  539. #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
  540. typedef void ( * PFNGLXSWAPINTERVALEXTPROC) (Display* dpy, GLXDrawable drawable, int interval);
  541. #define glXSwapIntervalEXT GLXEW_GET_FUN(__glewXSwapIntervalEXT)
  542. #define GLXEW_EXT_swap_control GLXEW_GET_VAR(__GLXEW_EXT_swap_control)
  543. #endif /* GLX_EXT_swap_control */
  544. /* ----------------------- GLX_EXT_swap_control_tear ----------------------- */
  545. #ifndef GLX_EXT_swap_control_tear
  546. #define GLX_EXT_swap_control_tear 1
  547. #define GLX_LATE_SWAPS_TEAR_EXT 0x20F3
  548. #define GLXEW_EXT_swap_control_tear GLXEW_GET_VAR(__GLXEW_EXT_swap_control_tear)
  549. #endif /* GLX_EXT_swap_control_tear */
  550. /* ---------------------- GLX_EXT_texture_from_pixmap ---------------------- */
  551. #ifndef GLX_EXT_texture_from_pixmap
  552. #define GLX_EXT_texture_from_pixmap 1
  553. #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
  554. #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
  555. #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
  556. #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
  557. #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
  558. #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
  559. #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
  560. #define GLX_Y_INVERTED_EXT 0x20D4
  561. #define GLX_TEXTURE_FORMAT_EXT 0x20D5
  562. #define GLX_TEXTURE_TARGET_EXT 0x20D6
  563. #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
  564. #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
  565. #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
  566. #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
  567. #define GLX_TEXTURE_1D_EXT 0x20DB
  568. #define GLX_TEXTURE_2D_EXT 0x20DC
  569. #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
  570. #define GLX_FRONT_LEFT_EXT 0x20DE
  571. #define GLX_FRONT_RIGHT_EXT 0x20DF
  572. #define GLX_BACK_LEFT_EXT 0x20E0
  573. #define GLX_BACK_RIGHT_EXT 0x20E1
  574. #define GLX_AUX0_EXT 0x20E2
  575. #define GLX_AUX1_EXT 0x20E3
  576. #define GLX_AUX2_EXT 0x20E4
  577. #define GLX_AUX3_EXT 0x20E5
  578. #define GLX_AUX4_EXT 0x20E6
  579. #define GLX_AUX5_EXT 0x20E7
  580. #define GLX_AUX6_EXT 0x20E8
  581. #define GLX_AUX7_EXT 0x20E9
  582. #define GLX_AUX8_EXT 0x20EA
  583. #define GLX_AUX9_EXT 0x20EB
  584. typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer, const int *attrib_list);
  585. typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display* display, GLXDrawable drawable, int buffer);
  586. #define glXBindTexImageEXT GLXEW_GET_FUN(__glewXBindTexImageEXT)
  587. #define glXReleaseTexImageEXT GLXEW_GET_FUN(__glewXReleaseTexImageEXT)
  588. #define GLXEW_EXT_texture_from_pixmap GLXEW_GET_VAR(__GLXEW_EXT_texture_from_pixmap)
  589. #endif /* GLX_EXT_texture_from_pixmap */
  590. /* -------------------------- GLX_EXT_visual_info -------------------------- */
  591. #ifndef GLX_EXT_visual_info
  592. #define GLX_EXT_visual_info 1
  593. #define GLX_X_VISUAL_TYPE_EXT 0x22
  594. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  595. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  596. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  597. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  598. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  599. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  600. #define GLX_NONE_EXT 0x8000
  601. #define GLX_TRUE_COLOR_EXT 0x8002
  602. #define GLX_DIRECT_COLOR_EXT 0x8003
  603. #define GLX_PSEUDO_COLOR_EXT 0x8004
  604. #define GLX_STATIC_COLOR_EXT 0x8005
  605. #define GLX_GRAY_SCALE_EXT 0x8006
  606. #define GLX_STATIC_GRAY_EXT 0x8007
  607. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  608. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  609. #define GLXEW_EXT_visual_info GLXEW_GET_VAR(__GLXEW_EXT_visual_info)
  610. #endif /* GLX_EXT_visual_info */
  611. /* ------------------------- GLX_EXT_visual_rating ------------------------- */
  612. #ifndef GLX_EXT_visual_rating
  613. #define GLX_EXT_visual_rating 1
  614. #define GLX_VISUAL_CAVEAT_EXT 0x20
  615. #define GLX_SLOW_VISUAL_EXT 0x8001
  616. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  617. #define GLXEW_EXT_visual_rating GLXEW_GET_VAR(__GLXEW_EXT_visual_rating)
  618. #endif /* GLX_EXT_visual_rating */
  619. /* -------------------------- GLX_INTEL_swap_event ------------------------- */
  620. #ifndef GLX_INTEL_swap_event
  621. #define GLX_INTEL_swap_event 1
  622. #define GLX_EXCHANGE_COMPLETE_INTEL 0x8180
  623. #define GLX_COPY_COMPLETE_INTEL 0x8181
  624. #define GLX_FLIP_COMPLETE_INTEL 0x8182
  625. #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x04000000
  626. #define GLXEW_INTEL_swap_event GLXEW_GET_VAR(__GLXEW_INTEL_swap_event)
  627. #endif /* GLX_INTEL_swap_event */
  628. /* -------------------------- GLX_MESA_agp_offset -------------------------- */
  629. #ifndef GLX_MESA_agp_offset
  630. #define GLX_MESA_agp_offset 1
  631. typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void* pointer);
  632. #define glXGetAGPOffsetMESA GLXEW_GET_FUN(__glewXGetAGPOffsetMESA)
  633. #define GLXEW_MESA_agp_offset GLXEW_GET_VAR(__GLXEW_MESA_agp_offset)
  634. #endif /* GLX_MESA_agp_offset */
  635. /* ------------------------ GLX_MESA_copy_sub_buffer ----------------------- */
  636. #ifndef GLX_MESA_copy_sub_buffer
  637. #define GLX_MESA_copy_sub_buffer 1
  638. typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display* dpy, GLXDrawable drawable, int x, int y, int width, int height);
  639. #define glXCopySubBufferMESA GLXEW_GET_FUN(__glewXCopySubBufferMESA)
  640. #define GLXEW_MESA_copy_sub_buffer GLXEW_GET_VAR(__GLXEW_MESA_copy_sub_buffer)
  641. #endif /* GLX_MESA_copy_sub_buffer */
  642. /* ------------------------ GLX_MESA_pixmap_colormap ----------------------- */
  643. #ifndef GLX_MESA_pixmap_colormap
  644. #define GLX_MESA_pixmap_colormap 1
  645. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display* dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  646. #define glXCreateGLXPixmapMESA GLXEW_GET_FUN(__glewXCreateGLXPixmapMESA)
  647. #define GLXEW_MESA_pixmap_colormap GLXEW_GET_VAR(__GLXEW_MESA_pixmap_colormap)
  648. #endif /* GLX_MESA_pixmap_colormap */
  649. /* ------------------------ GLX_MESA_query_renderer ------------------------ */
  650. #ifndef GLX_MESA_query_renderer
  651. #define GLX_MESA_query_renderer 1
  652. #define GLX_RENDERER_VENDOR_ID_MESA 0x8183
  653. #define GLX_RENDERER_DEVICE_ID_MESA 0x8184
  654. #define GLX_RENDERER_VERSION_MESA 0x8185
  655. #define GLX_RENDERER_ACCELERATED_MESA 0x8186
  656. #define GLX_RENDERER_VIDEO_MEMORY_MESA 0x8187
  657. #define GLX_RENDERER_UNIFIED_MEMORY_ARCHITECTURE_MESA 0x8188
  658. #define GLX_RENDERER_PREFERRED_PROFILE_MESA 0x8189
  659. #define GLX_RENDERER_OPENGL_CORE_PROFILE_VERSION_MESA 0x818A
  660. #define GLX_RENDERER_OPENGL_COMPATIBILITY_PROFILE_VERSION_MESA 0x818B
  661. #define GLX_RENDERER_OPENGL_ES_PROFILE_VERSION_MESA 0x818C
  662. #define GLX_RENDERER_OPENGL_ES2_PROFILE_VERSION_MESA 0x818D
  663. #define GLX_RENDERER_ID_MESA 0x818E
  664. typedef Bool ( * PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC) (int attribute, unsigned int* value);
  665. typedef const char* ( * PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC) (int attribute);
  666. typedef Bool ( * PFNGLXQUERYRENDERERINTEGERMESAPROC) (Display* dpy, int screen, int renderer, int attribute, unsigned int *value);
  667. typedef const char* ( * PFNGLXQUERYRENDERERSTRINGMESAPROC) (Display *dpy, int screen, int renderer, int attribute);
  668. #define glXQueryCurrentRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererIntegerMESA)
  669. #define glXQueryCurrentRendererStringMESA GLXEW_GET_FUN(__glewXQueryCurrentRendererStringMESA)
  670. #define glXQueryRendererIntegerMESA GLXEW_GET_FUN(__glewXQueryRendererIntegerMESA)
  671. #define glXQueryRendererStringMESA GLXEW_GET_FUN(__glewXQueryRendererStringMESA)
  672. #define GLXEW_MESA_query_renderer GLXEW_GET_VAR(__GLXEW_MESA_query_renderer)
  673. #endif /* GLX_MESA_query_renderer */
  674. /* ------------------------ GLX_MESA_release_buffers ----------------------- */
  675. #ifndef GLX_MESA_release_buffers
  676. #define GLX_MESA_release_buffers 1
  677. typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display* dpy, GLXDrawable d);
  678. #define glXReleaseBuffersMESA GLXEW_GET_FUN(__glewXReleaseBuffersMESA)
  679. #define GLXEW_MESA_release_buffers GLXEW_GET_VAR(__GLXEW_MESA_release_buffers)
  680. #endif /* GLX_MESA_release_buffers */
  681. /* ------------------------- GLX_MESA_set_3dfx_mode ------------------------ */
  682. #ifndef GLX_MESA_set_3dfx_mode
  683. #define GLX_MESA_set_3dfx_mode 1
  684. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  685. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  686. typedef GLboolean ( * PFNGLXSET3DFXMODEMESAPROC) (GLint mode);
  687. #define glXSet3DfxModeMESA GLXEW_GET_FUN(__glewXSet3DfxModeMESA)
  688. #define GLXEW_MESA_set_3dfx_mode GLXEW_GET_VAR(__GLXEW_MESA_set_3dfx_mode)
  689. #endif /* GLX_MESA_set_3dfx_mode */
  690. /* ------------------------- GLX_MESA_swap_control ------------------------- */
  691. #ifndef GLX_MESA_swap_control
  692. #define GLX_MESA_swap_control 1
  693. typedef int ( * PFNGLXGETSWAPINTERVALMESAPROC) (void);
  694. typedef int ( * PFNGLXSWAPINTERVALMESAPROC) (unsigned int interval);
  695. #define glXGetSwapIntervalMESA GLXEW_GET_FUN(__glewXGetSwapIntervalMESA)
  696. #define glXSwapIntervalMESA GLXEW_GET_FUN(__glewXSwapIntervalMESA)
  697. #define GLXEW_MESA_swap_control GLXEW_GET_VAR(__GLXEW_MESA_swap_control)
  698. #endif /* GLX_MESA_swap_control */
  699. /* --------------------------- GLX_NV_copy_buffer -------------------------- */
  700. #ifndef GLX_NV_copy_buffer
  701. #define GLX_NV_copy_buffer 1
  702. typedef void ( * PFNGLXCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  703. typedef void ( * PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC) (Display* dpy, GLXContext readCtx, GLXContext writeCtx, GLuint readBuffer, GLuint writeBuffer, GLintptr readOffset, GLintptr writeOffset, GLsizeiptr size);
  704. #define glXCopyBufferSubDataNV GLXEW_GET_FUN(__glewXCopyBufferSubDataNV)
  705. #define glXNamedCopyBufferSubDataNV GLXEW_GET_FUN(__glewXNamedCopyBufferSubDataNV)
  706. #define GLXEW_NV_copy_buffer GLXEW_GET_VAR(__GLXEW_NV_copy_buffer)
  707. #endif /* GLX_NV_copy_buffer */
  708. /* --------------------------- GLX_NV_copy_image --------------------------- */
  709. #ifndef GLX_NV_copy_image
  710. #define GLX_NV_copy_image 1
  711. typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
  712. #define glXCopyImageSubDataNV GLXEW_GET_FUN(__glewXCopyImageSubDataNV)
  713. #define GLXEW_NV_copy_image GLXEW_GET_VAR(__GLXEW_NV_copy_image)
  714. #endif /* GLX_NV_copy_image */
  715. /* ------------------------ GLX_NV_delay_before_swap ----------------------- */
  716. #ifndef GLX_NV_delay_before_swap
  717. #define GLX_NV_delay_before_swap 1
  718. typedef Bool ( * PFNGLXDELAYBEFORESWAPNVPROC) (Display* dpy, GLXDrawable drawable, GLfloat seconds);
  719. #define glXDelayBeforeSwapNV GLXEW_GET_FUN(__glewXDelayBeforeSwapNV)
  720. #define GLXEW_NV_delay_before_swap GLXEW_GET_VAR(__GLXEW_NV_delay_before_swap)
  721. #endif /* GLX_NV_delay_before_swap */
  722. /* -------------------------- GLX_NV_float_buffer -------------------------- */
  723. #ifndef GLX_NV_float_buffer
  724. #define GLX_NV_float_buffer 1
  725. #define GLX_FLOAT_COMPONENTS_NV 0x20B0
  726. #define GLXEW_NV_float_buffer GLXEW_GET_VAR(__GLXEW_NV_float_buffer)
  727. #endif /* GLX_NV_float_buffer */
  728. /* ---------------------- GLX_NV_multisample_coverage ---------------------- */
  729. #ifndef GLX_NV_multisample_coverage
  730. #define GLX_NV_multisample_coverage 1
  731. #define GLX_COLOR_SAMPLES_NV 0x20B3
  732. #define GLX_COVERAGE_SAMPLES_NV 100001
  733. #define GLXEW_NV_multisample_coverage GLXEW_GET_VAR(__GLXEW_NV_multisample_coverage)
  734. #endif /* GLX_NV_multisample_coverage */
  735. /* -------------------------- GLX_NV_present_video ------------------------- */
  736. #ifndef GLX_NV_present_video
  737. #define GLX_NV_present_video 1
  738. #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
  739. typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display* dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
  740. typedef unsigned int* ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
  741. #define glXBindVideoDeviceNV GLXEW_GET_FUN(__glewXBindVideoDeviceNV)
  742. #define glXEnumerateVideoDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoDevicesNV)
  743. #define GLXEW_NV_present_video GLXEW_GET_VAR(__GLXEW_NV_present_video)
  744. #endif /* GLX_NV_present_video */
  745. /* ------------------ GLX_NV_robustness_video_memory_purge ----------------- */
  746. #ifndef GLX_NV_robustness_video_memory_purge
  747. #define GLX_NV_robustness_video_memory_purge 1
  748. #define GLX_GENERATE_RESET_ON_VIDEO_MEMORY_PURGE_NV 0x20F7
  749. #define GLXEW_NV_robustness_video_memory_purge GLXEW_GET_VAR(__GLXEW_NV_robustness_video_memory_purge)
  750. #endif /* GLX_NV_robustness_video_memory_purge */
  751. /* --------------------------- GLX_NV_swap_group --------------------------- */
  752. #ifndef GLX_NV_swap_group
  753. #define GLX_NV_swap_group 1
  754. typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display* dpy, GLuint group, GLuint barrier);
  755. typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint group);
  756. typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display* dpy, int screen, GLuint *count);
  757. typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display* dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
  758. typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display* dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
  759. typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display* dpy, int screen);
  760. #define glXBindSwapBarrierNV GLXEW_GET_FUN(__glewXBindSwapBarrierNV)
  761. #define glXJoinSwapGroupNV GLXEW_GET_FUN(__glewXJoinSwapGroupNV)
  762. #define glXQueryFrameCountNV GLXEW_GET_FUN(__glewXQueryFrameCountNV)
  763. #define glXQueryMaxSwapGroupsNV GLXEW_GET_FUN(__glewXQueryMaxSwapGroupsNV)
  764. #define glXQuerySwapGroupNV GLXEW_GET_FUN(__glewXQuerySwapGroupNV)
  765. #define glXResetFrameCountNV GLXEW_GET_FUN(__glewXResetFrameCountNV)
  766. #define GLXEW_NV_swap_group GLXEW_GET_VAR(__GLXEW_NV_swap_group)
  767. #endif /* GLX_NV_swap_group */
  768. /* ----------------------- GLX_NV_vertex_array_range ----------------------- */
  769. #ifndef GLX_NV_vertex_array_range
  770. #define GLX_NV_vertex_array_range 1
  771. typedef void * ( * PFNGLXALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
  772. typedef void ( * PFNGLXFREEMEMORYNVPROC) (void *pointer);
  773. #define glXAllocateMemoryNV GLXEW_GET_FUN(__glewXAllocateMemoryNV)
  774. #define glXFreeMemoryNV GLXEW_GET_FUN(__glewXFreeMemoryNV)
  775. #define GLXEW_NV_vertex_array_range GLXEW_GET_VAR(__GLXEW_NV_vertex_array_range)
  776. #endif /* GLX_NV_vertex_array_range */
  777. /* -------------------------- GLX_NV_video_capture ------------------------- */
  778. #ifndef GLX_NV_video_capture
  779. #define GLX_NV_video_capture 1
  780. #define GLX_DEVICE_ID_NV 0x20CD
  781. #define GLX_UNIQUE_ID_NV 0x20CE
  782. #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
  783. typedef XID GLXVideoCaptureDeviceNV;
  784. typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display* dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
  785. typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display* dpy, int screen, int *nelements);
  786. typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device);
  787. typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
  788. typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display* dpy, GLXVideoCaptureDeviceNV device);
  789. #define glXBindVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXBindVideoCaptureDeviceNV)
  790. #define glXEnumerateVideoCaptureDevicesNV GLXEW_GET_FUN(__glewXEnumerateVideoCaptureDevicesNV)
  791. #define glXLockVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXLockVideoCaptureDeviceNV)
  792. #define glXQueryVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXQueryVideoCaptureDeviceNV)
  793. #define glXReleaseVideoCaptureDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoCaptureDeviceNV)
  794. #define GLXEW_NV_video_capture GLXEW_GET_VAR(__GLXEW_NV_video_capture)
  795. #endif /* GLX_NV_video_capture */
  796. /* ---------------------------- GLX_NV_video_out --------------------------- */
  797. #ifndef GLX_NV_video_out
  798. #define GLX_NV_video_out 1
  799. #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
  800. #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
  801. #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
  802. #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  803. #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  804. #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
  805. #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
  806. #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
  807. #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
  808. #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
  809. typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display* dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
  810. typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display* dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
  811. typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  812. typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display* dpy, int screen, GLXVideoDeviceNV VideoDevice);
  813. typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display* dpy, GLXPbuffer pbuf);
  814. typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display* dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
  815. #define glXBindVideoImageNV GLXEW_GET_FUN(__glewXBindVideoImageNV)
  816. #define glXGetVideoDeviceNV GLXEW_GET_FUN(__glewXGetVideoDeviceNV)
  817. #define glXGetVideoInfoNV GLXEW_GET_FUN(__glewXGetVideoInfoNV)
  818. #define glXReleaseVideoDeviceNV GLXEW_GET_FUN(__glewXReleaseVideoDeviceNV)
  819. #define glXReleaseVideoImageNV GLXEW_GET_FUN(__glewXReleaseVideoImageNV)
  820. #define glXSendPbufferToVideoNV GLXEW_GET_FUN(__glewXSendPbufferToVideoNV)
  821. #define GLXEW_NV_video_out GLXEW_GET_VAR(__GLXEW_NV_video_out)
  822. #endif /* GLX_NV_video_out */
  823. /* -------------------------- GLX_OML_swap_method -------------------------- */
  824. #ifndef GLX_OML_swap_method
  825. #define GLX_OML_swap_method 1
  826. #define GLX_SWAP_METHOD_OML 0x8060
  827. #define GLX_SWAP_EXCHANGE_OML 0x8061
  828. #define GLX_SWAP_COPY_OML 0x8062
  829. #define GLX_SWAP_UNDEFINED_OML 0x8063
  830. #define GLXEW_OML_swap_method GLXEW_GET_VAR(__GLXEW_OML_swap_method)
  831. #endif /* GLX_OML_swap_method */
  832. /* -------------------------- GLX_OML_sync_control ------------------------- */
  833. #ifndef GLX_OML_sync_control
  834. #define GLX_OML_sync_control 1
  835. typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display* dpy, GLXDrawable drawable, int32_t* numerator, int32_t* denominator);
  836. typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t* ust, int64_t* msc, int64_t* sbc);
  837. typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  838. typedef Bool ( * PFNGLXWAITFORMSCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder, int64_t* ust, int64_t* msc, int64_t* sbc);
  839. typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display* dpy, GLXDrawable drawable, int64_t target_sbc, int64_t* ust, int64_t* msc, int64_t* sbc);
  840. #define glXGetMscRateOML GLXEW_GET_FUN(__glewXGetMscRateOML)
  841. #define glXGetSyncValuesOML GLXEW_GET_FUN(__glewXGetSyncValuesOML)
  842. #define glXSwapBuffersMscOML GLXEW_GET_FUN(__glewXSwapBuffersMscOML)
  843. #define glXWaitForMscOML GLXEW_GET_FUN(__glewXWaitForMscOML)
  844. #define glXWaitForSbcOML GLXEW_GET_FUN(__glewXWaitForSbcOML)
  845. #define GLXEW_OML_sync_control GLXEW_GET_VAR(__GLXEW_OML_sync_control)
  846. #endif /* GLX_OML_sync_control */
  847. /* ------------------------ GLX_SGIS_blended_overlay ----------------------- */
  848. #ifndef GLX_SGIS_blended_overlay
  849. #define GLX_SGIS_blended_overlay 1
  850. #define GLX_BLENDED_RGBA_SGIS 0x8025
  851. #define GLXEW_SGIS_blended_overlay GLXEW_GET_VAR(__GLXEW_SGIS_blended_overlay)
  852. #endif /* GLX_SGIS_blended_overlay */
  853. /* -------------------------- GLX_SGIS_color_range ------------------------- */
  854. #ifndef GLX_SGIS_color_range
  855. #define GLX_SGIS_color_range 1
  856. #define GLXEW_SGIS_color_range GLXEW_GET_VAR(__GLXEW_SGIS_color_range)
  857. #endif /* GLX_SGIS_color_range */
  858. /* -------------------------- GLX_SGIS_multisample ------------------------- */
  859. #ifndef GLX_SGIS_multisample
  860. #define GLX_SGIS_multisample 1
  861. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  862. #define GLX_SAMPLES_SGIS 100001
  863. #define GLXEW_SGIS_multisample GLXEW_GET_VAR(__GLXEW_SGIS_multisample)
  864. #endif /* GLX_SGIS_multisample */
  865. /* ---------------------- GLX_SGIS_shared_multisample ---------------------- */
  866. #ifndef GLX_SGIS_shared_multisample
  867. #define GLX_SGIS_shared_multisample 1
  868. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  869. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  870. #define GLXEW_SGIS_shared_multisample GLXEW_GET_VAR(__GLXEW_SGIS_shared_multisample)
  871. #endif /* GLX_SGIS_shared_multisample */
  872. /* --------------------------- GLX_SGIX_fbconfig --------------------------- */
  873. #ifndef GLX_SGIX_fbconfig
  874. #define GLX_SGIX_fbconfig 1
  875. #define GLX_RGBA_BIT_SGIX 0x00000001
  876. #define GLX_WINDOW_BIT_SGIX 0x00000001
  877. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  878. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  879. #define GLX_SCREEN_EXT 0x800C
  880. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  881. #define GLX_RENDER_TYPE_SGIX 0x8011
  882. #define GLX_X_RENDERABLE_SGIX 0x8012
  883. #define GLX_FBCONFIG_ID_SGIX 0x8013
  884. #define GLX_RGBA_TYPE_SGIX 0x8014
  885. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  886. typedef XID GLXFBConfigIDSGIX;
  887. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  888. typedef GLXFBConfigSGIX* ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  889. typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  890. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display* dpy, GLXFBConfig config, Pixmap pixmap);
  891. typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display* dpy, GLXFBConfigSGIX config, int attribute, int *value);
  892. typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display* dpy, XVisualInfo *vis);
  893. typedef XVisualInfo* ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfig config);
  894. #define glXChooseFBConfigSGIX GLXEW_GET_FUN(__glewXChooseFBConfigSGIX)
  895. #define glXCreateContextWithConfigSGIX GLXEW_GET_FUN(__glewXCreateContextWithConfigSGIX)
  896. #define glXCreateGLXPixmapWithConfigSGIX GLXEW_GET_FUN(__glewXCreateGLXPixmapWithConfigSGIX)
  897. #define glXGetFBConfigAttribSGIX GLXEW_GET_FUN(__glewXGetFBConfigAttribSGIX)
  898. #define glXGetFBConfigFromVisualSGIX GLXEW_GET_FUN(__glewXGetFBConfigFromVisualSGIX)
  899. #define glXGetVisualFromFBConfigSGIX GLXEW_GET_FUN(__glewXGetVisualFromFBConfigSGIX)
  900. #define GLXEW_SGIX_fbconfig GLXEW_GET_VAR(__GLXEW_SGIX_fbconfig)
  901. #endif /* GLX_SGIX_fbconfig */
  902. /* --------------------------- GLX_SGIX_hyperpipe -------------------------- */
  903. #ifndef GLX_SGIX_hyperpipe
  904. #define GLX_SGIX_hyperpipe 1
  905. #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
  906. #define GLX_PIPE_RECT_SGIX 0x00000001
  907. #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
  908. #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
  909. #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
  910. #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
  911. #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
  912. #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
  913. #define GLX_BAD_HYPERPIPE_SGIX 92
  914. #define GLX_HYPERPIPE_ID_SGIX 0x8030
  915. typedef struct {
  916. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  917. int networkId;
  918. } GLXHyperpipeNetworkSGIX;
  919. typedef struct {
  920. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  921. int XOrigin;
  922. int YOrigin;
  923. int maxHeight;
  924. int maxWidth;
  925. } GLXPipeRectLimits;
  926. typedef struct {
  927. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  928. int channel;
  929. unsigned int participationType;
  930. int timeSlice;
  931. } GLXHyperpipeConfigSGIX;
  932. typedef struct {
  933. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  934. int srcXOrigin;
  935. int srcYOrigin;
  936. int srcWidth;
  937. int srcHeight;
  938. int destXOrigin;
  939. int destYOrigin;
  940. int destWidth;
  941. int destHeight;
  942. } GLXPipeRect;
  943. typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
  944. typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
  945. typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
  946. typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
  947. typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
  948. typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
  949. typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
  950. typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
  951. #define glXBindHyperpipeSGIX GLXEW_GET_FUN(__glewXBindHyperpipeSGIX)
  952. #define glXDestroyHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXDestroyHyperpipeConfigSGIX)
  953. #define glXHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXHyperpipeAttribSGIX)
  954. #define glXHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXHyperpipeConfigSGIX)
  955. #define glXQueryHyperpipeAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeAttribSGIX)
  956. #define glXQueryHyperpipeBestAttribSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeBestAttribSGIX)
  957. #define glXQueryHyperpipeConfigSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeConfigSGIX)
  958. #define glXQueryHyperpipeNetworkSGIX GLXEW_GET_FUN(__glewXQueryHyperpipeNetworkSGIX)
  959. #define GLXEW_SGIX_hyperpipe GLXEW_GET_VAR(__GLXEW_SGIX_hyperpipe)
  960. #endif /* GLX_SGIX_hyperpipe */
  961. /* ---------------------------- GLX_SGIX_pbuffer --------------------------- */
  962. #ifndef GLX_SGIX_pbuffer
  963. #define GLX_SGIX_pbuffer 1
  964. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  965. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  966. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  967. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  968. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  969. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  970. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  971. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  972. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  973. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  974. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  975. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  976. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  977. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  978. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  979. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  980. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  981. #define GLX_WIDTH_SGIX 0x801D
  982. #define GLX_HEIGHT_SGIX 0x801E
  983. #define GLX_EVENT_MASK_SGIX 0x801F
  984. #define GLX_DAMAGED_SGIX 0x8020
  985. #define GLX_SAVED_SGIX 0x8021
  986. #define GLX_WINDOW_SGIX 0x8022
  987. #define GLX_PBUFFER_SGIX 0x8023
  988. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  989. typedef XID GLXPbufferSGIX;
  990. typedef struct { int type; unsigned long serial; Bool send_event; Display *display; GLXDrawable drawable; int event_type; int draw_type; unsigned int mask; int x, y; int width, height; int count; } GLXBufferClobberEventSGIX;
  991. typedef GLXPbuffer ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display* dpy, GLXFBConfig config, unsigned int width, unsigned int height, int *attrib_list);
  992. typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf);
  993. typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long *mask);
  994. typedef void ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display* dpy, GLXPbuffer pbuf, int attribute, unsigned int *value);
  995. typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display* dpy, GLXDrawable drawable, unsigned long mask);
  996. #define glXCreateGLXPbufferSGIX GLXEW_GET_FUN(__glewXCreateGLXPbufferSGIX)
  997. #define glXDestroyGLXPbufferSGIX GLXEW_GET_FUN(__glewXDestroyGLXPbufferSGIX)
  998. #define glXGetSelectedEventSGIX GLXEW_GET_FUN(__glewXGetSelectedEventSGIX)
  999. #define glXQueryGLXPbufferSGIX GLXEW_GET_FUN(__glewXQueryGLXPbufferSGIX)
  1000. #define glXSelectEventSGIX GLXEW_GET_FUN(__glewXSelectEventSGIX)
  1001. #define GLXEW_SGIX_pbuffer GLXEW_GET_VAR(__GLXEW_SGIX_pbuffer)
  1002. #endif /* GLX_SGIX_pbuffer */
  1003. /* ------------------------- GLX_SGIX_swap_barrier ------------------------- */
  1004. #ifndef GLX_SGIX_swap_barrier
  1005. #define GLX_SGIX_swap_barrier 1
  1006. typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  1007. typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  1008. #define glXBindSwapBarrierSGIX GLXEW_GET_FUN(__glewXBindSwapBarrierSGIX)
  1009. #define glXQueryMaxSwapBarriersSGIX GLXEW_GET_FUN(__glewXQueryMaxSwapBarriersSGIX)
  1010. #define GLXEW_SGIX_swap_barrier GLXEW_GET_VAR(__GLXEW_SGIX_swap_barrier)
  1011. #endif /* GLX_SGIX_swap_barrier */
  1012. /* -------------------------- GLX_SGIX_swap_group -------------------------- */
  1013. #ifndef GLX_SGIX_swap_group
  1014. #define GLX_SGIX_swap_group 1
  1015. typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  1016. #define glXJoinSwapGroupSGIX GLXEW_GET_FUN(__glewXJoinSwapGroupSGIX)
  1017. #define GLXEW_SGIX_swap_group GLXEW_GET_VAR(__GLXEW_SGIX_swap_group)
  1018. #endif /* GLX_SGIX_swap_group */
  1019. /* ------------------------- GLX_SGIX_video_resize ------------------------- */
  1020. #ifndef GLX_SGIX_video_resize
  1021. #define GLX_SGIX_video_resize 1
  1022. #define GLX_SYNC_FRAME_SGIX 0x00000000
  1023. #define GLX_SYNC_SWAP_SGIX 0x00000001
  1024. typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display* display, int screen, int channel, Window window);
  1025. typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int x, int y, int w, int h);
  1026. typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display* display, int screen, int channel, GLenum synctype);
  1027. typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display* display, int screen, int channel, int *x, int *y, int *w, int *h);
  1028. typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display* display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  1029. #define glXBindChannelToWindowSGIX GLXEW_GET_FUN(__glewXBindChannelToWindowSGIX)
  1030. #define glXChannelRectSGIX GLXEW_GET_FUN(__glewXChannelRectSGIX)
  1031. #define glXChannelRectSyncSGIX GLXEW_GET_FUN(__glewXChannelRectSyncSGIX)
  1032. #define glXQueryChannelDeltasSGIX GLXEW_GET_FUN(__glewXQueryChannelDeltasSGIX)
  1033. #define glXQueryChannelRectSGIX GLXEW_GET_FUN(__glewXQueryChannelRectSGIX)
  1034. #define GLXEW_SGIX_video_resize GLXEW_GET_VAR(__GLXEW_SGIX_video_resize)
  1035. #endif /* GLX_SGIX_video_resize */
  1036. /* ---------------------- GLX_SGIX_visual_select_group --------------------- */
  1037. #ifndef GLX_SGIX_visual_select_group
  1038. #define GLX_SGIX_visual_select_group 1
  1039. #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
  1040. #define GLXEW_SGIX_visual_select_group GLXEW_GET_VAR(__GLXEW_SGIX_visual_select_group)
  1041. #endif /* GLX_SGIX_visual_select_group */
  1042. /* ---------------------------- GLX_SGI_cushion ---------------------------- */
  1043. #ifndef GLX_SGI_cushion
  1044. #define GLX_SGI_cushion 1
  1045. typedef void ( * PFNGLXCUSHIONSGIPROC) (Display* dpy, Window window, float cushion);
  1046. #define glXCushionSGI GLXEW_GET_FUN(__glewXCushionSGI)
  1047. #define GLXEW_SGI_cushion GLXEW_GET_VAR(__GLXEW_SGI_cushion)
  1048. #endif /* GLX_SGI_cushion */
  1049. /* ----------------------- GLX_SGI_make_current_read ----------------------- */
  1050. #ifndef GLX_SGI_make_current_read
  1051. #define GLX_SGI_make_current_read 1
  1052. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  1053. typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display* dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  1054. #define glXGetCurrentReadDrawableSGI GLXEW_GET_FUN(__glewXGetCurrentReadDrawableSGI)
  1055. #define glXMakeCurrentReadSGI GLXEW_GET_FUN(__glewXMakeCurrentReadSGI)
  1056. #define GLXEW_SGI_make_current_read GLXEW_GET_VAR(__GLXEW_SGI_make_current_read)
  1057. #endif /* GLX_SGI_make_current_read */
  1058. /* -------------------------- GLX_SGI_swap_control ------------------------- */
  1059. #ifndef GLX_SGI_swap_control
  1060. #define GLX_SGI_swap_control 1
  1061. typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
  1062. #define glXSwapIntervalSGI GLXEW_GET_FUN(__glewXSwapIntervalSGI)
  1063. #define GLXEW_SGI_swap_control GLXEW_GET_VAR(__GLXEW_SGI_swap_control)
  1064. #endif /* GLX_SGI_swap_control */
  1065. /* --------------------------- GLX_SGI_video_sync -------------------------- */
  1066. #ifndef GLX_SGI_video_sync
  1067. #define GLX_SGI_video_sync 1
  1068. typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int* count);
  1069. typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int* count);
  1070. #define glXGetVideoSyncSGI GLXEW_GET_FUN(__glewXGetVideoSyncSGI)
  1071. #define glXWaitVideoSyncSGI GLXEW_GET_FUN(__glewXWaitVideoSyncSGI)
  1072. #define GLXEW_SGI_video_sync GLXEW_GET_VAR(__GLXEW_SGI_video_sync)
  1073. #endif /* GLX_SGI_video_sync */
  1074. /* --------------------- GLX_SUN_get_transparent_index --------------------- */
  1075. #ifndef GLX_SUN_get_transparent_index
  1076. #define GLX_SUN_get_transparent_index 1
  1077. typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display* dpy, Window overlay, Window underlay, unsigned long *pTransparentIndex);
  1078. #define glXGetTransparentIndexSUN GLXEW_GET_FUN(__glewXGetTransparentIndexSUN)
  1079. #define GLXEW_SUN_get_transparent_index GLXEW_GET_VAR(__GLXEW_SUN_get_transparent_index)
  1080. #endif /* GLX_SUN_get_transparent_index */
  1081. /* -------------------------- GLX_SUN_video_resize ------------------------- */
  1082. #ifndef GLX_SUN_video_resize
  1083. #define GLX_SUN_video_resize 1
  1084. #define GLX_VIDEO_RESIZE_SUN 0x8171
  1085. #define GL_VIDEO_RESIZE_COMPENSATION_SUN 0x85CD
  1086. typedef int ( * PFNGLXGETVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float* factor);
  1087. typedef int ( * PFNGLXVIDEORESIZESUNPROC) (Display* display, GLXDrawable window, float factor);
  1088. #define glXGetVideoResizeSUN GLXEW_GET_FUN(__glewXGetVideoResizeSUN)
  1089. #define glXVideoResizeSUN GLXEW_GET_FUN(__glewXVideoResizeSUN)
  1090. #define GLXEW_SUN_video_resize GLXEW_GET_VAR(__GLXEW_SUN_video_resize)
  1091. #endif /* GLX_SUN_video_resize */
  1092. /* ------------------------------------------------------------------------- */
  1093. #define GLXEW_FUN_EXPORT GLEW_FUN_EXPORT
  1094. #define GLXEW_VAR_EXPORT GLEW_VAR_EXPORT
  1095. GLXEW_FUN_EXPORT PFNGLXGETCURRENTDISPLAYPROC __glewXGetCurrentDisplay;
  1096. GLXEW_FUN_EXPORT PFNGLXCHOOSEFBCONFIGPROC __glewXChooseFBConfig;
  1097. GLXEW_FUN_EXPORT PFNGLXCREATENEWCONTEXTPROC __glewXCreateNewContext;
  1098. GLXEW_FUN_EXPORT PFNGLXCREATEPBUFFERPROC __glewXCreatePbuffer;
  1099. GLXEW_FUN_EXPORT PFNGLXCREATEPIXMAPPROC __glewXCreatePixmap;
  1100. GLXEW_FUN_EXPORT PFNGLXCREATEWINDOWPROC __glewXCreateWindow;
  1101. GLXEW_FUN_EXPORT PFNGLXDESTROYPBUFFERPROC __glewXDestroyPbuffer;
  1102. GLXEW_FUN_EXPORT PFNGLXDESTROYPIXMAPPROC __glewXDestroyPixmap;
  1103. GLXEW_FUN_EXPORT PFNGLXDESTROYWINDOWPROC __glewXDestroyWindow;
  1104. GLXEW_FUN_EXPORT PFNGLXGETCURRENTREADDRAWABLEPROC __glewXGetCurrentReadDrawable;
  1105. GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGATTRIBPROC __glewXGetFBConfigAttrib;
  1106. GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGSPROC __glewXGetFBConfigs;
  1107. GLXEW_FUN_EXPORT PFNGLXGETSELECTEDEVENTPROC __glewXGetSelectedEvent;
  1108. GLXEW_FUN_EXPORT PFNGLXGETVISUALFROMFBCONFIGPROC __glewXGetVisualFromFBConfig;
  1109. GLXEW_FUN_EXPORT PFNGLXMAKECONTEXTCURRENTPROC __glewXMakeContextCurrent;
  1110. GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTPROC __glewXQueryContext;
  1111. GLXEW_FUN_EXPORT PFNGLXQUERYDRAWABLEPROC __glewXQueryDrawable;
  1112. GLXEW_FUN_EXPORT PFNGLXSELECTEVENTPROC __glewXSelectEvent;
  1113. GLXEW_FUN_EXPORT PFNGLXBLITCONTEXTFRAMEBUFFERAMDPROC __glewXBlitContextFramebufferAMD;
  1114. GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTAMDPROC __glewXCreateAssociatedContextAMD;
  1115. GLXEW_FUN_EXPORT PFNGLXCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __glewXCreateAssociatedContextAttribsAMD;
  1116. GLXEW_FUN_EXPORT PFNGLXDELETEASSOCIATEDCONTEXTAMDPROC __glewXDeleteAssociatedContextAMD;
  1117. GLXEW_FUN_EXPORT PFNGLXGETCONTEXTGPUIDAMDPROC __glewXGetContextGPUIDAMD;
  1118. GLXEW_FUN_EXPORT PFNGLXGETCURRENTASSOCIATEDCONTEXTAMDPROC __glewXGetCurrentAssociatedContextAMD;
  1119. GLXEW_FUN_EXPORT PFNGLXGETGPUIDSAMDPROC __glewXGetGPUIDsAMD;
  1120. GLXEW_FUN_EXPORT PFNGLXGETGPUINFOAMDPROC __glewXGetGPUInfoAMD;
  1121. GLXEW_FUN_EXPORT PFNGLXMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __glewXMakeAssociatedContextCurrentAMD;
  1122. GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTATTRIBSARBPROC __glewXCreateContextAttribsARB;
  1123. GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEATIPROC __glewXBindTexImageATI;
  1124. GLXEW_FUN_EXPORT PFNGLXDRAWABLEATTRIBATIPROC __glewXDrawableAttribATI;
  1125. GLXEW_FUN_EXPORT PFNGLXRELEASETEXIMAGEATIPROC __glewXReleaseTexImageATI;
  1126. GLXEW_FUN_EXPORT PFNGLXFREECONTEXTEXTPROC __glewXFreeContextEXT;
  1127. GLXEW_FUN_EXPORT PFNGLXGETCONTEXTIDEXTPROC __glewXGetContextIDEXT;
  1128. GLXEW_FUN_EXPORT PFNGLXIMPORTCONTEXTEXTPROC __glewXImportContextEXT;
  1129. GLXEW_FUN_EXPORT PFNGLXQUERYCONTEXTINFOEXTPROC __glewXQueryContextInfoEXT;
  1130. GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALEXTPROC __glewXSwapIntervalEXT;
  1131. GLXEW_FUN_EXPORT PFNGLXBINDTEXIMAGEEXTPROC __glewXBindTexImageEXT;
  1132. GLXEW_FUN_EXPORT PFNGLXRELEASETEXIMAGEEXTPROC __glewXReleaseTexImageEXT;
  1133. GLXEW_FUN_EXPORT PFNGLXGETAGPOFFSETMESAPROC __glewXGetAGPOffsetMESA;
  1134. GLXEW_FUN_EXPORT PFNGLXCOPYSUBBUFFERMESAPROC __glewXCopySubBufferMESA;
  1135. GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPMESAPROC __glewXCreateGLXPixmapMESA;
  1136. GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERINTEGERMESAPROC __glewXQueryCurrentRendererIntegerMESA;
  1137. GLXEW_FUN_EXPORT PFNGLXQUERYCURRENTRENDERERSTRINGMESAPROC __glewXQueryCurrentRendererStringMESA;
  1138. GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERINTEGERMESAPROC __glewXQueryRendererIntegerMESA;
  1139. GLXEW_FUN_EXPORT PFNGLXQUERYRENDERERSTRINGMESAPROC __glewXQueryRendererStringMESA;
  1140. GLXEW_FUN_EXPORT PFNGLXRELEASEBUFFERSMESAPROC __glewXReleaseBuffersMESA;
  1141. GLXEW_FUN_EXPORT PFNGLXSET3DFXMODEMESAPROC __glewXSet3DfxModeMESA;
  1142. GLXEW_FUN_EXPORT PFNGLXGETSWAPINTERVALMESAPROC __glewXGetSwapIntervalMESA;
  1143. GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALMESAPROC __glewXSwapIntervalMESA;
  1144. GLXEW_FUN_EXPORT PFNGLXCOPYBUFFERSUBDATANVPROC __glewXCopyBufferSubDataNV;
  1145. GLXEW_FUN_EXPORT PFNGLXNAMEDCOPYBUFFERSUBDATANVPROC __glewXNamedCopyBufferSubDataNV;
  1146. GLXEW_FUN_EXPORT PFNGLXCOPYIMAGESUBDATANVPROC __glewXCopyImageSubDataNV;
  1147. GLXEW_FUN_EXPORT PFNGLXDELAYBEFORESWAPNVPROC __glewXDelayBeforeSwapNV;
  1148. GLXEW_FUN_EXPORT PFNGLXBINDVIDEODEVICENVPROC __glewXBindVideoDeviceNV;
  1149. GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEODEVICESNVPROC __glewXEnumerateVideoDevicesNV;
  1150. GLXEW_FUN_EXPORT PFNGLXBINDSWAPBARRIERNVPROC __glewXBindSwapBarrierNV;
  1151. GLXEW_FUN_EXPORT PFNGLXJOINSWAPGROUPNVPROC __glewXJoinSwapGroupNV;
  1152. GLXEW_FUN_EXPORT PFNGLXQUERYFRAMECOUNTNVPROC __glewXQueryFrameCountNV;
  1153. GLXEW_FUN_EXPORT PFNGLXQUERYMAXSWAPGROUPSNVPROC __glewXQueryMaxSwapGroupsNV;
  1154. GLXEW_FUN_EXPORT PFNGLXQUERYSWAPGROUPNVPROC __glewXQuerySwapGroupNV;
  1155. GLXEW_FUN_EXPORT PFNGLXRESETFRAMECOUNTNVPROC __glewXResetFrameCountNV;
  1156. GLXEW_FUN_EXPORT PFNGLXALLOCATEMEMORYNVPROC __glewXAllocateMemoryNV;
  1157. GLXEW_FUN_EXPORT PFNGLXFREEMEMORYNVPROC __glewXFreeMemoryNV;
  1158. GLXEW_FUN_EXPORT PFNGLXBINDVIDEOCAPTUREDEVICENVPROC __glewXBindVideoCaptureDeviceNV;
  1159. GLXEW_FUN_EXPORT PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC __glewXEnumerateVideoCaptureDevicesNV;
  1160. GLXEW_FUN_EXPORT PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC __glewXLockVideoCaptureDeviceNV;
  1161. GLXEW_FUN_EXPORT PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC __glewXQueryVideoCaptureDeviceNV;
  1162. GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC __glewXReleaseVideoCaptureDeviceNV;
  1163. GLXEW_FUN_EXPORT PFNGLXBINDVIDEOIMAGENVPROC __glewXBindVideoImageNV;
  1164. GLXEW_FUN_EXPORT PFNGLXGETVIDEODEVICENVPROC __glewXGetVideoDeviceNV;
  1165. GLXEW_FUN_EXPORT PFNGLXGETVIDEOINFONVPROC __glewXGetVideoInfoNV;
  1166. GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEODEVICENVPROC __glewXReleaseVideoDeviceNV;
  1167. GLXEW_FUN_EXPORT PFNGLXRELEASEVIDEOIMAGENVPROC __glewXReleaseVideoImageNV;
  1168. GLXEW_FUN_EXPORT PFNGLXSENDPBUFFERTOVIDEONVPROC __glewXSendPbufferToVideoNV;
  1169. GLXEW_FUN_EXPORT PFNGLXGETMSCRATEOMLPROC __glewXGetMscRateOML;
  1170. GLXEW_FUN_EXPORT PFNGLXGETSYNCVALUESOMLPROC __glewXGetSyncValuesOML;
  1171. GLXEW_FUN_EXPORT PFNGLXSWAPBUFFERSMSCOMLPROC __glewXSwapBuffersMscOML;
  1172. GLXEW_FUN_EXPORT PFNGLXWAITFORMSCOMLPROC __glewXWaitForMscOML;
  1173. GLXEW_FUN_EXPORT PFNGLXWAITFORSBCOMLPROC __glewXWaitForSbcOML;
  1174. GLXEW_FUN_EXPORT PFNGLXCHOOSEFBCONFIGSGIXPROC __glewXChooseFBConfigSGIX;
  1175. GLXEW_FUN_EXPORT PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC __glewXCreateContextWithConfigSGIX;
  1176. GLXEW_FUN_EXPORT PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC __glewXCreateGLXPixmapWithConfigSGIX;
  1177. GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGATTRIBSGIXPROC __glewXGetFBConfigAttribSGIX;
  1178. GLXEW_FUN_EXPORT PFNGLXGETFBCONFIGFROMVISUALSGIXPROC __glewXGetFBConfigFromVisualSGIX;
  1179. GLXEW_FUN_EXPORT PFNGLXGETVISUALFROMFBCONFIGSGIXPROC __glewXGetVisualFromFBConfigSGIX;
  1180. GLXEW_FUN_EXPORT PFNGLXBINDHYPERPIPESGIXPROC __glewXBindHyperpipeSGIX;
  1181. GLXEW_FUN_EXPORT PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC __glewXDestroyHyperpipeConfigSGIX;
  1182. GLXEW_FUN_EXPORT PFNGLXHYPERPIPEATTRIBSGIXPROC __glewXHyperpipeAttribSGIX;
  1183. GLXEW_FUN_EXPORT PFNGLXHYPERPIPECONFIGSGIXPROC __glewXHyperpipeConfigSGIX;
  1184. GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC __glewXQueryHyperpipeAttribSGIX;
  1185. GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC __glewXQueryHyperpipeBestAttribSGIX;
  1186. GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPECONFIGSGIXPROC __glewXQueryHyperpipeConfigSGIX;
  1187. GLXEW_FUN_EXPORT PFNGLXQUERYHYPERPIPENETWORKSGIXPROC __glewXQueryHyperpipeNetworkSGIX;
  1188. GLXEW_FUN_EXPORT PFNGLXCREATEGLXPBUFFERSGIXPROC __glewXCreateGLXPbufferSGIX;
  1189. GLXEW_FUN_EXPORT PFNGLXDESTROYGLXPBUFFERSGIXPROC __glewXDestroyGLXPbufferSGIX;
  1190. GLXEW_FUN_EXPORT PFNGLXGETSELECTEDEVENTSGIXPROC __glewXGetSelectedEventSGIX;
  1191. GLXEW_FUN_EXPORT PFNGLXQUERYGLXPBUFFERSGIXPROC __glewXQueryGLXPbufferSGIX;
  1192. GLXEW_FUN_EXPORT PFNGLXSELECTEVENTSGIXPROC __glewXSelectEventSGIX;
  1193. GLXEW_FUN_EXPORT PFNGLXBINDSWAPBARRIERSGIXPROC __glewXBindSwapBarrierSGIX;
  1194. GLXEW_FUN_EXPORT PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC __glewXQueryMaxSwapBarriersSGIX;
  1195. GLXEW_FUN_EXPORT PFNGLXJOINSWAPGROUPSGIXPROC __glewXJoinSwapGroupSGIX;
  1196. GLXEW_FUN_EXPORT PFNGLXBINDCHANNELTOWINDOWSGIXPROC __glewXBindChannelToWindowSGIX;
  1197. GLXEW_FUN_EXPORT PFNGLXCHANNELRECTSGIXPROC __glewXChannelRectSGIX;
  1198. GLXEW_FUN_EXPORT PFNGLXCHANNELRECTSYNCSGIXPROC __glewXChannelRectSyncSGIX;
  1199. GLXEW_FUN_EXPORT PFNGLXQUERYCHANNELDELTASSGIXPROC __glewXQueryChannelDeltasSGIX;
  1200. GLXEW_FUN_EXPORT PFNGLXQUERYCHANNELRECTSGIXPROC __glewXQueryChannelRectSGIX;
  1201. GLXEW_FUN_EXPORT PFNGLXCUSHIONSGIPROC __glewXCushionSGI;
  1202. GLXEW_FUN_EXPORT PFNGLXGETCURRENTREADDRAWABLESGIPROC __glewXGetCurrentReadDrawableSGI;
  1203. GLXEW_FUN_EXPORT PFNGLXMAKECURRENTREADSGIPROC __glewXMakeCurrentReadSGI;
  1204. GLXEW_FUN_EXPORT PFNGLXSWAPINTERVALSGIPROC __glewXSwapIntervalSGI;
  1205. GLXEW_FUN_EXPORT PFNGLXGETVIDEOSYNCSGIPROC __glewXGetVideoSyncSGI;
  1206. GLXEW_FUN_EXPORT PFNGLXWAITVIDEOSYNCSGIPROC __glewXWaitVideoSyncSGI;
  1207. GLXEW_FUN_EXPORT PFNGLXGETTRANSPARENTINDEXSUNPROC __glewXGetTransparentIndexSUN;
  1208. GLXEW_FUN_EXPORT PFNGLXGETVIDEORESIZESUNPROC __glewXGetVideoResizeSUN;
  1209. GLXEW_FUN_EXPORT PFNGLXVIDEORESIZESUNPROC __glewXVideoResizeSUN;
  1210. GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_0;
  1211. GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_1;
  1212. GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_2;
  1213. GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_3;
  1214. GLXEW_VAR_EXPORT GLboolean __GLXEW_VERSION_1_4;
  1215. GLXEW_VAR_EXPORT GLboolean __GLXEW_3DFX_multisample;
  1216. GLXEW_VAR_EXPORT GLboolean __GLXEW_AMD_gpu_association;
  1217. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_context_flush_control;
  1218. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context;
  1219. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_no_error;
  1220. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_profile;
  1221. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_create_context_robustness;
  1222. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_fbconfig_float;
  1223. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_framebuffer_sRGB;
  1224. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_get_proc_address;
  1225. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_multisample;
  1226. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_application_isolation;
  1227. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_robustness_share_group_isolation;
  1228. GLXEW_VAR_EXPORT GLboolean __GLXEW_ARB_vertex_buffer_object;
  1229. GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_pixel_format_float;
  1230. GLXEW_VAR_EXPORT GLboolean __GLXEW_ATI_render_texture;
  1231. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_buffer_age;
  1232. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es2_profile;
  1233. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_create_context_es_profile;
  1234. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_fbconfig_packed_float;
  1235. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_framebuffer_sRGB;
  1236. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_import_context;
  1237. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_libglvnd;
  1238. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_scene_marker;
  1239. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_stereo_tree;
  1240. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control;
  1241. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_swap_control_tear;
  1242. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_texture_from_pixmap;
  1243. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_visual_info;
  1244. GLXEW_VAR_EXPORT GLboolean __GLXEW_EXT_visual_rating;
  1245. GLXEW_VAR_EXPORT GLboolean __GLXEW_INTEL_swap_event;
  1246. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_agp_offset;
  1247. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_copy_sub_buffer;
  1248. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_pixmap_colormap;
  1249. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_query_renderer;
  1250. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_release_buffers;
  1251. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_set_3dfx_mode;
  1252. GLXEW_VAR_EXPORT GLboolean __GLXEW_MESA_swap_control;
  1253. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_buffer;
  1254. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_copy_image;
  1255. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_delay_before_swap;
  1256. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_float_buffer;
  1257. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_multisample_coverage;
  1258. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_present_video;
  1259. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_robustness_video_memory_purge;
  1260. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_swap_group;
  1261. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_vertex_array_range;
  1262. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_video_capture;
  1263. GLXEW_VAR_EXPORT GLboolean __GLXEW_NV_video_out;
  1264. GLXEW_VAR_EXPORT GLboolean __GLXEW_OML_swap_method;
  1265. GLXEW_VAR_EXPORT GLboolean __GLXEW_OML_sync_control;
  1266. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_blended_overlay;
  1267. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_color_range;
  1268. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_multisample;
  1269. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIS_shared_multisample;
  1270. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_fbconfig;
  1271. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_hyperpipe;
  1272. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_pbuffer;
  1273. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_swap_barrier;
  1274. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_swap_group;
  1275. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_video_resize;
  1276. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGIX_visual_select_group;
  1277. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_cushion;
  1278. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_make_current_read;
  1279. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_swap_control;
  1280. GLXEW_VAR_EXPORT GLboolean __GLXEW_SGI_video_sync;
  1281. GLXEW_VAR_EXPORT GLboolean __GLXEW_SUN_get_transparent_index;
  1282. GLXEW_VAR_EXPORT GLboolean __GLXEW_SUN_video_resize;
  1283. /* ------------------------------------------------------------------------ */
  1284. GLEWAPI GLenum GLEWAPIENTRY glxewInit ();
  1285. GLEWAPI GLboolean GLEWAPIENTRY glxewIsSupported (const char *name);
  1286. #ifndef GLXEW_GET_VAR
  1287. #define GLXEW_GET_VAR(x) (*(const GLboolean*)&x)
  1288. #endif
  1289. #ifndef GLXEW_GET_FUN
  1290. #define GLXEW_GET_FUN(x) x
  1291. #endif
  1292. GLEWAPI GLboolean GLEWAPIENTRY glxewGetExtension (const char *name);
  1293. #ifdef __cplusplus
  1294. }
  1295. #endif
  1296. #endif /* __glxew_h__ */