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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785
  1. #ifndef __glxext_h_
  2. #define __glxext_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2007 The Khronos Group Inc.
  8. **
  9. ** Permission is hereby granted, free of charge, to any person obtaining a
  10. ** copy of this software and/or associated documentation files (the
  11. ** "Materials"), to deal in the Materials without restriction, including
  12. ** without limitation the rights to use, copy, modify, merge, publish,
  13. ** distribute, sublicense, and/or sell copies of the Materials, and to
  14. ** permit persons to whom the Materials are furnished to do so, subject to
  15. ** the following conditions:
  16. **
  17. ** The above copyright notice and this permission notice shall be included
  18. ** in all copies or substantial portions of the Materials.
  19. **
  20. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  23. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  24. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  25. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  26. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  27. */
  28. #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
  29. #define WIN32_LEAN_AND_MEAN 1
  30. #include <windows.h>
  31. #endif
  32. #ifndef APIENTRY
  33. #define APIENTRY
  34. #endif
  35. #ifndef APIENTRYP
  36. #define APIENTRYP APIENTRY *
  37. #endif
  38. #ifndef GLAPI
  39. #define GLAPI extern
  40. #endif
  41. /*************************************************************/
  42. /* Header file version number, required by OpenGL ABI for Linux */
  43. /* glxext.h last updated 2007/04/21 */
  44. /* Current version at http://www.opengl.org/registry/ */
  45. #define GLX_GLXEXT_VERSION 19
  46. #ifndef GLX_VERSION_1_3
  47. #define GLX_WINDOW_BIT 0x00000001
  48. #define GLX_PIXMAP_BIT 0x00000002
  49. #define GLX_PBUFFER_BIT 0x00000004
  50. #define GLX_RGBA_BIT 0x00000001
  51. #define GLX_COLOR_INDEX_BIT 0x00000002
  52. #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
  53. #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
  54. #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
  55. #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
  56. #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
  57. #define GLX_AUX_BUFFERS_BIT 0x00000010
  58. #define GLX_DEPTH_BUFFER_BIT 0x00000020
  59. #define GLX_STENCIL_BUFFER_BIT 0x00000040
  60. #define GLX_ACCUM_BUFFER_BIT 0x00000080
  61. #define GLX_CONFIG_CAVEAT 0x20
  62. #define GLX_X_VISUAL_TYPE 0x22
  63. #define GLX_TRANSPARENT_TYPE 0x23
  64. #define GLX_TRANSPARENT_INDEX_VALUE 0x24
  65. #define GLX_TRANSPARENT_RED_VALUE 0x25
  66. #define GLX_TRANSPARENT_GREEN_VALUE 0x26
  67. #define GLX_TRANSPARENT_BLUE_VALUE 0x27
  68. #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
  69. #define GLX_DONT_CARE 0xFFFFFFFF
  70. #define GLX_NONE 0x8000
  71. #define GLX_SLOW_CONFIG 0x8001
  72. #define GLX_TRUE_COLOR 0x8002
  73. #define GLX_DIRECT_COLOR 0x8003
  74. #define GLX_PSEUDO_COLOR 0x8004
  75. #define GLX_STATIC_COLOR 0x8005
  76. #define GLX_GRAY_SCALE 0x8006
  77. #define GLX_STATIC_GRAY 0x8007
  78. #define GLX_TRANSPARENT_RGB 0x8008
  79. #define GLX_TRANSPARENT_INDEX 0x8009
  80. #define GLX_VISUAL_ID 0x800B
  81. #define GLX_SCREEN 0x800C
  82. #define GLX_NON_CONFORMANT_CONFIG 0x800D
  83. #define GLX_DRAWABLE_TYPE 0x8010
  84. #define GLX_RENDER_TYPE 0x8011
  85. #define GLX_X_RENDERABLE 0x8012
  86. #define GLX_FBCONFIG_ID 0x8013
  87. #define GLX_RGBA_TYPE 0x8014
  88. #define GLX_COLOR_INDEX_TYPE 0x8015
  89. #define GLX_MAX_PBUFFER_WIDTH 0x8016
  90. #define GLX_MAX_PBUFFER_HEIGHT 0x8017
  91. #define GLX_MAX_PBUFFER_PIXELS 0x8018
  92. #define GLX_PRESERVED_CONTENTS 0x801B
  93. #define GLX_LARGEST_PBUFFER 0x801C
  94. #define GLX_WIDTH 0x801D
  95. #define GLX_HEIGHT 0x801E
  96. #define GLX_EVENT_MASK 0x801F
  97. #define GLX_DAMAGED 0x8020
  98. #define GLX_SAVED 0x8021
  99. #define GLX_WINDOW 0x8022
  100. #define GLX_PBUFFER 0x8023
  101. #define GLX_PBUFFER_HEIGHT 0x8040
  102. #define GLX_PBUFFER_WIDTH 0x8041
  103. #endif
  104. #ifndef GLX_VERSION_1_4
  105. #define GLX_SAMPLE_BUFFERS 100000
  106. #define GLX_SAMPLES 100001
  107. #endif
  108. #ifndef GLX_ARB_get_proc_address
  109. #endif
  110. #ifndef GLX_ARB_multisample
  111. #define GLX_SAMPLE_BUFFERS_ARB 100000
  112. #define GLX_SAMPLES_ARB 100001
  113. #endif
  114. #ifndef GLX_ARB_fbconfig_float
  115. #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
  116. #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
  117. #endif
  118. #ifndef GLX_SGIS_multisample
  119. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  120. #define GLX_SAMPLES_SGIS 100001
  121. #endif
  122. #ifndef GLX_EXT_visual_info
  123. #define GLX_X_VISUAL_TYPE_EXT 0x22
  124. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  125. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  126. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  127. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  128. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  129. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  130. #define GLX_NONE_EXT 0x8000
  131. #define GLX_TRUE_COLOR_EXT 0x8002
  132. #define GLX_DIRECT_COLOR_EXT 0x8003
  133. #define GLX_PSEUDO_COLOR_EXT 0x8004
  134. #define GLX_STATIC_COLOR_EXT 0x8005
  135. #define GLX_GRAY_SCALE_EXT 0x8006
  136. #define GLX_STATIC_GRAY_EXT 0x8007
  137. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  138. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  139. #endif
  140. #ifndef GLX_SGI_swap_control
  141. #endif
  142. #ifndef GLX_SGI_video_sync
  143. #endif
  144. #ifndef GLX_SGI_make_current_read
  145. #endif
  146. #ifndef GLX_SGIX_video_source
  147. #endif
  148. #ifndef GLX_EXT_visual_rating
  149. #define GLX_VISUAL_CAVEAT_EXT 0x20
  150. #define GLX_SLOW_VISUAL_EXT 0x8001
  151. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  152. /* reuse GLX_NONE_EXT */
  153. #endif
  154. #ifndef GLX_EXT_import_context
  155. #define GLX_SHARE_CONTEXT_EXT 0x800A
  156. #define GLX_VISUAL_ID_EXT 0x800B
  157. #define GLX_SCREEN_EXT 0x800C
  158. #endif
  159. #ifndef GLX_SGIX_fbconfig
  160. #define GLX_WINDOW_BIT_SGIX 0x00000001
  161. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  162. #define GLX_RGBA_BIT_SGIX 0x00000001
  163. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  164. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  165. #define GLX_RENDER_TYPE_SGIX 0x8011
  166. #define GLX_X_RENDERABLE_SGIX 0x8012
  167. #define GLX_FBCONFIG_ID_SGIX 0x8013
  168. #define GLX_RGBA_TYPE_SGIX 0x8014
  169. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  170. /* reuse GLX_SCREEN_EXT */
  171. #endif
  172. #ifndef GLX_SGIX_pbuffer
  173. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  174. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  175. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  176. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  177. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  178. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  179. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  180. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  181. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  182. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  183. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  184. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  185. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  186. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  187. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  188. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  189. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  190. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  191. #define GLX_WIDTH_SGIX 0x801D
  192. #define GLX_HEIGHT_SGIX 0x801E
  193. #define GLX_EVENT_MASK_SGIX 0x801F
  194. #define GLX_DAMAGED_SGIX 0x8020
  195. #define GLX_SAVED_SGIX 0x8021
  196. #define GLX_WINDOW_SGIX 0x8022
  197. #define GLX_PBUFFER_SGIX 0x8023
  198. #endif
  199. #ifndef GLX_SGI_cushion
  200. #endif
  201. #ifndef GLX_SGIX_video_resize
  202. #define GLX_SYNC_FRAME_SGIX 0x00000000
  203. #define GLX_SYNC_SWAP_SGIX 0x00000001
  204. #endif
  205. #ifndef GLX_SGIX_dmbuffer
  206. #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
  207. #endif
  208. #ifndef GLX_SGIX_swap_group
  209. #endif
  210. #ifndef GLX_SGIX_swap_barrier
  211. #endif
  212. #ifndef GLX_SGIS_blended_overlay
  213. #define GLX_BLENDED_RGBA_SGIS 0x8025
  214. #endif
  215. #ifndef GLX_SGIS_shared_multisample
  216. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  217. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  218. #endif
  219. #ifndef GLX_SUN_get_transparent_index
  220. #endif
  221. #ifndef GLX_3DFX_multisample
  222. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  223. #define GLX_SAMPLES_3DFX 0x8051
  224. #endif
  225. #ifndef GLX_MESA_copy_sub_buffer
  226. #endif
  227. #ifndef GLX_MESA_pixmap_colormap
  228. #endif
  229. #ifndef GLX_MESA_release_buffers
  230. #endif
  231. #ifndef GLX_MESA_set_3dfx_mode
  232. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  233. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  234. #endif
  235. #ifndef GLX_SGIX_visual_select_group
  236. #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
  237. #endif
  238. #ifndef GLX_OML_swap_method
  239. #define GLX_SWAP_METHOD_OML 0x8060
  240. #define GLX_SWAP_EXCHANGE_OML 0x8061
  241. #define GLX_SWAP_COPY_OML 0x8062
  242. #define GLX_SWAP_UNDEFINED_OML 0x8063
  243. #endif
  244. #ifndef GLX_OML_sync_control
  245. #endif
  246. #ifndef GLX_NV_float_buffer
  247. #define GLX_FLOAT_COMPONENTS_NV 0x20B0
  248. #endif
  249. #ifndef GLX_SGIX_hyperpipe
  250. #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
  251. #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
  252. #define GLX_BAD_HYPERPIPE_SGIX 92
  253. #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
  254. #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
  255. #define GLX_PIPE_RECT_SGIX 0x00000001
  256. #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
  257. #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
  258. #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
  259. #define GLX_HYPERPIPE_ID_SGIX 0x8030
  260. #endif
  261. #ifndef GLX_MESA_agp_offset
  262. #endif
  263. #ifndef GLX_EXT_fbconfig_packed_float
  264. #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
  265. #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
  266. #endif
  267. #ifndef GLX_EXT_framebuffer_sRGB
  268. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
  269. #endif
  270. #ifndef GLX_EXT_texture_from_pixmap
  271. #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
  272. #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
  273. #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
  274. #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
  275. #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
  276. #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
  277. #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
  278. #define GLX_Y_INVERTED_EXT 0x20D4
  279. #define GLX_TEXTURE_FORMAT_EXT 0x20D5
  280. #define GLX_TEXTURE_TARGET_EXT 0x20D6
  281. #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
  282. #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
  283. #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
  284. #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
  285. #define GLX_TEXTURE_1D_EXT 0x20DB
  286. #define GLX_TEXTURE_2D_EXT 0x20DC
  287. #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
  288. #define GLX_FRONT_LEFT_EXT 0x20DE
  289. #define GLX_FRONT_RIGHT_EXT 0x20DF
  290. #define GLX_BACK_LEFT_EXT 0x20E0
  291. #define GLX_BACK_RIGHT_EXT 0x20E1
  292. #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
  293. #define GLX_BACK_EXT GLX_BACK_LEFT_EXT
  294. #define GLX_AUX0_EXT 0x20E2
  295. #define GLX_AUX1_EXT 0x20E3
  296. #define GLX_AUX2_EXT 0x20E4
  297. #define GLX_AUX3_EXT 0x20E5
  298. #define GLX_AUX4_EXT 0x20E6
  299. #define GLX_AUX5_EXT 0x20E7
  300. #define GLX_AUX6_EXT 0x20E8
  301. #define GLX_AUX7_EXT 0x20E9
  302. #define GLX_AUX8_EXT 0x20EA
  303. #define GLX_AUX9_EXT 0x20EB
  304. #endif
  305. /*************************************************************/
  306. #ifndef GLX_ARB_get_proc_address
  307. typedef void (*__GLXextFuncPtr)(void);
  308. #endif
  309. #ifndef GLX_SGIX_video_source
  310. typedef XID GLXVideoSourceSGIX;
  311. #endif
  312. #ifndef GLX_SGIX_fbconfig
  313. typedef XID GLXFBConfigIDSGIX;
  314. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  315. #endif
  316. #ifndef GLX_SGIX_pbuffer
  317. typedef XID GLXPbufferSGIX;
  318. typedef struct {
  319. int type;
  320. unsigned long serial; /* # of last request processed by server */
  321. Bool send_event; /* true if this came for SendEvent request */
  322. Display *display; /* display the event was read from */
  323. GLXDrawable drawable; /* i.d. of Drawable */
  324. int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
  325. int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
  326. unsigned int mask; /* mask indicating which buffers are affected*/
  327. int x, y;
  328. int width, height;
  329. int count; /* if nonzero, at least this many more */
  330. } GLXBufferClobberEventSGIX;
  331. #endif
  332. #ifndef GLEXT_64_TYPES_DEFINED
  333. /* This code block is duplicated in glext.h, so must be protected */
  334. #define GLEXT_64_TYPES_DEFINED
  335. /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  336. /* (as used in the GLX_OML_sync_control extension). */
  337. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  338. #include <inttypes.h>
  339. #elif defined(__sun__) || defined(__digital__)
  340. #include <inttypes.h>
  341. #if defined(__STDC__)
  342. #if defined(__arch64__) || defined(_LP64)
  343. typedef long int int64_t;
  344. typedef unsigned long int uint64_t;
  345. #else
  346. typedef long long int int64_t;
  347. typedef unsigned long long int uint64_t;
  348. #endif /* __arch64__ */
  349. #endif /* __STDC__ */
  350. #elif defined( __VMS ) || defined(__sgi)
  351. #include <inttypes.h>
  352. #elif defined(__SCO__) || defined(__USLC__)
  353. #include <stdint.h>
  354. #elif defined(__UNIXOS2__) || defined(__SOL64__)
  355. typedef long int int32_t;
  356. typedef long long int int64_t;
  357. typedef unsigned long long int uint64_t;
  358. #elif defined(_WIN32) && defined(__GNUC__)
  359. #include <stdint.h>
  360. #elif defined(_WIN32)
  361. typedef __int32 int32_t;
  362. typedef __int64 int64_t;
  363. typedef unsigned __int64 uint64_t;
  364. #else
  365. #include <inttypes.h> /* Fallback option */
  366. #endif
  367. #endif
  368. #ifndef GLX_VERSION_1_3
  369. #define GLX_VERSION_1_3 1
  370. #ifdef GLX_GLXEXT_PROTOTYPES
  371. extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
  372. extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
  373. extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
  374. extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
  375. extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
  376. extern void glXDestroyWindow (Display *, GLXWindow);
  377. extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
  378. extern void glXDestroyPixmap (Display *, GLXPixmap);
  379. extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
  380. extern void glXDestroyPbuffer (Display *, GLXPbuffer);
  381. extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
  382. extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
  383. extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
  384. extern GLXDrawable glXGetCurrentReadDrawable (void);
  385. extern Display * glXGetCurrentDisplay (void);
  386. extern int glXQueryContext (Display *, GLXContext, int, int *);
  387. extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
  388. extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
  389. #endif /* GLX_GLXEXT_PROTOTYPES */
  390. typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  391. typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  392. typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  393. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  394. typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  395. typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  396. typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  397. typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  398. typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  399. typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  400. typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  401. typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  402. typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  403. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  404. typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
  405. typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  406. typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  407. typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  408. #endif
  409. #ifndef GLX_VERSION_1_4
  410. #define GLX_VERSION_1_4 1
  411. #ifdef GLX_GLXEXT_PROTOTYPES
  412. extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
  413. #endif /* GLX_GLXEXT_PROTOTYPES */
  414. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
  415. #endif
  416. #ifndef GLX_ARB_get_proc_address
  417. #define GLX_ARB_get_proc_address 1
  418. #ifdef GLX_GLXEXT_PROTOTYPES
  419. extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
  420. #endif /* GLX_GLXEXT_PROTOTYPES */
  421. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
  422. #endif
  423. #ifndef GLX_ARB_multisample
  424. #define GLX_ARB_multisample 1
  425. #endif
  426. #ifndef GLX_ARB_fbconfig_float
  427. #define GLX_ARB_fbconfig_float 1
  428. #endif
  429. #ifndef GLX_SGIS_multisample
  430. #define GLX_SGIS_multisample 1
  431. #endif
  432. #ifndef GLX_EXT_visual_info
  433. #define GLX_EXT_visual_info 1
  434. #endif
  435. #ifndef GLX_SGI_swap_control
  436. #define GLX_SGI_swap_control 1
  437. #ifdef GLX_GLXEXT_PROTOTYPES
  438. extern int glXSwapIntervalSGI (int);
  439. #endif /* GLX_GLXEXT_PROTOTYPES */
  440. typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
  441. #endif
  442. #ifndef GLX_SGI_video_sync
  443. #define GLX_SGI_video_sync 1
  444. #ifdef GLX_GLXEXT_PROTOTYPES
  445. extern int glXGetVideoSyncSGI (unsigned int *);
  446. extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
  447. #endif /* GLX_GLXEXT_PROTOTYPES */
  448. typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
  449. typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
  450. #endif
  451. #ifndef GLX_SGI_make_current_read
  452. #define GLX_SGI_make_current_read 1
  453. #ifdef GLX_GLXEXT_PROTOTYPES
  454. extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
  455. extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
  456. #endif /* GLX_GLXEXT_PROTOTYPES */
  457. typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  458. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  459. #endif
  460. #ifndef GLX_SGIX_video_source
  461. #define GLX_SGIX_video_source 1
  462. #ifdef _VL_H
  463. #ifdef GLX_GLXEXT_PROTOTYPES
  464. extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
  465. extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
  466. #endif /* GLX_GLXEXT_PROTOTYPES */
  467. typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  468. typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  469. #endif /* _VL_H */
  470. #endif
  471. #ifndef GLX_EXT_visual_rating
  472. #define GLX_EXT_visual_rating 1
  473. #endif
  474. #ifndef GLX_EXT_import_context
  475. #define GLX_EXT_import_context 1
  476. #ifdef GLX_GLXEXT_PROTOTYPES
  477. extern Display * glXGetCurrentDisplayEXT (void);
  478. extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
  479. extern GLXContextID glXGetContextIDEXT (const GLXContext);
  480. extern GLXContext glXImportContextEXT (Display *, GLXContextID);
  481. extern void glXFreeContextEXT (Display *, GLXContext);
  482. #endif /* GLX_GLXEXT_PROTOTYPES */
  483. typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
  484. typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
  485. typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
  486. typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
  487. typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
  488. #endif
  489. #ifndef GLX_SGIX_fbconfig
  490. #define GLX_SGIX_fbconfig 1
  491. #ifdef GLX_GLXEXT_PROTOTYPES
  492. extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
  493. extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
  494. extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
  495. extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
  496. extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
  497. extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
  498. #endif /* GLX_GLXEXT_PROTOTYPES */
  499. typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  500. typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
  501. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  502. typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  503. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
  504. typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
  505. #endif
  506. #ifndef GLX_SGIX_pbuffer
  507. #define GLX_SGIX_pbuffer 1
  508. #ifdef GLX_GLXEXT_PROTOTYPES
  509. extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
  510. extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
  511. extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
  512. extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
  513. extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
  514. #endif /* GLX_GLXEXT_PROTOTYPES */
  515. typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  516. typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
  517. typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  518. typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
  519. typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  520. #endif
  521. #ifndef GLX_SGI_cushion
  522. #define GLX_SGI_cushion 1
  523. #ifdef GLX_GLXEXT_PROTOTYPES
  524. extern void glXCushionSGI (Display *, Window, float);
  525. #endif /* GLX_GLXEXT_PROTOTYPES */
  526. typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
  527. #endif
  528. #ifndef GLX_SGIX_video_resize
  529. #define GLX_SGIX_video_resize 1
  530. #ifdef GLX_GLXEXT_PROTOTYPES
  531. extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
  532. extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
  533. extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
  534. extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
  535. extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
  536. #endif /* GLX_GLXEXT_PROTOTYPES */
  537. typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
  538. typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
  539. typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  540. typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  541. typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
  542. #endif
  543. #ifndef GLX_SGIX_dmbuffer
  544. #define GLX_SGIX_dmbuffer 1
  545. #ifdef _DM_BUFFER_H_
  546. #ifdef GLX_GLXEXT_PROTOTYPES
  547. extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
  548. #endif /* GLX_GLXEXT_PROTOTYPES */
  549. typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  550. #endif /* _DM_BUFFER_H_ */
  551. #endif
  552. #ifndef GLX_SGIX_swap_group
  553. #define GLX_SGIX_swap_group 1
  554. #ifdef GLX_GLXEXT_PROTOTYPES
  555. extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
  556. #endif /* GLX_GLXEXT_PROTOTYPES */
  557. typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  558. #endif
  559. #ifndef GLX_SGIX_swap_barrier
  560. #define GLX_SGIX_swap_barrier 1
  561. #ifdef GLX_GLXEXT_PROTOTYPES
  562. extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
  563. extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
  564. #endif /* GLX_GLXEXT_PROTOTYPES */
  565. typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  566. typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  567. #endif
  568. #ifndef GLX_SUN_get_transparent_index
  569. #define GLX_SUN_get_transparent_index 1
  570. #ifdef GLX_GLXEXT_PROTOTYPES
  571. extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
  572. #endif /* GLX_GLXEXT_PROTOTYPES */
  573. typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
  574. #endif
  575. #ifndef GLX_MESA_copy_sub_buffer
  576. #define GLX_MESA_copy_sub_buffer 1
  577. #ifdef GLX_GLXEXT_PROTOTYPES
  578. extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
  579. #endif /* GLX_GLXEXT_PROTOTYPES */
  580. typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  581. #endif
  582. #ifndef GLX_MESA_pixmap_colormap
  583. #define GLX_MESA_pixmap_colormap 1
  584. #ifdef GLX_GLXEXT_PROTOTYPES
  585. extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
  586. #endif /* GLX_GLXEXT_PROTOTYPES */
  587. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  588. #endif
  589. #ifndef GLX_MESA_release_buffers
  590. #define GLX_MESA_release_buffers 1
  591. #ifdef GLX_GLXEXT_PROTOTYPES
  592. extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
  593. #endif /* GLX_GLXEXT_PROTOTYPES */
  594. typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
  595. #endif
  596. #ifndef GLX_MESA_set_3dfx_mode
  597. #define GLX_MESA_set_3dfx_mode 1
  598. #ifdef GLX_GLXEXT_PROTOTYPES
  599. extern Bool glXSet3DfxModeMESA (int);
  600. #endif /* GLX_GLXEXT_PROTOTYPES */
  601. typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
  602. #endif
  603. #ifndef GLX_SGIX_visual_select_group
  604. #define GLX_SGIX_visual_select_group 1
  605. #endif
  606. #ifndef GLX_OML_swap_method
  607. #define GLX_OML_swap_method 1
  608. #endif
  609. #ifndef GLX_OML_sync_control
  610. #define GLX_OML_sync_control 1
  611. #ifdef GLX_GLXEXT_PROTOTYPES
  612. extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
  613. extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
  614. extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
  615. extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
  616. extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
  617. #endif /* GLX_GLXEXT_PROTOTYPES */
  618. typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
  619. typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
  620. typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  621. 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);
  622. typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
  623. #endif
  624. #ifndef GLX_NV_float_buffer
  625. #define GLX_NV_float_buffer 1
  626. #endif
  627. #ifndef GLX_SGIX_hyperpipe
  628. #define GLX_SGIX_hyperpipe 1
  629. typedef struct {
  630. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  631. int networkId;
  632. } GLXHyperpipeNetworkSGIX;
  633. typedef struct {
  634. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  635. int channel;
  636. unsigned int
  637. participationType;
  638. int timeSlice;
  639. } GLXHyperpipeConfigSGIX;
  640. typedef struct {
  641. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  642. int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
  643. int destXOrigin, destYOrigin, destWidth, destHeight;
  644. } GLXPipeRect;
  645. typedef struct {
  646. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  647. int XOrigin, YOrigin, maxHeight, maxWidth;
  648. } GLXPipeRectLimits;
  649. #ifdef GLX_GLXEXT_PROTOTYPES
  650. extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
  651. extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
  652. extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
  653. extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
  654. extern int glXBindHyperpipeSGIX (Display *, int);
  655. extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
  656. extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
  657. extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
  658. #endif /* GLX_GLXEXT_PROTOTYPES */
  659. typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
  660. typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
  661. typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
  662. typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
  663. typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
  664. typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
  665. typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
  666. typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
  667. #endif
  668. #ifndef GLX_MESA_agp_offset
  669. #define GLX_MESA_agp_offset 1
  670. #ifdef GLX_GLXEXT_PROTOTYPES
  671. extern unsigned int glXGetAGPOffsetMESA (const void *);
  672. #endif /* GLX_GLXEXT_PROTOTYPES */
  673. typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
  674. #endif
  675. #ifndef GLX_EXT_fbconfig_packed_float
  676. #define GLX_EXT_fbconfig_packed_float 1
  677. #endif
  678. #ifndef GLX_EXT_framebuffer_sRGB
  679. #define GLX_EXT_framebuffer_sRGB 1
  680. #endif
  681. #ifndef GLX_EXT_texture_from_pixmap
  682. #define GLX_EXT_texture_from_pixmap 1
  683. #ifdef GLX_GLXEXT_PROTOTYPES
  684. extern void glXBindTexImageEXT (Display *, GLXDrawable, int, const int *);
  685. extern void glXReleaseTexImageEXT (Display *, GLXDrawable, int);
  686. #endif /* GLX_GLXEXT_PROTOTYPES */
  687. typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
  688. typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
  689. #endif
  690. #ifdef __cplusplus
  691. }
  692. #endif
  693. #endif