Clone of mesa.
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.

glxext.h 23KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. #ifndef __glxext_h_
  2. #define __glxext_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** License Applicability. Except to the extent portions of this file are
  8. ** made subject to an alternative license as permitted in the SGI Free
  9. ** Software License B, Version 1.1 (the "License"), the contents of this
  10. ** file are subject only to the provisions of the License. You may not use
  11. ** this file except in compliance with the License. You may obtain a copy
  12. ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
  13. ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
  14. **
  15. ** http://oss.sgi.com/projects/FreeB
  16. **
  17. ** Note that, as provided in the License, the Software is distributed on an
  18. ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
  19. ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
  20. ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
  21. ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
  22. **
  23. ** Original Code. The Original Code is: OpenGL Sample Implementation,
  24. ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
  25. ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
  26. ** Copyright in any portions created by third parties is as indicated
  27. ** elsewhere herein. All Rights Reserved.
  28. **
  29. ** Additional Notice Provisions: This software was created using the
  30. ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
  31. ** not been independently verified as being compliant with the OpenGL(R)
  32. ** version 1.2.1 Specification.
  33. */
  34. #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
  35. #define WIN32_LEAN_AND_MEAN 1
  36. #include <windows.h>
  37. #endif
  38. #ifndef APIENTRY
  39. #define APIENTRY
  40. #endif
  41. /*************************************************************/
  42. /* Header file version number, required by OpenGL ABI for Linux */
  43. #define GLX_GLXEXT_VERSION 2
  44. #ifndef GLX_VERSION_1_3
  45. #define GLX_WINDOW_BIT 0x00000001
  46. #define GLX_PIXMAP_BIT 0x00000002
  47. #define GLX_PBUFFER_BIT 0x00000004
  48. #define GLX_RGBA_BIT 0x00000001
  49. #define GLX_COLOR_INDEX_BIT 0x00000002
  50. #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
  51. #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
  52. #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
  53. #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
  54. #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
  55. #define GLX_AUX_BUFFERS_BIT 0x00000010
  56. #define GLX_DEPTH_BUFFER_BIT 0x00000020
  57. #define GLX_STENCIL_BUFFER_BIT 0x00000040
  58. #define GLX_ACCUM_BUFFER_BIT 0x00000080
  59. #define GLX_CONFIG_CAVEAT 0x20
  60. #define GLX_X_VISUAL_TYPE 0x22
  61. #define GLX_TRANSPARENT_TYPE 0x23
  62. #define GLX_TRANSPARENT_INDEX_VALUE 0x24
  63. #define GLX_TRANSPARENT_RED_VALUE 0x25
  64. #define GLX_TRANSPARENT_GREEN_VALUE 0x26
  65. #define GLX_TRANSPARENT_BLUE_VALUE 0x27
  66. #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
  67. #define GLX_DONT_CARE 0xFFFFFFFF
  68. #define GLX_NONE 0x8000
  69. #define GLX_SLOW_CONFIG 0x8001
  70. #define GLX_TRUE_COLOR 0x8002
  71. #define GLX_DIRECT_COLOR 0x8003
  72. #define GLX_PSEUDO_COLOR 0x8004
  73. #define GLX_STATIC_COLOR 0x8005
  74. #define GLX_GRAY_SCALE 0x8006
  75. #define GLX_STATIC_GRAY 0x8007
  76. #define GLX_TRANSPARENT_RGB 0x8008
  77. #define GLX_TRANSPARENT_INDEX 0x8009
  78. #define GLX_VISUAL_ID 0x800B
  79. #define GLX_SCREEN 0x800C
  80. #define GLX_NON_CONFORMANT_CONFIG 0x800D
  81. #define GLX_DRAWABLE_TYPE 0x8010
  82. #define GLX_RENDER_TYPE 0x8011
  83. #define GLX_X_RENDERABLE 0x8012
  84. #define GLX_FBCONFIG_ID 0x8013
  85. #define GLX_RGBA_TYPE 0x8014
  86. #define GLX_COLOR_INDEX_TYPE 0x8015
  87. #define GLX_MAX_PBUFFER_WIDTH 0x8016
  88. #define GLX_MAX_PBUFFER_HEIGHT 0x8017
  89. #define GLX_MAX_PBUFFER_PIXELS 0x8018
  90. #define GLX_PRESERVED_CONTENTS 0x801B
  91. #define GLX_LARGEST_PBUFFER 0x801C
  92. #define GLX_WIDTH 0x801D
  93. #define GLX_HEIGHT 0x801E
  94. #define GLX_EVENT_MASK 0x801F
  95. #define GLX_DAMAGED 0x8020
  96. #define GLX_SAVED 0x8021
  97. #define GLX_WINDOW 0x8022
  98. #define GLX_PBUFFER 0x8023
  99. #define GLX_PBUFFER_HEIGHT 0x8040
  100. #define GLX_PBUFFER_WIDTH 0x8041
  101. #endif
  102. /* XXX Added by BrianP */
  103. #ifndef GLX_SGIS_multisample
  104. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  105. #define GLX_SAMPLES_SGIS 100001
  106. #endif
  107. #ifndef GLX_EXT_visual_info
  108. #define GLX_X_VISUAL_TYPE_EXT 0x22
  109. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  110. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  111. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  112. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  113. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  114. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  115. #define GLX_NONE_EXT 0x8000
  116. #define GLX_TRUE_COLOR_EXT 0x8002
  117. #define GLX_DIRECT_COLOR_EXT 0x8003
  118. #define GLX_PSEUDO_COLOR_EXT 0x8004
  119. #define GLX_STATIC_COLOR_EXT 0x8005
  120. #define GLX_GRAY_SCALE_EXT 0x8006
  121. #define GLX_STATIC_GRAY_EXT 0x8007
  122. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  123. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  124. #endif
  125. #ifndef GLX_SGI_swap_control
  126. #endif
  127. #ifndef GLX_SGI_video_sync
  128. #endif
  129. #ifndef GLX_SGI_make_current_read
  130. #endif
  131. #ifndef GLX_SGIX_video_source
  132. #endif
  133. #ifndef GLX_EXT_visual_rating
  134. #define GLX_VISUAL_CAVEAT_EXT 0x20
  135. #define GLX_SLOW_VISUAL_EXT 0x8001
  136. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  137. /* reuse GLX_NONE_EXT */
  138. #endif
  139. #ifndef GLX_EXT_import_context
  140. #define GLX_SHARE_CONTEXT_EXT 0x800A
  141. #define GLX_VISUAL_ID_EXT 0x800B
  142. #define GLX_SCREEN_EXT 0x800C
  143. #endif
  144. #ifndef GLX_SGIX_fbconfig
  145. #define GLX_WINDOW_BIT_SGIX 0x00000001
  146. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  147. #define GLX_RGBA_BIT_SGIX 0x00000001
  148. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  149. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  150. #define GLX_RENDER_TYPE_SGIX 0x8011
  151. #define GLX_X_RENDERABLE_SGIX 0x8012
  152. #define GLX_FBCONFIG_ID_SGIX 0x8013
  153. #define GLX_RGBA_TYPE_SGIX 0x8014
  154. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  155. /* reuse GLX_SCREEN_EXT */
  156. #endif
  157. #ifndef GLX_SGIX_pbuffer
  158. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  159. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  160. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  161. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  162. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  163. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  164. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  165. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  166. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  167. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  168. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  169. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  170. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  171. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  172. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  173. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  174. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  175. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  176. #define GLX_WIDTH_SGIX 0x801D
  177. #define GLX_HEIGHT_SGIX 0x801E
  178. #define GLX_EVENT_MASK_SGIX 0x801F
  179. #define GLX_DAMAGED_SGIX 0x8020
  180. #define GLX_SAVED_SGIX 0x8021
  181. #define GLX_WINDOW_SGIX 0x8022
  182. #define GLX_PBUFFER_SGIX 0x8023
  183. #endif
  184. #ifndef GLX_SGI_cushion
  185. #endif
  186. #ifndef GLX_SGIX_video_resize
  187. #define GLX_SYNC_FRAME_SGIX 0x00000000
  188. #define GLX_SYNC_SWAP_SGIX 0x00000001
  189. #endif
  190. #ifndef GLX_SGIX_dmbuffer
  191. #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
  192. #endif
  193. #ifndef GLX_SGIX_swap_group
  194. #endif
  195. #ifndef GLX_SGIX_swap_barrier
  196. #endif
  197. #ifndef GLX_SGIS_blended_overlay
  198. #define GLX_BLENDED_RGBA_SGIS 0x8025
  199. #endif
  200. #ifndef GLX_SGIS_shared_multisample
  201. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  202. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  203. #endif
  204. #ifndef GLX_SUN_get_transparent_index
  205. #endif
  206. #ifndef GLX_3DFX_multisample
  207. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  208. #define GLX_SAMPLES_3DFX 0x8051
  209. #endif
  210. #ifndef GLX_MESA_copy_sub_buffer
  211. #endif
  212. #ifndef GLX_MESA_pixmap_colormap
  213. #endif
  214. #ifndef GLX_MESA_release_buffers
  215. #endif
  216. #ifndef GLX_MESA_set_3dfx_mode
  217. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  218. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  219. #endif
  220. /*************************************************************/
  221. #ifndef GLX_ARB_get_proc_address
  222. /* XXX Added void parameter to silence many, many warnings (BrianP) */
  223. typedef void (*__GLXextFuncPtr)(void);
  224. #endif
  225. #ifndef GLX_SGIX_video_source
  226. typedef XID GLXVideoSourceSGIX;
  227. #endif
  228. #ifndef GLX_SGIX_fbconfig
  229. typedef XID GLXFBConfigIDSGIX;
  230. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  231. #endif
  232. #ifndef GLX_SGIX_pbuffer
  233. typedef XID GLXPbufferSGIX;
  234. typedef struct {
  235. int type;
  236. unsigned long serial; /* # of last request processed by server */
  237. Bool send_event; /* true if this came for SendEvent request */
  238. Display *display; /* display the event was read from */
  239. GLXDrawable drawable; /* i.d. of Drawable */
  240. int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
  241. int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
  242. unsigned int mask; /* mask indicating which buffers are affected*/
  243. int x, y;
  244. int width, height;
  245. int count; /* if nonzero, at least this many more */
  246. } GLXBufferClobberEventSGIX;
  247. #endif
  248. #ifndef GLX_VERSION_1_3
  249. #define GLX_VERSION_1_3 1
  250. #ifdef GLX_GLXEXT_PROTOTYPES
  251. extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
  252. extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
  253. extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
  254. extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
  255. extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
  256. extern void glXDestroyWindow (Display *, GLXWindow);
  257. extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
  258. extern void glXDestroyPixmap (Display *, GLXPixmap);
  259. extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
  260. extern void glXDestroyPbuffer (Display *, GLXPbuffer);
  261. extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
  262. extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
  263. extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
  264. extern GLXDrawable glXGetCurrentReadDrawable (void);
  265. extern Display * glXGetCurrentDisplay (void);
  266. extern int glXQueryContext (Display *, GLXContext, int, int *);
  267. extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
  268. extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
  269. #endif /* GLX_GLXEXT_PROTOTYPES */
  270. typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  271. typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  272. typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  273. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  274. typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  275. typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  276. typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  277. typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  278. typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  279. typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  280. typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  281. typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  282. typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  283. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  284. typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
  285. typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  286. typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  287. typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  288. #endif
  289. #ifndef GLX_ARB_get_proc_address
  290. #define GLX_ARB_get_proc_address 1
  291. #ifdef GLX_GLXEXT_PROTOTYPES
  292. extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
  293. #endif /* GLX_GLXEXT_PROTOTYPES */
  294. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
  295. #endif
  296. #ifndef GLX_SGIS_multisample
  297. #define GLX_SGIS_multisample 1
  298. #endif
  299. #ifndef GLX_EXT_visual_info
  300. #define GLX_EXT_visual_info 1
  301. #endif
  302. #ifndef GLX_SGI_swap_control
  303. #define GLX_SGI_swap_control 1
  304. #ifdef GLX_GLXEXT_PROTOTYPES
  305. extern int glXSwapIntervalSGI (int);
  306. #endif /* GLX_GLXEXT_PROTOTYPES */
  307. typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
  308. #endif
  309. #ifndef GLX_SGI_video_sync
  310. #define GLX_SGI_video_sync 1
  311. #ifdef GLX_GLXEXT_PROTOTYPES
  312. extern int glXGetVideoSyncSGI (unsigned int *);
  313. extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
  314. #endif /* GLX_GLXEXT_PROTOTYPES */
  315. typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
  316. typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
  317. #endif
  318. #ifndef GLX_SGI_make_current_read
  319. #define GLX_SGI_make_current_read 1
  320. #ifdef GLX_GLXEXT_PROTOTYPES
  321. extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
  322. extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
  323. #endif /* GLX_GLXEXT_PROTOTYPES */
  324. typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  325. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  326. #endif
  327. #ifdef _VL_H
  328. #ifndef GLX_SGIX_video_source
  329. #define GLX_SGIX_video_source 1
  330. #ifdef GLX_GLXEXT_PROTOTYPES
  331. extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
  332. extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
  333. #endif /* GLX_GLXEXT_PROTOTYPES */
  334. typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  335. typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  336. #endif
  337. #endif /* _VL_H */
  338. #ifndef GLX_EXT_visual_rating
  339. #define GLX_EXT_visual_rating 1
  340. #endif
  341. #ifndef GLX_EXT_import_context
  342. #define GLX_EXT_import_context 1
  343. #ifdef GLX_GLXEXT_PROTOTYPES
  344. extern Display * glXGetCurrentDisplayEXT (void);
  345. extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
  346. extern GLXContextID glXGetContextIDEXT (GLXContext);
  347. extern GLXContext glXImportContextEXT (Display *, GLXContextID);
  348. extern void glXFreeContextEXT (Display *, GLXContext);
  349. #endif /* GLX_GLXEXT_PROTOTYPES */
  350. typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
  351. typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
  352. typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (GLXContext context);
  353. typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
  354. typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
  355. #endif
  356. #ifndef GLX_SGIX_fbconfig
  357. #define GLX_SGIX_fbconfig 1
  358. #ifdef GLX_GLXEXT_PROTOTYPES
  359. extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
  360. extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
  361. extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
  362. extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
  363. extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
  364. extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
  365. #endif /* GLX_GLXEXT_PROTOTYPES */
  366. typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  367. typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
  368. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  369. typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  370. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
  371. typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
  372. #endif
  373. #ifndef GLX_SGIX_pbuffer
  374. #define GLX_SGIX_pbuffer 1
  375. #ifdef GLX_GLXEXT_PROTOTYPES
  376. extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
  377. extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
  378. extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
  379. extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
  380. extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
  381. #endif /* GLX_GLXEXT_PROTOTYPES */
  382. typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  383. typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
  384. typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  385. typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
  386. typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  387. #endif
  388. #ifndef GLX_SGI_cushion
  389. #define GLX_SGI_cushion 1
  390. #ifdef GLX_GLXEXT_PROTOTYPES
  391. extern void glXCushionSGI (Display *, Window, float);
  392. #endif /* GLX_GLXEXT_PROTOTYPES */
  393. typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
  394. #endif
  395. #ifndef GLX_SGIX_video_resize
  396. #define GLX_SGIX_video_resize 1
  397. #ifdef GLX_GLXEXT_PROTOTYPES
  398. extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
  399. extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
  400. extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
  401. extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
  402. extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
  403. #endif /* GLX_GLXEXT_PROTOTYPES */
  404. typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
  405. typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
  406. typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  407. typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  408. typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
  409. #endif
  410. #ifdef _DM_BUFFER_H_
  411. #ifndef GLX_SGIX_dmbuffer
  412. #define GLX_SGIX_dmbuffer 1
  413. #ifdef GLX_GLXEXT_PROTOTYPES
  414. extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
  415. #endif /* GLX_GLXEXT_PROTOTYPES */
  416. typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  417. #endif
  418. #endif /* _DM_BUFFER_H_ */
  419. #ifndef GLX_SGIX_swap_group
  420. #define GLX_SGIX_swap_group 1
  421. #ifdef GLX_GLXEXT_PROTOTYPES
  422. extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
  423. #endif /* GLX_GLXEXT_PROTOTYPES */
  424. typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  425. #endif
  426. #ifndef GLX_SGIX_swap_barrier
  427. #define GLX_SGIX_swap_barrier 1
  428. #ifdef GLX_GLXEXT_PROTOTYPES
  429. extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
  430. extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
  431. #endif /* GLX_GLXEXT_PROTOTYPES */
  432. typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  433. typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  434. #endif
  435. #ifndef GLX_SUN_get_transparent_index
  436. #define GLX_SUN_get_transparent_index 1
  437. #ifdef GLX_GLXEXT_PROTOTYPES
  438. extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
  439. #endif /* GLX_GLXEXT_PROTOTYPES */
  440. typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
  441. #endif
  442. #ifndef GLX_MESA_copy_sub_buffer
  443. #define GLX_MESA_copy_sub_buffer 1
  444. #ifdef GLX_GLXEXT_PROTOTYPES
  445. extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
  446. #endif /* GLX_GLXEXT_PROTOTYPES */
  447. typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  448. #endif
  449. #ifndef GLX_MESA_pixmap_colormap
  450. #define GLX_MESA_pixmap_colormap 1
  451. #ifdef GLX_GLXEXT_PROTOTYPES
  452. extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
  453. #endif /* GLX_GLXEXT_PROTOTYPES */
  454. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  455. #endif
  456. #ifndef GLX_MESA_release_buffers
  457. #define GLX_MESA_release_buffers 1
  458. #ifdef GLX_GLXEXT_PROTOTYPES
  459. extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
  460. #endif /* GLX_GLXEXT_PROTOTYPES */
  461. typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
  462. #endif
  463. #ifndef GLX_MESA_set_3dfx_mode
  464. #define GLX_MESA_set_3dfx_mode 1
  465. #ifdef GLX_GLXEXT_PROTOTYPES
  466. extern Bool glXSet3DfxModeMESA (int);
  467. #endif /* GLX_GLXEXT_PROTOTYPES */
  468. typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
  469. #endif
  470. #ifdef __cplusplus
  471. }
  472. #endif
  473. #endif