39 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__) 40 #define WIN32_LEAN_AND_MEAN 1 44 #define WGL_WGLEXT_VERSION 20140810 55 #ifndef WGL_ARB_buffer_region 56 #define WGL_ARB_buffer_region 1 57 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 58 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 59 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 60 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 62 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (
HANDLE hRegion);
65 #ifdef WGL_WGLEXT_PROTOTYPES 67 VOID WINAPI wglDeleteBufferRegionARB (
HANDLE hRegion);
68 BOOL WINAPI wglSaveBufferRegionARB (
HANDLE hRegion,
int x,
int y,
int width,
int height);
69 BOOL WINAPI wglRestoreBufferRegionARB (
HANDLE hRegion,
int x,
int y,
int width,
int height,
int xSrc,
int ySrc);
73 #ifndef WGL_ARB_context_flush_control 74 #define WGL_ARB_context_flush_control 1 75 #define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097 76 #define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0 77 #define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098 80 #ifndef WGL_ARB_create_context 81 #define WGL_ARB_create_context 1 82 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001 83 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 84 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 85 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 86 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 87 #define WGL_CONTEXT_FLAGS_ARB 0x2094 88 #define ERROR_INVALID_VERSION_ARB 0x2095 90 #ifdef WGL_WGLEXT_PROTOTYPES 95 #ifndef WGL_ARB_create_context_profile 96 #define WGL_ARB_create_context_profile 1 97 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126 98 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 99 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 100 #define ERROR_INVALID_PROFILE_ARB 0x2096 103 #ifndef WGL_ARB_create_context_robustness 104 #define WGL_ARB_create_context_robustness 1 105 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 106 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 107 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 108 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 111 #ifndef WGL_ARB_extensions_string 112 #define WGL_ARB_extensions_string 1 114 #ifdef WGL_WGLEXT_PROTOTYPES 115 const char *WINAPI wglGetExtensionsStringARB (
HDC hdc);
119 #ifndef WGL_ARB_framebuffer_sRGB 120 #define WGL_ARB_framebuffer_sRGB 1 121 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 124 #ifndef WGL_ARB_make_current_read 125 #define WGL_ARB_make_current_read 1 126 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 127 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 129 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (
void);
130 #ifdef WGL_WGLEXT_PROTOTYPES 132 HDC WINAPI wglGetCurrentReadDCARB (
void);
136 #ifndef WGL_ARB_multisample 137 #define WGL_ARB_multisample 1 138 #define WGL_SAMPLE_BUFFERS_ARB 0x2041 139 #define WGL_SAMPLES_ARB 0x2042 142 #ifndef WGL_ARB_pbuffer 143 #define WGL_ARB_pbuffer 1 145 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D 146 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E 147 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F 148 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 149 #define WGL_PBUFFER_LARGEST_ARB 0x2033 150 #define WGL_PBUFFER_WIDTH_ARB 0x2034 151 #define WGL_PBUFFER_HEIGHT_ARB 0x2035 152 #define WGL_PBUFFER_LOST_ARB 0x2036 158 #ifdef WGL_WGLEXT_PROTOTYPES 161 int WINAPI wglReleasePbufferDCARB (
HPBUFFERARB hPbuffer,
HDC hDC);
167 #ifndef WGL_ARB_pixel_format 168 #define WGL_ARB_pixel_format 1 169 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 170 #define WGL_DRAW_TO_WINDOW_ARB 0x2001 171 #define WGL_DRAW_TO_BITMAP_ARB 0x2002 172 #define WGL_ACCELERATION_ARB 0x2003 173 #define WGL_NEED_PALETTE_ARB 0x2004 174 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 175 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 176 #define WGL_SWAP_METHOD_ARB 0x2007 177 #define WGL_NUMBER_OVERLAYS_ARB 0x2008 178 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009 179 #define WGL_TRANSPARENT_ARB 0x200A 180 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 181 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 182 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 183 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A 184 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B 185 #define WGL_SHARE_DEPTH_ARB 0x200C 186 #define WGL_SHARE_STENCIL_ARB 0x200D 187 #define WGL_SHARE_ACCUM_ARB 0x200E 188 #define WGL_SUPPORT_GDI_ARB 0x200F 189 #define WGL_SUPPORT_OPENGL_ARB 0x2010 190 #define WGL_DOUBLE_BUFFER_ARB 0x2011 191 #define WGL_STEREO_ARB 0x2012 192 #define WGL_PIXEL_TYPE_ARB 0x2013 193 #define WGL_COLOR_BITS_ARB 0x2014 194 #define WGL_RED_BITS_ARB 0x2015 195 #define WGL_RED_SHIFT_ARB 0x2016 196 #define WGL_GREEN_BITS_ARB 0x2017 197 #define WGL_GREEN_SHIFT_ARB 0x2018 198 #define WGL_BLUE_BITS_ARB 0x2019 199 #define WGL_BLUE_SHIFT_ARB 0x201A 200 #define WGL_ALPHA_BITS_ARB 0x201B 201 #define WGL_ALPHA_SHIFT_ARB 0x201C 202 #define WGL_ACCUM_BITS_ARB 0x201D 203 #define WGL_ACCUM_RED_BITS_ARB 0x201E 204 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F 205 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020 206 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 207 #define WGL_DEPTH_BITS_ARB 0x2022 208 #define WGL_STENCIL_BITS_ARB 0x2023 209 #define WGL_AUX_BUFFERS_ARB 0x2024 210 #define WGL_NO_ACCELERATION_ARB 0x2025 211 #define WGL_GENERIC_ACCELERATION_ARB 0x2026 212 #define WGL_FULL_ACCELERATION_ARB 0x2027 213 #define WGL_SWAP_EXCHANGE_ARB 0x2028 214 #define WGL_SWAP_COPY_ARB 0x2029 215 #define WGL_SWAP_UNDEFINED_ARB 0x202A 216 #define WGL_TYPE_RGBA_ARB 0x202B 217 #define WGL_TYPE_COLORINDEX_ARB 0x202C 221 #ifdef WGL_WGLEXT_PROTOTYPES 222 BOOL WINAPI wglGetPixelFormatAttribivARB (
HDC hdc,
int iPixelFormat,
int iLayerPlane,
UINT nAttributes,
const int *piAttributes,
int *
piValues);
223 BOOL WINAPI wglGetPixelFormatAttribfvARB (
HDC hdc,
int iPixelFormat,
int iLayerPlane,
UINT nAttributes,
const int *piAttributes, FLOAT *
pfValues);
224 BOOL WINAPI wglChoosePixelFormatARB (
HDC hdc,
const int *piAttribIList,
const FLOAT *pfAttribFList,
UINT nMaxFormats,
int *piFormats,
UINT *
nNumFormats);
228 #ifndef WGL_ARB_pixel_format_float 229 #define WGL_ARB_pixel_format_float 1 230 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 233 #ifndef WGL_ARB_render_texture 234 #define WGL_ARB_render_texture 1 235 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 236 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 237 #define WGL_TEXTURE_FORMAT_ARB 0x2072 238 #define WGL_TEXTURE_TARGET_ARB 0x2073 239 #define WGL_MIPMAP_TEXTURE_ARB 0x2074 240 #define WGL_TEXTURE_RGB_ARB 0x2075 241 #define WGL_TEXTURE_RGBA_ARB 0x2076 242 #define WGL_NO_TEXTURE_ARB 0x2077 243 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 244 #define WGL_TEXTURE_1D_ARB 0x2079 245 #define WGL_TEXTURE_2D_ARB 0x207A 246 #define WGL_MIPMAP_LEVEL_ARB 0x207B 247 #define WGL_CUBE_MAP_FACE_ARB 0x207C 248 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D 249 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E 250 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F 251 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 252 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 253 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 254 #define WGL_FRONT_LEFT_ARB 0x2083 255 #define WGL_FRONT_RIGHT_ARB 0x2084 256 #define WGL_BACK_LEFT_ARB 0x2085 257 #define WGL_BACK_RIGHT_ARB 0x2086 258 #define WGL_AUX0_ARB 0x2087 259 #define WGL_AUX1_ARB 0x2088 260 #define WGL_AUX2_ARB 0x2089 261 #define WGL_AUX3_ARB 0x208A 262 #define WGL_AUX4_ARB 0x208B 263 #define WGL_AUX5_ARB 0x208C 264 #define WGL_AUX6_ARB 0x208D 265 #define WGL_AUX7_ARB 0x208E 266 #define WGL_AUX8_ARB 0x208F 267 #define WGL_AUX9_ARB 0x2090 271 #ifdef WGL_WGLEXT_PROTOTYPES 278 #ifndef WGL_ARB_robustness_application_isolation 279 #define WGL_ARB_robustness_application_isolation 1 280 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008 283 #ifndef WGL_ARB_robustness_share_group_isolation 284 #define WGL_ARB_robustness_share_group_isolation 1 287 #ifndef WGL_3DFX_multisample 288 #define WGL_3DFX_multisample 1 289 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060 290 #define WGL_SAMPLES_3DFX 0x2061 293 #ifndef WGL_3DL_stereo_control 294 #define WGL_3DL_stereo_control 1 295 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 296 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 297 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 298 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 300 #ifdef WGL_WGLEXT_PROTOTYPES 305 #ifndef WGL_AMD_gpu_association 306 #define WGL_AMD_gpu_association 1 307 #define WGL_GPU_VENDOR_AMD 0x1F00 308 #define WGL_GPU_RENDERER_STRING_AMD 0x1F01 309 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02 310 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2 311 #define WGL_GPU_RAM_AMD 0x21A3 312 #define WGL_GPU_CLOCK_AMD 0x21A4 313 #define WGL_GPU_NUM_PIPES_AMD 0x21A5 314 #define WGL_GPU_NUM_SIMD_AMD 0x21A6 315 #define WGL_GPU_NUM_RB_AMD 0x21A7 316 #define WGL_GPU_NUM_SPI_AMD 0x21A8 319 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (
HGLRC hglrc);
320 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (
UINT id);
322 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (
HGLRC hglrc);
323 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (
HGLRC hglrc);
324 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (
void);
325 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);
326 #ifdef WGL_WGLEXT_PROTOTYPES 330 HGLRC WINAPI wglCreateAssociatedContextAMD (
UINT id);
334 HGLRC WINAPI wglGetCurrentAssociatedContextAMD (
void);
335 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);
339 #ifndef WGL_ATI_pixel_format_float 340 #define WGL_ATI_pixel_format_float 1 341 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 344 #ifndef WGL_EXT_create_context_es2_profile 345 #define WGL_EXT_create_context_es2_profile 1 346 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 349 #ifndef WGL_EXT_create_context_es_profile 350 #define WGL_EXT_create_context_es_profile 1 351 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004 354 #ifndef WGL_EXT_depth_float 355 #define WGL_EXT_depth_float 1 356 #define WGL_DEPTH_FLOAT_EXT 0x2040 359 #ifndef WGL_EXT_display_color_table 360 #define WGL_EXT_display_color_table 1 361 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort
id);
363 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort
id);
364 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort
id);
365 #ifdef WGL_WGLEXT_PROTOTYPES 366 GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort
id);
368 GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort
id);
369 VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort
id);
373 #ifndef WGL_EXT_extensions_string 374 #define WGL_EXT_extensions_string 1 376 #ifdef WGL_WGLEXT_PROTOTYPES 377 const char *WINAPI wglGetExtensionsStringEXT (
void);
381 #ifndef WGL_EXT_framebuffer_sRGB 382 #define WGL_EXT_framebuffer_sRGB 1 383 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 386 #ifndef WGL_EXT_make_current_read 387 #define WGL_EXT_make_current_read 1 388 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 390 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (
void);
391 #ifdef WGL_WGLEXT_PROTOTYPES 393 HDC WINAPI wglGetCurrentReadDCEXT (
void);
397 #ifndef WGL_EXT_multisample 398 #define WGL_EXT_multisample 1 399 #define WGL_SAMPLE_BUFFERS_EXT 0x2041 400 #define WGL_SAMPLES_EXT 0x2042 403 #ifndef WGL_EXT_pbuffer 404 #define WGL_EXT_pbuffer 1 406 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D 407 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E 408 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F 409 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 410 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 411 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 412 #define WGL_PBUFFER_LARGEST_EXT 0x2033 413 #define WGL_PBUFFER_WIDTH_EXT 0x2034 414 #define WGL_PBUFFER_HEIGHT_EXT 0x2035 420 #ifdef WGL_WGLEXT_PROTOTYPES 423 int WINAPI wglReleasePbufferDCEXT (
HPBUFFEREXT hPbuffer,
HDC hDC);
429 #ifndef WGL_EXT_pixel_format 430 #define WGL_EXT_pixel_format 1 431 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 432 #define WGL_DRAW_TO_WINDOW_EXT 0x2001 433 #define WGL_DRAW_TO_BITMAP_EXT 0x2002 434 #define WGL_ACCELERATION_EXT 0x2003 435 #define WGL_NEED_PALETTE_EXT 0x2004 436 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 437 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 438 #define WGL_SWAP_METHOD_EXT 0x2007 439 #define WGL_NUMBER_OVERLAYS_EXT 0x2008 440 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009 441 #define WGL_TRANSPARENT_EXT 0x200A 442 #define WGL_TRANSPARENT_VALUE_EXT 0x200B 443 #define WGL_SHARE_DEPTH_EXT 0x200C 444 #define WGL_SHARE_STENCIL_EXT 0x200D 445 #define WGL_SHARE_ACCUM_EXT 0x200E 446 #define WGL_SUPPORT_GDI_EXT 0x200F 447 #define WGL_SUPPORT_OPENGL_EXT 0x2010 448 #define WGL_DOUBLE_BUFFER_EXT 0x2011 449 #define WGL_STEREO_EXT 0x2012 450 #define WGL_PIXEL_TYPE_EXT 0x2013 451 #define WGL_COLOR_BITS_EXT 0x2014 452 #define WGL_RED_BITS_EXT 0x2015 453 #define WGL_RED_SHIFT_EXT 0x2016 454 #define WGL_GREEN_BITS_EXT 0x2017 455 #define WGL_GREEN_SHIFT_EXT 0x2018 456 #define WGL_BLUE_BITS_EXT 0x2019 457 #define WGL_BLUE_SHIFT_EXT 0x201A 458 #define WGL_ALPHA_BITS_EXT 0x201B 459 #define WGL_ALPHA_SHIFT_EXT 0x201C 460 #define WGL_ACCUM_BITS_EXT 0x201D 461 #define WGL_ACCUM_RED_BITS_EXT 0x201E 462 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F 463 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020 464 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 465 #define WGL_DEPTH_BITS_EXT 0x2022 466 #define WGL_STENCIL_BITS_EXT 0x2023 467 #define WGL_AUX_BUFFERS_EXT 0x2024 468 #define WGL_NO_ACCELERATION_EXT 0x2025 469 #define WGL_GENERIC_ACCELERATION_EXT 0x2026 470 #define WGL_FULL_ACCELERATION_EXT 0x2027 471 #define WGL_SWAP_EXCHANGE_EXT 0x2028 472 #define WGL_SWAP_COPY_EXT 0x2029 473 #define WGL_SWAP_UNDEFINED_EXT 0x202A 474 #define WGL_TYPE_RGBA_EXT 0x202B 475 #define WGL_TYPE_COLORINDEX_EXT 0x202C 479 #ifdef WGL_WGLEXT_PROTOTYPES 480 BOOL WINAPI wglGetPixelFormatAttribivEXT (
HDC hdc,
int iPixelFormat,
int iLayerPlane,
UINT nAttributes,
int *piAttributes,
int *
piValues);
481 BOOL WINAPI wglGetPixelFormatAttribfvEXT (
HDC hdc,
int iPixelFormat,
int iLayerPlane,
UINT nAttributes,
int *piAttributes, FLOAT *
pfValues);
482 BOOL WINAPI wglChoosePixelFormatEXT (
HDC hdc,
const int *piAttribIList,
const FLOAT *pfAttribFList,
UINT nMaxFormats,
int *piFormats,
UINT *
nNumFormats);
486 #ifndef WGL_EXT_pixel_format_packed_float 487 #define WGL_EXT_pixel_format_packed_float 1 488 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 491 #ifndef WGL_EXT_swap_control 492 #define WGL_EXT_swap_control 1 493 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (
int interval);
494 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (
void);
495 #ifdef WGL_WGLEXT_PROTOTYPES 496 BOOL WINAPI wglSwapIntervalEXT (
int interval);
497 int WINAPI wglGetSwapIntervalEXT (
void);
501 #ifndef WGL_EXT_swap_control_tear 502 #define WGL_EXT_swap_control_tear 1 505 #ifndef WGL_I3D_digital_video_control 506 #define WGL_I3D_digital_video_control 1 507 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 508 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 509 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 510 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 513 #ifdef WGL_WGLEXT_PROTOTYPES 514 BOOL WINAPI wglGetDigitalVideoParametersI3D (
HDC hDC,
int iAttribute,
int *
piValue);
515 BOOL WINAPI wglSetDigitalVideoParametersI3D (
HDC hDC,
int iAttribute,
const int *
piValue);
519 #ifndef WGL_I3D_gamma 520 #define WGL_I3D_gamma 1 521 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E 522 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F 527 #ifdef WGL_WGLEXT_PROTOTYPES 528 BOOL WINAPI wglGetGammaTableParametersI3D (
HDC hDC,
int iAttribute,
int *
piValue);
529 BOOL WINAPI wglSetGammaTableParametersI3D (
HDC hDC,
int iAttribute,
const int *
piValue);
530 BOOL WINAPI wglGetGammaTableI3D (
HDC hDC,
int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *
puBlue);
531 BOOL WINAPI wglSetGammaTableI3D (
HDC hDC,
int iEntries,
const USHORT *puRed,
const USHORT *puGreen,
const USHORT *
puBlue);
535 #ifndef WGL_I3D_genlock 536 #define WGL_I3D_genlock 1 537 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 538 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 539 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 540 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 541 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 542 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 543 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A 544 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B 545 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C 546 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (
HDC hDC);
547 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (
HDC hDC);
558 #ifdef WGL_WGLEXT_PROTOTYPES 559 BOOL WINAPI wglEnableGenlockI3D (
HDC hDC);
560 BOOL WINAPI wglDisableGenlockI3D (
HDC hDC);
574 #ifndef WGL_I3D_image_buffer 575 #define WGL_I3D_image_buffer 1 576 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 577 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 582 #ifdef WGL_WGLEXT_PROTOTYPES 584 BOOL WINAPI wglDestroyImageBufferI3D (
HDC hDC,
LPVOID pAddress);
590 #ifndef WGL_I3D_swap_frame_lock 591 #define WGL_I3D_swap_frame_lock 1 592 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (
void);
593 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (
void);
594 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (
BOOL *
pFlag);
595 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (
BOOL *
pFlag);
596 #ifdef WGL_WGLEXT_PROTOTYPES 597 BOOL WINAPI wglEnableFrameLockI3D (
void);
598 BOOL WINAPI wglDisableFrameLockI3D (
void);
604 #ifndef WGL_I3D_swap_frame_usage 605 #define WGL_I3D_swap_frame_usage 1 606 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (
float *pUsage);
607 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (
void);
608 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (
void);
610 #ifdef WGL_WGLEXT_PROTOTYPES 611 BOOL WINAPI wglGetFrameUsageI3D (
float *pUsage);
612 BOOL WINAPI wglBeginFrameTrackingI3D (
void);
613 BOOL WINAPI wglEndFrameTrackingI3D (
void);
614 BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *pFrameCount, DWORD *pMissedFrames,
float *
pLastMissedUsage);
618 #ifndef WGL_NV_DX_interop 619 #define WGL_NV_DX_interop 1 620 #define WGL_ACCESS_READ_ONLY_NV 0x00000000 621 #define WGL_ACCESS_READ_WRITE_NV 0x00000001 622 #define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002 624 typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (
void *dxDevice);
631 #ifdef WGL_WGLEXT_PROTOTYPES 633 HANDLE WINAPI wglDXOpenDeviceNV (
void *dxDevice);
634 BOOL WINAPI wglDXCloseDeviceNV (
HANDLE hDevice);
643 #ifndef WGL_NV_DX_interop2 644 #define WGL_NV_DX_interop2 1 647 #ifndef WGL_NV_copy_image 648 #define WGL_NV_copy_image 1 649 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);
650 #ifdef WGL_WGLEXT_PROTOTYPES 651 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);
655 #ifndef WGL_NV_delay_before_swap 656 #define WGL_NV_delay_before_swap 1 658 #ifdef WGL_WGLEXT_PROTOTYPES 663 #ifndef WGL_NV_float_buffer 664 #define WGL_NV_float_buffer 1 665 #define WGL_FLOAT_COMPONENTS_NV 0x20B0 666 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 667 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 668 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 669 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 670 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5 671 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 672 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 673 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 676 #ifndef WGL_NV_gpu_affinity 677 #define WGL_NV_gpu_affinity 1 687 #define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 688 #define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 691 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (
const HGPUNV *phGpuList);
693 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (
HDC hdc);
694 #ifdef WGL_WGLEXT_PROTOTYPES 697 HDC WINAPI wglCreateAffinityDCNV (
const HGPUNV *phGpuList);
698 BOOL WINAPI wglEnumGpusFromAffinityDCNV (
HDC hAffinityDC,
UINT iGpuIndex, HGPUNV *hGpu);
699 BOOL WINAPI wglDeleteDCNV (
HDC hdc);
703 #ifndef WGL_NV_multisample_coverage 704 #define WGL_NV_multisample_coverage 1 705 #define WGL_COVERAGE_SAMPLES_NV 0x2042 706 #define WGL_COLOR_SAMPLES_NV 0x20B9 709 #ifndef WGL_NV_present_video 710 #define WGL_NV_present_video 1 712 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 716 #ifdef WGL_WGLEXT_PROTOTYPES 717 int WINAPI wglEnumerateVideoDevicesNV (
HDC hDC, HVIDEOOUTPUTDEVICENV *
phDeviceList);
718 BOOL WINAPI wglBindVideoDeviceNV (
HDC hDC,
unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice,
const int *
piAttribList);
719 BOOL WINAPI wglQueryCurrentContextNV (
int iAttribute,
int *
piValue);
723 #ifndef WGL_NV_render_depth_texture 724 #define WGL_NV_render_depth_texture 1 725 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 726 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 727 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 728 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 729 #define WGL_DEPTH_COMPONENT_NV 0x20A7 732 #ifndef WGL_NV_render_texture_rectangle 733 #define WGL_NV_render_texture_rectangle 1 734 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 735 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 736 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2 739 #ifndef WGL_NV_swap_group 740 #define WGL_NV_swap_group 1 746 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (
HDC hDC);
747 #ifdef WGL_WGLEXT_PROTOTYPES 753 BOOL WINAPI wglResetFrameCountNV (
HDC hDC);
757 #ifndef WGL_NV_vertex_array_range 758 #define WGL_NV_vertex_array_range 1 760 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (
void *
pointer);
761 #ifdef WGL_WGLEXT_PROTOTYPES 762 void *WINAPI wglAllocateMemoryNV (GLsizei size,
GLfloat readfreq,
GLfloat writefreq,
GLfloat priority);
763 void WINAPI wglFreeMemoryNV (
void *
pointer);
767 #ifndef WGL_NV_video_capture 768 #define WGL_NV_video_capture 1 770 #define WGL_UNIQUE_ID_NV 0x20CE 771 #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF 773 typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (
HDC hDc, HVIDEOINPUTDEVICENV *
phDeviceList);
774 typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (
HDC hDc, HVIDEOINPUTDEVICENV
hDevice);
776 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (
HDC hDc, HVIDEOINPUTDEVICENV
hDevice);
777 #ifdef WGL_WGLEXT_PROTOTYPES 778 BOOL WINAPI wglBindVideoCaptureDeviceNV (
UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
779 UINT WINAPI wglEnumerateVideoCaptureDevicesNV (
HDC hDc, HVIDEOINPUTDEVICENV *
phDeviceList);
780 BOOL WINAPI wglLockVideoCaptureDeviceNV (
HDC hDc, HVIDEOINPUTDEVICENV hDevice);
781 BOOL WINAPI wglQueryVideoCaptureDeviceNV (
HDC hDc, HVIDEOINPUTDEVICENV hDevice,
int iAttribute,
int *
piValue);
782 BOOL WINAPI wglReleaseVideoCaptureDeviceNV (
HDC hDc, HVIDEOINPUTDEVICENV hDevice);
786 #ifndef WGL_NV_video_output 787 #define WGL_NV_video_output 1 789 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 790 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 791 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 792 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3 793 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 794 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 795 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 796 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 797 #define WGL_VIDEO_OUT_FRAME 0x20C8 798 #define WGL_VIDEO_OUT_FIELD_1 0x20C9 799 #define WGL_VIDEO_OUT_FIELD_2 0x20CA 800 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB 801 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC 803 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV
hVideoDevice);
808 #ifdef WGL_WGLEXT_PROTOTYPES 809 BOOL WINAPI wglGetVideoDeviceNV (
HDC hDC,
int numDevices, HPVIDEODEV *hVideoDevice);
810 BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice);
813 BOOL WINAPI wglSendPbufferToVideoNV (
HPBUFFERARB hPbuffer,
int iBufferType,
unsigned long *pulCounterPbuffer,
BOOL bBlock);
814 BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice,
unsigned long *pulCounterOutputPbuffer,
unsigned long *
pulCounterOutputVideo);
818 #ifndef WGL_OML_sync_control 819 #define WGL_OML_sync_control 1 826 #ifdef WGL_WGLEXT_PROTOTYPES 830 INT64 WINAPI wglSwapLayerBuffersMscOML (
HDC hdc,
int fuPlanes,
INT64 target_msc,
INT64 divisor,
INT64 remainder);
int int int const int * piAttribList
GLsizei const void * pointer
const int * piAttribIList
int USHORT USHORT * puGreen
GLuint GLuint * maxBarriers
GLuint GLenum GLint GLint GLint srcY
GLuint GLenum GLint GLint srcX
GLuint GLenum GLint GLint GLint GLint HGLRC hDstRC
INT64 INT64 INT64 remainder
GLint GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
int int int int int int ySrc
GLenum GLenum GLsizei void * table
const HANDLE const LPVOID const DWORD * pSize
void *WINAPI * PFNWGLALLOCATEMEMORYNVPROC(GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority)
int int UINT const int FLOAT * pfValues
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint GLenum GLint GLint dstX
typedef HANDLE(WINAPI *PFNWGLCREATEBUFFERREGIONARBPROC)(HDC hDC
typedef GLenum(APIENTRYP PFNGLCHECKFRAMEBUFFERSTATUSPROC)(GLenum target)
const int const FLOAT * pfAttribFList
int unsigned long BOOL bBlock
GLint GLint GLsizei GLsizei GLsizei depth
typedef HGLRC(WINAPI *PFNWGLCREATECONTEXTATTRIBSARBPROC)(HDC hDC
const int const FLOAT UINT nMaxFormats
GLuint GLenum GLint srcLevel
GLint GLint GLint GLint GLint dstX0
typedef void(WINAPI *PFNWGLFREEMEMORYNVPROC)(void *pointer)
typedef GLint(APIENTRYP PFNGLGETATTRIBLOCATIONPROC)(GLuint program
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint dstName
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint GLenum GLint dstLevel
DECLARE_HANDLE(HPBUFFERARB)
GLint GLint GLint GLint srcY1
GLuint GLuint GLsizei count
int GLenum UINT void * data
int unsigned long * pulCounterPbuffer
typedef int(WINAPI *PFNWGLRELEASEPBUFFERDCARBPROC)(HPBUFFERARB hPbuffer
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * data
const int const FLOAT UINT int * piFormats
unsigned long unsigned long * pulCounterOutputVideo
GLint GLint GLint GLint GLint GLint GLint dstX1
typedef GLfloat(APIENTRYP PFNGLGETPATHLENGTHNVPROC)(GLuint path
UINT PGPU_DEVICE lpGpuDevice
GLint GLint GLint GLint GLint GLint GLint GLint dstY1
typedef BOOL(WINAPI *PFNWGLSAVEBUFFERREGIONARBPROC)(HANDLE hRegion
void GLuint GLenum GLenum access
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint GLenum GLint GLint GLint GLint GLsizei GLsizei GLsizei depth
typedef HDC(WINAPI *PFNWGLGETCURRENTREADDCARBPROC)(void)
typedef INT(WINAPI *PFNWGLGETGPUINFOAMDPROC)(UINT id
typedef INT64(WINAPI *PFNWGLSWAPBUFFERSMSCOMLPROC)(HDC hdc
typedef VOID(WINAPI *PFNWGLDELETEBUFFERREGIONARBPROC)(HANDLE hRegion)
int int UINT const int int * piValues
GLuint GLenum GLint GLint GLint GLint srcZ
INT32 INT32 * denominator
HVIDEOINPUTDEVICENV hDevice
const HANDLE const LPVOID const DWORD UINT count
GLint GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
typedef GLboolean(WINAPI *PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC)(GLushort id)
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint GLenum GLint GLint GLint GLint dstZ
GLuint GLint GLboolean GLint GLenum access
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint GLenum GLint GLint GLint dstY
typedef HPBUFFEREXT(WINAPI *PFNWGLCREATEPBUFFEREXTPROC)(HDC hDC
GLuint GLenum GLint GLint GLint GLint HGLRC GLuint GLenum dstTarget
GLuint GLsizei GLsizei * length
struct _GPU_DEVICE * PGPU_DEVICE
UINT UINT * uMaxPixelDelay
typedef GLbitfield(APIENTRYP PFNGLQUERYMATRIXXOESPROC)(GLfixed *mantissa
typedef LPVOID(WINAPI *PFNWGLCREATEIMAGEBUFFERI3DPROC)(HDC hDC
HPBUFFERARB int iVideoBuffer
HGLRC const int * attribList
typedef UINT(WINAPI *PFNWGLGETGPUIDSAMDPROC)(UINT maxCount
const char *WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC(void)
unsigned int HVIDEOOUTPUTDEVICENV hVideoDevice
unsigned long * pulCounterOutputPbuffer
const char *WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC(HDC hdc)
typedef HPBUFFERARB(WINAPI *PFNWGLCREATEPBUFFERARBPROC)(HDC hDC
int int UINT const int * piAttributes
const int const FLOAT UINT int UINT * nNumFormats
int USHORT USHORT USHORT * puBlue
GLint GLint GLint GLint GLint GLint dstY0
typedef GLuint(APIENTRYP PFNGLCREATEPROGRAMPROC)(void)
HVIDEOOUTPUTDEVICENV * phDeviceList
DWORD float * pLastMissedUsage