17ec681f3Smrg#ifndef __wgl_wglext_h_
27ec681f3Smrg#define __wgl_wglext_h_ 1
34a49301eSmrg
44a49301eSmrg#ifdef __cplusplus
54a49301eSmrgextern "C" {
64a49301eSmrg#endif
74a49301eSmrg
84a49301eSmrg/*
97ec681f3Smrg** Copyright (c) 2013-2018 The Khronos Group Inc.
10af69d88dSmrg**
114a49301eSmrg** Permission is hereby granted, free of charge, to any person obtaining a
124a49301eSmrg** copy of this software and/or associated documentation files (the
134a49301eSmrg** "Materials"), to deal in the Materials without restriction, including
144a49301eSmrg** without limitation the rights to use, copy, modify, merge, publish,
154a49301eSmrg** distribute, sublicense, and/or sell copies of the Materials, and to
164a49301eSmrg** permit persons to whom the Materials are furnished to do so, subject to
174a49301eSmrg** the following conditions:
18af69d88dSmrg**
194a49301eSmrg** The above copyright notice and this permission notice shall be included
204a49301eSmrg** in all copies or substantial portions of the Materials.
21af69d88dSmrg**
224a49301eSmrg** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
234a49301eSmrg** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
244a49301eSmrg** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
254a49301eSmrg** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
264a49301eSmrg** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
274a49301eSmrg** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
284a49301eSmrg** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
294a49301eSmrg*/
30af69d88dSmrg/*
31af69d88dSmrg** This header is generated from the Khronos OpenGL / OpenGL ES XML
32af69d88dSmrg** API Registry. The current version of the Registry, generator scripts
33af69d88dSmrg** used to make the header, and the header can be found at
3401e04c3fSmrg**   https://github.com/KhronosGroup/OpenGL-Registry
35af69d88dSmrg*/
364a49301eSmrg
374a49301eSmrg#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
384a49301eSmrg#define WIN32_LEAN_AND_MEAN 1
394a49301eSmrg#include <windows.h>
404a49301eSmrg#endif
414a49301eSmrg
427ec681f3Smrg#define WGL_WGLEXT_VERSION 20190728
434a49301eSmrg
44af69d88dSmrg/* Generated C header for:
45af69d88dSmrg * API: wgl
46af69d88dSmrg * Versions considered: .*
47af69d88dSmrg * Versions emitted: _nomatch_^
48af69d88dSmrg * Default extensions included: wgl
49af69d88dSmrg * Additional extensions included: _nomatch_^
50af69d88dSmrg * Extensions removed: _nomatch_^
51af69d88dSmrg */
524a49301eSmrg
534a49301eSmrg#ifndef WGL_ARB_buffer_region
54af69d88dSmrg#define WGL_ARB_buffer_region 1
55af69d88dSmrg#define WGL_FRONT_COLOR_BUFFER_BIT_ARB    0x00000001
56af69d88dSmrg#define WGL_BACK_COLOR_BUFFER_BIT_ARB     0x00000002
57af69d88dSmrg#define WGL_DEPTH_BUFFER_BIT_ARB          0x00000004
58af69d88dSmrg#define WGL_STENCIL_BUFFER_BIT_ARB        0x00000008
59af69d88dSmrgtypedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
60af69d88dSmrgtypedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
61af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
62af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
63af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
64af69d88dSmrgHANDLE WINAPI wglCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType);
65af69d88dSmrgVOID WINAPI wglDeleteBufferRegionARB (HANDLE hRegion);
66af69d88dSmrgBOOL WINAPI wglSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height);
67af69d88dSmrgBOOL WINAPI wglRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
684a49301eSmrg#endif
69af69d88dSmrg#endif /* WGL_ARB_buffer_region */
704a49301eSmrg
71af69d88dSmrg#ifndef WGL_ARB_context_flush_control
72af69d88dSmrg#define WGL_ARB_context_flush_control 1
73af69d88dSmrg#define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB  0x2097
74af69d88dSmrg#define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0
75af69d88dSmrg#define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
76af69d88dSmrg#endif /* WGL_ARB_context_flush_control */
773464ebd5Sriastradh
784a49301eSmrg#ifndef WGL_ARB_create_context
79af69d88dSmrg#define WGL_ARB_create_context 1
80af69d88dSmrg#define WGL_CONTEXT_DEBUG_BIT_ARB         0x00000001
814a49301eSmrg#define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
82af69d88dSmrg#define WGL_CONTEXT_MAJOR_VERSION_ARB     0x2091
83af69d88dSmrg#define WGL_CONTEXT_MINOR_VERSION_ARB     0x2092
84af69d88dSmrg#define WGL_CONTEXT_LAYER_PLANE_ARB       0x2093
85af69d88dSmrg#define WGL_CONTEXT_FLAGS_ARB             0x2094
86af69d88dSmrg#define ERROR_INVALID_VERSION_ARB         0x2095
87af69d88dSmrgtypedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
88af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
89af69d88dSmrgHGLRC WINAPI wglCreateContextAttribsARB (HDC hDC, HGLRC hShareContext, const int *attribList);
904a49301eSmrg#endif
91af69d88dSmrg#endif /* WGL_ARB_create_context */
924a49301eSmrg
9301e04c3fSmrg#ifndef WGL_ARB_create_context_no_error
9401e04c3fSmrg#define WGL_ARB_create_context_no_error 1
9501e04c3fSmrg#define WGL_CONTEXT_OPENGL_NO_ERROR_ARB   0x31B3
9601e04c3fSmrg#endif /* WGL_ARB_create_context_no_error */
9701e04c3fSmrg
984a49301eSmrg#ifndef WGL_ARB_create_context_profile
99af69d88dSmrg#define WGL_ARB_create_context_profile 1
100af69d88dSmrg#define WGL_CONTEXT_PROFILE_MASK_ARB      0x9126
101af69d88dSmrg#define WGL_CONTEXT_CORE_PROFILE_BIT_ARB  0x00000001
1024a49301eSmrg#define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
103af69d88dSmrg#define ERROR_INVALID_PROFILE_ARB         0x2096
104af69d88dSmrg#endif /* WGL_ARB_create_context_profile */
1054a49301eSmrg
1063464ebd5Sriastradh#ifndef WGL_ARB_create_context_robustness
107af69d88dSmrg#define WGL_ARB_create_context_robustness 1
1083464ebd5Sriastradh#define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
109af69d88dSmrg#define WGL_LOSE_CONTEXT_ON_RESET_ARB     0x8252
1103464ebd5Sriastradh#define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
111af69d88dSmrg#define WGL_NO_RESET_NOTIFICATION_ARB     0x8261
112af69d88dSmrg#endif /* WGL_ARB_create_context_robustness */
1134a49301eSmrg
1144a49301eSmrg#ifndef WGL_ARB_extensions_string
1154a49301eSmrg#define WGL_ARB_extensions_string 1
116af69d88dSmrgtypedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
1174a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
118af69d88dSmrgconst char *WINAPI wglGetExtensionsStringARB (HDC hdc);
1194a49301eSmrg#endif
120af69d88dSmrg#endif /* WGL_ARB_extensions_string */
1214a49301eSmrg
122af69d88dSmrg#ifndef WGL_ARB_framebuffer_sRGB
123af69d88dSmrg#define WGL_ARB_framebuffer_sRGB 1
124af69d88dSmrg#define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB  0x20A9
125af69d88dSmrg#endif /* WGL_ARB_framebuffer_sRGB */
1264a49301eSmrg
1274a49301eSmrg#ifndef WGL_ARB_make_current_read
1284a49301eSmrg#define WGL_ARB_make_current_read 1
129af69d88dSmrg#define ERROR_INVALID_PIXEL_TYPE_ARB      0x2043
130af69d88dSmrg#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
1314a49301eSmrgtypedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
1324a49301eSmrgtypedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
133af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
134af69d88dSmrgBOOL WINAPI wglMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
135af69d88dSmrgHDC WINAPI wglGetCurrentReadDCARB (void);
1364a49301eSmrg#endif
137af69d88dSmrg#endif /* WGL_ARB_make_current_read */
138af69d88dSmrg
139af69d88dSmrg#ifndef WGL_ARB_multisample
140af69d88dSmrg#define WGL_ARB_multisample 1
141af69d88dSmrg#define WGL_SAMPLE_BUFFERS_ARB            0x2041
142af69d88dSmrg#define WGL_SAMPLES_ARB                   0x2042
143af69d88dSmrg#endif /* WGL_ARB_multisample */
1444a49301eSmrg
1454a49301eSmrg#ifndef WGL_ARB_pbuffer
1464a49301eSmrg#define WGL_ARB_pbuffer 1
147af69d88dSmrgDECLARE_HANDLE(HPBUFFERARB);
148af69d88dSmrg#define WGL_DRAW_TO_PBUFFER_ARB           0x202D
149af69d88dSmrg#define WGL_MAX_PBUFFER_PIXELS_ARB        0x202E
150af69d88dSmrg#define WGL_MAX_PBUFFER_WIDTH_ARB         0x202F
151af69d88dSmrg#define WGL_MAX_PBUFFER_HEIGHT_ARB        0x2030
152af69d88dSmrg#define WGL_PBUFFER_LARGEST_ARB           0x2033
153af69d88dSmrg#define WGL_PBUFFER_WIDTH_ARB             0x2034
154af69d88dSmrg#define WGL_PBUFFER_HEIGHT_ARB            0x2035
155af69d88dSmrg#define WGL_PBUFFER_LOST_ARB              0x2036
1564a49301eSmrgtypedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
1574a49301eSmrgtypedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
1584a49301eSmrgtypedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
1594a49301eSmrgtypedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
1604a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
161af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
162af69d88dSmrgHPBUFFERARB WINAPI wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
163af69d88dSmrgHDC WINAPI wglGetPbufferDCARB (HPBUFFERARB hPbuffer);
164af69d88dSmrgint WINAPI wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC);
165af69d88dSmrgBOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB hPbuffer);
166af69d88dSmrgBOOL WINAPI wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
1674a49301eSmrg#endif
168af69d88dSmrg#endif /* WGL_ARB_pbuffer */
169af69d88dSmrg
170af69d88dSmrg#ifndef WGL_ARB_pixel_format
171af69d88dSmrg#define WGL_ARB_pixel_format 1
172af69d88dSmrg#define WGL_NUMBER_PIXEL_FORMATS_ARB      0x2000
173af69d88dSmrg#define WGL_DRAW_TO_WINDOW_ARB            0x2001
174af69d88dSmrg#define WGL_DRAW_TO_BITMAP_ARB            0x2002
175af69d88dSmrg#define WGL_ACCELERATION_ARB              0x2003
176af69d88dSmrg#define WGL_NEED_PALETTE_ARB              0x2004
177af69d88dSmrg#define WGL_NEED_SYSTEM_PALETTE_ARB       0x2005
178af69d88dSmrg#define WGL_SWAP_LAYER_BUFFERS_ARB        0x2006
179af69d88dSmrg#define WGL_SWAP_METHOD_ARB               0x2007
180af69d88dSmrg#define WGL_NUMBER_OVERLAYS_ARB           0x2008
181af69d88dSmrg#define WGL_NUMBER_UNDERLAYS_ARB          0x2009
182af69d88dSmrg#define WGL_TRANSPARENT_ARB               0x200A
183af69d88dSmrg#define WGL_TRANSPARENT_RED_VALUE_ARB     0x2037
184af69d88dSmrg#define WGL_TRANSPARENT_GREEN_VALUE_ARB   0x2038
185af69d88dSmrg#define WGL_TRANSPARENT_BLUE_VALUE_ARB    0x2039
186af69d88dSmrg#define WGL_TRANSPARENT_ALPHA_VALUE_ARB   0x203A
187af69d88dSmrg#define WGL_TRANSPARENT_INDEX_VALUE_ARB   0x203B
188af69d88dSmrg#define WGL_SHARE_DEPTH_ARB               0x200C
189af69d88dSmrg#define WGL_SHARE_STENCIL_ARB             0x200D
190af69d88dSmrg#define WGL_SHARE_ACCUM_ARB               0x200E
191af69d88dSmrg#define WGL_SUPPORT_GDI_ARB               0x200F
192af69d88dSmrg#define WGL_SUPPORT_OPENGL_ARB            0x2010
193af69d88dSmrg#define WGL_DOUBLE_BUFFER_ARB             0x2011
194af69d88dSmrg#define WGL_STEREO_ARB                    0x2012
195af69d88dSmrg#define WGL_PIXEL_TYPE_ARB                0x2013
196af69d88dSmrg#define WGL_COLOR_BITS_ARB                0x2014
197af69d88dSmrg#define WGL_RED_BITS_ARB                  0x2015
198af69d88dSmrg#define WGL_RED_SHIFT_ARB                 0x2016
199af69d88dSmrg#define WGL_GREEN_BITS_ARB                0x2017
200af69d88dSmrg#define WGL_GREEN_SHIFT_ARB               0x2018
201af69d88dSmrg#define WGL_BLUE_BITS_ARB                 0x2019
202af69d88dSmrg#define WGL_BLUE_SHIFT_ARB                0x201A
203af69d88dSmrg#define WGL_ALPHA_BITS_ARB                0x201B
204af69d88dSmrg#define WGL_ALPHA_SHIFT_ARB               0x201C
205af69d88dSmrg#define WGL_ACCUM_BITS_ARB                0x201D
206af69d88dSmrg#define WGL_ACCUM_RED_BITS_ARB            0x201E
207af69d88dSmrg#define WGL_ACCUM_GREEN_BITS_ARB          0x201F
208af69d88dSmrg#define WGL_ACCUM_BLUE_BITS_ARB           0x2020
209af69d88dSmrg#define WGL_ACCUM_ALPHA_BITS_ARB          0x2021
210af69d88dSmrg#define WGL_DEPTH_BITS_ARB                0x2022
211af69d88dSmrg#define WGL_STENCIL_BITS_ARB              0x2023
212af69d88dSmrg#define WGL_AUX_BUFFERS_ARB               0x2024
213af69d88dSmrg#define WGL_NO_ACCELERATION_ARB           0x2025
214af69d88dSmrg#define WGL_GENERIC_ACCELERATION_ARB      0x2026
215af69d88dSmrg#define WGL_FULL_ACCELERATION_ARB         0x2027
216af69d88dSmrg#define WGL_SWAP_EXCHANGE_ARB             0x2028
217af69d88dSmrg#define WGL_SWAP_COPY_ARB                 0x2029
218af69d88dSmrg#define WGL_SWAP_UNDEFINED_ARB            0x202A
219af69d88dSmrg#define WGL_TYPE_RGBA_ARB                 0x202B
220af69d88dSmrg#define WGL_TYPE_COLORINDEX_ARB           0x202C
221af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
222af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
223af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
224af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
225af69d88dSmrgBOOL WINAPI wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
226af69d88dSmrgBOOL WINAPI wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
227af69d88dSmrgBOOL WINAPI wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
228af69d88dSmrg#endif
229af69d88dSmrg#endif /* WGL_ARB_pixel_format */
230af69d88dSmrg
231af69d88dSmrg#ifndef WGL_ARB_pixel_format_float
232af69d88dSmrg#define WGL_ARB_pixel_format_float 1
233af69d88dSmrg#define WGL_TYPE_RGBA_FLOAT_ARB           0x21A0
234af69d88dSmrg#endif /* WGL_ARB_pixel_format_float */
2354a49301eSmrg
2364a49301eSmrg#ifndef WGL_ARB_render_texture
2374a49301eSmrg#define WGL_ARB_render_texture 1
238af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RGB_ARB       0x2070
239af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RGBA_ARB      0x2071
240af69d88dSmrg#define WGL_TEXTURE_FORMAT_ARB            0x2072
241af69d88dSmrg#define WGL_TEXTURE_TARGET_ARB            0x2073
242af69d88dSmrg#define WGL_MIPMAP_TEXTURE_ARB            0x2074
243af69d88dSmrg#define WGL_TEXTURE_RGB_ARB               0x2075
244af69d88dSmrg#define WGL_TEXTURE_RGBA_ARB              0x2076
245af69d88dSmrg#define WGL_NO_TEXTURE_ARB                0x2077
246af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_ARB          0x2078
247af69d88dSmrg#define WGL_TEXTURE_1D_ARB                0x2079
248af69d88dSmrg#define WGL_TEXTURE_2D_ARB                0x207A
249af69d88dSmrg#define WGL_MIPMAP_LEVEL_ARB              0x207B
250af69d88dSmrg#define WGL_CUBE_MAP_FACE_ARB             0x207C
251af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
252af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
253af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
254af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
255af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
256af69d88dSmrg#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
257af69d88dSmrg#define WGL_FRONT_LEFT_ARB                0x2083
258af69d88dSmrg#define WGL_FRONT_RIGHT_ARB               0x2084
259af69d88dSmrg#define WGL_BACK_LEFT_ARB                 0x2085
260af69d88dSmrg#define WGL_BACK_RIGHT_ARB                0x2086
261af69d88dSmrg#define WGL_AUX0_ARB                      0x2087
262af69d88dSmrg#define WGL_AUX1_ARB                      0x2088
263af69d88dSmrg#define WGL_AUX2_ARB                      0x2089
264af69d88dSmrg#define WGL_AUX3_ARB                      0x208A
265af69d88dSmrg#define WGL_AUX4_ARB                      0x208B
266af69d88dSmrg#define WGL_AUX5_ARB                      0x208C
267af69d88dSmrg#define WGL_AUX6_ARB                      0x208D
268af69d88dSmrg#define WGL_AUX7_ARB                      0x208E
269af69d88dSmrg#define WGL_AUX8_ARB                      0x208F
270af69d88dSmrg#define WGL_AUX9_ARB                      0x2090
2714a49301eSmrgtypedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
2724a49301eSmrgtypedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
2734a49301eSmrgtypedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
274af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
275af69d88dSmrgBOOL WINAPI wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
276af69d88dSmrgBOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer);
277af69d88dSmrgBOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList);
2784a49301eSmrg#endif
279af69d88dSmrg#endif /* WGL_ARB_render_texture */
2804a49301eSmrg
281af69d88dSmrg#ifndef WGL_ARB_robustness_application_isolation
282af69d88dSmrg#define WGL_ARB_robustness_application_isolation 1
283af69d88dSmrg#define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
284af69d88dSmrg#endif /* WGL_ARB_robustness_application_isolation */
2854a49301eSmrg
286af69d88dSmrg#ifndef WGL_ARB_robustness_share_group_isolation
287af69d88dSmrg#define WGL_ARB_robustness_share_group_isolation 1
288af69d88dSmrg#endif /* WGL_ARB_robustness_share_group_isolation */
2893464ebd5Sriastradh
290af69d88dSmrg#ifndef WGL_3DFX_multisample
291af69d88dSmrg#define WGL_3DFX_multisample 1
292af69d88dSmrg#define WGL_SAMPLE_BUFFERS_3DFX           0x2060
293af69d88dSmrg#define WGL_SAMPLES_3DFX                  0x2061
294af69d88dSmrg#endif /* WGL_3DFX_multisample */
295af69d88dSmrg
296af69d88dSmrg#ifndef WGL_3DL_stereo_control
297af69d88dSmrg#define WGL_3DL_stereo_control 1
298af69d88dSmrg#define WGL_STEREO_EMITTER_ENABLE_3DL     0x2055
299af69d88dSmrg#define WGL_STEREO_EMITTER_DISABLE_3DL    0x2056
300af69d88dSmrg#define WGL_STEREO_POLARITY_NORMAL_3DL    0x2057
301af69d88dSmrg#define WGL_STEREO_POLARITY_INVERT_3DL    0x2058
302af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
3034a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
304af69d88dSmrgBOOL WINAPI wglSetStereoEmitterState3DL (HDC hDC, UINT uState);
3054a49301eSmrg#endif
306af69d88dSmrg#endif /* WGL_3DL_stereo_control */
3074a49301eSmrg
308af69d88dSmrg#ifndef WGL_AMD_gpu_association
309af69d88dSmrg#define WGL_AMD_gpu_association 1
310af69d88dSmrg#define WGL_GPU_VENDOR_AMD                0x1F00
311af69d88dSmrg#define WGL_GPU_RENDERER_STRING_AMD       0x1F01
312af69d88dSmrg#define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
313af69d88dSmrg#define WGL_GPU_FASTEST_TARGET_GPUS_AMD   0x21A2
314af69d88dSmrg#define WGL_GPU_RAM_AMD                   0x21A3
315af69d88dSmrg#define WGL_GPU_CLOCK_AMD                 0x21A4
316af69d88dSmrg#define WGL_GPU_NUM_PIPES_AMD             0x21A5
317af69d88dSmrg#define WGL_GPU_NUM_SIMD_AMD              0x21A6
318af69d88dSmrg#define WGL_GPU_NUM_RB_AMD                0x21A7
319af69d88dSmrg#define WGL_GPU_NUM_SPI_AMD               0x21A8
320af69d88dSmrgtypedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids);
3217ec681f3Smrgtypedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void *data);
322af69d88dSmrgtypedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
323af69d88dSmrgtypedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
324af69d88dSmrgtypedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList);
325af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
326af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
327af69d88dSmrgtypedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
328af69d88dSmrgtypedef 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);
329af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
330af69d88dSmrgUINT WINAPI wglGetGPUIDsAMD (UINT maxCount, UINT *ids);
3317ec681f3SmrgINT WINAPI wglGetGPUInfoAMD (UINT id, INT property, GLenum dataType, UINT size, void *data);
332af69d88dSmrgUINT WINAPI wglGetContextGPUIDAMD (HGLRC hglrc);
333af69d88dSmrgHGLRC WINAPI wglCreateAssociatedContextAMD (UINT id);
334af69d88dSmrgHGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT id, HGLRC hShareContext, const int *attribList);
335af69d88dSmrgBOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC hglrc);
336af69d88dSmrgBOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC hglrc);
337af69d88dSmrgHGLRC WINAPI wglGetCurrentAssociatedContextAMD (void);
338af69d88dSmrgVOID WINAPI wglBlitContextFramebufferAMD (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
339af69d88dSmrg#endif
340af69d88dSmrg#endif /* WGL_AMD_gpu_association */
3414a49301eSmrg
342af69d88dSmrg#ifndef WGL_ATI_pixel_format_float
343af69d88dSmrg#define WGL_ATI_pixel_format_float 1
344af69d88dSmrg#define WGL_TYPE_RGBA_FLOAT_ATI           0x21A0
345af69d88dSmrg#endif /* WGL_ATI_pixel_format_float */
346af69d88dSmrg
3477ec681f3Smrg#ifndef WGL_ATI_render_texture_rectangle
3487ec681f3Smrg#define WGL_ATI_render_texture_rectangle 1
3497ec681f3Smrg#define WGL_TEXTURE_RECTANGLE_ATI         0x21A5
3507ec681f3Smrg#endif /* WGL_ATI_render_texture_rectangle */
3517ec681f3Smrg
35201e04c3fSmrg#ifndef WGL_EXT_colorspace
35301e04c3fSmrg#define WGL_EXT_colorspace 1
3547ec681f3Smrg#define WGL_COLORSPACE_EXT                0x309D
35501e04c3fSmrg#define WGL_COLORSPACE_SRGB_EXT           0x3089
35601e04c3fSmrg#define WGL_COLORSPACE_LINEAR_EXT         0x308A
35701e04c3fSmrg#endif /* WGL_EXT_colorspace */
35801e04c3fSmrg
359af69d88dSmrg#ifndef WGL_EXT_create_context_es2_profile
360af69d88dSmrg#define WGL_EXT_create_context_es2_profile 1
361af69d88dSmrg#define WGL_CONTEXT_ES2_PROFILE_BIT_EXT   0x00000004
362af69d88dSmrg#endif /* WGL_EXT_create_context_es2_profile */
363af69d88dSmrg
364af69d88dSmrg#ifndef WGL_EXT_create_context_es_profile
365af69d88dSmrg#define WGL_EXT_create_context_es_profile 1
366af69d88dSmrg#define WGL_CONTEXT_ES_PROFILE_BIT_EXT    0x00000004
367af69d88dSmrg#endif /* WGL_EXT_create_context_es_profile */
368af69d88dSmrg
369af69d88dSmrg#ifndef WGL_EXT_depth_float
370af69d88dSmrg#define WGL_EXT_depth_float 1
371af69d88dSmrg#define WGL_DEPTH_FLOAT_EXT               0x2040
372af69d88dSmrg#endif /* WGL_EXT_depth_float */
3733464ebd5Sriastradh
3744a49301eSmrg#ifndef WGL_EXT_display_color_table
3754a49301eSmrg#define WGL_EXT_display_color_table 1
3764a49301eSmrgtypedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
3774a49301eSmrgtypedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
3784a49301eSmrgtypedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
3794a49301eSmrgtypedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
380af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
381af69d88dSmrgGLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort id);
382af69d88dSmrgGLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *table, GLuint length);
383af69d88dSmrgGLboolean WINAPI wglBindDisplayColorTableEXT (GLushort id);
384af69d88dSmrgVOID WINAPI wglDestroyDisplayColorTableEXT (GLushort id);
3854a49301eSmrg#endif
386af69d88dSmrg#endif /* WGL_EXT_display_color_table */
3874a49301eSmrg
3884a49301eSmrg#ifndef WGL_EXT_extensions_string
3894a49301eSmrg#define WGL_EXT_extensions_string 1
390af69d88dSmrgtypedef const char *(WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
3914a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
392af69d88dSmrgconst char *WINAPI wglGetExtensionsStringEXT (void);
3934a49301eSmrg#endif
394af69d88dSmrg#endif /* WGL_EXT_extensions_string */
395af69d88dSmrg
396af69d88dSmrg#ifndef WGL_EXT_framebuffer_sRGB
397af69d88dSmrg#define WGL_EXT_framebuffer_sRGB 1
398af69d88dSmrg#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT  0x20A9
399af69d88dSmrg#endif /* WGL_EXT_framebuffer_sRGB */
4004a49301eSmrg
4014a49301eSmrg#ifndef WGL_EXT_make_current_read
4024a49301eSmrg#define WGL_EXT_make_current_read 1
403af69d88dSmrg#define ERROR_INVALID_PIXEL_TYPE_EXT      0x2043
4044a49301eSmrgtypedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
4054a49301eSmrgtypedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
406af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
407af69d88dSmrgBOOL WINAPI wglMakeContextCurrentEXT (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
408af69d88dSmrgHDC WINAPI wglGetCurrentReadDCEXT (void);
4094a49301eSmrg#endif
410af69d88dSmrg#endif /* WGL_EXT_make_current_read */
411af69d88dSmrg
412af69d88dSmrg#ifndef WGL_EXT_multisample
413af69d88dSmrg#define WGL_EXT_multisample 1
414af69d88dSmrg#define WGL_SAMPLE_BUFFERS_EXT            0x2041
415af69d88dSmrg#define WGL_SAMPLES_EXT                   0x2042
416af69d88dSmrg#endif /* WGL_EXT_multisample */
4174a49301eSmrg
4184a49301eSmrg#ifndef WGL_EXT_pbuffer
4194a49301eSmrg#define WGL_EXT_pbuffer 1
420af69d88dSmrgDECLARE_HANDLE(HPBUFFEREXT);
421af69d88dSmrg#define WGL_DRAW_TO_PBUFFER_EXT           0x202D
422af69d88dSmrg#define WGL_MAX_PBUFFER_PIXELS_EXT        0x202E
423af69d88dSmrg#define WGL_MAX_PBUFFER_WIDTH_EXT         0x202F
424af69d88dSmrg#define WGL_MAX_PBUFFER_HEIGHT_EXT        0x2030
425af69d88dSmrg#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT     0x2031
426af69d88dSmrg#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT    0x2032
427af69d88dSmrg#define WGL_PBUFFER_LARGEST_EXT           0x2033
428af69d88dSmrg#define WGL_PBUFFER_WIDTH_EXT             0x2034
429af69d88dSmrg#define WGL_PBUFFER_HEIGHT_EXT            0x2035
4304a49301eSmrgtypedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
4314a49301eSmrgtypedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
4324a49301eSmrgtypedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
4334a49301eSmrgtypedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
4344a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
435af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
436af69d88dSmrgHPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
437af69d88dSmrgHDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT hPbuffer);
438af69d88dSmrgint WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT hPbuffer, HDC hDC);
439af69d88dSmrgBOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT hPbuffer);
440af69d88dSmrgBOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
4414a49301eSmrg#endif
442af69d88dSmrg#endif /* WGL_EXT_pbuffer */
4434a49301eSmrg
4444a49301eSmrg#ifndef WGL_EXT_pixel_format
4454a49301eSmrg#define WGL_EXT_pixel_format 1
446af69d88dSmrg#define WGL_NUMBER_PIXEL_FORMATS_EXT      0x2000
447af69d88dSmrg#define WGL_DRAW_TO_WINDOW_EXT            0x2001
448af69d88dSmrg#define WGL_DRAW_TO_BITMAP_EXT            0x2002
449af69d88dSmrg#define WGL_ACCELERATION_EXT              0x2003
450af69d88dSmrg#define WGL_NEED_PALETTE_EXT              0x2004
451af69d88dSmrg#define WGL_NEED_SYSTEM_PALETTE_EXT       0x2005
452af69d88dSmrg#define WGL_SWAP_LAYER_BUFFERS_EXT        0x2006
453af69d88dSmrg#define WGL_SWAP_METHOD_EXT               0x2007
454af69d88dSmrg#define WGL_NUMBER_OVERLAYS_EXT           0x2008
455af69d88dSmrg#define WGL_NUMBER_UNDERLAYS_EXT          0x2009
456af69d88dSmrg#define WGL_TRANSPARENT_EXT               0x200A
457af69d88dSmrg#define WGL_TRANSPARENT_VALUE_EXT         0x200B
458af69d88dSmrg#define WGL_SHARE_DEPTH_EXT               0x200C
459af69d88dSmrg#define WGL_SHARE_STENCIL_EXT             0x200D
460af69d88dSmrg#define WGL_SHARE_ACCUM_EXT               0x200E
461af69d88dSmrg#define WGL_SUPPORT_GDI_EXT               0x200F
462af69d88dSmrg#define WGL_SUPPORT_OPENGL_EXT            0x2010
463af69d88dSmrg#define WGL_DOUBLE_BUFFER_EXT             0x2011
464af69d88dSmrg#define WGL_STEREO_EXT                    0x2012
465af69d88dSmrg#define WGL_PIXEL_TYPE_EXT                0x2013
466af69d88dSmrg#define WGL_COLOR_BITS_EXT                0x2014
467af69d88dSmrg#define WGL_RED_BITS_EXT                  0x2015
468af69d88dSmrg#define WGL_RED_SHIFT_EXT                 0x2016
469af69d88dSmrg#define WGL_GREEN_BITS_EXT                0x2017
470af69d88dSmrg#define WGL_GREEN_SHIFT_EXT               0x2018
471af69d88dSmrg#define WGL_BLUE_BITS_EXT                 0x2019
472af69d88dSmrg#define WGL_BLUE_SHIFT_EXT                0x201A
473af69d88dSmrg#define WGL_ALPHA_BITS_EXT                0x201B
474af69d88dSmrg#define WGL_ALPHA_SHIFT_EXT               0x201C
475af69d88dSmrg#define WGL_ACCUM_BITS_EXT                0x201D
476af69d88dSmrg#define WGL_ACCUM_RED_BITS_EXT            0x201E
477af69d88dSmrg#define WGL_ACCUM_GREEN_BITS_EXT          0x201F
478af69d88dSmrg#define WGL_ACCUM_BLUE_BITS_EXT           0x2020
479af69d88dSmrg#define WGL_ACCUM_ALPHA_BITS_EXT          0x2021
480af69d88dSmrg#define WGL_DEPTH_BITS_EXT                0x2022
481af69d88dSmrg#define WGL_STENCIL_BITS_EXT              0x2023
482af69d88dSmrg#define WGL_AUX_BUFFERS_EXT               0x2024
483af69d88dSmrg#define WGL_NO_ACCELERATION_EXT           0x2025
484af69d88dSmrg#define WGL_GENERIC_ACCELERATION_EXT      0x2026
485af69d88dSmrg#define WGL_FULL_ACCELERATION_EXT         0x2027
486af69d88dSmrg#define WGL_SWAP_EXCHANGE_EXT             0x2028
487af69d88dSmrg#define WGL_SWAP_COPY_EXT                 0x2029
488af69d88dSmrg#define WGL_SWAP_UNDEFINED_EXT            0x202A
489af69d88dSmrg#define WGL_TYPE_RGBA_EXT                 0x202B
490af69d88dSmrg#define WGL_TYPE_COLORINDEX_EXT           0x202C
4914a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
4924a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
4934a49301eSmrgtypedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
494af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
495af69d88dSmrgBOOL WINAPI wglGetPixelFormatAttribivEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
496af69d88dSmrgBOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
497af69d88dSmrgBOOL WINAPI wglChoosePixelFormatEXT (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
4984a49301eSmrg#endif
499af69d88dSmrg#endif /* WGL_EXT_pixel_format */
500af69d88dSmrg
501af69d88dSmrg#ifndef WGL_EXT_pixel_format_packed_float
502af69d88dSmrg#define WGL_EXT_pixel_format_packed_float 1
503af69d88dSmrg#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT  0x20A8
504af69d88dSmrg#endif /* WGL_EXT_pixel_format_packed_float */
5054a49301eSmrg
5064a49301eSmrg#ifndef WGL_EXT_swap_control
5074a49301eSmrg#define WGL_EXT_swap_control 1
5084a49301eSmrgtypedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
5094a49301eSmrgtypedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
5104a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
511af69d88dSmrgBOOL WINAPI wglSwapIntervalEXT (int interval);
512af69d88dSmrgint WINAPI wglGetSwapIntervalEXT (void);
5134a49301eSmrg#endif
514af69d88dSmrg#endif /* WGL_EXT_swap_control */
5154a49301eSmrg
516af69d88dSmrg#ifndef WGL_EXT_swap_control_tear
517af69d88dSmrg#define WGL_EXT_swap_control_tear 1
518af69d88dSmrg#endif /* WGL_EXT_swap_control_tear */
5194a49301eSmrg
5204a49301eSmrg#ifndef WGL_I3D_digital_video_control
5214a49301eSmrg#define WGL_I3D_digital_video_control 1
522af69d88dSmrg#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
523af69d88dSmrg#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
524af69d88dSmrg#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
525af69d88dSmrg#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
5264a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
5274a49301eSmrgtypedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
528af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
529af69d88dSmrgBOOL WINAPI wglGetDigitalVideoParametersI3D (HDC hDC, int iAttribute, int *piValue);
530af69d88dSmrgBOOL WINAPI wglSetDigitalVideoParametersI3D (HDC hDC, int iAttribute, const int *piValue);
5314a49301eSmrg#endif
532af69d88dSmrg#endif /* WGL_I3D_digital_video_control */
5334a49301eSmrg
5344a49301eSmrg#ifndef WGL_I3D_gamma
5354a49301eSmrg#define WGL_I3D_gamma 1
536af69d88dSmrg#define WGL_GAMMA_TABLE_SIZE_I3D          0x204E
537af69d88dSmrg#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D     0x204F
5384a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
5394a49301eSmrgtypedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
5404a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
5414a49301eSmrgtypedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
542af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
543af69d88dSmrgBOOL WINAPI wglGetGammaTableParametersI3D (HDC hDC, int iAttribute, int *piValue);
544af69d88dSmrgBOOL WINAPI wglSetGammaTableParametersI3D (HDC hDC, int iAttribute, const int *piValue);
545af69d88dSmrgBOOL WINAPI wglGetGammaTableI3D (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
546af69d88dSmrgBOOL WINAPI wglSetGammaTableI3D (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
5474a49301eSmrg#endif
548af69d88dSmrg#endif /* WGL_I3D_gamma */
5494a49301eSmrg
5504a49301eSmrg#ifndef WGL_I3D_genlock
5514a49301eSmrg#define WGL_I3D_genlock 1
552af69d88dSmrg#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D  0x2044
553af69d88dSmrg#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
554af69d88dSmrg#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
555af69d88dSmrg#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
556af69d88dSmrg#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
557af69d88dSmrg#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
558af69d88dSmrg#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
559af69d88dSmrg#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
560af69d88dSmrg#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D  0x204C
5614a49301eSmrgtypedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
5624a49301eSmrgtypedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
5634a49301eSmrgtypedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
5644a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
5654a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
5664a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
5674a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
5684a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
5694a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
5704a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
5714a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
5724a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
573af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
574af69d88dSmrgBOOL WINAPI wglEnableGenlockI3D (HDC hDC);
575af69d88dSmrgBOOL WINAPI wglDisableGenlockI3D (HDC hDC);
576af69d88dSmrgBOOL WINAPI wglIsEnabledGenlockI3D (HDC hDC, BOOL *pFlag);
577af69d88dSmrgBOOL WINAPI wglGenlockSourceI3D (HDC hDC, UINT uSource);
578af69d88dSmrgBOOL WINAPI wglGetGenlockSourceI3D (HDC hDC, UINT *uSource);
579af69d88dSmrgBOOL WINAPI wglGenlockSourceEdgeI3D (HDC hDC, UINT uEdge);
580af69d88dSmrgBOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC hDC, UINT *uEdge);
581af69d88dSmrgBOOL WINAPI wglGenlockSampleRateI3D (HDC hDC, UINT uRate);
582af69d88dSmrgBOOL WINAPI wglGetGenlockSampleRateI3D (HDC hDC, UINT *uRate);
583af69d88dSmrgBOOL WINAPI wglGenlockSourceDelayI3D (HDC hDC, UINT uDelay);
584af69d88dSmrgBOOL WINAPI wglGetGenlockSourceDelayI3D (HDC hDC, UINT *uDelay);
585af69d88dSmrgBOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
586af69d88dSmrg#endif
587af69d88dSmrg#endif /* WGL_I3D_genlock */
5884a49301eSmrg
5894a49301eSmrg#ifndef WGL_I3D_image_buffer
5904a49301eSmrg#define WGL_I3D_image_buffer 1
591af69d88dSmrg#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D   0x00000001
592af69d88dSmrg#define WGL_IMAGE_BUFFER_LOCK_I3D         0x00000002
5934a49301eSmrgtypedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
5944a49301eSmrgtypedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
5954a49301eSmrgtypedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
5964a49301eSmrgtypedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
597af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
598af69d88dSmrgLPVOID WINAPI wglCreateImageBufferI3D (HDC hDC, DWORD dwSize, UINT uFlags);
599af69d88dSmrgBOOL WINAPI wglDestroyImageBufferI3D (HDC hDC, LPVOID pAddress);
600af69d88dSmrgBOOL WINAPI wglAssociateImageBufferEventsI3D (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
601af69d88dSmrgBOOL WINAPI wglReleaseImageBufferEventsI3D (HDC hDC, const LPVOID *pAddress, UINT count);
6024a49301eSmrg#endif
603af69d88dSmrg#endif /* WGL_I3D_image_buffer */
6044a49301eSmrg
6054a49301eSmrg#ifndef WGL_I3D_swap_frame_lock
6064a49301eSmrg#define WGL_I3D_swap_frame_lock 1
6074a49301eSmrgtypedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
6084a49301eSmrgtypedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
6094a49301eSmrgtypedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
6104a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
611af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
612af69d88dSmrgBOOL WINAPI wglEnableFrameLockI3D (void);
613af69d88dSmrgBOOL WINAPI wglDisableFrameLockI3D (void);
614af69d88dSmrgBOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *pFlag);
615af69d88dSmrgBOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *pFlag);
6164a49301eSmrg#endif
617af69d88dSmrg#endif /* WGL_I3D_swap_frame_lock */
6184a49301eSmrg
6194a49301eSmrg#ifndef WGL_I3D_swap_frame_usage
6204a49301eSmrg#define WGL_I3D_swap_frame_usage 1
6214a49301eSmrgtypedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
6224a49301eSmrgtypedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
6234a49301eSmrgtypedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
6244a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
625af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
626af69d88dSmrgBOOL WINAPI wglGetFrameUsageI3D (float *pUsage);
627af69d88dSmrgBOOL WINAPI wglBeginFrameTrackingI3D (void);
628af69d88dSmrgBOOL WINAPI wglEndFrameTrackingI3D (void);
629af69d88dSmrgBOOL WINAPI wglQueryFrameTrackingI3D (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
630af69d88dSmrg#endif
631af69d88dSmrg#endif /* WGL_I3D_swap_frame_usage */
632af69d88dSmrg
633af69d88dSmrg#ifndef WGL_NV_DX_interop
634af69d88dSmrg#define WGL_NV_DX_interop 1
635af69d88dSmrg#define WGL_ACCESS_READ_ONLY_NV           0x00000000
636af69d88dSmrg#define WGL_ACCESS_READ_WRITE_NV          0x00000001
637af69d88dSmrg#define WGL_ACCESS_WRITE_DISCARD_NV       0x00000002
638af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void *dxObject, HANDLE shareHandle);
639af69d88dSmrgtypedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void *dxDevice);
640af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
641af69d88dSmrgtypedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
642af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
643af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
644af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects);
645af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE *hObjects);
646af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
647af69d88dSmrgBOOL WINAPI wglDXSetResourceShareHandleNV (void *dxObject, HANDLE shareHandle);
648af69d88dSmrgHANDLE WINAPI wglDXOpenDeviceNV (void *dxDevice);
649af69d88dSmrgBOOL WINAPI wglDXCloseDeviceNV (HANDLE hDevice);
650af69d88dSmrgHANDLE WINAPI wglDXRegisterObjectNV (HANDLE hDevice, void *dxObject, GLuint name, GLenum type, GLenum access);
651af69d88dSmrgBOOL WINAPI wglDXUnregisterObjectNV (HANDLE hDevice, HANDLE hObject);
652af69d88dSmrgBOOL WINAPI wglDXObjectAccessNV (HANDLE hObject, GLenum access);
653af69d88dSmrgBOOL WINAPI wglDXLockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects);
654af69d88dSmrgBOOL WINAPI wglDXUnlockObjectsNV (HANDLE hDevice, GLint count, HANDLE *hObjects);
6554a49301eSmrg#endif
656af69d88dSmrg#endif /* WGL_NV_DX_interop */
6574a49301eSmrg
658af69d88dSmrg#ifndef WGL_NV_DX_interop2
659af69d88dSmrg#define WGL_NV_DX_interop2 1
660af69d88dSmrg#endif /* WGL_NV_DX_interop2 */
6614a49301eSmrg
662af69d88dSmrg#ifndef WGL_NV_copy_image
663af69d88dSmrg#define WGL_NV_copy_image 1
664af69d88dSmrgtypedef 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);
665af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
666af69d88dSmrgBOOL 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);
6674a49301eSmrg#endif
668af69d88dSmrg#endif /* WGL_NV_copy_image */
6694a49301eSmrg
670af69d88dSmrg#ifndef WGL_NV_delay_before_swap
671af69d88dSmrg#define WGL_NV_delay_before_swap 1
672af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds);
6734a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
674af69d88dSmrgBOOL WINAPI wglDelayBeforeSwapNV (HDC hDC, GLfloat seconds);
6754a49301eSmrg#endif
676af69d88dSmrg#endif /* WGL_NV_delay_before_swap */
6774a49301eSmrg
678af69d88dSmrg#ifndef WGL_NV_float_buffer
679af69d88dSmrg#define WGL_NV_float_buffer 1
680af69d88dSmrg#define WGL_FLOAT_COMPONENTS_NV           0x20B0
681af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
682af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
683af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
684af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
685af69d88dSmrg#define WGL_TEXTURE_FLOAT_R_NV            0x20B5
686af69d88dSmrg#define WGL_TEXTURE_FLOAT_RG_NV           0x20B6
687af69d88dSmrg#define WGL_TEXTURE_FLOAT_RGB_NV          0x20B7
688af69d88dSmrg#define WGL_TEXTURE_FLOAT_RGBA_NV         0x20B8
689af69d88dSmrg#endif /* WGL_NV_float_buffer */
6904a49301eSmrg
691af69d88dSmrg#ifndef WGL_NV_gpu_affinity
692af69d88dSmrg#define WGL_NV_gpu_affinity 1
693af69d88dSmrgDECLARE_HANDLE(HGPUNV);
694af69d88dSmrgstruct _GPU_DEVICE {
695af69d88dSmrg    DWORD  cb;
696af69d88dSmrg    CHAR   DeviceName[32];
697af69d88dSmrg    CHAR   DeviceString[128];
698af69d88dSmrg    DWORD  Flags;
699af69d88dSmrg    RECT   rcVirtualScreen;
700af69d88dSmrg};
701af69d88dSmrgtypedef struct _GPU_DEVICE *PGPU_DEVICE;
702af69d88dSmrg#define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
703af69d88dSmrg#define ERROR_MISSING_AFFINITY_MASK_NV    0x20D1
704af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
705af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
706af69d88dSmrgtypedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
707af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
708af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
709af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
710af69d88dSmrgBOOL WINAPI wglEnumGpusNV (UINT iGpuIndex, HGPUNV *phGpu);
711af69d88dSmrgBOOL WINAPI wglEnumGpuDevicesNV (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
712af69d88dSmrgHDC WINAPI wglCreateAffinityDCNV (const HGPUNV *phGpuList);
713af69d88dSmrgBOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
714af69d88dSmrgBOOL WINAPI wglDeleteDCNV (HDC hdc);
7154a49301eSmrg#endif
716af69d88dSmrg#endif /* WGL_NV_gpu_affinity */
717af69d88dSmrg
7187ec681f3Smrg#ifndef WGL_NV_multigpu_context
7197ec681f3Smrg#define WGL_NV_multigpu_context 1
7207ec681f3Smrg#define WGL_CONTEXT_MULTIGPU_ATTRIB_NV    0x20AA
7217ec681f3Smrg#define WGL_CONTEXT_MULTIGPU_ATTRIB_SINGLE_NV 0x20AB
7227ec681f3Smrg#define WGL_CONTEXT_MULTIGPU_ATTRIB_AFR_NV 0x20AC
7237ec681f3Smrg#define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTICAST_NV 0x20AD
7247ec681f3Smrg#define WGL_CONTEXT_MULTIGPU_ATTRIB_MULTI_DISPLAY_MULTICAST_NV 0x20AE
7257ec681f3Smrg#endif /* WGL_NV_multigpu_context */
7267ec681f3Smrg
727af69d88dSmrg#ifndef WGL_NV_multisample_coverage
728af69d88dSmrg#define WGL_NV_multisample_coverage 1
729af69d88dSmrg#define WGL_COVERAGE_SAMPLES_NV           0x2042
730af69d88dSmrg#define WGL_COLOR_SAMPLES_NV              0x20B9
731af69d88dSmrg#endif /* WGL_NV_multisample_coverage */
7324a49301eSmrg
7334a49301eSmrg#ifndef WGL_NV_present_video
7344a49301eSmrg#define WGL_NV_present_video 1
735af69d88dSmrgDECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
736af69d88dSmrg#define WGL_NUM_VIDEO_SLOTS_NV            0x20F0
7377ec681f3Smrgtypedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList);
7387ec681f3Smrgtypedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
7394a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue);
7404a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
7417ec681f3Smrgint WINAPI wglEnumerateVideoDevicesNV (HDC hDc, HVIDEOOUTPUTDEVICENV *phDeviceList);
7427ec681f3SmrgBOOL WINAPI wglBindVideoDeviceNV (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
743af69d88dSmrgBOOL WINAPI wglQueryCurrentContextNV (int iAttribute, int *piValue);
7444a49301eSmrg#endif
745af69d88dSmrg#endif /* WGL_NV_present_video */
746af69d88dSmrg
747af69d88dSmrg#ifndef WGL_NV_render_depth_texture
748af69d88dSmrg#define WGL_NV_render_depth_texture 1
749af69d88dSmrg#define WGL_BIND_TO_TEXTURE_DEPTH_NV      0x20A3
750af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
751af69d88dSmrg#define WGL_DEPTH_TEXTURE_FORMAT_NV       0x20A5
752af69d88dSmrg#define WGL_TEXTURE_DEPTH_COMPONENT_NV    0x20A6
753af69d88dSmrg#define WGL_DEPTH_COMPONENT_NV            0x20A7
754af69d88dSmrg#endif /* WGL_NV_render_depth_texture */
755af69d88dSmrg
756af69d88dSmrg#ifndef WGL_NV_render_texture_rectangle
757af69d88dSmrg#define WGL_NV_render_texture_rectangle 1
758af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
759af69d88dSmrg#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
760af69d88dSmrg#define WGL_TEXTURE_RECTANGLE_NV          0x20A2
761af69d88dSmrg#endif /* WGL_NV_render_texture_rectangle */
7624a49301eSmrg
7634a49301eSmrg#ifndef WGL_NV_swap_group
7644a49301eSmrg#define WGL_NV_swap_group 1
7654a49301eSmrgtypedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
7664a49301eSmrgtypedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
7674a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier);
7684a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
7694a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count);
7704a49301eSmrgtypedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
7714a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
772af69d88dSmrgBOOL WINAPI wglJoinSwapGroupNV (HDC hDC, GLuint group);
773af69d88dSmrgBOOL WINAPI wglBindSwapBarrierNV (GLuint group, GLuint barrier);
774af69d88dSmrgBOOL WINAPI wglQuerySwapGroupNV (HDC hDC, GLuint *group, GLuint *barrier);
775af69d88dSmrgBOOL WINAPI wglQueryMaxSwapGroupsNV (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
776af69d88dSmrgBOOL WINAPI wglQueryFrameCountNV (HDC hDC, GLuint *count);
777af69d88dSmrgBOOL WINAPI wglResetFrameCountNV (HDC hDC);
7784a49301eSmrg#endif
779af69d88dSmrg#endif /* WGL_NV_swap_group */
7804a49301eSmrg
781af69d88dSmrg#ifndef WGL_NV_vertex_array_range
782af69d88dSmrg#define WGL_NV_vertex_array_range 1
783af69d88dSmrgtypedef void *(WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
784af69d88dSmrgtypedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
7854a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
786af69d88dSmrgvoid *WINAPI wglAllocateMemoryNV (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
787af69d88dSmrgvoid WINAPI wglFreeMemoryNV (void *pointer);
7884a49301eSmrg#endif
789af69d88dSmrg#endif /* WGL_NV_vertex_array_range */
7904a49301eSmrg
7914a49301eSmrg#ifndef WGL_NV_video_capture
7924a49301eSmrg#define WGL_NV_video_capture 1
793af69d88dSmrgDECLARE_HANDLE(HVIDEOINPUTDEVICENV);
794af69d88dSmrg#define WGL_UNIQUE_ID_NV                  0x20CE
795af69d88dSmrg#define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV    0x20CF
7964a49301eSmrgtypedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
7974a49301eSmrgtypedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
7984a49301eSmrgtypedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
7994a49301eSmrgtypedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
8004a49301eSmrgtypedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
8014a49301eSmrg#ifdef WGL_WGLEXT_PROTOTYPES
802af69d88dSmrgBOOL WINAPI wglBindVideoCaptureDeviceNV (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
803af69d88dSmrgUINT WINAPI wglEnumerateVideoCaptureDevicesNV (HDC hDc, HVIDEOINPUTDEVICENV *phDeviceList);
804af69d88dSmrgBOOL WINAPI wglLockVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
805af69d88dSmrgBOOL WINAPI wglQueryVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int *piValue);
806af69d88dSmrgBOOL WINAPI wglReleaseVideoCaptureDeviceNV (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
8074a49301eSmrg#endif
808af69d88dSmrg#endif /* WGL_NV_video_capture */
8094a49301eSmrg
810af69d88dSmrg#ifndef WGL_NV_video_output
811af69d88dSmrg#define WGL_NV_video_output 1
812af69d88dSmrgDECLARE_HANDLE(HPVIDEODEV);
813af69d88dSmrg#define WGL_BIND_TO_VIDEO_RGB_NV          0x20C0
814af69d88dSmrg#define WGL_BIND_TO_VIDEO_RGBA_NV         0x20C1
815af69d88dSmrg#define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
816af69d88dSmrg#define WGL_VIDEO_OUT_COLOR_NV            0x20C3
817af69d88dSmrg#define WGL_VIDEO_OUT_ALPHA_NV            0x20C4
818af69d88dSmrg#define WGL_VIDEO_OUT_DEPTH_NV            0x20C5
819af69d88dSmrg#define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV  0x20C6
820af69d88dSmrg#define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV  0x20C7
821af69d88dSmrg#define WGL_VIDEO_OUT_FRAME               0x20C8
822af69d88dSmrg#define WGL_VIDEO_OUT_FIELD_1             0x20C9
823af69d88dSmrg#define WGL_VIDEO_OUT_FIELD_2             0x20CA
824af69d88dSmrg#define WGL_VIDEO_OUT_STACKED_FIELDS_1_2  0x20CB
825af69d88dSmrg#define WGL_VIDEO_OUT_STACKED_FIELDS_2_1  0x20CC
826af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
827af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
828af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
829af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
830af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
831af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
832af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
833af69d88dSmrgBOOL WINAPI wglGetVideoDeviceNV (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
834af69d88dSmrgBOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice);
835af69d88dSmrgBOOL WINAPI wglBindVideoImageNV (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
836af69d88dSmrgBOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB hPbuffer, int iVideoBuffer);
837af69d88dSmrgBOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
838af69d88dSmrgBOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
8393464ebd5Sriastradh#endif
840af69d88dSmrg#endif /* WGL_NV_video_output */
8413464ebd5Sriastradh
842af69d88dSmrg#ifndef WGL_OML_sync_control
843af69d88dSmrg#define WGL_OML_sync_control 1
844af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
845af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
846af69d88dSmrgtypedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
8477ec681f3Smrgtypedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
848af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
849af69d88dSmrgtypedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
850af69d88dSmrg#ifdef WGL_WGLEXT_PROTOTYPES
851af69d88dSmrgBOOL WINAPI wglGetSyncValuesOML (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
852af69d88dSmrgBOOL WINAPI wglGetMscRateOML (HDC hdc, INT32 *numerator, INT32 *denominator);
853af69d88dSmrgINT64 WINAPI wglSwapBuffersMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
8547ec681f3SmrgINT64 WINAPI wglSwapLayerBuffersMscOML (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
855af69d88dSmrgBOOL WINAPI wglWaitForMscOML (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
856af69d88dSmrgBOOL WINAPI wglWaitForSbcOML (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
857af69d88dSmrg#endif
858af69d88dSmrg#endif /* WGL_OML_sync_control */
8594a49301eSmrg
8604a49301eSmrg#ifdef __cplusplus
8614a49301eSmrg}
8624a49301eSmrg#endif
8634a49301eSmrg
8644a49301eSmrg#endif
865