Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:54

0001 /*
0002 ** The OpenGL Extension Wrangler Library
0003 ** Copyright (C) 2008-2019, Nigel Stewart <nigels[]users sourceforge net>
0004 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
0005 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
0006 ** Copyright (C) 2002, Lev Povalahev
0007 ** All rights reserved.
0008 ** 
0009 ** Redistribution and use in source and binary forms, with or without 
0010 ** modification, are permitted provided that the following conditions are met:
0011 ** 
0012 ** * Redistributions of source code must retain the above copyright notice, 
0013 **   this list of conditions and the following disclaimer.
0014 ** * Redistributions in binary form must reproduce the above copyright notice, 
0015 **   this list of conditions and the following disclaimer in the documentation 
0016 **   and/or other materials provided with the distribution.
0017 ** * The name of the author may be used to endorse or promote products 
0018 **   derived from this software without specific prior written permission.
0019 **
0020 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
0021 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
0022 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0023 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
0024 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
0025 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
0026 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0027 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0028 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0029 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
0030 ** THE POSSIBILITY OF SUCH DAMAGE.
0031 */
0032 
0033 /*
0034 ** Copyright (c) 2007 The Khronos Group Inc.
0035 ** 
0036 ** Permission is hereby granted, free of charge, to any person obtaining a
0037 ** copy of this software and/or associated documentation files (the
0038 ** "Materials"), to deal in the Materials without restriction, including
0039 ** without limitation the rights to use, copy, modify, merge, publish,
0040 ** distribute, sublicense, and/or sell copies of the Materials, and to
0041 ** permit persons to whom the Materials are furnished to do so, subject to
0042 ** the following conditions:
0043 ** 
0044 ** The above copyright notice and this permission notice shall be included
0045 ** in all copies or substantial portions of the Materials.
0046 ** 
0047 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
0048 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
0049 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
0050 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
0051 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
0052 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
0053 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
0054 */
0055 
0056 #ifndef __wglew_h__
0057 #define __wglew_h__
0058 #define __WGLEW_H__
0059 
0060 #ifdef __wglext_h_
0061 #error wglext.h included before wglew.h
0062 #endif
0063 
0064 #define __wglext_h_
0065 
0066 #if !defined(WINAPI)
0067 #  ifndef WIN32_LEAN_AND_MEAN
0068 #    define WIN32_LEAN_AND_MEAN 1
0069 #  endif
0070 #include <windows.h>
0071 #  undef WIN32_LEAN_AND_MEAN
0072 #endif
0073 
0074 /*
0075  * GLEW_STATIC needs to be set when using the static version.
0076  * GLEW_BUILD is set when building the DLL version.
0077  */
0078 #ifdef GLEW_STATIC
0079 #  define GLEWAPI extern
0080 #else
0081 #  ifdef GLEW_BUILD
0082 #    define GLEWAPI extern __declspec(dllexport)
0083 #  else
0084 #    define GLEWAPI extern __declspec(dllimport)
0085 #  endif
0086 #endif
0087 
0088 #ifdef __cplusplus
0089 extern "C" {
0090 #endif
0091 
0092 /* -------------------------- WGL_3DFX_multisample ------------------------- */
0093 
0094 #ifndef WGL_3DFX_multisample
0095 #define WGL_3DFX_multisample 1
0096 
0097 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
0098 #define WGL_SAMPLES_3DFX 0x2061
0099 
0100 #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
0101 
0102 #endif /* WGL_3DFX_multisample */
0103 
0104 /* ------------------------- WGL_3DL_stereo_control ------------------------ */
0105 
0106 #ifndef WGL_3DL_stereo_control
0107 #define WGL_3DL_stereo_control 1
0108 
0109 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
0110 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
0111 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
0112 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
0113 
0114 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
0115 
0116 #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
0117 
0118 #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
0119 
0120 #endif /* WGL_3DL_stereo_control */
0121 
0122 /* ------------------------ WGL_AMD_gpu_association ------------------------ */
0123 
0124 #ifndef WGL_AMD_gpu_association
0125 #define WGL_AMD_gpu_association 1
0126 
0127 #define WGL_GPU_VENDOR_AMD 0x1F00
0128 #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
0129 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
0130 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
0131 #define WGL_GPU_RAM_AMD 0x21A3
0132 #define WGL_GPU_CLOCK_AMD 0x21A4
0133 #define WGL_GPU_NUM_PIPES_AMD 0x21A5
0134 #define WGL_GPU_NUM_SIMD_AMD 0x21A6
0135 #define WGL_GPU_NUM_RB_AMD 0x21A7
0136 #define WGL_GPU_NUM_SPI_AMD 0x21A8
0137 
0138 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);
0139 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
0140 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList);
0141 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
0142 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
0143 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
0144 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids);
0145 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data);
0146 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
0147 
0148 #define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD)
0149 #define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD)
0150 #define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD)
0151 #define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD)
0152 #define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD)
0153 #define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD)
0154 #define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD)
0155 #define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD)
0156 #define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD)
0157 
0158 #define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association)
0159 
0160 #endif /* WGL_AMD_gpu_association */
0161 
0162 /* ------------------------- WGL_ARB_buffer_region ------------------------- */
0163 
0164 #ifndef WGL_ARB_buffer_region
0165 #define WGL_ARB_buffer_region 1
0166 
0167 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
0168 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
0169 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
0170 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
0171 
0172 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
0173 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
0174 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
0175 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
0176 
0177 #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
0178 #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
0179 #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
0180 #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
0181 
0182 #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
0183 
0184 #endif /* WGL_ARB_buffer_region */
0185 
0186 /* --------------------- WGL_ARB_context_flush_control --------------------- */
0187 
0188 #ifndef WGL_ARB_context_flush_control
0189 #define WGL_ARB_context_flush_control 1
0190 
0191 #define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
0192 #define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
0193 #define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
0194 
0195 #define WGLEW_ARB_context_flush_control WGLEW_GET_VAR(__WGLEW_ARB_context_flush_control)
0196 
0197 #endif /* WGL_ARB_context_flush_control */
0198 
0199 /* ------------------------- WGL_ARB_create_context ------------------------ */
0200 
0201 #ifndef WGL_ARB_create_context
0202 #define WGL_ARB_create_context 1
0203 
0204 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001
0205 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
0206 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
0207 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
0208 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
0209 #define WGL_CONTEXT_FLAGS_ARB 0x2094
0210 #define ERROR_INVALID_VERSION_ARB 0x2095
0211 
0212 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int* attribList);
0213 
0214 #define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB)
0215 
0216 #define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context)
0217 
0218 #endif /* WGL_ARB_create_context */
0219 
0220 /* -------------------- WGL_ARB_create_context_no_error -------------------- */
0221 
0222 #ifndef WGL_ARB_create_context_no_error
0223 #define WGL_ARB_create_context_no_error 1
0224 
0225 #define WGL_CONTEXT_OPENGL_NO_ERROR_ARB 0x31B3
0226 
0227 #define WGLEW_ARB_create_context_no_error WGLEW_GET_VAR(__WGLEW_ARB_create_context_no_error)
0228 
0229 #endif /* WGL_ARB_create_context_no_error */
0230 
0231 /* --------------------- WGL_ARB_create_context_profile -------------------- */
0232 
0233 #ifndef WGL_ARB_create_context_profile
0234 #define WGL_ARB_create_context_profile 1
0235 
0236 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
0237 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
0238 #define ERROR_INVALID_PROFILE_ARB 0x2096
0239 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
0240 
0241 #define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile)
0242 
0243 #endif /* WGL_ARB_create_context_profile */
0244 
0245 /* ------------------- WGL_ARB_create_context_robustness ------------------- */
0246 
0247 #ifndef WGL_ARB_create_context_robustness
0248 #define WGL_ARB_create_context_robustness 1
0249 
0250 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
0251 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
0252 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
0253 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
0254 
0255 #define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness)
0256 
0257 #endif /* WGL_ARB_create_context_robustness */
0258 
0259 /* ----------------------- WGL_ARB_extensions_string ----------------------- */
0260 
0261 #ifndef WGL_ARB_extensions_string
0262 #define WGL_ARB_extensions_string 1
0263 
0264 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
0265 
0266 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
0267 
0268 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
0269 
0270 #endif /* WGL_ARB_extensions_string */
0271 
0272 /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */
0273 
0274 #ifndef WGL_ARB_framebuffer_sRGB
0275 #define WGL_ARB_framebuffer_sRGB 1
0276 
0277 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
0278 
0279 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB)
0280 
0281 #endif /* WGL_ARB_framebuffer_sRGB */
0282 
0283 /* ----------------------- WGL_ARB_make_current_read ----------------------- */
0284 
0285 #ifndef WGL_ARB_make_current_read
0286 #define WGL_ARB_make_current_read 1
0287 
0288 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
0289 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
0290 
0291 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
0292 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
0293 
0294 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
0295 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
0296 
0297 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
0298 
0299 #endif /* WGL_ARB_make_current_read */
0300 
0301 /* -------------------------- WGL_ARB_multisample -------------------------- */
0302 
0303 #ifndef WGL_ARB_multisample
0304 #define WGL_ARB_multisample 1
0305 
0306 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
0307 #define WGL_SAMPLES_ARB 0x2042
0308 
0309 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
0310 
0311 #endif /* WGL_ARB_multisample */
0312 
0313 /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */
0314 
0315 #ifndef WGL_ARB_pbuffer
0316 #define WGL_ARB_pbuffer 1
0317 
0318 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
0319 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
0320 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
0321 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
0322 #define WGL_PBUFFER_LARGEST_ARB 0x2033
0323 #define WGL_PBUFFER_WIDTH_ARB 0x2034
0324 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
0325 #define WGL_PBUFFER_LOST_ARB 0x2036
0326 
0327 DECLARE_HANDLE(HPBUFFERARB);
0328 
0329 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
0330 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
0331 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
0332 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
0333 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
0334 
0335 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
0336 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
0337 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
0338 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
0339 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
0340 
0341 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
0342 
0343 #endif /* WGL_ARB_pbuffer */
0344 
0345 /* -------------------------- WGL_ARB_pixel_format ------------------------- */
0346 
0347 #ifndef WGL_ARB_pixel_format
0348 #define WGL_ARB_pixel_format 1
0349 
0350 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
0351 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
0352 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
0353 #define WGL_ACCELERATION_ARB 0x2003
0354 #define WGL_NEED_PALETTE_ARB 0x2004
0355 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
0356 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
0357 #define WGL_SWAP_METHOD_ARB 0x2007
0358 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
0359 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
0360 #define WGL_TRANSPARENT_ARB 0x200A
0361 #define WGL_SHARE_DEPTH_ARB 0x200C
0362 #define WGL_SHARE_STENCIL_ARB 0x200D
0363 #define WGL_SHARE_ACCUM_ARB 0x200E
0364 #define WGL_SUPPORT_GDI_ARB 0x200F
0365 #define WGL_SUPPORT_OPENGL_ARB 0x2010
0366 #define WGL_DOUBLE_BUFFER_ARB 0x2011
0367 #define WGL_STEREO_ARB 0x2012
0368 #define WGL_PIXEL_TYPE_ARB 0x2013
0369 #define WGL_COLOR_BITS_ARB 0x2014
0370 #define WGL_RED_BITS_ARB 0x2015
0371 #define WGL_RED_SHIFT_ARB 0x2016
0372 #define WGL_GREEN_BITS_ARB 0x2017
0373 #define WGL_GREEN_SHIFT_ARB 0x2018
0374 #define WGL_BLUE_BITS_ARB 0x2019
0375 #define WGL_BLUE_SHIFT_ARB 0x201A
0376 #define WGL_ALPHA_BITS_ARB 0x201B
0377 #define WGL_ALPHA_SHIFT_ARB 0x201C
0378 #define WGL_ACCUM_BITS_ARB 0x201D
0379 #define WGL_ACCUM_RED_BITS_ARB 0x201E
0380 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
0381 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
0382 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
0383 #define WGL_DEPTH_BITS_ARB 0x2022
0384 #define WGL_STENCIL_BITS_ARB 0x2023
0385 #define WGL_AUX_BUFFERS_ARB 0x2024
0386 #define WGL_NO_ACCELERATION_ARB 0x2025
0387 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
0388 #define WGL_FULL_ACCELERATION_ARB 0x2027
0389 #define WGL_SWAP_EXCHANGE_ARB 0x2028
0390 #define WGL_SWAP_COPY_ARB 0x2029
0391 #define WGL_SWAP_UNDEFINED_ARB 0x202A
0392 #define WGL_TYPE_RGBA_ARB 0x202B
0393 #define WGL_TYPE_COLORINDEX_ARB 0x202C
0394 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
0395 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
0396 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
0397 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
0398 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
0399 
0400 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT* pfAttribFList, UINT nMaxFormats, int* piFormats, UINT* nNumFormats);
0401 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT* pfValues);
0402 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int* piValues);
0403 
0404 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
0405 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
0406 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
0407 
0408 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
0409 
0410 #endif /* WGL_ARB_pixel_format */
0411 
0412 /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */
0413 
0414 #ifndef WGL_ARB_pixel_format_float
0415 #define WGL_ARB_pixel_format_float 1
0416 
0417 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
0418 
0419 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
0420 
0421 #endif /* WGL_ARB_pixel_format_float */
0422 
0423 /* ------------------------- WGL_ARB_render_texture ------------------------ */
0424 
0425 #ifndef WGL_ARB_render_texture
0426 #define WGL_ARB_render_texture 1
0427 
0428 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
0429 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
0430 #define WGL_TEXTURE_FORMAT_ARB 0x2072
0431 #define WGL_TEXTURE_TARGET_ARB 0x2073
0432 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
0433 #define WGL_TEXTURE_RGB_ARB 0x2075
0434 #define WGL_TEXTURE_RGBA_ARB 0x2076
0435 #define WGL_NO_TEXTURE_ARB 0x2077
0436 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
0437 #define WGL_TEXTURE_1D_ARB 0x2079
0438 #define WGL_TEXTURE_2D_ARB 0x207A
0439 #define WGL_MIPMAP_LEVEL_ARB 0x207B
0440 #define WGL_CUBE_MAP_FACE_ARB 0x207C
0441 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
0442 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
0443 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
0444 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
0445 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
0446 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
0447 #define WGL_FRONT_LEFT_ARB 0x2083
0448 #define WGL_FRONT_RIGHT_ARB 0x2084
0449 #define WGL_BACK_LEFT_ARB 0x2085
0450 #define WGL_BACK_RIGHT_ARB 0x2086
0451 #define WGL_AUX0_ARB 0x2087
0452 #define WGL_AUX1_ARB 0x2088
0453 #define WGL_AUX2_ARB 0x2089
0454 #define WGL_AUX3_ARB 0x208A
0455 #define WGL_AUX4_ARB 0x208B
0456 #define WGL_AUX5_ARB 0x208C
0457 #define WGL_AUX6_ARB 0x208D
0458 #define WGL_AUX7_ARB 0x208E
0459 #define WGL_AUX8_ARB 0x208F
0460 #define WGL_AUX9_ARB 0x2090
0461 
0462 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
0463 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
0464 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
0465 
0466 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
0467 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
0468 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
0469 
0470 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
0471 
0472 #endif /* WGL_ARB_render_texture */
0473 
0474 /* ---------------- WGL_ARB_robustness_application_isolation --------------- */
0475 
0476 #ifndef WGL_ARB_robustness_application_isolation
0477 #define WGL_ARB_robustness_application_isolation 1
0478 
0479 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
0480 
0481 #define WGLEW_ARB_robustness_application_isolation WGLEW_GET_VAR(__WGLEW_ARB_robustness_application_isolation)
0482 
0483 #endif /* WGL_ARB_robustness_application_isolation */
0484 
0485 /* ---------------- WGL_ARB_robustness_share_group_isolation --------------- */
0486 
0487 #ifndef WGL_ARB_robustness_share_group_isolation
0488 #define WGL_ARB_robustness_share_group_isolation 1
0489 
0490 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
0491 
0492 #define WGLEW_ARB_robustness_share_group_isolation WGLEW_GET_VAR(__WGLEW_ARB_robustness_share_group_isolation)
0493 
0494 #endif /* WGL_ARB_robustness_share_group_isolation */
0495 
0496 /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */
0497 
0498 #ifndef WGL_ATI_pixel_format_float
0499 #define WGL_ATI_pixel_format_float 1
0500 
0501 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
0502 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
0503 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
0504 
0505 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
0506 
0507 #endif /* WGL_ATI_pixel_format_float */
0508 
0509 /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */
0510 
0511 #ifndef WGL_ATI_render_texture_rectangle
0512 #define WGL_ATI_render_texture_rectangle 1
0513 
0514 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
0515 
0516 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
0517 
0518 #endif /* WGL_ATI_render_texture_rectangle */
0519 
0520 /* --------------------------- WGL_EXT_colorspace -------------------------- */
0521 
0522 #ifndef WGL_EXT_colorspace
0523 #define WGL_EXT_colorspace 1
0524 
0525 #define WGL_COLORSPACE_SRGB_EXT 0x3089
0526 #define WGL_COLORSPACE_LINEAR_EXT 0x308A
0527 #define WGL_COLORSPACE_EXT 0x309D
0528 
0529 #define WGLEW_EXT_colorspace WGLEW_GET_VAR(__WGLEW_EXT_colorspace)
0530 
0531 #endif /* WGL_EXT_colorspace */
0532 
0533 /* ------------------- WGL_EXT_create_context_es2_profile ------------------ */
0534 
0535 #ifndef WGL_EXT_create_context_es2_profile
0536 #define WGL_EXT_create_context_es2_profile 1
0537 
0538 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
0539 
0540 #define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile)
0541 
0542 #endif /* WGL_EXT_create_context_es2_profile */
0543 
0544 /* ------------------- WGL_EXT_create_context_es_profile ------------------- */
0545 
0546 #ifndef WGL_EXT_create_context_es_profile
0547 #define WGL_EXT_create_context_es_profile 1
0548 
0549 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
0550 
0551 #define WGLEW_EXT_create_context_es_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es_profile)
0552 
0553 #endif /* WGL_EXT_create_context_es_profile */
0554 
0555 /* -------------------------- WGL_EXT_depth_float -------------------------- */
0556 
0557 #ifndef WGL_EXT_depth_float
0558 #define WGL_EXT_depth_float 1
0559 
0560 #define WGL_DEPTH_FLOAT_EXT 0x2040
0561 
0562 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
0563 
0564 #endif /* WGL_EXT_depth_float */
0565 
0566 /* ---------------------- WGL_EXT_display_color_table ---------------------- */
0567 
0568 #ifndef WGL_EXT_display_color_table
0569 #define WGL_EXT_display_color_table 1
0570 
0571 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
0572 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
0573 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
0574 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort* table, GLuint length);
0575 
0576 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
0577 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
0578 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
0579 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
0580 
0581 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
0582 
0583 #endif /* WGL_EXT_display_color_table */
0584 
0585 /* ----------------------- WGL_EXT_extensions_string ----------------------- */
0586 
0587 #ifndef WGL_EXT_extensions_string
0588 #define WGL_EXT_extensions_string 1
0589 
0590 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
0591 
0592 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
0593 
0594 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
0595 
0596 #endif /* WGL_EXT_extensions_string */
0597 
0598 /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */
0599 
0600 #ifndef WGL_EXT_framebuffer_sRGB
0601 #define WGL_EXT_framebuffer_sRGB 1
0602 
0603 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
0604 
0605 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
0606 
0607 #endif /* WGL_EXT_framebuffer_sRGB */
0608 
0609 /* ----------------------- WGL_EXT_make_current_read ----------------------- */
0610 
0611 #ifndef WGL_EXT_make_current_read
0612 #define WGL_EXT_make_current_read 1
0613 
0614 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
0615 
0616 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
0617 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
0618 
0619 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
0620 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
0621 
0622 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
0623 
0624 #endif /* WGL_EXT_make_current_read */
0625 
0626 /* -------------------------- WGL_EXT_multisample -------------------------- */
0627 
0628 #ifndef WGL_EXT_multisample
0629 #define WGL_EXT_multisample 1
0630 
0631 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
0632 #define WGL_SAMPLES_EXT 0x2042
0633 
0634 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
0635 
0636 #endif /* WGL_EXT_multisample */
0637 
0638 /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
0639 
0640 #ifndef WGL_EXT_pbuffer
0641 #define WGL_EXT_pbuffer 1
0642 
0643 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
0644 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
0645 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
0646 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
0647 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
0648 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
0649 #define WGL_PBUFFER_LARGEST_EXT 0x2033
0650 #define WGL_PBUFFER_WIDTH_EXT 0x2034
0651 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
0652 
0653 DECLARE_HANDLE(HPBUFFEREXT);
0654 
0655 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
0656 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
0657 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
0658 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
0659 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
0660 
0661 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
0662 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
0663 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
0664 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
0665 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
0666 
0667 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
0668 
0669 #endif /* WGL_EXT_pbuffer */
0670 
0671 /* -------------------------- WGL_EXT_pixel_format ------------------------- */
0672 
0673 #ifndef WGL_EXT_pixel_format
0674 #define WGL_EXT_pixel_format 1
0675 
0676 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
0677 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
0678 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
0679 #define WGL_ACCELERATION_EXT 0x2003
0680 #define WGL_NEED_PALETTE_EXT 0x2004
0681 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
0682 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
0683 #define WGL_SWAP_METHOD_EXT 0x2007
0684 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
0685 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
0686 #define WGL_TRANSPARENT_EXT 0x200A
0687 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
0688 #define WGL_SHARE_DEPTH_EXT 0x200C
0689 #define WGL_SHARE_STENCIL_EXT 0x200D
0690 #define WGL_SHARE_ACCUM_EXT 0x200E
0691 #define WGL_SUPPORT_GDI_EXT 0x200F
0692 #define WGL_SUPPORT_OPENGL_EXT 0x2010
0693 #define WGL_DOUBLE_BUFFER_EXT 0x2011
0694 #define WGL_STEREO_EXT 0x2012
0695 #define WGL_PIXEL_TYPE_EXT 0x2013
0696 #define WGL_COLOR_BITS_EXT 0x2014
0697 #define WGL_RED_BITS_EXT 0x2015
0698 #define WGL_RED_SHIFT_EXT 0x2016
0699 #define WGL_GREEN_BITS_EXT 0x2017
0700 #define WGL_GREEN_SHIFT_EXT 0x2018
0701 #define WGL_BLUE_BITS_EXT 0x2019
0702 #define WGL_BLUE_SHIFT_EXT 0x201A
0703 #define WGL_ALPHA_BITS_EXT 0x201B
0704 #define WGL_ALPHA_SHIFT_EXT 0x201C
0705 #define WGL_ACCUM_BITS_EXT 0x201D
0706 #define WGL_ACCUM_RED_BITS_EXT 0x201E
0707 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
0708 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
0709 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
0710 #define WGL_DEPTH_BITS_EXT 0x2022
0711 #define WGL_STENCIL_BITS_EXT 0x2023
0712 #define WGL_AUX_BUFFERS_EXT 0x2024
0713 #define WGL_NO_ACCELERATION_EXT 0x2025
0714 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
0715 #define WGL_FULL_ACCELERATION_EXT 0x2027
0716 #define WGL_SWAP_EXCHANGE_EXT 0x2028
0717 #define WGL_SWAP_COPY_EXT 0x2029
0718 #define WGL_SWAP_UNDEFINED_EXT 0x202A
0719 #define WGL_TYPE_RGBA_EXT 0x202B
0720 #define WGL_TYPE_COLORINDEX_EXT 0x202C
0721 
0722 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT* pfAttribFList, UINT nMaxFormats, int* piFormats, UINT* nNumFormats);
0723 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT* pfValues);
0724 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int* piValues);
0725 
0726 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
0727 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
0728 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
0729 
0730 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
0731 
0732 #endif /* WGL_EXT_pixel_format */
0733 
0734 /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */
0735 
0736 #ifndef WGL_EXT_pixel_format_packed_float
0737 #define WGL_EXT_pixel_format_packed_float 1
0738 
0739 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
0740 
0741 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
0742 
0743 #endif /* WGL_EXT_pixel_format_packed_float */
0744 
0745 /* -------------------------- WGL_EXT_swap_control ------------------------- */
0746 
0747 #ifndef WGL_EXT_swap_control
0748 #define WGL_EXT_swap_control 1
0749 
0750 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
0751 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
0752 
0753 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
0754 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
0755 
0756 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
0757 
0758 #endif /* WGL_EXT_swap_control */
0759 
0760 /* ----------------------- WGL_EXT_swap_control_tear ----------------------- */
0761 
0762 #ifndef WGL_EXT_swap_control_tear
0763 #define WGL_EXT_swap_control_tear 1
0764 
0765 #define WGLEW_EXT_swap_control_tear WGLEW_GET_VAR(__WGLEW_EXT_swap_control_tear)
0766 
0767 #endif /* WGL_EXT_swap_control_tear */
0768 
0769 /* --------------------- WGL_I3D_digital_video_control --------------------- */
0770 
0771 #ifndef WGL_I3D_digital_video_control
0772 #define WGL_I3D_digital_video_control 1
0773 
0774 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
0775 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
0776 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
0777 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
0778 
0779 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
0780 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
0781 
0782 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
0783 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
0784 
0785 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
0786 
0787 #endif /* WGL_I3D_digital_video_control */
0788 
0789 /* ----------------------------- WGL_I3D_gamma ----------------------------- */
0790 
0791 #ifndef WGL_I3D_gamma
0792 #define WGL_I3D_gamma 1
0793 
0794 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
0795 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
0796 
0797 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT* puGreen, USHORT* puBlue);
0798 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
0799 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT* puGreen, const USHORT* puBlue);
0800 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
0801 
0802 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
0803 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
0804 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
0805 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
0806 
0807 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
0808 
0809 #endif /* WGL_I3D_gamma */
0810 
0811 /* ---------------------------- WGL_I3D_genlock ---------------------------- */
0812 
0813 #ifndef WGL_I3D_genlock
0814 #define WGL_I3D_genlock 1
0815 
0816 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
0817 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
0818 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
0819 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
0820 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
0821 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
0822 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
0823 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
0824 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
0825 
0826 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
0827 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
0828 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
0829 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
0830 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
0831 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
0832 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
0833 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
0834 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
0835 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
0836 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
0837 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT* uMaxPixelDelay);
0838 
0839 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
0840 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
0841 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
0842 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
0843 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
0844 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
0845 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
0846 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
0847 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
0848 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
0849 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
0850 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
0851 
0852 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
0853 
0854 #endif /* WGL_I3D_genlock */
0855 
0856 /* -------------------------- WGL_I3D_image_buffer ------------------------- */
0857 
0858 #ifndef WGL_I3D_image_buffer
0859 #define WGL_I3D_image_buffer 1
0860 
0861 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
0862 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
0863 
0864 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE* pEvent, const LPVOID* pAddress, const DWORD* pSize, UINT count);
0865 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
0866 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
0867 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID* pAddress, UINT count);
0868 
0869 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
0870 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
0871 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
0872 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
0873 
0874 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
0875 
0876 #endif /* WGL_I3D_image_buffer */
0877 
0878 /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
0879 
0880 #ifndef WGL_I3D_swap_frame_lock
0881 #define WGL_I3D_swap_frame_lock 1
0882 
0883 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
0884 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
0885 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
0886 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
0887 
0888 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
0889 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
0890 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
0891 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
0892 
0893 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
0894 
0895 #endif /* WGL_I3D_swap_frame_lock */
0896 
0897 /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
0898 
0899 #ifndef WGL_I3D_swap_frame_usage
0900 #define WGL_I3D_swap_frame_usage 1
0901 
0902 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
0903 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
0904 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
0905 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD* pMissedFrames, float* pLastMissedUsage);
0906 
0907 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
0908 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
0909 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
0910 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
0911 
0912 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
0913 
0914 #endif /* WGL_I3D_swap_frame_usage */
0915 
0916 /* --------------------------- WGL_NV_DX_interop --------------------------- */
0917 
0918 #ifndef WGL_NV_DX_interop
0919 #define WGL_NV_DX_interop 1
0920 
0921 #define WGL_ACCESS_READ_ONLY_NV 0x00000000
0922 #define WGL_ACCESS_READ_WRITE_NV 0x00000001
0923 #define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002
0924 
0925 typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
0926 typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
0927 typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
0928 typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void* dxDevice);
0929 typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access);
0930 typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void* dxObject, HANDLE shareHandle);
0931 typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
0932 typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
0933 
0934 #define wglDXCloseDeviceNV WGLEW_GET_FUN(__wglewDXCloseDeviceNV)
0935 #define wglDXLockObjectsNV WGLEW_GET_FUN(__wglewDXLockObjectsNV)
0936 #define wglDXObjectAccessNV WGLEW_GET_FUN(__wglewDXObjectAccessNV)
0937 #define wglDXOpenDeviceNV WGLEW_GET_FUN(__wglewDXOpenDeviceNV)
0938 #define wglDXRegisterObjectNV WGLEW_GET_FUN(__wglewDXRegisterObjectNV)
0939 #define wglDXSetResourceShareHandleNV WGLEW_GET_FUN(__wglewDXSetResourceShareHandleNV)
0940 #define wglDXUnlockObjectsNV WGLEW_GET_FUN(__wglewDXUnlockObjectsNV)
0941 #define wglDXUnregisterObjectNV WGLEW_GET_FUN(__wglewDXUnregisterObjectNV)
0942 
0943 #define WGLEW_NV_DX_interop WGLEW_GET_VAR(__WGLEW_NV_DX_interop)
0944 
0945 #endif /* WGL_NV_DX_interop */
0946 
0947 /* --------------------------- WGL_NV_DX_interop2 -------------------------- */
0948 
0949 #ifndef WGL_NV_DX_interop2
0950 #define WGL_NV_DX_interop2 1
0951 
0952 #define WGLEW_NV_DX_interop2 WGLEW_GET_VAR(__WGLEW_NV_DX_interop2)
0953 
0954 #endif /* WGL_NV_DX_interop2 */
0955 
0956 /* --------------------------- WGL_NV_copy_image --------------------------- */
0957 
0958 #ifndef WGL_NV_copy_image
0959 #define WGL_NV_copy_image 1
0960 
0961 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);
0962 
0963 #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
0964 
0965 #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
0966 
0967 #endif /* WGL_NV_copy_image */
0968 
0969 /* ------------------------ WGL_NV_delay_before_swap ----------------------- */
0970 
0971 #ifndef WGL_NV_delay_before_swap
0972 #define WGL_NV_delay_before_swap 1
0973 
0974 typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds);
0975 
0976 #define wglDelayBeforeSwapNV WGLEW_GET_FUN(__wglewDelayBeforeSwapNV)
0977 
0978 #define WGLEW_NV_delay_before_swap WGLEW_GET_VAR(__WGLEW_NV_delay_before_swap)
0979 
0980 #endif /* WGL_NV_delay_before_swap */
0981 
0982 /* -------------------------- WGL_NV_float_buffer -------------------------- */
0983 
0984 #ifndef WGL_NV_float_buffer
0985 #define WGL_NV_float_buffer 1
0986 
0987 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
0988 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
0989 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
0990 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
0991 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
0992 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
0993 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
0994 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
0995 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
0996 
0997 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
0998 
0999 #endif /* WGL_NV_float_buffer */
1000 
1001 /* -------------------------- WGL_NV_gpu_affinity -------------------------- */
1002 
1003 #ifndef WGL_NV_gpu_affinity
1004 #define WGL_NV_gpu_affinity 1
1005 
1006 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
1007 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
1008 
1009 DECLARE_HANDLE(HGPUNV);
1010 typedef struct _GPU_DEVICE {
1011   DWORD cb; 
1012   CHAR DeviceName[32]; 
1013   CHAR DeviceString[128]; 
1014   DWORD Flags; 
1015   RECT rcVirtualScreen; 
1016 } GPU_DEVICE, *PGPU_DEVICE;
1017 
1018 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
1019 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
1020 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
1021 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
1022 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
1023 
1024 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
1025 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
1026 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
1027 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
1028 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
1029 
1030 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
1031 
1032 #endif /* WGL_NV_gpu_affinity */
1033 
1034 /* ------------------------ WGL_NV_multigpu_context ------------------------ */
1035 
1036 #ifndef WGL_NV_multigpu_context
1037 #define WGL_NV_multigpu_context 1
1038 
1039 #define WGL_CONTEXT_MULTIGPU_ATTRIB_NV 0x20AA
1040 #define WGL_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB
1041 #define WGL_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC
1042 #define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD
1043 #define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE
1044 
1045 #define WGLEW_NV_multigpu_context WGLEW_GET_VAR(__WGLEW_NV_multigpu_context)
1046 
1047 #endif /* WGL_NV_multigpu_context */
1048 
1049 /* ---------------------- WGL_NV_multisample_coverage ---------------------- */
1050 
1051 #ifndef WGL_NV_multisample_coverage
1052 #define WGL_NV_multisample_coverage 1
1053 
1054 #define WGL_COVERAGE_SAMPLES_NV 0x2042
1055 #define WGL_COLOR_SAMPLES_NV 0x20B9
1056 
1057 #define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage)
1058 
1059 #endif /* WGL_NV_multisample_coverage */
1060 
1061 /* -------------------------- WGL_NV_present_video ------------------------- */
1062 
1063 #ifndef WGL_NV_present_video
1064 #define WGL_NV_present_video 1
1065 
1066 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
1067 
1068 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
1069 
1070 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList);
1071 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
1072 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue);
1073 
1074 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
1075 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
1076 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
1077 
1078 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
1079 
1080 #endif /* WGL_NV_present_video */
1081 
1082 /* ---------------------- WGL_NV_render_depth_texture ---------------------- */
1083 
1084 #ifndef WGL_NV_render_depth_texture
1085 #define WGL_NV_render_depth_texture 1
1086 
1087 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
1088 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
1089 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
1090 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
1091 #define WGL_DEPTH_COMPONENT_NV 0x20A7
1092 
1093 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
1094 
1095 #endif /* WGL_NV_render_depth_texture */
1096 
1097 /* -------------------- WGL_NV_render_texture_rectangle -------------------- */
1098 
1099 #ifndef WGL_NV_render_texture_rectangle
1100 #define WGL_NV_render_texture_rectangle 1
1101 
1102 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
1103 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
1104 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
1105 
1106 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
1107 
1108 #endif /* WGL_NV_render_texture_rectangle */
1109 
1110 /* --------------------------- WGL_NV_swap_group --------------------------- */
1111 
1112 #ifndef WGL_NV_swap_group
1113 #define WGL_NV_swap_group 1
1114 
1115 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
1116 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
1117 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
1118 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint* maxBarriers);
1119 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint* barrier);
1120 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
1121 
1122 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
1123 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
1124 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
1125 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
1126 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
1127 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
1128 
1129 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
1130 
1131 #endif /* WGL_NV_swap_group */
1132 
1133 /* ----------------------- WGL_NV_vertex_array_range ----------------------- */
1134 
1135 #ifndef WGL_NV_vertex_array_range
1136 #define WGL_NV_vertex_array_range 1
1137 
1138 typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
1139 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void* pointer);
1140 
1141 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
1142 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
1143 
1144 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
1145 
1146 #endif /* WGL_NV_vertex_array_range */
1147 
1148 /* -------------------------- WGL_NV_video_capture ------------------------- */
1149 
1150 #ifndef WGL_NV_video_capture
1151 #define WGL_NV_video_capture 1
1152 
1153 #define WGL_UNIQUE_ID_NV 0x20CE
1154 #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
1155 
1156 DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
1157 
1158 typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
1159 typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV* phDeviceList);
1160 typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
1161 typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int* piValue);
1162 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
1163 
1164 #define wglBindVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewBindVideoCaptureDeviceNV)
1165 #define wglEnumerateVideoCaptureDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoCaptureDevicesNV)
1166 #define wglLockVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewLockVideoCaptureDeviceNV)
1167 #define wglQueryVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewQueryVideoCaptureDeviceNV)
1168 #define wglReleaseVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoCaptureDeviceNV)
1169 
1170 #define WGLEW_NV_video_capture WGLEW_GET_VAR(__WGLEW_NV_video_capture)
1171 
1172 #endif /* WGL_NV_video_capture */
1173 
1174 /* -------------------------- WGL_NV_video_output -------------------------- */
1175 
1176 #ifndef WGL_NV_video_output
1177 #define WGL_NV_video_output 1
1178 
1179 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
1180 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
1181 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
1182 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
1183 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
1184 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
1185 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
1186 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
1187 #define WGL_VIDEO_OUT_FRAME 0x20C8
1188 #define WGL_VIDEO_OUT_FIELD_1 0x20C9
1189 #define WGL_VIDEO_OUT_FIELD_2 0x20CA
1190 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
1191 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
1192 
1193 DECLARE_HANDLE(HPVIDEODEV);
1194 
1195 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
1196 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice);
1197 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long* pulCounterOutputVideo);
1198 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
1199 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
1200 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock);
1201 
1202 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
1203 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
1204 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
1205 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
1206 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
1207 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
1208 
1209 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
1210 
1211 #endif /* WGL_NV_video_output */
1212 
1213 /* -------------------------- WGL_OML_sync_control ------------------------- */
1214 
1215 #ifndef WGL_OML_sync_control
1216 #define WGL_OML_sync_control 1
1217 
1218 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32* denominator);
1219 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64* msc, INT64* sbc);
1220 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
1221 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
1222 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64* msc, INT64* sbc);
1223 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64* msc, INT64* sbc);
1224 
1225 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
1226 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
1227 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
1228 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
1229 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
1230 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
1231 
1232 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
1233 
1234 #endif /* WGL_OML_sync_control */
1235 
1236 /* ------------------------------------------------------------------------- */
1237 
1238 #define WGLEW_FUN_EXPORT GLEW_FUN_EXPORT
1239 #define WGLEW_VAR_EXPORT GLEW_VAR_EXPORT
1240 
1241 WGLEW_FUN_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
1242 
1243 WGLEW_FUN_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
1244 WGLEW_FUN_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
1245 WGLEW_FUN_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
1246 WGLEW_FUN_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
1247 WGLEW_FUN_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
1248 WGLEW_FUN_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
1249 WGLEW_FUN_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
1250 WGLEW_FUN_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
1251 WGLEW_FUN_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
1252 
1253 WGLEW_FUN_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
1254 WGLEW_FUN_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
1255 WGLEW_FUN_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
1256 WGLEW_FUN_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
1257 
1258 WGLEW_FUN_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
1259 
1260 WGLEW_FUN_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
1261 
1262 WGLEW_FUN_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
1263 WGLEW_FUN_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
1264 
1265 WGLEW_FUN_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
1266 WGLEW_FUN_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
1267 WGLEW_FUN_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
1268 WGLEW_FUN_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
1269 WGLEW_FUN_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
1270 
1271 WGLEW_FUN_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
1272 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
1273 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
1274 
1275 WGLEW_FUN_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
1276 WGLEW_FUN_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
1277 WGLEW_FUN_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
1278 
1279 WGLEW_FUN_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
1280 WGLEW_FUN_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
1281 WGLEW_FUN_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
1282 WGLEW_FUN_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
1283 
1284 WGLEW_FUN_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
1285 
1286 WGLEW_FUN_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
1287 WGLEW_FUN_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
1288 
1289 WGLEW_FUN_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
1290 WGLEW_FUN_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
1291 WGLEW_FUN_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
1292 WGLEW_FUN_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
1293 WGLEW_FUN_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
1294 
1295 WGLEW_FUN_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
1296 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
1297 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
1298 
1299 WGLEW_FUN_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
1300 WGLEW_FUN_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
1301 
1302 WGLEW_FUN_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
1303 WGLEW_FUN_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
1304 
1305 WGLEW_FUN_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
1306 WGLEW_FUN_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
1307 WGLEW_FUN_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
1308 WGLEW_FUN_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
1309 
1310 WGLEW_FUN_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
1311 WGLEW_FUN_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
1312 WGLEW_FUN_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
1313 WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
1314 WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
1315 WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
1316 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
1317 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
1318 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
1319 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
1320 WGLEW_FUN_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
1321 WGLEW_FUN_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
1322 
1323 WGLEW_FUN_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
1324 WGLEW_FUN_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
1325 WGLEW_FUN_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
1326 WGLEW_FUN_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
1327 
1328 WGLEW_FUN_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
1329 WGLEW_FUN_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
1330 WGLEW_FUN_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
1331 WGLEW_FUN_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
1332 
1333 WGLEW_FUN_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
1334 WGLEW_FUN_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
1335 WGLEW_FUN_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
1336 WGLEW_FUN_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
1337 
1338 WGLEW_FUN_EXPORT PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV;
1339 WGLEW_FUN_EXPORT PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV;
1340 WGLEW_FUN_EXPORT PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV;
1341 WGLEW_FUN_EXPORT PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV;
1342 WGLEW_FUN_EXPORT PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV;
1343 WGLEW_FUN_EXPORT PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV;
1344 WGLEW_FUN_EXPORT PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV;
1345 WGLEW_FUN_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV;
1346 
1347 WGLEW_FUN_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
1348 
1349 WGLEW_FUN_EXPORT PFNWGLDELAYBEFORESWAPNVPROC __wglewDelayBeforeSwapNV;
1350 
1351 WGLEW_FUN_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
1352 WGLEW_FUN_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
1353 WGLEW_FUN_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
1354 WGLEW_FUN_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
1355 WGLEW_FUN_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
1356 
1357 WGLEW_FUN_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
1358 WGLEW_FUN_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
1359 WGLEW_FUN_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
1360 
1361 WGLEW_FUN_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
1362 WGLEW_FUN_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
1363 WGLEW_FUN_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
1364 WGLEW_FUN_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
1365 WGLEW_FUN_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
1366 WGLEW_FUN_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
1367 
1368 WGLEW_FUN_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
1369 WGLEW_FUN_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
1370 
1371 WGLEW_FUN_EXPORT PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV;
1372 WGLEW_FUN_EXPORT PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV;
1373 WGLEW_FUN_EXPORT PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV;
1374 WGLEW_FUN_EXPORT PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV;
1375 WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV;
1376 
1377 WGLEW_FUN_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
1378 WGLEW_FUN_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
1379 WGLEW_FUN_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
1380 WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
1381 WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
1382 WGLEW_FUN_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
1383 
1384 WGLEW_FUN_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
1385 WGLEW_FUN_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
1386 WGLEW_FUN_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
1387 WGLEW_FUN_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
1388 WGLEW_FUN_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
1389 WGLEW_FUN_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
1390 WGLEW_VAR_EXPORT GLboolean __WGLEW_3DFX_multisample;
1391 WGLEW_VAR_EXPORT GLboolean __WGLEW_3DL_stereo_control;
1392 WGLEW_VAR_EXPORT GLboolean __WGLEW_AMD_gpu_association;
1393 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_buffer_region;
1394 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_context_flush_control;
1395 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context;
1396 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_no_error;
1397 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
1398 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_robustness;
1399 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_extensions_string;
1400 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
1401 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_make_current_read;
1402 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_multisample;
1403 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pbuffer;
1404 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pixel_format;
1405 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
1406 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_render_texture;
1407 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_robustness_application_isolation;
1408 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_robustness_share_group_isolation;
1409 WGLEW_VAR_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
1410 WGLEW_VAR_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
1411 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_colorspace;
1412 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile;
1413 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_create_context_es_profile;
1414 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_depth_float;
1415 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_display_color_table;
1416 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_extensions_string;
1417 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
1418 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_make_current_read;
1419 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_multisample;
1420 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pbuffer;
1421 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pixel_format;
1422 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
1423 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_swap_control;
1424 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_swap_control_tear;
1425 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
1426 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_gamma;
1427 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_genlock;
1428 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_image_buffer;
1429 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
1430 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
1431 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop;
1432 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop2;
1433 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_copy_image;
1434 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_delay_before_swap;
1435 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_float_buffer;
1436 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
1437 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_multigpu_context;
1438 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_multisample_coverage;
1439 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_present_video;
1440 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
1441 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
1442 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_swap_group;
1443 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
1444 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_capture;
1445 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_output;
1446 WGLEW_VAR_EXPORT GLboolean __WGLEW_OML_sync_control;
1447 /* ------------------------------------------------------------------------- */
1448 
1449 GLEWAPI GLenum GLEWAPIENTRY wglewInit ();
1450 GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
1451 
1452 #ifndef WGLEW_GET_VAR
1453 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
1454 #endif
1455 
1456 #ifndef WGLEW_GET_FUN
1457 #define WGLEW_GET_FUN(x) x
1458 #endif
1459 
1460 GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
1461 
1462 #ifdef __cplusplus
1463 }
1464 #endif
1465 
1466 #undef GLEWAPI
1467 
1468 #endif /* __wglew_h__ */