Clone of mesa.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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 2008/10/22 */
  44. /* Current version at http://www.opengl.org/registry/ */
  45. #define GLX_GLXEXT_VERSION 21
  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_ARB_create_context
  119. #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
  120. #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
  121. #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
  122. #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
  123. #define GLX_CONTEXT_FLAGS_ARB 0x2094
  124. #endif
  125. #ifndef GLX_SGIS_multisample
  126. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  127. #define GLX_SAMPLES_SGIS 100001
  128. #endif
  129. #ifndef GLX_EXT_visual_info
  130. #define GLX_X_VISUAL_TYPE_EXT 0x22
  131. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  132. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  133. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  134. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  135. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  136. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  137. #define GLX_NONE_EXT 0x8000
  138. #define GLX_TRUE_COLOR_EXT 0x8002
  139. #define GLX_DIRECT_COLOR_EXT 0x8003
  140. #define GLX_PSEUDO_COLOR_EXT 0x8004
  141. #define GLX_STATIC_COLOR_EXT 0x8005
  142. #define GLX_GRAY_SCALE_EXT 0x8006
  143. #define GLX_STATIC_GRAY_EXT 0x8007
  144. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  145. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  146. #endif
  147. #ifndef GLX_SGI_swap_control
  148. #endif
  149. #ifndef GLX_SGI_video_sync
  150. #endif
  151. #ifndef GLX_SGI_make_current_read
  152. #endif
  153. #ifndef GLX_SGIX_video_source
  154. #endif
  155. #ifndef GLX_EXT_visual_rating
  156. #define GLX_VISUAL_CAVEAT_EXT 0x20
  157. #define GLX_SLOW_VISUAL_EXT 0x8001
  158. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  159. /* reuse GLX_NONE_EXT */
  160. #endif
  161. #ifndef GLX_EXT_import_context
  162. #define GLX_SHARE_CONTEXT_EXT 0x800A
  163. #define GLX_VISUAL_ID_EXT 0x800B
  164. #define GLX_SCREEN_EXT 0x800C
  165. #endif
  166. #ifndef GLX_SGIX_fbconfig
  167. #define GLX_WINDOW_BIT_SGIX 0x00000001
  168. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  169. #define GLX_RGBA_BIT_SGIX 0x00000001
  170. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  171. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  172. #define GLX_RENDER_TYPE_SGIX 0x8011
  173. #define GLX_X_RENDERABLE_SGIX 0x8012
  174. #define GLX_FBCONFIG_ID_SGIX 0x8013
  175. #define GLX_RGBA_TYPE_SGIX 0x8014
  176. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  177. /* reuse GLX_SCREEN_EXT */
  178. #endif
  179. #ifndef GLX_SGIX_pbuffer
  180. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  181. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  182. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  183. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  184. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  185. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  186. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  187. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  188. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  189. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  190. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  191. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  192. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  193. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  194. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  195. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  196. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  197. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  198. #define GLX_WIDTH_SGIX 0x801D
  199. #define GLX_HEIGHT_SGIX 0x801E
  200. #define GLX_EVENT_MASK_SGIX 0x801F
  201. #define GLX_DAMAGED_SGIX 0x8020
  202. #define GLX_SAVED_SGIX 0x8021
  203. #define GLX_WINDOW_SGIX 0x8022
  204. #define GLX_PBUFFER_SGIX 0x8023
  205. #endif
  206. #ifndef GLX_SGI_cushion
  207. #endif
  208. #ifndef GLX_SGIX_video_resize
  209. #define GLX_SYNC_FRAME_SGIX 0x00000000
  210. #define GLX_SYNC_SWAP_SGIX 0x00000001
  211. #endif
  212. #ifndef GLX_SGIX_dmbuffer
  213. #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
  214. #endif
  215. #ifndef GLX_SGIX_swap_group
  216. #endif
  217. #ifndef GLX_SGIX_swap_barrier
  218. #endif
  219. #ifndef GLX_SGIS_blended_overlay
  220. #define GLX_BLENDED_RGBA_SGIS 0x8025
  221. #endif
  222. #ifndef GLX_SGIS_shared_multisample
  223. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  224. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  225. #endif
  226. #ifndef GLX_SUN_get_transparent_index
  227. #endif
  228. #ifndef GLX_3DFX_multisample
  229. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  230. #define GLX_SAMPLES_3DFX 0x8051
  231. #endif
  232. #ifndef GLX_MESA_copy_sub_buffer
  233. #endif
  234. #ifndef GLX_MESA_pixmap_colormap
  235. #endif
  236. #ifndef GLX_MESA_release_buffers
  237. #endif
  238. #ifndef GLX_MESA_set_3dfx_mode
  239. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  240. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  241. #endif
  242. #ifndef GLX_SGIX_visual_select_group
  243. #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
  244. #endif
  245. #ifndef GLX_OML_swap_method
  246. #define GLX_SWAP_METHOD_OML 0x8060
  247. #define GLX_SWAP_EXCHANGE_OML 0x8061
  248. #define GLX_SWAP_COPY_OML 0x8062
  249. #define GLX_SWAP_UNDEFINED_OML 0x8063
  250. #endif
  251. #ifndef GLX_OML_sync_control
  252. #endif
  253. #ifndef GLX_NV_float_buffer
  254. #define GLX_FLOAT_COMPONENTS_NV 0x20B0
  255. #endif
  256. #ifndef GLX_SGIX_hyperpipe
  257. #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
  258. #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
  259. #define GLX_BAD_HYPERPIPE_SGIX 92
  260. #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
  261. #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
  262. #define GLX_PIPE_RECT_SGIX 0x00000001
  263. #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
  264. #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
  265. #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
  266. #define GLX_HYPERPIPE_ID_SGIX 0x8030
  267. #endif
  268. #ifndef GLX_MESA_agp_offset
  269. #endif
  270. #ifndef GLX_EXT_fbconfig_packed_float
  271. #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
  272. #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
  273. #endif
  274. #ifndef GLX_EXT_framebuffer_sRGB
  275. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
  276. #endif
  277. #ifndef GLX_EXT_texture_from_pixmap
  278. #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
  279. #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
  280. #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
  281. #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
  282. #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
  283. #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
  284. #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
  285. #define GLX_Y_INVERTED_EXT 0x20D4
  286. #define GLX_TEXTURE_FORMAT_EXT 0x20D5
  287. #define GLX_TEXTURE_TARGET_EXT 0x20D6
  288. #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
  289. #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
  290. #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
  291. #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
  292. #define GLX_TEXTURE_1D_EXT 0x20DB
  293. #define GLX_TEXTURE_2D_EXT 0x20DC
  294. #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
  295. #define GLX_FRONT_LEFT_EXT 0x20DE
  296. #define GLX_FRONT_RIGHT_EXT 0x20DF
  297. #define GLX_BACK_LEFT_EXT 0x20E0
  298. #define GLX_BACK_RIGHT_EXT 0x20E1
  299. #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
  300. #define GLX_BACK_EXT GLX_BACK_LEFT_EXT
  301. #define GLX_AUX0_EXT 0x20E2
  302. #define GLX_AUX1_EXT 0x20E3
  303. #define GLX_AUX2_EXT 0x20E4
  304. #define GLX_AUX3_EXT 0x20E5
  305. #define GLX_AUX4_EXT 0x20E6
  306. #define GLX_AUX5_EXT 0x20E7
  307. #define GLX_AUX6_EXT 0x20E8
  308. #define GLX_AUX7_EXT 0x20E9
  309. #define GLX_AUX8_EXT 0x20EA
  310. #define GLX_AUX9_EXT 0x20EB
  311. #endif
  312. #ifndef GLX_NV_present_video
  313. #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
  314. #endif
  315. #ifndef GLX_NV_video_out
  316. #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
  317. #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
  318. #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
  319. #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  320. #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  321. #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
  322. #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
  323. #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
  324. #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
  325. #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
  326. #endif
  327. #ifndef GLX_NV_swap_group
  328. #endif
  329. /*************************************************************/
  330. #ifndef GLX_ARB_get_proc_address
  331. typedef void (*__GLXextFuncPtr)(void);
  332. #endif
  333. #ifndef GLX_SGIX_video_source
  334. typedef XID GLXVideoSourceSGIX;
  335. #endif
  336. #ifndef GLX_SGIX_fbconfig
  337. typedef XID GLXFBConfigIDSGIX;
  338. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  339. #endif
  340. #ifndef GLX_SGIX_pbuffer
  341. typedef XID GLXPbufferSGIX;
  342. typedef struct {
  343. int type;
  344. unsigned long serial; /* # of last request processed by server */
  345. Bool send_event; /* true if this came for SendEvent request */
  346. Display *display; /* display the event was read from */
  347. GLXDrawable drawable; /* i.d. of Drawable */
  348. int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
  349. int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
  350. unsigned int mask; /* mask indicating which buffers are affected*/
  351. int x, y;
  352. int width, height;
  353. int count; /* if nonzero, at least this many more */
  354. } GLXBufferClobberEventSGIX;
  355. #endif
  356. #ifndef GLEXT_64_TYPES_DEFINED
  357. /* This code block is duplicated in glext.h, so must be protected */
  358. #define GLEXT_64_TYPES_DEFINED
  359. /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  360. /* (as used in the GLX_OML_sync_control extension). */
  361. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  362. #include <inttypes.h>
  363. #elif defined(__sun__) || defined(__digital__)
  364. #include <inttypes.h>
  365. #if defined(__STDC__)
  366. #if defined(__arch64__) || defined(_LP64)
  367. typedef long int int64_t;
  368. typedef unsigned long int uint64_t;
  369. #else
  370. typedef long long int int64_t;
  371. typedef unsigned long long int uint64_t;
  372. #endif /* __arch64__ */
  373. #endif /* __STDC__ */
  374. #elif defined( __VMS ) || defined(__sgi)
  375. #include <inttypes.h>
  376. #elif defined(__SCO__) || defined(__USLC__)
  377. #include <stdint.h>
  378. #elif defined(__UNIXOS2__) || defined(__SOL64__)
  379. typedef long int int32_t;
  380. typedef long long int int64_t;
  381. typedef unsigned long long int uint64_t;
  382. #elif defined(_WIN32) && defined(__GNUC__)
  383. #include <stdint.h>
  384. #elif defined(_WIN32)
  385. typedef __int32 int32_t;
  386. typedef __int64 int64_t;
  387. typedef unsigned __int64 uint64_t;
  388. #else
  389. #include <inttypes.h> /* Fallback option */
  390. #endif
  391. #endif
  392. #ifndef GLX_VERSION_1_3
  393. #define GLX_VERSION_1_3 1
  394. #ifdef GLX_GLXEXT_PROTOTYPES
  395. extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
  396. extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
  397. extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
  398. extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
  399. extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
  400. extern void glXDestroyWindow (Display *, GLXWindow);
  401. extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
  402. extern void glXDestroyPixmap (Display *, GLXPixmap);
  403. extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
  404. extern void glXDestroyPbuffer (Display *, GLXPbuffer);
  405. extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
  406. extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
  407. extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
  408. extern GLXDrawable glXGetCurrentReadDrawable (void);
  409. extern Display * glXGetCurrentDisplay (void);
  410. extern int glXQueryContext (Display *, GLXContext, int, int *);
  411. extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
  412. extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
  413. #endif /* GLX_GLXEXT_PROTOTYPES */
  414. typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  415. typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  416. typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  417. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  418. typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  419. typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  420. typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  421. typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  422. typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  423. typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  424. typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  425. typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  426. typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  427. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  428. typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
  429. typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  430. typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  431. typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  432. #endif
  433. #ifndef GLX_VERSION_1_4
  434. #define GLX_VERSION_1_4 1
  435. #ifdef GLX_GLXEXT_PROTOTYPES
  436. extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
  437. #endif /* GLX_GLXEXT_PROTOTYPES */
  438. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
  439. #endif
  440. #ifndef GLX_ARB_get_proc_address
  441. #define GLX_ARB_get_proc_address 1
  442. #ifdef GLX_GLXEXT_PROTOTYPES
  443. extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
  444. #endif /* GLX_GLXEXT_PROTOTYPES */
  445. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
  446. #endif
  447. #ifndef GLX_ARB_multisample
  448. #define GLX_ARB_multisample 1
  449. #endif
  450. #ifndef GLX_ARB_fbconfig_float
  451. #define GLX_ARB_fbconfig_float 1
  452. #endif
  453. #ifndef GLX_ARB_create_context
  454. #define GLX_ARB_create_context 1
  455. #ifdef GLX_GLXEXT_PROTOTYPES
  456. extern GLXContext glXCreateContextAttribsARB (Display *, GLXFBConfig, GLXContext, Bool, const int *);
  457. #endif /* GLX_GLXEXT_PROTOTYPES */
  458. typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
  459. #endif
  460. #ifndef GLX_SGIS_multisample
  461. #define GLX_SGIS_multisample 1
  462. #endif
  463. #ifndef GLX_EXT_visual_info
  464. #define GLX_EXT_visual_info 1
  465. #endif
  466. #ifndef GLX_SGI_swap_control
  467. #define GLX_SGI_swap_control 1
  468. #ifdef GLX_GLXEXT_PROTOTYPES
  469. extern int glXSwapIntervalSGI (int);
  470. #endif /* GLX_GLXEXT_PROTOTYPES */
  471. typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
  472. #endif
  473. #ifndef GLX_SGI_video_sync
  474. #define GLX_SGI_video_sync 1
  475. #ifdef GLX_GLXEXT_PROTOTYPES
  476. extern int glXGetVideoSyncSGI (unsigned int *);
  477. extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
  478. #endif /* GLX_GLXEXT_PROTOTYPES */
  479. typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
  480. typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
  481. #endif
  482. #ifndef GLX_SGI_make_current_read
  483. #define GLX_SGI_make_current_read 1
  484. #ifdef GLX_GLXEXT_PROTOTYPES
  485. extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
  486. extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
  487. #endif /* GLX_GLXEXT_PROTOTYPES */
  488. typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  489. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  490. #endif
  491. #ifndef GLX_SGIX_video_source
  492. #define GLX_SGIX_video_source 1
  493. #ifdef _VL_H
  494. #ifdef GLX_GLXEXT_PROTOTYPES
  495. extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
  496. extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
  497. #endif /* GLX_GLXEXT_PROTOTYPES */
  498. typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  499. typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  500. #endif /* _VL_H */
  501. #endif
  502. #ifndef GLX_EXT_visual_rating
  503. #define GLX_EXT_visual_rating 1
  504. #endif
  505. #ifndef GLX_EXT_import_context
  506. #define GLX_EXT_import_context 1
  507. #ifdef GLX_GLXEXT_PROTOTYPES
  508. extern Display * glXGetCurrentDisplayEXT (void);
  509. extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
  510. extern GLXContextID glXGetContextIDEXT (const GLXContext);
  511. extern GLXContext glXImportContextEXT (Display *, GLXContextID);
  512. extern void glXFreeContextEXT (Display *, GLXContext);
  513. #endif /* GLX_GLXEXT_PROTOTYPES */
  514. typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
  515. typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
  516. typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
  517. typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
  518. typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
  519. #endif
  520. #ifndef GLX_SGIX_fbconfig
  521. #define GLX_SGIX_fbconfig 1
  522. #ifdef GLX_GLXEXT_PROTOTYPES
  523. extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
  524. extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
  525. extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
  526. extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
  527. extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
  528. extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
  529. #endif /* GLX_GLXEXT_PROTOTYPES */
  530. typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  531. typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
  532. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  533. typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  534. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
  535. typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
  536. #endif
  537. #ifndef GLX_SGIX_pbuffer
  538. #define GLX_SGIX_pbuffer 1
  539. #ifdef GLX_GLXEXT_PROTOTYPES
  540. extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
  541. extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
  542. extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
  543. extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
  544. extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
  545. #endif /* GLX_GLXEXT_PROTOTYPES */
  546. typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  547. typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
  548. typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  549. typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
  550. typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  551. #endif
  552. #ifndef GLX_SGI_cushion
  553. #define GLX_SGI_cushion 1
  554. #ifdef GLX_GLXEXT_PROTOTYPES
  555. extern void glXCushionSGI (Display *, Window, float);
  556. #endif /* GLX_GLXEXT_PROTOTYPES */
  557. typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
  558. #endif
  559. #ifndef GLX_SGIX_video_resize
  560. #define GLX_SGIX_video_resize 1
  561. #ifdef GLX_GLXEXT_PROTOTYPES
  562. extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
  563. extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
  564. extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
  565. extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
  566. extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
  567. #endif /* GLX_GLXEXT_PROTOTYPES */
  568. typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
  569. typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
  570. typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  571. typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  572. typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
  573. #endif
  574. #ifndef GLX_SGIX_dmbuffer
  575. #define GLX_SGIX_dmbuffer 1
  576. #ifdef _DM_BUFFER_H_
  577. #ifdef GLX_GLXEXT_PROTOTYPES
  578. extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
  579. #endif /* GLX_GLXEXT_PROTOTYPES */
  580. typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  581. #endif /* _DM_BUFFER_H_ */
  582. #endif
  583. #ifndef GLX_SGIX_swap_group
  584. #define GLX_SGIX_swap_group 1
  585. #ifdef GLX_GLXEXT_PROTOTYPES
  586. extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
  587. #endif /* GLX_GLXEXT_PROTOTYPES */
  588. typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  589. #endif
  590. #ifndef GLX_SGIX_swap_barrier
  591. #define GLX_SGIX_swap_barrier 1
  592. #ifdef GLX_GLXEXT_PROTOTYPES
  593. extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
  594. extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
  595. #endif /* GLX_GLXEXT_PROTOTYPES */
  596. typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  597. typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  598. #endif
  599. #ifndef GLX_SUN_get_transparent_index
  600. #define GLX_SUN_get_transparent_index 1
  601. #ifdef GLX_GLXEXT_PROTOTYPES
  602. extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
  603. #endif /* GLX_GLXEXT_PROTOTYPES */
  604. typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
  605. #endif
  606. #ifndef GLX_MESA_copy_sub_buffer
  607. #define GLX_MESA_copy_sub_buffer 1
  608. #ifdef GLX_GLXEXT_PROTOTYPES
  609. extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
  610. #endif /* GLX_GLXEXT_PROTOTYPES */
  611. typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  612. #endif
  613. #ifndef GLX_MESA_pixmap_colormap
  614. #define GLX_MESA_pixmap_colormap 1
  615. #ifdef GLX_GLXEXT_PROTOTYPES
  616. extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
  617. #endif /* GLX_GLXEXT_PROTOTYPES */
  618. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  619. #endif
  620. #ifndef GLX_MESA_release_buffers
  621. #define GLX_MESA_release_buffers 1
  622. #ifdef GLX_GLXEXT_PROTOTYPES
  623. extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
  624. #endif /* GLX_GLXEXT_PROTOTYPES */
  625. typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
  626. #endif
  627. #ifndef GLX_MESA_set_3dfx_mode
  628. #define GLX_MESA_set_3dfx_mode 1
  629. #ifdef GLX_GLXEXT_PROTOTYPES
  630. extern Bool glXSet3DfxModeMESA (int);
  631. #endif /* GLX_GLXEXT_PROTOTYPES */
  632. typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
  633. #endif
  634. #ifndef GLX_SGIX_visual_select_group
  635. #define GLX_SGIX_visual_select_group 1
  636. #endif
  637. #ifndef GLX_OML_swap_method
  638. #define GLX_OML_swap_method 1
  639. #endif
  640. #ifndef GLX_OML_sync_control
  641. #define GLX_OML_sync_control 1
  642. #ifdef GLX_GLXEXT_PROTOTYPES
  643. extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
  644. extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
  645. extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
  646. extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
  647. extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
  648. #endif /* GLX_GLXEXT_PROTOTYPES */
  649. typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
  650. typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
  651. typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  652. 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);
  653. typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
  654. #endif
  655. #ifndef GLX_NV_float_buffer
  656. #define GLX_NV_float_buffer 1
  657. #endif
  658. #ifndef GLX_SGIX_hyperpipe
  659. #define GLX_SGIX_hyperpipe 1
  660. typedef struct {
  661. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  662. int networkId;
  663. } GLXHyperpipeNetworkSGIX;
  664. typedef struct {
  665. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  666. int channel;
  667. unsigned int
  668. participationType;
  669. int timeSlice;
  670. } GLXHyperpipeConfigSGIX;
  671. typedef struct {
  672. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  673. int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
  674. int destXOrigin, destYOrigin, destWidth, destHeight;
  675. } GLXPipeRect;
  676. typedef struct {
  677. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  678. int XOrigin, YOrigin, maxHeight, maxWidth;
  679. } GLXPipeRectLimits;
  680. #ifdef GLX_GLXEXT_PROTOTYPES
  681. extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
  682. extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
  683. extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
  684. extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
  685. extern int glXBindHyperpipeSGIX (Display *, int);
  686. extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
  687. extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
  688. extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
  689. #endif /* GLX_GLXEXT_PROTOTYPES */
  690. typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
  691. typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
  692. typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
  693. typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
  694. typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
  695. typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
  696. typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
  697. typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
  698. #endif
  699. #ifndef GLX_MESA_agp_offset
  700. #define GLX_MESA_agp_offset 1
  701. #ifdef GLX_GLXEXT_PROTOTYPES
  702. extern unsigned int glXGetAGPOffsetMESA (const void *);
  703. #endif /* GLX_GLXEXT_PROTOTYPES */
  704. typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
  705. #endif
  706. #ifndef GLX_EXT_fbconfig_packed_float
  707. #define GLX_EXT_fbconfig_packed_float 1
  708. #endif
  709. #ifndef GLX_EXT_framebuffer_sRGB
  710. #define GLX_EXT_framebuffer_sRGB 1
  711. #endif
  712. #ifndef GLX_EXT_texture_from_pixmap
  713. #define GLX_EXT_texture_from_pixmap 1
  714. #ifdef GLX_GLXEXT_PROTOTYPES
  715. extern void glXBindTexImageEXT (Display *, GLXDrawable, int, const int *);
  716. extern void glXReleaseTexImageEXT (Display *, GLXDrawable, int);
  717. #endif /* GLX_GLXEXT_PROTOTYPES */
  718. typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
  719. typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
  720. #endif
  721. #ifndef GLX_NV_present_video
  722. #define GLX_NV_present_video 1
  723. #endif
  724. #ifndef GLX_NV_video_out
  725. #define GLX_NV_video_out 1
  726. #endif
  727. #ifndef GLX_NV_swap_group
  728. #define GLX_NV_swap_group 1
  729. #endif
  730. #ifdef __cplusplus
  731. }
  732. #endif
  733. #endif