9 ** Copyright (c) 2013-2014 The Khronos Group Inc.
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:
19 ** The above copyright notice and this permission notice shall be included
20 ** in all copies or substantial portions of the Materials.
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.
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 ** http://www.opengl.org/registry/
36 ** Khronos $Revision: 27191 $ on $Date: 2014-06-30 15:11:33 -0700 (Mon, 30 Jun 2014) $
39 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
40 #define WIN32_LEAN_AND_MEAN 1
44 #define WGL_WGLEXT_VERSION 20140630
46 /* Generated C header for:
48 * Versions considered: .*
49 * Versions emitted: _nomatch_^
50 * Default extensions included: wgl
51 * Additional extensions included: _nomatch_^
52 * Extensions removed: _nomatch_^
55 #ifndef WGL_ARB_buffer_region
56 #define WGL_ARB_buffer_region 1
57 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
58 #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
59 #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
60 #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
61 typedef HANDLE (WINAPI
* PFNWGLCREATEBUFFERREGIONARBPROC
) (HDC hDC
, int iLayerPlane
, UINT uType
);
62 typedef VOID (WINAPI
* PFNWGLDELETEBUFFERREGIONARBPROC
) (HANDLE hRegion
);
63 typedef BOOL (WINAPI
* PFNWGLSAVEBUFFERREGIONARBPROC
) (HANDLE hRegion
, int x
, int y
, int width
, int height
);
64 typedef BOOL (WINAPI
* PFNWGLRESTOREBUFFERREGIONARBPROC
) (HANDLE hRegion
, int x
, int y
, int width
, int height
, int xSrc
, int ySrc
);
65 #ifdef WGL_WGLEXT_PROTOTYPES
66 HANDLE WINAPI
wglCreateBufferRegionARB (HDC hDC
, int iLayerPlane
, UINT uType
);
67 VOID WINAPI
wglDeleteBufferRegionARB (HANDLE hRegion
);
68 BOOL WINAPI
wglSaveBufferRegionARB (HANDLE hRegion
, int x
, int y
, int width
, int height
);
69 BOOL WINAPI
wglRestoreBufferRegionARB (HANDLE hRegion
, int x
, int y
, int width
, int height
, int xSrc
, int ySrc
);
71 #endif /* WGL_ARB_buffer_region */
73 #ifndef WGL_ARB_create_context
74 #define WGL_ARB_create_context 1
75 #define WGL_CONTEXT_DEBUG_BIT_ARB 0x00000001
76 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002
77 #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
78 #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
79 #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
80 #define WGL_CONTEXT_FLAGS_ARB 0x2094
81 #define ERROR_INVALID_VERSION_ARB 0x2095
82 typedef HGLRC (WINAPI
* PFNWGLCREATECONTEXTATTRIBSARBPROC
) (HDC hDC
, HGLRC hShareContext
, const int *attribList
);
83 #ifdef WGL_WGLEXT_PROTOTYPES
84 HGLRC WINAPI
wglCreateContextAttribsARB (HDC hDC
, HGLRC hShareContext
, const int *attribList
);
86 #endif /* WGL_ARB_create_context */
88 #ifndef WGL_ARB_create_context_profile
89 #define WGL_ARB_create_context_profile 1
90 #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
91 #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
92 #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
93 #define ERROR_INVALID_PROFILE_ARB 0x2096
94 #endif /* WGL_ARB_create_context_profile */
96 #ifndef WGL_ARB_create_context_robustness
97 #define WGL_ARB_create_context_robustness 1
98 #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
99 #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
100 #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
101 #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
102 #endif /* WGL_ARB_create_context_robustness */
104 #ifndef WGL_ARB_extensions_string
105 #define WGL_ARB_extensions_string 1
106 typedef const char *(WINAPI
* PFNWGLGETEXTENSIONSSTRINGARBPROC
) (HDC hdc
);
107 #ifdef WGL_WGLEXT_PROTOTYPES
108 const char *WINAPI
wglGetExtensionsStringARB (HDC hdc
);
110 #endif /* WGL_ARB_extensions_string */
112 #ifndef WGL_ARB_framebuffer_sRGB
113 #define WGL_ARB_framebuffer_sRGB 1
114 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
115 #endif /* WGL_ARB_framebuffer_sRGB */
117 #ifndef WGL_ARB_make_current_read
118 #define WGL_ARB_make_current_read 1
119 #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
120 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
121 typedef BOOL (WINAPI
* PFNWGLMAKECONTEXTCURRENTARBPROC
) (HDC hDrawDC
, HDC hReadDC
, HGLRC hglrc
);
122 typedef HDC (WINAPI
* PFNWGLGETCURRENTREADDCARBPROC
) (void);
123 #ifdef WGL_WGLEXT_PROTOTYPES
124 BOOL WINAPI
wglMakeContextCurrentARB (HDC hDrawDC
, HDC hReadDC
, HGLRC hglrc
);
125 HDC WINAPI
wglGetCurrentReadDCARB (void);
127 #endif /* WGL_ARB_make_current_read */
129 #ifndef WGL_ARB_multisample
130 #define WGL_ARB_multisample 1
131 #define WGL_SAMPLE_BUFFERS_ARB 0x2041
132 #define WGL_SAMPLES_ARB 0x2042
133 #endif /* WGL_ARB_multisample */
135 #ifndef WGL_ARB_pbuffer
136 #define WGL_ARB_pbuffer 1
137 DECLARE_HANDLE(HPBUFFERARB
);
138 #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
139 #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
140 #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
141 #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
142 #define WGL_PBUFFER_LARGEST_ARB 0x2033
143 #define WGL_PBUFFER_WIDTH_ARB 0x2034
144 #define WGL_PBUFFER_HEIGHT_ARB 0x2035
145 #define WGL_PBUFFER_LOST_ARB 0x2036
146 typedef HPBUFFERARB (WINAPI
* PFNWGLCREATEPBUFFERARBPROC
) (HDC hDC
, int iPixelFormat
, int iWidth
, int iHeight
, const int *piAttribList
);
147 typedef HDC (WINAPI
* PFNWGLGETPBUFFERDCARBPROC
) (HPBUFFERARB hPbuffer
);
148 typedef int (WINAPI
* PFNWGLRELEASEPBUFFERDCARBPROC
) (HPBUFFERARB hPbuffer
, HDC hDC
);
149 typedef BOOL (WINAPI
* PFNWGLDESTROYPBUFFERARBPROC
) (HPBUFFERARB hPbuffer
);
150 typedef BOOL (WINAPI
* PFNWGLQUERYPBUFFERARBPROC
) (HPBUFFERARB hPbuffer
, int iAttribute
, int *piValue
);
151 #ifdef WGL_WGLEXT_PROTOTYPES
152 HPBUFFERARB WINAPI
wglCreatePbufferARB (HDC hDC
, int iPixelFormat
, int iWidth
, int iHeight
, const int *piAttribList
);
153 HDC WINAPI
wglGetPbufferDCARB (HPBUFFERARB hPbuffer
);
154 int WINAPI
wglReleasePbufferDCARB (HPBUFFERARB hPbuffer
, HDC hDC
);
155 BOOL WINAPI
wglDestroyPbufferARB (HPBUFFERARB hPbuffer
);
156 BOOL WINAPI
wglQueryPbufferARB (HPBUFFERARB hPbuffer
, int iAttribute
, int *piValue
);
158 #endif /* WGL_ARB_pbuffer */
160 #ifndef WGL_ARB_pixel_format
161 #define WGL_ARB_pixel_format 1
162 #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
163 #define WGL_DRAW_TO_WINDOW_ARB 0x2001
164 #define WGL_DRAW_TO_BITMAP_ARB 0x2002
165 #define WGL_ACCELERATION_ARB 0x2003
166 #define WGL_NEED_PALETTE_ARB 0x2004
167 #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
168 #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
169 #define WGL_SWAP_METHOD_ARB 0x2007
170 #define WGL_NUMBER_OVERLAYS_ARB 0x2008
171 #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
172 #define WGL_TRANSPARENT_ARB 0x200A
173 #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
174 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
175 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
176 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
177 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
178 #define WGL_SHARE_DEPTH_ARB 0x200C
179 #define WGL_SHARE_STENCIL_ARB 0x200D
180 #define WGL_SHARE_ACCUM_ARB 0x200E
181 #define WGL_SUPPORT_GDI_ARB 0x200F
182 #define WGL_SUPPORT_OPENGL_ARB 0x2010
183 #define WGL_DOUBLE_BUFFER_ARB 0x2011
184 #define WGL_STEREO_ARB 0x2012
185 #define WGL_PIXEL_TYPE_ARB 0x2013
186 #define WGL_COLOR_BITS_ARB 0x2014
187 #define WGL_RED_BITS_ARB 0x2015
188 #define WGL_RED_SHIFT_ARB 0x2016
189 #define WGL_GREEN_BITS_ARB 0x2017
190 #define WGL_GREEN_SHIFT_ARB 0x2018
191 #define WGL_BLUE_BITS_ARB 0x2019
192 #define WGL_BLUE_SHIFT_ARB 0x201A
193 #define WGL_ALPHA_BITS_ARB 0x201B
194 #define WGL_ALPHA_SHIFT_ARB 0x201C
195 #define WGL_ACCUM_BITS_ARB 0x201D
196 #define WGL_ACCUM_RED_BITS_ARB 0x201E
197 #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
198 #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
199 #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
200 #define WGL_DEPTH_BITS_ARB 0x2022
201 #define WGL_STENCIL_BITS_ARB 0x2023
202 #define WGL_AUX_BUFFERS_ARB 0x2024
203 #define WGL_NO_ACCELERATION_ARB 0x2025
204 #define WGL_GENERIC_ACCELERATION_ARB 0x2026
205 #define WGL_FULL_ACCELERATION_ARB 0x2027
206 #define WGL_SWAP_EXCHANGE_ARB 0x2028
207 #define WGL_SWAP_COPY_ARB 0x2029
208 #define WGL_SWAP_UNDEFINED_ARB 0x202A
209 #define WGL_TYPE_RGBA_ARB 0x202B
210 #define WGL_TYPE_COLORINDEX_ARB 0x202C
211 typedef BOOL (WINAPI
* PFNWGLGETPIXELFORMATATTRIBIVARBPROC
) (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, const int *piAttributes
, int *piValues
);
212 typedef BOOL (WINAPI
* PFNWGLGETPIXELFORMATATTRIBFVARBPROC
) (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, const int *piAttributes
, FLOAT
*pfValues
);
213 typedef BOOL (WINAPI
* PFNWGLCHOOSEPIXELFORMATARBPROC
) (HDC hdc
, const int *piAttribIList
, const FLOAT
*pfAttribFList
, UINT nMaxFormats
, int *piFormats
, UINT
*nNumFormats
);
214 #ifdef WGL_WGLEXT_PROTOTYPES
215 BOOL WINAPI
wglGetPixelFormatAttribivARB (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, const int *piAttributes
, int *piValues
);
216 BOOL WINAPI
wglGetPixelFormatAttribfvARB (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, const int *piAttributes
, FLOAT
*pfValues
);
217 BOOL WINAPI
wglChoosePixelFormatARB (HDC hdc
, const int *piAttribIList
, const FLOAT
*pfAttribFList
, UINT nMaxFormats
, int *piFormats
, UINT
*nNumFormats
);
219 #endif /* WGL_ARB_pixel_format */
221 #ifndef WGL_ARB_pixel_format_float
222 #define WGL_ARB_pixel_format_float 1
223 #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
224 #endif /* WGL_ARB_pixel_format_float */
226 #ifndef WGL_ARB_render_texture
227 #define WGL_ARB_render_texture 1
228 #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
229 #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
230 #define WGL_TEXTURE_FORMAT_ARB 0x2072
231 #define WGL_TEXTURE_TARGET_ARB 0x2073
232 #define WGL_MIPMAP_TEXTURE_ARB 0x2074
233 #define WGL_TEXTURE_RGB_ARB 0x2075
234 #define WGL_TEXTURE_RGBA_ARB 0x2076
235 #define WGL_NO_TEXTURE_ARB 0x2077
236 #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
237 #define WGL_TEXTURE_1D_ARB 0x2079
238 #define WGL_TEXTURE_2D_ARB 0x207A
239 #define WGL_MIPMAP_LEVEL_ARB 0x207B
240 #define WGL_CUBE_MAP_FACE_ARB 0x207C
241 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
242 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
243 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
244 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
245 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
246 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
247 #define WGL_FRONT_LEFT_ARB 0x2083
248 #define WGL_FRONT_RIGHT_ARB 0x2084
249 #define WGL_BACK_LEFT_ARB 0x2085
250 #define WGL_BACK_RIGHT_ARB 0x2086
251 #define WGL_AUX0_ARB 0x2087
252 #define WGL_AUX1_ARB 0x2088
253 #define WGL_AUX2_ARB 0x2089
254 #define WGL_AUX3_ARB 0x208A
255 #define WGL_AUX4_ARB 0x208B
256 #define WGL_AUX5_ARB 0x208C
257 #define WGL_AUX6_ARB 0x208D
258 #define WGL_AUX7_ARB 0x208E
259 #define WGL_AUX8_ARB 0x208F
260 #define WGL_AUX9_ARB 0x2090
261 typedef BOOL (WINAPI
* PFNWGLBINDTEXIMAGEARBPROC
) (HPBUFFERARB hPbuffer
, int iBuffer
);
262 typedef BOOL (WINAPI
* PFNWGLRELEASETEXIMAGEARBPROC
) (HPBUFFERARB hPbuffer
, int iBuffer
);
263 typedef BOOL (WINAPI
* PFNWGLSETPBUFFERATTRIBARBPROC
) (HPBUFFERARB hPbuffer
, const int *piAttribList
);
264 #ifdef WGL_WGLEXT_PROTOTYPES
265 BOOL WINAPI
wglBindTexImageARB (HPBUFFERARB hPbuffer
, int iBuffer
);
266 BOOL WINAPI
wglReleaseTexImageARB (HPBUFFERARB hPbuffer
, int iBuffer
);
267 BOOL WINAPI
wglSetPbufferAttribARB (HPBUFFERARB hPbuffer
, const int *piAttribList
);
269 #endif /* WGL_ARB_render_texture */
271 #ifndef WGL_ARB_robustness_application_isolation
272 #define WGL_ARB_robustness_application_isolation 1
273 #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
274 #endif /* WGL_ARB_robustness_application_isolation */
276 #ifndef WGL_ARB_robustness_share_group_isolation
277 #define WGL_ARB_robustness_share_group_isolation 1
278 #endif /* WGL_ARB_robustness_share_group_isolation */
280 #ifndef WGL_3DFX_multisample
281 #define WGL_3DFX_multisample 1
282 #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
283 #define WGL_SAMPLES_3DFX 0x2061
284 #endif /* WGL_3DFX_multisample */
286 #ifndef WGL_3DL_stereo_control
287 #define WGL_3DL_stereo_control 1
288 #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
289 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
290 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
291 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
292 typedef BOOL (WINAPI
* PFNWGLSETSTEREOEMITTERSTATE3DLPROC
) (HDC hDC
, UINT uState
);
293 #ifdef WGL_WGLEXT_PROTOTYPES
294 BOOL WINAPI
wglSetStereoEmitterState3DL (HDC hDC
, UINT uState
);
296 #endif /* WGL_3DL_stereo_control */
298 #ifndef WGL_AMD_gpu_association
299 #define WGL_AMD_gpu_association 1
300 #define WGL_GPU_VENDOR_AMD 0x1F00
301 #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
302 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
303 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
304 #define WGL_GPU_RAM_AMD 0x21A3
305 #define WGL_GPU_CLOCK_AMD 0x21A4
306 #define WGL_GPU_NUM_PIPES_AMD 0x21A5
307 #define WGL_GPU_NUM_SIMD_AMD 0x21A6
308 #define WGL_GPU_NUM_RB_AMD 0x21A7
309 #define WGL_GPU_NUM_SPI_AMD 0x21A8
310 typedef UINT (WINAPI
* PFNWGLGETGPUIDSAMDPROC
) (UINT maxCount
, UINT
*ids
);
311 typedef INT (WINAPI
* PFNWGLGETGPUINFOAMDPROC
) (UINT id
, int property
, GLenum dataType
, UINT size
, void *data
);
312 typedef UINT (WINAPI
* PFNWGLGETCONTEXTGPUIDAMDPROC
) (HGLRC hglrc
);
313 typedef HGLRC (WINAPI
* PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC
) (UINT id
);
314 typedef HGLRC (WINAPI
* PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC
) (UINT id
, HGLRC hShareContext
, const int *attribList
);
315 typedef BOOL (WINAPI
* PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC
) (HGLRC hglrc
);
316 typedef BOOL (WINAPI
* PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC
) (HGLRC hglrc
);
317 typedef HGLRC (WINAPI
* PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC
) (void);
318 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
);
319 #ifdef WGL_WGLEXT_PROTOTYPES
320 UINT WINAPI
wglGetGPUIDsAMD (UINT maxCount
, UINT
*ids
);
321 INT WINAPI
wglGetGPUInfoAMD (UINT id
, int property
, GLenum dataType
, UINT size
, void *data
);
322 UINT WINAPI
wglGetContextGPUIDAMD (HGLRC hglrc
);
323 HGLRC WINAPI
wglCreateAssociatedContextAMD (UINT id
);
324 HGLRC WINAPI
wglCreateAssociatedContextAttribsAMD (UINT id
, HGLRC hShareContext
, const int *attribList
);
325 BOOL WINAPI
wglDeleteAssociatedContextAMD (HGLRC hglrc
);
326 BOOL WINAPI
wglMakeAssociatedContextCurrentAMD (HGLRC hglrc
);
327 HGLRC WINAPI
wglGetCurrentAssociatedContextAMD (void);
328 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
);
330 #endif /* WGL_AMD_gpu_association */
332 #ifndef WGL_ATI_pixel_format_float
333 #define WGL_ATI_pixel_format_float 1
334 #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
335 #endif /* WGL_ATI_pixel_format_float */
337 #ifndef WGL_EXT_create_context_es2_profile
338 #define WGL_EXT_create_context_es2_profile 1
339 #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
340 #endif /* WGL_EXT_create_context_es2_profile */
342 #ifndef WGL_EXT_create_context_es_profile
343 #define WGL_EXT_create_context_es_profile 1
344 #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
345 #endif /* WGL_EXT_create_context_es_profile */
347 #ifndef WGL_EXT_depth_float
348 #define WGL_EXT_depth_float 1
349 #define WGL_DEPTH_FLOAT_EXT 0x2040
350 #endif /* WGL_EXT_depth_float */
352 #ifndef WGL_EXT_display_color_table
353 #define WGL_EXT_display_color_table 1
354 typedef GLboolean (WINAPI
* PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC
) (GLushort id
);
355 typedef GLboolean (WINAPI
* PFNWGLLOADDISPLAYCOLORTABLEEXTPROC
) (const GLushort
*table
, GLuint length
);
356 typedef GLboolean (WINAPI
* PFNWGLBINDDISPLAYCOLORTABLEEXTPROC
) (GLushort id
);
357 typedef VOID (WINAPI
* PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC
) (GLushort id
);
358 #ifdef WGL_WGLEXT_PROTOTYPES
359 GLboolean WINAPI
wglCreateDisplayColorTableEXT (GLushort id
);
360 GLboolean WINAPI
wglLoadDisplayColorTableEXT (const GLushort
*table
, GLuint length
);
361 GLboolean WINAPI
wglBindDisplayColorTableEXT (GLushort id
);
362 VOID WINAPI
wglDestroyDisplayColorTableEXT (GLushort id
);
364 #endif /* WGL_EXT_display_color_table */
366 #ifndef WGL_EXT_extensions_string
367 #define WGL_EXT_extensions_string 1
368 typedef const char *(WINAPI
* PFNWGLGETEXTENSIONSSTRINGEXTPROC
) (void);
369 #ifdef WGL_WGLEXT_PROTOTYPES
370 const char *WINAPI
wglGetExtensionsStringEXT (void);
372 #endif /* WGL_EXT_extensions_string */
374 #ifndef WGL_EXT_framebuffer_sRGB
375 #define WGL_EXT_framebuffer_sRGB 1
376 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
377 #endif /* WGL_EXT_framebuffer_sRGB */
379 #ifndef WGL_EXT_make_current_read
380 #define WGL_EXT_make_current_read 1
381 #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
382 typedef BOOL (WINAPI
* PFNWGLMAKECONTEXTCURRENTEXTPROC
) (HDC hDrawDC
, HDC hReadDC
, HGLRC hglrc
);
383 typedef HDC (WINAPI
* PFNWGLGETCURRENTREADDCEXTPROC
) (void);
384 #ifdef WGL_WGLEXT_PROTOTYPES
385 BOOL WINAPI
wglMakeContextCurrentEXT (HDC hDrawDC
, HDC hReadDC
, HGLRC hglrc
);
386 HDC WINAPI
wglGetCurrentReadDCEXT (void);
388 #endif /* WGL_EXT_make_current_read */
390 #ifndef WGL_EXT_multisample
391 #define WGL_EXT_multisample 1
392 #define WGL_SAMPLE_BUFFERS_EXT 0x2041
393 #define WGL_SAMPLES_EXT 0x2042
394 #endif /* WGL_EXT_multisample */
396 #ifndef WGL_EXT_pbuffer
397 #define WGL_EXT_pbuffer 1
398 DECLARE_HANDLE(HPBUFFEREXT
);
399 #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
400 #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
401 #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
402 #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
403 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
404 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
405 #define WGL_PBUFFER_LARGEST_EXT 0x2033
406 #define WGL_PBUFFER_WIDTH_EXT 0x2034
407 #define WGL_PBUFFER_HEIGHT_EXT 0x2035
408 typedef HPBUFFEREXT (WINAPI
* PFNWGLCREATEPBUFFEREXTPROC
) (HDC hDC
, int iPixelFormat
, int iWidth
, int iHeight
, const int *piAttribList
);
409 typedef HDC (WINAPI
* PFNWGLGETPBUFFERDCEXTPROC
) (HPBUFFEREXT hPbuffer
);
410 typedef int (WINAPI
* PFNWGLRELEASEPBUFFERDCEXTPROC
) (HPBUFFEREXT hPbuffer
, HDC hDC
);
411 typedef BOOL (WINAPI
* PFNWGLDESTROYPBUFFEREXTPROC
) (HPBUFFEREXT hPbuffer
);
412 typedef BOOL (WINAPI
* PFNWGLQUERYPBUFFEREXTPROC
) (HPBUFFEREXT hPbuffer
, int iAttribute
, int *piValue
);
413 #ifdef WGL_WGLEXT_PROTOTYPES
414 HPBUFFEREXT WINAPI
wglCreatePbufferEXT (HDC hDC
, int iPixelFormat
, int iWidth
, int iHeight
, const int *piAttribList
);
415 HDC WINAPI
wglGetPbufferDCEXT (HPBUFFEREXT hPbuffer
);
416 int WINAPI
wglReleasePbufferDCEXT (HPBUFFEREXT hPbuffer
, HDC hDC
);
417 BOOL WINAPI
wglDestroyPbufferEXT (HPBUFFEREXT hPbuffer
);
418 BOOL WINAPI
wglQueryPbufferEXT (HPBUFFEREXT hPbuffer
, int iAttribute
, int *piValue
);
420 #endif /* WGL_EXT_pbuffer */
422 #ifndef WGL_EXT_pixel_format
423 #define WGL_EXT_pixel_format 1
424 #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
425 #define WGL_DRAW_TO_WINDOW_EXT 0x2001
426 #define WGL_DRAW_TO_BITMAP_EXT 0x2002
427 #define WGL_ACCELERATION_EXT 0x2003
428 #define WGL_NEED_PALETTE_EXT 0x2004
429 #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
430 #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
431 #define WGL_SWAP_METHOD_EXT 0x2007
432 #define WGL_NUMBER_OVERLAYS_EXT 0x2008
433 #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
434 #define WGL_TRANSPARENT_EXT 0x200A
435 #define WGL_TRANSPARENT_VALUE_EXT 0x200B
436 #define WGL_SHARE_DEPTH_EXT 0x200C
437 #define WGL_SHARE_STENCIL_EXT 0x200D
438 #define WGL_SHARE_ACCUM_EXT 0x200E
439 #define WGL_SUPPORT_GDI_EXT 0x200F
440 #define WGL_SUPPORT_OPENGL_EXT 0x2010
441 #define WGL_DOUBLE_BUFFER_EXT 0x2011
442 #define WGL_STEREO_EXT 0x2012
443 #define WGL_PIXEL_TYPE_EXT 0x2013
444 #define WGL_COLOR_BITS_EXT 0x2014
445 #define WGL_RED_BITS_EXT 0x2015
446 #define WGL_RED_SHIFT_EXT 0x2016
447 #define WGL_GREEN_BITS_EXT 0x2017
448 #define WGL_GREEN_SHIFT_EXT 0x2018
449 #define WGL_BLUE_BITS_EXT 0x2019
450 #define WGL_BLUE_SHIFT_EXT 0x201A
451 #define WGL_ALPHA_BITS_EXT 0x201B
452 #define WGL_ALPHA_SHIFT_EXT 0x201C
453 #define WGL_ACCUM_BITS_EXT 0x201D
454 #define WGL_ACCUM_RED_BITS_EXT 0x201E
455 #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
456 #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
457 #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
458 #define WGL_DEPTH_BITS_EXT 0x2022
459 #define WGL_STENCIL_BITS_EXT 0x2023
460 #define WGL_AUX_BUFFERS_EXT 0x2024
461 #define WGL_NO_ACCELERATION_EXT 0x2025
462 #define WGL_GENERIC_ACCELERATION_EXT 0x2026
463 #define WGL_FULL_ACCELERATION_EXT 0x2027
464 #define WGL_SWAP_EXCHANGE_EXT 0x2028
465 #define WGL_SWAP_COPY_EXT 0x2029
466 #define WGL_SWAP_UNDEFINED_EXT 0x202A
467 #define WGL_TYPE_RGBA_EXT 0x202B
468 #define WGL_TYPE_COLORINDEX_EXT 0x202C
469 typedef BOOL (WINAPI
* PFNWGLGETPIXELFORMATATTRIBIVEXTPROC
) (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, int *piAttributes
, int *piValues
);
470 typedef BOOL (WINAPI
* PFNWGLGETPIXELFORMATATTRIBFVEXTPROC
) (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, int *piAttributes
, FLOAT
*pfValues
);
471 typedef BOOL (WINAPI
* PFNWGLCHOOSEPIXELFORMATEXTPROC
) (HDC hdc
, const int *piAttribIList
, const FLOAT
*pfAttribFList
, UINT nMaxFormats
, int *piFormats
, UINT
*nNumFormats
);
472 #ifdef WGL_WGLEXT_PROTOTYPES
473 BOOL WINAPI
wglGetPixelFormatAttribivEXT (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, int *piAttributes
, int *piValues
);
474 BOOL WINAPI
wglGetPixelFormatAttribfvEXT (HDC hdc
, int iPixelFormat
, int iLayerPlane
, UINT nAttributes
, int *piAttributes
, FLOAT
*pfValues
);
475 BOOL WINAPI
wglChoosePixelFormatEXT (HDC hdc
, const int *piAttribIList
, const FLOAT
*pfAttribFList
, UINT nMaxFormats
, int *piFormats
, UINT
*nNumFormats
);
477 #endif /* WGL_EXT_pixel_format */
479 #ifndef WGL_EXT_pixel_format_packed_float
480 #define WGL_EXT_pixel_format_packed_float 1
481 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
482 #endif /* WGL_EXT_pixel_format_packed_float */
484 #ifndef WGL_EXT_swap_control
485 #define WGL_EXT_swap_control 1
486 typedef BOOL (WINAPI
* PFNWGLSWAPINTERVALEXTPROC
) (int interval
);
487 typedef int (WINAPI
* PFNWGLGETSWAPINTERVALEXTPROC
) (void);
488 #ifdef WGL_WGLEXT_PROTOTYPES
489 BOOL WINAPI
wglSwapIntervalEXT (int interval
);
490 int WINAPI
wglGetSwapIntervalEXT (void);
492 #endif /* WGL_EXT_swap_control */
494 #ifndef WGL_EXT_swap_control_tear
495 #define WGL_EXT_swap_control_tear 1
496 #endif /* WGL_EXT_swap_control_tear */
498 #ifndef WGL_I3D_digital_video_control
499 #define WGL_I3D_digital_video_control 1
500 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
501 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
502 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
503 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
504 typedef BOOL (WINAPI
* PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC
) (HDC hDC
, int iAttribute
, int *piValue
);
505 typedef BOOL (WINAPI
* PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC
) (HDC hDC
, int iAttribute
, const int *piValue
);
506 #ifdef WGL_WGLEXT_PROTOTYPES
507 BOOL WINAPI
wglGetDigitalVideoParametersI3D (HDC hDC
, int iAttribute
, int *piValue
);
508 BOOL WINAPI
wglSetDigitalVideoParametersI3D (HDC hDC
, int iAttribute
, const int *piValue
);
510 #endif /* WGL_I3D_digital_video_control */
512 #ifndef WGL_I3D_gamma
513 #define WGL_I3D_gamma 1
514 #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
515 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
516 typedef BOOL (WINAPI
* PFNWGLGETGAMMATABLEPARAMETERSI3DPROC
) (HDC hDC
, int iAttribute
, int *piValue
);
517 typedef BOOL (WINAPI
* PFNWGLSETGAMMATABLEPARAMETERSI3DPROC
) (HDC hDC
, int iAttribute
, const int *piValue
);
518 typedef BOOL (WINAPI
* PFNWGLGETGAMMATABLEI3DPROC
) (HDC hDC
, int iEntries
, USHORT
*puRed
, USHORT
*puGreen
, USHORT
*puBlue
);
519 typedef BOOL (WINAPI
* PFNWGLSETGAMMATABLEI3DPROC
) (HDC hDC
, int iEntries
, const USHORT
*puRed
, const USHORT
*puGreen
, const USHORT
*puBlue
);
520 #ifdef WGL_WGLEXT_PROTOTYPES
521 BOOL WINAPI
wglGetGammaTableParametersI3D (HDC hDC
, int iAttribute
, int *piValue
);
522 BOOL WINAPI
wglSetGammaTableParametersI3D (HDC hDC
, int iAttribute
, const int *piValue
);
523 BOOL WINAPI
wglGetGammaTableI3D (HDC hDC
, int iEntries
, USHORT
*puRed
, USHORT
*puGreen
, USHORT
*puBlue
);
524 BOOL WINAPI
wglSetGammaTableI3D (HDC hDC
, int iEntries
, const USHORT
*puRed
, const USHORT
*puGreen
, const USHORT
*puBlue
);
526 #endif /* WGL_I3D_gamma */
528 #ifndef WGL_I3D_genlock
529 #define WGL_I3D_genlock 1
530 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
531 #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
532 #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
533 #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
534 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
535 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
536 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
537 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
538 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
539 typedef BOOL (WINAPI
* PFNWGLENABLEGENLOCKI3DPROC
) (HDC hDC
);
540 typedef BOOL (WINAPI
* PFNWGLDISABLEGENLOCKI3DPROC
) (HDC hDC
);
541 typedef BOOL (WINAPI
* PFNWGLISENABLEDGENLOCKI3DPROC
) (HDC hDC
, BOOL
*pFlag
);
542 typedef BOOL (WINAPI
* PFNWGLGENLOCKSOURCEI3DPROC
) (HDC hDC
, UINT uSource
);
543 typedef BOOL (WINAPI
* PFNWGLGETGENLOCKSOURCEI3DPROC
) (HDC hDC
, UINT
*uSource
);
544 typedef BOOL (WINAPI
* PFNWGLGENLOCKSOURCEEDGEI3DPROC
) (HDC hDC
, UINT uEdge
);
545 typedef BOOL (WINAPI
* PFNWGLGETGENLOCKSOURCEEDGEI3DPROC
) (HDC hDC
, UINT
*uEdge
);
546 typedef BOOL (WINAPI
* PFNWGLGENLOCKSAMPLERATEI3DPROC
) (HDC hDC
, UINT uRate
);
547 typedef BOOL (WINAPI
* PFNWGLGETGENLOCKSAMPLERATEI3DPROC
) (HDC hDC
, UINT
*uRate
);
548 typedef BOOL (WINAPI
* PFNWGLGENLOCKSOURCEDELAYI3DPROC
) (HDC hDC
, UINT uDelay
);
549 typedef BOOL (WINAPI
* PFNWGLGETGENLOCKSOURCEDELAYI3DPROC
) (HDC hDC
, UINT
*uDelay
);
550 typedef BOOL (WINAPI
* PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC
) (HDC hDC
, UINT
*uMaxLineDelay
, UINT
*uMaxPixelDelay
);
551 #ifdef WGL_WGLEXT_PROTOTYPES
552 BOOL WINAPI
wglEnableGenlockI3D (HDC hDC
);
553 BOOL WINAPI
wglDisableGenlockI3D (HDC hDC
);
554 BOOL WINAPI
wglIsEnabledGenlockI3D (HDC hDC
, BOOL
*pFlag
);
555 BOOL WINAPI
wglGenlockSourceI3D (HDC hDC
, UINT uSource
);
556 BOOL WINAPI
wglGetGenlockSourceI3D (HDC hDC
, UINT
*uSource
);
557 BOOL WINAPI
wglGenlockSourceEdgeI3D (HDC hDC
, UINT uEdge
);
558 BOOL WINAPI
wglGetGenlockSourceEdgeI3D (HDC hDC
, UINT
*uEdge
);
559 BOOL WINAPI
wglGenlockSampleRateI3D (HDC hDC
, UINT uRate
);
560 BOOL WINAPI
wglGetGenlockSampleRateI3D (HDC hDC
, UINT
*uRate
);
561 BOOL WINAPI
wglGenlockSourceDelayI3D (HDC hDC
, UINT uDelay
);
562 BOOL WINAPI
wglGetGenlockSourceDelayI3D (HDC hDC
, UINT
*uDelay
);
563 BOOL WINAPI
wglQueryGenlockMaxSourceDelayI3D (HDC hDC
, UINT
*uMaxLineDelay
, UINT
*uMaxPixelDelay
);
565 #endif /* WGL_I3D_genlock */
567 #ifndef WGL_I3D_image_buffer
568 #define WGL_I3D_image_buffer 1
569 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
570 #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
571 typedef LPVOID (WINAPI
* PFNWGLCREATEIMAGEBUFFERI3DPROC
) (HDC hDC
, DWORD dwSize
, UINT uFlags
);
572 typedef BOOL (WINAPI
* PFNWGLDESTROYIMAGEBUFFERI3DPROC
) (HDC hDC
, LPVOID pAddress
);
573 typedef BOOL (WINAPI
* PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC
) (HDC hDC
, const HANDLE
*pEvent
, const LPVOID
*pAddress
, const DWORD
*pSize
, UINT count
);
574 typedef BOOL (WINAPI
* PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC
) (HDC hDC
, const LPVOID
*pAddress
, UINT count
);
575 #ifdef WGL_WGLEXT_PROTOTYPES
576 LPVOID WINAPI
wglCreateImageBufferI3D (HDC hDC
, DWORD dwSize
, UINT uFlags
);
577 BOOL WINAPI
wglDestroyImageBufferI3D (HDC hDC
, LPVOID pAddress
);
578 BOOL WINAPI
wglAssociateImageBufferEventsI3D (HDC hDC
, const HANDLE
*pEvent
, const LPVOID
*pAddress
, const DWORD
*pSize
, UINT count
);
579 BOOL WINAPI
wglReleaseImageBufferEventsI3D (HDC hDC
, const LPVOID
*pAddress
, UINT count
);
581 #endif /* WGL_I3D_image_buffer */
583 #ifndef WGL_I3D_swap_frame_lock
584 #define WGL_I3D_swap_frame_lock 1
585 typedef BOOL (WINAPI
* PFNWGLENABLEFRAMELOCKI3DPROC
) (void);
586 typedef BOOL (WINAPI
* PFNWGLDISABLEFRAMELOCKI3DPROC
) (void);
587 typedef BOOL (WINAPI
* PFNWGLISENABLEDFRAMELOCKI3DPROC
) (BOOL
*pFlag
);
588 typedef BOOL (WINAPI
* PFNWGLQUERYFRAMELOCKMASTERI3DPROC
) (BOOL
*pFlag
);
589 #ifdef WGL_WGLEXT_PROTOTYPES
590 BOOL WINAPI
wglEnableFrameLockI3D (void);
591 BOOL WINAPI
wglDisableFrameLockI3D (void);
592 BOOL WINAPI
wglIsEnabledFrameLockI3D (BOOL
*pFlag
);
593 BOOL WINAPI
wglQueryFrameLockMasterI3D (BOOL
*pFlag
);
595 #endif /* WGL_I3D_swap_frame_lock */
597 #ifndef WGL_I3D_swap_frame_usage
598 #define WGL_I3D_swap_frame_usage 1
599 typedef BOOL (WINAPI
* PFNWGLGETFRAMEUSAGEI3DPROC
) (float *pUsage
);
600 typedef BOOL (WINAPI
* PFNWGLBEGINFRAMETRACKINGI3DPROC
) (void);
601 typedef BOOL (WINAPI
* PFNWGLENDFRAMETRACKINGI3DPROC
) (void);
602 typedef BOOL (WINAPI
* PFNWGLQUERYFRAMETRACKINGI3DPROC
) (DWORD
*pFrameCount
, DWORD
*pMissedFrames
, float *pLastMissedUsage
);
603 #ifdef WGL_WGLEXT_PROTOTYPES
604 BOOL WINAPI
wglGetFrameUsageI3D (float *pUsage
);
605 BOOL WINAPI
wglBeginFrameTrackingI3D (void);
606 BOOL WINAPI
wglEndFrameTrackingI3D (void);
607 BOOL WINAPI
wglQueryFrameTrackingI3D (DWORD
*pFrameCount
, DWORD
*pMissedFrames
, float *pLastMissedUsage
);
609 #endif /* WGL_I3D_swap_frame_usage */
611 #ifndef WGL_NV_DX_interop
612 #define WGL_NV_DX_interop 1
613 #define WGL_ACCESS_READ_ONLY_NV 0x00000000
614 #define WGL_ACCESS_READ_WRITE_NV 0x00000001
615 #define WGL_ACCESS_WRITE_DISCARD_NV 0x00000002
616 typedef BOOL (WINAPI
* PFNWGLDXSETRESOURCESHAREHANDLENVPROC
) (void *dxObject
, HANDLE shareHandle
);
617 typedef HANDLE (WINAPI
* PFNWGLDXOPENDEVICENVPROC
) (void *dxDevice
);
618 typedef BOOL (WINAPI
* PFNWGLDXCLOSEDEVICENVPROC
) (HANDLE hDevice
);
619 typedef HANDLE (WINAPI
* PFNWGLDXREGISTEROBJECTNVPROC
) (HANDLE hDevice
, void *dxObject
, GLuint name
, GLenum type
, GLenum access
);
620 typedef BOOL (WINAPI
* PFNWGLDXUNREGISTEROBJECTNVPROC
) (HANDLE hDevice
, HANDLE hObject
);
621 typedef BOOL (WINAPI
* PFNWGLDXOBJECTACCESSNVPROC
) (HANDLE hObject
, GLenum access
);
622 typedef BOOL (WINAPI
* PFNWGLDXLOCKOBJECTSNVPROC
) (HANDLE hDevice
, GLint count
, HANDLE
*hObjects
);
623 typedef BOOL (WINAPI
* PFNWGLDXUNLOCKOBJECTSNVPROC
) (HANDLE hDevice
, GLint count
, HANDLE
*hObjects
);
624 #ifdef WGL_WGLEXT_PROTOTYPES
625 BOOL WINAPI
wglDXSetResourceShareHandleNV (void *dxObject
, HANDLE shareHandle
);
626 HANDLE WINAPI
wglDXOpenDeviceNV (void *dxDevice
);
627 BOOL WINAPI
wglDXCloseDeviceNV (HANDLE hDevice
);
628 HANDLE WINAPI
wglDXRegisterObjectNV (HANDLE hDevice
, void *dxObject
, GLuint name
, GLenum type
, GLenum access
);
629 BOOL WINAPI
wglDXUnregisterObjectNV (HANDLE hDevice
, HANDLE hObject
);
630 BOOL WINAPI
wglDXObjectAccessNV (HANDLE hObject
, GLenum access
);
631 BOOL WINAPI
wglDXLockObjectsNV (HANDLE hDevice
, GLint count
, HANDLE
*hObjects
);
632 BOOL WINAPI
wglDXUnlockObjectsNV (HANDLE hDevice
, GLint count
, HANDLE
*hObjects
);
634 #endif /* WGL_NV_DX_interop */
636 #ifndef WGL_NV_DX_interop2
637 #define WGL_NV_DX_interop2 1
638 #endif /* WGL_NV_DX_interop2 */
640 #ifndef WGL_NV_copy_image
641 #define WGL_NV_copy_image 1
642 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
);
643 #ifdef WGL_WGLEXT_PROTOTYPES
644 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
);
646 #endif /* WGL_NV_copy_image */
648 #ifndef WGL_NV_delay_before_swap
649 #define WGL_NV_delay_before_swap 1
650 typedef BOOL (WINAPI
* PFNWGLDELAYBEFORESWAPNVPROC
) (HDC hDC
, GLfloat seconds
);
651 #ifdef WGL_WGLEXT_PROTOTYPES
652 BOOL WINAPI
wglDelayBeforeSwapNV (HDC hDC
, GLfloat seconds
);
654 #endif /* WGL_NV_delay_before_swap */
656 #ifndef WGL_NV_float_buffer
657 #define WGL_NV_float_buffer 1
658 #define WGL_FLOAT_COMPONENTS_NV 0x20B0
659 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
660 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
661 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
662 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
663 #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
664 #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
665 #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
666 #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
667 #endif /* WGL_NV_float_buffer */
669 #ifndef WGL_NV_gpu_affinity
670 #define WGL_NV_gpu_affinity 1
671 DECLARE_HANDLE(HGPUNV
);
675 CHAR DeviceString
[128];
677 RECT rcVirtualScreen
;
679 typedef struct _GPU_DEVICE
*PGPU_DEVICE
;
680 #define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
681 #define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
682 typedef BOOL (WINAPI
* PFNWGLENUMGPUSNVPROC
) (UINT iGpuIndex
, HGPUNV
*phGpu
);
683 typedef BOOL (WINAPI
* PFNWGLENUMGPUDEVICESNVPROC
) (HGPUNV hGpu
, UINT iDeviceIndex
, PGPU_DEVICE lpGpuDevice
);
684 typedef HDC (WINAPI
* PFNWGLCREATEAFFINITYDCNVPROC
) (const HGPUNV
*phGpuList
);
685 typedef BOOL (WINAPI
* PFNWGLENUMGPUSFROMAFFINITYDCNVPROC
) (HDC hAffinityDC
, UINT iGpuIndex
, HGPUNV
*hGpu
);
686 typedef BOOL (WINAPI
* PFNWGLDELETEDCNVPROC
) (HDC hdc
);
687 #ifdef WGL_WGLEXT_PROTOTYPES
688 BOOL WINAPI
wglEnumGpusNV (UINT iGpuIndex
, HGPUNV
*phGpu
);
689 BOOL WINAPI
wglEnumGpuDevicesNV (HGPUNV hGpu
, UINT iDeviceIndex
, PGPU_DEVICE lpGpuDevice
);
690 HDC WINAPI
wglCreateAffinityDCNV (const HGPUNV
*phGpuList
);
691 BOOL WINAPI
wglEnumGpusFromAffinityDCNV (HDC hAffinityDC
, UINT iGpuIndex
, HGPUNV
*hGpu
);
692 BOOL WINAPI
wglDeleteDCNV (HDC hdc
);
694 #endif /* WGL_NV_gpu_affinity */
696 #ifndef WGL_NV_multisample_coverage
697 #define WGL_NV_multisample_coverage 1
698 #define WGL_COVERAGE_SAMPLES_NV 0x2042
699 #define WGL_COLOR_SAMPLES_NV 0x20B9
700 #endif /* WGL_NV_multisample_coverage */
702 #ifndef WGL_NV_present_video
703 #define WGL_NV_present_video 1
704 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV
);
705 #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
706 typedef int (WINAPI
* PFNWGLENUMERATEVIDEODEVICESNVPROC
) (HDC hDC
, HVIDEOOUTPUTDEVICENV
*phDeviceList
);
707 typedef BOOL (WINAPI
* PFNWGLBINDVIDEODEVICENVPROC
) (HDC hDC
, unsigned int uVideoSlot
, HVIDEOOUTPUTDEVICENV hVideoDevice
, const int *piAttribList
);
708 typedef BOOL (WINAPI
* PFNWGLQUERYCURRENTCONTEXTNVPROC
) (int iAttribute
, int *piValue
);
709 #ifdef WGL_WGLEXT_PROTOTYPES
710 int WINAPI
wglEnumerateVideoDevicesNV (HDC hDC
, HVIDEOOUTPUTDEVICENV
*phDeviceList
);
711 BOOL WINAPI
wglBindVideoDeviceNV (HDC hDC
, unsigned int uVideoSlot
, HVIDEOOUTPUTDEVICENV hVideoDevice
, const int *piAttribList
);
712 BOOL WINAPI
wglQueryCurrentContextNV (int iAttribute
, int *piValue
);
714 #endif /* WGL_NV_present_video */
716 #ifndef WGL_NV_render_depth_texture
717 #define WGL_NV_render_depth_texture 1
718 #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
719 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
720 #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
721 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
722 #define WGL_DEPTH_COMPONENT_NV 0x20A7
723 #endif /* WGL_NV_render_depth_texture */
725 #ifndef WGL_NV_render_texture_rectangle
726 #define WGL_NV_render_texture_rectangle 1
727 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
728 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
729 #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
730 #endif /* WGL_NV_render_texture_rectangle */
732 #ifndef WGL_NV_swap_group
733 #define WGL_NV_swap_group 1
734 typedef BOOL (WINAPI
* PFNWGLJOINSWAPGROUPNVPROC
) (HDC hDC
, GLuint group
);
735 typedef BOOL (WINAPI
* PFNWGLBINDSWAPBARRIERNVPROC
) (GLuint group
, GLuint barrier
);
736 typedef BOOL (WINAPI
* PFNWGLQUERYSWAPGROUPNVPROC
) (HDC hDC
, GLuint
*group
, GLuint
*barrier
);
737 typedef BOOL (WINAPI
* PFNWGLQUERYMAXSWAPGROUPSNVPROC
) (HDC hDC
, GLuint
*maxGroups
, GLuint
*maxBarriers
);
738 typedef BOOL (WINAPI
* PFNWGLQUERYFRAMECOUNTNVPROC
) (HDC hDC
, GLuint
*count
);
739 typedef BOOL (WINAPI
* PFNWGLRESETFRAMECOUNTNVPROC
) (HDC hDC
);
740 #ifdef WGL_WGLEXT_PROTOTYPES
741 BOOL WINAPI
wglJoinSwapGroupNV (HDC hDC
, GLuint group
);
742 BOOL WINAPI
wglBindSwapBarrierNV (GLuint group
, GLuint barrier
);
743 BOOL WINAPI
wglQuerySwapGroupNV (HDC hDC
, GLuint
*group
, GLuint
*barrier
);
744 BOOL WINAPI
wglQueryMaxSwapGroupsNV (HDC hDC
, GLuint
*maxGroups
, GLuint
*maxBarriers
);
745 BOOL WINAPI
wglQueryFrameCountNV (HDC hDC
, GLuint
*count
);
746 BOOL WINAPI
wglResetFrameCountNV (HDC hDC
);
748 #endif /* WGL_NV_swap_group */
750 #ifndef WGL_NV_vertex_array_range
751 #define WGL_NV_vertex_array_range 1
752 typedef void *(WINAPI
* PFNWGLALLOCATEMEMORYNVPROC
) (GLsizei size
, GLfloat readfreq
, GLfloat writefreq
, GLfloat priority
);
753 typedef void (WINAPI
* PFNWGLFREEMEMORYNVPROC
) (void *pointer
);
754 #ifdef WGL_WGLEXT_PROTOTYPES
755 void *WINAPI
wglAllocateMemoryNV (GLsizei size
, GLfloat readfreq
, GLfloat writefreq
, GLfloat priority
);
756 void WINAPI
wglFreeMemoryNV (void *pointer
);
758 #endif /* WGL_NV_vertex_array_range */
760 #ifndef WGL_NV_video_capture
761 #define WGL_NV_video_capture 1
762 DECLARE_HANDLE(HVIDEOINPUTDEVICENV
);
763 #define WGL_UNIQUE_ID_NV 0x20CE
764 #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
765 typedef BOOL (WINAPI
* PFNWGLBINDVIDEOCAPTUREDEVICENVPROC
) (UINT uVideoSlot
, HVIDEOINPUTDEVICENV hDevice
);
766 typedef UINT (WINAPI
* PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC
) (HDC hDc
, HVIDEOINPUTDEVICENV
*phDeviceList
);
767 typedef BOOL (WINAPI
* PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC
) (HDC hDc
, HVIDEOINPUTDEVICENV hDevice
);
768 typedef BOOL (WINAPI
* PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC
) (HDC hDc
, HVIDEOINPUTDEVICENV hDevice
, int iAttribute
, int *piValue
);
769 typedef BOOL (WINAPI
* PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC
) (HDC hDc
, HVIDEOINPUTDEVICENV hDevice
);
770 #ifdef WGL_WGLEXT_PROTOTYPES
771 BOOL WINAPI
wglBindVideoCaptureDeviceNV (UINT uVideoSlot
, HVIDEOINPUTDEVICENV hDevice
);
772 UINT WINAPI
wglEnumerateVideoCaptureDevicesNV (HDC hDc
, HVIDEOINPUTDEVICENV
*phDeviceList
);
773 BOOL WINAPI
wglLockVideoCaptureDeviceNV (HDC hDc
, HVIDEOINPUTDEVICENV hDevice
);
774 BOOL WINAPI
wglQueryVideoCaptureDeviceNV (HDC hDc
, HVIDEOINPUTDEVICENV hDevice
, int iAttribute
, int *piValue
);
775 BOOL WINAPI
wglReleaseVideoCaptureDeviceNV (HDC hDc
, HVIDEOINPUTDEVICENV hDevice
);
777 #endif /* WGL_NV_video_capture */
779 #ifndef WGL_NV_video_output
780 #define WGL_NV_video_output 1
781 DECLARE_HANDLE(HPVIDEODEV
);
782 #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
783 #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
784 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
785 #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
786 #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
787 #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
788 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
789 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
790 #define WGL_VIDEO_OUT_FRAME 0x20C8
791 #define WGL_VIDEO_OUT_FIELD_1 0x20C9
792 #define WGL_VIDEO_OUT_FIELD_2 0x20CA
793 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
794 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
795 typedef BOOL (WINAPI
* PFNWGLGETVIDEODEVICENVPROC
) (HDC hDC
, int numDevices
, HPVIDEODEV
*hVideoDevice
);
796 typedef BOOL (WINAPI
* PFNWGLRELEASEVIDEODEVICENVPROC
) (HPVIDEODEV hVideoDevice
);
797 typedef BOOL (WINAPI
* PFNWGLBINDVIDEOIMAGENVPROC
) (HPVIDEODEV hVideoDevice
, HPBUFFERARB hPbuffer
, int iVideoBuffer
);
798 typedef BOOL (WINAPI
* PFNWGLRELEASEVIDEOIMAGENVPROC
) (HPBUFFERARB hPbuffer
, int iVideoBuffer
);
799 typedef BOOL (WINAPI
* PFNWGLSENDPBUFFERTOVIDEONVPROC
) (HPBUFFERARB hPbuffer
, int iBufferType
, unsigned long *pulCounterPbuffer
, BOOL bBlock
);
800 typedef BOOL (WINAPI
* PFNWGLGETVIDEOINFONVPROC
) (HPVIDEODEV hpVideoDevice
, unsigned long *pulCounterOutputPbuffer
, unsigned long *pulCounterOutputVideo
);
801 #ifdef WGL_WGLEXT_PROTOTYPES
802 BOOL WINAPI
wglGetVideoDeviceNV (HDC hDC
, int numDevices
, HPVIDEODEV
*hVideoDevice
);
803 BOOL WINAPI
wglReleaseVideoDeviceNV (HPVIDEODEV hVideoDevice
);
804 BOOL WINAPI
wglBindVideoImageNV (HPVIDEODEV hVideoDevice
, HPBUFFERARB hPbuffer
, int iVideoBuffer
);
805 BOOL WINAPI
wglReleaseVideoImageNV (HPBUFFERARB hPbuffer
, int iVideoBuffer
);
806 BOOL WINAPI
wglSendPbufferToVideoNV (HPBUFFERARB hPbuffer
, int iBufferType
, unsigned long *pulCounterPbuffer
, BOOL bBlock
);
807 BOOL WINAPI
wglGetVideoInfoNV (HPVIDEODEV hpVideoDevice
, unsigned long *pulCounterOutputPbuffer
, unsigned long *pulCounterOutputVideo
);
809 #endif /* WGL_NV_video_output */
811 #ifndef WGL_OML_sync_control
812 #define WGL_OML_sync_control 1
813 typedef BOOL (WINAPI
* PFNWGLGETSYNCVALUESOMLPROC
) (HDC hdc
, INT64
*ust
, INT64
*msc
, INT64
*sbc
);
814 typedef BOOL (WINAPI
* PFNWGLGETMSCRATEOMLPROC
) (HDC hdc
, INT32
*numerator
, INT32
*denominator
);
815 typedef INT64 (WINAPI
* PFNWGLSWAPBUFFERSMSCOMLPROC
) (HDC hdc
, INT64 target_msc
, INT64 divisor
, INT64 remainder
);
816 typedef INT64 (WINAPI
* PFNWGLSWAPLAYERBUFFERSMSCOMLPROC
) (HDC hdc
, int fuPlanes
, INT64 target_msc
, INT64 divisor
, INT64 remainder
);
817 typedef BOOL (WINAPI
* PFNWGLWAITFORMSCOMLPROC
) (HDC hdc
, INT64 target_msc
, INT64 divisor
, INT64 remainder
, INT64
*ust
, INT64
*msc
, INT64
*sbc
);
818 typedef BOOL (WINAPI
* PFNWGLWAITFORSBCOMLPROC
) (HDC hdc
, INT64 target_sbc
, INT64
*ust
, INT64
*msc
, INT64
*sbc
);
819 #ifdef WGL_WGLEXT_PROTOTYPES
820 BOOL WINAPI
wglGetSyncValuesOML (HDC hdc
, INT64
*ust
, INT64
*msc
, INT64
*sbc
);
821 BOOL WINAPI
wglGetMscRateOML (HDC hdc
, INT32
*numerator
, INT32
*denominator
);
822 INT64 WINAPI
wglSwapBuffersMscOML (HDC hdc
, INT64 target_msc
, INT64 divisor
, INT64 remainder
);
823 INT64 WINAPI
wglSwapLayerBuffersMscOML (HDC hdc
, int fuPlanes
, INT64 target_msc
, INT64 divisor
, INT64 remainder
);
824 BOOL WINAPI
wglWaitForMscOML (HDC hdc
, INT64 target_msc
, INT64 divisor
, INT64 remainder
, INT64
*ust
, INT64
*msc
, INT64
*sbc
);
825 BOOL WINAPI
wglWaitForSbcOML (HDC hdc
, INT64 target_sbc
, INT64
*ust
, INT64
*msc
, INT64
*sbc
);
827 #endif /* WGL_OML_sync_control */