OLD | NEW |
| (Empty) |
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(APIENTRY) && !defined(__CYGWIN__) | |
66 # ifndef WIN32_LEAN_AND_MEAN | |
67 # define WIN32_LEAN_AND_MEAN 1 | |
68 # endif | |
69 #include <windows.h> | |
70 #endif | |
71 | |
72 /* | |
73 * GLEW_STATIC needs to be set when using the static version. | |
74 * GLEW_BUILD is set when building the DLL version. | |
75 */ | |
76 #ifdef GLEW_STATIC | |
77 # define GLEWAPI extern | |
78 #else | |
79 # ifdef GLEW_BUILD | |
80 # define GLEWAPI extern __declspec(dllexport) | |
81 # else | |
82 # define GLEWAPI extern __declspec(dllimport) | |
83 # endif | |
84 #endif | |
85 | |
86 #ifdef __cplusplus | |
87 extern "C" { | |
88 #endif | |
89 | |
90 /* ------------------------------- Core WGL -------------------------------- */ | |
91 | |
92 /* This section supports dynamic lookup of the core WGL entry points | |
93 under different names. It is not supported for GLEW_MX. */ | |
94 | |
95 #ifndef GLEW_MX | |
96 | |
97 #ifndef WGL_core_wgl | |
98 #define WGL_core_wgl 1 | |
99 | |
100 typedef BOOL (WINAPI * PFNWGLCOPYCONTEXTPROC)(HGLRC, HGLRC, UINT); | |
101 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTPROC)(HDC); | |
102 typedef HGLRC (WINAPI * PFNWGLCREATELAYERCONTEXTPROC)(HDC, int); | |
103 typedef BOOL (WINAPI * PFNWGLDELETECONTEXTPROC)(HGLRC); | |
104 typedef HGLRC (WINAPI * PFNWGLGETCURRENTCONTEXTPROC)(VOID); | |
105 typedef HDC (WINAPI * PFNWGLGETCURRENTDCPROC)(VOID); | |
106 typedef PROC (WINAPI * PFNWGLGETPROCADDRESSPROC)(LPCSTR); | |
107 typedef BOOL (WINAPI * PFNWGLMAKECURRENTPROC)(HDC, HGLRC); | |
108 typedef BOOL (WINAPI * PFNWGLSHARELISTSPROC)(HGLRC, HGLRC); | |
109 typedef BOOL (WINAPI * PFNSWAPBUFFERSPROC)(HDC); | |
110 | |
111 #define wglewCopyContext WGLEW_GET_FUN(__wglewCopyContext) | |
112 #define wglewCreateContext WGLEW_GET_FUN(__wglewCreateContext) | |
113 #define wglewCreateLayerContext WGLEW_GET_FUN(__wglewCreateLayerContext) | |
114 #define wglewDeleteContext WGLEW_GET_FUN(__wglewDeleteContext) | |
115 #define wglewGetCurrentContext WGLEW_GET_FUN(__wglewGetCurrentContext) | |
116 #define wglewGetCurrentDC WGLEW_GET_FUN(__wglewGetCurrentDC) | |
117 #define wglewGetProcAddress WGLEW_GET_FUN(__wglewGetProcAddress) | |
118 #define wglewMakeCurrent WGLEW_GET_FUN(__wglewMakeCurrent) | |
119 #define wglewShareLists WGLEW_GET_FUN(__wglewShareLists) | |
120 #define wglewSwapBuffers WGLEW_GET_FUN(__wglewSwapBuffers) | |
121 | |
122 #endif /* WGL_core_wgl */ | |
123 | |
124 #endif /* !GLEW_MX */ | |
125 | |
126 /* -------------------------- WGL_3DFX_multisample ------------------------- */ | |
127 | |
128 #ifndef WGL_3DFX_multisample | |
129 #define WGL_3DFX_multisample 1 | |
130 | |
131 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060 | |
132 #define WGL_SAMPLES_3DFX 0x2061 | |
133 | |
134 #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample) | |
135 | |
136 #endif /* WGL_3DFX_multisample */ | |
137 | |
138 /* ------------------------- WGL_3DL_stereo_control ------------------------ */ | |
139 | |
140 #ifndef WGL_3DL_stereo_control | |
141 #define WGL_3DL_stereo_control 1 | |
142 | |
143 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055 | |
144 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056 | |
145 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057 | |
146 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058 | |
147 | |
148 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState
); | |
149 | |
150 #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3D
L) | |
151 | |
152 #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control) | |
153 | |
154 #endif /* WGL_3DL_stereo_control */ | |
155 | |
156 /* ------------------------- WGL_ARB_buffer_region ------------------------- */ | |
157 | |
158 #ifndef WGL_ARB_buffer_region | |
159 #define WGL_ARB_buffer_region 1 | |
160 | |
161 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001 | |
162 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002 | |
163 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004 | |
164 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008 | |
165 | |
166 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPl
ane, UINT uType); | |
167 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion); | |
168 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x,
int y, int width, int height, int xSrc, int ySrc); | |
169 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, in
t y, int width, int height); | |
170 | |
171 #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB) | |
172 #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB) | |
173 #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB) | |
174 #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB) | |
175 | |
176 #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region) | |
177 | |
178 #endif /* WGL_ARB_buffer_region */ | |
179 | |
180 /* ------------------------- WGL_ARB_create_context ------------------------ */ | |
181 | |
182 #ifndef WGL_ARB_create_context | |
183 #define WGL_ARB_create_context 1 | |
184 | |
185 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001 | |
186 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 | |
187 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091 | |
188 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092 | |
189 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093 | |
190 #define WGL_CONTEXT_FLAGS_ARB 0x2094 | |
191 | |
192 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShar
eContext, const int* attribList); | |
193 | |
194 #define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB) | |
195 | |
196 #define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context) | |
197 | |
198 #endif /* WGL_ARB_create_context */ | |
199 | |
200 /* ----------------------- WGL_ARB_extensions_string ----------------------- */ | |
201 | |
202 #ifndef WGL_ARB_extensions_string | |
203 #define WGL_ARB_extensions_string 1 | |
204 | |
205 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc); | |
206 | |
207 #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB) | |
208 | |
209 #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string) | |
210 | |
211 #endif /* WGL_ARB_extensions_string */ | |
212 | |
213 /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */ | |
214 | |
215 #ifndef WGL_ARB_framebuffer_sRGB | |
216 #define WGL_ARB_framebuffer_sRGB 1 | |
217 | |
218 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9 | |
219 | |
220 #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB) | |
221 | |
222 #endif /* WGL_ARB_framebuffer_sRGB */ | |
223 | |
224 /* ----------------------- WGL_ARB_make_current_read ----------------------- */ | |
225 | |
226 #ifndef WGL_ARB_make_current_read | |
227 #define WGL_ARB_make_current_read 1 | |
228 | |
229 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043 | |
230 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054 | |
231 | |
232 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID); | |
233 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadD
C, HGLRC hglrc); | |
234 | |
235 #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB) | |
236 #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB) | |
237 | |
238 #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read) | |
239 | |
240 #endif /* WGL_ARB_make_current_read */ | |
241 | |
242 /* -------------------------- WGL_ARB_multisample -------------------------- */ | |
243 | |
244 #ifndef WGL_ARB_multisample | |
245 #define WGL_ARB_multisample 1 | |
246 | |
247 #define WGL_SAMPLE_BUFFERS_ARB 0x2041 | |
248 #define WGL_SAMPLES_ARB 0x2042 | |
249 | |
250 #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample) | |
251 | |
252 #endif /* WGL_ARB_multisample */ | |
253 | |
254 /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */ | |
255 | |
256 #ifndef WGL_ARB_pbuffer | |
257 #define WGL_ARB_pbuffer 1 | |
258 | |
259 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D | |
260 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E | |
261 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F | |
262 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030 | |
263 #define WGL_PBUFFER_LARGEST_ARB 0x2033 | |
264 #define WGL_PBUFFER_WIDTH_ARB 0x2034 | |
265 #define WGL_PBUFFER_HEIGHT_ARB 0x2035 | |
266 #define WGL_PBUFFER_LOST_ARB 0x2036 | |
267 | |
268 DECLARE_HANDLE(HPBUFFERARB); | |
269 | |
270 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFo
rmat, int iWidth, int iHeight, const int* piAttribList); | |
271 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer); | |
272 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer); | |
273 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAt
tribute, int* piValue); | |
274 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC
hDC); | |
275 | |
276 #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB) | |
277 #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB) | |
278 #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB) | |
279 #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB) | |
280 #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB) | |
281 | |
282 #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer) | |
283 | |
284 #endif /* WGL_ARB_pbuffer */ | |
285 | |
286 /* -------------------------- WGL_ARB_pixel_format ------------------------- */ | |
287 | |
288 #ifndef WGL_ARB_pixel_format | |
289 #define WGL_ARB_pixel_format 1 | |
290 | |
291 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000 | |
292 #define WGL_DRAW_TO_WINDOW_ARB 0x2001 | |
293 #define WGL_DRAW_TO_BITMAP_ARB 0x2002 | |
294 #define WGL_ACCELERATION_ARB 0x2003 | |
295 #define WGL_NEED_PALETTE_ARB 0x2004 | |
296 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005 | |
297 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006 | |
298 #define WGL_SWAP_METHOD_ARB 0x2007 | |
299 #define WGL_NUMBER_OVERLAYS_ARB 0x2008 | |
300 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009 | |
301 #define WGL_TRANSPARENT_ARB 0x200A | |
302 #define WGL_SHARE_DEPTH_ARB 0x200C | |
303 #define WGL_SHARE_STENCIL_ARB 0x200D | |
304 #define WGL_SHARE_ACCUM_ARB 0x200E | |
305 #define WGL_SUPPORT_GDI_ARB 0x200F | |
306 #define WGL_SUPPORT_OPENGL_ARB 0x2010 | |
307 #define WGL_DOUBLE_BUFFER_ARB 0x2011 | |
308 #define WGL_STEREO_ARB 0x2012 | |
309 #define WGL_PIXEL_TYPE_ARB 0x2013 | |
310 #define WGL_COLOR_BITS_ARB 0x2014 | |
311 #define WGL_RED_BITS_ARB 0x2015 | |
312 #define WGL_RED_SHIFT_ARB 0x2016 | |
313 #define WGL_GREEN_BITS_ARB 0x2017 | |
314 #define WGL_GREEN_SHIFT_ARB 0x2018 | |
315 #define WGL_BLUE_BITS_ARB 0x2019 | |
316 #define WGL_BLUE_SHIFT_ARB 0x201A | |
317 #define WGL_ALPHA_BITS_ARB 0x201B | |
318 #define WGL_ALPHA_SHIFT_ARB 0x201C | |
319 #define WGL_ACCUM_BITS_ARB 0x201D | |
320 #define WGL_ACCUM_RED_BITS_ARB 0x201E | |
321 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F | |
322 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020 | |
323 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021 | |
324 #define WGL_DEPTH_BITS_ARB 0x2022 | |
325 #define WGL_STENCIL_BITS_ARB 0x2023 | |
326 #define WGL_AUX_BUFFERS_ARB 0x2024 | |
327 #define WGL_NO_ACCELERATION_ARB 0x2025 | |
328 #define WGL_GENERIC_ACCELERATION_ARB 0x2026 | |
329 #define WGL_FULL_ACCELERATION_ARB 0x2027 | |
330 #define WGL_SWAP_EXCHANGE_ARB 0x2028 | |
331 #define WGL_SWAP_COPY_ARB 0x2029 | |
332 #define WGL_SWAP_UNDEFINED_ARB 0x202A | |
333 #define WGL_TYPE_RGBA_ARB 0x202B | |
334 #define WGL_TYPE_COLORINDEX_ARB 0x202C | |
335 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037 | |
336 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038 | |
337 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039 | |
338 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A | |
339 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B | |
340 | |
341 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAt
tribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *n
NumFormats); | |
342 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixel
Format, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfVal
ues); | |
343 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixel
Format, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValue
s); | |
344 | |
345 #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB) | |
346 #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfv
ARB) | |
347 #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribiv
ARB) | |
348 | |
349 #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format) | |
350 | |
351 #endif /* WGL_ARB_pixel_format */ | |
352 | |
353 /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */ | |
354 | |
355 #ifndef WGL_ARB_pixel_format_float | |
356 #define WGL_ARB_pixel_format_float 1 | |
357 | |
358 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0 | |
359 | |
360 #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_floa
t) | |
361 | |
362 #endif /* WGL_ARB_pixel_format_float */ | |
363 | |
364 /* ------------------------- WGL_ARB_render_texture ------------------------ */ | |
365 | |
366 #ifndef WGL_ARB_render_texture | |
367 #define WGL_ARB_render_texture 1 | |
368 | |
369 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070 | |
370 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071 | |
371 #define WGL_TEXTURE_FORMAT_ARB 0x2072 | |
372 #define WGL_TEXTURE_TARGET_ARB 0x2073 | |
373 #define WGL_MIPMAP_TEXTURE_ARB 0x2074 | |
374 #define WGL_TEXTURE_RGB_ARB 0x2075 | |
375 #define WGL_TEXTURE_RGBA_ARB 0x2076 | |
376 #define WGL_NO_TEXTURE_ARB 0x2077 | |
377 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078 | |
378 #define WGL_TEXTURE_1D_ARB 0x2079 | |
379 #define WGL_TEXTURE_2D_ARB 0x207A | |
380 #define WGL_MIPMAP_LEVEL_ARB 0x207B | |
381 #define WGL_CUBE_MAP_FACE_ARB 0x207C | |
382 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D | |
383 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E | |
384 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F | |
385 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080 | |
386 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081 | |
387 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082 | |
388 #define WGL_FRONT_LEFT_ARB 0x2083 | |
389 #define WGL_FRONT_RIGHT_ARB 0x2084 | |
390 #define WGL_BACK_LEFT_ARB 0x2085 | |
391 #define WGL_BACK_RIGHT_ARB 0x2086 | |
392 #define WGL_AUX0_ARB 0x2087 | |
393 #define WGL_AUX1_ARB 0x2088 | |
394 #define WGL_AUX2_ARB 0x2089 | |
395 #define WGL_AUX3_ARB 0x208A | |
396 #define WGL_AUX4_ARB 0x208B | |
397 #define WGL_AUX5_ARB 0x208C | |
398 #define WGL_AUX6_ARB 0x208D | |
399 #define WGL_AUX7_ARB 0x208E | |
400 #define WGL_AUX8_ARB 0x208F | |
401 #define WGL_AUX9_ARB 0x2090 | |
402 | |
403 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBu
ffer); | |
404 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int
iBuffer); | |
405 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, con
st int* piAttribList); | |
406 | |
407 #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB) | |
408 #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB) | |
409 #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB) | |
410 | |
411 #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture) | |
412 | |
413 #endif /* WGL_ARB_render_texture */ | |
414 | |
415 /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */ | |
416 | |
417 #ifndef WGL_ATI_pixel_format_float | |
418 #define WGL_ATI_pixel_format_float 1 | |
419 | |
420 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0 | |
421 #define GL_RGBA_FLOAT_MODE_ATI 0x8820 | |
422 #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835 | |
423 | |
424 #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_floa
t) | |
425 | |
426 #endif /* WGL_ATI_pixel_format_float */ | |
427 | |
428 /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */ | |
429 | |
430 #ifndef WGL_ATI_render_texture_rectangle | |
431 #define WGL_ATI_render_texture_rectangle 1 | |
432 | |
433 #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5 | |
434 | |
435 #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_text
ure_rectangle) | |
436 | |
437 #endif /* WGL_ATI_render_texture_rectangle */ | |
438 | |
439 /* -------------------------- WGL_EXT_depth_float -------------------------- */ | |
440 | |
441 #ifndef WGL_EXT_depth_float | |
442 #define WGL_EXT_depth_float 1 | |
443 | |
444 #define WGL_DEPTH_FLOAT_EXT 0x2040 | |
445 | |
446 #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float) | |
447 | |
448 #endif /* WGL_EXT_depth_float */ | |
449 | |
450 /* ---------------------- WGL_EXT_display_color_table ---------------------- */ | |
451 | |
452 #ifndef WGL_EXT_display_color_table | |
453 #define WGL_EXT_display_color_table 1 | |
454 | |
455 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id); | |
456 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id); | |
457 typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id); | |
458 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table
, GLuint length); | |
459 | |
460 #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEX
T) | |
461 #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTab
leEXT) | |
462 #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorT
ableEXT) | |
463 #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEX
T) | |
464 | |
465 #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_ta
ble) | |
466 | |
467 #endif /* WGL_EXT_display_color_table */ | |
468 | |
469 /* ----------------------- WGL_EXT_extensions_string ----------------------- */ | |
470 | |
471 #ifndef WGL_EXT_extensions_string | |
472 #define WGL_EXT_extensions_string 1 | |
473 | |
474 typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void); | |
475 | |
476 #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT) | |
477 | |
478 #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string) | |
479 | |
480 #endif /* WGL_EXT_extensions_string */ | |
481 | |
482 /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */ | |
483 | |
484 #ifndef WGL_EXT_framebuffer_sRGB | |
485 #define WGL_EXT_framebuffer_sRGB 1 | |
486 | |
487 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9 | |
488 | |
489 #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB) | |
490 | |
491 #endif /* WGL_EXT_framebuffer_sRGB */ | |
492 | |
493 /* ----------------------- WGL_EXT_make_current_read ----------------------- */ | |
494 | |
495 #ifndef WGL_EXT_make_current_read | |
496 #define WGL_EXT_make_current_read 1 | |
497 | |
498 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043 | |
499 | |
500 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID); | |
501 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadD
C, HGLRC hglrc); | |
502 | |
503 #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT) | |
504 #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT) | |
505 | |
506 #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read) | |
507 | |
508 #endif /* WGL_EXT_make_current_read */ | |
509 | |
510 /* -------------------------- WGL_EXT_multisample -------------------------- */ | |
511 | |
512 #ifndef WGL_EXT_multisample | |
513 #define WGL_EXT_multisample 1 | |
514 | |
515 #define WGL_SAMPLE_BUFFERS_EXT 0x2041 | |
516 #define WGL_SAMPLES_EXT 0x2042 | |
517 | |
518 #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample) | |
519 | |
520 #endif /* WGL_EXT_multisample */ | |
521 | |
522 /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */ | |
523 | |
524 #ifndef WGL_EXT_pbuffer | |
525 #define WGL_EXT_pbuffer 1 | |
526 | |
527 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D | |
528 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E | |
529 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F | |
530 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030 | |
531 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031 | |
532 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032 | |
533 #define WGL_PBUFFER_LARGEST_EXT 0x2033 | |
534 #define WGL_PBUFFER_WIDTH_EXT 0x2034 | |
535 #define WGL_PBUFFER_HEIGHT_EXT 0x2035 | |
536 | |
537 DECLARE_HANDLE(HPBUFFEREXT); | |
538 | |
539 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFo
rmat, int iWidth, int iHeight, const int* piAttribList); | |
540 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer); | |
541 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer); | |
542 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAt
tribute, int* piValue); | |
543 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC
hDC); | |
544 | |
545 #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT) | |
546 #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT) | |
547 #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT) | |
548 #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT) | |
549 #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT) | |
550 | |
551 #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer) | |
552 | |
553 #endif /* WGL_EXT_pbuffer */ | |
554 | |
555 /* -------------------------- WGL_EXT_pixel_format ------------------------- */ | |
556 | |
557 #ifndef WGL_EXT_pixel_format | |
558 #define WGL_EXT_pixel_format 1 | |
559 | |
560 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000 | |
561 #define WGL_DRAW_TO_WINDOW_EXT 0x2001 | |
562 #define WGL_DRAW_TO_BITMAP_EXT 0x2002 | |
563 #define WGL_ACCELERATION_EXT 0x2003 | |
564 #define WGL_NEED_PALETTE_EXT 0x2004 | |
565 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005 | |
566 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006 | |
567 #define WGL_SWAP_METHOD_EXT 0x2007 | |
568 #define WGL_NUMBER_OVERLAYS_EXT 0x2008 | |
569 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009 | |
570 #define WGL_TRANSPARENT_EXT 0x200A | |
571 #define WGL_TRANSPARENT_VALUE_EXT 0x200B | |
572 #define WGL_SHARE_DEPTH_EXT 0x200C | |
573 #define WGL_SHARE_STENCIL_EXT 0x200D | |
574 #define WGL_SHARE_ACCUM_EXT 0x200E | |
575 #define WGL_SUPPORT_GDI_EXT 0x200F | |
576 #define WGL_SUPPORT_OPENGL_EXT 0x2010 | |
577 #define WGL_DOUBLE_BUFFER_EXT 0x2011 | |
578 #define WGL_STEREO_EXT 0x2012 | |
579 #define WGL_PIXEL_TYPE_EXT 0x2013 | |
580 #define WGL_COLOR_BITS_EXT 0x2014 | |
581 #define WGL_RED_BITS_EXT 0x2015 | |
582 #define WGL_RED_SHIFT_EXT 0x2016 | |
583 #define WGL_GREEN_BITS_EXT 0x2017 | |
584 #define WGL_GREEN_SHIFT_EXT 0x2018 | |
585 #define WGL_BLUE_BITS_EXT 0x2019 | |
586 #define WGL_BLUE_SHIFT_EXT 0x201A | |
587 #define WGL_ALPHA_BITS_EXT 0x201B | |
588 #define WGL_ALPHA_SHIFT_EXT 0x201C | |
589 #define WGL_ACCUM_BITS_EXT 0x201D | |
590 #define WGL_ACCUM_RED_BITS_EXT 0x201E | |
591 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F | |
592 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020 | |
593 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021 | |
594 #define WGL_DEPTH_BITS_EXT 0x2022 | |
595 #define WGL_STENCIL_BITS_EXT 0x2023 | |
596 #define WGL_AUX_BUFFERS_EXT 0x2024 | |
597 #define WGL_NO_ACCELERATION_EXT 0x2025 | |
598 #define WGL_GENERIC_ACCELERATION_EXT 0x2026 | |
599 #define WGL_FULL_ACCELERATION_EXT 0x2027 | |
600 #define WGL_SWAP_EXCHANGE_EXT 0x2028 | |
601 #define WGL_SWAP_COPY_EXT 0x2029 | |
602 #define WGL_SWAP_UNDEFINED_EXT 0x202A | |
603 #define WGL_TYPE_RGBA_EXT 0x202B | |
604 #define WGL_TYPE_COLORINDEX_EXT 0x202C | |
605 | |
606 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAt
tribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *n
NumFormats); | |
607 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixel
Format, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues); | |
608 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixel
Format, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues); | |
609 | |
610 #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT) | |
611 #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfv
EXT) | |
612 #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribiv
EXT) | |
613 | |
614 #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format) | |
615 | |
616 #endif /* WGL_EXT_pixel_format */ | |
617 | |
618 /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */ | |
619 | |
620 #ifndef WGL_EXT_pixel_format_packed_float | |
621 #define WGL_EXT_pixel_format_packed_float 1 | |
622 | |
623 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8 | |
624 | |
625 #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_form
at_packed_float) | |
626 | |
627 #endif /* WGL_EXT_pixel_format_packed_float */ | |
628 | |
629 /* -------------------------- WGL_EXT_swap_control ------------------------- */ | |
630 | |
631 #ifndef WGL_EXT_swap_control | |
632 #define WGL_EXT_swap_control 1 | |
633 | |
634 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void); | |
635 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval); | |
636 | |
637 #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT) | |
638 #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT) | |
639 | |
640 #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control) | |
641 | |
642 #endif /* WGL_EXT_swap_control */ | |
643 | |
644 /* --------------------- WGL_I3D_digital_video_control --------------------- */ | |
645 | |
646 #ifndef WGL_I3D_digital_video_control | |
647 #define WGL_I3D_digital_video_control 1 | |
648 | |
649 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050 | |
650 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051 | |
651 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052 | |
652 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053 | |
653 | |
654 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAt
tribute, int* piValue); | |
655 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAt
tribute, const int* piValue); | |
656 | |
657 #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoPara
metersI3D) | |
658 #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoPara
metersI3D) | |
659 | |
660 #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_
control) | |
661 | |
662 #endif /* WGL_I3D_digital_video_control */ | |
663 | |
664 /* ----------------------------- WGL_I3D_gamma ----------------------------- */ | |
665 | |
666 #ifndef WGL_I3D_gamma | |
667 #define WGL_I3D_gamma 1 | |
668 | |
669 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E | |
670 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F | |
671 | |
672 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHOR
T* puRed, USHORT *puGreen, USHORT *puBlue); | |
673 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttr
ibute, int* piValue); | |
674 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const
USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue); | |
675 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttr
ibute, const int* piValue); | |
676 | |
677 #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D) | |
678 #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParamete
rsI3D) | |
679 #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D) | |
680 #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParamete
rsI3D) | |
681 | |
682 #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma) | |
683 | |
684 #endif /* WGL_I3D_gamma */ | |
685 | |
686 /* ---------------------------- WGL_I3D_genlock ---------------------------- */ | |
687 | |
688 #ifndef WGL_I3D_genlock | |
689 #define WGL_I3D_genlock 1 | |
690 | |
691 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044 | |
692 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045 | |
693 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046 | |
694 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047 | |
695 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048 | |
696 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049 | |
697 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A | |
698 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B | |
699 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C | |
700 | |
701 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC); | |
702 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC); | |
703 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate); | |
704 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay); | |
705 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge); | |
706 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource); | |
707 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate)
; | |
708 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDela
y); | |
709 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge)
; | |
710 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource); | |
711 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag); | |
712 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT*
uMaxLineDelay, UINT *uMaxPixelDelay); | |
713 | |
714 #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D) | |
715 #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D) | |
716 #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D) | |
717 #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D) | |
718 #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D) | |
719 #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D) | |
720 #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D) | |
721 #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3
D) | |
722 #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D) | |
723 #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D) | |
724 #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D) | |
725 #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSou
rceDelayI3D) | |
726 | |
727 #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock) | |
728 | |
729 #endif /* WGL_I3D_genlock */ | |
730 | |
731 /* -------------------------- WGL_I3D_image_buffer ------------------------- */ | |
732 | |
733 #ifndef WGL_I3D_image_buffer | |
734 #define WGL_I3D_image_buffer 1 | |
735 | |
736 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001 | |
737 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002 | |
738 | |
739 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE
* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count); | |
740 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize,
UINT uFlags); | |
741 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddres
s); | |
742 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID*
pAddress, UINT count); | |
743 | |
744 #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBuff
erEventsI3D) | |
745 #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D) | |
746 #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D) | |
747 #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEv
entsI3D) | |
748 | |
749 #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer) | |
750 | |
751 #endif /* WGL_I3D_image_buffer */ | |
752 | |
753 /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */ | |
754 | |
755 #ifndef WGL_I3D_swap_frame_lock | |
756 #define WGL_I3D_swap_frame_lock 1 | |
757 | |
758 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID); | |
759 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID); | |
760 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag); | |
761 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag); | |
762 | |
763 #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D) | |
764 #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D) | |
765 #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D) | |
766 #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D) | |
767 | |
768 #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock) | |
769 | |
770 #endif /* WGL_I3D_swap_frame_lock */ | |
771 | |
772 /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */ | |
773 | |
774 #ifndef WGL_I3D_swap_frame_usage | |
775 #define WGL_I3D_swap_frame_usage 1 | |
776 | |
777 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void); | |
778 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void); | |
779 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage); | |
780 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWO
RD *pMissedFrames, float *pLastMissedUsage); | |
781 | |
782 #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D) | |
783 #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D) | |
784 #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D) | |
785 #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D) | |
786 | |
787 #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage) | |
788 | |
789 #endif /* WGL_I3D_swap_frame_usage */ | |
790 | |
791 /* -------------------------- WGL_NV_float_buffer -------------------------- */ | |
792 | |
793 #ifndef WGL_NV_float_buffer | |
794 #define WGL_NV_float_buffer 1 | |
795 | |
796 #define WGL_FLOAT_COMPONENTS_NV 0x20B0 | |
797 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1 | |
798 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2 | |
799 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3 | |
800 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4 | |
801 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5 | |
802 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6 | |
803 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7 | |
804 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8 | |
805 | |
806 #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer) | |
807 | |
808 #endif /* WGL_NV_float_buffer */ | |
809 | |
810 /* -------------------------- WGL_NV_gpu_affinity -------------------------- */ | |
811 | |
812 #ifndef WGL_NV_gpu_affinity | |
813 #define WGL_NV_gpu_affinity 1 | |
814 | |
815 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 | |
816 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 | |
817 | |
818 DECLARE_HANDLE(HGPUNV); | |
819 typedef struct _GPU_DEVICE { | |
820 DWORD cb; | |
821 CHAR DeviceName[32]; | |
822 CHAR DeviceString[128]; | |
823 DWORD Flags; | |
824 RECT rcVirtualScreen; | |
825 } GPU_DEVICE, *PGPU_DEVICE; | |
826 | |
827 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList); | |
828 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc); | |
829 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceInd
ex, PGPU_DEVICE lpGpuDevice); | |
830 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UIN
T iGpuIndex, HGPUNV *hGpu); | |
831 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu); | |
832 | |
833 #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV) | |
834 #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV) | |
835 #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV) | |
836 #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCN
V) | |
837 #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV) | |
838 | |
839 #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity) | |
840 | |
841 #endif /* WGL_NV_gpu_affinity */ | |
842 | |
843 /* -------------------------- WGL_NV_present_video ------------------------- */ | |
844 | |
845 #ifndef WGL_NV_present_video | |
846 #define WGL_NV_present_video 1 | |
847 | |
848 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0 | |
849 | |
850 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV); | |
851 | |
852 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVide
oSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList); | |
853 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTD
EVICENV* phDeviceList); | |
854 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* pi
Value); | |
855 | |
856 #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV) | |
857 #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV) | |
858 #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV) | |
859 | |
860 #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video) | |
861 | |
862 #endif /* WGL_NV_present_video */ | |
863 | |
864 /* ---------------------- WGL_NV_render_depth_texture ---------------------- */ | |
865 | |
866 #ifndef WGL_NV_render_depth_texture | |
867 #define WGL_NV_render_depth_texture 1 | |
868 | |
869 #define WGL_NO_TEXTURE_ARB 0x2077 | |
870 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3 | |
871 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4 | |
872 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5 | |
873 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6 | |
874 #define WGL_DEPTH_COMPONENT_NV 0x20A7 | |
875 | |
876 #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_text
ure) | |
877 | |
878 #endif /* WGL_NV_render_depth_texture */ | |
879 | |
880 /* -------------------- WGL_NV_render_texture_rectangle -------------------- */ | |
881 | |
882 #ifndef WGL_NV_render_texture_rectangle | |
883 #define WGL_NV_render_texture_rectangle 1 | |
884 | |
885 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0 | |
886 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1 | |
887 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2 | |
888 | |
889 #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_textur
e_rectangle) | |
890 | |
891 #endif /* WGL_NV_render_texture_rectangle */ | |
892 | |
893 /* --------------------------- WGL_NV_swap_group --------------------------- */ | |
894 | |
895 #ifndef WGL_NV_swap_group | |
896 #define WGL_NV_swap_group 1 | |
897 | |
898 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrie
r); | |
899 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group); | |
900 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count); | |
901 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGrou
ps, GLuint *maxBarriers); | |
902 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group); | |
903 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC); | |
904 | |
905 #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV) | |
906 #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV) | |
907 #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV) | |
908 #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV) | |
909 #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV) | |
910 #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV) | |
911 | |
912 #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group) | |
913 | |
914 #endif /* WGL_NV_swap_group */ | |
915 | |
916 /* ----------------------- WGL_NV_vertex_array_range ----------------------- */ | |
917 | |
918 #ifndef WGL_NV_vertex_array_range | |
919 #define WGL_NV_vertex_array_range 1 | |
920 | |
921 typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat read
Frequency, GLfloat writeFrequency, GLfloat priority); | |
922 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer); | |
923 | |
924 #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV) | |
925 #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV) | |
926 | |
927 #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range) | |
928 | |
929 #endif /* WGL_NV_vertex_array_range */ | |
930 | |
931 /* -------------------------- WGL_NV_video_output -------------------------- */ | |
932 | |
933 #ifndef WGL_NV_video_output | |
934 #define WGL_NV_video_output 1 | |
935 | |
936 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0 | |
937 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1 | |
938 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2 | |
939 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3 | |
940 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4 | |
941 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5 | |
942 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6 | |
943 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7 | |
944 #define WGL_VIDEO_OUT_FRAME 0x20C8 | |
945 #define WGL_VIDEO_OUT_FIELD_1 0x20C9 | |
946 #define WGL_VIDEO_OUT_FIELD_2 0x20CA | |
947 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB | |
948 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC | |
949 | |
950 DECLARE_HANDLE(HPVIDEODEV); | |
951 | |
952 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPB
UFFERARB hPbuffer, int iVideoBuffer); | |
953 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPV
IDEODEV* hVideoDevice); | |
954 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsi
gned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo); | |
955 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice)
; | |
956 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int
iVideoBuffer); | |
957 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, in
t iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock); | |
958 | |
959 #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV) | |
960 #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV) | |
961 #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV) | |
962 #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV) | |
963 #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV) | |
964 #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV) | |
965 | |
966 #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output) | |
967 | |
968 #endif /* WGL_NV_video_output */ | |
969 | |
970 /* -------------------------- WGL_OML_sync_control ------------------------- */ | |
971 | |
972 #ifndef WGL_OML_sync_control | |
973 #define WGL_OML_sync_control 1 | |
974 | |
975 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT3
2 *denominator); | |
976 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *
msc, INT64 *sbc); | |
977 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc,
INT64 divisor, INT64 remainder); | |
978 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes
, INT64 target_msc, INT64 divisor, INT64 remainder); | |
979 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT6
4 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc); | |
980 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT6
4* ust, INT64 *msc, INT64 *sbc); | |
981 | |
982 #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML) | |
983 #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML) | |
984 #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML) | |
985 #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML) | |
986 #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML) | |
987 #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML) | |
988 | |
989 #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control) | |
990 | |
991 #endif /* WGL_OML_sync_control */ | |
992 | |
993 /* ------------------------------------------------------------------------- */ | |
994 | |
995 #ifdef GLEW_MX | |
996 #define WGLEW_EXPORT | |
997 #else | |
998 #define WGLEW_EXPORT GLEWAPI | |
999 #endif /* GLEW_MX */ | |
1000 | |
1001 #ifdef GLEW_MX | |
1002 struct WGLEWContextStruct | |
1003 { | |
1004 #endif /* GLEW_MX */ | |
1005 | |
1006 WGLEW_EXPORT PFNWGLCOPYCONTEXTPROC __wglewCopyContext; | |
1007 WGLEW_EXPORT PFNWGLCREATECONTEXTPROC __wglewCreateContext; | |
1008 WGLEW_EXPORT PFNWGLCREATELAYERCONTEXTPROC __wglewCreateLayerContext; | |
1009 WGLEW_EXPORT PFNWGLDELETECONTEXTPROC __wglewDeleteContext; | |
1010 WGLEW_EXPORT PFNWGLGETCURRENTCONTEXTPROC __wglewGetCurrentContext; | |
1011 WGLEW_EXPORT PFNWGLGETCURRENTDCPROC __wglewGetCurrentDC; | |
1012 WGLEW_EXPORT PFNWGLGETPROCADDRESSPROC __wglewGetProcAddress; | |
1013 WGLEW_EXPORT PFNWGLMAKECURRENTPROC __wglewMakeCurrent; | |
1014 WGLEW_EXPORT PFNWGLSHARELISTSPROC __wglewShareLists; | |
1015 WGLEW_EXPORT PFNSWAPBUFFERSPROC __wglewSwapBuffers; | |
1016 | |
1017 WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL; | |
1018 | |
1019 WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB; | |
1020 WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB; | |
1021 WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB; | |
1022 WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB; | |
1023 | |
1024 WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB; | |
1025 | |
1026 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB; | |
1027 | |
1028 WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB; | |
1029 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB; | |
1030 | |
1031 WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB; | |
1032 WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB; | |
1033 WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB; | |
1034 WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB; | |
1035 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB; | |
1036 | |
1037 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB; | |
1038 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvAR
B; | |
1039 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivAR
B; | |
1040 | |
1041 WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB; | |
1042 WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB; | |
1043 WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB; | |
1044 | |
1045 WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT; | |
1046 WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTable
EXT; | |
1047 WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTab
leEXT; | |
1048 WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT; | |
1049 | |
1050 WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT; | |
1051 | |
1052 WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT; | |
1053 WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT; | |
1054 | |
1055 WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT; | |
1056 WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT; | |
1057 WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT; | |
1058 WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT; | |
1059 WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT; | |
1060 | |
1061 WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT; | |
1062 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEX
T; | |
1063 WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEX
T; | |
1064 | |
1065 WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT; | |
1066 WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT; | |
1067 | |
1068 WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParame
tersI3D; | |
1069 WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParame
tersI3D; | |
1070 | |
1071 WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D; | |
1072 WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParameters
I3D; | |
1073 WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D; | |
1074 WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParameters
I3D; | |
1075 | |
1076 WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D; | |
1077 WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D; | |
1078 WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D; | |
1079 WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D; | |
1080 WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D; | |
1081 WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D; | |
1082 WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D; | |
1083 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D; | |
1084 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D; | |
1085 WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D; | |
1086 WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D; | |
1087 WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourc
eDelayI3D; | |
1088 | |
1089 WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBuffer
EventsI3D; | |
1090 WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D; | |
1091 WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D; | |
1092 WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEven
tsI3D; | |
1093 | |
1094 WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D; | |
1095 WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D; | |
1096 WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D; | |
1097 WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D; | |
1098 | |
1099 WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D; | |
1100 WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D; | |
1101 WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D; | |
1102 WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D; | |
1103 | |
1104 WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV; | |
1105 WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV; | |
1106 WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV; | |
1107 WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV; | |
1108 WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV; | |
1109 | |
1110 WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV; | |
1111 WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV; | |
1112 WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV; | |
1113 | |
1114 WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV; | |
1115 WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV; | |
1116 WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV; | |
1117 WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV; | |
1118 WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV; | |
1119 WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV; | |
1120 | |
1121 WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV; | |
1122 WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV; | |
1123 | |
1124 WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV; | |
1125 WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV; | |
1126 WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV; | |
1127 WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV; | |
1128 WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV; | |
1129 WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV; | |
1130 | |
1131 WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML; | |
1132 WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML; | |
1133 WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML; | |
1134 WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML; | |
1135 WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML; | |
1136 WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML; | |
1137 WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample; | |
1138 WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control; | |
1139 WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region; | |
1140 WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context; | |
1141 WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string; | |
1142 WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB; | |
1143 WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read; | |
1144 WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample; | |
1145 WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer; | |
1146 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format; | |
1147 WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float; | |
1148 WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture; | |
1149 WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float; | |
1150 WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle; | |
1151 WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float; | |
1152 WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table; | |
1153 WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string; | |
1154 WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB; | |
1155 WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read; | |
1156 WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample; | |
1157 WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer; | |
1158 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format; | |
1159 WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float; | |
1160 WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control; | |
1161 WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control; | |
1162 WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma; | |
1163 WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock; | |
1164 WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer; | |
1165 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock; | |
1166 WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage; | |
1167 WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer; | |
1168 WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity; | |
1169 WGLEW_EXPORT GLboolean __WGLEW_NV_present_video; | |
1170 WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture; | |
1171 WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle; | |
1172 WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group; | |
1173 WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range; | |
1174 WGLEW_EXPORT GLboolean __WGLEW_NV_video_output; | |
1175 WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control; | |
1176 | |
1177 #ifdef GLEW_MX | |
1178 }; /* WGLEWContextStruct */ | |
1179 #endif /* GLEW_MX */ | |
1180 | |
1181 /* ------------------------------------------------------------------------- */ | |
1182 | |
1183 #ifdef GLEW_MX | |
1184 | |
1185 typedef struct WGLEWContextStruct WGLEWContext; | |
1186 GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx); | |
1187 GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name); | |
1188 | |
1189 #define wglewInit() wglewContextInit(wglewGetContext()) | |
1190 #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x) | |
1191 | |
1192 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x)) | |
1193 #define WGLEW_GET_FUN(x) wglewGetContext()->x | |
1194 | |
1195 #else /* GLEW_MX */ | |
1196 | |
1197 #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x) | |
1198 #define WGLEW_GET_FUN(x) x | |
1199 | |
1200 GLEWAPI GLboolean wglewInit(); | |
1201 GLEWAPI GLboolean wglewIsSupported (const char* name); | |
1202 | |
1203 #endif /* GLEW_MX */ | |
1204 | |
1205 GLEWAPI GLboolean wglewGetExtension (const char* name); | |
1206 | |
1207 #ifdef __cplusplus | |
1208 } | |
1209 #endif | |
1210 | |
1211 #undef GLEWAPI | |
1212 | |
1213 #endif /* __wglew_h__ */ | |
OLD | NEW |