glxext.h 43 KB

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