Clone of mesa.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

wglext.h 35KB

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