/[pcsx2_0.9.7]/trunk/3rdparty/GL/wglew.h
ViewVC logotype

Contents of /trunk/3rdparty/GL/wglew.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 62 - (show annotations) (download)
Tue Sep 7 11:08:22 2010 UTC (10 years, 1 month ago) by william
File MIME type: text/plain
File size: 53806 byte(s)
Auto Commited Import of: pcsx2-0.9.7-r3738-debug in ./trunk
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
88 extern "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
113 typedef 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
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);
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
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);
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
197 typedef 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_extensions_string ----------------------- */
219
220 #ifndef WGL_ARB_extensions_string
221 #define WGL_ARB_extensions_string 1
222
223 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
224
225 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
226
227 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
228
229 #endif /* WGL_ARB_extensions_string */
230
231 /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */
232
233 #ifndef WGL_ARB_framebuffer_sRGB
234 #define WGL_ARB_framebuffer_sRGB 1
235
236 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
237
238 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB)
239
240 #endif /* WGL_ARB_framebuffer_sRGB */
241
242 /* ----------------------- WGL_ARB_make_current_read ----------------------- */
243
244 #ifndef WGL_ARB_make_current_read
245 #define WGL_ARB_make_current_read 1
246
247 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
248 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
249
250 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
251 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
252
253 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
254 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
255
256 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
257
258 #endif /* WGL_ARB_make_current_read */
259
260 /* -------------------------- WGL_ARB_multisample -------------------------- */
261
262 #ifndef WGL_ARB_multisample
263 #define WGL_ARB_multisample 1
264
265 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
266 #define WGL_SAMPLES_ARB 0x2042
267
268 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
269
270 #endif /* WGL_ARB_multisample */
271
272 /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */
273
274 #ifndef WGL_ARB_pbuffer
275 #define WGL_ARB_pbuffer 1
276
277 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
278 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
279 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
280 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
281 #define WGL_PBUFFER_LARGEST_ARB 0x2033
282 #define WGL_PBUFFER_WIDTH_ARB 0x2034
283 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
284 #define WGL_PBUFFER_LOST_ARB 0x2036
285
286 DECLARE_HANDLE(HPBUFFERARB);
287
288 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
289 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
290 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
291 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
292 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
293
294 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
295 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
296 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
297 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
298 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
299
300 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
301
302 #endif /* WGL_ARB_pbuffer */
303
304 /* -------------------------- WGL_ARB_pixel_format ------------------------- */
305
306 #ifndef WGL_ARB_pixel_format
307 #define WGL_ARB_pixel_format 1
308
309 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
310 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
311 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
312 #define WGL_ACCELERATION_ARB 0x2003
313 #define WGL_NEED_PALETTE_ARB 0x2004
314 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
315 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
316 #define WGL_SWAP_METHOD_ARB 0x2007
317 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
318 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
319 #define WGL_TRANSPARENT_ARB 0x200A
320 #define WGL_SHARE_DEPTH_ARB 0x200C
321 #define WGL_SHARE_STENCIL_ARB 0x200D
322 #define WGL_SHARE_ACCUM_ARB 0x200E
323 #define WGL_SUPPORT_GDI_ARB 0x200F
324 #define WGL_SUPPORT_OPENGL_ARB 0x2010
325 #define WGL_DOUBLE_BUFFER_ARB 0x2011
326 #define WGL_STEREO_ARB 0x2012
327 #define WGL_PIXEL_TYPE_ARB 0x2013
328 #define WGL_COLOR_BITS_ARB 0x2014
329 #define WGL_RED_BITS_ARB 0x2015
330 #define WGL_RED_SHIFT_ARB 0x2016
331 #define WGL_GREEN_BITS_ARB 0x2017
332 #define WGL_GREEN_SHIFT_ARB 0x2018
333 #define WGL_BLUE_BITS_ARB 0x2019
334 #define WGL_BLUE_SHIFT_ARB 0x201A
335 #define WGL_ALPHA_BITS_ARB 0x201B
336 #define WGL_ALPHA_SHIFT_ARB 0x201C
337 #define WGL_ACCUM_BITS_ARB 0x201D
338 #define WGL_ACCUM_RED_BITS_ARB 0x201E
339 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
340 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
341 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
342 #define WGL_DEPTH_BITS_ARB 0x2022
343 #define WGL_STENCIL_BITS_ARB 0x2023
344 #define WGL_AUX_BUFFERS_ARB 0x2024
345 #define WGL_NO_ACCELERATION_ARB 0x2025
346 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
347 #define WGL_FULL_ACCELERATION_ARB 0x2027
348 #define WGL_SWAP_EXCHANGE_ARB 0x2028
349 #define WGL_SWAP_COPY_ARB 0x2029
350 #define WGL_SWAP_UNDEFINED_ARB 0x202A
351 #define WGL_TYPE_RGBA_ARB 0x202B
352 #define WGL_TYPE_COLORINDEX_ARB 0x202C
353 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
354 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
355 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
356 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
357 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
358
359 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
360 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues);
361 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues);
362
363 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
364 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
365 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
366
367 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
368
369 #endif /* WGL_ARB_pixel_format */
370
371 /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */
372
373 #ifndef WGL_ARB_pixel_format_float
374 #define WGL_ARB_pixel_format_float 1
375
376 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
377
378 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
379
380 #endif /* WGL_ARB_pixel_format_float */
381
382 /* ------------------------- WGL_ARB_render_texture ------------------------ */
383
384 #ifndef WGL_ARB_render_texture
385 #define WGL_ARB_render_texture 1
386
387 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
388 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
389 #define WGL_TEXTURE_FORMAT_ARB 0x2072
390 #define WGL_TEXTURE_TARGET_ARB 0x2073
391 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
392 #define WGL_TEXTURE_RGB_ARB 0x2075
393 #define WGL_TEXTURE_RGBA_ARB 0x2076
394 #define WGL_NO_TEXTURE_ARB 0x2077
395 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
396 #define WGL_TEXTURE_1D_ARB 0x2079
397 #define WGL_TEXTURE_2D_ARB 0x207A
398 #define WGL_MIPMAP_LEVEL_ARB 0x207B
399 #define WGL_CUBE_MAP_FACE_ARB 0x207C
400 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
401 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
402 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
403 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
404 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
405 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
406 #define WGL_FRONT_LEFT_ARB 0x2083
407 #define WGL_FRONT_RIGHT_ARB 0x2084
408 #define WGL_BACK_LEFT_ARB 0x2085
409 #define WGL_BACK_RIGHT_ARB 0x2086
410 #define WGL_AUX0_ARB 0x2087
411 #define WGL_AUX1_ARB 0x2088
412 #define WGL_AUX2_ARB 0x2089
413 #define WGL_AUX3_ARB 0x208A
414 #define WGL_AUX4_ARB 0x208B
415 #define WGL_AUX5_ARB 0x208C
416 #define WGL_AUX6_ARB 0x208D
417 #define WGL_AUX7_ARB 0x208E
418 #define WGL_AUX8_ARB 0x208F
419 #define WGL_AUX9_ARB 0x2090
420
421 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
422 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
423 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
424
425 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
426 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
427 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
428
429 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
430
431 #endif /* WGL_ARB_render_texture */
432
433 /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */
434
435 #ifndef WGL_ATI_pixel_format_float
436 #define WGL_ATI_pixel_format_float 1
437
438 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
439 #define GL_RGBA_FLOAT_MODE_ATI 0x8820
440 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
441
442 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
443
444 #endif /* WGL_ATI_pixel_format_float */
445
446 /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */
447
448 #ifndef WGL_ATI_render_texture_rectangle
449 #define WGL_ATI_render_texture_rectangle 1
450
451 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
452
453 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
454
455 #endif /* WGL_ATI_render_texture_rectangle */
456
457 /* -------------------------- WGL_EXT_depth_float -------------------------- */
458
459 #ifndef WGL_EXT_depth_float
460 #define WGL_EXT_depth_float 1
461
462 #define WGL_DEPTH_FLOAT_EXT 0x2040
463
464 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
465
466 #endif /* WGL_EXT_depth_float */
467
468 /* ---------------------- WGL_EXT_display_color_table ---------------------- */
469
470 #ifndef WGL_EXT_display_color_table
471 #define WGL_EXT_display_color_table 1
472
473 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
474 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
475 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
476 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
477
478 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
479 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
480 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
481 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
482
483 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
484
485 #endif /* WGL_EXT_display_color_table */
486
487 /* ----------------------- WGL_EXT_extensions_string ----------------------- */
488
489 #ifndef WGL_EXT_extensions_string
490 #define WGL_EXT_extensions_string 1
491
492 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
493
494 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
495
496 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
497
498 #endif /* WGL_EXT_extensions_string */
499
500 /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */
501
502 #ifndef WGL_EXT_framebuffer_sRGB
503 #define WGL_EXT_framebuffer_sRGB 1
504
505 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
506
507 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
508
509 #endif /* WGL_EXT_framebuffer_sRGB */
510
511 /* ----------------------- WGL_EXT_make_current_read ----------------------- */
512
513 #ifndef WGL_EXT_make_current_read
514 #define WGL_EXT_make_current_read 1
515
516 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
517
518 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
519 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
520
521 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
522 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
523
524 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
525
526 #endif /* WGL_EXT_make_current_read */
527
528 /* -------------------------- WGL_EXT_multisample -------------------------- */
529
530 #ifndef WGL_EXT_multisample
531 #define WGL_EXT_multisample 1
532
533 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
534 #define WGL_SAMPLES_EXT 0x2042
535
536 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
537
538 #endif /* WGL_EXT_multisample */
539
540 /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
541
542 #ifndef WGL_EXT_pbuffer
543 #define WGL_EXT_pbuffer 1
544
545 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
546 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
547 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
548 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
549 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
550 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
551 #define WGL_PBUFFER_LARGEST_EXT 0x2033
552 #define WGL_PBUFFER_WIDTH_EXT 0x2034
553 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
554
555 DECLARE_HANDLE(HPBUFFEREXT);
556
557 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
558 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
559 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
560 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
561 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
562
563 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
564 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
565 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
566 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
567 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
568
569 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
570
571 #endif /* WGL_EXT_pbuffer */
572
573 /* -------------------------- WGL_EXT_pixel_format ------------------------- */
574
575 #ifndef WGL_EXT_pixel_format
576 #define WGL_EXT_pixel_format 1
577
578 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
579 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
580 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
581 #define WGL_ACCELERATION_EXT 0x2003
582 #define WGL_NEED_PALETTE_EXT 0x2004
583 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
584 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
585 #define WGL_SWAP_METHOD_EXT 0x2007
586 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
587 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
588 #define WGL_TRANSPARENT_EXT 0x200A
589 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
590 #define WGL_SHARE_DEPTH_EXT 0x200C
591 #define WGL_SHARE_STENCIL_EXT 0x200D
592 #define WGL_SHARE_ACCUM_EXT 0x200E
593 #define WGL_SUPPORT_GDI_EXT 0x200F
594 #define WGL_SUPPORT_OPENGL_EXT 0x2010
595 #define WGL_DOUBLE_BUFFER_EXT 0x2011
596 #define WGL_STEREO_EXT 0x2012
597 #define WGL_PIXEL_TYPE_EXT 0x2013
598 #define WGL_COLOR_BITS_EXT 0x2014
599 #define WGL_RED_BITS_EXT 0x2015
600 #define WGL_RED_SHIFT_EXT 0x2016
601 #define WGL_GREEN_BITS_EXT 0x2017
602 #define WGL_GREEN_SHIFT_EXT 0x2018
603 #define WGL_BLUE_BITS_EXT 0x2019
604 #define WGL_BLUE_SHIFT_EXT 0x201A
605 #define WGL_ALPHA_BITS_EXT 0x201B
606 #define WGL_ALPHA_SHIFT_EXT 0x201C
607 #define WGL_ACCUM_BITS_EXT 0x201D
608 #define WGL_ACCUM_RED_BITS_EXT 0x201E
609 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
610 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
611 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
612 #define WGL_DEPTH_BITS_EXT 0x2022
613 #define WGL_STENCIL_BITS_EXT 0x2023
614 #define WGL_AUX_BUFFERS_EXT 0x2024
615 #define WGL_NO_ACCELERATION_EXT 0x2025
616 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
617 #define WGL_FULL_ACCELERATION_EXT 0x2027
618 #define WGL_SWAP_EXCHANGE_EXT 0x2028
619 #define WGL_SWAP_COPY_EXT 0x2029
620 #define WGL_SWAP_UNDEFINED_EXT 0x202A
621 #define WGL_TYPE_RGBA_EXT 0x202B
622 #define WGL_TYPE_COLORINDEX_EXT 0x202C
623
624 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
625 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
626 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
627
628 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
629 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
630 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
631
632 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
633
634 #endif /* WGL_EXT_pixel_format */
635
636 /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */
637
638 #ifndef WGL_EXT_pixel_format_packed_float
639 #define WGL_EXT_pixel_format_packed_float 1
640
641 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
642
643 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
644
645 #endif /* WGL_EXT_pixel_format_packed_float */
646
647 /* -------------------------- WGL_EXT_swap_control ------------------------- */
648
649 #ifndef WGL_EXT_swap_control
650 #define WGL_EXT_swap_control 1
651
652 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
653 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
654
655 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
656 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
657
658 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
659
660 #endif /* WGL_EXT_swap_control */
661
662 /* --------------------- WGL_I3D_digital_video_control --------------------- */
663
664 #ifndef WGL_I3D_digital_video_control
665 #define WGL_I3D_digital_video_control 1
666
667 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
668 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
669 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
670 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
671
672 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
673 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
674
675 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
676 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
677
678 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
679
680 #endif /* WGL_I3D_digital_video_control */
681
682 /* ----------------------------- WGL_I3D_gamma ----------------------------- */
683
684 #ifndef WGL_I3D_gamma
685 #define WGL_I3D_gamma 1
686
687 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
688 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
689
690 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
691 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
692 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
693 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
694
695 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
696 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
697 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
698 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
699
700 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
701
702 #endif /* WGL_I3D_gamma */
703
704 /* ---------------------------- WGL_I3D_genlock ---------------------------- */
705
706 #ifndef WGL_I3D_genlock
707 #define WGL_I3D_genlock 1
708
709 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
710 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
711 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
712 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
713 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
714 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
715 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
716 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
717 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
718
719 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
720 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
721 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
722 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
723 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
724 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
725 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
726 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
727 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
728 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
729 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
730 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
731
732 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
733 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
734 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
735 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
736 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
737 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
738 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
739 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
740 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
741 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
742 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
743 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
744
745 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
746
747 #endif /* WGL_I3D_genlock */
748
749 /* -------------------------- WGL_I3D_image_buffer ------------------------- */
750
751 #ifndef WGL_I3D_image_buffer
752 #define WGL_I3D_image_buffer 1
753
754 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
755 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
756
757 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
758 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
759 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
760 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
761
762 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
763 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
764 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
765 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
766
767 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
768
769 #endif /* WGL_I3D_image_buffer */
770
771 /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
772
773 #ifndef WGL_I3D_swap_frame_lock
774 #define WGL_I3D_swap_frame_lock 1
775
776 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
777 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
778 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
779 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
780
781 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
782 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
783 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
784 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
785
786 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
787
788 #endif /* WGL_I3D_swap_frame_lock */
789
790 /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
791
792 #ifndef WGL_I3D_swap_frame_usage
793 #define WGL_I3D_swap_frame_usage 1
794
795 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
796 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
797 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
798 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
799
800 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
801 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
802 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
803 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
804
805 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
806
807 #endif /* WGL_I3D_swap_frame_usage */
808
809 /* --------------------------- WGL_NV_copy_image --------------------------- */
810
811 #ifndef WGL_NV_copy_image
812 #define WGL_NV_copy_image 1
813
814 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);
815
816 #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
817
818 #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
819
820 #endif /* WGL_NV_copy_image */
821
822 /* -------------------------- WGL_NV_float_buffer -------------------------- */
823
824 #ifndef WGL_NV_float_buffer
825 #define WGL_NV_float_buffer 1
826
827 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
828 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
829 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
830 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
831 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
832 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
833 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
834 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
835 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
836
837 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
838
839 #endif /* WGL_NV_float_buffer */
840
841 /* -------------------------- WGL_NV_gpu_affinity -------------------------- */
842
843 #ifndef WGL_NV_gpu_affinity
844 #define WGL_NV_gpu_affinity 1
845
846 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
847 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
848
849 DECLARE_HANDLE(HGPUNV);
850 typedef struct _GPU_DEVICE {
851 DWORD cb;
852 CHAR DeviceName[32];
853 CHAR DeviceString[128];
854 DWORD Flags;
855 RECT rcVirtualScreen;
856 } GPU_DEVICE, *PGPU_DEVICE;
857
858 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
859 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
860 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
861 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
862 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
863
864 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
865 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
866 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
867 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
868 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
869
870 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
871
872 #endif /* WGL_NV_gpu_affinity */
873
874 /* -------------------------- WGL_NV_present_video ------------------------- */
875
876 #ifndef WGL_NV_present_video
877 #define WGL_NV_present_video 1
878
879 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
880
881 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
882
883 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList);
884 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
885 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue);
886
887 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
888 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
889 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
890
891 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
892
893 #endif /* WGL_NV_present_video */
894
895 /* ---------------------- WGL_NV_render_depth_texture ---------------------- */
896
897 #ifndef WGL_NV_render_depth_texture
898 #define WGL_NV_render_depth_texture 1
899
900 #define WGL_NO_TEXTURE_ARB 0x2077
901 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
902 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
903 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
904 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
905 #define WGL_DEPTH_COMPONENT_NV 0x20A7
906
907 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
908
909 #endif /* WGL_NV_render_depth_texture */
910
911 /* -------------------- WGL_NV_render_texture_rectangle -------------------- */
912
913 #ifndef WGL_NV_render_texture_rectangle
914 #define WGL_NV_render_texture_rectangle 1
915
916 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
917 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
918 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
919
920 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
921
922 #endif /* WGL_NV_render_texture_rectangle */
923
924 /* --------------------------- WGL_NV_swap_group --------------------------- */
925
926 #ifndef WGL_NV_swap_group
927 #define WGL_NV_swap_group 1
928
929 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
930 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
931 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
932 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
933 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
934 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
935
936 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
937 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
938 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
939 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
940 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
941 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
942
943 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
944
945 #endif /* WGL_NV_swap_group */
946
947 /* ----------------------- WGL_NV_vertex_array_range ----------------------- */
948
949 #ifndef WGL_NV_vertex_array_range
950 #define WGL_NV_vertex_array_range 1
951
952 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
953 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
954
955 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
956 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
957
958 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
959
960 #endif /* WGL_NV_vertex_array_range */
961
962 /* -------------------------- WGL_NV_video_output -------------------------- */
963
964 #ifndef WGL_NV_video_output
965 #define WGL_NV_video_output 1
966
967 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
968 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
969 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
970 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
971 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
972 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
973 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
974 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
975 #define WGL_VIDEO_OUT_FRAME 0x20C8
976 #define WGL_VIDEO_OUT_FIELD_1 0x20C9
977 #define WGL_VIDEO_OUT_FIELD_2 0x20CA
978 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
979 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
980
981 DECLARE_HANDLE(HPVIDEODEV);
982
983 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
984 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice);
985 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
986 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
987 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
988 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock);
989
990 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
991 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
992 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
993 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
994 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
995 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
996
997 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
998
999 #endif /* WGL_NV_video_output */
1000
1001 /* -------------------------- WGL_OML_sync_control ------------------------- */
1002
1003 #ifndef WGL_OML_sync_control
1004 #define WGL_OML_sync_control 1
1005
1006 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
1007 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
1008 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
1009 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
1010 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
1011 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
1012
1013 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
1014 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
1015 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
1016 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
1017 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
1018 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
1019
1020 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
1021
1022 #endif /* WGL_OML_sync_control */
1023
1024 /* ------------------------------------------------------------------------- */
1025
1026 #ifdef GLEW_MX
1027 #define WGLEW_EXPORT
1028 #else
1029 #define WGLEW_EXPORT GLEWAPI
1030 #endif /* GLEW_MX */
1031
1032 #ifdef GLEW_MX
1033 struct WGLEWContextStruct
1034 {
1035 #endif /* GLEW_MX */
1036
1037 WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
1038
1039 WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
1040 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
1041 WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
1042 WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
1043 WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
1044 WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
1045 WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
1046 WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
1047 WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
1048
1049 WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
1050 WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
1051 WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
1052 WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
1053
1054 WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
1055
1056 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
1057
1058 WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
1059 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
1060
1061 WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
1062 WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
1063 WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
1064 WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
1065 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
1066
1067 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
1068 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
1069 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
1070
1071 WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
1072 WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
1073 WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
1074
1075 WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
1076 WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
1077 WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
1078 WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
1079
1080 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
1081
1082 WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
1083 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
1084
1085 WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
1086 WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
1087 WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
1088 WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
1089 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
1090
1091 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
1092 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
1093 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
1094
1095 WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
1096 WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
1097
1098 WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
1099 WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
1100
1101 WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
1102 WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
1103 WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
1104 WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
1105
1106 WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
1107 WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
1108 WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
1109 WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
1110 WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
1111 WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
1112 WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
1113 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
1114 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
1115 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
1116 WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
1117 WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
1118
1119 WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
1120 WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
1121 WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
1122 WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
1123
1124 WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
1125 WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
1126 WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
1127 WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
1128
1129 WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
1130 WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
1131 WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
1132 WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
1133
1134 WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
1135
1136 WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
1137 WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
1138 WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
1139 WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
1140 WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
1141
1142 WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
1143 WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
1144 WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
1145
1146 WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
1147 WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
1148 WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
1149 WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
1150 WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
1151 WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
1152
1153 WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
1154 WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
1155
1156 WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
1157 WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
1158 WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
1159 WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
1160 WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
1161 WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
1162
1163 WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
1164 WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
1165 WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
1166 WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
1167 WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
1168 WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
1169 WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
1170 WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
1171 WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association;
1172 WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
1173 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context;
1174 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
1175 WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
1176 WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
1177 WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
1178 WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample;
1179 WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer;
1180 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format;
1181 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
1182 WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture;
1183 WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
1184 WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
1185 WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float;
1186 WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table;
1187 WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string;
1188 WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
1189 WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read;
1190 WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample;
1191 WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer;
1192 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format;
1193 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
1194 WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control;
1195 WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
1196 WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma;
1197 WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock;
1198 WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
1199 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
1200 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
1201 WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image;
1202 WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
1203 WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
1204 WGLEW_EXPORT GLboolean __WGLEW_NV_present_video;
1205 WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
1206 WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
1207 WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group;
1208 WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
1209 WGLEW_EXPORT GLboolean __WGLEW_NV_video_output;
1210 WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control;
1211
1212 #ifdef GLEW_MX
1213 }; /* WGLEWContextStruct */
1214 #endif /* GLEW_MX */
1215
1216 /* ------------------------------------------------------------------------- */
1217
1218 #ifdef GLEW_MX
1219
1220 typedef struct WGLEWContextStruct WGLEWContext;
1221 GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
1222 GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
1223
1224 #define wglewInit() wglewContextInit(wglewGetContext())
1225 #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
1226
1227 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
1228 #define WGLEW_GET_FUN(x) wglewGetContext()->x
1229
1230 #else /* GLEW_MX */
1231
1232 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
1233 #define WGLEW_GET_FUN(x) x
1234
1235 GLEWAPI GLboolean wglewIsSupported (const char* name);
1236
1237 #endif /* GLEW_MX */
1238
1239 GLEWAPI GLboolean wglewGetExtension (const char* name);
1240
1241 #ifdef __cplusplus
1242 }
1243 #endif
1244
1245 #undef GLEWAPI
1246
1247 #endif /* __wglew_h__ */

  ViewVC Help
Powered by ViewVC 1.1.22