wglext.h 43 KB

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