00001
00002
00003
00004
00005
00006
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 #include "glew/glew_singleton.H"
00033
00034 #ifndef GLEW_STATIC
00035 # define GLEW_STATIC
00036 #endif // GLEW_STATIC
00037
00038 #ifndef __wglew_h__
00039 #define __wglew_h__
00040 #define __WGLEW_H__
00041
00042 #ifdef __wglext_h_
00043 #error wglext.h included before wglew.h
00044 #endif
00045
00046 #define __wglext_h_
00047
00048 #if !defined(APIENTRY) && !defined(__CYGWIN__)
00049 # ifndef WIN32_LEAN_AND_MEAN
00050 # define WIN32_LEAN_AND_MEAN 1
00051 # endif
00052 #include <windows.h>
00053 #endif
00054
00055
00056
00057
00058
00059 #ifdef GLEW_STATIC
00060 # define GLEWAPI extern
00061 #else
00062 # ifdef GLEW_BUILD
00063 # define GLEWAPI extern __declspec(dllexport)
00064 # else
00065 # define GLEWAPI extern __declspec(dllimport)
00066 # endif
00067 #endif
00068
00069 #ifdef __cplusplus
00070 extern "C" {
00071 #endif
00072
00073
00074
00075 #ifndef WGL_3DFX_multisample
00076 #define WGL_3DFX_multisample 1
00077
00078 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
00079 #define WGL_SAMPLES_3DFX 0x2061
00080
00081 #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
00082
00083 #endif
00084
00085
00086
00087 #ifndef WGL_3DL_stereo_control
00088 #define WGL_3DL_stereo_control 1
00089
00090 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
00091 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
00092 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
00093 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
00094
00095 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
00096
00097 #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
00098
00099 #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
00100
00101 #endif
00102
00103
00104
00105 #ifndef WGL_ARB_buffer_region
00106 #define WGL_ARB_buffer_region 1
00107
00108 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
00109 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
00110 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
00111 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
00112
00113 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
00114 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
00115 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
00116 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
00117
00118 #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
00119 #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
00120 #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
00121 #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
00122
00123 #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
00124
00125 #endif
00126
00127
00128
00129 #ifndef WGL_ARB_extensions_string
00130 #define WGL_ARB_extensions_string 1
00131
00132 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
00133
00134 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
00135
00136 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
00137
00138 #endif
00139
00140
00141
00142 #ifndef WGL_ARB_make_current_read
00143 #define WGL_ARB_make_current_read 1
00144
00145 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
00146 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00147
00148 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
00149 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
00150
00151 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
00152
00153 #endif
00154
00155
00156
00157 #ifndef WGL_ARB_multisample
00158 #define WGL_ARB_multisample 1
00159
00160 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
00161 #define WGL_SAMPLES_ARB 0x2042
00162
00163 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
00164
00165 #endif
00166
00167
00168
00169 #ifndef WGL_ARB_pbuffer
00170 #define WGL_ARB_pbuffer 1
00171
00172 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
00173 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
00174 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
00175 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
00176 #define WGL_PBUFFER_LARGEST_ARB 0x2033
00177 #define WGL_PBUFFER_WIDTH_ARB 0x2034
00178 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
00179 #define WGL_PBUFFER_LOST_ARB 0x2036
00180
00181 DECLARE_HANDLE(HPBUFFERARB);
00182
00183 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
00184 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
00185 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
00186 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
00187 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
00188
00189 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
00190 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
00191 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
00192 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
00193 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
00194
00195 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
00196
00197 #endif
00198
00199
00200
00201 #ifndef WGL_ARB_pixel_format
00202 #define WGL_ARB_pixel_format 1
00203
00204 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
00205 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
00206 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
00207 #define WGL_ACCELERATION_ARB 0x2003
00208 #define WGL_NEED_PALETTE_ARB 0x2004
00209 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
00210 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
00211 #define WGL_SWAP_METHOD_ARB 0x2007
00212 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
00213 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
00214 #define WGL_TRANSPARENT_ARB 0x200A
00215 #define WGL_SHARE_DEPTH_ARB 0x200C
00216 #define WGL_SHARE_STENCIL_ARB 0x200D
00217 #define WGL_SHARE_ACCUM_ARB 0x200E
00218 #define WGL_SUPPORT_GDI_ARB 0x200F
00219 #define WGL_SUPPORT_OPENGL_ARB 0x2010
00220 #define WGL_DOUBLE_BUFFER_ARB 0x2011
00221 #define WGL_STEREO_ARB 0x2012
00222 #define WGL_PIXEL_TYPE_ARB 0x2013
00223 #define WGL_COLOR_BITS_ARB 0x2014
00224 #define WGL_RED_BITS_ARB 0x2015
00225 #define WGL_RED_SHIFT_ARB 0x2016
00226 #define WGL_GREEN_BITS_ARB 0x2017
00227 #define WGL_GREEN_SHIFT_ARB 0x2018
00228 #define WGL_BLUE_BITS_ARB 0x2019
00229 #define WGL_BLUE_SHIFT_ARB 0x201A
00230 #define WGL_ALPHA_BITS_ARB 0x201B
00231 #define WGL_ALPHA_SHIFT_ARB 0x201C
00232 #define WGL_ACCUM_BITS_ARB 0x201D
00233 #define WGL_ACCUM_RED_BITS_ARB 0x201E
00234 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
00235 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
00236 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
00237 #define WGL_DEPTH_BITS_ARB 0x2022
00238 #define WGL_STENCIL_BITS_ARB 0x2023
00239 #define WGL_AUX_BUFFERS_ARB 0x2024
00240 #define WGL_NO_ACCELERATION_ARB 0x2025
00241 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
00242 #define WGL_FULL_ACCELERATION_ARB 0x2027
00243 #define WGL_SWAP_EXCHANGE_ARB 0x2028
00244 #define WGL_SWAP_COPY_ARB 0x2029
00245 #define WGL_SWAP_UNDEFINED_ARB 0x202A
00246 #define WGL_TYPE_RGBA_ARB 0x202B
00247 #define WGL_TYPE_COLORINDEX_ARB 0x202C
00248 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
00249 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
00250 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
00251 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
00252 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
00253
00254 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00255 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues);
00256 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues);
00257
00258 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
00259 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
00260 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
00261
00262 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
00263
00264 #endif
00265
00266
00267
00268 #ifndef WGL_ARB_pixel_format_float
00269 #define WGL_ARB_pixel_format_float 1
00270
00271 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
00272
00273 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
00274
00275 #endif
00276
00277
00278
00279 #ifndef WGL_ARB_render_texture
00280 #define WGL_ARB_render_texture 1
00281
00282 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
00283 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
00284 #define WGL_TEXTURE_FORMAT_ARB 0x2072
00285 #define WGL_TEXTURE_TARGET_ARB 0x2073
00286 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
00287 #define WGL_TEXTURE_RGB_ARB 0x2075
00288 #define WGL_TEXTURE_RGBA_ARB 0x2076
00289 #define WGL_NO_TEXTURE_ARB 0x2077
00290 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
00291 #define WGL_TEXTURE_1D_ARB 0x2079
00292 #define WGL_TEXTURE_2D_ARB 0x207A
00293 #define WGL_MIPMAP_LEVEL_ARB 0x207B
00294 #define WGL_CUBE_MAP_FACE_ARB 0x207C
00295 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
00296 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
00297 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
00298 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
00299 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
00300 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
00301 #define WGL_FRONT_LEFT_ARB 0x2083
00302 #define WGL_FRONT_RIGHT_ARB 0x2084
00303 #define WGL_BACK_LEFT_ARB 0x2085
00304 #define WGL_BACK_RIGHT_ARB 0x2086
00305 #define WGL_AUX0_ARB 0x2087
00306 #define WGL_AUX1_ARB 0x2088
00307 #define WGL_AUX2_ARB 0x2089
00308 #define WGL_AUX3_ARB 0x208A
00309 #define WGL_AUX4_ARB 0x208B
00310 #define WGL_AUX5_ARB 0x208C
00311 #define WGL_AUX6_ARB 0x208D
00312 #define WGL_AUX7_ARB 0x208E
00313 #define WGL_AUX8_ARB 0x208F
00314 #define WGL_AUX9_ARB 0x2090
00315
00316 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00317 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00318 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
00319
00320 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
00321 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
00322 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
00323
00324 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
00325
00326 #endif
00327
00328
00329
00330 #ifndef WGL_ATI_pixel_format_float
00331 #define WGL_ATI_pixel_format_float 1
00332
00333 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
00334 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
00335 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
00336
00337 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
00338
00339 #endif
00340
00341
00342
00343 #ifndef WGL_ATI_render_texture_rectangle
00344 #define WGL_ATI_render_texture_rectangle 1
00345
00346 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
00347
00348 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
00349
00350 #endif
00351
00352
00353
00354 #ifndef WGL_EXT_depth_float
00355 #define WGL_EXT_depth_float 1
00356
00357 #define WGL_DEPTH_FLOAT_EXT 0x2040
00358
00359 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
00360
00361 #endif
00362
00363
00364
00365 #ifndef WGL_EXT_display_color_table
00366 #define WGL_EXT_display_color_table 1
00367
00368 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00369 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00370 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00371 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
00372
00373 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
00374 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
00375 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
00376 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
00377
00378 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
00379
00380 #endif
00381
00382
00383
00384 #ifndef WGL_EXT_extensions_string
00385 #define WGL_EXT_extensions_string 1
00386
00387 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
00388
00389 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
00390
00391 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
00392
00393 #endif
00394
00395
00396
00397 #ifndef WGL_EXT_make_current_read
00398 #define WGL_EXT_make_current_read 1
00399
00400 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
00401 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00402
00403 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
00404 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
00405
00406 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
00407
00408 #endif
00409
00410
00411
00412 #ifndef WGL_EXT_multisample
00413 #define WGL_EXT_multisample 1
00414
00415 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
00416 #define WGL_SAMPLES_EXT 0x2042
00417
00418 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
00419
00420 #endif
00421
00422
00423
00424 #ifndef WGL_EXT_pbuffer
00425 #define WGL_EXT_pbuffer 1
00426
00427 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
00428 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
00429 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
00430 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
00431 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
00432 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
00433 #define WGL_PBUFFER_LARGEST_EXT 0x2033
00434 #define WGL_PBUFFER_WIDTH_EXT 0x2034
00435 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
00436
00437 DECLARE_HANDLE(HPBUFFEREXT);
00438
00439 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
00440 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
00441 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
00442 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
00443 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
00444
00445 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
00446 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
00447 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
00448 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
00449 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
00450
00451 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
00452
00453 #endif
00454
00455
00456
00457 #ifndef WGL_EXT_pixel_format
00458 #define WGL_EXT_pixel_format 1
00459
00460 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
00461 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
00462 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
00463 #define WGL_ACCELERATION_EXT 0x2003
00464 #define WGL_NEED_PALETTE_EXT 0x2004
00465 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
00466 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
00467 #define WGL_SWAP_METHOD_EXT 0x2007
00468 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
00469 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
00470 #define WGL_TRANSPARENT_EXT 0x200A
00471 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
00472 #define WGL_SHARE_DEPTH_EXT 0x200C
00473 #define WGL_SHARE_STENCIL_EXT 0x200D
00474 #define WGL_SHARE_ACCUM_EXT 0x200E
00475 #define WGL_SUPPORT_GDI_EXT 0x200F
00476 #define WGL_SUPPORT_OPENGL_EXT 0x2010
00477 #define WGL_DOUBLE_BUFFER_EXT 0x2011
00478 #define WGL_STEREO_EXT 0x2012
00479 #define WGL_PIXEL_TYPE_EXT 0x2013
00480 #define WGL_COLOR_BITS_EXT 0x2014
00481 #define WGL_RED_BITS_EXT 0x2015
00482 #define WGL_RED_SHIFT_EXT 0x2016
00483 #define WGL_GREEN_BITS_EXT 0x2017
00484 #define WGL_GREEN_SHIFT_EXT 0x2018
00485 #define WGL_BLUE_BITS_EXT 0x2019
00486 #define WGL_BLUE_SHIFT_EXT 0x201A
00487 #define WGL_ALPHA_BITS_EXT 0x201B
00488 #define WGL_ALPHA_SHIFT_EXT 0x201C
00489 #define WGL_ACCUM_BITS_EXT 0x201D
00490 #define WGL_ACCUM_RED_BITS_EXT 0x201E
00491 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
00492 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
00493 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
00494 #define WGL_DEPTH_BITS_EXT 0x2022
00495 #define WGL_STENCIL_BITS_EXT 0x2023
00496 #define WGL_AUX_BUFFERS_EXT 0x2024
00497 #define WGL_NO_ACCELERATION_EXT 0x2025
00498 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
00499 #define WGL_FULL_ACCELERATION_EXT 0x2027
00500 #define WGL_SWAP_EXCHANGE_EXT 0x2028
00501 #define WGL_SWAP_COPY_EXT 0x2029
00502 #define WGL_SWAP_UNDEFINED_EXT 0x202A
00503 #define WGL_TYPE_RGBA_EXT 0x202B
00504 #define WGL_TYPE_COLORINDEX_EXT 0x202C
00505
00506 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00507 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
00508 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
00509
00510 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
00511 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
00512 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
00513
00514 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
00515
00516 #endif
00517
00518
00519
00520 #ifndef WGL_EXT_swap_control
00521 #define WGL_EXT_swap_control 1
00522
00523 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
00524 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
00525
00526 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
00527 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
00528
00529 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
00530
00531 #endif
00532
00533
00534
00535 #ifndef WGL_I3D_digital_video_control
00536 #define WGL_I3D_digital_video_control 1
00537
00538 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
00539 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
00540 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
00541 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
00542
00543 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
00544 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
00545
00546 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
00547 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
00548
00549 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
00550
00551 #endif
00552
00553
00554
00555 #ifndef WGL_I3D_gamma
00556 #define WGL_I3D_gamma 1
00557
00558 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
00559 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
00560
00561 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
00562 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
00563 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
00564 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
00565
00566 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
00567 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
00568 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
00569 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
00570
00571 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
00572
00573 #endif
00574
00575
00576
00577 #ifndef WGL_I3D_genlock
00578 #define WGL_I3D_genlock 1
00579
00580 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
00581 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
00582 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
00583 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
00584 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
00585 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
00586 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
00587 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
00588 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
00589
00590 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
00591 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
00592 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
00593 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
00594 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
00595 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
00596 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
00597 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
00598 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
00599 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
00600 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
00601 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
00602
00603 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
00604 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
00605 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
00606 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
00607 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
00608 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
00609 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
00610 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
00611 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
00612 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
00613 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
00614 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
00615
00616 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
00617
00618 #endif
00619
00620
00621
00622 #ifndef WGL_I3D_image_buffer
00623 #define WGL_I3D_image_buffer 1
00624
00625 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
00626 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
00627
00628 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
00629 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
00630 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
00631 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
00632
00633 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
00634 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
00635 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
00636 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
00637
00638 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
00639
00640 #endif
00641
00642
00643
00644 #ifndef WGL_I3D_swap_frame_lock
00645 #define WGL_I3D_swap_frame_lock 1
00646
00647 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
00648 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
00649 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
00650 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
00651
00652 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
00653 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
00654 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
00655 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
00656
00657 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
00658
00659 #endif
00660
00661
00662
00663 #ifndef WGL_I3D_swap_frame_usage
00664 #define WGL_I3D_swap_frame_usage 1
00665
00666 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
00667 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
00668 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
00669 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
00670
00671 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
00672 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
00673 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
00674 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
00675
00676 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
00677
00678 #endif
00679
00680
00681
00682 #ifndef WGL_NV_float_buffer
00683 #define WGL_NV_float_buffer 1
00684
00685 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
00686 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
00687 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
00688 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
00689 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
00690 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
00691 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
00692 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
00693 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
00694
00695 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
00696
00697 #endif
00698
00699
00700
00701 #ifndef WGL_NV_render_depth_texture
00702 #define WGL_NV_render_depth_texture 1
00703
00704 #define WGL_NO_TEXTURE_ARB 0x2077
00705 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
00706 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
00707 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
00708 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
00709 #define WGL_DEPTH_COMPONENT_NV 0x20A7
00710
00711 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
00712
00713 #endif
00714
00715
00716
00717 #ifndef WGL_NV_render_texture_rectangle
00718 #define WGL_NV_render_texture_rectangle 1
00719
00720 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
00721 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
00722 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
00723
00724 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
00725
00726 #endif
00727
00728
00729
00730 #ifndef WGL_NV_vertex_array_range
00731 #define WGL_NV_vertex_array_range 1
00732
00733 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
00734 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
00735
00736 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
00737 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
00738
00739 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
00740
00741 #endif
00742
00743
00744
00745 #ifndef WGL_OML_sync_control
00746 #define WGL_OML_sync_control 1
00747
00748 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
00749 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
00750 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
00751 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
00752 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
00753 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
00754
00755 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
00756 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
00757 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
00758 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
00759 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
00760 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
00761
00762 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
00763
00764 #endif
00765
00766
00767
00768 #ifdef GLEW_MX
00769 #define WGLEW_EXPORT
00770 #else
00771 #define WGLEW_EXPORT GLEWAPI
00772 #endif
00773
00774 #ifdef GLEW_MX
00775 struct WGLEWContextStruct
00776 {
00777 #endif
00778
00779 WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
00780
00781 WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
00782 WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
00783 WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
00784 WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
00785
00786 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
00787
00788 WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
00789 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
00790
00791 WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
00792 WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
00793 WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
00794 WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
00795 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
00796
00797 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
00798 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
00799 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
00800
00801 WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
00802 WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
00803 WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
00804
00805 WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
00806 WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
00807 WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
00808 WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
00809
00810 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
00811
00812 WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
00813 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
00814
00815 WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
00816 WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
00817 WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
00818 WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
00819 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
00820
00821 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
00822 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
00823 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
00824
00825 WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
00826 WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
00827
00828 WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
00829 WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
00830
00831 WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
00832 WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
00833 WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
00834 WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
00835
00836 WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
00837 WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
00838 WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
00839 WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
00840 WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
00841 WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
00842 WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
00843 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
00844 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
00845 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
00846 WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
00847 WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
00848
00849 WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
00850 WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
00851 WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
00852 WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
00853
00854 WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
00855 WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
00856 WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
00857 WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
00858
00859 WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
00860 WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
00861 WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
00862 WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
00863
00864 WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
00865 WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
00866
00867 WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
00868 WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
00869 WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
00870 WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
00871 WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
00872 WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
00873 WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
00874 WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
00875 WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
00876 WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
00877 WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
00878 WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample;
00879 WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer;
00880 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format;
00881 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
00882 WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture;
00883 WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
00884 WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
00885 WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float;
00886 WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table;
00887 WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string;
00888 WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read;
00889 WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample;
00890 WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer;
00891 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format;
00892 WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control;
00893 WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
00894 WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma;
00895 WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock;
00896 WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
00897 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
00898 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
00899 WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
00900 WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
00901 WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
00902 WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
00903 WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control;
00904
00905 #ifdef GLEW_MX
00906 };
00907 #endif
00908
00909
00910
00911 #ifdef GLEW_MX
00912
00913 typedef struct WGLEWContextStruct WGLEWContext;
00914 GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
00915 GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
00916
00917 #define wglewInit() wglewContextInit(wglewGetContext())
00918 #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
00919
00920 #define WGLEW_GET_VAR(x) wglewGetContext()->x
00921 #define WGLEW_GET_FUN(x) wglewGetContext()->x
00922
00923 #else
00924
00925 #define WGLEW_GET_VAR(x) x
00926 #define WGLEW_GET_FUN(x) x
00927
00928 GLEWAPI GLboolean wglewIsSupported (const char* name);
00929
00930 #endif
00931
00932 GLEWAPI GLboolean wglewGetExtension (const char* name);
00933
00934 #ifdef __cplusplus
00935 }
00936 #endif
00937
00938 #undef GLEWAPI
00939
00940 #endif