Merge branch 'mesa_7_5_branch'
[mesa.git] / include / GL / wglext.h
1 #ifndef __wglext_h_
2 #define __wglext_h_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /*
9 ** Copyright (c) 2007-2009 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 2009/08/03 */
52 /* Current version at http://www.opengl.org/registry/ */
53 #define WGL_WGLEXT_VERSION 15
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
392 /*************************************************************/
393
394 #ifndef WGL_ARB_pbuffer
395 DECLARE_HANDLE(HPBUFFERARB);
396 #endif
397 #ifndef WGL_EXT_pbuffer
398 DECLARE_HANDLE(HPBUFFEREXT);
399 #endif
400 #ifndef WGL_NV_present_video
401 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
402 #endif
403 #ifndef WGL_NV_video_out
404 DECLARE_HANDLE(HPVIDEODEV);
405 #endif
406 #ifndef WGL_NV_gpu_affinity
407 DECLARE_HANDLE(HPGPUNV);
408 DECLARE_HANDLE(HGPUNV);
409
410 typedef struct _GPU_DEVICE {
411 DWORD cb;
412 CHAR DeviceName[32];
413 CHAR DeviceString[128];
414 DWORD Flags;
415 RECT rcVirtualScreen;
416 } GPU_DEVICE, *PGPU_DEVICE;
417 #endif
418
419 #ifndef WGL_ARB_buffer_region
420 #define WGL_ARB_buffer_region 1
421 #ifdef WGL_WGLEXT_PROTOTYPES
422 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
423 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
424 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
425 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
426 #endif /* WGL_WGLEXT_PROTOTYPES */
427 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
428 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
429 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
430 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
431 #endif
432
433 #ifndef WGL_ARB_multisample
434 #define WGL_ARB_multisample 1
435 #endif
436
437 #ifndef WGL_ARB_extensions_string
438 #define WGL_ARB_extensions_string 1
439 #ifdef WGL_WGLEXT_PROTOTYPES
440 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
441 #endif /* WGL_WGLEXT_PROTOTYPES */
442 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
443 #endif
444
445 #ifndef WGL_ARB_pixel_format
446 #define WGL_ARB_pixel_format 1
447 #ifdef WGL_WGLEXT_PROTOTYPES
448 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
449 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
450 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
451 #endif /* WGL_WGLEXT_PROTOTYPES */
452 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
453 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
454 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
455 #endif
456
457 #ifndef WGL_ARB_make_current_read
458 #define WGL_ARB_make_current_read 1
459 #ifdef WGL_WGLEXT_PROTOTYPES
460 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
461 extern HDC WINAPI wglGetCurrentReadDCARB (void);
462 #endif /* WGL_WGLEXT_PROTOTYPES */
463 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
464 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
465 #endif
466
467 #ifndef WGL_ARB_pbuffer
468 #define WGL_ARB_pbuffer 1
469 #ifdef WGL_WGLEXT_PROTOTYPES
470 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
471 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
472 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
473 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
474 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
475 #endif /* WGL_WGLEXT_PROTOTYPES */
476 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
477 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
478 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
479 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
480 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
481 #endif
482
483 #ifndef WGL_ARB_render_texture
484 #define WGL_ARB_render_texture 1
485 #ifdef WGL_WGLEXT_PROTOTYPES
486 extern BOOL WINAPI wglBindTexImageARB (HPBUFFERARB, int);
487 extern BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB, int);
488 extern BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB, const int *);
489 #endif /* WGL_WGLEXT_PROTOTYPES */
490 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
491 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
492 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
493 #endif
494
495 #ifndef WGL_ARB_pixel_format_float
496 #define WGL_ARB_pixel_format_float 1
497 #endif
498
499 #ifndef WGL_ARB_create_context
500 #define WGL_ARB_create_context 1
501 #ifdef WGL_WGLEXT_PROTOTYPES
502 extern HGLRC WINAPI wglCreateContextAttribsARB (HDC, HGLRC, const int *);
503 #endif /* WGL_WGLEXT_PROTOTYPES */
504 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
505 #endif
506
507 #ifndef WGL_ARB_create_context_profile
508 #define WGL_ARB_create_context_profile 1
509 #endif
510
511 #ifndef WGL_EXT_display_color_table
512 #define WGL_EXT_display_color_table 1
513 #ifdef WGL_WGLEXT_PROTOTYPES
514 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
515 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
516 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
517 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
518 #endif /* WGL_WGLEXT_PROTOTYPES */
519 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
520 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
521 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
522 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
523 #endif
524
525 #ifndef WGL_EXT_extensions_string
526 #define WGL_EXT_extensions_string 1
527 #ifdef WGL_WGLEXT_PROTOTYPES
528 extern const char * WINAPI wglGetExtensionsStringEXT (void);
529 #endif /* WGL_WGLEXT_PROTOTYPES */
530 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
531 #endif
532
533 #ifndef WGL_EXT_make_current_read
534 #define WGL_EXT_make_current_read 1
535 #ifdef WGL_WGLEXT_PROTOTYPES
536 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
537 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
538 #endif /* WGL_WGLEXT_PROTOTYPES */
539 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
540 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
541 #endif
542
543 #ifndef WGL_EXT_pbuffer
544 #define WGL_EXT_pbuffer 1
545 #ifdef WGL_WGLEXT_PROTOTYPES
546 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
547 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
548 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
549 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
550 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
551 #endif /* WGL_WGLEXT_PROTOTYPES */
552 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
553 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
554 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
555 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
556 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
557 #endif
558
559 #ifndef WGL_EXT_pixel_format
560 #define WGL_EXT_pixel_format 1
561 #ifdef WGL_WGLEXT_PROTOTYPES
562 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
563 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
564 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
565 #endif /* WGL_WGLEXT_PROTOTYPES */
566 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
567 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
568 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
569 #endif
570
571 #ifndef WGL_EXT_swap_control
572 #define WGL_EXT_swap_control 1
573 #ifdef WGL_WGLEXT_PROTOTYPES
574 extern BOOL WINAPI wglSwapIntervalEXT (int);
575 extern int WINAPI wglGetSwapIntervalEXT (void);
576 #endif /* WGL_WGLEXT_PROTOTYPES */
577 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
578 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
579 #endif
580
581 #ifndef WGL_EXT_depth_float
582 #define WGL_EXT_depth_float 1
583 #endif
584
585 #ifndef WGL_NV_vertex_array_range
586 #define WGL_NV_vertex_array_range 1
587 #ifdef WGL_WGLEXT_PROTOTYPES
588 extern void* WINAPI wglAllocateMemoryNV (GLsizei, GLfloat, GLfloat, GLfloat);
589 extern void WINAPI wglFreeMemoryNV (void *);
590 #endif /* WGL_WGLEXT_PROTOTYPES */
591 typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
592 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
593 #endif
594
595 #ifndef WGL_3DFX_multisample
596 #define WGL_3DFX_multisample 1
597 #endif
598
599 #ifndef WGL_EXT_multisample
600 #define WGL_EXT_multisample 1
601 #endif
602
603 #ifndef WGL_OML_sync_control
604 #define WGL_OML_sync_control 1
605 #ifdef WGL_WGLEXT_PROTOTYPES
606 extern BOOL WINAPI wglGetSyncValuesOML (HDC, INT64 *, INT64 *, INT64 *);
607 extern BOOL WINAPI wglGetMscRateOML (HDC, INT32 *, INT32 *);
608 extern INT64 WINAPI wglSwapBuffersMscOML (HDC, INT64, INT64, INT64);
609 extern INT64 WINAPI wglSwapLayerBuffersMscOML (HDC, int, INT64, INT64, INT64);
610 extern BOOL WINAPI wglWaitForMscOML (HDC, INT64, INT64, INT64, INT64 *, INT64 *, INT64 *);
611 extern BOOL WINAPI wglWaitForSbcOML (HDC, INT64, INT64 *, INT64 *, INT64 *);
612 #endif /* WGL_WGLEXT_PROTOTYPES */
613 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
614 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
615 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
616 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
617 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
618 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
619 #endif
620
621 #ifndef WGL_I3D_digital_video_control
622 #define WGL_I3D_digital_video_control 1
623 #ifdef WGL_WGLEXT_PROTOTYPES
624 extern BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC, int, int *);
625 extern BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC, int, const int *);
626 #endif /* WGL_WGLEXT_PROTOTYPES */
627 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
628 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
629 #endif
630
631 #ifndef WGL_I3D_gamma
632 #define WGL_I3D_gamma 1
633 #ifdef WGL_WGLEXT_PROTOTYPES
634 extern BOOL WINAPI wglGetGammaTableParametersI3D (HDC, int, int *);
635 extern BOOL WINAPI wglSetGammaTableParametersI3D (HDC, int, const int *);
636 extern BOOL WINAPI wglGetGammaTableI3D (HDC, int, USHORT *, USHORT *, USHORT *);
637 extern BOOL WINAPI wglSetGammaTableI3D (HDC, int, const USHORT *, const USHORT *, const USHORT *);
638 #endif /* WGL_WGLEXT_PROTOTYPES */
639 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
640 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
641 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
642 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
643 #endif
644
645 #ifndef WGL_I3D_genlock
646 #define WGL_I3D_genlock 1
647 #ifdef WGL_WGLEXT_PROTOTYPES
648 extern BOOL WINAPI wglEnableGenlockI3D (HDC);
649 extern BOOL WINAPI wglDisableGenlockI3D (HDC);
650 extern BOOL WINAPI wglIsEnabledGenlockI3D (HDC, BOOL *);
651 extern BOOL WINAPI wglGenlockSourceI3D (HDC, UINT);
652 extern BOOL WINAPI wglGetGenlockSourceI3D (HDC, UINT *);
653 extern BOOL WINAPI wglGenlockSourceEdgeI3D (HDC, UINT);
654 extern BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC, UINT *);
655 extern BOOL WINAPI wglGenlockSampleRateI3D (HDC, UINT);
656 extern BOOL WINAPI wglGetGenlockSampleRateI3D (HDC, UINT *);
657 extern BOOL WINAPI wglGenlockSourceDelayI3D (HDC, UINT);
658 extern BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC, UINT *);
659 extern BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC, UINT *, UINT *);
660 #endif /* WGL_WGLEXT_PROTOTYPES */
661 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
662 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
663 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
664 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
665 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
666 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
667 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
668 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
669 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
670 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
671 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
672 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
673 #endif
674
675 #ifndef WGL_I3D_image_buffer
676 #define WGL_I3D_image_buffer 1
677 #ifdef WGL_WGLEXT_PROTOTYPES
678 extern LPVOID WINAPI wglCreateImageBufferI3D (HDC, DWORD, UINT);
679 extern BOOL WINAPI wglDestroyImageBufferI3D (HDC, LPVOID);
680 extern BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC, const HANDLE *, const LPVOID *, const DWORD *, UINT);
681 extern BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC, const LPVOID *, UINT);
682 #endif /* WGL_WGLEXT_PROTOTYPES */
683 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
684 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
685 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
686 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
687 #endif
688
689 #ifndef WGL_I3D_swap_frame_lock
690 #define WGL_I3D_swap_frame_lock 1
691 #ifdef WGL_WGLEXT_PROTOTYPES
692 extern BOOL WINAPI wglEnableFrameLockI3D (void);
693 extern BOOL WINAPI wglDisableFrameLockI3D (void);
694 extern BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *);
695 extern BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *);
696 #endif /* WGL_WGLEXT_PROTOTYPES */
697 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
698 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
699 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
700 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
701 #endif
702
703 #ifndef WGL_I3D_swap_frame_usage
704 #define WGL_I3D_swap_frame_usage 1
705 #ifdef WGL_WGLEXT_PROTOTYPES
706 extern BOOL WINAPI wglGetFrameUsageI3D (float *);
707 extern BOOL WINAPI wglBeginFrameTrackingI3D (void);
708 extern BOOL WINAPI wglEndFrameTrackingI3D (void);
709 extern BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *, DWORD *, float *);
710 #endif /* WGL_WGLEXT_PROTOTYPES */
711 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
712 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
713 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
714 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
715 #endif
716
717 #ifndef WGL_ATI_pixel_format_float
718 #define WGL_ATI_pixel_format_float 1
719 #endif
720
721 #ifndef WGL_NV_float_buffer
722 #define WGL_NV_float_buffer 1
723 #endif
724
725 #ifndef WGL_3DL_stereo_control
726 #define WGL_3DL_stereo_control 1
727 #ifdef WGL_WGLEXT_PROTOTYPES
728 extern BOOL WINAPI wglSetStereoEmitterState3DL (HDC, UINT);
729 #endif /* WGL_WGLEXT_PROTOTYPES */
730 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
731 #endif
732
733 #ifndef WGL_EXT_pixel_format_packed_float
734 #define WGL_EXT_pixel_format_packed_float 1
735 #endif
736
737 #ifndef WGL_EXT_framebuffer_sRGB
738 #define WGL_EXT_framebuffer_sRGB 1
739 #endif
740
741 #ifndef WGL_NV_present_video
742 #define WGL_NV_present_video 1
743 #ifdef WGL_WGLEXT_PROTOTYPES
744 extern int WINAPI wglEnumerateVideoDevicesNV (HDC, HVIDEOOUTPUTDEVICENV *);
745 extern BOOL WINAPI wglBindVideoDeviceNV (HDC, unsigned int, HVIDEOOUTPUTDEVICENV, const int *);
746 extern BOOL WINAPI wglQueryCurrentContextNV (int, int *);
747 #endif /* WGL_WGLEXT_PROTOTYPES */
748 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList);
749 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
750 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue);
751 #endif
752
753 #ifndef WGL_NV_video_out
754 #define WGL_NV_video_out 1
755 #ifdef WGL_WGLEXT_PROTOTYPES
756 extern BOOL WINAPI wglGetVideoDeviceNV (HDC, int, HPVIDEODEV *);
757 extern BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV);
758 extern BOOL WINAPI wglBindVideoImageNV (HPVIDEODEV, HPBUFFERARB, int);
759 extern BOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB, int);
760 extern BOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB, int, unsigned long *, BOOL);
761 extern BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV, unsigned long *, unsigned long *);
762 #endif /* WGL_WGLEXT_PROTOTYPES */
763 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
764 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
765 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
766 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
767 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
768 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
769 #endif
770
771 #ifndef WGL_NV_swap_group
772 #define WGL_NV_swap_group 1
773 #ifdef WGL_WGLEXT_PROTOTYPES
774 extern BOOL WINAPI wglJoinSwapGroupNV (HDC, GLuint);
775 extern BOOL WINAPI wglBindSwapBarrierNV (GLuint, GLuint);
776 extern BOOL WINAPI wglQuerySwapGroupNV (HDC, GLuint *, GLuint *);
777 extern BOOL WINAPI wglQueryMaxSwapGroupsNV (HDC, GLuint *, GLuint *);
778 extern BOOL WINAPI wglQueryFrameCountNV (HDC, GLuint *);
779 extern BOOL WINAPI wglResetFrameCountNV (HDC);
780 #endif /* WGL_WGLEXT_PROTOTYPES */
781 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
782 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
783 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier);
784 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
785 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count);
786 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
787 #endif
788
789 #ifndef WGL_NV_gpu_affinity
790 #define WGL_NV_gpu_affinity 1
791 #ifdef WGL_WGLEXT_PROTOTYPES
792 extern BOOL WINAPI wglEnumGpusNV (UINT, HGPUNV *);
793 extern BOOL WINAPI wglEnumGpuDevicesNV (HGPUNV, UINT, PGPU_DEVICE);
794 extern HDC WINAPI wglCreateAffinityDCNV (const HGPUNV *);
795 extern BOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC, UINT, HGPUNV *);
796 extern BOOL WINAPI wglDeleteDCNV (HDC);
797 #endif /* WGL_WGLEXT_PROTOTYPES */
798 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
799 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
800 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
801 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
802 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
803 #endif
804
805 #ifndef WGL_AMD_gpu_association
806 #define WGL_AMD_gpu_association 1
807 #ifdef WGL_WGLEXT_PROTOTYPES
808 extern UINT WINAPI wglGetGPUIDsAMD (UINT, UINT *);
809 extern INT WINAPI wglGetGPUInfoAMD (UINT, int, GLenum, UINT, void *);
810 extern UINT WINAPI wglGetContextGPUIDAMD (HGLRC);
811 extern HGLRC WINAPI wglCreateAssociatedContextAMD (UINT);
812 extern HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT, HGLRC, const int *);
813 extern BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC);
814 extern BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC);
815 extern HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void);
816 extern VOID WINAPI wglBlitContextFramebufferAMD (HGLRC, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
817 #endif /* WGL_WGLEXT_PROTOTYPES */
818 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids);
819 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, int property, GLenum dataType, UINT size, void *data);
820 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
821 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
822 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList);
823 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
824 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
825 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
826 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);
827 #endif
828
829
830 #ifdef __cplusplus
831 }
832 #endif
833
834 #endif