60 #error wglext.h included before wglew.h
66 # ifndef WIN32_LEAN_AND_MEAN
67 # define WIN32_LEAN_AND_MEAN 1
70 # undef WIN32_LEAN_AND_MEAN
78 # define GLEWAPI extern
81 # define GLEWAPI extern __declspec(dllexport)
83 # define GLEWAPI extern __declspec(dllimport)
93 #ifndef WGL_3DFX_multisample
94 #define WGL_3DFX_multisample 1
96 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
97 #define WGL_SAMPLES_3DFX 0x2061
99 #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
105 #ifndef WGL_3DL_stereo_control
106 #define WGL_3DL_stereo_control 1
108 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
109 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
110 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
111 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
113 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
115 #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
117 #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
123 #ifndef WGL_AMD_gpu_association
124 #define WGL_AMD_gpu_association 1
126 #define WGL_GPU_VENDOR_AMD 0x1F00
127 #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
128 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
129 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
130 #define WGL_GPU_RAM_AMD 0x21A3
131 #define WGL_GPU_CLOCK_AMD 0x21A4
132 #define WGL_GPU_NUM_PIPES_AMD 0x21A5
133 #define WGL_GPU_NUM_SIMD_AMD 0x21A6
134 #define WGL_GPU_NUM_RB_AMD 0x21A7
135 #define WGL_GPU_NUM_SPI_AMD 0x21A8
137 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);
138 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
139 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext,
const int* attribList);
140 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
141 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
142 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
143 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids);
144 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size,
void* data);
145 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
147 #define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD)
148 #define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD)
149 #define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD)
150 #define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD)
151 #define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD)
152 #define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD)
153 #define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD)
154 #define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD)
155 #define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD)
157 #define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association)
163 #ifndef WGL_ARB_buffer_region
164 #define WGL_ARB_buffer_region 1
166 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
167 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
168 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
169 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
171 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC,
int iLayerPlane, UINT uType);
172 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
173 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion,
int x,
int y,
int width,
int height,
int xSrc,
int ySrc);
174 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion,
int x,
int y,
int width,
int height);
176 #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
177 #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
178 #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
179 #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
181 #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
187 #ifndef WGL_ARB_create_context
188 #define WGL_ARB_create_context 1
190 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
191 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
192 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
193 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
194 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
195 #define WGL_CONTEXT_FLAGS_ARB 0x2094
196 #define ERROR_INVALID_VERSION_ARB 0x2095
197 #define ERROR_INVALID_PROFILE_ARB 0x2096
199 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext,
const int* attribList);
201 #define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB)
203 #define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context)
209 #ifndef WGL_ARB_create_context_profile
210 #define WGL_ARB_create_context_profile 1
212 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
213 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
214 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
216 #define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile)
222 #ifndef WGL_ARB_create_context_robustness
223 #define WGL_ARB_create_context_robustness 1
225 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
226 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
227 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
228 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
230 #define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness)
236 #ifndef WGL_ARB_extensions_string
237 #define WGL_ARB_extensions_string 1
239 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
241 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
243 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
249 #ifndef WGL_ARB_framebuffer_sRGB
250 #define WGL_ARB_framebuffer_sRGB 1
252 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
254 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB)
260 #ifndef WGL_ARB_make_current_read
261 #define WGL_ARB_make_current_read 1
263 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
264 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
266 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
267 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
269 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
270 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
272 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
278 #ifndef WGL_ARB_multisample
279 #define WGL_ARB_multisample 1
281 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
282 #define WGL_SAMPLES_ARB 0x2042
284 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
290 #ifndef WGL_ARB_pbuffer
291 #define WGL_ARB_pbuffer 1
293 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
294 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
295 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
296 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
297 #define WGL_PBUFFER_LARGEST_ARB 0x2033
298 #define WGL_PBUFFER_WIDTH_ARB 0x2034
299 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
300 #define WGL_PBUFFER_LOST_ARB 0x2036
302 DECLARE_HANDLE(HPBUFFERARB);
304 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC,
int iPixelFormat,
int iWidth,
int iHeight,
const int* piAttribList);
305 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
306 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
307 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer,
int iAttribute,
int* piValue);
308 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
310 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
311 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
312 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
313 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
314 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
316 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
322 #ifndef WGL_ARB_pixel_format
323 #define WGL_ARB_pixel_format 1
325 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
326 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
327 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
328 #define WGL_ACCELERATION_ARB 0x2003
329 #define WGL_NEED_PALETTE_ARB 0x2004
330 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
331 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
332 #define WGL_SWAP_METHOD_ARB 0x2007
333 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
334 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
335 #define WGL_TRANSPARENT_ARB 0x200A
336 #define WGL_SHARE_DEPTH_ARB 0x200C
337 #define WGL_SHARE_STENCIL_ARB 0x200D
338 #define WGL_SHARE_ACCUM_ARB 0x200E
339 #define WGL_SUPPORT_GDI_ARB 0x200F
340 #define WGL_SUPPORT_OPENGL_ARB 0x2010
341 #define WGL_DOUBLE_BUFFER_ARB 0x2011
342 #define WGL_STEREO_ARB 0x2012
343 #define WGL_PIXEL_TYPE_ARB 0x2013
344 #define WGL_COLOR_BITS_ARB 0x2014
345 #define WGL_RED_BITS_ARB 0x2015
346 #define WGL_RED_SHIFT_ARB 0x2016
347 #define WGL_GREEN_BITS_ARB 0x2017
348 #define WGL_GREEN_SHIFT_ARB 0x2018
349 #define WGL_BLUE_BITS_ARB 0x2019
350 #define WGL_BLUE_SHIFT_ARB 0x201A
351 #define WGL_ALPHA_BITS_ARB 0x201B
352 #define WGL_ALPHA_SHIFT_ARB 0x201C
353 #define WGL_ACCUM_BITS_ARB 0x201D
354 #define WGL_ACCUM_RED_BITS_ARB 0x201E
355 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
356 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
357 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
358 #define WGL_DEPTH_BITS_ARB 0x2022
359 #define WGL_STENCIL_BITS_ARB 0x2023
360 #define WGL_AUX_BUFFERS_ARB 0x2024
361 #define WGL_NO_ACCELERATION_ARB 0x2025
362 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
363 #define WGL_FULL_ACCELERATION_ARB 0x2027
364 #define WGL_SWAP_EXCHANGE_ARB 0x2028
365 #define WGL_SWAP_COPY_ARB 0x2029
366 #define WGL_SWAP_UNDEFINED_ARB 0x202A
367 #define WGL_TYPE_RGBA_ARB 0x202B
368 #define WGL_TYPE_COLORINDEX_ARB 0x202C
369 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
370 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
371 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
372 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
373 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
375 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc,
const int* piAttribIList,
const FLOAT *pfAttribFList, UINT nMaxFormats,
int *piFormats, UINT *nNumFormats);
376 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc,
int iPixelFormat,
int iLayerPlane, UINT nAttributes,
const int* piAttributes, FLOAT *pfValues);
377 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc,
int iPixelFormat,
int iLayerPlane, UINT nAttributes,
const int* piAttributes,
int *piValues);
379 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
380 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
381 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
383 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
389 #ifndef WGL_ARB_pixel_format_float
390 #define WGL_ARB_pixel_format_float 1
392 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
394 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
400 #ifndef WGL_ARB_render_texture
401 #define WGL_ARB_render_texture 1
403 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
404 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
405 #define WGL_TEXTURE_FORMAT_ARB 0x2072
406 #define WGL_TEXTURE_TARGET_ARB 0x2073
407 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
408 #define WGL_TEXTURE_RGB_ARB 0x2075
409 #define WGL_TEXTURE_RGBA_ARB 0x2076
410 #define WGL_NO_TEXTURE_ARB 0x2077
411 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
412 #define WGL_TEXTURE_1D_ARB 0x2079
413 #define WGL_TEXTURE_2D_ARB 0x207A
414 #define WGL_MIPMAP_LEVEL_ARB 0x207B
415 #define WGL_CUBE_MAP_FACE_ARB 0x207C
416 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
417 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
418 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
419 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
420 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
421 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
422 #define WGL_FRONT_LEFT_ARB 0x2083
423 #define WGL_FRONT_RIGHT_ARB 0x2084
424 #define WGL_BACK_LEFT_ARB 0x2085
425 #define WGL_BACK_RIGHT_ARB 0x2086
426 #define WGL_AUX0_ARB 0x2087
427 #define WGL_AUX1_ARB 0x2088
428 #define WGL_AUX2_ARB 0x2089
429 #define WGL_AUX3_ARB 0x208A
430 #define WGL_AUX4_ARB 0x208B
431 #define WGL_AUX5_ARB 0x208C
432 #define WGL_AUX6_ARB 0x208D
433 #define WGL_AUX7_ARB 0x208E
434 #define WGL_AUX8_ARB 0x208F
435 #define WGL_AUX9_ARB 0x2090
437 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer,
int iBuffer);
438 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer,
int iBuffer);
439 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer,
const int* piAttribList);
441 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
442 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
443 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
445 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
451 #ifndef WGL_ATI_pixel_format_float
452 #define WGL_ATI_pixel_format_float 1
454 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
455 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
456 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
458 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
464 #ifndef WGL_ATI_render_texture_rectangle
465 #define WGL_ATI_render_texture_rectangle 1
467 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
469 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
475 #ifndef WGL_EXT_create_context_es2_profile
476 #define WGL_EXT_create_context_es2_profile 1
478 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
480 #define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile)
486 #ifndef WGL_EXT_depth_float
487 #define WGL_EXT_depth_float 1
489 #define WGL_DEPTH_FLOAT_EXT 0x2040
491 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
497 #ifndef WGL_EXT_display_color_table
498 #define WGL_EXT_display_color_table 1
500 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
501 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
502 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
503 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
505 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
506 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
507 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
508 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
510 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
516 #ifndef WGL_EXT_extensions_string
517 #define WGL_EXT_extensions_string 1
519 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (
void);
521 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
523 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
529 #ifndef WGL_EXT_framebuffer_sRGB
530 #define WGL_EXT_framebuffer_sRGB 1
532 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
534 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
540 #ifndef WGL_EXT_make_current_read
541 #define WGL_EXT_make_current_read 1
543 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
545 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
546 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
548 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
549 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
551 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
557 #ifndef WGL_EXT_multisample
558 #define WGL_EXT_multisample 1
560 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
561 #define WGL_SAMPLES_EXT 0x2042
563 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
569 #ifndef WGL_EXT_pbuffer
570 #define WGL_EXT_pbuffer 1
572 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
573 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
574 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
575 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
576 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
577 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
578 #define WGL_PBUFFER_LARGEST_EXT 0x2033
579 #define WGL_PBUFFER_WIDTH_EXT 0x2034
580 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
582 DECLARE_HANDLE(HPBUFFEREXT);
584 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC,
int iPixelFormat,
int iWidth,
int iHeight,
const int* piAttribList);
585 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
586 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
587 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer,
int iAttribute,
int* piValue);
588 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
590 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
591 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
592 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
593 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
594 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
596 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
602 #ifndef WGL_EXT_pixel_format
603 #define WGL_EXT_pixel_format 1
605 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
606 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
607 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
608 #define WGL_ACCELERATION_EXT 0x2003
609 #define WGL_NEED_PALETTE_EXT 0x2004
610 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
611 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
612 #define WGL_SWAP_METHOD_EXT 0x2007
613 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
614 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
615 #define WGL_TRANSPARENT_EXT 0x200A
616 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
617 #define WGL_SHARE_DEPTH_EXT 0x200C
618 #define WGL_SHARE_STENCIL_EXT 0x200D
619 #define WGL_SHARE_ACCUM_EXT 0x200E
620 #define WGL_SUPPORT_GDI_EXT 0x200F
621 #define WGL_SUPPORT_OPENGL_EXT 0x2010
622 #define WGL_DOUBLE_BUFFER_EXT 0x2011
623 #define WGL_STEREO_EXT 0x2012
624 #define WGL_PIXEL_TYPE_EXT 0x2013
625 #define WGL_COLOR_BITS_EXT 0x2014
626 #define WGL_RED_BITS_EXT 0x2015
627 #define WGL_RED_SHIFT_EXT 0x2016
628 #define WGL_GREEN_BITS_EXT 0x2017
629 #define WGL_GREEN_SHIFT_EXT 0x2018
630 #define WGL_BLUE_BITS_EXT 0x2019
631 #define WGL_BLUE_SHIFT_EXT 0x201A
632 #define WGL_ALPHA_BITS_EXT 0x201B
633 #define WGL_ALPHA_SHIFT_EXT 0x201C
634 #define WGL_ACCUM_BITS_EXT 0x201D
635 #define WGL_ACCUM_RED_BITS_EXT 0x201E
636 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
637 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
638 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
639 #define WGL_DEPTH_BITS_EXT 0x2022
640 #define WGL_STENCIL_BITS_EXT 0x2023
641 #define WGL_AUX_BUFFERS_EXT 0x2024
642 #define WGL_NO_ACCELERATION_EXT 0x2025
643 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
644 #define WGL_FULL_ACCELERATION_EXT 0x2027
645 #define WGL_SWAP_EXCHANGE_EXT 0x2028
646 #define WGL_SWAP_COPY_EXT 0x2029
647 #define WGL_SWAP_UNDEFINED_EXT 0x202A
648 #define WGL_TYPE_RGBA_EXT 0x202B
649 #define WGL_TYPE_COLORINDEX_EXT 0x202C
651 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc,
const int* piAttribIList,
const FLOAT *pfAttribFList, UINT nMaxFormats,
int *piFormats, UINT *nNumFormats);
652 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc,
int iPixelFormat,
int iLayerPlane, UINT nAttributes,
int* piAttributes, FLOAT *pfValues);
653 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc,
int iPixelFormat,
int iLayerPlane, UINT nAttributes,
int* piAttributes,
int *piValues);
655 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
656 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
657 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
659 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
665 #ifndef WGL_EXT_pixel_format_packed_float
666 #define WGL_EXT_pixel_format_packed_float 1
668 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
670 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
676 #ifndef WGL_EXT_swap_control
677 #define WGL_EXT_swap_control 1
679 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
680 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (
int interval);
682 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
683 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
685 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
691 #ifndef WGL_I3D_digital_video_control
692 #define WGL_I3D_digital_video_control 1
694 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
695 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
696 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
697 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
699 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC,
int iAttribute,
int* piValue);
700 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC,
int iAttribute,
const int* piValue);
702 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
703 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
705 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
711 #ifndef WGL_I3D_gamma
712 #define WGL_I3D_gamma 1
714 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
715 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
717 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC,
int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
718 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC,
int iAttribute,
int* piValue);
719 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC,
int iEntries,
const USHORT* puRed,
const USHORT *puGreen,
const USHORT *puBlue);
720 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC,
int iAttribute,
const int* piValue);
722 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
723 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
724 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
725 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
727 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
733 #ifndef WGL_I3D_genlock
734 #define WGL_I3D_genlock 1
736 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
737 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
738 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
739 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
740 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
741 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
742 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
743 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
744 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
746 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
747 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
748 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
749 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
750 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
751 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
752 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
753 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
754 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
755 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
756 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
757 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
759 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
760 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
761 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
762 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
763 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
764 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
765 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
766 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
767 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
768 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
769 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
770 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
772 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
778 #ifndef WGL_I3D_image_buffer
779 #define WGL_I3D_image_buffer 1
781 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
782 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
784 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
785 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
786 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
787 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
789 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
790 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
791 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
792 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
794 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
800 #ifndef WGL_I3D_swap_frame_lock
801 #define WGL_I3D_swap_frame_lock 1
803 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
804 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
805 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
806 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
808 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
809 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
810 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
811 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
813 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
819 #ifndef WGL_I3D_swap_frame_usage
820 #define WGL_I3D_swap_frame_usage 1
822 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
823 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
824 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (
float* pUsage);
825 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames,
float *pLastMissedUsage);
827 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
828 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
829 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
830 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
832 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
838 #ifndef WGL_NV_DX_interop
839 #define WGL_NV_DX_interop 1
841 #define WGL_ACCESS_READ_ONLY_NV 0x0000
842 #define WGL_ACCESS_READ_WRITE_NV 0x0001
843 #define WGL_ACCESS_WRITE_DISCARD_NV 0x0002
845 typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
846 typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
847 typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
848 typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (
void* dxDevice);
849 typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice,
void* dxObject, GLuint name, GLenum type, GLenum access);
850 typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (
void* dxObject, HANDLE shareHandle);
851 typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
852 typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
854 #define wglDXCloseDeviceNV WGLEW_GET_FUN(__wglewDXCloseDeviceNV)
855 #define wglDXLockObjectsNV WGLEW_GET_FUN(__wglewDXLockObjectsNV)
856 #define wglDXObjectAccessNV WGLEW_GET_FUN(__wglewDXObjectAccessNV)
857 #define wglDXOpenDeviceNV WGLEW_GET_FUN(__wglewDXOpenDeviceNV)
858 #define wglDXRegisterObjectNV WGLEW_GET_FUN(__wglewDXRegisterObjectNV)
859 #define wglDXSetResourceShareHandleNV WGLEW_GET_FUN(__wglewDXSetResourceShareHandleNV)
860 #define wglDXUnlockObjectsNV WGLEW_GET_FUN(__wglewDXUnlockObjectsNV)
861 #define wglDXUnregisterObjectNV WGLEW_GET_FUN(__wglewDXUnregisterObjectNV)
863 #define WGLEW_NV_DX_interop WGLEW_GET_VAR(__WGLEW_NV_DX_interop)
869 #ifndef WGL_NV_copy_image
870 #define WGL_NV_copy_image 1
872 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);
874 #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
876 #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
882 #ifndef WGL_NV_float_buffer
883 #define WGL_NV_float_buffer 1
885 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
886 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
887 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
888 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
889 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
890 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
891 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
892 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
893 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
895 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
901 #ifndef WGL_NV_gpu_affinity
902 #define WGL_NV_gpu_affinity 1
904 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
905 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
907 DECLARE_HANDLE(HGPUNV);
911 CHAR DeviceString[128];
913 RECT rcVirtualScreen;
916 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (
const HGPUNV *phGpuList);
917 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
918 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
919 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
920 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
922 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
923 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
924 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
925 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
926 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
928 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
934 #ifndef WGL_NV_multisample_coverage
935 #define WGL_NV_multisample_coverage 1
937 #define WGL_COVERAGE_SAMPLES_NV 0x2042
938 #define WGL_COLOR_SAMPLES_NV 0x20B9
940 #define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage)
946 #ifndef WGL_NV_present_video
947 #define WGL_NV_present_video 1
949 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
951 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
953 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc,
unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice,
const int* piAttribList);
954 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
955 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (
int iAttribute,
int* piValue);
957 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
958 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
959 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
961 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
967 #ifndef WGL_NV_render_depth_texture
968 #define WGL_NV_render_depth_texture 1
970 #define WGL_NO_TEXTURE_ARB 0x2077
971 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
972 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
973 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
974 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
975 #define WGL_DEPTH_COMPONENT_NV 0x20A7
977 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
983 #ifndef WGL_NV_render_texture_rectangle
984 #define WGL_NV_render_texture_rectangle 1
986 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
987 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
988 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
990 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
996 #ifndef WGL_NV_swap_group
997 #define WGL_NV_swap_group 1
999 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
1000 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
1001 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
1002 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
1003 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
1004 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
1006 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
1007 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
1008 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
1009 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
1010 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
1011 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
1013 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
1019 #ifndef WGL_NV_vertex_array_range
1020 #define WGL_NV_vertex_array_range 1
1022 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
1023 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (
void *pointer);
1025 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
1026 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
1028 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
1034 #ifndef WGL_NV_video_capture
1035 #define WGL_NV_video_capture 1
1037 #define WGL_UNIQUE_ID_NV 0x20CE
1038 #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
1040 DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
1042 typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
1043 typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV* phDeviceList);
1044 typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
1045 typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice,
int iAttribute,
int* piValue);
1046 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
1048 #define wglBindVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewBindVideoCaptureDeviceNV)
1049 #define wglEnumerateVideoCaptureDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoCaptureDevicesNV)
1050 #define wglLockVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewLockVideoCaptureDeviceNV)
1051 #define wglQueryVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewQueryVideoCaptureDeviceNV)
1052 #define wglReleaseVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoCaptureDeviceNV)
1054 #define WGLEW_NV_video_capture WGLEW_GET_VAR(__WGLEW_NV_video_capture)
1060 #ifndef WGL_NV_video_output
1061 #define WGL_NV_video_output 1
1063 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
1064 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
1065 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
1066 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
1067 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
1068 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
1069 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
1070 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
1071 #define WGL_VIDEO_OUT_FRAME 0x20C8
1072 #define WGL_VIDEO_OUT_FIELD_1 0x20C9
1073 #define WGL_VIDEO_OUT_FIELD_2 0x20CA
1074 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
1075 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
1077 DECLARE_HANDLE(HPVIDEODEV);
1079 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer,
int iVideoBuffer);
1080 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC,
int numDevices, HPVIDEODEV* hVideoDevice);
1081 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice,
unsigned long* pulCounterOutputPbuffer,
unsigned long *pulCounterOutputVideo);
1082 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
1083 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer,
int iVideoBuffer);
1084 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer,
int iBufferType,
unsigned long* pulCounterPbuffer, BOOL bBlock);
1086 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
1087 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
1088 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
1089 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
1090 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
1091 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
1093 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
1099 #ifndef WGL_OML_sync_control
1100 #define WGL_OML_sync_control 1
1102 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
1103 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
1104 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
1105 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
1106 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
1107 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
1109 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
1110 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
1111 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
1112 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
1113 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
1114 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
1116 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
1123 #define WGLEW_EXPORT
1125 #define WGLEW_EXPORT GLEWAPI
1129 struct WGLEWContextStruct
1133 WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
1135 WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
1136 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
1137 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
1138 WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
1139 WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
1140 WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
1141 WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
1142 WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
1143 WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
1145 WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
1146 WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
1147 WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
1148 WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
1150 WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
1152 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
1154 WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
1155 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
1157 WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
1158 WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
1159 WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
1160 WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
1161 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
1163 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
1164 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
1165 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
1167 WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
1168 WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
1169 WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
1171 WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
1172 WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
1173 WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
1174 WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
1176 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
1178 WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
1179 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
1181 WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
1182 WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
1183 WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
1184 WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
1185 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
1187 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
1188 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
1189 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
1191 WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
1192 WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
1194 WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
1195 WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
1197 WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
1198 WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
1199 WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
1200 WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
1202 WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
1203 WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
1204 WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
1205 WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
1206 WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
1207 WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
1208 WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
1209 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
1210 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
1211 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
1212 WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
1213 WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
1215 WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
1216 WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
1217 WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
1218 WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
1220 WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
1221 WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
1222 WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
1223 WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
1225 WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
1226 WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
1227 WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
1228 WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
1230 WGLEW_EXPORT PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV;
1231 WGLEW_EXPORT PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV;
1232 WGLEW_EXPORT PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV;
1233 WGLEW_EXPORT PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV;
1234 WGLEW_EXPORT PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV;
1235 WGLEW_EXPORT PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV;
1236 WGLEW_EXPORT PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV;
1237 WGLEW_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV;
1239 WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
1241 WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
1242 WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
1243 WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
1244 WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
1245 WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
1247 WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
1248 WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
1249 WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
1251 WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
1252 WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
1253 WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
1254 WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
1255 WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
1256 WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
1258 WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
1259 WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
1261 WGLEW_EXPORT PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV;
1262 WGLEW_EXPORT PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV;
1263 WGLEW_EXPORT PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV;
1264 WGLEW_EXPORT PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV;
1265 WGLEW_EXPORT PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV;
1267 WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
1268 WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
1269 WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
1270 WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
1271 WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
1272 WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
1274 WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
1275 WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
1276 WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
1277 WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
1278 WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
1279 WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
1280 WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
1281 WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
1282 WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association;
1283 WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
1284 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context;
1285 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
1286 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_robustness;
1287 WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
1288 WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
1289 WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
1290 WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample;
1291 WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer;
1292 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format;
1293 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
1294 WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture;
1295 WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
1296 WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
1297 WGLEW_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile;
1298 WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float;
1299 WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table;
1300 WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string;
1301 WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
1302 WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read;
1303 WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample;
1304 WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer;
1305 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format;
1306 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
1307 WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control;
1308 WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
1309 WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma;
1310 WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock;
1311 WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
1312 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
1313 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
1314 WGLEW_EXPORT GLboolean __WGLEW_NV_DX_interop;
1315 WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image;
1316 WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
1317 WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
1318 WGLEW_EXPORT GLboolean __WGLEW_NV_multisample_coverage;
1319 WGLEW_EXPORT GLboolean __WGLEW_NV_present_video;
1320 WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
1321 WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
1322 WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group;
1323 WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
1324 WGLEW_EXPORT GLboolean __WGLEW_NV_video_capture;
1325 WGLEW_EXPORT GLboolean __WGLEW_NV_video_output;
1326 WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control;
1336 typedef struct WGLEWContextStruct WGLEWContext;
1337 GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
1338 GLEWAPI GLboolean wglewContextIsSupported (
const WGLEWContext* ctx,
const char* name);
1340 #define wglewInit() wglewContextInit(wglewGetContext())
1341 #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
1343 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
1344 #define WGLEW_GET_FUN(x) wglewGetContext()->x
1348 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
1349 #define WGLEW_GET_FUN(x) x
1351 GLEWAPI GLboolean wglewIsSupported (
const char* name);
1355 GLEWAPI GLboolean wglewGetExtension (
const char* name);