glxew.h 67 KB

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