VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/vmsvga_glext/wglext.h@ 99679

最後變更 在這個檔案從99679是 95751,由 vboxsync 提交於 2 年 前

Devices/Graphics: Switch to new OpenGL headers, bugref:8515

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette