/[pcsx2_0.9.7]/trunk/3rdparty/GL/wglext.h
ViewVC logotype

Annotation of /trunk/3rdparty/GL/wglext.h

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.22