• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 ** The OpenGL Extension Wrangler Library
3 ** Copyright (C) 2008-2017, Nigel Stewart <nigels[]users sourceforge net>
4 ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
5 ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
6 ** Copyright (C) 2002, Lev Povalahev
7 ** All rights reserved.
8 **
9 ** Redistribution and use in source and binary forms, with or without
10 ** modification, are permitted provided that the following conditions are met:
11 **
12 ** * Redistributions of source code must retain the above copyright notice,
13 **   this list of conditions and the following disclaimer.
14 ** * Redistributions in binary form must reproduce the above copyright notice,
15 **   this list of conditions and the following disclaimer in the documentation
16 **   and/or other materials provided with the distribution.
17 ** * The name of the author may be used to endorse or promote products
18 **   derived from this software without specific prior written permission.
19 **
20 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21 ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
24 ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
30 ** THE POSSIBILITY OF SUCH DAMAGE.
31 */
32 
33 /*
34 ** Copyright (c) 2007 The Khronos Group Inc.
35 **
36 ** Permission is hereby granted, free of charge, to any person obtaining a
37 ** copy of this software and/or associated documentation files (the
38 ** "Materials"), to deal in the Materials without restriction, including
39 ** without limitation the rights to use, copy, modify, merge, publish,
40 ** distribute, sublicense, and/or sell copies of the Materials, and to
41 ** permit persons to whom the Materials are furnished to do so, subject to
42 ** the following conditions:
43 **
44 ** The above copyright notice and this permission notice shall be included
45 ** in all copies or substantial portions of the Materials.
46 **
47 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
48 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
49 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
50 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
51 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
52 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
53 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
54 */
55 
56 #ifndef __wglew_h__
57 #define __wglew_h__
58 #define __WGLEW_H__
59 
60 #ifdef __wglext_h_
61 #error wglext.h included before wglew.h
62 #endif
63 
64 #define __wglext_h_
65 
66 #if !defined(WINAPI)
67 #  ifndef WIN32_LEAN_AND_MEAN
68 #    define WIN32_LEAN_AND_MEAN 1
69 #  endif
70 #include <windows.h>
71 #  undef WIN32_LEAN_AND_MEAN
72 #endif
73 
74 /*
75  * GLEW_STATIC needs to be set when using the static version.
76  * GLEW_BUILD is set when building the DLL version.
77  */
78 #ifdef GLEW_STATIC
79 #  define GLEWAPI extern
80 #else
81 #  ifdef GLEW_BUILD
82 #    define GLEWAPI extern __declspec(dllexport)
83 #  else
84 #    define GLEWAPI extern __declspec(dllimport)
85 #  endif
86 #endif
87 
88 /* -------------------------- WGL_3DFX_multisample ------------------------- */
89 
90 #ifndef WGL_3DFX_multisample
91 #define WGL_3DFX_multisample 1
92 
93 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
94 #define WGL_SAMPLES_3DFX 0x2061
95 
96 #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
97 
98 #endif /* WGL_3DFX_multisample */
99 
100 /* ------------------------- WGL_3DL_stereo_control ------------------------ */
101 
102 #ifndef WGL_3DL_stereo_control
103 #define WGL_3DL_stereo_control 1
104 
105 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
106 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
107 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
108 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
109 
110 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
111 
112 #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
113 
114 #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
115 
116 #endif /* WGL_3DL_stereo_control */
117 
118 /* ------------------------ WGL_AMD_gpu_association ------------------------ */
119 
120 #ifndef WGL_AMD_gpu_association
121 #define WGL_AMD_gpu_association 1
122 
123 #define WGL_GPU_VENDOR_AMD 0x1F00
124 #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
125 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
126 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
127 #define WGL_GPU_RAM_AMD 0x21A3
128 #define WGL_GPU_CLOCK_AMD 0x21A4
129 #define WGL_GPU_NUM_PIPES_AMD 0x21A5
130 #define WGL_GPU_NUM_SIMD_AMD 0x21A6
131 #define WGL_GPU_NUM_RB_AMD 0x21A7
132 #define WGL_GPU_NUM_SPI_AMD 0x21A8
133 
134 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);
135 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
136 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList);
137 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
138 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
139 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
140 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids);
141 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data);
142 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
143 
144 #define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD)
145 #define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD)
146 #define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD)
147 #define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD)
148 #define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD)
149 #define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD)
150 #define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD)
151 #define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD)
152 #define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD)
153 
154 #define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association)
155 
156 #endif /* WGL_AMD_gpu_association */
157 
158 /* ------------------------- WGL_ARB_buffer_region ------------------------- */
159 
160 #ifndef WGL_ARB_buffer_region
161 #define WGL_ARB_buffer_region 1
162 
163 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
164 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
165 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
166 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
167 
168 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
169 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
170 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
171 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
172 
173 #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
174 #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
175 #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
176 #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
177 
178 #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
179 
180 #endif /* WGL_ARB_buffer_region */
181 
182 /* --------------------- WGL_ARB_context_flush_control --------------------- */
183 
184 #ifndef WGL_ARB_context_flush_control
185 #define WGL_ARB_context_flush_control 1
186 
187 #define WGLEW_ARB_context_flush_control WGLEW_GET_VAR(__WGLEW_ARB_context_flush_control)
188 
189 #endif /* WGL_ARB_context_flush_control */
190 
191 /* ------------------------- WGL_ARB_create_context ------------------------ */
192 
193 #ifndef WGL_ARB_create_context
194 #define WGL_ARB_create_context 1
195 
196 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
197 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
198 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
199 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
200 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
201 #define WGL_CONTEXT_FLAGS_ARB 0x2094
202 #define ERROR_INVALID_VERSION_ARB 0x2095
203 #define ERROR_INVALID_PROFILE_ARB 0x2096
204 
205 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int* attribList);
206 
207 #define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB)
208 
209 #define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context)
210 
211 #endif /* WGL_ARB_create_context */
212 
213 /* -------------------- WGL_ARB_create_context_no_error -------------------- */
214 
215 #ifndef WGL_ARB_create_context_no_error
216 #define WGL_ARB_create_context_no_error 1
217 
218 #define WGLEW_ARB_create_context_no_error WGLEW_GET_VAR(__WGLEW_ARB_create_context_no_error)
219 
220 #endif /* WGL_ARB_create_context_no_error */
221 
222 /* --------------------- WGL_ARB_create_context_profile -------------------- */
223 
224 #ifndef WGL_ARB_create_context_profile
225 #define WGL_ARB_create_context_profile 1
226 
227 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
228 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
229 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
230 
231 #define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile)
232 
233 #endif /* WGL_ARB_create_context_profile */
234 
235 /* ------------------- WGL_ARB_create_context_robustness ------------------- */
236 
237 #ifndef WGL_ARB_create_context_robustness
238 #define WGL_ARB_create_context_robustness 1
239 
240 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
241 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
242 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
243 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
244 
245 #define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness)
246 
247 #endif /* WGL_ARB_create_context_robustness */
248 
249 /* ----------------------- WGL_ARB_extensions_string ----------------------- */
250 
251 #ifndef WGL_ARB_extensions_string
252 #define WGL_ARB_extensions_string 1
253 
254 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
255 
256 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
257 
258 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
259 
260 #endif /* WGL_ARB_extensions_string */
261 
262 /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */
263 
264 #ifndef WGL_ARB_framebuffer_sRGB
265 #define WGL_ARB_framebuffer_sRGB 1
266 
267 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
268 
269 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB)
270 
271 #endif /* WGL_ARB_framebuffer_sRGB */
272 
273 /* ----------------------- WGL_ARB_make_current_read ----------------------- */
274 
275 #ifndef WGL_ARB_make_current_read
276 #define WGL_ARB_make_current_read 1
277 
278 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
279 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
280 
281 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
282 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
283 
284 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
285 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
286 
287 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
288 
289 #endif /* WGL_ARB_make_current_read */
290 
291 /* -------------------------- WGL_ARB_multisample -------------------------- */
292 
293 #ifndef WGL_ARB_multisample
294 #define WGL_ARB_multisample 1
295 
296 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
297 #define WGL_SAMPLES_ARB 0x2042
298 
299 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
300 
301 #endif /* WGL_ARB_multisample */
302 
303 /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */
304 
305 #ifndef WGL_ARB_pbuffer
306 #define WGL_ARB_pbuffer 1
307 
308 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
309 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
310 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
311 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
312 #define WGL_PBUFFER_LARGEST_ARB 0x2033
313 #define WGL_PBUFFER_WIDTH_ARB 0x2034
314 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
315 #define WGL_PBUFFER_LOST_ARB 0x2036
316 
317 DECLARE_HANDLE(HPBUFFERARB);
318 
319 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
320 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
321 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
322 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
323 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
324 
325 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
326 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
327 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
328 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
329 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
330 
331 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
332 
333 #endif /* WGL_ARB_pbuffer */
334 
335 /* -------------------------- WGL_ARB_pixel_format ------------------------- */
336 
337 #ifndef WGL_ARB_pixel_format
338 #define WGL_ARB_pixel_format 1
339 
340 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
341 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
342 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
343 #define WGL_ACCELERATION_ARB 0x2003
344 #define WGL_NEED_PALETTE_ARB 0x2004
345 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
346 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
347 #define WGL_SWAP_METHOD_ARB 0x2007
348 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
349 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
350 #define WGL_TRANSPARENT_ARB 0x200A
351 #define WGL_SHARE_DEPTH_ARB 0x200C
352 #define WGL_SHARE_STENCIL_ARB 0x200D
353 #define WGL_SHARE_ACCUM_ARB 0x200E
354 #define WGL_SUPPORT_GDI_ARB 0x200F
355 #define WGL_SUPPORT_OPENGL_ARB 0x2010
356 #define WGL_DOUBLE_BUFFER_ARB 0x2011
357 #define WGL_STEREO_ARB 0x2012
358 #define WGL_PIXEL_TYPE_ARB 0x2013
359 #define WGL_COLOR_BITS_ARB 0x2014
360 #define WGL_RED_BITS_ARB 0x2015
361 #define WGL_RED_SHIFT_ARB 0x2016
362 #define WGL_GREEN_BITS_ARB 0x2017
363 #define WGL_GREEN_SHIFT_ARB 0x2018
364 #define WGL_BLUE_BITS_ARB 0x2019
365 #define WGL_BLUE_SHIFT_ARB 0x201A
366 #define WGL_ALPHA_BITS_ARB 0x201B
367 #define WGL_ALPHA_SHIFT_ARB 0x201C
368 #define WGL_ACCUM_BITS_ARB 0x201D
369 #define WGL_ACCUM_RED_BITS_ARB 0x201E
370 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
371 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
372 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
373 #define WGL_DEPTH_BITS_ARB 0x2022
374 #define WGL_STENCIL_BITS_ARB 0x2023
375 #define WGL_AUX_BUFFERS_ARB 0x2024
376 #define WGL_NO_ACCELERATION_ARB 0x2025
377 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
378 #define WGL_FULL_ACCELERATION_ARB 0x2027
379 #define WGL_SWAP_EXCHANGE_ARB 0x2028
380 #define WGL_SWAP_COPY_ARB 0x2029
381 #define WGL_SWAP_UNDEFINED_ARB 0x202A
382 #define WGL_TYPE_RGBA_ARB 0x202B
383 #define WGL_TYPE_COLORINDEX_ARB 0x202C
384 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
385 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
386 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
387 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
388 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
389 
390 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
391 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues);
392 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues);
393 
394 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
395 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
396 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
397 
398 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
399 
400 #endif /* WGL_ARB_pixel_format */
401 
402 /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */
403 
404 #ifndef WGL_ARB_pixel_format_float
405 #define WGL_ARB_pixel_format_float 1
406 
407 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
408 
409 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
410 
411 #endif /* WGL_ARB_pixel_format_float */
412 
413 /* ------------------------- WGL_ARB_render_texture ------------------------ */
414 
415 #ifndef WGL_ARB_render_texture
416 #define WGL_ARB_render_texture 1
417 
418 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
419 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
420 #define WGL_TEXTURE_FORMAT_ARB 0x2072
421 #define WGL_TEXTURE_TARGET_ARB 0x2073
422 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
423 #define WGL_TEXTURE_RGB_ARB 0x2075
424 #define WGL_TEXTURE_RGBA_ARB 0x2076
425 #define WGL_NO_TEXTURE_ARB 0x2077
426 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
427 #define WGL_TEXTURE_1D_ARB 0x2079
428 #define WGL_TEXTURE_2D_ARB 0x207A
429 #define WGL_MIPMAP_LEVEL_ARB 0x207B
430 #define WGL_CUBE_MAP_FACE_ARB 0x207C
431 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
432 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
433 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
434 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
435 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
436 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
437 #define WGL_FRONT_LEFT_ARB 0x2083
438 #define WGL_FRONT_RIGHT_ARB 0x2084
439 #define WGL_BACK_LEFT_ARB 0x2085
440 #define WGL_BACK_RIGHT_ARB 0x2086
441 #define WGL_AUX0_ARB 0x2087
442 #define WGL_AUX1_ARB 0x2088
443 #define WGL_AUX2_ARB 0x2089
444 #define WGL_AUX3_ARB 0x208A
445 #define WGL_AUX4_ARB 0x208B
446 #define WGL_AUX5_ARB 0x208C
447 #define WGL_AUX6_ARB 0x208D
448 #define WGL_AUX7_ARB 0x208E
449 #define WGL_AUX8_ARB 0x208F
450 #define WGL_AUX9_ARB 0x2090
451 
452 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
453 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
454 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
455 
456 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
457 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
458 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
459 
460 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
461 
462 #endif /* WGL_ARB_render_texture */
463 
464 /* ---------------- WGL_ARB_robustness_application_isolation --------------- */
465 
466 #ifndef WGL_ARB_robustness_application_isolation
467 #define WGL_ARB_robustness_application_isolation 1
468 
469 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
470 
471 #define WGLEW_ARB_robustness_application_isolation WGLEW_GET_VAR(__WGLEW_ARB_robustness_application_isolation)
472 
473 #endif /* WGL_ARB_robustness_application_isolation */
474 
475 /* ---------------- WGL_ARB_robustness_share_group_isolation --------------- */
476 
477 #ifndef WGL_ARB_robustness_share_group_isolation
478 #define WGL_ARB_robustness_share_group_isolation 1
479 
480 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
481 
482 #define WGLEW_ARB_robustness_share_group_isolation WGLEW_GET_VAR(__WGLEW_ARB_robustness_share_group_isolation)
483 
484 #endif /* WGL_ARB_robustness_share_group_isolation */
485 
486 /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */
487 
488 #ifndef WGL_ATI_pixel_format_float
489 #define WGL_ATI_pixel_format_float 1
490 
491 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
492 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
493 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
494 
495 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
496 
497 #endif /* WGL_ATI_pixel_format_float */
498 
499 /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */
500 
501 #ifndef WGL_ATI_render_texture_rectangle
502 #define WGL_ATI_render_texture_rectangle 1
503 
504 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
505 
506 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
507 
508 #endif /* WGL_ATI_render_texture_rectangle */
509 
510 /* --------------------------- WGL_EXT_colorspace -------------------------- */
511 
512 #ifndef WGL_EXT_colorspace
513 #define WGL_EXT_colorspace 1
514 
515 #define WGL_COLORSPACE_SRGB_EXT 0x3089
516 #define WGL_COLORSPACE_LINEAR_EXT 0x308A
517 #define WGL_COLORSPACE_EXT 0x309D
518 
519 #define WGLEW_EXT_colorspace WGLEW_GET_VAR(__WGLEW_EXT_colorspace)
520 
521 #endif /* WGL_EXT_colorspace */
522 
523 /* ------------------- WGL_EXT_create_context_es2_profile ------------------ */
524 
525 #ifndef WGL_EXT_create_context_es2_profile
526 #define WGL_EXT_create_context_es2_profile 1
527 
528 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
529 
530 #define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile)
531 
532 #endif /* WGL_EXT_create_context_es2_profile */
533 
534 /* ------------------- WGL_EXT_create_context_es_profile ------------------- */
535 
536 #ifndef WGL_EXT_create_context_es_profile
537 #define WGL_EXT_create_context_es_profile 1
538 
539 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
540 
541 #define WGLEW_EXT_create_context_es_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es_profile)
542 
543 #endif /* WGL_EXT_create_context_es_profile */
544 
545 /* -------------------------- WGL_EXT_depth_float -------------------------- */
546 
547 #ifndef WGL_EXT_depth_float
548 #define WGL_EXT_depth_float 1
549 
550 #define WGL_DEPTH_FLOAT_EXT 0x2040
551 
552 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
553 
554 #endif /* WGL_EXT_depth_float */
555 
556 /* ---------------------- WGL_EXT_display_color_table ---------------------- */
557 
558 #ifndef WGL_EXT_display_color_table
559 #define WGL_EXT_display_color_table 1
560 
561 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
562 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
563 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
564 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
565 
566 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
567 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
568 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
569 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
570 
571 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
572 
573 #endif /* WGL_EXT_display_color_table */
574 
575 /* ----------------------- WGL_EXT_extensions_string ----------------------- */
576 
577 #ifndef WGL_EXT_extensions_string
578 #define WGL_EXT_extensions_string 1
579 
580 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
581 
582 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
583 
584 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
585 
586 #endif /* WGL_EXT_extensions_string */
587 
588 /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */
589 
590 #ifndef WGL_EXT_framebuffer_sRGB
591 #define WGL_EXT_framebuffer_sRGB 1
592 
593 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
594 
595 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
596 
597 #endif /* WGL_EXT_framebuffer_sRGB */
598 
599 /* ----------------------- WGL_EXT_make_current_read ----------------------- */
600 
601 #ifndef WGL_EXT_make_current_read
602 #define WGL_EXT_make_current_read 1
603 
604 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
605 
606 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
607 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
608 
609 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
610 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
611 
612 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
613 
614 #endif /* WGL_EXT_make_current_read */
615 
616 /* -------------------------- WGL_EXT_multisample -------------------------- */
617 
618 #ifndef WGL_EXT_multisample
619 #define WGL_EXT_multisample 1
620 
621 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
622 #define WGL_SAMPLES_EXT 0x2042
623 
624 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
625 
626 #endif /* WGL_EXT_multisample */
627 
628 /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
629 
630 #ifndef WGL_EXT_pbuffer
631 #define WGL_EXT_pbuffer 1
632 
633 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
634 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
635 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
636 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
637 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
638 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
639 #define WGL_PBUFFER_LARGEST_EXT 0x2033
640 #define WGL_PBUFFER_WIDTH_EXT 0x2034
641 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
642 
643 DECLARE_HANDLE(HPBUFFEREXT);
644 
645 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
646 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
647 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
648 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
649 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
650 
651 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
652 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
653 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
654 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
655 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
656 
657 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
658 
659 #endif /* WGL_EXT_pbuffer */
660 
661 /* -------------------------- WGL_EXT_pixel_format ------------------------- */
662 
663 #ifndef WGL_EXT_pixel_format
664 #define WGL_EXT_pixel_format 1
665 
666 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
667 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
668 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
669 #define WGL_ACCELERATION_EXT 0x2003
670 #define WGL_NEED_PALETTE_EXT 0x2004
671 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
672 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
673 #define WGL_SWAP_METHOD_EXT 0x2007
674 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
675 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
676 #define WGL_TRANSPARENT_EXT 0x200A
677 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
678 #define WGL_SHARE_DEPTH_EXT 0x200C
679 #define WGL_SHARE_STENCIL_EXT 0x200D
680 #define WGL_SHARE_ACCUM_EXT 0x200E
681 #define WGL_SUPPORT_GDI_EXT 0x200F
682 #define WGL_SUPPORT_OPENGL_EXT 0x2010
683 #define WGL_DOUBLE_BUFFER_EXT 0x2011
684 #define WGL_STEREO_EXT 0x2012
685 #define WGL_PIXEL_TYPE_EXT 0x2013
686 #define WGL_COLOR_BITS_EXT 0x2014
687 #define WGL_RED_BITS_EXT 0x2015
688 #define WGL_RED_SHIFT_EXT 0x2016
689 #define WGL_GREEN_BITS_EXT 0x2017
690 #define WGL_GREEN_SHIFT_EXT 0x2018
691 #define WGL_BLUE_BITS_EXT 0x2019
692 #define WGL_BLUE_SHIFT_EXT 0x201A
693 #define WGL_ALPHA_BITS_EXT 0x201B
694 #define WGL_ALPHA_SHIFT_EXT 0x201C
695 #define WGL_ACCUM_BITS_EXT 0x201D
696 #define WGL_ACCUM_RED_BITS_EXT 0x201E
697 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
698 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
699 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
700 #define WGL_DEPTH_BITS_EXT 0x2022
701 #define WGL_STENCIL_BITS_EXT 0x2023
702 #define WGL_AUX_BUFFERS_EXT 0x2024
703 #define WGL_NO_ACCELERATION_EXT 0x2025
704 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
705 #define WGL_FULL_ACCELERATION_EXT 0x2027
706 #define WGL_SWAP_EXCHANGE_EXT 0x2028
707 #define WGL_SWAP_COPY_EXT 0x2029
708 #define WGL_SWAP_UNDEFINED_EXT 0x202A
709 #define WGL_TYPE_RGBA_EXT 0x202B
710 #define WGL_TYPE_COLORINDEX_EXT 0x202C
711 
712 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
713 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
714 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
715 
716 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
717 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
718 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
719 
720 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
721 
722 #endif /* WGL_EXT_pixel_format */
723 
724 /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */
725 
726 #ifndef WGL_EXT_pixel_format_packed_float
727 #define WGL_EXT_pixel_format_packed_float 1
728 
729 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
730 
731 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
732 
733 #endif /* WGL_EXT_pixel_format_packed_float */
734 
735 /* -------------------------- WGL_EXT_swap_control ------------------------- */
736 
737 #ifndef WGL_EXT_swap_control
738 #define WGL_EXT_swap_control 1
739 
740 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
741 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
742 
743 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
744 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
745 
746 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
747 
748 #endif /* WGL_EXT_swap_control */
749 
750 /* ----------------------- WGL_EXT_swap_control_tear ----------------------- */
751 
752 #ifndef WGL_EXT_swap_control_tear
753 #define WGL_EXT_swap_control_tear 1
754 
755 #define WGLEW_EXT_swap_control_tear WGLEW_GET_VAR(__WGLEW_EXT_swap_control_tear)
756 
757 #endif /* WGL_EXT_swap_control_tear */
758 
759 /* --------------------- WGL_I3D_digital_video_control --------------------- */
760 
761 #ifndef WGL_I3D_digital_video_control
762 #define WGL_I3D_digital_video_control 1
763 
764 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
765 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
766 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
767 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
768 
769 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
770 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
771 
772 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
773 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
774 
775 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
776 
777 #endif /* WGL_I3D_digital_video_control */
778 
779 /* ----------------------------- WGL_I3D_gamma ----------------------------- */
780 
781 #ifndef WGL_I3D_gamma
782 #define WGL_I3D_gamma 1
783 
784 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
785 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
786 
787 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
788 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
789 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
790 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
791 
792 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
793 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
794 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
795 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
796 
797 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
798 
799 #endif /* WGL_I3D_gamma */
800 
801 /* ---------------------------- WGL_I3D_genlock ---------------------------- */
802 
803 #ifndef WGL_I3D_genlock
804 #define WGL_I3D_genlock 1
805 
806 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
807 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
808 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
809 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
810 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
811 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
812 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
813 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
814 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
815 
816 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
817 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
818 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
819 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
820 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
821 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
822 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
823 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
824 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
825 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
826 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
827 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
828 
829 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
830 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
831 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
832 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
833 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
834 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
835 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
836 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
837 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
838 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
839 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
840 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
841 
842 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
843 
844 #endif /* WGL_I3D_genlock */
845 
846 /* -------------------------- WGL_I3D_image_buffer ------------------------- */
847 
848 #ifndef WGL_I3D_image_buffer
849 #define WGL_I3D_image_buffer 1
850 
851 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
852 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
853 
854 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
855 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
856 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
857 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
858 
859 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
860 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
861 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
862 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
863 
864 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
865 
866 #endif /* WGL_I3D_image_buffer */
867 
868 /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
869 
870 #ifndef WGL_I3D_swap_frame_lock
871 #define WGL_I3D_swap_frame_lock 1
872 
873 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
874 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
875 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
876 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
877 
878 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
879 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
880 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
881 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
882 
883 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
884 
885 #endif /* WGL_I3D_swap_frame_lock */
886 
887 /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
888 
889 #ifndef WGL_I3D_swap_frame_usage
890 #define WGL_I3D_swap_frame_usage 1
891 
892 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
893 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
894 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
895 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
896 
897 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
898 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
899 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
900 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
901 
902 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
903 
904 #endif /* WGL_I3D_swap_frame_usage */
905 
906 /* --------------------------- WGL_NV_DX_interop --------------------------- */
907 
908 #ifndef WGL_NV_DX_interop
909 #define WGL_NV_DX_interop 1
910 
911 #define WGL_ACCESS_READ_ONLY_NV 0x0000
912 #define WGL_ACCESS_READ_WRITE_NV 0x0001
913 #define WGL_ACCESS_WRITE_DISCARD_NV 0x0002
914 
915 typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
916 typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
917 typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
918 typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void* dxDevice);
919 typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access);
920 typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void* dxObject, HANDLE shareHandle);
921 typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
922 typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
923 
924 #define wglDXCloseDeviceNV WGLEW_GET_FUN(__wglewDXCloseDeviceNV)
925 #define wglDXLockObjectsNV WGLEW_GET_FUN(__wglewDXLockObjectsNV)
926 #define wglDXObjectAccessNV WGLEW_GET_FUN(__wglewDXObjectAccessNV)
927 #define wglDXOpenDeviceNV WGLEW_GET_FUN(__wglewDXOpenDeviceNV)
928 #define wglDXRegisterObjectNV WGLEW_GET_FUN(__wglewDXRegisterObjectNV)
929 #define wglDXSetResourceShareHandleNV WGLEW_GET_FUN(__wglewDXSetResourceShareHandleNV)
930 #define wglDXUnlockObjectsNV WGLEW_GET_FUN(__wglewDXUnlockObjectsNV)
931 #define wglDXUnregisterObjectNV WGLEW_GET_FUN(__wglewDXUnregisterObjectNV)
932 
933 #define WGLEW_NV_DX_interop WGLEW_GET_VAR(__WGLEW_NV_DX_interop)
934 
935 #endif /* WGL_NV_DX_interop */
936 
937 /* --------------------------- WGL_NV_DX_interop2 -------------------------- */
938 
939 #ifndef WGL_NV_DX_interop2
940 #define WGL_NV_DX_interop2 1
941 
942 #define WGLEW_NV_DX_interop2 WGLEW_GET_VAR(__WGLEW_NV_DX_interop2)
943 
944 #endif /* WGL_NV_DX_interop2 */
945 
946 /* --------------------------- WGL_NV_copy_image --------------------------- */
947 
948 #ifndef WGL_NV_copy_image
949 #define WGL_NV_copy_image 1
950 
951 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);
952 
953 #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
954 
955 #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
956 
957 #endif /* WGL_NV_copy_image */
958 
959 /* ------------------------ WGL_NV_delay_before_swap ----------------------- */
960 
961 #ifndef WGL_NV_delay_before_swap
962 #define WGL_NV_delay_before_swap 1
963 
964 typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds);
965 
966 #define wglDelayBeforeSwapNV WGLEW_GET_FUN(__wglewDelayBeforeSwapNV)
967 
968 #define WGLEW_NV_delay_before_swap WGLEW_GET_VAR(__WGLEW_NV_delay_before_swap)
969 
970 #endif /* WGL_NV_delay_before_swap */
971 
972 /* -------------------------- WGL_NV_float_buffer -------------------------- */
973 
974 #ifndef WGL_NV_float_buffer
975 #define WGL_NV_float_buffer 1
976 
977 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
978 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
979 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
980 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
981 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
982 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
983 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
984 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
985 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
986 
987 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
988 
989 #endif /* WGL_NV_float_buffer */
990 
991 /* -------------------------- WGL_NV_gpu_affinity -------------------------- */
992 
993 #ifndef WGL_NV_gpu_affinity
994 #define WGL_NV_gpu_affinity 1
995 
996 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
997 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
998 
999 DECLARE_HANDLE(HGPUNV);
1000 typedef struct _GPU_DEVICE {
1001   DWORD cb;
1002   CHAR DeviceName[32];
1003   CHAR DeviceString[128];
1004   DWORD Flags;
1005   RECT rcVirtualScreen;
1006 } GPU_DEVICE, *PGPU_DEVICE;
1007 
1008 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
1009 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
1010 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
1011 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
1012 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
1013 
1014 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
1015 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
1016 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
1017 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
1018 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
1019 
1020 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
1021 
1022 #endif /* WGL_NV_gpu_affinity */
1023 
1024 /* ---------------------- WGL_NV_multisample_coverage ---------------------- */
1025 
1026 #ifndef WGL_NV_multisample_coverage
1027 #define WGL_NV_multisample_coverage 1
1028 
1029 #define WGL_COVERAGE_SAMPLES_NV 0x2042
1030 #define WGL_COLOR_SAMPLES_NV 0x20B9
1031 
1032 #define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage)
1033 
1034 #endif /* WGL_NV_multisample_coverage */
1035 
1036 /* -------------------------- WGL_NV_present_video ------------------------- */
1037 
1038 #ifndef WGL_NV_present_video
1039 #define WGL_NV_present_video 1
1040 
1041 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
1042 
1043 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
1044 
1045 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList);
1046 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
1047 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue);
1048 
1049 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
1050 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
1051 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
1052 
1053 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
1054 
1055 #endif /* WGL_NV_present_video */
1056 
1057 /* ---------------------- WGL_NV_render_depth_texture ---------------------- */
1058 
1059 #ifndef WGL_NV_render_depth_texture
1060 #define WGL_NV_render_depth_texture 1
1061 
1062 #define WGL_NO_TEXTURE_ARB 0x2077
1063 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
1064 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
1065 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
1066 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
1067 #define WGL_DEPTH_COMPONENT_NV 0x20A7
1068 
1069 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
1070 
1071 #endif /* WGL_NV_render_depth_texture */
1072 
1073 /* -------------------- WGL_NV_render_texture_rectangle -------------------- */
1074 
1075 #ifndef WGL_NV_render_texture_rectangle
1076 #define WGL_NV_render_texture_rectangle 1
1077 
1078 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
1079 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
1080 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
1081 
1082 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
1083 
1084 #endif /* WGL_NV_render_texture_rectangle */
1085 
1086 /* --------------------------- WGL_NV_swap_group --------------------------- */
1087 
1088 #ifndef WGL_NV_swap_group
1089 #define WGL_NV_swap_group 1
1090 
1091 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
1092 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
1093 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
1094 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
1095 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
1096 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
1097 
1098 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
1099 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
1100 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
1101 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
1102 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
1103 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
1104 
1105 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
1106 
1107 #endif /* WGL_NV_swap_group */
1108 
1109 /* ----------------------- WGL_NV_vertex_array_range ----------------------- */
1110 
1111 #ifndef WGL_NV_vertex_array_range
1112 #define WGL_NV_vertex_array_range 1
1113 
1114 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
1115 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
1116 
1117 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
1118 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
1119 
1120 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
1121 
1122 #endif /* WGL_NV_vertex_array_range */
1123 
1124 /* -------------------------- WGL_NV_video_capture ------------------------- */
1125 
1126 #ifndef WGL_NV_video_capture
1127 #define WGL_NV_video_capture 1
1128 
1129 #define WGL_UNIQUE_ID_NV 0x20CE
1130 #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
1131 
1132 DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
1133 
1134 typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
1135 typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV* phDeviceList);
1136 typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
1137 typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int* piValue);
1138 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
1139 
1140 #define wglBindVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewBindVideoCaptureDeviceNV)
1141 #define wglEnumerateVideoCaptureDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoCaptureDevicesNV)
1142 #define wglLockVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewLockVideoCaptureDeviceNV)
1143 #define wglQueryVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewQueryVideoCaptureDeviceNV)
1144 #define wglReleaseVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoCaptureDeviceNV)
1145 
1146 #define WGLEW_NV_video_capture WGLEW_GET_VAR(__WGLEW_NV_video_capture)
1147 
1148 #endif /* WGL_NV_video_capture */
1149 
1150 /* -------------------------- WGL_NV_video_output -------------------------- */
1151 
1152 #ifndef WGL_NV_video_output
1153 #define WGL_NV_video_output 1
1154 
1155 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
1156 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
1157 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
1158 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
1159 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
1160 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
1161 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
1162 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
1163 #define WGL_VIDEO_OUT_FRAME 0x20C8
1164 #define WGL_VIDEO_OUT_FIELD_1 0x20C9
1165 #define WGL_VIDEO_OUT_FIELD_2 0x20CA
1166 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
1167 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
1168 
1169 DECLARE_HANDLE(HPVIDEODEV);
1170 
1171 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
1172 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice);
1173 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
1174 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
1175 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
1176 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock);
1177 
1178 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
1179 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
1180 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
1181 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
1182 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
1183 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
1184 
1185 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
1186 
1187 #endif /* WGL_NV_video_output */
1188 
1189 /* -------------------------- WGL_OML_sync_control ------------------------- */
1190 
1191 #ifndef WGL_OML_sync_control
1192 #define WGL_OML_sync_control 1
1193 
1194 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
1195 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
1196 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
1197 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
1198 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
1199 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
1200 
1201 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
1202 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
1203 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
1204 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
1205 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
1206 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
1207 
1208 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
1209 
1210 #endif /* WGL_OML_sync_control */
1211 
1212 /* ------------------------------------------------------------------------- */
1213 
1214 #define WGLEW_FUN_EXPORT GLEW_FUN_EXPORT
1215 #define WGLEW_VAR_EXPORT GLEW_VAR_EXPORT
1216 
1217 WGLEW_FUN_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
1218 
1219 WGLEW_FUN_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
1220 WGLEW_FUN_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
1221 WGLEW_FUN_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
1222 WGLEW_FUN_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
1223 WGLEW_FUN_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
1224 WGLEW_FUN_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
1225 WGLEW_FUN_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
1226 WGLEW_FUN_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
1227 WGLEW_FUN_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
1228 
1229 WGLEW_FUN_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
1230 WGLEW_FUN_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
1231 WGLEW_FUN_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
1232 WGLEW_FUN_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
1233 
1234 WGLEW_FUN_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
1235 
1236 WGLEW_FUN_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
1237 
1238 WGLEW_FUN_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
1239 WGLEW_FUN_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
1240 
1241 WGLEW_FUN_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
1242 WGLEW_FUN_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
1243 WGLEW_FUN_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
1244 WGLEW_FUN_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
1245 WGLEW_FUN_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
1246 
1247 WGLEW_FUN_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
1248 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
1249 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
1250 
1251 WGLEW_FUN_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
1252 WGLEW_FUN_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
1253 WGLEW_FUN_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
1254 
1255 WGLEW_FUN_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
1256 WGLEW_FUN_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
1257 WGLEW_FUN_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
1258 WGLEW_FUN_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
1259 
1260 WGLEW_FUN_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
1261 
1262 WGLEW_FUN_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
1263 WGLEW_FUN_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
1264 
1265 WGLEW_FUN_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
1266 WGLEW_FUN_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
1267 WGLEW_FUN_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
1268 WGLEW_FUN_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
1269 WGLEW_FUN_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
1270 
1271 WGLEW_FUN_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
1272 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
1273 WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
1274 
1275 WGLEW_FUN_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
1276 WGLEW_FUN_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
1277 
1278 WGLEW_FUN_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
1279 WGLEW_FUN_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
1280 
1281 WGLEW_FUN_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
1282 WGLEW_FUN_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
1283 WGLEW_FUN_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
1284 WGLEW_FUN_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
1285 
1286 WGLEW_FUN_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
1287 WGLEW_FUN_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
1288 WGLEW_FUN_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
1289 WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
1290 WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
1291 WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
1292 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
1293 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
1294 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
1295 WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
1296 WGLEW_FUN_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
1297 WGLEW_FUN_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
1298 
1299 WGLEW_FUN_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
1300 WGLEW_FUN_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
1301 WGLEW_FUN_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
1302 WGLEW_FUN_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
1303 
1304 WGLEW_FUN_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
1305 WGLEW_FUN_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
1306 WGLEW_FUN_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
1307 WGLEW_FUN_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
1308 
1309 WGLEW_FUN_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
1310 WGLEW_FUN_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
1311 WGLEW_FUN_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
1312 WGLEW_FUN_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
1313 
1314 WGLEW_FUN_EXPORT PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV;
1315 WGLEW_FUN_EXPORT PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV;
1316 WGLEW_FUN_EXPORT PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV;
1317 WGLEW_FUN_EXPORT PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV;
1318 WGLEW_FUN_EXPORT PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV;
1319 WGLEW_FUN_EXPORT PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV;
1320 WGLEW_FUN_EXPORT PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV;
1321 WGLEW_FUN_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV;
1322 
1323 WGLEW_FUN_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
1324 
1325 WGLEW_FUN_EXPORT PFNWGLDELAYBEFORESWAPNVPROC __wglewDelayBeforeSwapNV;
1326 
1327 WGLEW_FUN_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
1328 WGLEW_FUN_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
1329 WGLEW_FUN_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
1330 WGLEW_FUN_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
1331 WGLEW_FUN_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
1332 
1333 WGLEW_FUN_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
1334 WGLEW_FUN_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
1335 WGLEW_FUN_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
1336 
1337 WGLEW_FUN_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
1338 WGLEW_FUN_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
1339 WGLEW_FUN_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
1340 WGLEW_FUN_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
1341 WGLEW_FUN_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
1342 WGLEW_FUN_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
1343 
1344 WGLEW_FUN_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
1345 WGLEW_FUN_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
1346 
1347 WGLEW_FUN_EXPORT PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV;
1348 WGLEW_FUN_EXPORT PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV;
1349 WGLEW_FUN_EXPORT PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV;
1350 WGLEW_FUN_EXPORT PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV;
1351 WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV;
1352 
1353 WGLEW_FUN_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
1354 WGLEW_FUN_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
1355 WGLEW_FUN_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
1356 WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
1357 WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
1358 WGLEW_FUN_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
1359 
1360 WGLEW_FUN_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
1361 WGLEW_FUN_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
1362 WGLEW_FUN_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
1363 WGLEW_FUN_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
1364 WGLEW_FUN_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
1365 WGLEW_FUN_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
1366 WGLEW_VAR_EXPORT GLboolean __WGLEW_3DFX_multisample;
1367 WGLEW_VAR_EXPORT GLboolean __WGLEW_3DL_stereo_control;
1368 WGLEW_VAR_EXPORT GLboolean __WGLEW_AMD_gpu_association;
1369 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_buffer_region;
1370 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_context_flush_control;
1371 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context;
1372 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_no_error;
1373 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
1374 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_robustness;
1375 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_extensions_string;
1376 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
1377 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_make_current_read;
1378 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_multisample;
1379 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pbuffer;
1380 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pixel_format;
1381 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
1382 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_render_texture;
1383 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_robustness_application_isolation;
1384 WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_robustness_share_group_isolation;
1385 WGLEW_VAR_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
1386 WGLEW_VAR_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
1387 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_colorspace;
1388 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile;
1389 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_create_context_es_profile;
1390 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_depth_float;
1391 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_display_color_table;
1392 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_extensions_string;
1393 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
1394 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_make_current_read;
1395 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_multisample;
1396 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pbuffer;
1397 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pixel_format;
1398 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
1399 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_swap_control;
1400 WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_swap_control_tear;
1401 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
1402 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_gamma;
1403 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_genlock;
1404 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_image_buffer;
1405 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
1406 WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
1407 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop;
1408 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop2;
1409 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_copy_image;
1410 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_delay_before_swap;
1411 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_float_buffer;
1412 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
1413 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_multisample_coverage;
1414 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_present_video;
1415 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
1416 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
1417 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_swap_group;
1418 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
1419 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_capture;
1420 WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_output;
1421 WGLEW_VAR_EXPORT GLboolean __WGLEW_OML_sync_control;
1422 /* ------------------------------------------------------------------------- */
1423 
1424 GLEWAPI GLenum GLEWAPIENTRY wglewInit ();
1425 GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
1426 
1427 #ifndef WGLEW_GET_VAR
1428 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
1429 #endif
1430 
1431 #ifndef WGLEW_GET_FUN
1432 #define WGLEW_GET_FUN(x) x
1433 #endif
1434 
1435 GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
1436 
1437 #undef GLEWAPI
1438 
1439 #endif /* __wglew_h__ */
1440