wglext.h 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950
  1. #ifndef __wglext_h_
  2. #define __wglext_h_
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. /*
  7. ** THIS FILE IS OBSOLETE. Please migrate away from using the
  8. ** ".spec" files and the headers generated from them to the
  9. ** XML Registry and headers generated from that. See
  10. ** http://www.opengl.org/registry/api/README.txt
  11. ** for more information.
  12. **
  13. **
  14. ** Copyright (c) 2007-2013 The Khronos Group Inc.
  15. **
  16. ** Permission is hereby granted, free of charge, to any person obtaining a
  17. ** copy of this software and/or associated documentation files (the
  18. ** "Materials"), to deal in the Materials without restriction, including
  19. ** without limitation the rights to use, copy, modify, merge, publish,
  20. ** distribute, sublicense, and/or sell copies of the Materials, and to
  21. ** permit persons to whom the Materials are furnished to do so, subject to
  22. ** the following conditions:
  23. **
  24. ** The above copyright notice and this permission notice shall be included
  25. ** in all copies or substantial portions of the Materials.
  26. **
  27. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  28. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  29. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  30. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  31. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  32. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  33. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  34. */
  35. /* Function declaration macros - to move into glplatform.h */
  36. #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
  37. #define WIN32_LEAN_AND_MEAN 1
  38. #include <windows.h>
  39. #endif
  40. #ifndef APIENTRY
  41. #define APIENTRY
  42. #endif
  43. #ifndef APIENTRYP
  44. #define APIENTRYP APIENTRY *
  45. #endif
  46. #ifndef GLAPI
  47. #define GLAPI extern
  48. #endif
  49. /*************************************************************/
  50. /* Header file version number */
  51. /* wglext.h last updated 2013/06/10 */
  52. /* Current version at http://www.opengl.org/registry/ */
  53. #define WGL_WGLEXT_VERSION 26
  54. #ifndef WGL_ARB_buffer_region
  55. #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
  56. #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
  57. #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
  58. #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
  59. #endif
  60. #ifndef WGL_ARB_multisample
  61. #define WGL_SAMPLE_BUFFERS_ARB 0x2041
  62. #define WGL_SAMPLES_ARB 0x2042
  63. #endif
  64. #ifndef WGL_ARB_extensions_string
  65. #endif
  66. #ifndef WGL_ARB_pixel_format
  67. #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
  68. #define WGL_DRAW_TO_WINDOW_ARB 0x2001
  69. #define WGL_DRAW_TO_BITMAP_ARB 0x2002
  70. #define WGL_ACCELERATION_ARB 0x2003
  71. #define WGL_NEED_PALETTE_ARB 0x2004
  72. #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
  73. #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
  74. #define WGL_SWAP_METHOD_ARB 0x2007
  75. #define WGL_NUMBER_OVERLAYS_ARB 0x2008
  76. #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
  77. #define WGL_TRANSPARENT_ARB 0x200A
  78. #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
  79. #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
  80. #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
  81. #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
  82. #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
  83. #define WGL_SHARE_DEPTH_ARB 0x200C
  84. #define WGL_SHARE_STENCIL_ARB 0x200D
  85. #define WGL_SHARE_ACCUM_ARB 0x200E
  86. #define WGL_SUPPORT_GDI_ARB 0x200F
  87. #define WGL_SUPPORT_OPENGL_ARB 0x2010
  88. #define WGL_DOUBLE_BUFFER_ARB 0x2011
  89. #define WGL_STEREO_ARB 0x2012
  90. #define WGL_PIXEL_TYPE_ARB 0x2013
  91. #define WGL_COLOR_BITS_ARB 0x2014
  92. #define WGL_RED_BITS_ARB 0x2015
  93. #define WGL_RED_SHIFT_ARB 0x2016
  94. #define WGL_GREEN_BITS_ARB 0x2017
  95. #define WGL_GREEN_SHIFT_ARB 0x2018
  96. #define WGL_BLUE_BITS_ARB 0x2019
  97. #define WGL_BLUE_SHIFT_ARB 0x201A
  98. #define WGL_ALPHA_BITS_ARB 0x201B
  99. #define WGL_ALPHA_SHIFT_ARB 0x201C
  100. #define WGL_ACCUM_BITS_ARB 0x201D
  101. #define WGL_ACCUM_RED_BITS_ARB 0x201E
  102. #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
  103. #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
  104. #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
  105. #define WGL_DEPTH_BITS_ARB 0x2022
  106. #define WGL_STENCIL_BITS_ARB 0x2023
  107. #define WGL_AUX_BUFFERS_ARB 0x2024
  108. #define WGL_NO_ACCELERATION_ARB 0x2025
  109. #define WGL_GENERIC_ACCELERATION_ARB 0x2026
  110. #define WGL_FULL_ACCELERATION_ARB 0x2027
  111. #define WGL_SWAP_EXCHANGE_ARB 0x2028
  112. #define WGL_SWAP_COPY_ARB 0x2029
  113. #define WGL_SWAP_UNDEFINED_ARB 0x202A
  114. #define WGL_TYPE_RGBA_ARB 0x202B
  115. #define WGL_TYPE_COLORINDEX_ARB 0x202C
  116. #endif
  117. #ifndef WGL_ARB_make_current_read
  118. #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
  119. #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
  120. #endif
  121. #ifndef WGL_ARB_pbuffer
  122. #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
  123. #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
  124. #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
  125. #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
  126. #define WGL_PBUFFER_LARGEST_ARB 0x2033
  127. #define WGL_PBUFFER_WIDTH_ARB 0x2034
  128. #define WGL_PBUFFER_HEIGHT_ARB 0x2035
  129. #define WGL_PBUFFER_LOST_ARB 0x2036
  130. #endif
  131. #ifndef WGL_ARB_render_texture
  132. #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
  133. #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
  134. #define WGL_TEXTURE_FORMAT_ARB 0x2072
  135. #define WGL_TEXTURE_TARGET_ARB 0x2073
  136. #define WGL_MIPMAP_TEXTURE_ARB 0x2074
  137. #define WGL_TEXTURE_RGB_ARB 0x2075
  138. #define WGL_TEXTURE_RGBA_ARB 0x2076
  139. #define WGL_NO_TEXTURE_ARB 0x2077
  140. #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
  141. #define WGL_TEXTURE_1D_ARB 0x2079
  142. #define WGL_TEXTURE_2D_ARB 0x207A
  143. #define WGL_MIPMAP_LEVEL_ARB 0x207B
  144. #define WGL_CUBE_MAP_FACE_ARB 0x207C
  145. #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
  146. #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
  147. #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
  148. #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
  149. #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
  150. #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
  151. #define WGL_FRONT_LEFT_ARB 0x2083
  152. #define WGL_FRONT_RIGHT_ARB 0x2084
  153. #define WGL_BACK_LEFT_ARB 0x2085
  154. #define WGL_BACK_RIGHT_ARB 0x2086
  155. #define WGL_AUX0_ARB 0x2087
  156. #define WGL_AUX1_ARB 0x2088
  157. #define WGL_AUX2_ARB 0x2089
  158. #define WGL_AUX3_ARB 0x208A
  159. #define WGL_AUX4_ARB 0x208B
  160. #define WGL_AUX5_ARB 0x208C
  161. #define WGL_AUX6_ARB 0x208D
  162. #define WGL_AUX7_ARB 0x208E
  163. #define WGL_AUX8_ARB 0x208F
  164. #define WGL_AUX9_ARB 0x2090
  165. #endif
  166. #ifndef WGL_ARB_pixel_format_float
  167. #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
  168. #endif
  169. #ifndef WGL_ARB_framebuffer_sRGB
  170. #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
  171. #endif
  172. #ifndef WGL_ARB_create_context
  173. #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001
  174. #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
  175. #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
  176. #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
  177. #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
  178. #define WGL_CONTEXT_FLAGS_ARB 0x2094
  179. #define ERROR_INVALID_VERSION_ARB 0x2095
  180. #endif
  181. #ifndef WGL_ARB_create_context_profile
  182. #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
  183. #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
  184. #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
  185. #define ERROR_INVALID_PROFILE_ARB 0x2096
  186. #endif
  187. #ifndef WGL_ARB_create_context_robustness
  188. #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
  189. #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
  190. #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  191. #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
  192. #endif
  193. #ifndef WGL_EXT_make_current_read
  194. #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
  195. #endif
  196. #ifndef WGL_EXT_pixel_format
  197. #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
  198. #define WGL_DRAW_TO_WINDOW_EXT 0x2001
  199. #define WGL_DRAW_TO_BITMAP_EXT 0x2002
  200. #define WGL_ACCELERATION_EXT 0x2003
  201. #define WGL_NEED_PALETTE_EXT 0x2004
  202. #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
  203. #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
  204. #define WGL_SWAP_METHOD_EXT 0x2007
  205. #define WGL_NUMBER_OVERLAYS_EXT 0x2008
  206. #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
  207. #define WGL_TRANSPARENT_EXT 0x200A
  208. #define WGL_TRANSPARENT_VALUE_EXT 0x200B
  209. #define WGL_SHARE_DEPTH_EXT 0x200C
  210. #define WGL_SHARE_STENCIL_EXT 0x200D
  211. #define WGL_SHARE_ACCUM_EXT 0x200E
  212. #define WGL_SUPPORT_GDI_EXT 0x200F
  213. #define WGL_SUPPORT_OPENGL_EXT 0x2010
  214. #define WGL_DOUBLE_BUFFER_EXT 0x2011
  215. #define WGL_STEREO_EXT 0x2012
  216. #define WGL_PIXEL_TYPE_EXT 0x2013
  217. #define WGL_COLOR_BITS_EXT 0x2014
  218. #define WGL_RED_BITS_EXT 0x2015
  219. #define WGL_RED_SHIFT_EXT 0x2016
  220. #define WGL_GREEN_BITS_EXT 0x2017
  221. #define WGL_GREEN_SHIFT_EXT 0x2018
  222. #define WGL_BLUE_BITS_EXT 0x2019
  223. #define WGL_BLUE_SHIFT_EXT 0x201A
  224. #define WGL_ALPHA_BITS_EXT 0x201B
  225. #define WGL_ALPHA_SHIFT_EXT 0x201C
  226. #define WGL_ACCUM_BITS_EXT 0x201D
  227. #define WGL_ACCUM_RED_BITS_EXT 0x201E
  228. #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
  229. #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
  230. #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
  231. #define WGL_DEPTH_BITS_EXT 0x2022
  232. #define WGL_STENCIL_BITS_EXT 0x2023
  233. #define WGL_AUX_BUFFERS_EXT 0x2024
  234. #define WGL_NO_ACCELERATION_EXT 0x2025
  235. #define WGL_GENERIC_ACCELERATION_EXT 0x2026
  236. #define WGL_FULL_ACCELERATION_EXT 0x2027
  237. #define WGL_SWAP_EXCHANGE_EXT 0x2028
  238. #define WGL_SWAP_COPY_EXT 0x2029
  239. #define WGL_SWAP_UNDEFINED_EXT 0x202A
  240. #define WGL_TYPE_RGBA_EXT 0x202B
  241. #define WGL_TYPE_COLORINDEX_EXT 0x202C
  242. #endif
  243. #ifndef WGL_EXT_pbuffer
  244. #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
  245. #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
  246. #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
  247. #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
  248. #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
  249. #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
  250. #define WGL_PBUFFER_LARGEST_EXT 0x2033
  251. #define WGL_PBUFFER_WIDTH_EXT 0x2034
  252. #define WGL_PBUFFER_HEIGHT_EXT 0x2035
  253. #endif
  254. #ifndef WGL_EXT_depth_float
  255. #define WGL_DEPTH_FLOAT_EXT 0x2040
  256. #endif
  257. #ifndef WGL_3DFX_multisample
  258. #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
  259. #define WGL_SAMPLES_3DFX 0x2061
  260. #endif
  261. #ifndef WGL_EXT_multisample
  262. #define WGL_SAMPLE_BUFFERS_EXT 0x2041
  263. #define WGL_SAMPLES_EXT 0x2042
  264. #endif
  265. #ifndef WGL_I3D_digital_video_control
  266. #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
  267. #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
  268. #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
  269. #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
  270. #endif
  271. #ifndef WGL_I3D_gamma
  272. #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
  273. #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
  274. #endif
  275. #ifndef WGL_I3D_genlock
  276. #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
  277. #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
  278. #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
  279. #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
  280. #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
  281. #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
  282. #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
  283. #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
  284. #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
  285. #endif
  286. #ifndef WGL_I3D_image_buffer
  287. #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
  288. #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
  289. #endif
  290. #ifndef WGL_I3D_swap_frame_lock
  291. #endif
  292. #ifndef WGL_NV_render_depth_texture
  293. #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
  294. #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
  295. #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
  296. #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
  297. #define WGL_DEPTH_COMPONENT_NV 0x20A7
  298. #endif
  299. #ifndef WGL_NV_render_texture_rectangle
  300. #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
  301. #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
  302. #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
  303. #endif
  304. #ifndef WGL_ATI_pixel_format_float
  305. #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
  306. #endif
  307. #ifndef WGL_NV_float_buffer
  308. #define WGL_FLOAT_COMPONENTS_NV 0x20B0
  309. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
  310. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
  311. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
  312. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
  313. #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
  314. #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
  315. #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
  316. #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
  317. #endif
  318. #ifndef WGL_3DL_stereo_control
  319. #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
  320. #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
  321. #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
  322. #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
  323. #endif
  324. #ifndef WGL_EXT_pixel_format_packed_float
  325. #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
  326. #endif
  327. #ifndef WGL_EXT_framebuffer_sRGB
  328. #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
  329. #endif
  330. #ifndef WGL_NV_present_video
  331. #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
  332. #endif
  333. #ifndef WGL_NV_video_out
  334. #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
  335. #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
  336. #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
  337. #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
  338. #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
  339. #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
  340. #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  341. #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  342. #define WGL_VIDEO_OUT_FRAME 0x20C8
  343. #define WGL_VIDEO_OUT_FIELD_1 0x20C9
  344. #define WGL_VIDEO_OUT_FIELD_2 0x20CA
  345. #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
  346. #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
  347. #endif
  348. #ifndef WGL_NV_swap_group
  349. #endif
  350. #ifndef WGL_NV_gpu_affinity
  351. #define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
  352. #define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
  353. #endif
  354. #ifndef WGL_AMD_gpu_association
  355. #define WGL_GPU_VENDOR_AMD 0x1F00
  356. #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
  357. #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
  358. #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
  359. #define WGL_GPU_RAM_AMD 0x21A3
  360. #define WGL_GPU_CLOCK_AMD 0x21A4
  361. #define WGL_GPU_NUM_PIPES_AMD 0x21A5
  362. #define WGL_GPU_NUM_SIMD_AMD 0x21A6
  363. #define WGL_GPU_NUM_RB_AMD 0x21A7
  364. #define WGL_GPU_NUM_SPI_AMD 0x21A8
  365. #endif
  366. #ifndef WGL_NV_video_capture
  367. #define WGL_UNIQUE_ID_NV 0x20CE
  368. #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
  369. #endif
  370. #ifndef WGL_NV_copy_image
  371. #endif
  372. #ifndef WGL_NV_multisample_coverage
  373. #define WGL_COVERAGE_SAMPLES_NV 0x2042
  374. #define WGL_COLOR_SAMPLES_NV 0x20B9
  375. #endif
  376. #ifndef WGL_EXT_create_context_es2_profile
  377. #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
  378. #endif
  379. #ifndef WGL_NV_DX_interop
  380. #define WGL_ACCESS_READ_ONLY_NV 0x00000000
  381. #define WGL_ACCESS_READ_WRITE_NV 0x00000001
  382. #define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002
  383. #endif
  384. #ifndef WGL_NV_DX_interop2
  385. #endif
  386. #ifndef WGL_EXT_swap_control_tear
  387. #endif
  388. /*************************************************************/
  389. #ifndef WGL_ARB_pbuffer
  390. DECLARE_HANDLE(HPBUFFERARB);
  391. #endif
  392. #ifndef WGL_EXT_pbuffer
  393. DECLARE_HANDLE(HPBUFFEREXT);
  394. #endif
  395. #ifndef WGL_NV_present_video
  396. DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
  397. #endif
  398. #ifndef WGL_NV_video_output
  399. DECLARE_HANDLE(HPVIDEODEV);
  400. #endif
  401. #ifndef WGL_NV_gpu_affinity
  402. DECLARE_HANDLE(HPGPUNV);
  403. DECLARE_HANDLE(HGPUNV);
  404. typedef struct _GPU_DEVICE {
  405. DWORD cb;
  406. CHAR DeviceName[32];
  407. CHAR DeviceString[128];
  408. DWORD Flags;
  409. RECT rcVirtualScreen;
  410. } GPU_DEVICE, *PGPU_DEVICE;
  411. #endif
  412. #ifndef WGL_NV_video_capture
  413. DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
  414. #endif
  415. #ifndef WGL_ARB_buffer_region
  416. #define WGL_ARB_buffer_region 1
  417. #ifdef WGL_WGLEXT_PROTOTYPES
  418. extern HANDLE WINAPI wglCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType);
  419. extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE hRegion);
  420. extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height);
  421. extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
  422. #endif /* WGL_WGLEXT_PROTOTYPES */
  423. typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
  424. typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
  425. typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
  426. typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
  427. #endif
  428. #ifndef WGL_ARB_multisample
  429. #define WGL_ARB_multisample 1
  430. #endif
  431. #ifndef WGL_ARB_extensions_string
  432. #define WGL_ARB_extensions_string 1
  433. #ifdef WGL_WGLEXT_PROTOTYPES
  434. extern const char * WINAPI wglGetExtensionsStringARB (HDC hdc);
  435. #endif /* WGL_WGLEXT_PROTOTYPES */
  436. typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
  437. #endif
  438. #ifndef WGL_ARB_pixel_format
  439. #define WGL_ARB_pixel_format 1
  440. #ifdef WGL_WGLEXT_PROTOTYPES
  441. extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
  442. extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
  443. extern BOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  444. #endif /* WGL_WGLEXT_PROTOTYPES */
  445. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
  446. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
  447. typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  448. #endif
  449. #ifndef WGL_ARB_make_current_read
  450. #define WGL_ARB_make_current_read 1
  451. #ifdef WGL_WGLEXT_PROTOTYPES
  452. extern BOOL WINAPI wglMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  453. extern HDC WINAPI wglGetCurrentReadDCARB (void);
  454. #endif /* WGL_WGLEXT_PROTOTYPES */
  455. typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  456. typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
  457. #endif
  458. #ifndef WGL_ARB_pbuffer
  459. #define WGL_ARB_pbuffer 1
  460. #ifdef WGL_WGLEXT_PROTOTYPES
  461. extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
  462. extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB hPbuffer);
  463. extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC);
  464. extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB hPbuffer);
  465. extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
  466. #endif /* WGL_WGLEXT_PROTOTYPES */
  467. typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
  468. typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
  469. typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
  470. typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
  471. typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
  472. #endif
  473. #ifndef WGL_ARB_render_texture
  474. #define WGL_ARB_render_texture 1
  475. #ifdef WGL_WGLEXT_PROTOTYPES
  476. extern BOOL WINAPI wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
  477. extern BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
  478. extern BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList);
  479. #endif /* WGL_WGLEXT_PROTOTYPES */
  480. typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
  481. typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
  482. typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
  483. #endif
  484. #ifndef WGL_ARB_pixel_format_float
  485. #define WGL_ARB_pixel_format_float 1
  486. #endif
  487. #ifndef WGL_ARB_framebuffer_sRGB
  488. #define WGL_ARB_framebuffer_sRGB 1
  489. #endif
  490. #ifndef WGL_ARB_create_context
  491. #define WGL_ARB_create_context 1
  492. #ifdef WGL_WGLEXT_PROTOTYPES
  493. extern HGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList);
  494. #endif /* WGL_WGLEXT_PROTOTYPES */
  495. typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
  496. #endif
  497. #ifndef WGL_ARB_create_context_profile
  498. #define WGL_ARB_create_context_profile 1
  499. #endif
  500. #ifndef WGL_ARB_create_context_robustness
  501. #define WGL_ARB_create_context_robustness 1
  502. #endif
  503. #ifndef WGL_EXT_display_color_table
  504. #define WGL_EXT_display_color_table 1
  505. #ifdef WGL_WGLEXT_PROTOTYPES
  506. extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort id);
  507. extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *table, GLuint length);
  508. extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort id);
  509. extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort id);
  510. #endif /* WGL_WGLEXT_PROTOTYPES */
  511. typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  512. typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
  513. typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  514. typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  515. #endif
  516. #ifndef WGL_EXT_extensions_string
  517. #define WGL_EXT_extensions_string 1
  518. #ifdef WGL_WGLEXT_PROTOTYPES
  519. extern const char * WINAPI wglGetExtensionsStringEXT (void);
  520. #endif /* WGL_WGLEXT_PROTOTYPES */
  521. typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
  522. #endif
  523. #ifndef WGL_EXT_make_current_read
  524. #define WGL_EXT_make_current_read 1
  525. #ifdef WGL_WGLEXT_PROTOTYPES
  526. extern BOOL WINAPI wglMakeContextCurrentEXT (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  527. extern HDC WINAPI wglGetCurrentReadDCEXT (void);
  528. #endif /* WGL_WGLEXT_PROTOTYPES */
  529. typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  530. typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
  531. #endif
  532. #ifndef WGL_EXT_pbuffer
  533. #define WGL_EXT_pbuffer 1
  534. #ifdef WGL_WGLEXT_PROTOTYPES
  535. extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
  536. extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT hPbuffer);
  537. extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT hPbuffer, HDC hDC);
  538. extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT hPbuffer);
  539. extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
  540. #endif /* WGL_WGLEXT_PROTOTYPES */
  541. typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
  542. typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
  543. typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
  544. typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
  545. typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
  546. #endif
  547. #ifndef WGL_EXT_pixel_format
  548. #define WGL_EXT_pixel_format 1
  549. #ifdef WGL_WGLEXT_PROTOTYPES
  550. extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
  551. extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
  552. extern BOOL WINAPI wglChoosePixelFormatEXT (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  553. #endif /* WGL_WGLEXT_PROTOTYPES */
  554. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
  555. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
  556. typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  557. #endif
  558. #ifndef WGL_EXT_swap_control
  559. #define WGL_EXT_swap_control 1
  560. #ifdef WGL_WGLEXT_PROTOTYPES
  561. extern BOOL WINAPI wglSwapIntervalEXT (int interval);
  562. extern int WINAPI wglGetSwapIntervalEXT (void);
  563. #endif /* WGL_WGLEXT_PROTOTYPES */
  564. typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
  565. typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
  566. #endif
  567. #ifndef WGL_EXT_depth_float
  568. #define WGL_EXT_depth_float 1
  569. #endif
  570. #ifndef WGL_NV_vertex_array_range
  571. #define WGL_NV_vertex_array_range 1
  572. #ifdef WGL_WGLEXT_PROTOTYPES
  573. extern void* WINAPI wglAllocateMemoryNV (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
  574. extern void WINAPI wglFreeMemoryNV (void *pointer);
  575. #endif /* WGL_WGLEXT_PROTOTYPES */
  576. typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
  577. typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
  578. #endif
  579. #ifndef WGL_3DFX_multisample
  580. #define WGL_3DFX_multisample 1
  581. #endif
  582. #ifndef WGL_EXT_multisample
  583. #define WGL_EXT_multisample 1
  584. #endif
  585. #ifndef WGL_OML_sync_control
  586. #define WGL_OML_sync_control 1
  587. #ifdef WGL_WGLEXT_PROTOTYPES
  588. extern BOOL WINAPI wglGetSyncValuesOML (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
  589. extern BOOL WINAPI wglGetMscRateOML (HDC hdc, INT32 *numerator, INT32 *denominator);
  590. extern INT64 WINAPI wglSwapBuffersMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
  591. extern INT64 WINAPI wglSwapLayerBuffersMscOML (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
  592. extern BOOL WINAPI wglWaitForMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
  593. extern BOOL WINAPI wglWaitForSbcOML (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
  594. #endif /* WGL_WGLEXT_PROTOTYPES */
  595. typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
  596. typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
  597. typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
  598. typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
  599. typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
  600. typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
  601. #endif
  602. #ifndef WGL_I3D_digital_video_control
  603. #define WGL_I3D_digital_video_control 1
  604. #ifdef WGL_WGLEXT_PROTOTYPES
  605. extern BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC hDC, int iAttribute, int *piValue);
  606. extern BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC hDC, int iAttribute, const int *piValue);
  607. #endif /* WGL_WGLEXT_PROTOTYPES */
  608. typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
  609. typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
  610. #endif
  611. #ifndef WGL_I3D_gamma
  612. #define WGL_I3D_gamma 1
  613. #ifdef WGL_WGLEXT_PROTOTYPES
  614. extern BOOL WINAPI wglGetGammaTableParametersI3D (HDC hDC, int iAttribute, int *piValue);
  615. extern BOOL WINAPI wglSetGammaTableParametersI3D (HDC hDC, int iAttribute, const int *piValue);
  616. extern BOOL WINAPI wglGetGammaTableI3D (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
  617. extern BOOL WINAPI wglSetGammaTableI3D (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
  618. #endif /* WGL_WGLEXT_PROTOTYPES */
  619. typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
  620. typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
  621. typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
  622. typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
  623. #endif
  624. #ifndef WGL_I3D_genlock
  625. #define WGL_I3D_genlock 1
  626. #ifdef WGL_WGLEXT_PROTOTYPES
  627. extern BOOL WINAPI wglEnableGenlockI3D (HDC hDC);
  628. extern BOOL WINAPI wglDisableGenlockI3D (HDC hDC);
  629. extern BOOL WINAPI wglIsEnabledGenlockI3D (HDC hDC, BOOL *pFlag);
  630. extern BOOL WINAPI wglGenlockSourceI3D (HDC hDC, UINT uSource);
  631. extern BOOL WINAPI wglGetGenlockSourceI3D (HDC hDC, UINT *uSource);
  632. extern BOOL WINAPI wglGenlockSourceEdgeI3D (HDC hDC, UINT uEdge);
  633. extern BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC hDC, UINT *uEdge);
  634. extern BOOL WINAPI wglGenlockSampleRateI3D (HDC hDC, UINT uRate);
  635. extern BOOL WINAPI wglGetGenlockSampleRateI3D (HDC hDC, UINT *uRate);
  636. extern BOOL WINAPI wglGenlockSourceDelayI3D (HDC hDC, UINT uDelay);
  637. extern BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC hDC, UINT *uDelay);
  638. extern BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
  639. #endif /* WGL_WGLEXT_PROTOTYPES */
  640. typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
  641. typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
  642. typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
  643. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
  644. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
  645. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
  646. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
  647. typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
  648. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
  649. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
  650. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
  651. typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
  652. #endif
  653. #ifndef WGL_I3D_image_buffer
  654. #define WGL_I3D_image_buffer 1
  655. #ifdef WGL_WGLEXT_PROTOTYPES
  656. extern LPVOID WINAPI wglCreateImageBufferI3D (HDC hDC, DWORD dwSize, UINT uFlags);
  657. extern BOOL WINAPI wglDestroyImageBufferI3D (HDC hDC, LPVOID pAddress);
  658. extern BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
  659. extern BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC hDC, const LPVOID *pAddress, UINT count);
  660. #endif /* WGL_WGLEXT_PROTOTYPES */
  661. typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
  662. typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
  663. typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
  664. typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
  665. #endif
  666. #ifndef WGL_I3D_swap_frame_lock
  667. #define WGL_I3D_swap_frame_lock 1
  668. #ifdef WGL_WGLEXT_PROTOTYPES
  669. extern BOOL WINAPI wglEnableFrameLockI3D (void);
  670. extern BOOL WINAPI wglDisableFrameLockI3D (void);
  671. extern BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *pFlag);
  672. extern BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *pFlag);
  673. #endif /* WGL_WGLEXT_PROTOTYPES */
  674. typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
  675. typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
  676. typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
  677. typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
  678. #endif
  679. #ifndef WGL_I3D_swap_frame_usage
  680. #define WGL_I3D_swap_frame_usage 1
  681. #ifdef WGL_WGLEXT_PROTOTYPES
  682. extern BOOL WINAPI wglGetFrameUsageI3D (float *pUsage);
  683. extern BOOL WINAPI wglBeginFrameTrackingI3D (void);
  684. extern BOOL WINAPI wglEndFrameTrackingI3D (void);
  685. extern BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
  686. #endif /* WGL_WGLEXT_PROTOTYPES */
  687. typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
  688. typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
  689. typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
  690. typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
  691. #endif
  692. #ifndef WGL_ATI_pixel_format_float
  693. #define WGL_ATI_pixel_format_float 1
  694. #endif
  695. #ifndef WGL_NV_float_buffer
  696. #define WGL_NV_float_buffer 1
  697. #endif
  698. #ifndef WGL_3DL_stereo_control
  699. #define WGL_3DL_stereo_control 1
  700. #ifdef WGL_WGLEXT_PROTOTYPES
  701. extern BOOL WINAPI wglSetStereoEmitterState3DL (HDC hDC, UINT uState);
  702. #endif /* WGL_WGLEXT_PROTOTYPES */
  703. typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
  704. #endif
  705. #ifndef WGL_EXT_pixel_format_packed_float
  706. #define WGL_EXT_pixel_format_packed_float 1
  707. #endif
  708. #ifndef WGL_EXT_framebuffer_sRGB
  709. #define WGL_EXT_framebuffer_sRGB 1
  710. #endif
  711. #ifndef WGL_NV_present_video
  712. #define WGL_NV_present_video 1
  713. #ifdef WGL_WGLEXT_PROTOTYPES
  714. extern int WINAPI wglEnumerateVideoDevicesNV (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList);
  715. extern BOOL WINAPI wglBindVideoDeviceNV (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
  716. extern BOOL WINAPI wglQueryCurrentContextNV (int iAttribute, int *piValue);
  717. #endif /* WGL_WGLEXT_PROTOTYPES */
  718. typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList);
  719. typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
  720. typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue);
  721. #endif
  722. #ifndef WGL_NV_video_output
  723. #define WGL_NV_video_output 1
  724. #ifdef WGL_WGLEXT_PROTOTYPES
  725. extern BOOL WINAPI wglGetVideoDeviceNV (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
  726. extern BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice);
  727. extern BOOL WINAPI wglBindVideoImageNV (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
  728. extern BOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB hPbuffer, int iVideoBuffer);
  729. extern BOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
  730. extern BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  731. #endif /* WGL_WGLEXT_PROTOTYPES */
  732. typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
  733. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
  734. typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
  735. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
  736. typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
  737. typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  738. #endif
  739. #ifndef WGL_NV_swap_group
  740. #define WGL_NV_swap_group 1
  741. #ifdef WGL_WGLEXT_PROTOTYPES
  742. extern BOOL WINAPI wglJoinSwapGroupNV (HDC hDC, GLuint group);
  743. extern BOOL WINAPI wglBindSwapBarrierNV (GLuint group, GLuint barrier);
  744. extern BOOL WINAPI wglQuerySwapGroupNV (HDC hDC, GLuint *group, GLuint *barrier);
  745. extern BOOL WINAPI wglQueryMaxSwapGroupsNV (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
  746. extern BOOL WINAPI wglQueryFrameCountNV (HDC hDC, GLuint *count);
  747. extern BOOL WINAPI wglResetFrameCountNV (HDC hDC);
  748. #endif /* WGL_WGLEXT_PROTOTYPES */
  749. typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
  750. typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
  751. typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier);
  752. typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
  753. typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count);
  754. typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
  755. #endif
  756. #ifndef WGL_NV_gpu_affinity
  757. #define WGL_NV_gpu_affinity 1
  758. #ifdef WGL_WGLEXT_PROTOTYPES
  759. extern BOOL WINAPI wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu);
  760. extern BOOL WINAPI wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
  761. extern HDC WINAPI wglCreateAffinityDCNV (const HGPUNV *phGpuList);
  762. extern BOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
  763. extern BOOL WINAPI wglDeleteDCNV (HDC hdc);
  764. #endif /* WGL_WGLEXT_PROTOTYPES */
  765. typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
  766. typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
  767. typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
  768. typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
  769. typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
  770. #endif
  771. #ifndef WGL_AMD_gpu_association
  772. #define WGL_AMD_gpu_association 1
  773. #ifdef WGL_WGLEXT_PROTOTYPES
  774. extern UINT WINAPI wglGetGPUIDsAMD (UINT maxCount, UINT *ids);
  775. extern INT WINAPI wglGetGPUInfoAMD (UINT id, int property, GLenum dataType, UINT size, void *data);
  776. extern UINT WINAPI wglGetContextGPUIDAMD (HGLRC hglrc);
  777. extern HGLRC WINAPI wglCreateAssociatedContextAMD (UINT id);
  778. extern HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT id, HGLRC hShareContext, const int *attribList);
  779. extern BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC hglrc);
  780. extern BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC hglrc);
  781. extern HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void);
  782. extern VOID WINAPI wglBlitContextFramebufferAMD (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  783. #endif /* WGL_WGLEXT_PROTOTYPES */
  784. typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids);
  785. typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, int property, GLenum dataType, UINT size, void *data);
  786. typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
  787. typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
  788. typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList);
  789. typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
  790. typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
  791. typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
  792. typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  793. #endif
  794. #ifndef WGL_NV_video_capture
  795. #define WGL_NV_video_capture 1
  796. #ifdef WGL_WGLEXT_PROTOTYPES
  797. extern BOOL WINAPI wglBindVideoCaptureDeviceNV (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
  798. extern UINT WINAPI wglEnumerateVideoCaptureDevicesNV (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
  799. extern BOOL WINAPI wglLockVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  800. extern BOOL WINAPI wglQueryVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
  801. extern BOOL WINAPI wglReleaseVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  802. #endif /* WGL_WGLEXT_PROTOTYPES */
  803. typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
  804. typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
  805. typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  806. typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
  807. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  808. #endif
  809. #ifndef WGL_NV_copy_image
  810. #define WGL_NV_copy_image 1
  811. #ifdef WGL_WGLEXT_PROTOTYPES
  812. extern BOOL WINAPI wglCopyImageSubDataNV (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
  813. #endif /* WGL_WGLEXT_PROTOTYPES */
  814. typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
  815. #endif
  816. #ifndef WGL_NV_multisample_coverage
  817. #define WGL_NV_multisample_coverage 1
  818. #endif
  819. #ifndef WGL_NV_DX_interop
  820. #define WGL_NV_DX_interop 1
  821. #ifdef WGL_WGLEXT_PROTOTYPES
  822. extern BOOL WINAPI wglDXSetResourceShareHandleNV (void *dxObject, HANDLE shareHandle);
  823. extern HANDLE WINAPI wglDXOpenDeviceNV (void *dxDevice);
  824. extern BOOL WINAPI wglDXCloseDeviceNV (HANDLE hDevice);
  825. extern HANDLE WINAPI wglDXRegisterObjectNV (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
  826. extern BOOL WINAPI wglDXUnregisterObjectNV (HANDLE hDevice, HANDLE hObject);
  827. extern BOOL WINAPI wglDXObjectAccessNV (HANDLE hObject, GLenum access);
  828. extern BOOL WINAPI wglDXLockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects);
  829. extern BOOL WINAPI wglDXUnlockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects);
  830. #endif /* WGL_WGLEXT_PROTOTYPES */
  831. typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void *dxObject, HANDLE shareHandle);
  832. typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void *dxDevice);
  833. typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
  834. typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
  835. typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
  836. typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
  837. typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects);
  838. typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects);
  839. #endif
  840. #ifndef WGL_NV_DX_interop2
  841. #define WGL_NV_DX_interop2 1
  842. #endif
  843. #ifndef WGL_EXT_swap_control_tear
  844. #define WGL_EXT_swap_control_tear 1
  845. #endif
  846. #ifdef __cplusplus
  847. }
  848. #endif
  849. #endif