wglext.h 42 KB

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