[852] | 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-2000 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__)
|
---|
| 38 | #define WIN32_LEAN_AND_MEAN 1
|
---|
| 39 | #include <windows.h>
|
---|
| 40 | #endif
|
---|
| 41 |
|
---|
| 42 | #ifndef APIENTRY
|
---|
| 43 | #define APIENTRY
|
---|
| 44 | #endif
|
---|
| 45 |
|
---|
| 46 | /*************************************************************/
|
---|
| 47 |
|
---|
| 48 | /* Header file version number */
|
---|
| 49 | #define WGL_WGLEXT_VERSION 1
|
---|
| 50 |
|
---|
| 51 | #ifndef WGL_ARB_buffer_region
|
---|
| 52 | #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
|
---|
| 53 | #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
|
---|
| 54 | #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
|
---|
| 55 | #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
|
---|
| 56 | #endif
|
---|
| 57 |
|
---|
| 58 | #ifndef WGL_ARB_extensions_string
|
---|
| 59 | #endif
|
---|
| 60 |
|
---|
| 61 | #ifndef WGL_ARB_pixel_format
|
---|
| 62 | #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
|
---|
| 63 | #define WGL_DRAW_TO_WINDOW_ARB 0x2001
|
---|
| 64 | #define WGL_DRAW_TO_BITMAP_ARB 0x2002
|
---|
| 65 | #define WGL_ACCELERATION_ARB 0x2003
|
---|
| 66 | #define WGL_NEED_PALETTE_ARB 0x2004
|
---|
| 67 | #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
|
---|
| 68 | #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
|
---|
| 69 | #define WGL_SWAP_METHOD_ARB 0x2007
|
---|
| 70 | #define WGL_NUMBER_OVERLAYS_ARB 0x2008
|
---|
| 71 | #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
|
---|
| 72 | #define WGL_TRANSPARENT_ARB 0x200A
|
---|
| 73 | #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
|
---|
| 74 | #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
|
---|
| 75 | #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
|
---|
| 76 | #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
|
---|
| 77 | #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
|
---|
| 78 | #define WGL_SHARE_DEPTH_ARB 0x200C
|
---|
| 79 | #define WGL_SHARE_STENCIL_ARB 0x200D
|
---|
| 80 | #define WGL_SHARE_ACCUM_ARB 0x200E
|
---|
| 81 | #define WGL_SUPPORT_GDI_ARB 0x200F
|
---|
| 82 | #define WGL_SUPPORT_OPENGL_ARB 0x2010
|
---|
| 83 | #define WGL_DOUBLE_BUFFER_ARB 0x2011
|
---|
| 84 | #define WGL_STEREO_ARB 0x2012
|
---|
| 85 | #define WGL_PIXEL_TYPE_ARB 0x2013
|
---|
| 86 | #define WGL_COLOR_BITS_ARB 0x2014
|
---|
| 87 | #define WGL_RED_BITS_ARB 0x2015
|
---|
| 88 | #define WGL_RED_SHIFT_ARB 0x2016
|
---|
| 89 | #define WGL_GREEN_BITS_ARB 0x2017
|
---|
| 90 | #define WGL_GREEN_SHIFT_ARB 0x2018
|
---|
| 91 | #define WGL_BLUE_BITS_ARB 0x2019
|
---|
| 92 | #define WGL_BLUE_SHIFT_ARB 0x201A
|
---|
| 93 | #define WGL_ALPHA_BITS_ARB 0x201B
|
---|
| 94 | #define WGL_ALPHA_SHIFT_ARB 0x201C
|
---|
| 95 | #define WGL_ACCUM_BITS_ARB 0x201D
|
---|
| 96 | #define WGL_ACCUM_RED_BITS_ARB 0x201E
|
---|
| 97 | #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
|
---|
| 98 | #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
|
---|
| 99 | #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
|
---|
| 100 | #define WGL_DEPTH_BITS_ARB 0x2022
|
---|
| 101 | #define WGL_STENCIL_BITS_ARB 0x2023
|
---|
| 102 | #define WGL_AUX_BUFFERS_ARB 0x2024
|
---|
| 103 | #define WGL_NO_ACCELERATION_ARB 0x2025
|
---|
| 104 | #define WGL_GENERIC_ACCELERATION_ARB 0x2026
|
---|
| 105 | #define WGL_FULL_ACCELERATION_ARB 0x2027
|
---|
| 106 | #define WGL_SWAP_EXCHANGE_ARB 0x2028
|
---|
| 107 | #define WGL_SWAP_COPY_ARB 0x2029
|
---|
| 108 | #define WGL_SWAP_UNDEFINED_ARB 0x202A
|
---|
| 109 | #define WGL_TYPE_RGBA_ARB 0x202B
|
---|
| 110 | #define WGL_TYPE_COLORINDEX_ARB 0x202C
|
---|
| 111 | #endif
|
---|
| 112 |
|
---|
| 113 | #ifndef WGL_ARB_make_current_read
|
---|
| 114 | #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
|
---|
| 115 | #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
|
---|
| 116 | #endif
|
---|
| 117 |
|
---|
| 118 | #ifndef WGL_ARB_pbuffer
|
---|
| 119 | #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
|
---|
| 120 | #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
|
---|
| 121 | #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
|
---|
| 122 | #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
|
---|
| 123 | #define WGL_PBUFFER_LARGEST_ARB 0x2033
|
---|
| 124 | #define WGL_PBUFFER_WIDTH_ARB 0x2034
|
---|
| 125 | #define WGL_PBUFFER_HEIGHT_ARB 0x2035
|
---|
| 126 | #define WGL_PBUFFER_LOST_ARB 0x2036
|
---|
| 127 | #endif
|
---|
| 128 |
|
---|
| 129 | #ifndef WGL_ATI_pixel_format_float
|
---|
| 130 | #define WGL_RGBA_FLOAT_MODE_ATI 0x8820
|
---|
| 131 | #define WGL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
|
---|
| 132 | #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
|
---|
| 133 | #endif
|
---|
| 134 |
|
---|
| 135 | #ifndef WGL_EXT_make_current_read
|
---|
| 136 | #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
|
---|
| 137 | #endif
|
---|
| 138 |
|
---|
| 139 | #ifndef WGL_EXT_pixel_format
|
---|
| 140 | #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
|
---|
| 141 | #define WGL_DRAW_TO_WINDOW_EXT 0x2001
|
---|
| 142 | #define WGL_DRAW_TO_BITMAP_EXT 0x2002
|
---|
| 143 | #define WGL_ACCELERATION_EXT 0x2003
|
---|
| 144 | #define WGL_NEED_PALETTE_EXT 0x2004
|
---|
| 145 | #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
|
---|
| 146 | #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
|
---|
| 147 | #define WGL_SWAP_METHOD_EXT 0x2007
|
---|
| 148 | #define WGL_NUMBER_OVERLAYS_EXT 0x2008
|
---|
| 149 | #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
|
---|
| 150 | #define WGL_TRANSPARENT_EXT 0x200A
|
---|
| 151 | #define WGL_TRANSPARENT_VALUE_EXT 0x200B
|
---|
| 152 | #define WGL_SHARE_DEPTH_EXT 0x200C
|
---|
| 153 | #define WGL_SHARE_STENCIL_EXT 0x200D
|
---|
| 154 | #define WGL_SHARE_ACCUM_EXT 0x200E
|
---|
| 155 | #define WGL_SUPPORT_GDI_EXT 0x200F
|
---|
| 156 | #define WGL_SUPPORT_OPENGL_EXT 0x2010
|
---|
| 157 | #define WGL_DOUBLE_BUFFER_EXT 0x2011
|
---|
| 158 | #define WGL_STEREO_EXT 0x2012
|
---|
| 159 | #define WGL_PIXEL_TYPE_EXT 0x2013
|
---|
| 160 | #define WGL_COLOR_BITS_EXT 0x2014
|
---|
| 161 | #define WGL_RED_BITS_EXT 0x2015
|
---|
| 162 | #define WGL_RED_SHIFT_EXT 0x2016
|
---|
| 163 | #define WGL_GREEN_BITS_EXT 0x2017
|
---|
| 164 | #define WGL_GREEN_SHIFT_EXT 0x2018
|
---|
| 165 | #define WGL_BLUE_BITS_EXT 0x2019
|
---|
| 166 | #define WGL_BLUE_SHIFT_EXT 0x201A
|
---|
| 167 | #define WGL_ALPHA_BITS_EXT 0x201B
|
---|
| 168 | #define WGL_ALPHA_SHIFT_EXT 0x201C
|
---|
| 169 | #define WGL_ACCUM_BITS_EXT 0x201D
|
---|
| 170 | #define WGL_ACCUM_RED_BITS_EXT 0x201E
|
---|
| 171 | #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
|
---|
| 172 | #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
|
---|
| 173 | #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
|
---|
| 174 | #define WGL_DEPTH_BITS_EXT 0x2022
|
---|
| 175 | #define WGL_STENCIL_BITS_EXT 0x2023
|
---|
| 176 | #define WGL_AUX_BUFFERS_EXT 0x2024
|
---|
| 177 | #define WGL_NO_ACCELERATION_EXT 0x2025
|
---|
| 178 | #define WGL_GENERIC_ACCELERATION_EXT 0x2026
|
---|
| 179 | #define WGL_FULL_ACCELERATION_EXT 0x2027
|
---|
| 180 | #define WGL_SWAP_EXCHANGE_EXT 0x2028
|
---|
| 181 | #define WGL_SWAP_COPY_EXT 0x2029
|
---|
| 182 | #define WGL_SWAP_UNDEFINED_EXT 0x202A
|
---|
| 183 | #define WGL_TYPE_RGBA_EXT 0x202B
|
---|
| 184 | #define WGL_TYPE_COLORINDEX_EXT 0x202C
|
---|
| 185 | #endif
|
---|
| 186 |
|
---|
| 187 | #ifndef WGL_EXT_pbuffer
|
---|
| 188 | #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
|
---|
| 189 | #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
|
---|
| 190 | #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
|
---|
| 191 | #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
|
---|
| 192 | #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
|
---|
| 193 | #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
|
---|
| 194 | #define WGL_PBUFFER_LARGEST_EXT 0x2033
|
---|
| 195 | #define WGL_PBUFFER_WIDTH_EXT 0x2034
|
---|
| 196 | #define WGL_PBUFFER_HEIGHT_EXT 0x2035
|
---|
| 197 | #endif
|
---|
| 198 |
|
---|
| 199 | #ifndef WGL_ARB_render_texture
|
---|
| 200 | #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
|
---|
| 201 | #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
|
---|
| 202 | #define WGL_TEXTURE_FORMAT_ARB 0x2072
|
---|
| 203 | #define WGL_TEXTURE_TARGET_ARB 0x2073
|
---|
| 204 | #define WGL_MIPMAP_TEXTURE_ARB 0x2074
|
---|
| 205 | #define WGL_TEXTURE_RGB_ARB 0x2075
|
---|
| 206 | #define WGL_TEXTURE_RGBA_ARB 0x2076
|
---|
| 207 | #define WGL_NO_TEXTURE_ARB 0x2077
|
---|
| 208 | #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
|
---|
| 209 | #define WGL_TEXTURE_1D_ARB 0x2079
|
---|
| 210 | #define WGL_TEXTURE_2D_ARB 0x207A
|
---|
| 211 | #define WGL_MIPMAP_LEVEL_ARB 0x207B
|
---|
| 212 | #define WGL_CUBE_MAP_FACE_ARB 0x207C
|
---|
| 213 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
|
---|
| 214 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
|
---|
| 215 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
|
---|
| 216 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
|
---|
| 217 | #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
|
---|
| 218 | #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
|
---|
| 219 | #define WGL_FRONT_LEFT_ARB 0x2083
|
---|
| 220 | #define WGL_FRONT_RIGHT_ARB 0x2084
|
---|
| 221 | #define WGL_BACK_LEFT_ARB 0x2085
|
---|
| 222 | #define WGL_BACK_RIGHT_ARB 0x2086
|
---|
| 223 | #define WGL_AUX0_ARB 0x2087
|
---|
| 224 | #define WGL_AUX1_ARB 0x2088
|
---|
| 225 | #define WGL_AUX2_ARB 0x2089
|
---|
| 226 | #define WGL_AUX3_ARB 0x208A
|
---|
| 227 | #define WGL_AUX4_ARB 0x208B
|
---|
| 228 | #define WGL_AUX5_ARB 0x208C
|
---|
| 229 | #define WGL_AUX6_ARB 0x208D
|
---|
| 230 | #define WGL_AUX7_ARB 0x208E
|
---|
| 231 | #define WGL_AUX8_ARB 0x208F
|
---|
| 232 | #define WGL_AUX9_ARB 0x2090
|
---|
| 233 | #endif
|
---|
| 234 |
|
---|
| 235 | #ifndef WGL_EXT_depth_float
|
---|
| 236 | #define WGL_DEPTH_FLOAT_EXT 0x2040
|
---|
| 237 | #endif
|
---|
| 238 |
|
---|
| 239 | #ifndef WGL_NV_float_buffer
|
---|
| 240 | #define WGL_FLOAT_COMPONENTS_NV 0x20B0
|
---|
| 241 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
|
---|
| 242 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
|
---|
| 243 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
|
---|
| 244 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
|
---|
| 245 |
|
---|
| 246 | #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
|
---|
| 247 | #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
|
---|
| 248 | #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
|
---|
| 249 | #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
|
---|
| 250 | #endif
|
---|
| 251 |
|
---|
| 252 | #ifndef WGL_NV_render_texture_rectangle
|
---|
| 253 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
|
---|
| 254 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
|
---|
| 255 |
|
---|
| 256 | #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
|
---|
| 257 | #endif
|
---|
| 258 |
|
---|
| 259 |
|
---|
| 260 | #ifndef WGL_NV_render_depth_texture
|
---|
| 261 | #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
|
---|
| 262 | #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
|
---|
| 263 | #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
|
---|
| 264 | #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
|
---|
| 265 | #define WGL_DEPTH_COMPONENT_NV 0x20A7
|
---|
| 266 | #endif
|
---|
| 267 |
|
---|
| 268 | #ifndef WGL_3DFX_multisample
|
---|
| 269 | #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
|
---|
| 270 | #define WGL_SAMPLES_3DFX 0x2061
|
---|
| 271 | #endif
|
---|
| 272 |
|
---|
| 273 | #ifndef WGL_EXT_multisample
|
---|
| 274 | #define WGL_SAMPLE_BUFFERS_EXT 0x2041
|
---|
| 275 | #define WGL_SAMPLES_EXT 0x2042
|
---|
| 276 | #endif
|
---|
| 277 |
|
---|
| 278 | #ifndef WGL_I3D_unknown_genlock_extension_name
|
---|
| 279 | #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
|
---|
| 280 | #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
|
---|
| 281 | #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
|
---|
| 282 | #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
|
---|
| 283 | #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
|
---|
| 284 | #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
|
---|
| 285 | #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
|
---|
| 286 | #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
|
---|
| 287 | #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
|
---|
| 288 | #endif
|
---|
| 289 |
|
---|
| 290 | #ifndef WGL_I3D_unknown_gamma_extension_name
|
---|
| 291 | #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
|
---|
| 292 | #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
|
---|
| 293 | #endif
|
---|
| 294 |
|
---|
| 295 | #ifndef WGL_I3D_unknown_digital_video_cursor_extension_name
|
---|
| 296 | #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
|
---|
| 297 | #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
|
---|
| 298 | #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
|
---|
| 299 | #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
|
---|
| 300 | #endif
|
---|
| 301 |
|
---|
| 302 |
|
---|
| 303 | /*************************************************************/
|
---|
| 304 |
|
---|
| 305 | #ifndef WGL_ARB_pbuffer
|
---|
| 306 | DECLARE_HANDLE(HPBUFFERARB);
|
---|
| 307 | #endif
|
---|
| 308 | #ifndef WGL_EXT_pbuffer
|
---|
| 309 | DECLARE_HANDLE(HPBUFFEREXT);
|
---|
| 310 | #endif
|
---|
| 311 |
|
---|
| 312 | #ifndef WGL_ARB_buffer_region
|
---|
| 313 | #define WGL_ARB_buffer_region 1
|
---|
| 314 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 315 | extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
|
---|
| 316 | extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
|
---|
| 317 | extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
|
---|
| 318 | extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
|
---|
| 319 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 320 | typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
|
---|
| 321 | typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
|
---|
| 322 | typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
|
---|
| 323 | typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
|
---|
| 324 | #endif
|
---|
| 325 |
|
---|
| 326 | #ifndef WGL_ARB_extensions_string
|
---|
| 327 | #define WGL_ARB_extensions_string 1
|
---|
| 328 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 329 | extern const char * WINAPI wglGetExtensionsStringARB (HDC);
|
---|
| 330 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 331 | typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
|
---|
| 332 | #endif
|
---|
| 333 |
|
---|
| 334 | #ifndef WGL_ARB_pixel_format
|
---|
| 335 | #define WGL_ARB_pixel_format 1
|
---|
| 336 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 337 | extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
|
---|
| 338 | extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
|
---|
| 339 | extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
|
---|
| 340 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 341 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
|
---|
| 342 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
|
---|
| 343 | typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
|
---|
| 344 | #endif
|
---|
| 345 |
|
---|
| 346 | #ifndef WGL_ARB_make_current_read
|
---|
| 347 | #define WGL_ARB_make_current_read 1
|
---|
| 348 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 349 | extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
|
---|
| 350 | extern HDC WINAPI wglGetCurrentReadDCARB (void);
|
---|
| 351 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 352 | typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
|
---|
| 353 | typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
|
---|
| 354 | #endif
|
---|
| 355 |
|
---|
| 356 | #ifndef WGL_ARB_pbuffer
|
---|
| 357 | #define WGL_ARB_pbuffer 1
|
---|
| 358 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 359 | extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
|
---|
| 360 | extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
|
---|
| 361 | extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
|
---|
| 362 | extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
|
---|
| 363 | extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
|
---|
| 364 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 365 | typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
|
---|
| 366 | typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
|
---|
| 367 | typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
|
---|
| 368 | typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
|
---|
| 369 | typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
|
---|
| 370 | #endif
|
---|
| 371 |
|
---|
| 372 | #ifndef WGL_EXT_display_color_table
|
---|
| 373 | #define WGL_EXT_display_color_table 1
|
---|
| 374 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 375 | extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
|
---|
| 376 | extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
|
---|
| 377 | extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
|
---|
| 378 | extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
|
---|
| 379 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 380 | typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
|
---|
| 381 | typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
|
---|
| 382 | typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
|
---|
| 383 | typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
|
---|
| 384 | #endif
|
---|
| 385 |
|
---|
| 386 | #ifndef WGL_EXT_extensions_string
|
---|
| 387 | #define WGL_EXT_extensions_string 1
|
---|
| 388 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 389 | extern const char * WINAPI wglGetExtensionsStringEXT (void);
|
---|
| 390 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 391 | typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
|
---|
| 392 | #endif
|
---|
| 393 |
|
---|
| 394 | #ifndef WGL_ATI_pixel_format_float
|
---|
| 395 | #define WGL_ATI_pixel_format_float
|
---|
| 396 | #endif
|
---|
| 397 |
|
---|
| 398 | #ifndef WGL_EXT_make_current_read
|
---|
| 399 | #define WGL_EXT_make_current_read 1
|
---|
| 400 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 401 | extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
|
---|
| 402 | extern HDC WINAPI wglGetCurrentReadDCEXT (void);
|
---|
| 403 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 404 | typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
|
---|
| 405 | typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
|
---|
| 406 | #endif
|
---|
| 407 |
|
---|
| 408 | #ifndef WGL_EXT_pbuffer
|
---|
| 409 | #define WGL_EXT_pbuffer 1
|
---|
| 410 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 411 | extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
|
---|
| 412 | extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
|
---|
| 413 | extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
|
---|
| 414 | extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
|
---|
| 415 | extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
|
---|
| 416 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 417 | typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
|
---|
| 418 | typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
|
---|
| 419 | typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
|
---|
| 420 | typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
|
---|
| 421 | typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
|
---|
| 422 | #endif
|
---|
| 423 |
|
---|
| 424 | #ifndef WGL_EXT_pixel_format
|
---|
| 425 | #define WGL_EXT_pixel_format 1
|
---|
| 426 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 427 | extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
|
---|
| 428 | extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
|
---|
| 429 | extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
|
---|
| 430 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 431 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
|
---|
| 432 | typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
|
---|
| 433 | typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
|
---|
| 434 | #endif
|
---|
| 435 |
|
---|
| 436 | #ifndef WGL_EXT_swap_control
|
---|
| 437 | #define WGL_EXT_swap_control 1
|
---|
| 438 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 439 | extern BOOL WINAPI wglSwapIntervalEXT (int);
|
---|
| 440 | extern int WINAPI wglGetSwapIntervalEXT (void);
|
---|
| 441 | #endif /* WGL_WGLEXT_PROTOTYPES */
|
---|
| 442 | typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
|
---|
| 443 | typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
|
---|
| 444 | #endif
|
---|
| 445 |
|
---|
| 446 | #ifndef WGL_EXT_depth_float
|
---|
| 447 | #define WGL_EXT_depth_float 1
|
---|
| 448 | #endif
|
---|
| 449 |
|
---|
| 450 | #ifndef WGL_3DFX_multisample
|
---|
| 451 | #define WGL_3DFX_multisample 1
|
---|
| 452 | #endif
|
---|
| 453 |
|
---|
| 454 | #ifndef WGL_EXT_multisample
|
---|
| 455 | #define WGL_EXT_multisample 1
|
---|
| 456 | #endif
|
---|
| 457 |
|
---|
| 458 | /* WGL memory allocation functions for NV_vertex_array_range extension */
|
---|
| 459 | #ifndef VAR_MEMORY_FUNCS
|
---|
| 460 | #define VAR_MEMORY_FUNCS 1
|
---|
| 461 | #ifdef WGL_WGLEXT_PROTOTYPES
|
---|
| 462 | extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority);
|
---|
| 463 | extern void wglFreeMemoryNV(void * pointer);
|
---|
| 464 | #endif
|
---|
| 465 | typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority);
|
---|
| 466 | typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer);
|
---|
| 467 | #endif
|
---|
| 468 |
|
---|
| 469 | #ifndef WGL_ARB_render_texture
|
---|
| 470 | #define WGL_ARB_render_texture 1
|
---|
| 471 | typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
|
---|
| 472 | typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
|
---|
| 473 | typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int * piAttribList);
|
---|
| 474 | #endif
|
---|
| 475 |
|
---|
| 476 | #ifndef WGL_NV_float_buffer
|
---|
| 477 | #define WGL_NV_float_buffer 1
|
---|
| 478 | #endif
|
---|
| 479 |
|
---|
| 480 | #ifndef WGL_NV_render_texture_rectangle
|
---|
| 481 | #define WGL_NV_render_texture_rectangle 1
|
---|
| 482 | #endif
|
---|
| 483 |
|
---|
| 484 | #ifndef WGL_NV_render_depth_texture
|
---|
| 485 | #define WGL_NV_render_depth_texture 1
|
---|
| 486 | #endif
|
---|
| 487 |
|
---|
| 488 | #ifdef __cplusplus
|
---|
| 489 | }
|
---|
| 490 | #endif
|
---|
| 491 |
|
---|
| 492 | #endif
|
---|
| 493 |
|
---|
| 494 |
|
---|