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