Main Page | Namespace List | Class Hierarchy | Alphabetical List | 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_ARB_multisample
00273 #define WGL_SAMPLE_BUFFERS_ARB  0x2041
00274 #define WGL_SAMPLES_ARB         0x2042
00275 #endif
00276 
00277 #ifndef WGL_ATI_pixel_format_float
00278 #define GL_RGBA_FLOAT_MODE_ATI             0x8820
00279 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
00280 #define WGL_TYPE_RGBA_FLOAT_ATI            0x21A0
00281 #endif
00282 
00283 #ifndef WGL_I3D_unknown_genlock_extension_name
00284 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
00285 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
00286 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
00287 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
00288 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
00289 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
00290 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
00291 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
00292 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
00293 #endif
00294 
00295 #ifndef WGL_I3D_unknown_gamma_extension_name
00296 #define WGL_GAMMA_TABLE_SIZE_I3D       0x204E
00297 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D  0x204F
00298 #endif
00299 
00300 #ifndef WGL_I3D_unknown_digital_video_cursor_extension_name
00301 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
00302 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
00303 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
00304 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
00305 #endif
00306 
00307 
00308 /*************************************************************/
00309 
00310 #ifndef WGL_ARB_pbuffer
00311 DECLARE_HANDLE(HPBUFFERARB);
00312 #endif
00313 #ifndef WGL_EXT_pbuffer
00314 DECLARE_HANDLE(HPBUFFEREXT);
00315 #endif
00316 
00317 #ifndef WGL_ARB_buffer_region
00318 #define WGL_ARB_buffer_region 1
00319 #ifdef WGL_WGLEXT_PROTOTYPES
00320 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
00321 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
00322 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
00323 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
00324 #endif /* WGL_WGLEXT_PROTOTYPES */
00325 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
00326 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
00327 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
00328 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
00329 #endif
00330 
00331 #ifndef WGL_ARB_extensions_string
00332 #define WGL_ARB_extensions_string 1
00333 #ifdef WGL_WGLEXT_PROTOTYPES
00334 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
00335 #endif /* WGL_WGLEXT_PROTOTYPES */
00336 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
00337 extern PFNWGLGETEXTENSIONSSTRINGARBPROC    wglGetExtensionsStringARB;
00338 #endif
00339 
00340 #ifndef WGL_ARB_pixel_format
00341 #define WGL_ARB_pixel_format 1
00342 #ifdef WGL_WGLEXT_PROTOTYPES
00343 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
00344 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
00345 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
00346 #endif /* WGL_WGLEXT_PROTOTYPES */
00347 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
00348 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
00349 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00350 extern PFNWGLGETPIXELFORMATATTRIBIVARBPROC wglGetPixelFormatAttribivARB;
00351 extern PFNWGLGETPIXELFORMATATTRIBFVARBPROC wglGetPixelFormatAttribfvARB;
00352 extern PFNWGLCHOOSEPIXELFORMATARBPROC      wglChoosePixelFormatARB;
00353 #endif
00354 
00355 #ifndef WGL_ARB_make_current_read
00356 #define WGL_ARB_make_current_read 1
00357 #ifdef WGL_WGLEXT_PROTOTYPES
00358 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
00359 extern HDC WINAPI wglGetCurrentReadDCARB (void);
00360 #endif /* WGL_WGLEXT_PROTOTYPES */
00361 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00362 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
00363 #endif
00364 
00365 #ifndef WGL_ARB_pbuffer
00366 #define WGL_ARB_pbuffer 1
00367 #ifdef WGL_WGLEXT_PROTOTYPES
00368 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
00369 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
00370 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
00371 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
00372 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
00373 #endif /* WGL_WGLEXT_PROTOTYPES */
00374 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00375 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
00376 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
00377 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
00378 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
00379 extern PFNWGLCREATEPBUFFERARBPROC          wglCreatePbufferARB;
00380 extern PFNWGLGETPBUFFERDCARBPROC           wglGetPbufferDCARB;
00381 extern PFNWGLRELEASEPBUFFERDCARBPROC       wglReleasePbufferDCARB;
00382 extern PFNWGLDESTROYPBUFFERARBPROC         wglDestroyPbufferARB;
00383 extern PFNWGLQUERYPBUFFERARBPROC           wglQueryPbufferARB;
00384 #endif
00385 
00386 #ifndef WGL_EXT_display_color_table
00387 #define WGL_EXT_display_color_table 1
00388 #ifdef WGL_WGLEXT_PROTOTYPES
00389 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
00390 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
00391 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
00392 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
00393 #endif /* WGL_WGLEXT_PROTOTYPES */
00394 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00395 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
00396 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00397 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00398 #endif
00399 
00400 #ifndef WGL_EXT_extensions_string
00401 #define WGL_EXT_extensions_string 1
00402 #ifdef WGL_WGLEXT_PROTOTYPES
00403 extern const char * WINAPI wglGetExtensionsStringEXT (void);
00404 #endif /* WGL_WGLEXT_PROTOTYPES */
00405 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
00406 #endif
00407 
00408 #ifndef WGL_EXT_make_current_read
00409 #define WGL_EXT_make_current_read 1
00410 #ifdef WGL_WGLEXT_PROTOTYPES
00411 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
00412 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
00413 #endif /* WGL_WGLEXT_PROTOTYPES */
00414 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00415 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
00416 #endif
00417 
00418 #ifndef WGL_EXT_pbuffer
00419 #define WGL_EXT_pbuffer 1
00420 #ifdef WGL_WGLEXT_PROTOTYPES
00421 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
00422 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
00423 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
00424 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
00425 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
00426 #endif /* WGL_WGLEXT_PROTOTYPES */
00427 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00428 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
00429 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
00430 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
00431 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
00432 #endif
00433 
00434 #ifndef WGL_EXT_pixel_format
00435 #define WGL_EXT_pixel_format 1
00436 #ifdef WGL_WGLEXT_PROTOTYPES
00437 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
00438 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
00439 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
00440 #endif /* WGL_WGLEXT_PROTOTYPES */
00441 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
00442 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
00443 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00444 #endif
00445 
00446 #ifndef WGL_EXT_swap_control
00447 #define WGL_EXT_swap_control 1
00448 #ifdef WGL_WGLEXT_PROTOTYPES
00449 extern BOOL WINAPI wglSwapIntervalEXT (int);
00450 extern int WINAPI wglGetSwapIntervalEXT (void);
00451 #endif /* WGL_WGLEXT_PROTOTYPES */
00452 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
00453 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
00454 #endif
00455 
00456 #ifndef WGL_EXT_depth_float
00457 #define WGL_EXT_depth_float 1
00458 #endif
00459 
00460 #ifndef WGL_3DFX_multisample
00461 #define WGL_3DFX_multisample 1
00462 #endif
00463 
00464 #ifndef WGL_EXT_multisample
00465 #define WGL_EXT_multisample 1
00466 #endif
00467 
00468 /* added by Cass -- but this should already be in here! */
00469 #ifndef WGL_NV_allocate_memory
00470 #define WGL_NV_allocate_memory 1
00471 #ifdef WGL_WGLEXT_PROTOTYPES
00472 extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority);
00473 extern void wglFreeMemoryNV(void * pointer); 
00474 #endif
00475 typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority);
00476 typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer);
00477 #endif
00478 
00479 #ifndef WGL_ARB_render_texture
00480 #define WGL_ARB_render_texture 1
00481 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00482 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00483 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int * piAttribList);
00484 #endif
00485 
00486 #ifndef WGL_NV_float_buffer
00487 #define WGL_NV_float_buffer 1
00488 #endif
00489 
00490 #ifndef WGL_NV_render_texture_rectangle
00491 #define WGL_NV_render_texture_rectangle 1
00492 #endif
00493 
00494 #ifndef WGL_NV_render_depth_texture
00495 #define WGL_NV_render_depth_texture 1
00496 #endif
00497 
00498 #ifndef WGL_ARB_multisample
00499 #define WGL_ARB_multisample 1
00500 #endif
00501 
00502 #ifndef WGL_ATI_pixel_format_float
00503 #define WGL_ATI_pixel_format_float 1
00504 #endif
00505 
00506 #ifdef __cplusplus
00507 }
00508 #endif
00509 
00510 #include <string>
00511 void InitWGLExtensions(HINSTANCE);
00512 bool WGLExtensionSupported(const std::string& extName);
00513 
00514 #endif
00515 
00516 

Generated on Sat Jan 14 22:30:31 2006 for Celestia by  doxygen 1.4.1