1 /*
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * This code is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.  Oracle designates this
7  * particular file as subject to the "Classpath" exception as provided
8  * by Oracle in the LICENSE file that accompanied this code.
9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  * or visit www.oracle.com if you need additional information or have any
22  * questions.
23  */
24 
25 #ifndef __wgl_wglext_h_
26 #define __wgl_wglext_h_ 1
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /*
33 ** This file is available under and governed by the GNU General Public
34 ** License version 2 only, as published by the Free Software Foundation.
35 ** However, the following notice accompanied the original version of this
36 ** file:
37 **
38 ** Copyright (c) 2013-2018 The Khronos Group Inc.
39 **
40 ** Permission is hereby granted, free of charge, to any person obtaining a
41 ** copy of this software and/or associated documentation files (the
42 ** "Materials"), to deal in the Materials without restriction, including
43 ** without limitation the rights to use, copy, modify, merge, publish,
44 ** distribute, sublicense, and/or sell copies of the Materials, and to
45 ** permit persons to whom the Materials are furnished to do so, subject to
46 ** the following conditions:
47 **
48 ** The above copyright notice and this permission notice shall be included
49 ** in all copies or substantial portions of the Materials.
50 **
51 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
52 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
53 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
54 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
55 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
56 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
57 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
58 */
59 /*
60 ** This header is generated from the Khronos OpenGL / OpenGL ES XML
61 ** API Registry. The current version of the Registry, generator scripts
62 ** used to make the header, and the header can be found at
63 **   https://github.com/KhronosGroup/OpenGL-Registry
64 */
65 
66 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
67 #define WIN32_LEAN_AND_MEAN 1
68 #include <windows.h>
69 #endif
70 
71 #define WGL_WGLEXT_VERSION 20190728
72 
73 /* Generated C header for:
74  * API: wgl
75  * Versions considered: .*
76  * Versions emitted: _nomatch_^
77  * Default extensions included: wgl
78  * Additional extensions included: _nomatch_^
79  * Extensions removed: _nomatch_^
80  */
81 
82 #ifndef WGL_ARB_buffer_region
83 #define WGL_ARB_buffer_region 1
84 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB    0x00000001
85 #define WGL_BACK_COLOR_BUFFER_BIT_ARB     0x00000002
86 #define WGL_DEPTH_BUFFER_BIT_ARB          0x00000004
87 #define WGL_STENCIL_BUFFER_BIT_ARB        0x00000008
88 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
89 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
90 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
91 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
92 #ifdef WGL_WGLEXT_PROTOTYPES
93 HANDLE WINAPI wglCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType);
94 VOID WINAPI wglDeleteBufferRegionARB (HANDLE hRegion);
95 BOOL WINAPI wglSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height);
96 BOOL WINAPI wglRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
97 #endif
98 #endif /* WGL_ARB_buffer_region */
99 
100 #ifndef WGL_ARB_context_flush_control
101 #define WGL_ARB_context_flush_control 1
102 #define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB  0x2097
103 #define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
104 #define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
105 #endif /* WGL_ARB_context_flush_control */
106 
107 #ifndef WGL_ARB_create_context
108 #define WGL_ARB_create_context 1
109 #define WGL_CONTEXT_DEBUG_BIT_ARB         0x00000001
110 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
111 #define WGL_CONTEXT_MAJOR_VERSION_ARB     0x2091
112 #define WGL_CONTEXT_MINOR_VERSION_ARB     0x2092
113 #define WGL_CONTEXT_LAYER_PLANE_ARB       0x2093
114 #define WGL_CONTEXT_FLAGS_ARB             0x2094
115 #define ERROR_INVALID_VERSION_ARB         0x2095
116 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
117 #ifdef WGL_WGLEXT_PROTOTYPES
118 HGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList);
119 #endif
120 #endif /* WGL_ARB_create_context */
121 
122 #ifndef WGL_ARB_create_context_no_error
123 #define WGL_ARB_create_context_no_error 1
124 #define WGL_CONTEXT_OPENGL_NO_ERROR_ARB   0x31B3
125 #endif /* WGL_ARB_create_context_no_error */
126 
127 #ifndef WGL_ARB_create_context_profile
128 #define WGL_ARB_create_context_profile 1
129 #define WGL_CONTEXT_PROFILE_MASK_ARB      0x9126
130 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB  0x00000001
131 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
132 #define ERROR_INVALID_PROFILE_ARB         0x2096
133 #endif /* WGL_ARB_create_context_profile */
134 
135 #ifndef WGL_ARB_create_context_robustness
136 #define WGL_ARB_create_context_robustness 1
137 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
138 #define WGL_LOSE_CONTEXT_ON_RESET_ARB     0x8252
139 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
140 #define WGL_NO_RESET_NOTIFICATION_ARB     0x8261
141 #endif /* WGL_ARB_create_context_robustness */
142 
143 #ifndef WGL_ARB_extensions_string
144 #define WGL_ARB_extensions_string 1
145 typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
146 #ifdef WGL_WGLEXT_PROTOTYPES
147 const char *WINAPI wglGetExtensionsStringARB (HDC hdc);
148 #endif
149 #endif /* WGL_ARB_extensions_string */
150 
151 #ifndef WGL_ARB_framebuffer_sRGB
152 #define WGL_ARB_framebuffer_sRGB 1
153 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB  0x20A9
154 #endif /* WGL_ARB_framebuffer_sRGB */
155 
156 #ifndef WGL_ARB_make_current_read
157 #define WGL_ARB_make_current_read 1
158 #define ERROR_INVALID_PIXEL_TYPE_ARB      0x2043
159 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
160 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
161 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
162 #ifdef WGL_WGLEXT_PROTOTYPES
163 BOOL WINAPI wglMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
164 HDC WINAPI wglGetCurrentReadDCARB (void);
165 #endif
166 #endif /* WGL_ARB_make_current_read */
167 
168 #ifndef WGL_ARB_multisample
169 #define WGL_ARB_multisample 1
170 #define WGL_SAMPLE_BUFFERS_ARB            0x2041
171 #define WGL_SAMPLES_ARB                   0x2042
172 #endif /* WGL_ARB_multisample */
173 
174 #ifndef WGL_ARB_pbuffer
175 #define WGL_ARB_pbuffer 1
176 DECLARE_HANDLE(HPBUFFERARB);
177 #define WGL_DRAW_TO_PBUFFER_ARB           0x202D
178 #define WGL_MAX_PBUFFER_PIXELS_ARB        0x202E
179 #define WGL_MAX_PBUFFER_WIDTH_ARB         0x202F
180 #define WGL_MAX_PBUFFER_HEIGHT_ARB        0x2030
181 #define WGL_PBUFFER_LARGEST_ARB           0x2033
182 #define WGL_PBUFFER_WIDTH_ARB             0x2034
183 #define WGL_PBUFFER_HEIGHT_ARB            0x2035
184 #define WGL_PBUFFER_LOST_ARB              0x2036
185 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
186 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
187 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
188 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
189 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
190 #ifdef WGL_WGLEXT_PROTOTYPES
191 HPBUFFERARB WINAPI wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
192 HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB hPbuffer);
193 int WINAPI wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC);
194 BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB hPbuffer);
195 BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
196 #endif
197 #endif /* WGL_ARB_pbuffer */
198 
199 #ifndef WGL_ARB_pixel_format
200 #define WGL_ARB_pixel_format 1
201 #define WGL_NUMBER_PIXEL_FORMATS_ARB      0x2000
202 #define WGL_DRAW_TO_WINDOW_ARB            0x2001
203 #define WGL_DRAW_TO_BITMAP_ARB            0x2002
204 #define WGL_ACCELERATION_ARB              0x2003
205 #define WGL_NEED_PALETTE_ARB              0x2004
206 #define WGL_NEED_SYSTEM_PALETTE_ARB       0x2005
207 #define WGL_SWAP_LAYER_BUFFERS_ARB        0x2006
208 #define WGL_SWAP_METHOD_ARB               0x2007
209 #define WGL_NUMBER_OVERLAYS_ARB           0x2008
210 #define WGL_NUMBER_UNDERLAYS_ARB          0x2009
211 #define WGL_TRANSPARENT_ARB               0x200A
212 #define WGL_TRANSPARENT_RED_VALUE_ARB     0x2037
213 #define WGL_TRANSPARENT_GREEN_VALUE_ARB   0x2038
214 #define WGL_TRANSPARENT_BLUE_VALUE_ARB    0x2039
215 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB   0x203A
216 #define WGL_TRANSPARENT_INDEX_VALUE_ARB   0x203B
217 #define WGL_SHARE_DEPTH_ARB               0x200C
218 #define WGL_SHARE_STENCIL_ARB             0x200D
219 #define WGL_SHARE_ACCUM_ARB               0x200E
220 #define WGL_SUPPORT_GDI_ARB               0x200F
221 #define WGL_SUPPORT_OPENGL_ARB            0x2010
222 #define WGL_DOUBLE_BUFFER_ARB             0x2011
223 #define WGL_STEREO_ARB                    0x2012
224 #define WGL_PIXEL_TYPE_ARB                0x2013
225 #define WGL_COLOR_BITS_ARB                0x2014
226 #define WGL_RED_BITS_ARB                  0x2015
227 #define WGL_RED_SHIFT_ARB                 0x2016
228 #define WGL_GREEN_BITS_ARB                0x2017
229 #define WGL_GREEN_SHIFT_ARB               0x2018
230 #define WGL_BLUE_BITS_ARB                 0x2019
231 #define WGL_BLUE_SHIFT_ARB                0x201A
232 #define WGL_ALPHA_BITS_ARB                0x201B
233 #define WGL_ALPHA_SHIFT_ARB               0x201C
234 #define WGL_ACCUM_BITS_ARB                0x201D
235 #define WGL_ACCUM_RED_BITS_ARB            0x201E
236 #define WGL_ACCUM_GREEN_BITS_ARB          0x201F
237 #define WGL_ACCUM_BLUE_BITS_ARB           0x2020
238 #define WGL_ACCUM_ALPHA_BITS_ARB          0x2021
239 #define WGL_DEPTH_BITS_ARB                0x2022
240 #define WGL_STENCIL_BITS_ARB              0x2023
241 #define WGL_AUX_BUFFERS_ARB               0x2024
242 #define WGL_NO_ACCELERATION_ARB           0x2025
243 #define WGL_GENERIC_ACCELERATION_ARB      0x2026
244 #define WGL_FULL_ACCELERATION_ARB         0x2027
245 #define WGL_SWAP_EXCHANGE_ARB             0x2028
246 #define WGL_SWAP_COPY_ARB                 0x2029
247 #define WGL_SWAP_UNDEFINED_ARB            0x202A
248 #define WGL_TYPE_RGBA_ARB                 0x202B
249 #define WGL_TYPE_COLORINDEX_ARB           0x202C
250 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
251 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
252 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
253 #ifdef WGL_WGLEXT_PROTOTYPES
254 BOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
255 BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
256 BOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
257 #endif
258 #endif /* WGL_ARB_pixel_format */
259 
260 #ifndef WGL_ARB_pixel_format_float
261 #define WGL_ARB_pixel_format_float 1
262 #define WGL_TYPE_RGBA_FLOAT_ARB           0x21A0
263 #endif /* WGL_ARB_pixel_format_float */
264 
265 #ifndef WGL_ARB_render_texture
266 #define WGL_ARB_render_texture 1
267 #define WGL_BIND_TO_TEXTURE_RGB_ARB       0x2070
268 #define WGL_BIND_TO_TEXTURE_RGBA_ARB      0x2071
269 #define WGL_TEXTURE_FORMAT_ARB            0x2072
270 #define WGL_TEXTURE_TARGET_ARB            0x2073
271 #define WGL_MIPMAP_TEXTURE_ARB            0x2074
272 #define WGL_TEXTURE_RGB_ARB               0x2075
273 #define WGL_TEXTURE_RGBA_ARB              0x2076
274 #define WGL_NO_TEXTURE_ARB                0x2077
275 #define WGL_TEXTURE_CUBE_MAP_ARB          0x2078
276 #define WGL_TEXTURE_1D_ARB                0x2079
277 #define WGL_TEXTURE_2D_ARB                0x207A
278 #define WGL_MIPMAP_LEVEL_ARB              0x207B
279 #define WGL_CUBE_MAP_FACE_ARB             0x207C
280 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
281 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
282 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
283 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
284 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
285 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
286 #define WGL_FRONT_LEFT_ARB                0x2083
287 #define WGL_FRONT_RIGHT_ARB               0x2084
288 #define WGL_BACK_LEFT_ARB                 0x2085
289 #define WGL_BACK_RIGHT_ARB                0x2086
290 #define WGL_AUX0_ARB                      0x2087
291 #define WGL_AUX1_ARB                      0x2088
292 #define WGL_AUX2_ARB                      0x2089
293 #define WGL_AUX3_ARB                      0x208A
294 #define WGL_AUX4_ARB                      0x208B
295 #define WGL_AUX5_ARB                      0x208C
296 #define WGL_AUX6_ARB                      0x208D
297 #define WGL_AUX7_ARB                      0x208E
298 #define WGL_AUX8_ARB                      0x208F
299 #define WGL_AUX9_ARB                      0x2090
300 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
301 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
302 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
303 #ifdef WGL_WGLEXT_PROTOTYPES
304 BOOL WINAPI wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
305 BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
306 BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList);
307 #endif
308 #endif /* WGL_ARB_render_texture */
309 
310 #ifndef WGL_ARB_robustness_application_isolation
311 #define WGL_ARB_robustness_application_isolation 1
312 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
313 #endif /* WGL_ARB_robustness_application_isolation */
314 
315 #ifndef WGL_ARB_robustness_share_group_isolation
316 #define WGL_ARB_robustness_share_group_isolation 1
317 #endif /* WGL_ARB_robustness_share_group_isolation */
318 
319 #ifndef WGL_3DFX_multisample
320 #define WGL_3DFX_multisample 1
321 #define WGL_SAMPLE_BUFFERS_3DFX           0x2060
322 #define WGL_SAMPLES_3DFX                  0x2061
323 #endif /* WGL_3DFX_multisample */
324 
325 #ifndef WGL_3DL_stereo_control
326 #define WGL_3DL_stereo_control 1
327 #define WGL_STEREO_EMITTER_ENABLE_3DL     0x2055
328 #define WGL_STEREO_EMITTER_DISABLE_3DL    0x2056
329 #define WGL_STEREO_POLARITY_NORMAL_3DL    0x2057
330 #define WGL_STEREO_POLARITY_INVERT_3DL    0x2058
331 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
332 #ifdef WGL_WGLEXT_PROTOTYPES
333 BOOL WINAPI wglSetStereoEmitterState3DL (HDC hDC, UINT uState);
334 #endif
335 #endif /* WGL_3DL_stereo_control */
336 
337 #ifndef WGL_AMD_gpu_association
338 #define WGL_AMD_gpu_association 1
339 #define WGL_GPU_VENDOR_AMD                0x1F00
340 #define WGL_GPU_RENDERER_STRING_AMD       0x1F01
341 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
342 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD   0x21A2
343 #define WGL_GPU_RAM_AMD                   0x21A3
344 #define WGL_GPU_CLOCK_AMD                 0x21A4
345 #define WGL_GPU_NUM_PIPES_AMD             0x21A5
346 #define WGL_GPU_NUM_SIMD_AMD              0x21A6
347 #define WGL_GPU_NUM_RB_AMD                0x21A7
348 #define WGL_GPU_NUM_SPI_AMD               0x21A8
349 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids);
350 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void *data);
351 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
352 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
353 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList);
354 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
355 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
356 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
357 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);
358 #ifdef WGL_WGLEXT_PROTOTYPES
359 UINT WINAPI wglGetGPUIDsAMD (UINT maxCount, UINT *ids);
360 INT WINAPI wglGetGPUInfoAMD (UINT id, INT property, GLenum dataType, UINT size, void *data);
361 UINT WINAPI wglGetContextGPUIDAMD (HGLRC hglrc);
362 HGLRC WINAPI wglCreateAssociatedContextAMD (UINT id);
363 HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT id, HGLRC hShareContext, const int *attribList);
364 BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC hglrc);
365 BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC hglrc);
366 HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void);
367 VOID WINAPI wglBlitContextFramebufferAMD (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
368 #endif
369 #endif /* WGL_AMD_gpu_association */
370 
371 #ifndef WGL_ATI_pixel_format_float
372 #define WGL_ATI_pixel_format_float 1
373 #define WGL_TYPE_RGBA_FLOAT_ATI           0x21A0
374 #endif /* WGL_ATI_pixel_format_float */
375 
376 #ifndef WGL_ATI_render_texture_rectangle
377 #define WGL_ATI_render_texture_rectangle 1
378 #define WGL_TEXTURE_RECTANGLE_ATI         0x21A5
379 #endif /* WGL_ATI_render_texture_rectangle */
380 
381 #ifndef WGL_EXT_colorspace
382 #define WGL_EXT_colorspace 1
383 #define WGL_COLORSPACE_EXT                0x309D
384 #define WGL_COLORSPACE_SRGB_EXT           0x3089
385 #define WGL_COLORSPACE_LINEAR_EXT         0x308A
386 #endif /* WGL_EXT_colorspace */
387 
388 #ifndef WGL_EXT_create_context_es2_profile
389 #define WGL_EXT_create_context_es2_profile 1
390 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT   0x00000004
391 #endif /* WGL_EXT_create_context_es2_profile */
392 
393 #ifndef WGL_EXT_create_context_es_profile
394 #define WGL_EXT_create_context_es_profile 1
395 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT    0x00000004
396 #endif /* WGL_EXT_create_context_es_profile */
397 
398 #ifndef WGL_EXT_depth_float
399 #define WGL_EXT_depth_float 1
400 #define WGL_DEPTH_FLOAT_EXT               0x2040
401 #endif /* WGL_EXT_depth_float */
402 
403 #ifndef WGL_EXT_display_color_table
404 #define WGL_EXT_display_color_table 1
405 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
406 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
407 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
408 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
409 #ifdef WGL_WGLEXT_PROTOTYPES
410 GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort id);
411 GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *table, GLuint length);
412 GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort id);
413 VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort id);
414 #endif
415 #endif /* WGL_EXT_display_color_table */
416 
417 #ifndef WGL_EXT_extensions_string
418 #define WGL_EXT_extensions_string 1
419 typedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
420 #ifdef WGL_WGLEXT_PROTOTYPES
421 const char *WINAPI wglGetExtensionsStringEXT (void);
422 #endif
423 #endif /* WGL_EXT_extensions_string */
424 
425 #ifndef WGL_EXT_framebuffer_sRGB
426 #define WGL_EXT_framebuffer_sRGB 1
427 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT  0x20A9
428 #endif /* WGL_EXT_framebuffer_sRGB */
429 
430 #ifndef WGL_EXT_make_current_read
431 #define WGL_EXT_make_current_read 1
432 #define ERROR_INVALID_PIXEL_TYPE_EXT      0x2043
433 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
434 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
435 #ifdef WGL_WGLEXT_PROTOTYPES
436 BOOL WINAPI wglMakeContextCurrentEXT (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
437 HDC WINAPI wglGetCurrentReadDCEXT (void);
438 #endif
439 #endif /* WGL_EXT_make_current_read */
440 
441 #ifndef WGL_EXT_multisample
442 #define WGL_EXT_multisample 1
443 #define WGL_SAMPLE_BUFFERS_EXT            0x2041
444 #define WGL_SAMPLES_EXT                   0x2042
445 #endif /* WGL_EXT_multisample */
446 
447 #ifndef WGL_EXT_pbuffer
448 #define WGL_EXT_pbuffer 1
449 DECLARE_HANDLE(HPBUFFEREXT);
450 #define WGL_DRAW_TO_PBUFFER_EXT           0x202D
451 #define WGL_MAX_PBUFFER_PIXELS_EXT        0x202E
452 #define WGL_MAX_PBUFFER_WIDTH_EXT         0x202F
453 #define WGL_MAX_PBUFFER_HEIGHT_EXT        0x2030
454 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT     0x2031
455 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT    0x2032
456 #define WGL_PBUFFER_LARGEST_EXT           0x2033
457 #define WGL_PBUFFER_WIDTH_EXT             0x2034
458 #define WGL_PBUFFER_HEIGHT_EXT            0x2035
459 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
460 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
461 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
462 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
463 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
464 #ifdef WGL_WGLEXT_PROTOTYPES
465 HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
466 HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT hPbuffer);
467 int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT hPbuffer, HDC hDC);
468 BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT hPbuffer);
469 BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
470 #endif
471 #endif /* WGL_EXT_pbuffer */
472 
473 #ifndef WGL_EXT_pixel_format
474 #define WGL_EXT_pixel_format 1
475 #define WGL_NUMBER_PIXEL_FORMATS_EXT      0x2000
476 #define WGL_DRAW_TO_WINDOW_EXT            0x2001
477 #define WGL_DRAW_TO_BITMAP_EXT            0x2002
478 #define WGL_ACCELERATION_EXT              0x2003
479 #define WGL_NEED_PALETTE_EXT              0x2004
480 #define WGL_NEED_SYSTEM_PALETTE_EXT       0x2005
481 #define WGL_SWAP_LAYER_BUFFERS_EXT        0x2006
482 #define WGL_SWAP_METHOD_EXT               0x2007
483 #define WGL_NUMBER_OVERLAYS_EXT           0x2008
484 #define WGL_NUMBER_UNDERLAYS_EXT          0x2009
485 #define WGL_TRANSPARENT_EXT               0x200A
486 #define WGL_TRANSPARENT_VALUE_EXT         0x200B
487 #define WGL_SHARE_DEPTH_EXT               0x200C
488 #define WGL_SHARE_STENCIL_EXT             0x200D
489 #define WGL_SHARE_ACCUM_EXT               0x200E
490 #define WGL_SUPPORT_GDI_EXT               0x200F
491 #define WGL_SUPPORT_OPENGL_EXT            0x2010
492 #define WGL_DOUBLE_BUFFER_EXT             0x2011
493 #define WGL_STEREO_EXT                    0x2012
494 #define WGL_PIXEL_TYPE_EXT                0x2013
495 #define WGL_COLOR_BITS_EXT                0x2014
496 #define WGL_RED_BITS_EXT                  0x2015
497 #define WGL_RED_SHIFT_EXT                 0x2016
498 #define WGL_GREEN_BITS_EXT                0x2017
499 #define WGL_GREEN_SHIFT_EXT               0x2018
500 #define WGL_BLUE_BITS_EXT                 0x2019
501 #define WGL_BLUE_SHIFT_EXT                0x201A
502 #define WGL_ALPHA_BITS_EXT                0x201B
503 #define WGL_ALPHA_SHIFT_EXT               0x201C
504 #define WGL_ACCUM_BITS_EXT                0x201D
505 #define WGL_ACCUM_RED_BITS_EXT            0x201E
506 #define WGL_ACCUM_GREEN_BITS_EXT          0x201F
507 #define WGL_ACCUM_BLUE_BITS_EXT           0x2020
508 #define WGL_ACCUM_ALPHA_BITS_EXT          0x2021
509 #define WGL_DEPTH_BITS_EXT                0x2022
510 #define WGL_STENCIL_BITS_EXT              0x2023
511 #define WGL_AUX_BUFFERS_EXT               0x2024
512 #define WGL_NO_ACCELERATION_EXT           0x2025
513 #define WGL_GENERIC_ACCELERATION_EXT      0x2026
514 #define WGL_FULL_ACCELERATION_EXT         0x2027
515 #define WGL_SWAP_EXCHANGE_EXT             0x2028
516 #define WGL_SWAP_COPY_EXT                 0x2029
517 #define WGL_SWAP_UNDEFINED_EXT            0x202A
518 #define WGL_TYPE_RGBA_EXT                 0x202B
519 #define WGL_TYPE_COLORINDEX_EXT           0x202C
520 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
521 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
522 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
523 #ifdef WGL_WGLEXT_PROTOTYPES
524 BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
525 BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
526 BOOL WINAPI wglChoosePixelFormatEXT (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
527 #endif
528 #endif /* WGL_EXT_pixel_format */
529 
530 #ifndef WGL_EXT_pixel_format_packed_float
531 #define WGL_EXT_pixel_format_packed_float 1
532 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT  0x20A8
533 #endif /* WGL_EXT_pixel_format_packed_float */
534 
535 #ifndef WGL_EXT_swap_control
536 #define WGL_EXT_swap_control 1
537 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
538 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
539 #ifdef WGL_WGLEXT_PROTOTYPES
540 BOOL WINAPI wglSwapIntervalEXT (int interval);
541 int WINAPI wglGetSwapIntervalEXT (void);
542 #endif
543 #endif /* WGL_EXT_swap_control */
544 
545 #ifndef WGL_EXT_swap_control_tear
546 #define WGL_EXT_swap_control_tear 1
547 #endif /* WGL_EXT_swap_control_tear */
548 
549 #ifndef WGL_I3D_digital_video_control
550 #define WGL_I3D_digital_video_control 1
551 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
552 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
553 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
554 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
555 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
556 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
557 #ifdef WGL_WGLEXT_PROTOTYPES
558 BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC hDC, int iAttribute, int *piValue);
559 BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC hDC, int iAttribute, const int *piValue);
560 #endif
561 #endif /* WGL_I3D_digital_video_control */
562 
563 #ifndef WGL_I3D_gamma
564 #define WGL_I3D_gamma 1
565 #define WGL_GAMMA_TABLE_SIZE_I3D          0x204E
566 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D     0x204F
567 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
568 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
569 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
570 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
571 #ifdef WGL_WGLEXT_PROTOTYPES
572 BOOL WINAPI wglGetGammaTableParametersI3D (HDC hDC, int iAttribute, int *piValue);
573 BOOL WINAPI wglSetGammaTableParametersI3D (HDC hDC, int iAttribute, const int *piValue);
574 BOOL WINAPI wglGetGammaTableI3D (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
575 BOOL WINAPI wglSetGammaTableI3D (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
576 #endif
577 #endif /* WGL_I3D_gamma */
578 
579 #ifndef WGL_I3D_genlock
580 #define WGL_I3D_genlock 1
581 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D  0x2044
582 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
583 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
584 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
585 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
586 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
587 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
588 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
589 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D  0x204C
590 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
591 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
592 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
593 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
594 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
595 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
596 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
597 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
598 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
599 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
600 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
601 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
602 #ifdef WGL_WGLEXT_PROTOTYPES
603 BOOL WINAPI wglEnableGenlockI3D (HDC hDC);
604 BOOL WINAPI wglDisableGenlockI3D (HDC hDC);
605 BOOL WINAPI wglIsEnabledGenlockI3D (HDC hDC, BOOL *pFlag);
606 BOOL WINAPI wglGenlockSourceI3D (HDC hDC, UINT uSource);
607 BOOL WINAPI wglGetGenlockSourceI3D (HDC hDC, UINT *uSource);
608 BOOL WINAPI wglGenlockSourceEdgeI3D (HDC hDC, UINT uEdge);
609 BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC hDC, UINT *uEdge);
610 BOOL WINAPI wglGenlockSampleRateI3D (HDC hDC, UINT uRate);
611 BOOL WINAPI wglGetGenlockSampleRateI3D (HDC hDC, UINT *uRate);
612 BOOL WINAPI wglGenlockSourceDelayI3D (HDC hDC, UINT uDelay);
613 BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC hDC, UINT *uDelay);
614 BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
615 #endif
616 #endif /* WGL_I3D_genlock */
617 
618 #ifndef WGL_I3D_image_buffer
619 #define WGL_I3D_image_buffer 1
620 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D   0x00000001
621 #define WGL_IMAGE_BUFFER_LOCK_I3D         0x00000002
622 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
623 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
624 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
625 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
626 #ifdef WGL_WGLEXT_PROTOTYPES
627 LPVOID WINAPI wglCreateImageBufferI3D (HDC hDC, DWORD dwSize, UINT uFlags);
628 BOOL WINAPI wglDestroyImageBufferI3D (HDC hDC, LPVOID pAddress);
629 BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
630 BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC hDC, const LPVOID *pAddress, UINT count);
631 #endif
632 #endif /* WGL_I3D_image_buffer */
633 
634 #ifndef WGL_I3D_swap_frame_lock
635 #define WGL_I3D_swap_frame_lock 1
636 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
637 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
638 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
639 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
640 #ifdef WGL_WGLEXT_PROTOTYPES
641 BOOL WINAPI wglEnableFrameLockI3D (void);
642 BOOL WINAPI wglDisableFrameLockI3D (void);
643 BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *pFlag);
644 BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *pFlag);
645 #endif
646 #endif /* WGL_I3D_swap_frame_lock */
647 
648 #ifndef WGL_I3D_swap_frame_usage
649 #define WGL_I3D_swap_frame_usage 1
650 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
651 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
652 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
653 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
654 #ifdef WGL_WGLEXT_PROTOTYPES
655 BOOL WINAPI wglGetFrameUsageI3D (float *pUsage);
656 BOOL WINAPI wglBeginFrameTrackingI3D (void);
657 BOOL WINAPI wglEndFrameTrackingI3D (void);
658 BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
659 #endif
660 #endif /* WGL_I3D_swap_frame_usage */
661 
662 #ifndef WGL_NV_DX_interop
663 #define WGL_NV_DX_interop 1
664 #define WGL_ACCESS_READ_ONLY_NV           0x00000000
665 #define WGL_ACCESS_READ_WRITE_NV          0x00000001
666 #define WGL_ACCESS_WRITE_DISCARD_NV       0x00000002
667 typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void *dxObject, HANDLE shareHandle);
668 typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void *dxDevice);
669 typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
670 typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
671 typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
672 typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
673 typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects);
674 typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects);
675 #ifdef WGL_WGLEXT_PROTOTYPES
676 BOOL WINAPI wglDXSetResourceShareHandleNV (void *dxObject, HANDLE shareHandle);
677 HANDLE WINAPI wglDXOpenDeviceNV (void *dxDevice);
678 BOOL WINAPI wglDXCloseDeviceNV (HANDLE hDevice);
679 HANDLE WINAPI wglDXRegisterObjectNV (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
680 BOOL WINAPI wglDXUnregisterObjectNV (HANDLE hDevice, HANDLE hObject);
681 BOOL WINAPI wglDXObjectAccessNV (HANDLE hObject, GLenum access);
682 BOOL WINAPI wglDXLockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects);
683 BOOL WINAPI wglDXUnlockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects);
684 #endif
685 #endif /* WGL_NV_DX_interop */
686 
687 #ifndef WGL_NV_DX_interop2
688 #define WGL_NV_DX_interop2 1
689 #endif /* WGL_NV_DX_interop2 */
690 
691 #ifndef WGL_NV_copy_image
692 #define WGL_NV_copy_image 1
693 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);
694 #ifdef WGL_WGLEXT_PROTOTYPES
695 BOOL WINAPI wglCopyImageSubDataNV (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);
696 #endif
697 #endif /* WGL_NV_copy_image */
698 
699 #ifndef WGL_NV_delay_before_swap
700 #define WGL_NV_delay_before_swap 1
701 typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds);
702 #ifdef WGL_WGLEXT_PROTOTYPES
703 BOOL WINAPI wglDelayBeforeSwapNV (HDC hDC, GLfloat seconds);
704 #endif
705 #endif /* WGL_NV_delay_before_swap */
706 
707 #ifndef WGL_NV_float_buffer
708 #define WGL_NV_float_buffer 1
709 #define WGL_FLOAT_COMPONENTS_NV           0x20B0
710 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
711 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
712 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
713 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
714 #define WGL_TEXTURE_FLOAT_R_NV            0x20B5
715 #define WGL_TEXTURE_FLOAT_RG_NV           0x20B6
716 #define WGL_TEXTURE_FLOAT_RGB_NV          0x20B7
717 #define WGL_TEXTURE_FLOAT_RGBA_NV         0x20B8
718 #endif /* WGL_NV_float_buffer */
719 
720 #ifndef WGL_NV_gpu_affinity
721 #define WGL_NV_gpu_affinity 1
722 DECLARE_HANDLE(HGPUNV);
723 struct _GPU_DEVICE {
724     DWORD  cb;
725     CHAR   DeviceName[32];
726     CHAR   DeviceString[128];
727     DWORD  Flags;
728     RECT   rcVirtualScreen;
729 };
730 typedef struct _GPU_DEVICE *PGPU_DEVICE;
731 #define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
732 #define ERROR_MISSING_AFFINITY_MASK_NV    0x20D1
733 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
734 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
735 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
736 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
737 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
738 #ifdef WGL_WGLEXT_PROTOTYPES
739 BOOL WINAPI wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu);
740 BOOL WINAPI wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
741 HDC WINAPI wglCreateAffinityDCNV (const HGPUNV *phGpuList);
742 BOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
743 BOOL WINAPI wglDeleteDCNV (HDC hdc);
744 #endif
745 #endif /* WGL_NV_gpu_affinity */
746 
747 #ifndef WGL_NV_multigpu_context
748 #define WGL_NV_multigpu_context 1
749 #define WGL_CONTEXT_MULTIGPU_ATTRIB_NV    0x20AA
750 #define WGL_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB
751 #define WGL_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC
752 #define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD
753 #define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE
754 #endif /* WGL_NV_multigpu_context */
755 
756 #ifndef WGL_NV_multisample_coverage
757 #define WGL_NV_multisample_coverage 1
758 #define WGL_COVERAGE_SAMPLES_NV           0x2042
759 #define WGL_COLOR_SAMPLES_NV              0x20B9
760 #endif /* WGL_NV_multisample_coverage */
761 
762 #ifndef WGL_NV_present_video
763 #define WGL_NV_present_video 1
764 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
765 #define WGL_NUM_VIDEO_SLOTS_NV            0x20F0
766 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList);
767 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
768 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue);
769 #ifdef WGL_WGLEXT_PROTOTYPES
770 int WINAPI wglEnumerateVideoDevicesNV (HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList);
771 BOOL WINAPI wglBindVideoDeviceNV (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
772 BOOL WINAPI wglQueryCurrentContextNV (int iAttribute, int *piValue);
773 #endif
774 #endif /* WGL_NV_present_video */
775 
776 #ifndef WGL_NV_render_depth_texture
777 #define WGL_NV_render_depth_texture 1
778 #define WGL_BIND_TO_TEXTURE_DEPTH_NV      0x20A3
779 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
780 #define WGL_DEPTH_TEXTURE_FORMAT_NV       0x20A5
781 #define WGL_TEXTURE_DEPTH_COMPONENT_NV    0x20A6
782 #define WGL_DEPTH_COMPONENT_NV            0x20A7
783 #endif /* WGL_NV_render_depth_texture */
784 
785 #ifndef WGL_NV_render_texture_rectangle
786 #define WGL_NV_render_texture_rectangle 1
787 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
788 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
789 #define WGL_TEXTURE_RECTANGLE_NV          0x20A2
790 #endif /* WGL_NV_render_texture_rectangle */
791 
792 #ifndef WGL_NV_swap_group
793 #define WGL_NV_swap_group 1
794 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
795 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
796 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier);
797 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
798 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count);
799 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
800 #ifdef WGL_WGLEXT_PROTOTYPES
801 BOOL WINAPI wglJoinSwapGroupNV (HDC hDC, GLuint group);
802 BOOL WINAPI wglBindSwapBarrierNV (GLuint group, GLuint barrier);
803 BOOL WINAPI wglQuerySwapGroupNV (HDC hDC, GLuint *group, GLuint *barrier);
804 BOOL WINAPI wglQueryMaxSwapGroupsNV (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
805 BOOL WINAPI wglQueryFrameCountNV (HDC hDC, GLuint *count);
806 BOOL WINAPI wglResetFrameCountNV (HDC hDC);
807 #endif
808 #endif /* WGL_NV_swap_group */
809 
810 #ifndef WGL_NV_vertex_array_range
811 #define WGL_NV_vertex_array_range 1
812 typedef void *(WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
813 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
814 #ifdef WGL_WGLEXT_PROTOTYPES
815 void *WINAPI wglAllocateMemoryNV (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
816 void WINAPI wglFreeMemoryNV (void *pointer);
817 #endif
818 #endif /* WGL_NV_vertex_array_range */
819 
820 #ifndef WGL_NV_video_capture
821 #define WGL_NV_video_capture 1
822 DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
823 #define WGL_UNIQUE_ID_NV                  0x20CE
824 #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV    0x20CF
825 typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
826 typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
827 typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
828 typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
829 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
830 #ifdef WGL_WGLEXT_PROTOTYPES
831 BOOL WINAPI wglBindVideoCaptureDeviceNV (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
832 UINT WINAPI wglEnumerateVideoCaptureDevicesNV (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
833 BOOL WINAPI wglLockVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
834 BOOL WINAPI wglQueryVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
835 BOOL WINAPI wglReleaseVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
836 #endif
837 #endif /* WGL_NV_video_capture */
838 
839 #ifndef WGL_NV_video_output
840 #define WGL_NV_video_output 1
841 DECLARE_HANDLE(HPVIDEODEV);
842 #define WGL_BIND_TO_VIDEO_RGB_NV          0x20C0
843 #define WGL_BIND_TO_VIDEO_RGBA_NV         0x20C1
844 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
845 #define WGL_VIDEO_OUT_COLOR_NV            0x20C3
846 #define WGL_VIDEO_OUT_ALPHA_NV            0x20C4
847 #define WGL_VIDEO_OUT_DEPTH_NV            0x20C5
848 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV  0x20C6
849 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV  0x20C7
850 #define WGL_VIDEO_OUT_FRAME               0x20C8
851 #define WGL_VIDEO_OUT_FIELD_1             0x20C9
852 #define WGL_VIDEO_OUT_FIELD_2             0x20CA
853 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2  0x20CB
854 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1  0x20CC
855 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
856 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
857 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
858 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
859 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
860 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
861 #ifdef WGL_WGLEXT_PROTOTYPES
862 BOOL WINAPI wglGetVideoDeviceNV (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
863 BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice);
864 BOOL WINAPI wglBindVideoImageNV (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
865 BOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB hPbuffer, int iVideoBuffer);
866 BOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
867 BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
868 #endif
869 #endif /* WGL_NV_video_output */
870 
871 #ifndef WGL_OML_sync_control
872 #define WGL_OML_sync_control 1
873 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
874 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
875 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
876 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
877 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
878 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
879 #ifdef WGL_WGLEXT_PROTOTYPES
880 BOOL WINAPI wglGetSyncValuesOML (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
881 BOOL WINAPI wglGetMscRateOML (HDC hdc, INT32 *numerator, INT32 *denominator);
882 INT64 WINAPI wglSwapBuffersMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
883 INT64 WINAPI wglSwapLayerBuffersMscOML (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
884 BOOL WINAPI wglWaitForMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
885 BOOL WINAPI wglWaitForSbcOML (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
886 #endif
887 #endif /* WGL_OML_sync_control */
888 
889 #ifdef __cplusplus
890 }
891 #endif
892 
893 #endif
894