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