Equalizer 1.0
|
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_create_context_robustness ------------------- */ 00219 00220 #ifndef WGL_ARB_create_context_robustness 00221 #define WGL_ARB_create_context_robustness 1 00222 00223 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 00224 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252 00225 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 00226 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261 00227 00228 #define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness) 00229 00230 #endif /* WGL_ARB_create_context_robustness */ 00231 00232 /* ----------------------- WGL_ARB_extensions_string ----------------------- */ 00233 00234 #ifndef WGL_ARB_extensions_string 00235 #define WGL_ARB_extensions_string 1 00236 00237 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); 00238 00239 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB) 00240 00241 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string) 00242 00243 #endif /* WGL_ARB_extensions_string */ 00244 00245 /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */ 00246 00247 #ifndef WGL_ARB_framebuffer_sRGB 00248 #define WGL_ARB_framebuffer_sRGB 1 00249 00250 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 00251 00252 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB) 00253 00254 #endif /* WGL_ARB_framebuffer_sRGB */ 00255 00256 /* ----------------------- WGL_ARB_make_current_read ----------------------- */ 00257 00258 #ifndef WGL_ARB_make_current_read 00259 #define WGL_ARB_make_current_read 1 00260 00261 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 00262 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 00263 00264 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID); 00265 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); 00266 00267 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB) 00268 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB) 00269 00270 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read) 00271 00272 #endif /* WGL_ARB_make_current_read */ 00273 00274 /* -------------------------- WGL_ARB_multisample -------------------------- */ 00275 00276 #ifndef WGL_ARB_multisample 00277 #define WGL_ARB_multisample 1 00278 00279 #define WGL_SAMPLE_BUFFERS_ARB 0x2041 00280 #define WGL_SAMPLES_ARB 0x2042 00281 00282 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample) 00283 00284 #endif /* WGL_ARB_multisample */ 00285 00286 /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */ 00287 00288 #ifndef WGL_ARB_pbuffer 00289 #define WGL_ARB_pbuffer 1 00290 00291 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D 00292 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E 00293 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F 00294 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 00295 #define WGL_PBUFFER_LARGEST_ARB 0x2033 00296 #define WGL_PBUFFER_WIDTH_ARB 0x2034 00297 #define WGL_PBUFFER_HEIGHT_ARB 0x2035 00298 #define WGL_PBUFFER_LOST_ARB 0x2036 00299 00300 DECLARE_HANDLE(HPBUFFERARB); 00301 00302 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList); 00303 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); 00304 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); 00305 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue); 00306 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC); 00307 00308 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB) 00309 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB) 00310 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB) 00311 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB) 00312 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB) 00313 00314 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer) 00315 00316 #endif /* WGL_ARB_pbuffer */ 00317 00318 /* -------------------------- WGL_ARB_pixel_format ------------------------- */ 00319 00320 #ifndef WGL_ARB_pixel_format 00321 #define WGL_ARB_pixel_format 1 00322 00323 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 00324 #define WGL_DRAW_TO_WINDOW_ARB 0x2001 00325 #define WGL_DRAW_TO_BITMAP_ARB 0x2002 00326 #define WGL_ACCELERATION_ARB 0x2003 00327 #define WGL_NEED_PALETTE_ARB 0x2004 00328 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 00329 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 00330 #define WGL_SWAP_METHOD_ARB 0x2007 00331 #define WGL_NUMBER_OVERLAYS_ARB 0x2008 00332 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009 00333 #define WGL_TRANSPARENT_ARB 0x200A 00334 #define WGL_SHARE_DEPTH_ARB 0x200C 00335 #define WGL_SHARE_STENCIL_ARB 0x200D 00336 #define WGL_SHARE_ACCUM_ARB 0x200E 00337 #define WGL_SUPPORT_GDI_ARB 0x200F 00338 #define WGL_SUPPORT_OPENGL_ARB 0x2010 00339 #define WGL_DOUBLE_BUFFER_ARB 0x2011 00340 #define WGL_STEREO_ARB 0x2012 00341 #define WGL_PIXEL_TYPE_ARB 0x2013 00342 #define WGL_COLOR_BITS_ARB 0x2014 00343 #define WGL_RED_BITS_ARB 0x2015 00344 #define WGL_RED_SHIFT_ARB 0x2016 00345 #define WGL_GREEN_BITS_ARB 0x2017 00346 #define WGL_GREEN_SHIFT_ARB 0x2018 00347 #define WGL_BLUE_BITS_ARB 0x2019 00348 #define WGL_BLUE_SHIFT_ARB 0x201A 00349 #define WGL_ALPHA_BITS_ARB 0x201B 00350 #define WGL_ALPHA_SHIFT_ARB 0x201C 00351 #define WGL_ACCUM_BITS_ARB 0x201D 00352 #define WGL_ACCUM_RED_BITS_ARB 0x201E 00353 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F 00354 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020 00355 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 00356 #define WGL_DEPTH_BITS_ARB 0x2022 00357 #define WGL_STENCIL_BITS_ARB 0x2023 00358 #define WGL_AUX_BUFFERS_ARB 0x2024 00359 #define WGL_NO_ACCELERATION_ARB 0x2025 00360 #define WGL_GENERIC_ACCELERATION_ARB 0x2026 00361 #define WGL_FULL_ACCELERATION_ARB 0x2027 00362 #define WGL_SWAP_EXCHANGE_ARB 0x2028 00363 #define WGL_SWAP_COPY_ARB 0x2029 00364 #define WGL_SWAP_UNDEFINED_ARB 0x202A 00365 #define WGL_TYPE_RGBA_ARB 0x202B 00366 #define WGL_TYPE_COLORINDEX_ARB 0x202C 00367 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 00368 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 00369 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 00370 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A 00371 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B 00372 00373 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); 00374 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues); 00375 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues); 00376 00377 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB) 00378 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB) 00379 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB) 00380 00381 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format) 00382 00383 #endif /* WGL_ARB_pixel_format */ 00384 00385 /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */ 00386 00387 #ifndef WGL_ARB_pixel_format_float 00388 #define WGL_ARB_pixel_format_float 1 00389 00390 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 00391 00392 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float) 00393 00394 #endif /* WGL_ARB_pixel_format_float */ 00395 00396 /* ------------------------- WGL_ARB_render_texture ------------------------ */ 00397 00398 #ifndef WGL_ARB_render_texture 00399 #define WGL_ARB_render_texture 1 00400 00401 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 00402 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 00403 #define WGL_TEXTURE_FORMAT_ARB 0x2072 00404 #define WGL_TEXTURE_TARGET_ARB 0x2073 00405 #define WGL_MIPMAP_TEXTURE_ARB 0x2074 00406 #define WGL_TEXTURE_RGB_ARB 0x2075 00407 #define WGL_TEXTURE_RGBA_ARB 0x2076 00408 #define WGL_NO_TEXTURE_ARB 0x2077 00409 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 00410 #define WGL_TEXTURE_1D_ARB 0x2079 00411 #define WGL_TEXTURE_2D_ARB 0x207A 00412 #define WGL_MIPMAP_LEVEL_ARB 0x207B 00413 #define WGL_CUBE_MAP_FACE_ARB 0x207C 00414 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D 00415 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E 00416 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F 00417 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 00418 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 00419 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 00420 #define WGL_FRONT_LEFT_ARB 0x2083 00421 #define WGL_FRONT_RIGHT_ARB 0x2084 00422 #define WGL_BACK_LEFT_ARB 0x2085 00423 #define WGL_BACK_RIGHT_ARB 0x2086 00424 #define WGL_AUX0_ARB 0x2087 00425 #define WGL_AUX1_ARB 0x2088 00426 #define WGL_AUX2_ARB 0x2089 00427 #define WGL_AUX3_ARB 0x208A 00428 #define WGL_AUX4_ARB 0x208B 00429 #define WGL_AUX5_ARB 0x208C 00430 #define WGL_AUX6_ARB 0x208D 00431 #define WGL_AUX7_ARB 0x208E 00432 #define WGL_AUX8_ARB 0x208F 00433 #define WGL_AUX9_ARB 0x2090 00434 00435 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); 00436 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer); 00437 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList); 00438 00439 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB) 00440 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB) 00441 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB) 00442 00443 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture) 00444 00445 #endif /* WGL_ARB_render_texture */ 00446 00447 /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */ 00448 00449 #ifndef WGL_ATI_pixel_format_float 00450 #define WGL_ATI_pixel_format_float 1 00451 00452 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 00453 #define GL_RGBA_FLOAT_MODE_ATI 0x8820 00454 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 00455 00456 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float) 00457 00458 #endif /* WGL_ATI_pixel_format_float */ 00459 00460 /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */ 00461 00462 #ifndef WGL_ATI_render_texture_rectangle 00463 #define WGL_ATI_render_texture_rectangle 1 00464 00465 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5 00466 00467 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle) 00468 00469 #endif /* WGL_ATI_render_texture_rectangle */ 00470 00471 /* ------------------- WGL_EXT_create_context_es2_profile ------------------ */ 00472 00473 #ifndef WGL_EXT_create_context_es2_profile 00474 #define WGL_EXT_create_context_es2_profile 1 00475 00476 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004 00477 00478 #define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile) 00479 00480 #endif /* WGL_EXT_create_context_es2_profile */ 00481 00482 /* -------------------------- WGL_EXT_depth_float -------------------------- */ 00483 00484 #ifndef WGL_EXT_depth_float 00485 #define WGL_EXT_depth_float 1 00486 00487 #define WGL_DEPTH_FLOAT_EXT 0x2040 00488 00489 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float) 00490 00491 #endif /* WGL_EXT_depth_float */ 00492 00493 /* ---------------------- WGL_EXT_display_color_table ---------------------- */ 00494 00495 #ifndef WGL_EXT_display_color_table 00496 #define WGL_EXT_display_color_table 1 00497 00498 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); 00499 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); 00500 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); 00501 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length); 00502 00503 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT) 00504 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT) 00505 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT) 00506 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT) 00507 00508 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table) 00509 00510 #endif /* WGL_EXT_display_color_table */ 00511 00512 /* ----------------------- WGL_EXT_extensions_string ----------------------- */ 00513 00514 #ifndef WGL_EXT_extensions_string 00515 #define WGL_EXT_extensions_string 1 00516 00517 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); 00518 00519 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT) 00520 00521 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string) 00522 00523 #endif /* WGL_EXT_extensions_string */ 00524 00525 /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */ 00526 00527 #ifndef WGL_EXT_framebuffer_sRGB 00528 #define WGL_EXT_framebuffer_sRGB 1 00529 00530 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 00531 00532 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB) 00533 00534 #endif /* WGL_EXT_framebuffer_sRGB */ 00535 00536 /* ----------------------- WGL_EXT_make_current_read ----------------------- */ 00537 00538 #ifndef WGL_EXT_make_current_read 00539 #define WGL_EXT_make_current_read 1 00540 00541 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 00542 00543 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID); 00544 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc); 00545 00546 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT) 00547 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT) 00548 00549 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read) 00550 00551 #endif /* WGL_EXT_make_current_read */ 00552 00553 /* -------------------------- WGL_EXT_multisample -------------------------- */ 00554 00555 #ifndef WGL_EXT_multisample 00556 #define WGL_EXT_multisample 1 00557 00558 #define WGL_SAMPLE_BUFFERS_EXT 0x2041 00559 #define WGL_SAMPLES_EXT 0x2042 00560 00561 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample) 00562 00563 #endif /* WGL_EXT_multisample */ 00564 00565 /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */ 00566 00567 #ifndef WGL_EXT_pbuffer 00568 #define WGL_EXT_pbuffer 1 00569 00570 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D 00571 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E 00572 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F 00573 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 00574 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 00575 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 00576 #define WGL_PBUFFER_LARGEST_EXT 0x2033 00577 #define WGL_PBUFFER_WIDTH_EXT 0x2034 00578 #define WGL_PBUFFER_HEIGHT_EXT 0x2035 00579 00580 DECLARE_HANDLE(HPBUFFEREXT); 00581 00582 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList); 00583 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); 00584 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); 00585 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue); 00586 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC); 00587 00588 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT) 00589 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT) 00590 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT) 00591 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT) 00592 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT) 00593 00594 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer) 00595 00596 #endif /* WGL_EXT_pbuffer */ 00597 00598 /* -------------------------- WGL_EXT_pixel_format ------------------------- */ 00599 00600 #ifndef WGL_EXT_pixel_format 00601 #define WGL_EXT_pixel_format 1 00602 00603 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 00604 #define WGL_DRAW_TO_WINDOW_EXT 0x2001 00605 #define WGL_DRAW_TO_BITMAP_EXT 0x2002 00606 #define WGL_ACCELERATION_EXT 0x2003 00607 #define WGL_NEED_PALETTE_EXT 0x2004 00608 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 00609 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 00610 #define WGL_SWAP_METHOD_EXT 0x2007 00611 #define WGL_NUMBER_OVERLAYS_EXT 0x2008 00612 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009 00613 #define WGL_TRANSPARENT_EXT 0x200A 00614 #define WGL_TRANSPARENT_VALUE_EXT 0x200B 00615 #define WGL_SHARE_DEPTH_EXT 0x200C 00616 #define WGL_SHARE_STENCIL_EXT 0x200D 00617 #define WGL_SHARE_ACCUM_EXT 0x200E 00618 #define WGL_SUPPORT_GDI_EXT 0x200F 00619 #define WGL_SUPPORT_OPENGL_EXT 0x2010 00620 #define WGL_DOUBLE_BUFFER_EXT 0x2011 00621 #define WGL_STEREO_EXT 0x2012 00622 #define WGL_PIXEL_TYPE_EXT 0x2013 00623 #define WGL_COLOR_BITS_EXT 0x2014 00624 #define WGL_RED_BITS_EXT 0x2015 00625 #define WGL_RED_SHIFT_EXT 0x2016 00626 #define WGL_GREEN_BITS_EXT 0x2017 00627 #define WGL_GREEN_SHIFT_EXT 0x2018 00628 #define WGL_BLUE_BITS_EXT 0x2019 00629 #define WGL_BLUE_SHIFT_EXT 0x201A 00630 #define WGL_ALPHA_BITS_EXT 0x201B 00631 #define WGL_ALPHA_SHIFT_EXT 0x201C 00632 #define WGL_ACCUM_BITS_EXT 0x201D 00633 #define WGL_ACCUM_RED_BITS_EXT 0x201E 00634 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F 00635 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020 00636 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 00637 #define WGL_DEPTH_BITS_EXT 0x2022 00638 #define WGL_STENCIL_BITS_EXT 0x2023 00639 #define WGL_AUX_BUFFERS_EXT 0x2024 00640 #define WGL_NO_ACCELERATION_EXT 0x2025 00641 #define WGL_GENERIC_ACCELERATION_EXT 0x2026 00642 #define WGL_FULL_ACCELERATION_EXT 0x2027 00643 #define WGL_SWAP_EXCHANGE_EXT 0x2028 00644 #define WGL_SWAP_COPY_EXT 0x2029 00645 #define WGL_SWAP_UNDEFINED_EXT 0x202A 00646 #define WGL_TYPE_RGBA_EXT 0x202B 00647 #define WGL_TYPE_COLORINDEX_EXT 0x202C 00648 00649 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats); 00650 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues); 00651 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues); 00652 00653 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT) 00654 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT) 00655 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT) 00656 00657 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format) 00658 00659 #endif /* WGL_EXT_pixel_format */ 00660 00661 /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */ 00662 00663 #ifndef WGL_EXT_pixel_format_packed_float 00664 #define WGL_EXT_pixel_format_packed_float 1 00665 00666 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 00667 00668 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float) 00669 00670 #endif /* WGL_EXT_pixel_format_packed_float */ 00671 00672 /* -------------------------- WGL_EXT_swap_control ------------------------- */ 00673 00674 #ifndef WGL_EXT_swap_control 00675 #define WGL_EXT_swap_control 1 00676 00677 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); 00678 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); 00679 00680 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT) 00681 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT) 00682 00683 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control) 00684 00685 #endif /* WGL_EXT_swap_control */ 00686 00687 /* --------------------- WGL_I3D_digital_video_control --------------------- */ 00688 00689 #ifndef WGL_I3D_digital_video_control 00690 #define WGL_I3D_digital_video_control 1 00691 00692 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 00693 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 00694 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 00695 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 00696 00697 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue); 00698 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue); 00699 00700 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D) 00701 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D) 00702 00703 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control) 00704 00705 #endif /* WGL_I3D_digital_video_control */ 00706 00707 /* ----------------------------- WGL_I3D_gamma ----------------------------- */ 00708 00709 #ifndef WGL_I3D_gamma 00710 #define WGL_I3D_gamma 1 00711 00712 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E 00713 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F 00714 00715 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue); 00716 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue); 00717 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue); 00718 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue); 00719 00720 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D) 00721 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D) 00722 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D) 00723 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D) 00724 00725 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma) 00726 00727 #endif /* WGL_I3D_gamma */ 00728 00729 /* ---------------------------- WGL_I3D_genlock ---------------------------- */ 00730 00731 #ifndef WGL_I3D_genlock 00732 #define WGL_I3D_genlock 1 00733 00734 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 00735 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 00736 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 00737 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 00738 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 00739 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 00740 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A 00741 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B 00742 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C 00743 00744 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); 00745 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); 00746 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); 00747 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); 00748 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); 00749 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); 00750 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate); 00751 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay); 00752 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge); 00753 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource); 00754 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag); 00755 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay); 00756 00757 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D) 00758 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D) 00759 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D) 00760 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D) 00761 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D) 00762 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D) 00763 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D) 00764 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D) 00765 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D) 00766 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D) 00767 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D) 00768 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D) 00769 00770 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock) 00771 00772 #endif /* WGL_I3D_genlock */ 00773 00774 /* -------------------------- WGL_I3D_image_buffer ------------------------- */ 00775 00776 #ifndef WGL_I3D_image_buffer 00777 #define WGL_I3D_image_buffer 1 00778 00779 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 00780 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 00781 00782 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count); 00783 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags); 00784 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress); 00785 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count); 00786 00787 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D) 00788 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D) 00789 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D) 00790 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D) 00791 00792 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer) 00793 00794 #endif /* WGL_I3D_image_buffer */ 00795 00796 /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */ 00797 00798 #ifndef WGL_I3D_swap_frame_lock 00799 #define WGL_I3D_swap_frame_lock 1 00800 00801 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID); 00802 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID); 00803 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag); 00804 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag); 00805 00806 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D) 00807 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D) 00808 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D) 00809 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D) 00810 00811 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock) 00812 00813 #endif /* WGL_I3D_swap_frame_lock */ 00814 00815 /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */ 00816 00817 #ifndef WGL_I3D_swap_frame_usage 00818 #define WGL_I3D_swap_frame_usage 1 00819 00820 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); 00821 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); 00822 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage); 00823 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage); 00824 00825 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D) 00826 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D) 00827 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D) 00828 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D) 00829 00830 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage) 00831 00832 #endif /* WGL_I3D_swap_frame_usage */ 00833 00834 /* --------------------------- WGL_NV_copy_image --------------------------- */ 00835 00836 #ifndef WGL_NV_copy_image 00837 #define WGL_NV_copy_image 1 00838 00839 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); 00840 00841 #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV) 00842 00843 #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image) 00844 00845 #endif /* WGL_NV_copy_image */ 00846 00847 /* -------------------------- WGL_NV_float_buffer -------------------------- */ 00848 00849 #ifndef WGL_NV_float_buffer 00850 #define WGL_NV_float_buffer 1 00851 00852 #define WGL_FLOAT_COMPONENTS_NV 0x20B0 00853 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 00854 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 00855 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 00856 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 00857 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5 00858 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 00859 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 00860 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 00861 00862 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer) 00863 00864 #endif /* WGL_NV_float_buffer */ 00865 00866 /* -------------------------- WGL_NV_gpu_affinity -------------------------- */ 00867 00868 #ifndef WGL_NV_gpu_affinity 00869 #define WGL_NV_gpu_affinity 1 00870 00871 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 00872 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 00873 00874 DECLARE_HANDLE(HGPUNV); 00875 typedef struct _GPU_DEVICE { 00876 DWORD cb; 00877 CHAR DeviceName[32]; 00878 CHAR DeviceString[128]; 00879 DWORD Flags; 00880 RECT rcVirtualScreen; 00881 } GPU_DEVICE, *PGPU_DEVICE; 00882 00883 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList); 00884 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); 00885 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice); 00886 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu); 00887 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu); 00888 00889 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV) 00890 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV) 00891 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV) 00892 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV) 00893 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV) 00894 00895 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity) 00896 00897 #endif /* WGL_NV_gpu_affinity */ 00898 00899 /* ---------------------- WGL_NV_multisample_coverage ---------------------- */ 00900 00901 #ifndef WGL_NV_multisample_coverage 00902 #define WGL_NV_multisample_coverage 1 00903 00904 #define WGL_COVERAGE_SAMPLES_NV 0x2042 00905 #define WGL_COLOR_SAMPLES_NV 0x20B9 00906 00907 #define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage) 00908 00909 #endif /* WGL_NV_multisample_coverage */ 00910 00911 /* -------------------------- WGL_NV_present_video ------------------------- */ 00912 00913 #ifndef WGL_NV_present_video 00914 #define WGL_NV_present_video 1 00915 00916 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 00917 00918 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); 00919 00920 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList); 00921 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList); 00922 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue); 00923 00924 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV) 00925 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV) 00926 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV) 00927 00928 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video) 00929 00930 #endif /* WGL_NV_present_video */ 00931 00932 /* ---------------------- WGL_NV_render_depth_texture ---------------------- */ 00933 00934 #ifndef WGL_NV_render_depth_texture 00935 #define WGL_NV_render_depth_texture 1 00936 00937 #define WGL_NO_TEXTURE_ARB 0x2077 00938 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 00939 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 00940 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 00941 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 00942 #define WGL_DEPTH_COMPONENT_NV 0x20A7 00943 00944 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture) 00945 00946 #endif /* WGL_NV_render_depth_texture */ 00947 00948 /* -------------------- WGL_NV_render_texture_rectangle -------------------- */ 00949 00950 #ifndef WGL_NV_render_texture_rectangle 00951 #define WGL_NV_render_texture_rectangle 1 00952 00953 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 00954 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 00955 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2 00956 00957 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle) 00958 00959 #endif /* WGL_NV_render_texture_rectangle */ 00960 00961 /* --------------------------- WGL_NV_swap_group --------------------------- */ 00962 00963 #ifndef WGL_NV_swap_group 00964 #define WGL_NV_swap_group 1 00965 00966 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier); 00967 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group); 00968 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count); 00969 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers); 00970 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier); 00971 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC); 00972 00973 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV) 00974 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV) 00975 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV) 00976 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV) 00977 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV) 00978 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV) 00979 00980 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group) 00981 00982 #endif /* WGL_NV_swap_group */ 00983 00984 /* ----------------------- WGL_NV_vertex_array_range ----------------------- */ 00985 00986 #ifndef WGL_NV_vertex_array_range 00987 #define WGL_NV_vertex_array_range 1 00988 00989 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority); 00990 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); 00991 00992 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV) 00993 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV) 00994 00995 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range) 00996 00997 #endif /* WGL_NV_vertex_array_range */ 00998 00999 /* -------------------------- WGL_NV_video_output -------------------------- */ 01000 01001 #ifndef WGL_NV_video_output 01002 #define WGL_NV_video_output 1 01003 01004 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 01005 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 01006 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 01007 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3 01008 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 01009 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 01010 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 01011 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 01012 #define WGL_VIDEO_OUT_FRAME 0x20C8 01013 #define WGL_VIDEO_OUT_FIELD_1 0x20C9 01014 #define WGL_VIDEO_OUT_FIELD_2 0x20CA 01015 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB 01016 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC 01017 01018 DECLARE_HANDLE(HPVIDEODEV); 01019 01020 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer); 01021 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice); 01022 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); 01023 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice); 01024 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer); 01025 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock); 01026 01027 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV) 01028 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV) 01029 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV) 01030 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV) 01031 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV) 01032 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV) 01033 01034 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output) 01035 01036 #endif /* WGL_NV_video_output */ 01037 01038 /* -------------------------- WGL_OML_sync_control ------------------------- */ 01039 01040 #ifndef WGL_OML_sync_control 01041 #define WGL_OML_sync_control 1 01042 01043 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator); 01044 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc); 01045 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder); 01046 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder); 01047 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc); 01048 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc); 01049 01050 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML) 01051 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML) 01052 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML) 01053 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML) 01054 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML) 01055 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML) 01056 01057 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control) 01058 01059 #endif /* WGL_OML_sync_control */ 01060 01061 /* ------------------------------------------------------------------------- */ 01062 01063 #ifdef GLEW_MX 01064 #define WGLEW_EXPORT 01065 #else 01066 #define WGLEW_EXPORT GLEWAPI 01067 #endif /* GLEW_MX */ 01068 01069 #ifdef GLEW_MX 01070 struct WGLEWContextStruct 01071 { 01072 #endif /* GLEW_MX */ 01073 01074 WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL; 01075 01076 WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD; 01077 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD; 01078 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD; 01079 WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD; 01080 WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD; 01081 WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD; 01082 WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD; 01083 WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD; 01084 WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD; 01085 01086 WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB; 01087 WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB; 01088 WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB; 01089 WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB; 01090 01091 WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB; 01092 01093 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB; 01094 01095 WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB; 01096 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB; 01097 01098 WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB; 01099 WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB; 01100 WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB; 01101 WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB; 01102 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB; 01103 01104 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB; 01105 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB; 01106 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB; 01107 01108 WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB; 01109 WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB; 01110 WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB; 01111 01112 WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT; 01113 WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT; 01114 WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT; 01115 WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT; 01116 01117 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT; 01118 01119 WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT; 01120 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT; 01121 01122 WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT; 01123 WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT; 01124 WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT; 01125 WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT; 01126 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT; 01127 01128 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT; 01129 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT; 01130 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT; 01131 01132 WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT; 01133 WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT; 01134 01135 WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D; 01136 WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D; 01137 01138 WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D; 01139 WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D; 01140 WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D; 01141 WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D; 01142 01143 WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D; 01144 WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D; 01145 WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D; 01146 WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D; 01147 WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D; 01148 WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D; 01149 WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D; 01150 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D; 01151 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D; 01152 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D; 01153 WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D; 01154 WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D; 01155 01156 WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D; 01157 WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D; 01158 WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D; 01159 WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D; 01160 01161 WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D; 01162 WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D; 01163 WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D; 01164 WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D; 01165 01166 WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D; 01167 WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D; 01168 WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D; 01169 WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D; 01170 01171 WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV; 01172 01173 WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV; 01174 WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV; 01175 WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV; 01176 WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV; 01177 WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV; 01178 01179 WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV; 01180 WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV; 01181 WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV; 01182 01183 WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV; 01184 WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV; 01185 WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV; 01186 WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV; 01187 WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV; 01188 WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV; 01189 01190 WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV; 01191 WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV; 01192 01193 WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV; 01194 WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV; 01195 WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV; 01196 WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV; 01197 WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV; 01198 WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV; 01199 01200 WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML; 01201 WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML; 01202 WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML; 01203 WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML; 01204 WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML; 01205 WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML; 01206 WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample; 01207 WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control; 01208 WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association; 01209 WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region; 01210 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context; 01211 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile; 01212 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_robustness; 01213 WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string; 01214 WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB; 01215 WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read; 01216 WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample; 01217 WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer; 01218 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format; 01219 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float; 01220 WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture; 01221 WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float; 01222 WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle; 01223 WGLEW_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile; 01224 WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float; 01225 WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table; 01226 WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string; 01227 WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB; 01228 WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read; 01229 WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample; 01230 WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer; 01231 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format; 01232 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float; 01233 WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control; 01234 WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control; 01235 WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma; 01236 WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock; 01237 WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer; 01238 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock; 01239 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage; 01240 WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image; 01241 WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer; 01242 WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity; 01243 WGLEW_EXPORT GLboolean __WGLEW_NV_multisample_coverage; 01244 WGLEW_EXPORT GLboolean __WGLEW_NV_present_video; 01245 WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture; 01246 WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle; 01247 WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group; 01248 WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range; 01249 WGLEW_EXPORT GLboolean __WGLEW_NV_video_output; 01250 WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control; 01251 01252 #ifdef GLEW_MX 01253 }; /* WGLEWContextStruct */ 01254 #endif /* GLEW_MX */ 01255 01256 /* ------------------------------------------------------------------------- */ 01257 01258 #ifdef GLEW_MX 01259 01260 typedef struct WGLEWContextStruct WGLEWContext; 01261 GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); 01262 GLEWAPI GLboolean wglewContextIsSupported (const WGLEWContext* ctx, const char* name); 01263 01264 #define wglewInit() wglewContextInit(wglewGetContext()) 01265 #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) 01266 01267 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x)) 01268 #define WGLEW_GET_FUN(x) wglewGetContext()->x 01269 01270 #else /* GLEW_MX */ 01271 01272 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) 01273 #define WGLEW_GET_FUN(x) x 01274 01275 GLEWAPI GLboolean wglewIsSupported (const char* name); 01276 01277 #endif /* GLEW_MX */ 01278 01279 GLEWAPI GLboolean wglewGetExtension (const char* name); 01280 01281 #ifdef __cplusplus 01282 } 01283 #endif 01284 01285 #undef GLEWAPI 01286 01287 #endif /* __wglew_h__ */