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