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