Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members Related Pages

# wglext.h

    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_EXT_depth_float
    00194 #define WGL_DEPTH_FLOAT_EXT            0x2040
    00195 #endif
    00196
    00197 #ifndef WGL_3DFX_multisample
    00198 #define WGL_SAMPLE_BUFFERS_3DFX        0x2060
    00199 #define WGL_SAMPLES_3DFX               0x2061
    00200 #endif
    00201
    00202 #ifndef WGL_EXT_multisample
    00203 #define WGL_SAMPLE_BUFFERS_EXT         0x2041
    00204 #define WGL_SAMPLES_EXT                0x2042
    00205 #endif
    00206
    00207 #ifndef WGL_I3D_unknown_genlock_extension_name
    00208 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
    00209 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
    00210 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
    00211 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
    00212 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
    00213 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
    00214 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
    00215 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
    00216 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
    00217 #endif
    00218
    00219 #ifndef WGL_I3D_unknown_gamma_extension_name
    00220 #define WGL_GAMMA_TABLE_SIZE_I3D       0x204E
    00221 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D  0x204F
    00222 #endif
    00223
    00224 #ifndef WGL_I3D_unknown_digital_video_cursor_extension_name
    00225 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
    00226 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
    00227 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
    00228 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
    00229 #endif
    00230
    00231
    00232 /*************************************************************/
    00233
    00234 #ifndef WGL_ARB_pbuffer
    00235 DECLARE_HANDLE(HPBUFFERARB);
    00236 #endif
    00237 #ifndef WGL_EXT_pbuffer
    00238 DECLARE_HANDLE(HPBUFFEREXT);
    00239 #endif
    00240
    00241 #ifndef WGL_ARB_buffer_region
    00242 #define WGL_ARB_buffer_region 1
    00243 #ifdef WGL_WGLEXT_PROTOTYPES
    00244 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
    00245 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
    00246 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
    00247 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
    00248 #endif /* WGL_WGLEXT_PROTOTYPES */
    00249 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
    00250 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
    00251 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
    00252 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
    00253 #endif
    00254
    00255 #ifndef WGL_ARB_extensions_string
    00256 #define WGL_ARB_extensions_string 1
    00257 #ifdef WGL_WGLEXT_PROTOTYPES
    00258 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
    00259 #endif /* WGL_WGLEXT_PROTOTYPES */
    00260 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
    00261 #endif
    00262
    00263 #ifndef WGL_ARB_pixel_format
    00264 #define WGL_ARB_pixel_format 1
    00265 #ifdef WGL_WGLEXT_PROTOTYPES
    00266 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
    00267 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
    00268 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
    00269 #endif /* WGL_WGLEXT_PROTOTYPES */
    00270 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
    00271 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
    00272 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
    00273 #endif
    00274
    00275 #ifndef WGL_ARB_make_current_read
    00276 #define WGL_ARB_make_current_read 1
    00277 #ifdef WGL_WGLEXT_PROTOTYPES
    00278 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
    00279 extern HDC WINAPI wglGetCurrentReadDCARB (void);
    00280 #endif /* WGL_WGLEXT_PROTOTYPES */
    00281 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
    00282 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
    00283 #endif
    00284
    00285 #ifndef WGL_ARB_pbuffer
    00286 #define WGL_ARB_pbuffer 1
    00287 #ifdef WGL_WGLEXT_PROTOTYPES
    00288 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
    00289 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
    00290 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
    00291 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
    00292 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
    00293 #endif /* WGL_WGLEXT_PROTOTYPES */
    00294 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
    00295 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
    00296 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
    00297 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
    00298 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
    00299 #endif
    00300
    00301 #ifndef WGL_EXT_display_color_table
    00302 #define WGL_EXT_display_color_table 1
    00303 #ifdef WGL_WGLEXT_PROTOTYPES
    00304 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
    00305 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
    00306 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
    00307 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
    00308 #endif /* WGL_WGLEXT_PROTOTYPES */
    00309 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
    00310 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
    00311 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
    00312 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
    00313 #endif
    00314
    00315 #ifndef WGL_EXT_extensions_string
    00316 #define WGL_EXT_extensions_string 1
    00317 #ifdef WGL_WGLEXT_PROTOTYPES
    00318 extern const char * WINAPI wglGetExtensionsStringEXT (void);
    00319 #endif /* WGL_WGLEXT_PROTOTYPES */
    00320 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
    00321 #endif
    00322
    00323 #ifndef WGL_EXT_make_current_read
    00324 #define WGL_EXT_make_current_read 1
    00325 #ifdef WGL_WGLEXT_PROTOTYPES
    00326 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
    00327 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
    00328 #endif /* WGL_WGLEXT_PROTOTYPES */
    00329 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
    00330 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
    00331 #endif
    00332
    00333 #ifndef WGL_EXT_pbuffer
    00334 #define WGL_EXT_pbuffer 1
    00335 #ifdef WGL_WGLEXT_PROTOTYPES
    00336 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
    00337 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
    00338 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
    00339 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
    00340 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
    00341 #endif /* WGL_WGLEXT_PROTOTYPES */
    00342 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
    00343 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
    00344 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
    00345 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
    00346 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
    00347 #endif
    00348
    00349 #ifndef WGL_EXT_pixel_format
    00350 #define WGL_EXT_pixel_format 1
    00351 #ifdef WGL_WGLEXT_PROTOTYPES
    00352 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
    00353 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
    00354 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
    00355 #endif /* WGL_WGLEXT_PROTOTYPES */
    00356 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
    00357 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
    00358 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
    00359 #endif
    00360
    00361 #ifndef WGL_EXT_swap_control
    00362 #define WGL_EXT_swap_control 1
    00363 #ifdef WGL_WGLEXT_PROTOTYPES
    00364 extern BOOL WINAPI wglSwapIntervalEXT (int);
    00365 extern int WINAPI wglGetSwapIntervalEXT (void);
    00366 #endif /* WGL_WGLEXT_PROTOTYPES */
    00367 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
    00368 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
    00369 #endif
    00370
    00371 #ifndef WGL_WGL_EXT_depth_float
    00372 #define WGL_WGL_EXT_depth_float 1
    00373 #endif
    00374
    00375 #ifndef WGL_WGL_3DFX_multisample
    00376 #define WGL_WGL_3DFX_multisample 1
    00377 #endif
    00378
    00379 #ifndef WGL_WGL_EXT_multisample
    00380 #define WGL_WGL_EXT_multisample 1
    00381 #endif
    00382
    00383 /* added by Cass -- but this should already be in here! */
    00384 #ifndef WGL_NV_allocate_memory
    00385 #define WGL_NV_allocate_memory 1
    00386 #ifdef WGL_WGLEXT_PROTOTYPES
    00387 extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority);
    00388 extern void wglFreeMemoryNV(void * pointer);
    00389 #endif
    00390 typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority);
    00391 typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer);
    00392 #endif
    00393
    00394
    00395 #ifdef __cplusplus
    00396 }
    00397 #endif
    00398
    00399 #endif
    00400
    00401