wglext.h 43 KB

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