GEL  2
GEL is a library for Geometry and Linear Algebra
/Users/jab/Documents/Teaching/02585/GEL2_and_demos/GEL/src/GL/wglew.h
00001 /*
00002 ** The OpenGL Extension Wrangler Library
00003 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
00004 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
00005 ** Copyright (C) 2002, Lev Povalahev
00006 ** All rights reserved.
00007 ** 
00008 ** Redistribution and use in source and binary forms, with or without 
00009 ** modification, are permitted provided that the following conditions are met:
00010 ** 
00011 ** * Redistributions of source code must retain the above copyright notice, 
00012 **   this list of conditions and the following disclaimer.
00013 ** * Redistributions in binary form must reproduce the above copyright notice, 
00014 **   this list of conditions and the following disclaimer in the documentation 
00015 **   and/or other materials provided with the distribution.
00016 ** * The name of the author may be used to endorse or promote products 
00017 **   derived from this software without specific prior written permission.
00018 **
00019 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
00020 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
00021 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00022 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
00023 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
00024 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
00025 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00026 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00027 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00028 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
00029 ** THE POSSIBILITY OF SUCH DAMAGE.
00030 */
00031 
00032 /*
00033 ** Copyright (c) 2007 The Khronos Group Inc.
00034 ** 
00035 ** Permission is hereby granted, free of charge, to any person obtaining a
00036 ** copy of this software and/or associated documentation files (the
00037 ** "Materials"), to deal in the Materials without restriction, including
00038 ** without limitation the rights to use, copy, modify, merge, publish,
00039 ** distribute, sublicense, and/or sell copies of the Materials, and to
00040 ** permit persons to whom the Materials are furnished to do so, subject to
00041 ** the following conditions:
00042 ** 
00043 ** The above copyright notice and this permission notice shall be included
00044 ** in all copies or substantial portions of the Materials.
00045 ** 
00046 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
00047 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
00048 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
00049 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
00050 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
00051 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
00052 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
00053 */
00054 
00055 #ifndef __wglew_h__
00056 #define __wglew_h__
00057 #define __WGLEW_H__
00058 
00059 #ifdef __wglext_h_
00060 #error wglext.h included before wglew.h
00061 #endif
00062 
00063 #define __wglext_h_
00064 
00065 #if !defined(WINAPI)
00066 #  ifndef WIN32_LEAN_AND_MEAN
00067 #    define WIN32_LEAN_AND_MEAN 1
00068 #  endif
00069 #include <windows.h>
00070 #  undef WIN32_LEAN_AND_MEAN
00071 #endif
00072 
00073 /*
00074  * GLEW_STATIC needs to be set when using the static version.
00075  * GLEW_BUILD is set when building the DLL version.
00076  */
00077 #ifdef GLEW_STATIC
00078 #  define GLEWAPI extern
00079 #else
00080 #  ifdef GLEW_BUILD
00081 #    define GLEWAPI extern __declspec(dllexport)
00082 #  else
00083 #    define GLEWAPI extern __declspec(dllimport)
00084 #  endif
00085 #endif
00086 
00087 #ifdef __cplusplus
00088 extern "C" {
00089 #endif
00090 
00091 /* -------------------------- WGL_3DFX_multisample ------------------------- */
00092 
00093 #ifndef WGL_3DFX_multisample
00094 #define WGL_3DFX_multisample 1
00095 
00096 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
00097 #define WGL_SAMPLES_3DFX 0x2061
00098 
00099 #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
00100 
00101 #endif /* WGL_3DFX_multisample */
00102 
00103 /* ------------------------- WGL_3DL_stereo_control ------------------------ */
00104 
00105 #ifndef WGL_3DL_stereo_control
00106 #define WGL_3DL_stereo_control 1
00107 
00108 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
00109 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
00110 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
00111 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
00112 
00113 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
00114 
00115 #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
00116 
00117 #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
00118 
00119 #endif /* WGL_3DL_stereo_control */
00120 
00121 /* ------------------------ WGL_AMD_gpu_association ------------------------ */
00122 
00123 #ifndef WGL_AMD_gpu_association
00124 #define WGL_AMD_gpu_association 1
00125 
00126 #define WGL_GPU_VENDOR_AMD 0x1F00
00127 #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
00128 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
00129 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
00130 #define WGL_GPU_RAM_AMD 0x21A3
00131 #define WGL_GPU_CLOCK_AMD 0x21A4
00132 #define WGL_GPU_NUM_PIPES_AMD 0x21A5
00133 #define WGL_GPU_NUM_SIMD_AMD 0x21A6
00134 #define WGL_GPU_NUM_RB_AMD 0x21A7
00135 #define WGL_GPU_NUM_SPI_AMD 0x21A8
00136 
00137 typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
00138 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
00139 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList);
00140 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
00141 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
00142 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
00143 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids);
00144 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data);
00145 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
00146 
00147 #define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD)
00148 #define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD)
00149 #define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD)
00150 #define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD)
00151 #define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD)
00152 #define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD)
00153 #define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD)
00154 #define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD)
00155 #define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD)
00156 
00157 #define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association)
00158 
00159 #endif /* WGL_AMD_gpu_association */
00160 
00161 /* ------------------------- WGL_ARB_buffer_region ------------------------- */
00162 
00163 #ifndef WGL_ARB_buffer_region
00164 #define WGL_ARB_buffer_region 1
00165 
00166 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
00167 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
00168 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
00169 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
00170 
00171 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
00172 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
00173 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
00174 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
00175 
00176 #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
00177 #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
00178 #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
00179 #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
00180 
00181 #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
00182 
00183 #endif /* WGL_ARB_buffer_region */
00184 
00185 /* ------------------------- WGL_ARB_create_context ------------------------ */
00186 
00187 #ifndef WGL_ARB_create_context
00188 #define WGL_ARB_create_context 1
00189 
00190 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
00191 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
00192 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
00193 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
00194 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
00195 #define WGL_CONTEXT_FLAGS_ARB 0x2094
00196 
00197 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int* attribList);
00198 
00199 #define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB)
00200 
00201 #define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context)
00202 
00203 #endif /* WGL_ARB_create_context */
00204 
00205 /* --------------------- WGL_ARB_create_context_profile -------------------- */
00206 
00207 #ifndef WGL_ARB_create_context_profile
00208 #define WGL_ARB_create_context_profile 1
00209 
00210 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
00211 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
00212 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
00213 
00214 #define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile)
00215 
00216 #endif /* WGL_ARB_create_context_profile */
00217 
00218 /* ----------------------- WGL_ARB_extensions_string ----------------------- */
00219 
00220 #ifndef WGL_ARB_extensions_string
00221 #define WGL_ARB_extensions_string 1
00222 
00223 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
00224 
00225 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
00226 
00227 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
00228 
00229 #endif /* WGL_ARB_extensions_string */
00230 
00231 /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */
00232 
00233 #ifndef WGL_ARB_framebuffer_sRGB
00234 #define WGL_ARB_framebuffer_sRGB 1
00235 
00236 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
00237 
00238 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB)
00239 
00240 #endif /* WGL_ARB_framebuffer_sRGB */
00241 
00242 /* ----------------------- WGL_ARB_make_current_read ----------------------- */
00243 
00244 #ifndef WGL_ARB_make_current_read
00245 #define WGL_ARB_make_current_read 1
00246 
00247 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
00248 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
00249 
00250 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
00251 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00252 
00253 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
00254 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
00255 
00256 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
00257 
00258 #endif /* WGL_ARB_make_current_read */
00259 
00260 /* -------------------------- WGL_ARB_multisample -------------------------- */
00261 
00262 #ifndef WGL_ARB_multisample
00263 #define WGL_ARB_multisample 1
00264 
00265 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
00266 #define WGL_SAMPLES_ARB 0x2042
00267 
00268 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
00269 
00270 #endif /* WGL_ARB_multisample */
00271 
00272 /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */
00273 
00274 #ifndef WGL_ARB_pbuffer
00275 #define WGL_ARB_pbuffer 1
00276 
00277 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
00278 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
00279 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
00280 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
00281 #define WGL_PBUFFER_LARGEST_ARB 0x2033
00282 #define WGL_PBUFFER_WIDTH_ARB 0x2034
00283 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
00284 #define WGL_PBUFFER_LOST_ARB 0x2036
00285 
00286 DECLARE_HANDLE(HPBUFFERARB);
00287 
00288 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
00289 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
00290 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
00291 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
00292 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
00293 
00294 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
00295 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
00296 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
00297 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
00298 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
00299 
00300 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
00301 
00302 #endif /* WGL_ARB_pbuffer */
00303 
00304 /* -------------------------- WGL_ARB_pixel_format ------------------------- */
00305 
00306 #ifndef WGL_ARB_pixel_format
00307 #define WGL_ARB_pixel_format 1
00308 
00309 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
00310 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
00311 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
00312 #define WGL_ACCELERATION_ARB 0x2003
00313 #define WGL_NEED_PALETTE_ARB 0x2004
00314 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
00315 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
00316 #define WGL_SWAP_METHOD_ARB 0x2007
00317 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
00318 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
00319 #define WGL_TRANSPARENT_ARB 0x200A
00320 #define WGL_SHARE_DEPTH_ARB 0x200C
00321 #define WGL_SHARE_STENCIL_ARB 0x200D
00322 #define WGL_SHARE_ACCUM_ARB 0x200E
00323 #define WGL_SUPPORT_GDI_ARB 0x200F
00324 #define WGL_SUPPORT_OPENGL_ARB 0x2010
00325 #define WGL_DOUBLE_BUFFER_ARB 0x2011
00326 #define WGL_STEREO_ARB 0x2012
00327 #define WGL_PIXEL_TYPE_ARB 0x2013
00328 #define WGL_COLOR_BITS_ARB 0x2014
00329 #define WGL_RED_BITS_ARB 0x2015
00330 #define WGL_RED_SHIFT_ARB 0x2016
00331 #define WGL_GREEN_BITS_ARB 0x2017
00332 #define WGL_GREEN_SHIFT_ARB 0x2018
00333 #define WGL_BLUE_BITS_ARB 0x2019
00334 #define WGL_BLUE_SHIFT_ARB 0x201A
00335 #define WGL_ALPHA_BITS_ARB 0x201B
00336 #define WGL_ALPHA_SHIFT_ARB 0x201C
00337 #define WGL_ACCUM_BITS_ARB 0x201D
00338 #define WGL_ACCUM_RED_BITS_ARB 0x201E
00339 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
00340 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
00341 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
00342 #define WGL_DEPTH_BITS_ARB 0x2022
00343 #define WGL_STENCIL_BITS_ARB 0x2023
00344 #define WGL_AUX_BUFFERS_ARB 0x2024
00345 #define WGL_NO_ACCELERATION_ARB 0x2025
00346 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
00347 #define WGL_FULL_ACCELERATION_ARB 0x2027
00348 #define WGL_SWAP_EXCHANGE_ARB 0x2028
00349 #define WGL_SWAP_COPY_ARB 0x2029
00350 #define WGL_SWAP_UNDEFINED_ARB 0x202A
00351 #define WGL_TYPE_RGBA_ARB 0x202B
00352 #define WGL_TYPE_COLORINDEX_ARB 0x202C
00353 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
00354 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
00355 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
00356 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
00357 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
00358 
00359 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00360 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues);
00361 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues);
00362 
00363 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
00364 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
00365 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
00366 
00367 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
00368 
00369 #endif /* WGL_ARB_pixel_format */
00370 
00371 /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */
00372 
00373 #ifndef WGL_ARB_pixel_format_float
00374 #define WGL_ARB_pixel_format_float 1
00375 
00376 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
00377 
00378 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
00379 
00380 #endif /* WGL_ARB_pixel_format_float */
00381 
00382 /* ------------------------- WGL_ARB_render_texture ------------------------ */
00383 
00384 #ifndef WGL_ARB_render_texture
00385 #define WGL_ARB_render_texture 1
00386 
00387 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
00388 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
00389 #define WGL_TEXTURE_FORMAT_ARB 0x2072
00390 #define WGL_TEXTURE_TARGET_ARB 0x2073
00391 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
00392 #define WGL_TEXTURE_RGB_ARB 0x2075
00393 #define WGL_TEXTURE_RGBA_ARB 0x2076
00394 #define WGL_NO_TEXTURE_ARB 0x2077
00395 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
00396 #define WGL_TEXTURE_1D_ARB 0x2079
00397 #define WGL_TEXTURE_2D_ARB 0x207A
00398 #define WGL_MIPMAP_LEVEL_ARB 0x207B
00399 #define WGL_CUBE_MAP_FACE_ARB 0x207C
00400 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
00401 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
00402 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
00403 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
00404 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
00405 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
00406 #define WGL_FRONT_LEFT_ARB 0x2083
00407 #define WGL_FRONT_RIGHT_ARB 0x2084
00408 #define WGL_BACK_LEFT_ARB 0x2085
00409 #define WGL_BACK_RIGHT_ARB 0x2086
00410 #define WGL_AUX0_ARB 0x2087
00411 #define WGL_AUX1_ARB 0x2088
00412 #define WGL_AUX2_ARB 0x2089
00413 #define WGL_AUX3_ARB 0x208A
00414 #define WGL_AUX4_ARB 0x208B
00415 #define WGL_AUX5_ARB 0x208C
00416 #define WGL_AUX6_ARB 0x208D
00417 #define WGL_AUX7_ARB 0x208E
00418 #define WGL_AUX8_ARB 0x208F
00419 #define WGL_AUX9_ARB 0x2090
00420 
00421 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00422 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00423 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
00424 
00425 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
00426 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
00427 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
00428 
00429 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
00430 
00431 #endif /* WGL_ARB_render_texture */
00432 
00433 /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */
00434 
00435 #ifndef WGL_ATI_pixel_format_float
00436 #define WGL_ATI_pixel_format_float 1
00437 
00438 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
00439 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
00440 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
00441 
00442 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
00443 
00444 #endif /* WGL_ATI_pixel_format_float */
00445 
00446 /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */
00447 
00448 #ifndef WGL_ATI_render_texture_rectangle
00449 #define WGL_ATI_render_texture_rectangle 1
00450 
00451 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
00452 
00453 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
00454 
00455 #endif /* WGL_ATI_render_texture_rectangle */
00456 
00457 /* -------------------------- WGL_EXT_depth_float -------------------------- */
00458 
00459 #ifndef WGL_EXT_depth_float
00460 #define WGL_EXT_depth_float 1
00461 
00462 #define WGL_DEPTH_FLOAT_EXT 0x2040
00463 
00464 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
00465 
00466 #endif /* WGL_EXT_depth_float */
00467 
00468 /* ---------------------- WGL_EXT_display_color_table ---------------------- */
00469 
00470 #ifndef WGL_EXT_display_color_table
00471 #define WGL_EXT_display_color_table 1
00472 
00473 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00474 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00475 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00476 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
00477 
00478 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
00479 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
00480 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
00481 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
00482 
00483 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
00484 
00485 #endif /* WGL_EXT_display_color_table */
00486 
00487 /* ----------------------- WGL_EXT_extensions_string ----------------------- */
00488 
00489 #ifndef WGL_EXT_extensions_string
00490 #define WGL_EXT_extensions_string 1
00491 
00492 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
00493 
00494 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
00495 
00496 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
00497 
00498 #endif /* WGL_EXT_extensions_string */
00499 
00500 /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */
00501 
00502 #ifndef WGL_EXT_framebuffer_sRGB
00503 #define WGL_EXT_framebuffer_sRGB 1
00504 
00505 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
00506 
00507 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
00508 
00509 #endif /* WGL_EXT_framebuffer_sRGB */
00510 
00511 /* ----------------------- WGL_EXT_make_current_read ----------------------- */
00512 
00513 #ifndef WGL_EXT_make_current_read
00514 #define WGL_EXT_make_current_read 1
00515 
00516 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
00517 
00518 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
00519 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00520 
00521 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
00522 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
00523 
00524 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
00525 
00526 #endif /* WGL_EXT_make_current_read */
00527 
00528 /* -------------------------- WGL_EXT_multisample -------------------------- */
00529 
00530 #ifndef WGL_EXT_multisample
00531 #define WGL_EXT_multisample 1
00532 
00533 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
00534 #define WGL_SAMPLES_EXT 0x2042
00535 
00536 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
00537 
00538 #endif /* WGL_EXT_multisample */
00539 
00540 /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
00541 
00542 #ifndef WGL_EXT_pbuffer
00543 #define WGL_EXT_pbuffer 1
00544 
00545 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
00546 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
00547 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
00548 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
00549 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
00550 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
00551 #define WGL_PBUFFER_LARGEST_EXT 0x2033
00552 #define WGL_PBUFFER_WIDTH_EXT 0x2034
00553 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
00554 
00555 DECLARE_HANDLE(HPBUFFEREXT);
00556 
00557 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
00558 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
00559 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
00560 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
00561 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
00562 
00563 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
00564 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
00565 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
00566 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
00567 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
00568 
00569 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
00570 
00571 #endif /* WGL_EXT_pbuffer */
00572 
00573 /* -------------------------- WGL_EXT_pixel_format ------------------------- */
00574 
00575 #ifndef WGL_EXT_pixel_format
00576 #define WGL_EXT_pixel_format 1
00577 
00578 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
00579 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
00580 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
00581 #define WGL_ACCELERATION_EXT 0x2003
00582 #define WGL_NEED_PALETTE_EXT 0x2004
00583 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
00584 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
00585 #define WGL_SWAP_METHOD_EXT 0x2007
00586 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
00587 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
00588 #define WGL_TRANSPARENT_EXT 0x200A
00589 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
00590 #define WGL_SHARE_DEPTH_EXT 0x200C
00591 #define WGL_SHARE_STENCIL_EXT 0x200D
00592 #define WGL_SHARE_ACCUM_EXT 0x200E
00593 #define WGL_SUPPORT_GDI_EXT 0x200F
00594 #define WGL_SUPPORT_OPENGL_EXT 0x2010
00595 #define WGL_DOUBLE_BUFFER_EXT 0x2011
00596 #define WGL_STEREO_EXT 0x2012
00597 #define WGL_PIXEL_TYPE_EXT 0x2013
00598 #define WGL_COLOR_BITS_EXT 0x2014
00599 #define WGL_RED_BITS_EXT 0x2015
00600 #define WGL_RED_SHIFT_EXT 0x2016
00601 #define WGL_GREEN_BITS_EXT 0x2017
00602 #define WGL_GREEN_SHIFT_EXT 0x2018
00603 #define WGL_BLUE_BITS_EXT 0x2019
00604 #define WGL_BLUE_SHIFT_EXT 0x201A
00605 #define WGL_ALPHA_BITS_EXT 0x201B
00606 #define WGL_ALPHA_SHIFT_EXT 0x201C
00607 #define WGL_ACCUM_BITS_EXT 0x201D
00608 #define WGL_ACCUM_RED_BITS_EXT 0x201E
00609 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
00610 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
00611 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
00612 #define WGL_DEPTH_BITS_EXT 0x2022
00613 #define WGL_STENCIL_BITS_EXT 0x2023
00614 #define WGL_AUX_BUFFERS_EXT 0x2024
00615 #define WGL_NO_ACCELERATION_EXT 0x2025
00616 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
00617 #define WGL_FULL_ACCELERATION_EXT 0x2027
00618 #define WGL_SWAP_EXCHANGE_EXT 0x2028
00619 #define WGL_SWAP_COPY_EXT 0x2029
00620 #define WGL_SWAP_UNDEFINED_EXT 0x202A
00621 #define WGL_TYPE_RGBA_EXT 0x202B
00622 #define WGL_TYPE_COLORINDEX_EXT 0x202C
00623 
00624 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00625 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
00626 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
00627 
00628 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
00629 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
00630 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
00631 
00632 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
00633 
00634 #endif /* WGL_EXT_pixel_format */
00635 
00636 /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */
00637 
00638 #ifndef WGL_EXT_pixel_format_packed_float
00639 #define WGL_EXT_pixel_format_packed_float 1
00640 
00641 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
00642 
00643 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
00644 
00645 #endif /* WGL_EXT_pixel_format_packed_float */
00646 
00647 /* -------------------------- WGL_EXT_swap_control ------------------------- */
00648 
00649 #ifndef WGL_EXT_swap_control
00650 #define WGL_EXT_swap_control 1
00651 
00652 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
00653 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
00654 
00655 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
00656 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
00657 
00658 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
00659 
00660 #endif /* WGL_EXT_swap_control */
00661 
00662 /* --------------------- WGL_I3D_digital_video_control --------------------- */
00663 
00664 #ifndef WGL_I3D_digital_video_control
00665 #define WGL_I3D_digital_video_control 1
00666 
00667 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
00668 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
00669 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
00670 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
00671 
00672 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
00673 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
00674 
00675 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
00676 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
00677 
00678 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
00679 
00680 #endif /* WGL_I3D_digital_video_control */
00681 
00682 /* ----------------------------- WGL_I3D_gamma ----------------------------- */
00683 
00684 #ifndef WGL_I3D_gamma
00685 #define WGL_I3D_gamma 1
00686 
00687 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
00688 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
00689 
00690 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
00691 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
00692 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
00693 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
00694 
00695 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
00696 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
00697 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
00698 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
00699 
00700 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
00701 
00702 #endif /* WGL_I3D_gamma */
00703 
00704 /* ---------------------------- WGL_I3D_genlock ---------------------------- */
00705 
00706 #ifndef WGL_I3D_genlock
00707 #define WGL_I3D_genlock 1
00708 
00709 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
00710 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
00711 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
00712 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
00713 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
00714 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
00715 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
00716 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
00717 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
00718 
00719 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
00720 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
00721 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
00722 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
00723 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
00724 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
00725 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
00726 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
00727 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
00728 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
00729 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
00730 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
00731 
00732 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
00733 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
00734 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
00735 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
00736 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
00737 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
00738 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
00739 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
00740 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
00741 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
00742 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
00743 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
00744 
00745 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
00746 
00747 #endif /* WGL_I3D_genlock */
00748 
00749 /* -------------------------- WGL_I3D_image_buffer ------------------------- */
00750 
00751 #ifndef WGL_I3D_image_buffer
00752 #define WGL_I3D_image_buffer 1
00753 
00754 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
00755 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
00756 
00757 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
00758 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
00759 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
00760 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
00761 
00762 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
00763 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
00764 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
00765 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
00766 
00767 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
00768 
00769 #endif /* WGL_I3D_image_buffer */
00770 
00771 /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
00772 
00773 #ifndef WGL_I3D_swap_frame_lock
00774 #define WGL_I3D_swap_frame_lock 1
00775 
00776 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
00777 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
00778 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
00779 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
00780 
00781 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
00782 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
00783 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
00784 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
00785 
00786 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
00787 
00788 #endif /* WGL_I3D_swap_frame_lock */
00789 
00790 /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
00791 
00792 #ifndef WGL_I3D_swap_frame_usage
00793 #define WGL_I3D_swap_frame_usage 1
00794 
00795 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
00796 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
00797 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
00798 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
00799 
00800 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
00801 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
00802 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
00803 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
00804 
00805 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
00806 
00807 #endif /* WGL_I3D_swap_frame_usage */
00808 
00809 /* --------------------------- WGL_NV_copy_image --------------------------- */
00810 
00811 #ifndef WGL_NV_copy_image
00812 #define WGL_NV_copy_image 1
00813 
00814 typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
00815 
00816 #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
00817 
00818 #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
00819 
00820 #endif /* WGL_NV_copy_image */
00821 
00822 /* -------------------------- WGL_NV_float_buffer -------------------------- */
00823 
00824 #ifndef WGL_NV_float_buffer
00825 #define WGL_NV_float_buffer 1
00826 
00827 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
00828 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
00829 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
00830 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
00831 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
00832 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
00833 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
00834 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
00835 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
00836 
00837 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
00838 
00839 #endif /* WGL_NV_float_buffer */
00840 
00841 /* -------------------------- WGL_NV_gpu_affinity -------------------------- */
00842 
00843 #ifndef WGL_NV_gpu_affinity
00844 #define WGL_NV_gpu_affinity 1
00845 
00846 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
00847 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
00848 
00849 DECLARE_HANDLE(HGPUNV);
00850 typedef struct _GPU_DEVICE {
00851   DWORD cb; 
00852   CHAR DeviceName[32]; 
00853   CHAR DeviceString[128]; 
00854   DWORD Flags; 
00855   RECT rcVirtualScreen; 
00856 } GPU_DEVICE, *PGPU_DEVICE;
00857 
00858 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
00859 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
00860 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
00861 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
00862 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
00863 
00864 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
00865 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
00866 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
00867 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
00868 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
00869 
00870 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
00871 
00872 #endif /* WGL_NV_gpu_affinity */
00873 
00874 /* -------------------------- WGL_NV_present_video ------------------------- */
00875 
00876 #ifndef WGL_NV_present_video
00877 #define WGL_NV_present_video 1
00878 
00879 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
00880 
00881 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
00882 
00883 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList);
00884 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
00885 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue);
00886 
00887 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
00888 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
00889 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
00890 
00891 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
00892 
00893 #endif /* WGL_NV_present_video */
00894 
00895 /* ---------------------- WGL_NV_render_depth_texture ---------------------- */
00896 
00897 #ifndef WGL_NV_render_depth_texture
00898 #define WGL_NV_render_depth_texture 1
00899 
00900 #define WGL_NO_TEXTURE_ARB 0x2077
00901 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
00902 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
00903 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
00904 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
00905 #define WGL_DEPTH_COMPONENT_NV 0x20A7
00906 
00907 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
00908 
00909 #endif /* WGL_NV_render_depth_texture */
00910 
00911 /* -------------------- WGL_NV_render_texture_rectangle -------------------- */
00912 
00913 #ifndef WGL_NV_render_texture_rectangle
00914 #define WGL_NV_render_texture_rectangle 1
00915 
00916 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
00917 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
00918 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
00919 
00920 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
00921 
00922 #endif /* WGL_NV_render_texture_rectangle */
00923 
00924 /* --------------------------- WGL_NV_swap_group --------------------------- */
00925 
00926 #ifndef WGL_NV_swap_group
00927 #define WGL_NV_swap_group 1
00928 
00929 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
00930 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
00931 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
00932 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
00933 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
00934 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
00935 
00936 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
00937 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
00938 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
00939 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
00940 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
00941 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
00942 
00943 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
00944 
00945 #endif /* WGL_NV_swap_group */
00946 
00947 /* ----------------------- WGL_NV_vertex_array_range ----------------------- */
00948 
00949 #ifndef WGL_NV_vertex_array_range
00950 #define WGL_NV_vertex_array_range 1
00951 
00952 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
00953 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
00954 
00955 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
00956 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
00957 
00958 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
00959 
00960 #endif /* WGL_NV_vertex_array_range */
00961 
00962 /* -------------------------- WGL_NV_video_output -------------------------- */
00963 
00964 #ifndef WGL_NV_video_output
00965 #define WGL_NV_video_output 1
00966 
00967 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
00968 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
00969 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
00970 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
00971 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
00972 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
00973 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
00974 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
00975 #define WGL_VIDEO_OUT_FRAME 0x20C8
00976 #define WGL_VIDEO_OUT_FIELD_1 0x20C9
00977 #define WGL_VIDEO_OUT_FIELD_2 0x20CA
00978 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
00979 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
00980 
00981 DECLARE_HANDLE(HPVIDEODEV);
00982 
00983 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
00984 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice);
00985 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
00986 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
00987 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
00988 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock);
00989 
00990 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
00991 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
00992 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
00993 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
00994 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
00995 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
00996 
00997 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
00998 
00999 #endif /* WGL_NV_video_output */
01000 
01001 /* -------------------------- WGL_OML_sync_control ------------------------- */
01002 
01003 #ifndef WGL_OML_sync_control
01004 #define WGL_OML_sync_control 1
01005 
01006 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
01007 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
01008 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
01009 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
01010 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
01011 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
01012 
01013 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
01014 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
01015 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
01016 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
01017 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
01018 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
01019 
01020 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
01021 
01022 #endif /* WGL_OML_sync_control */
01023 
01024 /* ------------------------------------------------------------------------- */
01025 
01026 #ifdef GLEW_MX
01027 #define WGLEW_EXPORT
01028 #else
01029 #define WGLEW_EXPORT GLEWAPI
01030 #endif /* GLEW_MX */
01031 
01032 #ifdef GLEW_MX
01033 struct WGLEWContextStruct
01034 {
01035 #endif /* GLEW_MX */
01036 
01037 WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
01038 
01039 WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
01040 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
01041 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
01042 WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
01043 WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
01044 WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
01045 WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
01046 WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
01047 WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
01048 
01049 WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
01050 WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
01051 WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
01052 WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
01053 
01054 WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
01055 
01056 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
01057 
01058 WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
01059 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
01060 
01061 WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
01062 WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
01063 WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
01064 WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
01065 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
01066 
01067 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
01068 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
01069 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
01070 
01071 WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
01072 WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
01073 WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
01074 
01075 WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
01076 WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
01077 WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
01078 WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
01079 
01080 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
01081 
01082 WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
01083 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
01084 
01085 WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
01086 WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
01087 WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
01088 WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
01089 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
01090 
01091 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
01092 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
01093 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
01094 
01095 WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
01096 WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
01097 
01098 WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
01099 WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
01100 
01101 WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
01102 WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
01103 WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
01104 WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
01105 
01106 WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
01107 WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
01108 WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
01109 WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
01110 WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
01111 WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
01112 WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
01113 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
01114 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
01115 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
01116 WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
01117 WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
01118 
01119 WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
01120 WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
01121 WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
01122 WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
01123 
01124 WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
01125 WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
01126 WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
01127 WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
01128 
01129 WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
01130 WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
01131 WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
01132 WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
01133 
01134 WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
01135 
01136 WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
01137 WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
01138 WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
01139 WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
01140 WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
01141 
01142 WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
01143 WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
01144 WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
01145 
01146 WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
01147 WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
01148 WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
01149 WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
01150 WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
01151 WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
01152 
01153 WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
01154 WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
01155 
01156 WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
01157 WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
01158 WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
01159 WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
01160 WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
01161 WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
01162 
01163 WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
01164 WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
01165 WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
01166 WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
01167 WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
01168 WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
01169 WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
01170 WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
01171 WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association;
01172 WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
01173 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context;
01174 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
01175 WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
01176 WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
01177 WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
01178 WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample;
01179 WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer;
01180 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format;
01181 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
01182 WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture;
01183 WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
01184 WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
01185 WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float;
01186 WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table;
01187 WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string;
01188 WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
01189 WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read;
01190 WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample;
01191 WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer;
01192 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format;
01193 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
01194 WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control;
01195 WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
01196 WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma;
01197 WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock;
01198 WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
01199 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
01200 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
01201 WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image;
01202 WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
01203 WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
01204 WGLEW_EXPORT GLboolean __WGLEW_NV_present_video;
01205 WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
01206 WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
01207 WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group;
01208 WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
01209 WGLEW_EXPORT GLboolean __WGLEW_NV_video_output;
01210 WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control;
01211 
01212 #ifdef GLEW_MX
01213 }; /* WGLEWContextStruct */
01214 #endif /* GLEW_MX */
01215 
01216 /* ------------------------------------------------------------------------- */
01217 
01218 #ifdef GLEW_MX
01219 
01220 typedef struct WGLEWContextStruct WGLEWContext;
01221 GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
01222 GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
01223 
01224 #define wglewInit() wglewContextInit(wglewGetContext())
01225 #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
01226 
01227 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
01228 #define WGLEW_GET_FUN(x) wglewGetContext()->x
01229 
01230 #else /* GLEW_MX */
01231 
01232 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
01233 #define WGLEW_GET_FUN(x) x
01234 
01235 GLEWAPI GLboolean wglewIsSupported (const char* name);
01236 
01237 #endif /* GLEW_MX */
01238 
01239 GLEWAPI GLboolean wglewGetExtension (const char* name);
01240 
01241 #ifdef __cplusplus
01242 }
01243 #endif
01244 
01245 #undef GLEWAPI
01246 
01247 #endif /* __wglew_h__ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations