J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 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. Sun designates this |
| 7 | * particular file as subject to the "Classpath" exception as provided |
| 8 | * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 21 | * CA 95054 USA or visit www.sun.com if you need additional information or |
| 22 | * have any questions. |
| 23 | */ |
| 24 | |
| 25 | #ifndef __wglext_h_ |
| 26 | #define __wglext_h_ |
| 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) 2007 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 | #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) |
| 61 | #define WIN32_LEAN_AND_MEAN 1 |
| 62 | #include <windows.h> |
| 63 | #endif |
| 64 | |
| 65 | #ifndef APIENTRY |
| 66 | #define APIENTRY |
| 67 | #endif |
| 68 | #ifndef GLAPI |
| 69 | #define GLAPI extern |
| 70 | #endif |
| 71 | |
| 72 | /*************************************************************/ |
| 73 | |
| 74 | /* Header file version number */ |
| 75 | /* wglext.h last updated 2002/03/22 */ |
| 76 | /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */ |
| 77 | #define WGL_WGLEXT_VERSION 4 |
| 78 | |
| 79 | #ifndef WGL_ARB_buffer_region |
| 80 | #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 |
| 81 | #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 |
| 82 | #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 |
| 83 | #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 |
| 84 | #endif |
| 85 | |
| 86 | #ifndef WGL_ARB_multisample |
| 87 | #define WGL_SAMPLE_BUFFERS_ARB 0x2041 |
| 88 | #define WGL_SAMPLES_ARB 0x2042 |
| 89 | #endif |
| 90 | |
| 91 | #ifndef WGL_ARB_extensions_string |
| 92 | #endif |
| 93 | |
| 94 | #ifndef WGL_ARB_pixel_format |
| 95 | #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 |
| 96 | #define WGL_DRAW_TO_WINDOW_ARB 0x2001 |
| 97 | #define WGL_DRAW_TO_BITMAP_ARB 0x2002 |
| 98 | #define WGL_ACCELERATION_ARB 0x2003 |
| 99 | #define WGL_NEED_PALETTE_ARB 0x2004 |
| 100 | #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 |
| 101 | #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 |
| 102 | #define WGL_SWAP_METHOD_ARB 0x2007 |
| 103 | #define WGL_NUMBER_OVERLAYS_ARB 0x2008 |
| 104 | #define WGL_NUMBER_UNDERLAYS_ARB 0x2009 |
| 105 | #define WGL_TRANSPARENT_ARB 0x200A |
| 106 | #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 |
| 107 | #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 |
| 108 | #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 |
| 109 | #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A |
| 110 | #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B |
| 111 | #define WGL_SHARE_DEPTH_ARB 0x200C |
| 112 | #define WGL_SHARE_STENCIL_ARB 0x200D |
| 113 | #define WGL_SHARE_ACCUM_ARB 0x200E |
| 114 | #define WGL_SUPPORT_GDI_ARB 0x200F |
| 115 | #define WGL_SUPPORT_OPENGL_ARB 0x2010 |
| 116 | #define WGL_DOUBLE_BUFFER_ARB 0x2011 |
| 117 | #define WGL_STEREO_ARB 0x2012 |
| 118 | #define WGL_PIXEL_TYPE_ARB 0x2013 |
| 119 | #define WGL_COLOR_BITS_ARB 0x2014 |
| 120 | #define WGL_RED_BITS_ARB 0x2015 |
| 121 | #define WGL_RED_SHIFT_ARB 0x2016 |
| 122 | #define WGL_GREEN_BITS_ARB 0x2017 |
| 123 | #define WGL_GREEN_SHIFT_ARB 0x2018 |
| 124 | #define WGL_BLUE_BITS_ARB 0x2019 |
| 125 | #define WGL_BLUE_SHIFT_ARB 0x201A |
| 126 | #define WGL_ALPHA_BITS_ARB 0x201B |
| 127 | #define WGL_ALPHA_SHIFT_ARB 0x201C |
| 128 | #define WGL_ACCUM_BITS_ARB 0x201D |
| 129 | #define WGL_ACCUM_RED_BITS_ARB 0x201E |
| 130 | #define WGL_ACCUM_GREEN_BITS_ARB 0x201F |
| 131 | #define WGL_ACCUM_BLUE_BITS_ARB 0x2020 |
| 132 | #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 |
| 133 | #define WGL_DEPTH_BITS_ARB 0x2022 |
| 134 | #define WGL_STENCIL_BITS_ARB 0x2023 |
| 135 | #define WGL_AUX_BUFFERS_ARB 0x2024 |
| 136 | #define WGL_NO_ACCELERATION_ARB 0x2025 |
| 137 | #define WGL_GENERIC_ACCELERATION_ARB 0x2026 |
| 138 | #define WGL_FULL_ACCELERATION_ARB 0x2027 |
| 139 | #define WGL_SWAP_EXCHANGE_ARB 0x2028 |
| 140 | #define WGL_SWAP_COPY_ARB 0x2029 |
| 141 | #define WGL_SWAP_UNDEFINED_ARB 0x202A |
| 142 | #define WGL_TYPE_RGBA_ARB 0x202B |
| 143 | #define WGL_TYPE_COLORINDEX_ARB 0x202C |
| 144 | #endif |
| 145 | |
| 146 | #ifndef WGL_ARB_make_current_read |
| 147 | #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 |
| 148 | #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 |
| 149 | #endif |
| 150 | |
| 151 | #ifndef WGL_ARB_pbuffer |
| 152 | #define WGL_DRAW_TO_PBUFFER_ARB 0x202D |
| 153 | #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E |
| 154 | #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F |
| 155 | #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 |
| 156 | #define WGL_PBUFFER_LARGEST_ARB 0x2033 |
| 157 | #define WGL_PBUFFER_WIDTH_ARB 0x2034 |
| 158 | #define WGL_PBUFFER_HEIGHT_ARB 0x2035 |
| 159 | #define WGL_PBUFFER_LOST_ARB 0x2036 |
| 160 | #endif |
| 161 | |
| 162 | #ifndef WGL_ARB_render_texture |
| 163 | #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 |
| 164 | #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 |
| 165 | #define WGL_TEXTURE_FORMAT_ARB 0x2072 |
| 166 | #define WGL_TEXTURE_TARGET_ARB 0x2073 |
| 167 | #define WGL_MIPMAP_TEXTURE_ARB 0x2074 |
| 168 | #define WGL_TEXTURE_RGB_ARB 0x2075 |
| 169 | #define WGL_TEXTURE_RGBA_ARB 0x2076 |
| 170 | #define WGL_NO_TEXTURE_ARB 0x2077 |
| 171 | #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 |
| 172 | #define WGL_TEXTURE_1D_ARB 0x2079 |
| 173 | #define WGL_TEXTURE_2D_ARB 0x207A |
| 174 | #define WGL_MIPMAP_LEVEL_ARB 0x207B |
| 175 | #define WGL_CUBE_MAP_FACE_ARB 0x207C |
| 176 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D |
| 177 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E |
| 178 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F |
| 179 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 |
| 180 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 |
| 181 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 |
| 182 | #define WGL_FRONT_LEFT_ARB 0x2083 |
| 183 | #define WGL_FRONT_RIGHT_ARB 0x2084 |
| 184 | #define WGL_BACK_LEFT_ARB 0x2085 |
| 185 | #define WGL_BACK_RIGHT_ARB 0x2086 |
| 186 | #define WGL_AUX0_ARB 0x2087 |
| 187 | #define WGL_AUX1_ARB 0x2088 |
| 188 | #define WGL_AUX2_ARB 0x2089 |
| 189 | #define WGL_AUX3_ARB 0x208A |
| 190 | #define WGL_AUX4_ARB 0x208B |
| 191 | #define WGL_AUX5_ARB 0x208C |
| 192 | #define WGL_AUX6_ARB 0x208D |
| 193 | #define WGL_AUX7_ARB 0x208E |
| 194 | #define WGL_AUX8_ARB 0x208F |
| 195 | #define WGL_AUX9_ARB 0x2090 |
| 196 | #endif |
| 197 | |
| 198 | #ifndef WGL_EXT_make_current_read |
| 199 | #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 |
| 200 | #endif |
| 201 | |
| 202 | #ifndef WGL_EXT_pixel_format |
| 203 | #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 |
| 204 | #define WGL_DRAW_TO_WINDOW_EXT 0x2001 |
| 205 | #define WGL_DRAW_TO_BITMAP_EXT 0x2002 |
| 206 | #define WGL_ACCELERATION_EXT 0x2003 |
| 207 | #define WGL_NEED_PALETTE_EXT 0x2004 |
| 208 | #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 |
| 209 | #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 |
| 210 | #define WGL_SWAP_METHOD_EXT 0x2007 |
| 211 | #define WGL_NUMBER_OVERLAYS_EXT 0x2008 |
| 212 | #define WGL_NUMBER_UNDERLAYS_EXT 0x2009 |
| 213 | #define WGL_TRANSPARENT_EXT 0x200A |
| 214 | #define WGL_TRANSPARENT_VALUE_EXT 0x200B |
| 215 | #define WGL_SHARE_DEPTH_EXT 0x200C |
| 216 | #define WGL_SHARE_STENCIL_EXT 0x200D |
| 217 | #define WGL_SHARE_ACCUM_EXT 0x200E |
| 218 | #define WGL_SUPPORT_GDI_EXT 0x200F |
| 219 | #define WGL_SUPPORT_OPENGL_EXT 0x2010 |
| 220 | #define WGL_DOUBLE_BUFFER_EXT 0x2011 |
| 221 | #define WGL_STEREO_EXT 0x2012 |
| 222 | #define WGL_PIXEL_TYPE_EXT 0x2013 |
| 223 | #define WGL_COLOR_BITS_EXT 0x2014 |
| 224 | #define WGL_RED_BITS_EXT 0x2015 |
| 225 | #define WGL_RED_SHIFT_EXT 0x2016 |
| 226 | #define WGL_GREEN_BITS_EXT 0x2017 |
| 227 | #define WGL_GREEN_SHIFT_EXT 0x2018 |
| 228 | #define WGL_BLUE_BITS_EXT 0x2019 |
| 229 | #define WGL_BLUE_SHIFT_EXT 0x201A |
| 230 | #define WGL_ALPHA_BITS_EXT 0x201B |
| 231 | #define WGL_ALPHA_SHIFT_EXT 0x201C |
| 232 | #define WGL_ACCUM_BITS_EXT 0x201D |
| 233 | #define WGL_ACCUM_RED_BITS_EXT 0x201E |
| 234 | #define WGL_ACCUM_GREEN_BITS_EXT 0x201F |
| 235 | #define WGL_ACCUM_BLUE_BITS_EXT 0x2020 |
| 236 | #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 |
| 237 | #define WGL_DEPTH_BITS_EXT 0x2022 |
| 238 | #define WGL_STENCIL_BITS_EXT 0x2023 |
| 239 | #define WGL_AUX_BUFFERS_EXT 0x2024 |
| 240 | #define WGL_NO_ACCELERATION_EXT 0x2025 |
| 241 | #define WGL_GENERIC_ACCELERATION_EXT 0x2026 |
| 242 | #define WGL_FULL_ACCELERATION_EXT 0x2027 |
| 243 | #define WGL_SWAP_EXCHANGE_EXT 0x2028 |
| 244 | #define WGL_SWAP_COPY_EXT 0x2029 |
| 245 | #define WGL_SWAP_UNDEFINED_EXT 0x202A |
| 246 | #define WGL_TYPE_RGBA_EXT 0x202B |
| 247 | #define WGL_TYPE_COLORINDEX_EXT 0x202C |
| 248 | #endif |
| 249 | |
| 250 | #ifndef WGL_EXT_pbuffer |
| 251 | #define WGL_DRAW_TO_PBUFFER_EXT 0x202D |
| 252 | #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E |
| 253 | #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F |
| 254 | #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 |
| 255 | #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 |
| 256 | #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 |
| 257 | #define WGL_PBUFFER_LARGEST_EXT 0x2033 |
| 258 | #define WGL_PBUFFER_WIDTH_EXT 0x2034 |
| 259 | #define WGL_PBUFFER_HEIGHT_EXT 0x2035 |
| 260 | #endif |
| 261 | |
| 262 | #ifndef WGL_EXT_depth_float |
| 263 | #define WGL_DEPTH_FLOAT_EXT 0x2040 |
| 264 | #endif |
| 265 | |
| 266 | #ifndef WGL_3DFX_multisample |
| 267 | #define WGL_SAMPLE_BUFFERS_3DFX 0x2060 |
| 268 | #define WGL_SAMPLES_3DFX 0x2061 |
| 269 | #endif |
| 270 | |
| 271 | #ifndef WGL_EXT_multisample |
| 272 | #define WGL_SAMPLE_BUFFERS_EXT 0x2041 |
| 273 | #define WGL_SAMPLES_EXT 0x2042 |
| 274 | #endif |
| 275 | |
| 276 | #ifndef WGL_I3D_digital_video_control |
| 277 | #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 |
| 278 | #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 |
| 279 | #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 |
| 280 | #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 |
| 281 | #endif |
| 282 | |
| 283 | #ifndef WGL_I3D_gamma |
| 284 | #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E |
| 285 | #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F |
| 286 | #endif |
| 287 | |
| 288 | #ifndef WGL_I3D_genlock |
| 289 | #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 |
| 290 | #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045 |
| 291 | #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046 |
| 292 | #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047 |
| 293 | #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 |
| 294 | #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 |
| 295 | #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A |
| 296 | #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B |
| 297 | #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C |
| 298 | #endif |
| 299 | |
| 300 | #ifndef WGL_I3D_image_buffer |
| 301 | #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 |
| 302 | #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 |
| 303 | #endif |
| 304 | |
| 305 | #ifndef WGL_I3D_swap_frame_lock |
| 306 | #endif |
| 307 | |
| 308 | #ifndef WGL_NV_render_depth_texture |
| 309 | #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 |
| 310 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 |
| 311 | #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 |
| 312 | #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 |
| 313 | #define WGL_DEPTH_COMPONENT_NV 0x20A7 |
| 314 | #endif |
| 315 | |
| 316 | #ifndef WGL_NV_render_texture_rectangle |
| 317 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 |
| 318 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 |
| 319 | #define WGL_TEXTURE_RECTANGLE_NV 0x20A2 |
| 320 | #endif |
| 321 | |
| 322 | #ifndef WGL_NV_float_buffer |
| 323 | #define WGL_FLOAT_COMPONENTS_NV 0x20B0 |
| 324 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 |
| 325 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 |
| 326 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 |
| 327 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 |
| 328 | #define WGL_TEXTURE_FLOAT_R_NV 0x20B5 |
| 329 | #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 |
| 330 | #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 |
| 331 | #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 |
| 332 | #endif |
| 333 | |
| 334 | |
| 335 | /*************************************************************/ |
| 336 | |
| 337 | #ifndef WGL_ARB_pbuffer |
| 338 | DECLARE_HANDLE(HPBUFFERARB); |
| 339 | #endif |
| 340 | #ifndef WGL_EXT_pbuffer |
| 341 | DECLARE_HANDLE(HPBUFFEREXT); |
| 342 | #endif |
| 343 | |
| 344 | #ifndef WGL_ARB_buffer_region |
| 345 | #define WGL_ARB_buffer_region 1 |
| 346 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 347 | extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT); |
| 348 | extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE); |
| 349 | extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int); |
| 350 | extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int); |
| 351 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 352 | typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType); |
| 353 | typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); |
| 354 | typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height); |
| 355 | typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc); |
| 356 | #endif |
| 357 | |
| 358 | #ifndef WGL_ARB_multisample |
| 359 | #define WGL_ARB_multisample 1 |
| 360 | #endif |
| 361 | |
| 362 | #ifndef WGL_ARB_extensions_string |
| 363 | #define WGL_ARB_extensions_string 1 |
| 364 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 365 | extern const char * WINAPI wglGetExtensionsStringARB (HDC); |
| 366 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 367 | typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); |
| 368 | #endif |
| 369 | |
| 370 | #ifndef WGL_ARB_pixel_format |
| 371 | #define WGL_ARB_pixel_format 1 |
| 372 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 373 | extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *); |
| 374 | extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *); |
| 375 | extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *); |
| 376 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 377 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues); |
| 378 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues); |
| 379 | typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); |
| 380 | #endif |
| 381 | |
| 382 | #ifndef WGL_ARB_make_current_read |
| 383 | #define WGL_ARB_make_current_read 1 |
| 384 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 385 | extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC); |
| 386 | extern HDC WINAPI wglGetCurrentReadDCARB (void); |
| 387 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 388 | typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); |
| 389 | typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void); |
| 390 | #endif |
| 391 | |
| 392 | #ifndef WGL_ARB_pbuffer |
| 393 | #define WGL_ARB_pbuffer 1 |
| 394 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 395 | extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *); |
| 396 | extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB); |
| 397 | extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC); |
| 398 | extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB); |
| 399 | extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *); |
| 400 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 401 | typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); |
| 402 | typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); |
| 403 | typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); |
| 404 | typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); |
| 405 | typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue); |
| 406 | #endif |
| 407 | |
| 408 | #ifndef WGL_ARB_render_texture |
| 409 | #define WGL_ARB_render_texture 1 |
| 410 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 411 | extern BOOL WINAPI wglBindTexImageARB (HPBUFFERARB, int); |
| 412 | extern BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB, int); |
| 413 | extern BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB, const int *); |
| 414 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 415 | typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); |
| 416 | typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); |
| 417 | typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList); |
| 418 | #endif |
| 419 | |
| 420 | #ifndef WGL_EXT_display_color_table |
| 421 | #define WGL_EXT_display_color_table 1 |
| 422 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 423 | extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort); |
| 424 | extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint); |
| 425 | extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort); |
| 426 | extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort); |
| 427 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 428 | typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); |
| 429 | typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length); |
| 430 | typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); |
| 431 | typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); |
| 432 | #endif |
| 433 | |
| 434 | #ifndef WGL_EXT_extensions_string |
| 435 | #define WGL_EXT_extensions_string 1 |
| 436 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 437 | extern const char * WINAPI wglGetExtensionsStringEXT (void); |
| 438 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 439 | typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); |
| 440 | #endif |
| 441 | |
| 442 | #ifndef WGL_EXT_make_current_read |
| 443 | #define WGL_EXT_make_current_read 1 |
| 444 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 445 | extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC); |
| 446 | extern HDC WINAPI wglGetCurrentReadDCEXT (void); |
| 447 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 448 | typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); |
| 449 | typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void); |
| 450 | #endif |
| 451 | |
| 452 | #ifndef WGL_EXT_pbuffer |
| 453 | #define WGL_EXT_pbuffer 1 |
| 454 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 455 | extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *); |
| 456 | extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT); |
| 457 | extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC); |
| 458 | extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT); |
| 459 | extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *); |
| 460 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 461 | typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList); |
| 462 | typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); |
| 463 | typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); |
| 464 | typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); |
| 465 | typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue); |
| 466 | #endif |
| 467 | |
| 468 | #ifndef WGL_EXT_pixel_format |
| 469 | #define WGL_EXT_pixel_format 1 |
| 470 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 471 | extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *); |
| 472 | extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *); |
| 473 | extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *); |
| 474 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 475 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues); |
| 476 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues); |
| 477 | typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); |
| 478 | #endif |
| 479 | |
| 480 | #ifndef WGL_EXT_swap_control |
| 481 | #define WGL_EXT_swap_control 1 |
| 482 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 483 | extern BOOL WINAPI wglSwapIntervalEXT (int); |
| 484 | extern int WINAPI wglGetSwapIntervalEXT (void); |
| 485 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 486 | typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); |
| 487 | typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); |
| 488 | #endif |
| 489 | |
| 490 | #ifndef WGL_EXT_depth_float |
| 491 | #define WGL_EXT_depth_float 1 |
| 492 | #endif |
| 493 | |
| 494 | #ifndef WGL_NV_vertex_array_range |
| 495 | #define WGL_NV_vertex_array_range 1 |
| 496 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 497 | extern void* WINAPI wglAllocateMemoryNV (GLsizei, GLfloat, GLfloat, GLfloat); |
| 498 | extern void WINAPI wglFreeMemoryNV (void *); |
| 499 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 500 | typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority); |
| 501 | typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); |
| 502 | #endif |
| 503 | |
| 504 | #ifndef WGL_3DFX_multisample |
| 505 | #define WGL_3DFX_multisample 1 |
| 506 | #endif |
| 507 | |
| 508 | #ifndef WGL_EXT_multisample |
| 509 | #define WGL_EXT_multisample 1 |
| 510 | #endif |
| 511 | |
| 512 | #ifndef WGL_OML_sync_control |
| 513 | #define WGL_OML_sync_control 1 |
| 514 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 515 | extern BOOL WINAPI wglGetSyncValuesOML (HDC, INT64 *, INT64 *, INT64 *); |
| 516 | extern BOOL WINAPI wglGetMscRateOML (HDC, INT32 *, INT32 *); |
| 517 | extern INT64 WINAPI wglSwapBuffersMscOML (HDC, INT64, INT64, INT64); |
| 518 | extern INT64 WINAPI wglSwapLayerBuffersMscOML (HDC, int, INT64, INT64, INT64); |
| 519 | extern BOOL WINAPI wglWaitForMscOML (HDC, INT64, INT64, INT64, INT64 *, INT64 *, INT64 *); |
| 520 | extern BOOL WINAPI wglWaitForSbcOML (HDC, INT64, INT64 *, INT64 *, INT64 *); |
| 521 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 522 | typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc); |
| 523 | typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator); |
| 524 | typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); |
| 525 | typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); |
| 526 | typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc); |
| 527 | typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc); |
| 528 | #endif |
| 529 | |
| 530 | #ifndef WGL_I3D_digital_video_control |
| 531 | #define WGL_I3D_digital_video_control 1 |
| 532 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 533 | extern BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC, int, int *); |
| 534 | extern BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC, int, const int *); |
| 535 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 536 | typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); |
| 537 | typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); |
| 538 | #endif |
| 539 | |
| 540 | #ifndef WGL_I3D_gamma |
| 541 | #define WGL_I3D_gamma 1 |
| 542 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 543 | extern BOOL WINAPI wglGetGammaTableParametersI3D (HDC, int, int *); |
| 544 | extern BOOL WINAPI wglSetGammaTableParametersI3D (HDC, int, const int *); |
| 545 | extern BOOL WINAPI wglGetGammaTableI3D (HDC, int, USHORT *, USHORT *, USHORT *); |
| 546 | extern BOOL WINAPI wglSetGammaTableI3D (HDC, int, const USHORT *, const USHORT *, const USHORT *); |
| 547 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 548 | typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue); |
| 549 | typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue); |
| 550 | typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue); |
| 551 | typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue); |
| 552 | #endif |
| 553 | |
| 554 | #ifndef WGL_I3D_genlock |
| 555 | #define WGL_I3D_genlock 1 |
| 556 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 557 | extern BOOL WINAPI wglEnableGenlockI3D (HDC); |
| 558 | extern BOOL WINAPI wglDisableGenlockI3D (HDC); |
| 559 | extern BOOL WINAPI wglIsEnabledGenlockI3D (HDC, BOOL *); |
| 560 | extern BOOL WINAPI wglGenlockSourceI3D (HDC, UINT); |
| 561 | extern BOOL WINAPI wglGetGenlockSourceI3D (HDC, UINT *); |
| 562 | extern BOOL WINAPI wglGenlockSourceEdgeI3D (HDC, UINT); |
| 563 | extern BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC, UINT *); |
| 564 | extern BOOL WINAPI wglGenlockSampleRateI3D (HDC, UINT); |
| 565 | extern BOOL WINAPI wglGetGenlockSampleRateI3D (HDC, UINT *); |
| 566 | extern BOOL WINAPI wglGenlockSourceDelayI3D (HDC, UINT); |
| 567 | extern BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC, UINT *); |
| 568 | extern BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC, UINT *, UINT *); |
| 569 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 570 | typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); |
| 571 | typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); |
| 572 | typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag); |
| 573 | typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); |
| 574 | typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource); |
| 575 | typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); |
| 576 | typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge); |
| 577 | typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); |
| 578 | typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate); |
| 579 | typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); |
| 580 | typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay); |
| 581 | typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay); |
| 582 | #endif |
| 583 | |
| 584 | #ifndef WGL_I3D_image_buffer |
| 585 | #define WGL_I3D_image_buffer 1 |
| 586 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 587 | extern LPVOID WINAPI wglCreateImageBufferI3D (HDC, DWORD, UINT); |
| 588 | extern BOOL WINAPI wglDestroyImageBufferI3D (HDC, LPVOID); |
| 589 | extern BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC, const HANDLE *, const LPVOID *, const DWORD *, UINT); |
| 590 | extern BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC, const LPVOID *, UINT); |
| 591 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 592 | typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); |
| 593 | typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); |
| 594 | typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count); |
| 595 | typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count); |
| 596 | #endif |
| 597 | |
| 598 | #ifndef WGL_I3D_swap_frame_lock |
| 599 | #define WGL_I3D_swap_frame_lock 1 |
| 600 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 601 | extern BOOL WINAPI wglEnableFrameLockI3D (void); |
| 602 | extern BOOL WINAPI wglDisableFrameLockI3D (void); |
| 603 | extern BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *); |
| 604 | extern BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *); |
| 605 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 606 | typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void); |
| 607 | typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void); |
| 608 | typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag); |
| 609 | typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag); |
| 610 | #endif |
| 611 | |
| 612 | #ifndef WGL_I3D_swap_frame_usage |
| 613 | #define WGL_I3D_swap_frame_usage 1 |
| 614 | #ifdef WGL_WGLEXT_PROTOTYPES |
| 615 | extern BOOL WINAPI wglGetFrameUsageI3D (float *); |
| 616 | extern BOOL WINAPI wglBeginFrameTrackingI3D (void); |
| 617 | extern BOOL WINAPI wglEndFrameTrackingI3D (void); |
| 618 | extern BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *, DWORD *, float *); |
| 619 | #endif /* WGL_WGLEXT_PROTOTYPES */ |
| 620 | typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage); |
| 621 | typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); |
| 622 | typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); |
| 623 | typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); |
| 624 | #endif |
| 625 | |
| 626 | |
| 627 | #ifdef __cplusplus |
| 628 | } |
| 629 | #endif |
| 630 | |
| 631 | #endif |