Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# wglext.h

Go to the documentation of this file.

    00001 #ifndef __wglext_h_
    00002 #define __wglext_h_
    00003
    00004 #ifdef __cplusplus
    00005 extern "C" {
    00006 #endif
    00007
    00008 /*
    00009 ** License Applicability. Except to the extent portions of this file are
    00010 ** made subject to an alternative license as permitted in the SGI Free
    00011 ** Software License B, Version 1.1 (the "License"), the contents of this
    00012 ** file are subject only to the provisions of the License. You may not use
    00013 ** this file except in compliance with the License. You may obtain a copy
    00014 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
    00015 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
    00016 **
    00017 ** http://oss.sgi.com/projects/FreeB
    00018 **
    00019 ** Note that, as provided in the License, the Software is distributed on an
    00020 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
    00021 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
    00022 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
    00023 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
    00024 **
    00025 ** Original Code. The Original Code is: OpenGL Sample Implementation,
    00026 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
    00027 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
    00028 ** Copyright in any portions created by third parties is as indicated
    00029 ** elsewhere herein. All Rights Reserved.
    00030 **
    00031 ** Additional Notice Provisions: This software was created using the
    00032 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
    00033 ** not been independently verified as being compliant with the OpenGL(R)
    00034 ** version 1.2.1 Specification.
    00035 */
    00036
    00037 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
    00038 #define WIN32_LEAN_AND_MEAN 1
    00039 #include <windows.h>
    00040 #endif
    00041
    00042 #ifndef APIENTRY
    00043 #define APIENTRY
    00044 #endif
    00045
    00046 /*************************************************************/
    00047
    00048 /* Header file version number */
    00049 #define WGL_WGLEXT_VERSION 1
    00050
    00051 #ifndef WGL_ARB_buffer_region
    00052 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
    00053 #define WGL_BACK_COLOR_BUFFER_BIT_ARB  0x00000002
    00054 #define WGL_DEPTH_BUFFER_BIT_ARB       0x00000004
    00055 #define WGL_STENCIL_BUFFER_BIT_ARB     0x00000008
    00056 #endif
    00057
    00058 #ifndef WGL_ARB_extensions_string
    00059 #endif
    00060
    00061 #ifndef WGL_ARB_pixel_format
    00062 #define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
    00063 #define WGL_DRAW_TO_WINDOW_ARB         0x2001
    00064 #define WGL_DRAW_TO_BITMAP_ARB         0x2002
    00065 #define WGL_ACCELERATION_ARB           0x2003
    00066 #define WGL_NEED_PALETTE_ARB           0x2004
    00067 #define WGL_NEED_SYSTEM_PALETTE_ARB    0x2005
    00068 #define WGL_SWAP_LAYER_BUFFERS_ARB     0x2006
    00069 #define WGL_SWAP_METHOD_ARB            0x2007
    00070 #define WGL_NUMBER_OVERLAYS_ARB        0x2008
    00071 #define WGL_NUMBER_UNDERLAYS_ARB       0x2009
    00072 #define WGL_TRANSPARENT_ARB            0x200A
    00073 #define WGL_TRANSPARENT_RED_VALUE_ARB  0x2037
    00074 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
    00075 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
    00076 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
    00077 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
    00078 #define WGL_SHARE_DEPTH_ARB            0x200C
    00079 #define WGL_SHARE_STENCIL_ARB          0x200D
    00080 #define WGL_SHARE_ACCUM_ARB            0x200E
    00081 #define WGL_SUPPORT_GDI_ARB            0x200F
    00082 #define WGL_SUPPORT_OPENGL_ARB         0x2010
    00083 #define WGL_DOUBLE_BUFFER_ARB          0x2011
    00084 #define WGL_STEREO_ARB                 0x2012
    00085 #define WGL_PIXEL_TYPE_ARB             0x2013
    00086 #define WGL_COLOR_BITS_ARB             0x2014
    00087 #define WGL_RED_BITS_ARB               0x2015
    00088 #define WGL_RED_SHIFT_ARB              0x2016
    00089 #define WGL_GREEN_BITS_ARB             0x2017
    00090 #define WGL_GREEN_SHIFT_ARB            0x2018
    00091 #define WGL_BLUE_BITS_ARB              0x2019
    00092 #define WGL_BLUE_SHIFT_ARB             0x201A
    00093 #define WGL_ALPHA_BITS_ARB             0x201B
    00094 #define WGL_ALPHA_SHIFT_ARB            0x201C
    00095 #define WGL_ACCUM_BITS_ARB             0x201D
    00096 #define WGL_ACCUM_RED_BITS_ARB         0x201E
    00097 #define WGL_ACCUM_GREEN_BITS_ARB       0x201F
    00098 #define WGL_ACCUM_BLUE_BITS_ARB        0x2020
    00099 #define WGL_ACCUM_ALPHA_BITS_ARB       0x2021
    00100 #define WGL_DEPTH_BITS_ARB             0x2022
    00101 #define WGL_STENCIL_BITS_ARB           0x2023
    00102 #define WGL_AUX_BUFFERS_ARB            0x2024
    00103 #define WGL_NO_ACCELERATION_ARB        0x2025
    00104 #define WGL_GENERIC_ACCELERATION_ARB   0x2026
    00105 #define WGL_FULL_ACCELERATION_ARB      0x2027
    00106 #define WGL_SWAP_EXCHANGE_ARB          0x2028
    00107 #define WGL_SWAP_COPY_ARB              0x2029
    00108 #define WGL_SWAP_UNDEFINED_ARB         0x202A
    00109 #define WGL_TYPE_RGBA_ARB              0x202B
    00110 #define WGL_TYPE_COLORINDEX_ARB        0x202C
    00111 #endif
    00112
    00113 #ifndef WGL_ARB_make_current_read
    00114 #define ERROR_INVALID_PIXEL_TYPE_ARB   0x2043
    00115 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
    00116 #endif
    00117
    00118 #ifndef WGL_ARB_pbuffer
    00119 #define WGL_DRAW_TO_PBUFFER_ARB        0x202D
    00120 #define WGL_MAX_PBUFFER_PIXELS_ARB     0x202E
    00121 #define WGL_MAX_PBUFFER_WIDTH_ARB      0x202F
    00122 #define WGL_MAX_PBUFFER_HEIGHT_ARB     0x2030
    00123 #define WGL_PBUFFER_LARGEST_ARB        0x2033
    00124 #define WGL_PBUFFER_WIDTH_ARB          0x2034
    00125 #define WGL_PBUFFER_HEIGHT_ARB         0x2035
    00126 #define WGL_PBUFFER_LOST_ARB           0x2036
    00127 #endif
    00128
    00129 #ifndef WGL_EXT_make_current_read
    00130 #define ERROR_INVALID_PIXEL_TYPE_EXT   0x2043
    00131 #endif
    00132
    00133 #ifndef WGL_EXT_pixel_format
    00134 #define WGL_NUMBER_PIXEL_FORMATS_EXT   0x2000
    00135 #define WGL_DRAW_TO_WINDOW_EXT         0x2001
    00136 #define WGL_DRAW_TO_BITMAP_EXT         0x2002
    00137 #define WGL_ACCELERATION_EXT           0x2003
    00138 #define WGL_NEED_PALETTE_EXT           0x2004
    00139 #define WGL_NEED_SYSTEM_PALETTE_EXT    0x2005
    00140 #define WGL_SWAP_LAYER_BUFFERS_EXT     0x2006
    00141 #define WGL_SWAP_METHOD_EXT            0x2007
    00142 #define WGL_NUMBER_OVERLAYS_EXT        0x2008
    00143 #define WGL_NUMBER_UNDERLAYS_EXT       0x2009
    00144 #define WGL_TRANSPARENT_EXT            0x200A
    00145 #define WGL_TRANSPARENT_VALUE_EXT      0x200B
    00146 #define WGL_SHARE_DEPTH_EXT            0x200C
    00147 #define WGL_SHARE_STENCIL_EXT          0x200D
    00148 #define WGL_SHARE_ACCUM_EXT            0x200E
    00149 #define WGL_SUPPORT_GDI_EXT            0x200F
    00150 #define WGL_SUPPORT_OPENGL_EXT         0x2010
    00151 #define WGL_DOUBLE_BUFFER_EXT          0x2011
    00152 #define WGL_STEREO_EXT                 0x2012
    00153 #define WGL_PIXEL_TYPE_EXT             0x2013
    00154 #define WGL_COLOR_BITS_EXT             0x2014
    00155 #define WGL_RED_BITS_EXT               0x2015
    00156 #define WGL_RED_SHIFT_EXT              0x2016
    00157 #define WGL_GREEN_BITS_EXT             0x2017
    00158 #define WGL_GREEN_SHIFT_EXT            0x2018
    00159 #define WGL_BLUE_BITS_EXT              0x2019
    00160 #define WGL_BLUE_SHIFT_EXT             0x201A
    00161 #define WGL_ALPHA_BITS_EXT             0x201B
    00162 #define WGL_ALPHA_SHIFT_EXT            0x201C
    00163 #define WGL_ACCUM_BITS_EXT             0x201D
    00164 #define WGL_ACCUM_RED_BITS_EXT         0x201E
    00165 #define WGL_ACCUM_GREEN_BITS_EXT       0x201F
    00166 #define WGL_ACCUM_BLUE_BITS_EXT        0x2020
    00167 #define WGL_ACCUM_ALPHA_BITS_EXT       0x2021
    00168 #define WGL_DEPTH_BITS_EXT             0x2022
    00169 #define WGL_STENCIL_BITS_EXT           0x2023
    00170 #define WGL_AUX_BUFFERS_EXT            0x2024
    00171 #define WGL_NO_ACCELERATION_EXT        0x2025
    00172 #define WGL_GENERIC_ACCELERATION_EXT   0x2026
    00173 #define WGL_FULL_ACCELERATION_EXT      0x2027
    00174 #define WGL_SWAP_EXCHANGE_EXT          0x2028
    00175 #define WGL_SWAP_COPY_EXT              0x2029
    00176 #define WGL_SWAP_UNDEFINED_EXT         0x202A
    00177 #define WGL_TYPE_RGBA_EXT              0x202B
    00178 #define WGL_TYPE_COLORINDEX_EXT        0x202C
    00179 #endif
    00180
    00181 #ifndef WGL_EXT_pbuffer
    00182 #define WGL_DRAW_TO_PBUFFER_EXT        0x202D
    00183 #define WGL_MAX_PBUFFER_PIXELS_EXT     0x202E
    00184 #define WGL_MAX_PBUFFER_WIDTH_EXT      0x202F
    00185 #define WGL_MAX_PBUFFER_HEIGHT_EXT     0x2030
    00186 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT  0x2031
    00187 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
    00188 #define WGL_PBUFFER_LARGEST_EXT        0x2033
    00189 #define WGL_PBUFFER_WIDTH_EXT          0x2034
    00190 #define WGL_PBUFFER_HEIGHT_EXT         0x2035
    00191 #endif
    00192
    00193 #ifndef WGL_ARB_render_texture
    00194 #define WGL_BIND_TO_TEXTURE_RGB_ARB        0x2070
    00195 #define WGL_BIND_TO_TEXTURE_RGBA_ARB       0x2071
    00196 #define WGL_TEXTURE_FORMAT_ARB             0x2072
    00197 #define WGL_TEXTURE_TARGET_ARB             0x2073
    00198 #define WGL_MIPMAP_TEXTURE_ARB             0x2074
    00199 #define WGL_TEXTURE_RGB_ARB                0x2075
    00200 #define WGL_TEXTURE_RGBA_ARB               0x2076
    00201 #define WGL_NO_TEXTURE_ARB                 0x2077
    00202 #define WGL_TEXTURE_CUBE_MAP_ARB           0x2078
    00203 #define WGL_TEXTURE_1D_ARB                 0x2079
    00204 #define WGL_TEXTURE_2D_ARB                 0x207A
    00205 #define WGL_MIPMAP_LEVEL_ARB               0x207B
    00206 #define WGL_CUBE_MAP_FACE_ARB              0x207C
    00207 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
    00208 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
    00209 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
    00210 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
    00211 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
    00212 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
    00213 #define WGL_FRONT_LEFT_ARB                 0x2083
    00214 #define WGL_FRONT_RIGHT_ARB                0x2084
    00215 #define WGL_BACK_LEFT_ARB                  0x2085
    00216 #define WGL_BACK_RIGHT_ARB                 0x2086
    00217 #define WGL_AUX0_ARB                       0x2087
    00218 #define WGL_AUX1_ARB                       0x2088
    00219 #define WGL_AUX2_ARB                       0x2089
    00220 #define WGL_AUX3_ARB                       0x208A
    00221 #define WGL_AUX4_ARB                       0x208B
    00222 #define WGL_AUX5_ARB                       0x208C
    00223 #define WGL_AUX6_ARB                       0x208D
    00224 #define WGL_AUX7_ARB                       0x208E
    00225 #define WGL_AUX8_ARB                       0x208F
    00226 #define WGL_AUX9_ARB                       0x2090
    00227 #endif
    00228
    00229 #ifndef WGL_EXT_depth_float
    00230 #define WGL_DEPTH_FLOAT_EXT                0x2040
    00231 #endif
    00232
    00233 #ifndef WGL_NV_float_buffer
    00234 #define WGL_FLOAT_COMPONENTS_NV                     0x20B0
    00235 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV    0x20B1
    00236 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV   0x20B2
    00237 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV  0x20B3
    00238 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
    00239
    00240 #define WGL_TEXTURE_FLOAT_R_NV                      0x20B5
    00241 #define WGL_TEXTURE_FLOAT_RG_NV                     0x20B6
    00242 #define WGL_TEXTURE_FLOAT_RGB_NV                    0x20B7
    00243 #define WGL_TEXTURE_FLOAT_RGBA_NV                   0x20B8
    00244 #endif
    00245
    00246 #ifndef WGL_NV_render_texture_rectangle
    00247 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV        0x20A0
    00248 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV       0x20A1
    00249
    00250 #define WGL_TEXTURE_RECTANGLE_NV                    0x20A2
    00251 #endif
    00252
    00253
    00254 #ifndef WGL_NV_render_depth_texture
    00255 #define WGL_TEXTURE_DEPTH_COMPONENT_NV          0x20A6
    00256 #define WGL_DEPTH_TEXTURE_FORMAT_NV             0x20A5
    00257 #define WGL_BIND_TO_TEXTURE_DEPTH_NV            0x20A3
    00258 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV  0x20A4
    00259 #define WGL_DEPTH_COMPONENT_NV                  0x20A7
    00260 #endif
    00261
    00262 #ifndef WGL_3DFX_multisample
    00263 #define WGL_SAMPLE_BUFFERS_3DFX        0x2060
    00264 #define WGL_SAMPLES_3DFX               0x2061
    00265 #endif
    00266
    00267 #ifndef WGL_EXT_multisample
    00268 #define WGL_SAMPLE_BUFFERS_EXT         0x2041
    00269 #define WGL_SAMPLES_EXT                0x2042
    00270 #endif
    00271
    00272 #ifndef WGL_I3D_unknown_genlock_extension_name
    00273 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
    00274 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
    00275 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
    00276 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
    00277 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
    00278 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
    00279 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
    00280 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
    00281 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
    00282 #endif
    00283
    00284 #ifndef WGL_I3D_unknown_gamma_extension_name
    00285 #define WGL_GAMMA_TABLE_SIZE_I3D       0x204E
    00286 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D  0x204F
    00287 #endif
    00288
    00289 #ifndef WGL_I3D_unknown_digital_video_cursor_extension_name
    00290 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
    00291 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
    00292 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
    00293 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
    00294 #endif
    00295
    00296
    00297 /*************************************************************/
    00298
    00299 #ifndef WGL_ARB_pbuffer
    00300 DECLARE_HANDLE(HPBUFFERARB);
    00301 #endif
    00302 #ifndef WGL_EXT_pbuffer
    00303 DECLARE_HANDLE(HPBUFFEREXT);
    00304 #endif
    00305
    00306 #ifndef WGL_ARB_buffer_region
    00307 #define WGL_ARB_buffer_region 1
    00308 #ifdef WGL_WGLEXT_PROTOTYPES
    00309 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
    00310 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
    00311 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
    00312 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
    00313 #endif /* WGL_WGLEXT_PROTOTYPES */
    00314 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
    00315 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
    00316 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
    00317 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
    00318 #endif
    00319
    00320 #ifndef WGL_ARB_extensions_string
    00321 #define WGL_ARB_extensions_string 1
    00322 #ifdef WGL_WGLEXT_PROTOTYPES
    00323 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
    00324 #endif /* WGL_WGLEXT_PROTOTYPES */
    00325 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
    00326 #endif
    00327
    00328 #ifndef WGL_ARB_pixel_format
    00329 #define WGL_ARB_pixel_format 1
    00330 #ifdef WGL_WGLEXT_PROTOTYPES
    00331 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
    00332 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
    00333 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
    00334 #endif /* WGL_WGLEXT_PROTOTYPES */
    00335 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
    00336 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
    00337 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
    00338 #endif
    00339
    00340 #ifndef WGL_ARB_make_current_read
    00341 #define WGL_ARB_make_current_read 1
    00342 #ifdef WGL_WGLEXT_PROTOTYPES
    00343 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
    00344 extern HDC WINAPI wglGetCurrentReadDCARB (void);
    00345 #endif /* WGL_WGLEXT_PROTOTYPES */
    00346 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
    00347 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
    00348 #endif
    00349
    00350 #ifndef WGL_ARB_pbuffer
    00351 #define WGL_ARB_pbuffer 1
    00352 #ifdef WGL_WGLEXT_PROTOTYPES
    00353 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
    00354 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
    00355 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
    00356 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
    00357 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
    00358 #endif /* WGL_WGLEXT_PROTOTYPES */
    00359 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
    00360 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
    00361 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
    00362 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
    00363 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
    00364 #endif
    00365
    00366 #ifndef WGL_EXT_display_color_table
    00367 #define WGL_EXT_display_color_table 1
    00368 #ifdef WGL_WGLEXT_PROTOTYPES
    00369 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
    00370 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
    00371 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
    00372 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
    00373 #endif /* WGL_WGLEXT_PROTOTYPES */
    00374 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
    00375 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
    00376 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
    00377 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
    00378 #endif
    00379
    00380 #ifndef WGL_EXT_extensions_string
    00381 #define WGL_EXT_extensions_string 1
    00382 #ifdef WGL_WGLEXT_PROTOTYPES
    00383 extern const char * WINAPI wglGetExtensionsStringEXT (void);
    00384 #endif /* WGL_WGLEXT_PROTOTYPES */
    00385 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
    00386 #endif
    00387
    00388 #ifndef WGL_EXT_make_current_read
    00389 #define WGL_EXT_make_current_read 1
    00390 #ifdef WGL_WGLEXT_PROTOTYPES
    00391 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
    00392 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
    00393 #endif /* WGL_WGLEXT_PROTOTYPES */
    00394 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
    00395 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
    00396 #endif
    00397
    00398 #ifndef WGL_EXT_pbuffer
    00399 #define WGL_EXT_pbuffer 1
    00400 #ifdef WGL_WGLEXT_PROTOTYPES
    00401 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
    00402 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
    00403 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
    00404 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
    00405 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
    00406 #endif /* WGL_WGLEXT_PROTOTYPES */
    00407 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
    00408 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
    00409 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
    00410 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
    00411 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
    00412 #endif
    00413
    00414 #ifndef WGL_EXT_pixel_format
    00415 #define WGL_EXT_pixel_format 1
    00416 #ifdef WGL_WGLEXT_PROTOTYPES
    00417 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
    00418 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
    00419 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
    00420 #endif /* WGL_WGLEXT_PROTOTYPES */
    00421 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
    00422 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
    00423 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
    00424 #endif
    00425
    00426 #ifndef WGL_EXT_swap_control
    00427 #define WGL_EXT_swap_control 1
    00428 #ifdef WGL_WGLEXT_PROTOTYPES
    00429 extern BOOL WINAPI wglSwapIntervalEXT (int);
    00430 extern int WINAPI wglGetSwapIntervalEXT (void);
    00431 #endif /* WGL_WGLEXT_PROTOTYPES */
    00432 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
    00433 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
    00434 #endif
    00435
    00436 #ifndef WGL_EXT_depth_float
    00437 #define WGL_EXT_depth_float 1
    00438 #endif
    00439
    00440 #ifndef WGL_3DFX_multisample
    00441 #define WGL_3DFX_multisample 1
    00442 #endif
    00443
    00444 #ifndef WGL_EXT_multisample
    00445 #define WGL_EXT_multisample 1
    00446 #endif
    00447
    00448 /* added by Cass -- but this should already be in here! */
    00449 #ifndef WGL_NV_allocate_memory
    00450 #define WGL_NV_allocate_memory 1
    00451 #ifdef WGL_WGLEXT_PROTOTYPES
    00452 extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority);
    00453 extern void wglFreeMemoryNV(void * pointer);
    00454 #endif
    00455 typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority);
    00456 typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer);
    00457 #endif
    00458
    00459 #ifndef WGL_ARB_render_texture
    00460 #define WGL_ARB_render_texture 1
    00461 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
    00462 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
    00463 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int * piAttribList);
    00464 #endif
    00465
    00466 #ifndef WGL_NV_float_buffer
    00467 #define WGL_NV_float_buffer 1
    00468 #endif
    00469
    00470 #ifndef WGL_NV_render_texture_rectangle
    00471 #define WGL_NV_render_texture_rectangle 1
    00472 #endif
    00473
    00474 #ifndef WGL_NV_render_depth_texture
    00475 #define WGL_NV_render_depth_texture 1
    00476 #endif
    00477
    00478 #ifdef __cplusplus
    00479 }
    00480 #endif
    00481
    00482 #endif
    00483
    00484