Clone of mesa.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

glxext.h 39KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. #ifndef __glxext_h_
  2. #define __glxext_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** Copyright (c) 2007-2009 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. /* Function declaration macros - to move into glplatform.h */
  29. #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
  30. #define WIN32_LEAN_AND_MEAN 1
  31. #include <windows.h>
  32. #endif
  33. #ifndef APIENTRY
  34. #define APIENTRY
  35. #endif
  36. #ifndef APIENTRYP
  37. #define APIENTRYP APIENTRY *
  38. #endif
  39. #ifndef GLAPI
  40. #define GLAPI extern
  41. #endif
  42. /*************************************************************/
  43. /* Header file version number, required by OpenGL ABI for Linux */
  44. /* glxext.h last updated 2009/10/08 */
  45. /* Current version at http://www.opengl.org/registry/ */
  46. #define GLX_GLXEXT_VERSION 25
  47. #ifndef GLX_VERSION_1_3
  48. #define GLX_WINDOW_BIT 0x00000001
  49. #define GLX_PIXMAP_BIT 0x00000002
  50. #define GLX_PBUFFER_BIT 0x00000004
  51. #define GLX_RGBA_BIT 0x00000001
  52. #define GLX_COLOR_INDEX_BIT 0x00000002
  53. #define GLX_PBUFFER_CLOBBER_MASK 0x08000000
  54. #define GLX_FRONT_LEFT_BUFFER_BIT 0x00000001
  55. #define GLX_FRONT_RIGHT_BUFFER_BIT 0x00000002
  56. #define GLX_BACK_LEFT_BUFFER_BIT 0x00000004
  57. #define GLX_BACK_RIGHT_BUFFER_BIT 0x00000008
  58. #define GLX_AUX_BUFFERS_BIT 0x00000010
  59. #define GLX_DEPTH_BUFFER_BIT 0x00000020
  60. #define GLX_STENCIL_BUFFER_BIT 0x00000040
  61. #define GLX_ACCUM_BUFFER_BIT 0x00000080
  62. #define GLX_CONFIG_CAVEAT 0x20
  63. #define GLX_X_VISUAL_TYPE 0x22
  64. #define GLX_TRANSPARENT_TYPE 0x23
  65. #define GLX_TRANSPARENT_INDEX_VALUE 0x24
  66. #define GLX_TRANSPARENT_RED_VALUE 0x25
  67. #define GLX_TRANSPARENT_GREEN_VALUE 0x26
  68. #define GLX_TRANSPARENT_BLUE_VALUE 0x27
  69. #define GLX_TRANSPARENT_ALPHA_VALUE 0x28
  70. #define GLX_DONT_CARE 0xFFFFFFFF
  71. #define GLX_NONE 0x8000
  72. #define GLX_SLOW_CONFIG 0x8001
  73. #define GLX_TRUE_COLOR 0x8002
  74. #define GLX_DIRECT_COLOR 0x8003
  75. #define GLX_PSEUDO_COLOR 0x8004
  76. #define GLX_STATIC_COLOR 0x8005
  77. #define GLX_GRAY_SCALE 0x8006
  78. #define GLX_STATIC_GRAY 0x8007
  79. #define GLX_TRANSPARENT_RGB 0x8008
  80. #define GLX_TRANSPARENT_INDEX 0x8009
  81. #define GLX_VISUAL_ID 0x800B
  82. #define GLX_SCREEN 0x800C
  83. #define GLX_NON_CONFORMANT_CONFIG 0x800D
  84. #define GLX_DRAWABLE_TYPE 0x8010
  85. #define GLX_RENDER_TYPE 0x8011
  86. #define GLX_X_RENDERABLE 0x8012
  87. #define GLX_FBCONFIG_ID 0x8013
  88. #define GLX_RGBA_TYPE 0x8014
  89. #define GLX_COLOR_INDEX_TYPE 0x8015
  90. #define GLX_MAX_PBUFFER_WIDTH 0x8016
  91. #define GLX_MAX_PBUFFER_HEIGHT 0x8017
  92. #define GLX_MAX_PBUFFER_PIXELS 0x8018
  93. #define GLX_PRESERVED_CONTENTS 0x801B
  94. #define GLX_LARGEST_PBUFFER 0x801C
  95. #define GLX_WIDTH 0x801D
  96. #define GLX_HEIGHT 0x801E
  97. #define GLX_EVENT_MASK 0x801F
  98. #define GLX_DAMAGED 0x8020
  99. #define GLX_SAVED 0x8021
  100. #define GLX_WINDOW 0x8022
  101. #define GLX_PBUFFER 0x8023
  102. #define GLX_PBUFFER_HEIGHT 0x8040
  103. #define GLX_PBUFFER_WIDTH 0x8041
  104. #endif
  105. #ifndef GLX_VERSION_1_4
  106. #define GLX_SAMPLE_BUFFERS 100000
  107. #define GLX_SAMPLES 100001
  108. #endif
  109. #ifndef GLX_ARB_get_proc_address
  110. #endif
  111. #ifndef GLX_ARB_multisample
  112. #define GLX_SAMPLE_BUFFERS_ARB 100000
  113. #define GLX_SAMPLES_ARB 100001
  114. #endif
  115. #ifndef GLX_ARB_fbconfig_float
  116. #define GLX_RGBA_FLOAT_TYPE_ARB 0x20B9
  117. #define GLX_RGBA_FLOAT_BIT_ARB 0x00000004
  118. #endif
  119. #ifndef GLX_ARB_create_context
  120. #define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001
  121. #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
  122. #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
  123. #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
  124. #define GLX_CONTEXT_FLAGS_ARB 0x2094
  125. #endif
  126. #ifndef GLX_ARB_create_context_profile
  127. #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
  128. #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
  129. #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
  130. #endif
  131. #ifndef GLX_SGIS_multisample
  132. #define GLX_SAMPLE_BUFFERS_SGIS 100000
  133. #define GLX_SAMPLES_SGIS 100001
  134. #endif
  135. #ifndef GLX_EXT_visual_info
  136. #define GLX_X_VISUAL_TYPE_EXT 0x22
  137. #define GLX_TRANSPARENT_TYPE_EXT 0x23
  138. #define GLX_TRANSPARENT_INDEX_VALUE_EXT 0x24
  139. #define GLX_TRANSPARENT_RED_VALUE_EXT 0x25
  140. #define GLX_TRANSPARENT_GREEN_VALUE_EXT 0x26
  141. #define GLX_TRANSPARENT_BLUE_VALUE_EXT 0x27
  142. #define GLX_TRANSPARENT_ALPHA_VALUE_EXT 0x28
  143. #define GLX_NONE_EXT 0x8000
  144. #define GLX_TRUE_COLOR_EXT 0x8002
  145. #define GLX_DIRECT_COLOR_EXT 0x8003
  146. #define GLX_PSEUDO_COLOR_EXT 0x8004
  147. #define GLX_STATIC_COLOR_EXT 0x8005
  148. #define GLX_GRAY_SCALE_EXT 0x8006
  149. #define GLX_STATIC_GRAY_EXT 0x8007
  150. #define GLX_TRANSPARENT_RGB_EXT 0x8008
  151. #define GLX_TRANSPARENT_INDEX_EXT 0x8009
  152. #endif
  153. #ifndef GLX_SGI_swap_control
  154. #endif
  155. #ifndef GLX_SGI_video_sync
  156. #endif
  157. #ifndef GLX_SGI_make_current_read
  158. #endif
  159. #ifndef GLX_SGIX_video_source
  160. #endif
  161. #ifndef GLX_EXT_visual_rating
  162. #define GLX_VISUAL_CAVEAT_EXT 0x20
  163. #define GLX_SLOW_VISUAL_EXT 0x8001
  164. #define GLX_NON_CONFORMANT_VISUAL_EXT 0x800D
  165. /* reuse GLX_NONE_EXT */
  166. #endif
  167. #ifndef GLX_EXT_import_context
  168. #define GLX_SHARE_CONTEXT_EXT 0x800A
  169. #define GLX_VISUAL_ID_EXT 0x800B
  170. #define GLX_SCREEN_EXT 0x800C
  171. #endif
  172. #ifndef GLX_SGIX_fbconfig
  173. #define GLX_WINDOW_BIT_SGIX 0x00000001
  174. #define GLX_PIXMAP_BIT_SGIX 0x00000002
  175. #define GLX_RGBA_BIT_SGIX 0x00000001
  176. #define GLX_COLOR_INDEX_BIT_SGIX 0x00000002
  177. #define GLX_DRAWABLE_TYPE_SGIX 0x8010
  178. #define GLX_RENDER_TYPE_SGIX 0x8011
  179. #define GLX_X_RENDERABLE_SGIX 0x8012
  180. #define GLX_FBCONFIG_ID_SGIX 0x8013
  181. #define GLX_RGBA_TYPE_SGIX 0x8014
  182. #define GLX_COLOR_INDEX_TYPE_SGIX 0x8015
  183. /* reuse GLX_SCREEN_EXT */
  184. #endif
  185. #ifndef GLX_SGIX_pbuffer
  186. #define GLX_PBUFFER_BIT_SGIX 0x00000004
  187. #define GLX_BUFFER_CLOBBER_MASK_SGIX 0x08000000
  188. #define GLX_FRONT_LEFT_BUFFER_BIT_SGIX 0x00000001
  189. #define GLX_FRONT_RIGHT_BUFFER_BIT_SGIX 0x00000002
  190. #define GLX_BACK_LEFT_BUFFER_BIT_SGIX 0x00000004
  191. #define GLX_BACK_RIGHT_BUFFER_BIT_SGIX 0x00000008
  192. #define GLX_AUX_BUFFERS_BIT_SGIX 0x00000010
  193. #define GLX_DEPTH_BUFFER_BIT_SGIX 0x00000020
  194. #define GLX_STENCIL_BUFFER_BIT_SGIX 0x00000040
  195. #define GLX_ACCUM_BUFFER_BIT_SGIX 0x00000080
  196. #define GLX_SAMPLE_BUFFERS_BIT_SGIX 0x00000100
  197. #define GLX_MAX_PBUFFER_WIDTH_SGIX 0x8016
  198. #define GLX_MAX_PBUFFER_HEIGHT_SGIX 0x8017
  199. #define GLX_MAX_PBUFFER_PIXELS_SGIX 0x8018
  200. #define GLX_OPTIMAL_PBUFFER_WIDTH_SGIX 0x8019
  201. #define GLX_OPTIMAL_PBUFFER_HEIGHT_SGIX 0x801A
  202. #define GLX_PRESERVED_CONTENTS_SGIX 0x801B
  203. #define GLX_LARGEST_PBUFFER_SGIX 0x801C
  204. #define GLX_WIDTH_SGIX 0x801D
  205. #define GLX_HEIGHT_SGIX 0x801E
  206. #define GLX_EVENT_MASK_SGIX 0x801F
  207. #define GLX_DAMAGED_SGIX 0x8020
  208. #define GLX_SAVED_SGIX 0x8021
  209. #define GLX_WINDOW_SGIX 0x8022
  210. #define GLX_PBUFFER_SGIX 0x8023
  211. #endif
  212. #ifndef GLX_SGI_cushion
  213. #endif
  214. #ifndef GLX_SGIX_video_resize
  215. #define GLX_SYNC_FRAME_SGIX 0x00000000
  216. #define GLX_SYNC_SWAP_SGIX 0x00000001
  217. #endif
  218. #ifndef GLX_SGIX_dmbuffer
  219. #define GLX_DIGITAL_MEDIA_PBUFFER_SGIX 0x8024
  220. #endif
  221. #ifndef GLX_SGIX_swap_group
  222. #endif
  223. #ifndef GLX_SGIX_swap_barrier
  224. #endif
  225. #ifndef GLX_SGIS_blended_overlay
  226. #define GLX_BLENDED_RGBA_SGIS 0x8025
  227. #endif
  228. #ifndef GLX_SGIS_shared_multisample
  229. #define GLX_MULTISAMPLE_SUB_RECT_WIDTH_SGIS 0x8026
  230. #define GLX_MULTISAMPLE_SUB_RECT_HEIGHT_SGIS 0x8027
  231. #endif
  232. #ifndef GLX_SUN_get_transparent_index
  233. #endif
  234. #ifndef GLX_3DFX_multisample
  235. #define GLX_SAMPLE_BUFFERS_3DFX 0x8050
  236. #define GLX_SAMPLES_3DFX 0x8051
  237. #endif
  238. #ifndef GLX_MESA_copy_sub_buffer
  239. #endif
  240. #ifndef GLX_MESA_pixmap_colormap
  241. #endif
  242. #ifndef GLX_MESA_release_buffers
  243. #endif
  244. #ifndef GLX_MESA_set_3dfx_mode
  245. #define GLX_3DFX_WINDOW_MODE_MESA 0x1
  246. #define GLX_3DFX_FULLSCREEN_MODE_MESA 0x2
  247. #endif
  248. #ifndef GLX_SGIX_visual_select_group
  249. #define GLX_VISUAL_SELECT_GROUP_SGIX 0x8028
  250. #endif
  251. #ifndef GLX_OML_swap_method
  252. #define GLX_SWAP_METHOD_OML 0x8060
  253. #define GLX_SWAP_EXCHANGE_OML 0x8061
  254. #define GLX_SWAP_COPY_OML 0x8062
  255. #define GLX_SWAP_UNDEFINED_OML 0x8063
  256. #endif
  257. #ifndef GLX_OML_sync_control
  258. #endif
  259. #ifndef GLX_NV_float_buffer
  260. #define GLX_FLOAT_COMPONENTS_NV 0x20B0
  261. #endif
  262. #ifndef GLX_SGIX_hyperpipe
  263. #define GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX 80
  264. #define GLX_BAD_HYPERPIPE_CONFIG_SGIX 91
  265. #define GLX_BAD_HYPERPIPE_SGIX 92
  266. #define GLX_HYPERPIPE_DISPLAY_PIPE_SGIX 0x00000001
  267. #define GLX_HYPERPIPE_RENDER_PIPE_SGIX 0x00000002
  268. #define GLX_PIPE_RECT_SGIX 0x00000001
  269. #define GLX_PIPE_RECT_LIMITS_SGIX 0x00000002
  270. #define GLX_HYPERPIPE_STEREO_SGIX 0x00000003
  271. #define GLX_HYPERPIPE_PIXEL_AVERAGE_SGIX 0x00000004
  272. #define GLX_HYPERPIPE_ID_SGIX 0x8030
  273. #endif
  274. #ifndef GLX_MESA_agp_offset
  275. #endif
  276. #ifndef GLX_EXT_fbconfig_packed_float
  277. #define GLX_RGBA_UNSIGNED_FLOAT_TYPE_EXT 0x20B1
  278. #define GLX_RGBA_UNSIGNED_FLOAT_BIT_EXT 0x00000008
  279. #endif
  280. #ifndef GLX_EXT_framebuffer_sRGB
  281. #define GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20B2
  282. #endif
  283. #ifndef GLX_EXT_texture_from_pixmap
  284. #define GLX_TEXTURE_1D_BIT_EXT 0x00000001
  285. #define GLX_TEXTURE_2D_BIT_EXT 0x00000002
  286. #define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004
  287. #define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0
  288. #define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1
  289. #define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2
  290. #define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3
  291. #define GLX_Y_INVERTED_EXT 0x20D4
  292. #define GLX_TEXTURE_FORMAT_EXT 0x20D5
  293. #define GLX_TEXTURE_TARGET_EXT 0x20D6
  294. #define GLX_MIPMAP_TEXTURE_EXT 0x20D7
  295. #define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8
  296. #define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9
  297. #define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA
  298. #define GLX_TEXTURE_1D_EXT 0x20DB
  299. #define GLX_TEXTURE_2D_EXT 0x20DC
  300. #define GLX_TEXTURE_RECTANGLE_EXT 0x20DD
  301. #define GLX_FRONT_LEFT_EXT 0x20DE
  302. #define GLX_FRONT_RIGHT_EXT 0x20DF
  303. #define GLX_BACK_LEFT_EXT 0x20E0
  304. #define GLX_BACK_RIGHT_EXT 0x20E1
  305. #define GLX_FRONT_EXT GLX_FRONT_LEFT_EXT
  306. #define GLX_BACK_EXT GLX_BACK_LEFT_EXT
  307. #define GLX_AUX0_EXT 0x20E2
  308. #define GLX_AUX1_EXT 0x20E3
  309. #define GLX_AUX2_EXT 0x20E4
  310. #define GLX_AUX3_EXT 0x20E5
  311. #define GLX_AUX4_EXT 0x20E6
  312. #define GLX_AUX5_EXT 0x20E7
  313. #define GLX_AUX6_EXT 0x20E8
  314. #define GLX_AUX7_EXT 0x20E9
  315. #define GLX_AUX8_EXT 0x20EA
  316. #define GLX_AUX9_EXT 0x20EB
  317. #endif
  318. #ifndef GLX_NV_present_video
  319. #define GLX_NUM_VIDEO_SLOTS_NV 0x20F0
  320. #endif
  321. #ifndef GLX_NV_video_out
  322. #define GLX_VIDEO_OUT_COLOR_NV 0x20C3
  323. #define GLX_VIDEO_OUT_ALPHA_NV 0x20C4
  324. #define GLX_VIDEO_OUT_DEPTH_NV 0x20C5
  325. #define GLX_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  326. #define GLX_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  327. #define GLX_VIDEO_OUT_FRAME_NV 0x20C8
  328. #define GLX_VIDEO_OUT_FIELD_1_NV 0x20C9
  329. #define GLX_VIDEO_OUT_FIELD_2_NV 0x20CA
  330. #define GLX_VIDEO_OUT_STACKED_FIELDS_1_2_NV 0x20CB
  331. #define GLX_VIDEO_OUT_STACKED_FIELDS_2_1_NV 0x20CC
  332. #endif
  333. #ifndef GLX_NV_swap_group
  334. #endif
  335. #ifndef GLX_NV_video_capture
  336. #define GLX_DEVICE_ID_NV 0x20CD
  337. #define GLX_UNIQUE_ID_NV 0x20CE
  338. #define GLX_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
  339. #endif
  340. #ifndef GLX_EXT_swap_control
  341. #define GLX_SWAP_INTERVAL_EXT 0x20F1
  342. #define GLX_MAX_SWAP_INTERVAL_EXT 0x20F2
  343. #endif
  344. #ifndef GLX_NV_copy_image
  345. #endif
  346. /*************************************************************/
  347. #ifndef GLX_ARB_get_proc_address
  348. typedef void (*__GLXextFuncPtr)(void);
  349. #endif
  350. #ifndef GLX_SGIX_video_source
  351. typedef XID GLXVideoSourceSGIX;
  352. #endif
  353. #ifndef GLX_SGIX_fbconfig
  354. typedef XID GLXFBConfigIDSGIX;
  355. typedef struct __GLXFBConfigRec *GLXFBConfigSGIX;
  356. #endif
  357. #ifndef GLX_SGIX_pbuffer
  358. typedef XID GLXPbufferSGIX;
  359. typedef struct {
  360. int type;
  361. unsigned long serial; /* # of last request processed by server */
  362. Bool send_event; /* true if this came for SendEvent request */
  363. Display *display; /* display the event was read from */
  364. GLXDrawable drawable; /* i.d. of Drawable */
  365. int event_type; /* GLX_DAMAGED_SGIX or GLX_SAVED_SGIX */
  366. int draw_type; /* GLX_WINDOW_SGIX or GLX_PBUFFER_SGIX */
  367. unsigned int mask; /* mask indicating which buffers are affected*/
  368. int x, y;
  369. int width, height;
  370. int count; /* if nonzero, at least this many more */
  371. } GLXBufferClobberEventSGIX;
  372. #endif
  373. #ifndef GLX_NV_video_output
  374. typedef unsigned int GLXVideoDeviceNV;
  375. #endif
  376. #ifndef GLX_NV_video_capture
  377. typedef XID GLXVideoCaptureDeviceNV;
  378. #endif
  379. #ifndef GLEXT_64_TYPES_DEFINED
  380. /* This code block is duplicated in glext.h, so must be protected */
  381. #define GLEXT_64_TYPES_DEFINED
  382. /* Define int32_t, int64_t, and uint64_t types for UST/MSC */
  383. /* (as used in the GLX_OML_sync_control extension). */
  384. #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
  385. #include <inttypes.h>
  386. #elif defined(__sun__) || defined(__digital__)
  387. #include <inttypes.h>
  388. #if defined(__STDC__)
  389. #if defined(__arch64__) || defined(_LP64)
  390. typedef long int int64_t;
  391. typedef unsigned long int uint64_t;
  392. #else
  393. typedef long long int int64_t;
  394. typedef unsigned long long int uint64_t;
  395. #endif /* __arch64__ */
  396. #endif /* __STDC__ */
  397. #elif defined( __VMS ) || defined(__sgi)
  398. #include <inttypes.h>
  399. #elif defined(__SCO__) || defined(__USLC__)
  400. #include <stdint.h>
  401. #elif defined(__UNIXOS2__) || defined(__SOL64__)
  402. typedef long int int32_t;
  403. typedef long long int int64_t;
  404. typedef unsigned long long int uint64_t;
  405. #elif defined(_WIN32) && defined(__GNUC__)
  406. #include <stdint.h>
  407. #elif defined(_WIN32)
  408. typedef __int32 int32_t;
  409. typedef __int64 int64_t;
  410. typedef unsigned __int64 uint64_t;
  411. #else
  412. #include <inttypes.h> /* Fallback option */
  413. #endif
  414. #endif
  415. #ifndef GLX_VERSION_1_3
  416. #define GLX_VERSION_1_3 1
  417. #ifdef GLX_GLXEXT_PROTOTYPES
  418. extern GLXFBConfig * glXGetFBConfigs (Display *, int, int *);
  419. extern GLXFBConfig * glXChooseFBConfig (Display *, int, const int *, int *);
  420. extern int glXGetFBConfigAttrib (Display *, GLXFBConfig, int, int *);
  421. extern XVisualInfo * glXGetVisualFromFBConfig (Display *, GLXFBConfig);
  422. extern GLXWindow glXCreateWindow (Display *, GLXFBConfig, Window, const int *);
  423. extern void glXDestroyWindow (Display *, GLXWindow);
  424. extern GLXPixmap glXCreatePixmap (Display *, GLXFBConfig, Pixmap, const int *);
  425. extern void glXDestroyPixmap (Display *, GLXPixmap);
  426. extern GLXPbuffer glXCreatePbuffer (Display *, GLXFBConfig, const int *);
  427. extern void glXDestroyPbuffer (Display *, GLXPbuffer);
  428. extern void glXQueryDrawable (Display *, GLXDrawable, int, unsigned int *);
  429. extern GLXContext glXCreateNewContext (Display *, GLXFBConfig, int, GLXContext, Bool);
  430. extern Bool glXMakeContextCurrent (Display *, GLXDrawable, GLXDrawable, GLXContext);
  431. extern GLXDrawable glXGetCurrentReadDrawable (void);
  432. extern Display * glXGetCurrentDisplay (void);
  433. extern int glXQueryContext (Display *, GLXContext, int, int *);
  434. extern void glXSelectEvent (Display *, GLXDrawable, unsigned long);
  435. extern void glXGetSelectedEvent (Display *, GLXDrawable, unsigned long *);
  436. #endif /* GLX_GLXEXT_PROTOTYPES */
  437. typedef GLXFBConfig * ( * PFNGLXGETFBCONFIGSPROC) (Display *dpy, int screen, int *nelements);
  438. typedef GLXFBConfig * ( * PFNGLXCHOOSEFBCONFIGPROC) (Display *dpy, int screen, const int *attrib_list, int *nelements);
  439. typedef int ( * PFNGLXGETFBCONFIGATTRIBPROC) (Display *dpy, GLXFBConfig config, int attribute, int *value);
  440. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGPROC) (Display *dpy, GLXFBConfig config);
  441. typedef GLXWindow ( * PFNGLXCREATEWINDOWPROC) (Display *dpy, GLXFBConfig config, Window win, const int *attrib_list);
  442. typedef void ( * PFNGLXDESTROYWINDOWPROC) (Display *dpy, GLXWindow win);
  443. typedef GLXPixmap ( * PFNGLXCREATEPIXMAPPROC) (Display *dpy, GLXFBConfig config, Pixmap pixmap, const int *attrib_list);
  444. typedef void ( * PFNGLXDESTROYPIXMAPPROC) (Display *dpy, GLXPixmap pixmap);
  445. typedef GLXPbuffer ( * PFNGLXCREATEPBUFFERPROC) (Display *dpy, GLXFBConfig config, const int *attrib_list);
  446. typedef void ( * PFNGLXDESTROYPBUFFERPROC) (Display *dpy, GLXPbuffer pbuf);
  447. typedef void ( * PFNGLXQUERYDRAWABLEPROC) (Display *dpy, GLXDrawable draw, int attribute, unsigned int *value);
  448. typedef GLXContext ( * PFNGLXCREATENEWCONTEXTPROC) (Display *dpy, GLXFBConfig config, int render_type, GLXContext share_list, Bool direct);
  449. typedef Bool ( * PFNGLXMAKECONTEXTCURRENTPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  450. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLEPROC) (void);
  451. typedef Display * ( * PFNGLXGETCURRENTDISPLAYPROC) (void);
  452. typedef int ( * PFNGLXQUERYCONTEXTPROC) (Display *dpy, GLXContext ctx, int attribute, int *value);
  453. typedef void ( * PFNGLXSELECTEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long event_mask);
  454. typedef void ( * PFNGLXGETSELECTEDEVENTPROC) (Display *dpy, GLXDrawable draw, unsigned long *event_mask);
  455. #endif
  456. #ifndef GLX_VERSION_1_4
  457. #define GLX_VERSION_1_4 1
  458. #ifdef GLX_GLXEXT_PROTOTYPES
  459. extern __GLXextFuncPtr glXGetProcAddress (const GLubyte *);
  460. #endif /* GLX_GLXEXT_PROTOTYPES */
  461. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSPROC) (const GLubyte *procName);
  462. #endif
  463. #ifndef GLX_ARB_get_proc_address
  464. #define GLX_ARB_get_proc_address 1
  465. #ifdef GLX_GLXEXT_PROTOTYPES
  466. extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);
  467. #endif /* GLX_GLXEXT_PROTOTYPES */
  468. typedef __GLXextFuncPtr ( * PFNGLXGETPROCADDRESSARBPROC) (const GLubyte *procName);
  469. #endif
  470. #ifndef GLX_ARB_multisample
  471. #define GLX_ARB_multisample 1
  472. #endif
  473. #ifndef GLX_ARB_fbconfig_float
  474. #define GLX_ARB_fbconfig_float 1
  475. #endif
  476. #ifndef GLX_ARB_create_context
  477. #define GLX_ARB_create_context 1
  478. #ifdef GLX_GLXEXT_PROTOTYPES
  479. extern GLXContext glXCreateContextAttribsARB (Display *, GLXFBConfig, GLXContext, Bool, const int *);
  480. #endif /* GLX_GLXEXT_PROTOTYPES */
  481. typedef GLXContext ( * PFNGLXCREATECONTEXTATTRIBSARBPROC) (Display *dpy, GLXFBConfig config, GLXContext share_context, Bool direct, const int *attrib_list);
  482. #endif
  483. #ifndef GLX_ARB_create_context_profile
  484. #define GLX_ARB_create_context_profile 1
  485. #endif
  486. #ifndef GLX_SGIS_multisample
  487. #define GLX_SGIS_multisample 1
  488. #endif
  489. #ifndef GLX_EXT_visual_info
  490. #define GLX_EXT_visual_info 1
  491. #endif
  492. #ifndef GLX_SGI_swap_control
  493. #define GLX_SGI_swap_control 1
  494. #ifdef GLX_GLXEXT_PROTOTYPES
  495. extern int glXSwapIntervalSGI (int);
  496. #endif /* GLX_GLXEXT_PROTOTYPES */
  497. typedef int ( * PFNGLXSWAPINTERVALSGIPROC) (int interval);
  498. #endif
  499. #ifndef GLX_SGI_video_sync
  500. #define GLX_SGI_video_sync 1
  501. #ifdef GLX_GLXEXT_PROTOTYPES
  502. extern int glXGetVideoSyncSGI (unsigned int *);
  503. extern int glXWaitVideoSyncSGI (int, int, unsigned int *);
  504. #endif /* GLX_GLXEXT_PROTOTYPES */
  505. typedef int ( * PFNGLXGETVIDEOSYNCSGIPROC) (unsigned int *count);
  506. typedef int ( * PFNGLXWAITVIDEOSYNCSGIPROC) (int divisor, int remainder, unsigned int *count);
  507. #endif
  508. #ifndef GLX_SGI_make_current_read
  509. #define GLX_SGI_make_current_read 1
  510. #ifdef GLX_GLXEXT_PROTOTYPES
  511. extern Bool glXMakeCurrentReadSGI (Display *, GLXDrawable, GLXDrawable, GLXContext);
  512. extern GLXDrawable glXGetCurrentReadDrawableSGI (void);
  513. #endif /* GLX_GLXEXT_PROTOTYPES */
  514. typedef Bool ( * PFNGLXMAKECURRENTREADSGIPROC) (Display *dpy, GLXDrawable draw, GLXDrawable read, GLXContext ctx);
  515. typedef GLXDrawable ( * PFNGLXGETCURRENTREADDRAWABLESGIPROC) (void);
  516. #endif
  517. #ifndef GLX_SGIX_video_source
  518. #define GLX_SGIX_video_source 1
  519. #ifdef _VL_H
  520. #ifdef GLX_GLXEXT_PROTOTYPES
  521. extern GLXVideoSourceSGIX glXCreateGLXVideoSourceSGIX (Display *, int, VLServer, VLPath, int, VLNode);
  522. extern void glXDestroyGLXVideoSourceSGIX (Display *, GLXVideoSourceSGIX);
  523. #endif /* GLX_GLXEXT_PROTOTYPES */
  524. typedef GLXVideoSourceSGIX ( * PFNGLXCREATEGLXVIDEOSOURCESGIXPROC) (Display *display, int screen, VLServer server, VLPath path, int nodeClass, VLNode drainNode);
  525. typedef void ( * PFNGLXDESTROYGLXVIDEOSOURCESGIXPROC) (Display *dpy, GLXVideoSourceSGIX glxvideosource);
  526. #endif /* _VL_H */
  527. #endif
  528. #ifndef GLX_EXT_visual_rating
  529. #define GLX_EXT_visual_rating 1
  530. #endif
  531. #ifndef GLX_EXT_import_context
  532. #define GLX_EXT_import_context 1
  533. #ifdef GLX_GLXEXT_PROTOTYPES
  534. extern Display * glXGetCurrentDisplayEXT (void);
  535. extern int glXQueryContextInfoEXT (Display *, GLXContext, int, int *);
  536. extern GLXContextID glXGetContextIDEXT (const GLXContext);
  537. extern GLXContext glXImportContextEXT (Display *, GLXContextID);
  538. extern void glXFreeContextEXT (Display *, GLXContext);
  539. #endif /* GLX_GLXEXT_PROTOTYPES */
  540. typedef Display * ( * PFNGLXGETCURRENTDISPLAYEXTPROC) (void);
  541. typedef int ( * PFNGLXQUERYCONTEXTINFOEXTPROC) (Display *dpy, GLXContext context, int attribute, int *value);
  542. typedef GLXContextID ( * PFNGLXGETCONTEXTIDEXTPROC) (const GLXContext context);
  543. typedef GLXContext ( * PFNGLXIMPORTCONTEXTEXTPROC) (Display *dpy, GLXContextID contextID);
  544. typedef void ( * PFNGLXFREECONTEXTEXTPROC) (Display *dpy, GLXContext context);
  545. #endif
  546. #ifndef GLX_SGIX_fbconfig
  547. #define GLX_SGIX_fbconfig 1
  548. #ifdef GLX_GLXEXT_PROTOTYPES
  549. extern int glXGetFBConfigAttribSGIX (Display *, GLXFBConfigSGIX, int, int *);
  550. extern GLXFBConfigSGIX * glXChooseFBConfigSGIX (Display *, int, int *, int *);
  551. extern GLXPixmap glXCreateGLXPixmapWithConfigSGIX (Display *, GLXFBConfigSGIX, Pixmap);
  552. extern GLXContext glXCreateContextWithConfigSGIX (Display *, GLXFBConfigSGIX, int, GLXContext, Bool);
  553. extern XVisualInfo * glXGetVisualFromFBConfigSGIX (Display *, GLXFBConfigSGIX);
  554. extern GLXFBConfigSGIX glXGetFBConfigFromVisualSGIX (Display *, XVisualInfo *);
  555. #endif /* GLX_GLXEXT_PROTOTYPES */
  556. typedef int ( * PFNGLXGETFBCONFIGATTRIBSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int attribute, int *value);
  557. typedef GLXFBConfigSGIX * ( * PFNGLXCHOOSEFBCONFIGSGIXPROC) (Display *dpy, int screen, int *attrib_list, int *nelements);
  558. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, Pixmap pixmap);
  559. typedef GLXContext ( * PFNGLXCREATECONTEXTWITHCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, int render_type, GLXContext share_list, Bool direct);
  560. typedef XVisualInfo * ( * PFNGLXGETVISUALFROMFBCONFIGSGIXPROC) (Display *dpy, GLXFBConfigSGIX config);
  561. typedef GLXFBConfigSGIX ( * PFNGLXGETFBCONFIGFROMVISUALSGIXPROC) (Display *dpy, XVisualInfo *vis);
  562. #endif
  563. #ifndef GLX_SGIX_pbuffer
  564. #define GLX_SGIX_pbuffer 1
  565. #ifdef GLX_GLXEXT_PROTOTYPES
  566. extern GLXPbufferSGIX glXCreateGLXPbufferSGIX (Display *, GLXFBConfigSGIX, unsigned int, unsigned int, int *);
  567. extern void glXDestroyGLXPbufferSGIX (Display *, GLXPbufferSGIX);
  568. extern int glXQueryGLXPbufferSGIX (Display *, GLXPbufferSGIX, int, unsigned int *);
  569. extern void glXSelectEventSGIX (Display *, GLXDrawable, unsigned long);
  570. extern void glXGetSelectedEventSGIX (Display *, GLXDrawable, unsigned long *);
  571. #endif /* GLX_GLXEXT_PROTOTYPES */
  572. typedef GLXPbufferSGIX ( * PFNGLXCREATEGLXPBUFFERSGIXPROC) (Display *dpy, GLXFBConfigSGIX config, unsigned int width, unsigned int height, int *attrib_list);
  573. typedef void ( * PFNGLXDESTROYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf);
  574. typedef int ( * PFNGLXQUERYGLXPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuf, int attribute, unsigned int *value);
  575. typedef void ( * PFNGLXSELECTEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long mask);
  576. typedef void ( * PFNGLXGETSELECTEDEVENTSGIXPROC) (Display *dpy, GLXDrawable drawable, unsigned long *mask);
  577. #endif
  578. #ifndef GLX_SGI_cushion
  579. #define GLX_SGI_cushion 1
  580. #ifdef GLX_GLXEXT_PROTOTYPES
  581. extern void glXCushionSGI (Display *, Window, float);
  582. #endif /* GLX_GLXEXT_PROTOTYPES */
  583. typedef void ( * PFNGLXCUSHIONSGIPROC) (Display *dpy, Window window, float cushion);
  584. #endif
  585. #ifndef GLX_SGIX_video_resize
  586. #define GLX_SGIX_video_resize 1
  587. #ifdef GLX_GLXEXT_PROTOTYPES
  588. extern int glXBindChannelToWindowSGIX (Display *, int, int, Window);
  589. extern int glXChannelRectSGIX (Display *, int, int, int, int, int, int);
  590. extern int glXQueryChannelRectSGIX (Display *, int, int, int *, int *, int *, int *);
  591. extern int glXQueryChannelDeltasSGIX (Display *, int, int, int *, int *, int *, int *);
  592. extern int glXChannelRectSyncSGIX (Display *, int, int, GLenum);
  593. #endif /* GLX_GLXEXT_PROTOTYPES */
  594. typedef int ( * PFNGLXBINDCHANNELTOWINDOWSGIXPROC) (Display *display, int screen, int channel, Window window);
  595. typedef int ( * PFNGLXCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int x, int y, int w, int h);
  596. typedef int ( * PFNGLXQUERYCHANNELRECTSGIXPROC) (Display *display, int screen, int channel, int *dx, int *dy, int *dw, int *dh);
  597. typedef int ( * PFNGLXQUERYCHANNELDELTASSGIXPROC) (Display *display, int screen, int channel, int *x, int *y, int *w, int *h);
  598. typedef int ( * PFNGLXCHANNELRECTSYNCSGIXPROC) (Display *display, int screen, int channel, GLenum synctype);
  599. #endif
  600. #ifndef GLX_SGIX_dmbuffer
  601. #define GLX_SGIX_dmbuffer 1
  602. #ifdef _DM_BUFFER_H_
  603. #ifdef GLX_GLXEXT_PROTOTYPES
  604. extern Bool glXAssociateDMPbufferSGIX (Display *, GLXPbufferSGIX, DMparams *, DMbuffer);
  605. #endif /* GLX_GLXEXT_PROTOTYPES */
  606. typedef Bool ( * PFNGLXASSOCIATEDMPBUFFERSGIXPROC) (Display *dpy, GLXPbufferSGIX pbuffer, DMparams *params, DMbuffer dmbuffer);
  607. #endif /* _DM_BUFFER_H_ */
  608. #endif
  609. #ifndef GLX_SGIX_swap_group
  610. #define GLX_SGIX_swap_group 1
  611. #ifdef GLX_GLXEXT_PROTOTYPES
  612. extern void glXJoinSwapGroupSGIX (Display *, GLXDrawable, GLXDrawable);
  613. #endif /* GLX_GLXEXT_PROTOTYPES */
  614. typedef void ( * PFNGLXJOINSWAPGROUPSGIXPROC) (Display *dpy, GLXDrawable drawable, GLXDrawable member);
  615. #endif
  616. #ifndef GLX_INTEL_swap_event
  617. #define GLX_INTEL_swap_event
  618. #define GLX_BUFFER_SWAP_COMPLETE_INTEL_MASK 0x10000000
  619. #define GLX_EXCHANGE_COMPLETE_INTEL 0x8024
  620. #define GLX_BLIT_COMPLETE_INTEL 0x8025
  621. #define GLX_FLIP_COMPLETE_INTEL 0x8026
  622. #endif
  623. #ifndef GLX_SGIX_swap_barrier
  624. #define GLX_SGIX_swap_barrier 1
  625. #ifdef GLX_GLXEXT_PROTOTYPES
  626. extern void glXBindSwapBarrierSGIX (Display *, GLXDrawable, int);
  627. extern Bool glXQueryMaxSwapBarriersSGIX (Display *, int, int *);
  628. #endif /* GLX_GLXEXT_PROTOTYPES */
  629. typedef void ( * PFNGLXBINDSWAPBARRIERSGIXPROC) (Display *dpy, GLXDrawable drawable, int barrier);
  630. typedef Bool ( * PFNGLXQUERYMAXSWAPBARRIERSSGIXPROC) (Display *dpy, int screen, int *max);
  631. #endif
  632. #ifndef GLX_SUN_get_transparent_index
  633. #define GLX_SUN_get_transparent_index 1
  634. #ifdef GLX_GLXEXT_PROTOTYPES
  635. extern Status glXGetTransparentIndexSUN (Display *, Window, Window, long *);
  636. #endif /* GLX_GLXEXT_PROTOTYPES */
  637. typedef Status ( * PFNGLXGETTRANSPARENTINDEXSUNPROC) (Display *dpy, Window overlay, Window underlay, long *pTransparentIndex);
  638. #endif
  639. #ifndef GLX_MESA_copy_sub_buffer
  640. #define GLX_MESA_copy_sub_buffer 1
  641. #ifdef GLX_GLXEXT_PROTOTYPES
  642. extern void glXCopySubBufferMESA (Display *, GLXDrawable, int, int, int, int);
  643. #endif /* GLX_GLXEXT_PROTOTYPES */
  644. typedef void ( * PFNGLXCOPYSUBBUFFERMESAPROC) (Display *dpy, GLXDrawable drawable, int x, int y, int width, int height);
  645. #endif
  646. #ifndef GLX_MESA_pixmap_colormap
  647. #define GLX_MESA_pixmap_colormap 1
  648. #ifdef GLX_GLXEXT_PROTOTYPES
  649. extern GLXPixmap glXCreateGLXPixmapMESA (Display *, XVisualInfo *, Pixmap, Colormap);
  650. #endif /* GLX_GLXEXT_PROTOTYPES */
  651. typedef GLXPixmap ( * PFNGLXCREATEGLXPIXMAPMESAPROC) (Display *dpy, XVisualInfo *visual, Pixmap pixmap, Colormap cmap);
  652. #endif
  653. #ifndef GLX_MESA_release_buffers
  654. #define GLX_MESA_release_buffers 1
  655. #ifdef GLX_GLXEXT_PROTOTYPES
  656. extern Bool glXReleaseBuffersMESA (Display *, GLXDrawable);
  657. #endif /* GLX_GLXEXT_PROTOTYPES */
  658. typedef Bool ( * PFNGLXRELEASEBUFFERSMESAPROC) (Display *dpy, GLXDrawable drawable);
  659. #endif
  660. #ifndef GLX_MESA_set_3dfx_mode
  661. #define GLX_MESA_set_3dfx_mode 1
  662. #ifdef GLX_GLXEXT_PROTOTYPES
  663. extern Bool glXSet3DfxModeMESA (int);
  664. #endif /* GLX_GLXEXT_PROTOTYPES */
  665. typedef Bool ( * PFNGLXSET3DFXMODEMESAPROC) (int mode);
  666. #endif
  667. #ifndef GLX_SGIX_visual_select_group
  668. #define GLX_SGIX_visual_select_group 1
  669. #endif
  670. #ifndef GLX_OML_swap_method
  671. #define GLX_OML_swap_method 1
  672. #endif
  673. #ifndef GLX_OML_sync_control
  674. #define GLX_OML_sync_control 1
  675. #ifdef GLX_GLXEXT_PROTOTYPES
  676. extern Bool glXGetSyncValuesOML (Display *, GLXDrawable, int64_t *, int64_t *, int64_t *);
  677. extern Bool glXGetMscRateOML (Display *, GLXDrawable, int32_t *, int32_t *);
  678. extern int64_t glXSwapBuffersMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t);
  679. extern Bool glXWaitForMscOML (Display *, GLXDrawable, int64_t, int64_t, int64_t, int64_t *, int64_t *, int64_t *);
  680. extern Bool glXWaitForSbcOML (Display *, GLXDrawable, int64_t, int64_t *, int64_t *, int64_t *);
  681. #endif /* GLX_GLXEXT_PROTOTYPES */
  682. typedef Bool ( * PFNGLXGETSYNCVALUESOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t *ust, int64_t *msc, int64_t *sbc);
  683. typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (Display *dpy, GLXDrawable drawable, int32_t *numerator, int32_t *denominator);
  684. typedef int64_t ( * PFNGLXSWAPBUFFERSMSCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_msc, int64_t divisor, int64_t remainder);
  685. 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);
  686. typedef Bool ( * PFNGLXWAITFORSBCOMLPROC) (Display *dpy, GLXDrawable drawable, int64_t target_sbc, int64_t *ust, int64_t *msc, int64_t *sbc);
  687. #endif
  688. #ifndef GLX_NV_float_buffer
  689. #define GLX_NV_float_buffer 1
  690. #endif
  691. #ifndef GLX_SGIX_hyperpipe
  692. #define GLX_SGIX_hyperpipe 1
  693. typedef struct {
  694. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  695. int networkId;
  696. } GLXHyperpipeNetworkSGIX;
  697. typedef struct {
  698. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  699. int channel;
  700. unsigned int
  701. participationType;
  702. int timeSlice;
  703. } GLXHyperpipeConfigSGIX;
  704. typedef struct {
  705. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  706. int srcXOrigin, srcYOrigin, srcWidth, srcHeight;
  707. int destXOrigin, destYOrigin, destWidth, destHeight;
  708. } GLXPipeRect;
  709. typedef struct {
  710. char pipeName[GLX_HYPERPIPE_PIPE_NAME_LENGTH_SGIX];
  711. int XOrigin, YOrigin, maxHeight, maxWidth;
  712. } GLXPipeRectLimits;
  713. #ifdef GLX_GLXEXT_PROTOTYPES
  714. extern GLXHyperpipeNetworkSGIX * glXQueryHyperpipeNetworkSGIX (Display *, int *);
  715. extern int glXHyperpipeConfigSGIX (Display *, int, int, GLXHyperpipeConfigSGIX *, int *);
  716. extern GLXHyperpipeConfigSGIX * glXQueryHyperpipeConfigSGIX (Display *, int, int *);
  717. extern int glXDestroyHyperpipeConfigSGIX (Display *, int);
  718. extern int glXBindHyperpipeSGIX (Display *, int);
  719. extern int glXQueryHyperpipeBestAttribSGIX (Display *, int, int, int, void *, void *);
  720. extern int glXHyperpipeAttribSGIX (Display *, int, int, int, void *);
  721. extern int glXQueryHyperpipeAttribSGIX (Display *, int, int, int, void *);
  722. #endif /* GLX_GLXEXT_PROTOTYPES */
  723. typedef GLXHyperpipeNetworkSGIX * ( * PFNGLXQUERYHYPERPIPENETWORKSGIXPROC) (Display *dpy, int *npipes);
  724. typedef int ( * PFNGLXHYPERPIPECONFIGSGIXPROC) (Display *dpy, int networkId, int npipes, GLXHyperpipeConfigSGIX *cfg, int *hpId);
  725. typedef GLXHyperpipeConfigSGIX * ( * PFNGLXQUERYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId, int *npipes);
  726. typedef int ( * PFNGLXDESTROYHYPERPIPECONFIGSGIXPROC) (Display *dpy, int hpId);
  727. typedef int ( * PFNGLXBINDHYPERPIPESGIXPROC) (Display *dpy, int hpId);
  728. typedef int ( * PFNGLXQUERYHYPERPIPEBESTATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList, void *returnAttribList);
  729. typedef int ( * PFNGLXHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *attribList);
  730. typedef int ( * PFNGLXQUERYHYPERPIPEATTRIBSGIXPROC) (Display *dpy, int timeSlice, int attrib, int size, void *returnAttribList);
  731. #endif
  732. #ifndef GLX_MESA_agp_offset
  733. #define GLX_MESA_agp_offset 1
  734. #ifdef GLX_GLXEXT_PROTOTYPES
  735. extern unsigned int glXGetAGPOffsetMESA (const void *);
  736. #endif /* GLX_GLXEXT_PROTOTYPES */
  737. typedef unsigned int ( * PFNGLXGETAGPOFFSETMESAPROC) (const void *pointer);
  738. #endif
  739. #ifndef GLX_EXT_fbconfig_packed_float
  740. #define GLX_EXT_fbconfig_packed_float 1
  741. #endif
  742. #ifndef GLX_EXT_framebuffer_sRGB
  743. #define GLX_EXT_framebuffer_sRGB 1
  744. #endif
  745. #ifndef GLX_EXT_texture_from_pixmap
  746. #define GLX_EXT_texture_from_pixmap 1
  747. #ifdef GLX_GLXEXT_PROTOTYPES
  748. extern void glXBindTexImageEXT (Display *, GLXDrawable, int, const int *);
  749. extern void glXReleaseTexImageEXT (Display *, GLXDrawable, int);
  750. #endif /* GLX_GLXEXT_PROTOTYPES */
  751. typedef void ( * PFNGLXBINDTEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer, const int *attrib_list);
  752. typedef void ( * PFNGLXRELEASETEXIMAGEEXTPROC) (Display *dpy, GLXDrawable drawable, int buffer);
  753. #endif
  754. #ifndef GLX_NV_present_video
  755. #define GLX_NV_present_video 1
  756. #ifdef GLX_GLXEXT_PROTOTYPES
  757. extern unsigned int * glXEnumerateVideoDevicesNV (Display *, int, int *);
  758. extern int glXBindVideoDeviceNV (Display *, unsigned int, unsigned int, const int *);
  759. #endif /* GLX_GLXEXT_PROTOTYPES */
  760. typedef unsigned int * ( * PFNGLXENUMERATEVIDEODEVICESNVPROC) (Display *dpy, int screen, int *nelements);
  761. typedef int ( * PFNGLXBINDVIDEODEVICENVPROC) (Display *dpy, unsigned int video_slot, unsigned int video_device, const int *attrib_list);
  762. #endif
  763. #ifndef GLX_NV_video_output
  764. #define GLX_NV_video_output 1
  765. #ifdef GLX_GLXEXT_PROTOTYPES
  766. extern int glXGetVideoDeviceNV (Display *, int, int, GLXVideoDeviceNV *);
  767. extern int glXReleaseVideoDeviceNV (Display *, int, GLXVideoDeviceNV);
  768. extern int glXBindVideoImageNV (Display *, GLXVideoDeviceNV, GLXPbuffer, int);
  769. extern int glXReleaseVideoImageNV (Display *, GLXPbuffer);
  770. extern int glXSendPbufferToVideoNV (Display *, GLXPbuffer, int, unsigned long *, GLboolean);
  771. extern int glXGetVideoInfoNV (Display *, int, GLXVideoDeviceNV, unsigned long *, unsigned long *);
  772. #endif /* GLX_GLXEXT_PROTOTYPES */
  773. typedef int ( * PFNGLXGETVIDEODEVICENVPROC) (Display *dpy, int screen, int numVideoDevices, GLXVideoDeviceNV *pVideoDevice);
  774. typedef int ( * PFNGLXRELEASEVIDEODEVICENVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice);
  775. typedef int ( * PFNGLXBINDVIDEOIMAGENVPROC) (Display *dpy, GLXVideoDeviceNV VideoDevice, GLXPbuffer pbuf, int iVideoBuffer);
  776. typedef int ( * PFNGLXRELEASEVIDEOIMAGENVPROC) (Display *dpy, GLXPbuffer pbuf);
  777. typedef int ( * PFNGLXSENDPBUFFERTOVIDEONVPROC) (Display *dpy, GLXPbuffer pbuf, int iBufferType, unsigned long *pulCounterPbuffer, GLboolean bBlock);
  778. typedef int ( * PFNGLXGETVIDEOINFONVPROC) (Display *dpy, int screen, GLXVideoDeviceNV VideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  779. #endif
  780. #ifndef GLX_NV_swap_group
  781. #define GLX_NV_swap_group 1
  782. #ifdef GLX_GLXEXT_PROTOTYPES
  783. extern Bool glXJoinSwapGroupNV (Display *, GLXDrawable, GLuint);
  784. extern Bool glXBindSwapBarrierNV (Display *, GLuint, GLuint);
  785. extern Bool glXQuerySwapGroupNV (Display *, GLXDrawable, GLuint *, GLuint *);
  786. extern Bool glXQueryMaxSwapGroupsNV (Display *, int, GLuint *, GLuint *);
  787. extern Bool glXQueryFrameCountNV (Display *, int, GLuint *);
  788. extern Bool glXResetFrameCountNV (Display *, int);
  789. #endif /* GLX_GLXEXT_PROTOTYPES */
  790. typedef Bool ( * PFNGLXJOINSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint group);
  791. typedef Bool ( * PFNGLXBINDSWAPBARRIERNVPROC) (Display *dpy, GLuint group, GLuint barrier);
  792. typedef Bool ( * PFNGLXQUERYSWAPGROUPNVPROC) (Display *dpy, GLXDrawable drawable, GLuint *group, GLuint *barrier);
  793. typedef Bool ( * PFNGLXQUERYMAXSWAPGROUPSNVPROC) (Display *dpy, int screen, GLuint *maxGroups, GLuint *maxBarriers);
  794. typedef Bool ( * PFNGLXQUERYFRAMECOUNTNVPROC) (Display *dpy, int screen, GLuint *count);
  795. typedef Bool ( * PFNGLXRESETFRAMECOUNTNVPROC) (Display *dpy, int screen);
  796. #endif
  797. #ifndef GLX_NV_video_capture
  798. #define GLX_NV_video_capture 1
  799. #ifdef GLX_GLXEXT_PROTOTYPES
  800. extern int glXBindVideoCaptureDeviceNV (Display *, unsigned int, GLXVideoCaptureDeviceNV);
  801. extern GLXVideoCaptureDeviceNV * glXEnumerateVideoCaptureDevicesNV (Display *, int, int *);
  802. extern void glXLockVideoCaptureDeviceNV (Display *, GLXVideoCaptureDeviceNV);
  803. extern int glXQueryVideoCaptureDeviceNV (Display *, GLXVideoCaptureDeviceNV, int, int *);
  804. extern void glXReleaseVideoCaptureDeviceNV (Display *, GLXVideoCaptureDeviceNV);
  805. #endif /* GLX_GLXEXT_PROTOTYPES */
  806. typedef int ( * PFNGLXBINDVIDEOCAPTUREDEVICENVPROC) (Display *dpy, unsigned int video_capture_slot, GLXVideoCaptureDeviceNV device);
  807. typedef GLXVideoCaptureDeviceNV * ( * PFNGLXENUMERATEVIDEOCAPTUREDEVICESNVPROC) (Display *dpy, int screen, int *nelements);
  808. typedef void ( * PFNGLXLOCKVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
  809. typedef int ( * PFNGLXQUERYVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device, int attribute, int *value);
  810. typedef void ( * PFNGLXRELEASEVIDEOCAPTUREDEVICENVPROC) (Display *dpy, GLXVideoCaptureDeviceNV device);
  811. #endif
  812. #ifndef GLX_EXT_swap_control
  813. #define GLX_EXT_swap_control 1
  814. #ifdef GLX_GLXEXT_PROTOTYPES
  815. extern int glXSwapIntervalEXT (Display *, GLXDrawable, int);
  816. #endif /* GLX_GLXEXT_PROTOTYPES */
  817. typedef int ( * PFNGLXSWAPINTERVALEXTPROC) (Display *dpy, GLXDrawable drawable, int interval);
  818. #endif
  819. #ifndef GLX_NV_copy_image
  820. #define GLX_NV_copy_image 1
  821. #ifdef GLX_GLXEXT_PROTOTYPES
  822. extern void glXCopyImageSubDataNV (Display *, GLXContext, GLuint, GLenum, GLint, GLint, GLint, GLint, GLXContext, GLuint, GLenum, GLint, GLint, GLint, GLint, GLsizei, GLsizei, GLsizei);
  823. #endif /* GLX_GLXEXT_PROTOTYPES */
  824. typedef void ( * PFNGLXCOPYIMAGESUBDATANVPROC) (Display *dpy, GLXContext srcCtx, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, GLXContext dstCtx, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
  825. #endif
  826. #ifdef __cplusplus
  827. }
  828. #endif
  829. #endif