source: trunk/contrib/glew-1.6.0/include/GL/wglew.h @ 794

Last change on this file since 794 was 794, checked in by sam, 10 years ago

contrib: add glew 1.6.0 binaries for Win32.

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