wgl.h 49 KB

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