Clone of mesa.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

glxext.h 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  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. #ifndef GLX_EXT_visual_info
  103. #define GLX_X_VISUAL_TYPE_EXT 0x22
  104. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  105. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  106. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  107. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  108. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  109. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  110. #define GLX_NONE_EXT 0x8000
  111. #define GLX_TRUE_COLOR_EXT 0x8002
  112. #define GLX_DIRECT_COLOR_EXT 0x8003
  113. #define GLX_PSEUDO_COLOR_EXT 0x8004
  114. #define GLX_STATIC_COLOR_EXT 0x8005
  115. #define GLX_GRAY_SCALE_EXT 0x8006
  116. #define GLX_STATIC_GRAY_EXT 0x8007
  117. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  118. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  119. #endif
  120. #ifndef GLX_SGI_swap_control
  121. #endif
  122. #ifndef GLX_SGI_video_sync
  123. #endif
  124. #ifndef GLX_SGI_make_current_read
  125. #endif
  126. #ifndef GLX_SGIX_video_source
  127. #endif
  128. #ifndef GLX_EXT_visual_rating
  129. #define GLX_VISUAL_CAVEAT_EXT 0x20
  130. #define GLX_SLOW_VISUAL_EXT 0x8001
  131. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  132. /* reuse GLX_NONE_EXT */
  133. #endif
  134. #ifndef GLX_EXT_import_context
  135. #define GLX_SHARE_CONTEXT_EXT 0x800A
  136. #define GLX_VISUAL_ID_EXT 0x800B
  137. #define GLX_SCREEN_EXT 0x800C
  138. #endif
  139. #ifndef GLX_SGIX_fbconfig
  140. #define GLX_WINDOW_BIT_SGIX 0x00000001
  141. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  142. #define GLX_RGBA_BIT_SGIX 0x00000001
  143. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  144. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  145. #define GLX_RENDER_TYPE_SGIX 0x8011
  146. #define GLX_X_RENDERABLE_SGIX 0x8012
  147. #define GLX_FBCONFIG_ID_SGIX 0x8013
  148. #define GLX_RGBA_TYPE_SGIX 0x8014
  149. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  150. /* reuse GLX_SCREEN_EXT */
  151. #endif
  152. #ifndef GLX_SGIX_pbuffer
  153. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  154. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  155. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  156. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  157. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  158. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  159. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  160. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  161. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  162. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  163. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  164. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  165. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  166. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  167. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  168. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  169. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  170. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  171. #define GLX_WIDTH_SGIX 0x801D
  172. #define GLX_HEIGHT_SGIX 0x801E
  173. #define GLX_EVENT_MASK_SGIX 0x801F
  174. #define GLX_DAMAGED_SGIX 0x8020
  175. #define GLX_SAVED_SGIX 0x8021
  176. #define GLX_WINDOW_SGIX 0x8022
  177. #define GLX_PBUFFER_SGIX 0x8023
  178. #endif
  179. #ifndef GLX_SGI_cushion
  180. #endif
  181. #ifndef GLX_SGIX_video_resize
  182. #define GLX_SYNC_FRAME_SGIX 0x00000000
  183. #define GLX_SYNC_SWAP_SGIX 0x00000001
  184. #endif
  185. #ifndef GLX_SGIX_dmbuffer
  186. #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
  187. #endif
  188. #ifndef GLX_SGIX_swap_group
  189. #endif
  190. #ifndef GLX_SGIX_swap_barrier
  191. #endif
  192. #ifndef GLX_SGIS_blended_overlay
  193. #define GLX_BLENDED_RGBA_SGIS 0x8025
  194. #endif
  195. #ifndef GLX_SGIS_shared_multisample
  196. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  197. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  198. #endif
  199. #ifndef GLX_SUN_get_transparent_index
  200. #endif
  201. #ifndef GLX_3DFX_multisample
  202. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  203. #define GLX_SAMPLES_3DFX 0x8051
  204. #endif
  205. #ifndef GLX_MESA_copy_sub_buffer
  206. #endif
  207. #ifndef GLX_MESA_pixmap_colormap
  208. #endif
  209. #ifndef GLX_MESA_release_buffers
  210. #endif
  211. #ifndef GLX_MESA_set_3dfx_mode
  212. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  213. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  214. #endif
  215. /*************************************************************/
  216. #ifndef GLX_ARB_get_proc_address
  217. typedef void (*__GLXextFuncPtr)();
  218. #endif
  219. #ifndef GLX_SGIX_video_source
  220. typedef XID GLXVideoSourceSGIX;
  221. #endif
  222. #ifndef GLX_SGIX_fbconfig
  223. typedef XID GLXFBConfigIDSGIX;
  224. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  225. #endif
  226. #ifndef GLX_SGIX_pbuffer
  227. typedef XID GLXPbufferSGIX;
  228. typedef struct {
  229. int type;
  230. unsigned long serial; /* # of last request processed by server */
  231. Bool send_event; /* true if this came for SendEvent request */
  232. Display *display; /* display the event was read from */
  233. GLXDrawable drawable; /* i.d. of Drawable */
  234. int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
  235. int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
  236. unsigned int mask; /* mask indicating which buffers are affected*/
  237. int x, y;
  238. int width, height;
  239. int count; /* if nonzero, at least this many more */
  240. } GLXBufferClobberEventSGIX;
  241. #endif
  242. #ifndef GLX_VERSION_1_3
  243. #define GLX_VERSION_1_3 1
  244. #ifdef GLX_GLXEXT_PROTOTYPES
  245. extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
  246. extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
  247. extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
  248. extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
  249. extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
  250. extern void glXDestroyWindow (Display *, GLXWindow);
  251. extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
  252. extern void glXDestroyPixmap (Display *, GLXPixmap);
  253. extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
  254. extern void glXDestroyPbuffer (Display *, GLXPbuffer);
  255. extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
  256. extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
  257. extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
  258. extern GLXDrawable glXGetCurrentReadDrawable (void);
  259. extern Display * glXGetCurrentDisplay (void);
  260. extern int glXQueryContext (Display *, GLXContext, int, int *);
  261. extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
  262. extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
  263. #endif /* GLX_GLXEXT_PROTOTYPES */
  264. typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  265. typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  266. typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  267. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  268. typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  269. typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  270. typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  271. typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  272. typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  273. typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  274. typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  275. typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  276. typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  277. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  278. typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
  279. typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  280. typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  281. typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  282. #endif
  283. #ifndef GLX_ARB_get_proc_address
  284. #define GLX_ARB_get_proc_address 1
  285. #ifdef GLX_GLXEXT_PROTOTYPES
  286. extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
  287. #endif /* GLX_GLXEXT_PROTOTYPES */
  288. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
  289. #endif
  290. #if 0
  291. /* XXX the enums for this extension are missing */
  292. #ifndef GLX_SGIS_multisample
  293. #define GLX_SGIS_multisample 1
  294. #endif
  295. #endif
  296. #ifndef GLX_EXT_visual_info
  297. #define GLX_EXT_visual_info 1
  298. #endif
  299. #ifndef GLX_SGI_swap_control
  300. #define GLX_SGI_swap_control 1
  301. #ifdef GLX_GLXEXT_PROTOTYPES
  302. extern int glXSwapIntervalSGI (int);
  303. #endif /* GLX_GLXEXT_PROTOTYPES */
  304. typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
  305. #endif
  306. #ifndef GLX_SGI_video_sync
  307. #define GLX_SGI_video_sync 1
  308. #ifdef GLX_GLXEXT_PROTOTYPES
  309. extern int glXGetVideoSyncSGI (unsigned int *);
  310. extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
  311. #endif /* GLX_GLXEXT_PROTOTYPES */
  312. typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
  313. typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
  314. #endif
  315. #ifndef GLX_SGI_make_current_read
  316. #define GLX_SGI_make_current_read 1
  317. #ifdef GLX_GLXEXT_PROTOTYPES
  318. extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
  319. extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
  320. #endif /* GLX_GLXEXT_PROTOTYPES */
  321. typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  322. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  323. #endif
  324. #ifdef _VL_H
  325. #ifndef GLX_SGIX_video_source
  326. #define GLX_SGIX_video_source 1
  327. #ifdef GLX_GLXEXT_PROTOTYPES
  328. extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
  329. extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
  330. #endif /* GLX_GLXEXT_PROTOTYPES */
  331. typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  332. typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  333. #endif
  334. #endif /* _VL_H */
  335. #ifndef GLX_EXT_visual_rating
  336. #define GLX_EXT_visual_rating 1
  337. #endif
  338. #ifndef GLX_EXT_import_context
  339. #define GLX_EXT_import_context 1
  340. #ifdef GLX_GLXEXT_PROTOTYPES
  341. extern Display * glXGetCurrentDisplayEXT (void);
  342. extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
  343. extern GLXContextID glXGetContextIDEXT (GLXContext);
  344. extern GLXContext glXImportContextEXT (Display *, GLXContextID);
  345. extern void glXFreeContextEXT (Display *, GLXContext);
  346. #endif /* GLX_GLXEXT_PROTOTYPES */
  347. typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
  348. typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
  349. typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (GLXContext context);
  350. typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
  351. typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
  352. #endif
  353. #ifndef GLX_SGIX_fbconfig
  354. #define GLX_SGIX_fbconfig 1
  355. #ifdef GLX_GLXEXT_PROTOTYPES
  356. extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
  357. extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
  358. extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
  359. extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
  360. extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
  361. extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
  362. #endif /* GLX_GLXEXT_PROTOTYPES */
  363. typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  364. typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
  365. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  366. typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  367. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
  368. typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
  369. #endif
  370. #ifndef GLX_SGIX_pbuffer
  371. #define GLX_SGIX_pbuffer 1
  372. #ifdef GLX_GLXEXT_PROTOTYPES
  373. extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
  374. extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
  375. extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
  376. extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
  377. extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
  378. #endif /* GLX_GLXEXT_PROTOTYPES */
  379. typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  380. typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
  381. typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  382. typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
  383. typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  384. #endif
  385. #ifndef GLX_SGI_cushion
  386. #define GLX_SGI_cushion 1
  387. #ifdef GLX_GLXEXT_PROTOTYPES
  388. extern void glXCushionSGI (Display *, Window, float);
  389. #endif /* GLX_GLXEXT_PROTOTYPES */
  390. typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
  391. #endif
  392. #ifndef GLX_SGIX_video_resize
  393. #define GLX_SGIX_video_resize 1
  394. #ifdef GLX_GLXEXT_PROTOTYPES
  395. extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
  396. extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
  397. extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
  398. extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
  399. extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
  400. #endif /* GLX_GLXEXT_PROTOTYPES */
  401. typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
  402. typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
  403. typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  404. typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  405. typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
  406. #endif
  407. #ifdef _DM_BUFFER_H_
  408. #ifndef GLX_SGIX_dmbuffer
  409. #define GLX_SGIX_dmbuffer 1
  410. #ifdef GLX_GLXEXT_PROTOTYPES
  411. extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
  412. #endif /* GLX_GLXEXT_PROTOTYPES */
  413. typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  414. #endif
  415. #endif /* _DM_BUFFER_H_ */
  416. #ifndef GLX_SGIX_swap_group
  417. #define GLX_SGIX_swap_group 1
  418. #ifdef GLX_GLXEXT_PROTOTYPES
  419. extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
  420. #endif /* GLX_GLXEXT_PROTOTYPES */
  421. typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  422. #endif
  423. #ifndef GLX_SGIX_swap_barrier
  424. #define GLX_SGIX_swap_barrier 1
  425. #ifdef GLX_GLXEXT_PROTOTYPES
  426. extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
  427. extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
  428. #endif /* GLX_GLXEXT_PROTOTYPES */
  429. typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  430. typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  431. #endif
  432. #ifndef GLX_SUN_get_transparent_index
  433. #define GLX_SUN_get_transparent_index 1
  434. #ifdef GLX_GLXEXT_PROTOTYPES
  435. extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
  436. #endif /* GLX_GLXEXT_PROTOTYPES */
  437. typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
  438. #endif
  439. #ifndef GLX_MESA_copy_sub_buffer
  440. #define GLX_MESA_copy_sub_buffer 1
  441. #ifdef GLX_GLXEXT_PROTOTYPES
  442. extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
  443. #endif /* GLX_GLXEXT_PROTOTYPES */
  444. typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  445. #endif
  446. #ifndef GLX_MESA_pixmap_colormap
  447. #define GLX_MESA_pixmap_colormap 1
  448. #ifdef GLX_GLXEXT_PROTOTYPES
  449. extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
  450. #endif /* GLX_GLXEXT_PROTOTYPES */
  451. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  452. #endif
  453. #ifndef GLX_MESA_release_buffers
  454. #define GLX_MESA_release_buffers 1
  455. #ifdef GLX_GLXEXT_PROTOTYPES
  456. extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
  457. #endif /* GLX_GLXEXT_PROTOTYPES */
  458. typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
  459. #endif
  460. #ifndef GLX_MESA_set_3dfx_mode
  461. #define GLX_MESA_set_3dfx_mode 1
  462. #ifdef GLX_GLXEXT_PROTOTYPES
  463. extern Bool glXSet3DfxModeMESA (int);
  464. #endif /* GLX_GLXEXT_PROTOTYPES */
  465. typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
  466. #endif
  467. #ifdef __cplusplus
  468. }
  469. #endif
  470. #endif