00001 #ifndef __wglext_h_
00002 #define __wglext_h_
00003
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
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
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_ATI_pixel_format_float
00130 #define WGL_RGBA_FLOAT_MODE_ATI 0x8820
00131 #define WGL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
00132 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
00133 #endif
00134
00135 #ifndef WGL_EXT_make_current_read
00136 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
00137 #endif
00138
00139 #ifndef WGL_EXT_pixel_format
00140 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
00141 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
00142 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
00143 #define WGL_ACCELERATION_EXT 0x2003
00144 #define WGL_NEED_PALETTE_EXT 0x2004
00145 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
00146 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
00147 #define WGL_SWAP_METHOD_EXT 0x2007
00148 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
00149 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
00150 #define WGL_TRANSPARENT_EXT 0x200A
00151 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
00152 #define WGL_SHARE_DEPTH_EXT 0x200C
00153 #define WGL_SHARE_STENCIL_EXT 0x200D
00154 #define WGL_SHARE_ACCUM_EXT 0x200E
00155 #define WGL_SUPPORT_GDI_EXT 0x200F
00156 #define WGL_SUPPORT_OPENGL_EXT 0x2010
00157 #define WGL_DOUBLE_BUFFER_EXT 0x2011
00158 #define WGL_STEREO_EXT 0x2012
00159 #define WGL_PIXEL_TYPE_EXT 0x2013
00160 #define WGL_COLOR_BITS_EXT 0x2014
00161 #define WGL_RED_BITS_EXT 0x2015
00162 #define WGL_RED_SHIFT_EXT 0x2016
00163 #define WGL_GREEN_BITS_EXT 0x2017
00164 #define WGL_GREEN_SHIFT_EXT 0x2018
00165 #define WGL_BLUE_BITS_EXT 0x2019
00166 #define WGL_BLUE_SHIFT_EXT 0x201A
00167 #define WGL_ALPHA_BITS_EXT 0x201B
00168 #define WGL_ALPHA_SHIFT_EXT 0x201C
00169 #define WGL_ACCUM_BITS_EXT 0x201D
00170 #define WGL_ACCUM_RED_BITS_EXT 0x201E
00171 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
00172 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
00173 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
00174 #define WGL_DEPTH_BITS_EXT 0x2022
00175 #define WGL_STENCIL_BITS_EXT 0x2023
00176 #define WGL_AUX_BUFFERS_EXT 0x2024
00177 #define WGL_NO_ACCELERATION_EXT 0x2025
00178 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
00179 #define WGL_FULL_ACCELERATION_EXT 0x2027
00180 #define WGL_SWAP_EXCHANGE_EXT 0x2028
00181 #define WGL_SWAP_COPY_EXT 0x2029
00182 #define WGL_SWAP_UNDEFINED_EXT 0x202A
00183 #define WGL_TYPE_RGBA_EXT 0x202B
00184 #define WGL_TYPE_COLORINDEX_EXT 0x202C
00185 #endif
00186
00187 #ifndef WGL_EXT_pbuffer
00188 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
00189 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
00190 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
00191 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
00192 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
00193 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
00194 #define WGL_PBUFFER_LARGEST_EXT 0x2033
00195 #define WGL_PBUFFER_WIDTH_EXT 0x2034
00196 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
00197 #endif
00198
00199 #ifndef WGL_ARB_render_texture
00200 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
00201 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
00202 #define WGL_TEXTURE_FORMAT_ARB 0x2072
00203 #define WGL_TEXTURE_TARGET_ARB 0x2073
00204 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
00205 #define WGL_TEXTURE_RGB_ARB 0x2075
00206 #define WGL_TEXTURE_RGBA_ARB 0x2076
00207 #define WGL_NO_TEXTURE_ARB 0x2077
00208 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
00209 #define WGL_TEXTURE_1D_ARB 0x2079
00210 #define WGL_TEXTURE_2D_ARB 0x207A
00211 #define WGL_MIPMAP_LEVEL_ARB 0x207B
00212 #define WGL_CUBE_MAP_FACE_ARB 0x207C
00213 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
00214 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
00215 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
00216 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
00217 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
00218 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
00219 #define WGL_FRONT_LEFT_ARB 0x2083
00220 #define WGL_FRONT_RIGHT_ARB 0x2084
00221 #define WGL_BACK_LEFT_ARB 0x2085
00222 #define WGL_BACK_RIGHT_ARB 0x2086
00223 #define WGL_AUX0_ARB 0x2087
00224 #define WGL_AUX1_ARB 0x2088
00225 #define WGL_AUX2_ARB 0x2089
00226 #define WGL_AUX3_ARB 0x208A
00227 #define WGL_AUX4_ARB 0x208B
00228 #define WGL_AUX5_ARB 0x208C
00229 #define WGL_AUX6_ARB 0x208D
00230 #define WGL_AUX7_ARB 0x208E
00231 #define WGL_AUX8_ARB 0x208F
00232 #define WGL_AUX9_ARB 0x2090
00233 #endif
00234
00235 #ifndef WGL_EXT_depth_float
00236 #define WGL_DEPTH_FLOAT_EXT 0x2040
00237 #endif
00238
00239 #ifndef WGL_NV_float_buffer
00240 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
00241 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
00242 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
00243 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
00244 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
00245
00246 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
00247 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
00248 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
00249 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
00250 #endif
00251
00252 #ifndef WGL_NV_render_texture_rectangle
00253 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
00254 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
00255
00256 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
00257 #endif
00258
00259
00260 #ifndef WGL_NV_render_depth_texture
00261 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
00262 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
00263 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
00264 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
00265 #define WGL_DEPTH_COMPONENT_NV 0x20A7
00266 #endif
00267
00268 #ifndef WGL_3DFX_multisample
00269 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
00270 #define WGL_SAMPLES_3DFX 0x2061
00271 #endif
00272
00273 #ifndef WGL_EXT_multisample
00274 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
00275 #define WGL_SAMPLES_EXT 0x2042
00276 #endif
00277
00278 #ifndef WGL_I3D_unknown_genlock_extension_name
00279 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
00280 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
00281 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
00282 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
00283 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
00284 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
00285 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
00286 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
00287 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
00288 #endif
00289
00290 #ifndef WGL_I3D_unknown_gamma_extension_name
00291 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
00292 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
00293 #endif
00294
00295 #ifndef WGL_I3D_unknown_digital_video_cursor_extension_name
00296 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
00297 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
00298 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
00299 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
00300 #endif
00301
00302
00303
00304
00305 #ifndef WGL_ARB_pbuffer
00306 DECLARE_HANDLE(HPBUFFERARB);
00307 #endif
00308 #ifndef WGL_EXT_pbuffer
00309 DECLARE_HANDLE(HPBUFFEREXT);
00310 #endif
00311
00312 #ifndef WGL_ARB_buffer_region
00313 #define WGL_ARB_buffer_region 1
00314 #ifdef WGL_WGLEXT_PROTOTYPES
00315 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
00316 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
00317 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
00318 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
00319 #endif
00320 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
00321 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
00322 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
00323 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
00324 #endif
00325
00326 #ifndef WGL_ARB_extensions_string
00327 #define WGL_ARB_extensions_string 1
00328 #ifdef WGL_WGLEXT_PROTOTYPES
00329 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
00330 #endif
00331 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
00332 #endif
00333
00334 #ifndef WGL_ARB_pixel_format
00335 #define WGL_ARB_pixel_format 1
00336 #ifdef WGL_WGLEXT_PROTOTYPES
00337 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
00338 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
00339 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
00340 #endif
00341 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
00342 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
00343 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00344 #endif
00345
00346 #ifndef WGL_ARB_make_current_read
00347 #define WGL_ARB_make_current_read 1
00348 #ifdef WGL_WGLEXT_PROTOTYPES
00349 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
00350 extern HDC WINAPI wglGetCurrentReadDCARB (void);
00351 #endif
00352 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00353 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
00354 #endif
00355
00356 #ifndef WGL_ARB_pbuffer
00357 #define WGL_ARB_pbuffer 1
00358 #ifdef WGL_WGLEXT_PROTOTYPES
00359 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
00360 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
00361 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
00362 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
00363 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
00364 #endif
00365 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00366 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
00367 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
00368 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
00369 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
00370 #endif
00371
00372 #ifndef WGL_EXT_display_color_table
00373 #define WGL_EXT_display_color_table 1
00374 #ifdef WGL_WGLEXT_PROTOTYPES
00375 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
00376 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
00377 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
00378 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
00379 #endif
00380 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00381 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
00382 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00383 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00384 #endif
00385
00386 #ifndef WGL_EXT_extensions_string
00387 #define WGL_EXT_extensions_string 1
00388 #ifdef WGL_WGLEXT_PROTOTYPES
00389 extern const char * WINAPI wglGetExtensionsStringEXT (void);
00390 #endif
00391 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
00392 #endif
00393
00394 #ifndef WGL_ATI_pixel_format_float
00395 #define WGL_ATI_pixel_format_float
00396 #endif
00397
00398 #ifndef WGL_EXT_make_current_read
00399 #define WGL_EXT_make_current_read 1
00400 #ifdef WGL_WGLEXT_PROTOTYPES
00401 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
00402 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
00403 #endif
00404 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00405 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
00406 #endif
00407
00408 #ifndef WGL_EXT_pbuffer
00409 #define WGL_EXT_pbuffer 1
00410 #ifdef WGL_WGLEXT_PROTOTYPES
00411 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
00412 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
00413 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
00414 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
00415 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
00416 #endif
00417 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00418 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
00419 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
00420 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
00421 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
00422 #endif
00423
00424 #ifndef WGL_EXT_pixel_format
00425 #define WGL_EXT_pixel_format 1
00426 #ifdef WGL_WGLEXT_PROTOTYPES
00427 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
00428 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
00429 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
00430 #endif
00431 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
00432 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
00433 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00434 #endif
00435
00436 #ifndef WGL_EXT_swap_control
00437 #define WGL_EXT_swap_control 1
00438 #ifdef WGL_WGLEXT_PROTOTYPES
00439 extern BOOL WINAPI wglSwapIntervalEXT (int);
00440 extern int WINAPI wglGetSwapIntervalEXT (void);
00441 #endif
00442 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
00443 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
00444 #endif
00445
00446 #ifndef WGL_EXT_depth_float
00447 #define WGL_EXT_depth_float 1
00448 #endif
00449
00450 #ifndef WGL_3DFX_multisample
00451 #define WGL_3DFX_multisample 1
00452 #endif
00453
00454 #ifndef WGL_EXT_multisample
00455 #define WGL_EXT_multisample 1
00456 #endif
00457
00458
00459 #ifndef VAR_MEMORY_FUNCS
00460 #define VAR_MEMORY_FUNCS 1
00461 #ifdef WGL_WGLEXT_PROTOTYPES
00462 extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority);
00463 extern void wglFreeMemoryNV(void * pointer);
00464 #endif
00465 typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority);
00466 typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer);
00467 #endif
00468
00469 #ifndef WGL_ARB_render_texture
00470 #define WGL_ARB_render_texture 1
00471 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00472 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00473 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int * piAttribList);
00474 #endif
00475
00476 #ifndef WGL_NV_float_buffer
00477 #define WGL_NV_float_buffer 1
00478 #endif
00479
00480 #ifndef WGL_NV_render_texture_rectangle
00481 #define WGL_NV_render_texture_rectangle 1
00482 #endif
00483
00484 #ifndef WGL_NV_render_depth_texture
00485 #define WGL_NV_render_depth_texture 1
00486 #endif
00487
00488 #ifdef __cplusplus
00489 }
00490 #endif
00491
00492 #endif
00493
00494