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