]> git.cworth.org Git - apitrace/blob - wglext.h
Cleanup.
[apitrace] / 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/03/03 */
52 /* Current version at http://www.opengl.org/registry/ */
53 #define WGL_WGLEXT_VERSION 12
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      0x0001
180 #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
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_EXT_make_current_read
189 #define ERROR_INVALID_PIXEL_TYPE_EXT   0x2043
190 #endif
191
192 #ifndef WGL_EXT_pixel_format
193 #define WGL_NUMBER_PIXEL_FORMATS_EXT   0x2000
194 #define WGL_DRAW_TO_WINDOW_EXT         0x2001
195 #define WGL_DRAW_TO_BITMAP_EXT         0x2002
196 #define WGL_ACCELERATION_EXT           0x2003
197 #define WGL_NEED_PALETTE_EXT           0x2004
198 #define WGL_NEED_SYSTEM_PALETTE_EXT    0x2005
199 #define WGL_SWAP_LAYER_BUFFERS_EXT     0x2006
200 #define WGL_SWAP_METHOD_EXT            0x2007
201 #define WGL_NUMBER_OVERLAYS_EXT        0x2008
202 #define WGL_NUMBER_UNDERLAYS_EXT       0x2009
203 #define WGL_TRANSPARENT_EXT            0x200A
204 #define WGL_TRANSPARENT_VALUE_EXT      0x200B
205 #define WGL_SHARE_DEPTH_EXT            0x200C
206 #define WGL_SHARE_STENCIL_EXT          0x200D
207 #define WGL_SHARE_ACCUM_EXT            0x200E
208 #define WGL_SUPPORT_GDI_EXT            0x200F
209 #define WGL_SUPPORT_OPENGL_EXT         0x2010
210 #define WGL_DOUBLE_BUFFER_EXT          0x2011
211 #define WGL_STEREO_EXT                 0x2012
212 #define WGL_PIXEL_TYPE_EXT             0x2013
213 #define WGL_COLOR_BITS_EXT             0x2014
214 #define WGL_RED_BITS_EXT               0x2015
215 #define WGL_RED_SHIFT_EXT              0x2016
216 #define WGL_GREEN_BITS_EXT             0x2017
217 #define WGL_GREEN_SHIFT_EXT            0x2018
218 #define WGL_BLUE_BITS_EXT              0x2019
219 #define WGL_BLUE_SHIFT_EXT             0x201A
220 #define WGL_ALPHA_BITS_EXT             0x201B
221 #define WGL_ALPHA_SHIFT_EXT            0x201C
222 #define WGL_ACCUM_BITS_EXT             0x201D
223 #define WGL_ACCUM_RED_BITS_EXT         0x201E
224 #define WGL_ACCUM_GREEN_BITS_EXT       0x201F
225 #define WGL_ACCUM_BLUE_BITS_EXT        0x2020
226 #define WGL_ACCUM_ALPHA_BITS_EXT       0x2021
227 #define WGL_DEPTH_BITS_EXT             0x2022
228 #define WGL_STENCIL_BITS_EXT           0x2023
229 #define WGL_AUX_BUFFERS_EXT            0x2024
230 #define WGL_NO_ACCELERATION_EXT        0x2025
231 #define WGL_GENERIC_ACCELERATION_EXT   0x2026
232 #define WGL_FULL_ACCELERATION_EXT      0x2027
233 #define WGL_SWAP_EXCHANGE_EXT          0x2028
234 #define WGL_SWAP_COPY_EXT              0x2029
235 #define WGL_SWAP_UNDEFINED_EXT         0x202A
236 #define WGL_TYPE_RGBA_EXT              0x202B
237 #define WGL_TYPE_COLORINDEX_EXT        0x202C
238 #endif
239
240 #ifndef WGL_EXT_pbuffer
241 #define WGL_DRAW_TO_PBUFFER_EXT        0x202D
242 #define WGL_MAX_PBUFFER_PIXELS_EXT     0x202E
243 #define WGL_MAX_PBUFFER_WIDTH_EXT      0x202F
244 #define WGL_MAX_PBUFFER_HEIGHT_EXT     0x2030
245 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT  0x2031
246 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
247 #define WGL_PBUFFER_LARGEST_EXT        0x2033
248 #define WGL_PBUFFER_WIDTH_EXT          0x2034
249 #define WGL_PBUFFER_HEIGHT_EXT         0x2035
250 #endif
251
252 #ifndef WGL_EXT_depth_float
253 #define WGL_DEPTH_FLOAT_EXT            0x2040
254 #endif
255
256 #ifndef WGL_3DFX_multisample
257 #define WGL_SAMPLE_BUFFERS_3DFX        0x2060
258 #define WGL_SAMPLES_3DFX               0x2061
259 #endif
260
261 #ifndef WGL_EXT_multisample
262 #define WGL_SAMPLE_BUFFERS_EXT         0x2041
263 #define WGL_SAMPLES_EXT                0x2042
264 #endif
265
266 #ifndef WGL_I3D_digital_video_control
267 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
268 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
269 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
270 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
271 #endif
272
273 #ifndef WGL_I3D_gamma
274 #define WGL_GAMMA_TABLE_SIZE_I3D       0x204E
275 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D  0x204F
276 #endif
277
278 #ifndef WGL_I3D_genlock
279 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
280 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
281 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
282 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
283 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
284 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
285 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
286 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
287 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
288 #endif
289
290 #ifndef WGL_I3D_image_buffer
291 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
292 #define WGL_IMAGE_BUFFER_LOCK_I3D      0x00000002
293 #endif
294
295 #ifndef WGL_I3D_swap_frame_lock
296 #endif
297
298 #ifndef WGL_NV_render_depth_texture
299 #define WGL_BIND_TO_TEXTURE_DEPTH_NV   0x20A3
300 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
301 #define WGL_DEPTH_TEXTURE_FORMAT_NV    0x20A5
302 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
303 #define WGL_DEPTH_COMPONENT_NV         0x20A7
304 #endif
305
306 #ifndef WGL_NV_render_texture_rectangle
307 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
308 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
309 #define WGL_TEXTURE_RECTANGLE_NV       0x20A2
310 #endif
311
312 #ifndef WGL_ATI_pixel_format_float
313 #define WGL_TYPE_RGBA_FLOAT_ATI        0x21A0
314 #endif
315
316 #ifndef WGL_NV_float_buffer
317 #define WGL_FLOAT_COMPONENTS_NV        0x20B0
318 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
319 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
320 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
321 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
322 #define WGL_TEXTURE_FLOAT_R_NV         0x20B5
323 #define WGL_TEXTURE_FLOAT_RG_NV        0x20B6
324 #define WGL_TEXTURE_FLOAT_RGB_NV       0x20B7
325 #define WGL_TEXTURE_FLOAT_RGBA_NV      0x20B8
326 #endif
327
328 #ifndef WGL_3DL_stereo_control
329 #define WGL_STEREO_EMITTER_ENABLE_3DL  0x2055
330 #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
331 #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
332 #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
333 #endif
334
335 #ifndef WGL_EXT_pixel_format_packed_float
336 #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
337 #endif
338
339 #ifndef WGL_EXT_framebuffer_sRGB
340 #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
341 #endif
342
343 #ifndef WGL_NV_present_video
344 #define WGL_NUM_VIDEO_SLOTS_NV         0x20F0
345 #endif
346
347 #ifndef WGL_NV_video_out
348 #define WGL_BIND_TO_VIDEO_RGB_NV       0x20C0
349 #define WGL_BIND_TO_VIDEO_RGBA_NV      0x20C1
350 #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
351 #define WGL_VIDEO_OUT_COLOR_NV         0x20C3
352 #define WGL_VIDEO_OUT_ALPHA_NV         0x20C4
353 #define WGL_VIDEO_OUT_DEPTH_NV         0x20C5
354 #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
355 #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
356 #define WGL_VIDEO_OUT_FRAME            0x20C8
357 #define WGL_VIDEO_OUT_FIELD_1          0x20C9
358 #define WGL_VIDEO_OUT_FIELD_2          0x20CA
359 #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
360 #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
361 #endif
362
363 #ifndef WGL_NV_swap_group
364 #endif
365
366 #ifndef WGL_NV_gpu_affinity
367 #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
368 #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
369 #endif
370
371 #ifndef WGL_AMD_gpu_association
372 #define WGL_GPU_VENDOR_AMD             0x1F00
373 #define WGL_GPU_RENDERER_STRING_AMD    0x1F01
374 #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
375 #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
376 #define WGL_GPU_RAM_AMD                0x21A3
377 #define WGL_GPU_CLOCK_AMD              0x21A4
378 #define WGL_GPU_NUM_PIPES_AMD          0x21A5
379 #define WGL_GPU_NUM_SIMD_AMD           0x21A6
380 #define WGL_GPU_NUM_RB_AMD             0x21A7
381 #define WGL_GPU_NUM_SPI_AMD            0x21A8
382 #endif
383
384
385 /*************************************************************/
386
387 #ifndef WGL_ARB_pbuffer
388 DECLARE_HANDLE(HPBUFFERARB);
389 #endif
390 #ifndef WGL_EXT_pbuffer
391 DECLARE_HANDLE(HPBUFFEREXT);
392 #endif
393 #ifndef WGL_NV_present_video
394 DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
395 #endif
396 #ifndef WGL_NV_video_out
397 DECLARE_HANDLE(HPVIDEODEV);
398 #endif
399 #ifndef WGL_NV_gpu_affinity
400 DECLARE_HANDLE(HPGPUNV);
401 DECLARE_HANDLE(HGPUNV);
402
403 typedef struct _GPU_DEVICE {
404     DWORD  cb;
405     CHAR   DeviceName[32];
406     CHAR   DeviceString[128];
407     DWORD  Flags;
408     RECT   rcVirtualScreen;
409 } GPU_DEVICE, *PGPU_DEVICE;
410 #endif
411
412 #ifndef WGL_ARB_buffer_region
413 #define WGL_ARB_buffer_region 1
414 #ifdef WGL_WGLEXT_PROTOTYPES
415 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
416 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
417 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
418 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
419 #endif /* WGL_WGLEXT_PROTOTYPES */
420 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
421 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
422 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
423 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
424 #endif
425
426 #ifndef WGL_ARB_multisample
427 #define WGL_ARB_multisample 1
428 #endif
429
430 #ifndef WGL_ARB_extensions_string
431 #define WGL_ARB_extensions_string 1
432 #ifdef WGL_WGLEXT_PROTOTYPES
433 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
434 #endif /* WGL_WGLEXT_PROTOTYPES */
435 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
436 #endif
437
438 #ifndef WGL_ARB_pixel_format
439 #define WGL_ARB_pixel_format 1
440 #ifdef WGL_WGLEXT_PROTOTYPES
441 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
442 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
443 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
444 #endif /* WGL_WGLEXT_PROTOTYPES */
445 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
446 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
447 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
448 #endif
449
450 #ifndef WGL_ARB_make_current_read
451 #define WGL_ARB_make_current_read 1
452 #ifdef WGL_WGLEXT_PROTOTYPES
453 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
454 extern HDC WINAPI wglGetCurrentReadDCARB (void);
455 #endif /* WGL_WGLEXT_PROTOTYPES */
456 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
457 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
458 #endif
459
460 #ifndef WGL_ARB_pbuffer
461 #define WGL_ARB_pbuffer 1
462 #ifdef WGL_WGLEXT_PROTOTYPES
463 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
464 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
465 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
466 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
467 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
468 #endif /* WGL_WGLEXT_PROTOTYPES */
469 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
470 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
471 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
472 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
473 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
474 #endif
475
476 #ifndef WGL_ARB_render_texture
477 #define WGL_ARB_render_texture 1
478 #ifdef WGL_WGLEXT_PROTOTYPES
479 extern BOOL WINAPI wglBindTexImageARB (HPBUFFERARB, int);
480 extern BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB, int);
481 extern BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB, const int *);
482 #endif /* WGL_WGLEXT_PROTOTYPES */
483 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
484 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
485 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
486 #endif
487
488 #ifndef WGL_ARB_pixel_format_float
489 #define WGL_ARB_pixel_format_float 1
490 #endif
491
492 #ifndef WGL_ARB_create_context
493 #define WGL_ARB_create_context 1
494 #ifdef WGL_WGLEXT_PROTOTYPES
495 extern HGLRC WINAPI wglCreateContextAttribsARB (HDC, HGLRC, const int *);
496 #endif /* WGL_WGLEXT_PROTOTYPES */
497 typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int *attribList);
498 #endif
499
500 #ifndef WGL_EXT_display_color_table
501 #define WGL_EXT_display_color_table 1
502 #ifdef WGL_WGLEXT_PROTOTYPES
503 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
504 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
505 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
506 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
507 #endif /* WGL_WGLEXT_PROTOTYPES */
508 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
509 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
510 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
511 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
512 #endif
513
514 #ifndef WGL_EXT_extensions_string
515 #define WGL_EXT_extensions_string 1
516 #ifdef WGL_WGLEXT_PROTOTYPES
517 extern const char * WINAPI wglGetExtensionsStringEXT (void);
518 #endif /* WGL_WGLEXT_PROTOTYPES */
519 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
520 #endif
521
522 #ifndef WGL_EXT_make_current_read
523 #define WGL_EXT_make_current_read 1
524 #ifdef WGL_WGLEXT_PROTOTYPES
525 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
526 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
527 #endif /* WGL_WGLEXT_PROTOTYPES */
528 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
529 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
530 #endif
531
532 #ifndef WGL_EXT_pbuffer
533 #define WGL_EXT_pbuffer 1
534 #ifdef WGL_WGLEXT_PROTOTYPES
535 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
536 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
537 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
538 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
539 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
540 #endif /* WGL_WGLEXT_PROTOTYPES */
541 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
542 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
543 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
544 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
545 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
546 #endif
547
548 #ifndef WGL_EXT_pixel_format
549 #define WGL_EXT_pixel_format 1
550 #ifdef WGL_WGLEXT_PROTOTYPES
551 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
552 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
553 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
554 #endif /* WGL_WGLEXT_PROTOTYPES */
555 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
556 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
557 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
558 #endif
559
560 #ifndef WGL_EXT_swap_control
561 #define WGL_EXT_swap_control 1
562 #ifdef WGL_WGLEXT_PROTOTYPES
563 extern BOOL WINAPI wglSwapIntervalEXT (int);
564 extern int WINAPI wglGetSwapIntervalEXT (void);
565 #endif /* WGL_WGLEXT_PROTOTYPES */
566 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
567 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
568 #endif
569
570 #ifndef WGL_EXT_depth_float
571 #define WGL_EXT_depth_float 1
572 #endif
573
574 #ifndef WGL_NV_vertex_array_range
575 #define WGL_NV_vertex_array_range 1
576 #ifdef WGL_WGLEXT_PROTOTYPES
577 extern void* WINAPI wglAllocateMemoryNV (GLsizei, GLfloat, GLfloat, GLfloat);
578 extern void WINAPI wglFreeMemoryNV (void *);
579 #endif /* WGL_WGLEXT_PROTOTYPES */
580 typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
581 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
582 #endif
583
584 #ifndef WGL_3DFX_multisample
585 #define WGL_3DFX_multisample 1
586 #endif
587
588 #ifndef WGL_EXT_multisample
589 #define WGL_EXT_multisample 1
590 #endif
591
592 #ifndef WGL_OML_sync_control
593 #define WGL_OML_sync_control 1
594 #ifdef WGL_WGLEXT_PROTOTYPES
595 extern BOOL WINAPI wglGetSyncValuesOML (HDC, INT64 *, INT64 *, INT64 *);
596 extern BOOL WINAPI wglGetMscRateOML (HDC, INT32 *, INT32 *);
597 extern INT64 WINAPI wglSwapBuffersMscOML (HDC, INT64, INT64, INT64);
598 extern INT64 WINAPI wglSwapLayerBuffersMscOML (HDC, int, INT64, INT64, INT64);
599 extern BOOL WINAPI wglWaitForMscOML (HDC, INT64, INT64, INT64, INT64 *, INT64 *, INT64 *);
600 extern BOOL WINAPI wglWaitForSbcOML (HDC, INT64, INT64 *, INT64 *, INT64 *);
601 #endif /* WGL_WGLEXT_PROTOTYPES */
602 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
603 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
604 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
605 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
606 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
607 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
608 #endif
609
610 #ifndef WGL_I3D_digital_video_control
611 #define WGL_I3D_digital_video_control 1
612 #ifdef WGL_WGLEXT_PROTOTYPES
613 extern BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC, int, int *);
614 extern BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC, int, const int *);
615 #endif /* WGL_WGLEXT_PROTOTYPES */
616 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
617 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
618 #endif
619
620 #ifndef WGL_I3D_gamma
621 #define WGL_I3D_gamma 1
622 #ifdef WGL_WGLEXT_PROTOTYPES
623 extern BOOL WINAPI wglGetGammaTableParametersI3D (HDC, int, int *);
624 extern BOOL WINAPI wglSetGammaTableParametersI3D (HDC, int, const int *);
625 extern BOOL WINAPI wglGetGammaTableI3D (HDC, int, USHORT *, USHORT *, USHORT *);
626 extern BOOL WINAPI wglSetGammaTableI3D (HDC, int, const USHORT *, const USHORT *, const USHORT *);
627 #endif /* WGL_WGLEXT_PROTOTYPES */
628 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
629 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
630 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
631 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
632 #endif
633
634 #ifndef WGL_I3D_genlock
635 #define WGL_I3D_genlock 1
636 #ifdef WGL_WGLEXT_PROTOTYPES
637 extern BOOL WINAPI wglEnableGenlockI3D (HDC);
638 extern BOOL WINAPI wglDisableGenlockI3D (HDC);
639 extern BOOL WINAPI wglIsEnabledGenlockI3D (HDC, BOOL *);
640 extern BOOL WINAPI wglGenlockSourceI3D (HDC, UINT);
641 extern BOOL WINAPI wglGetGenlockSourceI3D (HDC, UINT *);
642 extern BOOL WINAPI wglGenlockSourceEdgeI3D (HDC, UINT);
643 extern BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC, UINT *);
644 extern BOOL WINAPI wglGenlockSampleRateI3D (HDC, UINT);
645 extern BOOL WINAPI wglGetGenlockSampleRateI3D (HDC, UINT *);
646 extern BOOL WINAPI wglGenlockSourceDelayI3D (HDC, UINT);
647 extern BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC, UINT *);
648 extern BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC, UINT *, UINT *);
649 #endif /* WGL_WGLEXT_PROTOTYPES */
650 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
651 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
652 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
653 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
654 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
655 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
656 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
657 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
658 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
659 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
660 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
661 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
662 #endif
663
664 #ifndef WGL_I3D_image_buffer
665 #define WGL_I3D_image_buffer 1
666 #ifdef WGL_WGLEXT_PROTOTYPES
667 extern LPVOID WINAPI wglCreateImageBufferI3D (HDC, DWORD, UINT);
668 extern BOOL WINAPI wglDestroyImageBufferI3D (HDC, LPVOID);
669 extern BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC, const HANDLE *, const LPVOID *, const DWORD *, UINT);
670 extern BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC, const LPVOID *, UINT);
671 #endif /* WGL_WGLEXT_PROTOTYPES */
672 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
673 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
674 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
675 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
676 #endif
677
678 #ifndef WGL_I3D_swap_frame_lock
679 #define WGL_I3D_swap_frame_lock 1
680 #ifdef WGL_WGLEXT_PROTOTYPES
681 extern BOOL WINAPI wglEnableFrameLockI3D (void);
682 extern BOOL WINAPI wglDisableFrameLockI3D (void);
683 extern BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *);
684 extern BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *);
685 #endif /* WGL_WGLEXT_PROTOTYPES */
686 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
687 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
688 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
689 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
690 #endif
691
692 #ifndef WGL_I3D_swap_frame_usage
693 #define WGL_I3D_swap_frame_usage 1
694 #ifdef WGL_WGLEXT_PROTOTYPES
695 extern BOOL WINAPI wglGetFrameUsageI3D (float *);
696 extern BOOL WINAPI wglBeginFrameTrackingI3D (void);
697 extern BOOL WINAPI wglEndFrameTrackingI3D (void);
698 extern BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *, DWORD *, float *);
699 #endif /* WGL_WGLEXT_PROTOTYPES */
700 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
701 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
702 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
703 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
704 #endif
705
706 #ifndef WGL_ATI_pixel_format_float
707 #define WGL_ATI_pixel_format_float 1
708 #endif
709
710 #ifndef WGL_NV_float_buffer
711 #define WGL_NV_float_buffer 1
712 #endif
713
714 #ifndef WGL_3DL_stereo_control
715 #define WGL_3DL_stereo_control 1
716 #ifdef WGL_WGLEXT_PROTOTYPES
717 extern BOOL WINAPI wglSetStereoEmitterState3DL (, HDC, , UINT);
718 #endif /* WGL_WGLEXT_PROTOTYPES */
719 typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) ( HDC, HDC hDC,  UINT, UINT uState);
720 #endif
721
722 #ifndef WGL_EXT_pixel_format_packed_float
723 #define WGL_EXT_pixel_format_packed_float 1
724 #endif
725
726 #ifndef WGL_EXT_framebuffer_sRGB
727 #define WGL_EXT_framebuffer_sRGB 1
728 #endif
729
730 #ifndef WGL_NV_present_video
731 #define WGL_NV_present_video 1
732 #ifdef WGL_WGLEXT_PROTOTYPES
733 extern int WINAPI wglEnumerateVideoDevicesNV (HDC, HVIDEOOUTPUTDEVICENV *);
734 extern BOOL WINAPI wglBindVideoDeviceNV (HDC, unsigned int, HVIDEOOUTPUTDEVICENV, const int *);
735 extern BOOL WINAPI wglQueryCurrentContextNV (int, int *);
736 #endif /* WGL_WGLEXT_PROTOTYPES */
737 typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDC, HVIDEOOUTPUTDEVICENV *phDeviceList);
738 typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDC, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int *piAttribList);
739 typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int *piValue);
740 #endif
741
742 #ifndef WGL_NV_video_out
743 #define WGL_NV_video_out 1
744 #ifdef WGL_WGLEXT_PROTOTYPES
745 extern BOOL WINAPI wglGetVideoDeviceNV (HDC, int, HPVIDEODEV *);
746 extern BOOL WINAPI wglReleaseVideoDeviceNV (HPVIDEODEV);
747 extern BOOL WINAPI wglBindVideoImageNV (HPVIDEODEV, HPBUFFERARB, int);
748 extern BOOL WINAPI wglReleaseVideoImageNV (HPBUFFERARB, int);
749 extern BOOL WINAPI wglSendPbufferToVideoNV (HPBUFFERARB, int, unsigned long *, BOOL);
750 extern BOOL WINAPI wglGetVideoInfoNV (HPVIDEODEV, unsigned long *, unsigned long *);
751 #endif /* WGL_WGLEXT_PROTOTYPES */
752 typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV *hVideoDevice);
753 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
754 typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
755 typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
756 typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long *pulCounterPbuffer, BOOL bBlock);
757 typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long *pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
758 #endif
759
760 #ifndef WGL_NV_swap_group
761 #define WGL_NV_swap_group 1
762 #ifdef WGL_WGLEXT_PROTOTYPES
763 extern BOOL WINAPI wglJoinSwapGroupNV (HDC, GLuint);
764 extern BOOL WINAPI wglBindSwapBarrierNV (GLuint, GLuint);
765 extern BOOL WINAPI wglQuerySwapGroupNV (HDC, GLuint *, GLuint *);
766 extern BOOL WINAPI wglQueryMaxSwapGroupsNV (HDC, GLuint *, GLuint *);
767 extern BOOL WINAPI wglQueryFrameCountNV (HDC, GLuint *);
768 extern BOOL WINAPI wglResetFrameCountNV (HDC);
769 #endif /* WGL_WGLEXT_PROTOTYPES */
770 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
771 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
772 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier);
773 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
774 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count);
775 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
776 #endif
777
778 #ifndef WGL_NV_gpu_affinity
779 #define WGL_NV_gpu_affinity 1
780 #ifdef WGL_WGLEXT_PROTOTYPES
781 extern BOOL WINAPI wglEnumGpusNV (UINT, HGPUNV *);
782 extern BOOL WINAPI wglEnumGpuDevicesNV (HGPUNV, UINT, PGPU_DEVICE);
783 extern HDC WINAPI wglCreateAffinityDCNV (const HGPUNV *);
784 extern BOOL WINAPI wglEnumGpusFromAffinityDCNV (HDC, UINT, HGPUNV *);
785 extern BOOL WINAPI wglDeleteDCNV (HDC);
786 #endif /* WGL_WGLEXT_PROTOTYPES */
787 typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
788 typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
789 typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
790 typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
791 typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
792 #endif
793
794 #ifndef WGL_AMD_gpu_association
795 #define WGL_AMD_gpu_association 1
796 #ifdef WGL_WGLEXT_PROTOTYPES
797 extern UINT WINAPI wglGetGPUIDsAMD (UINT, UINT *);
798 extern INT WINAPI wglGetGPUInfoAMD (UINT, int, GLenum, UINT, void *);
799 extern UINT WINAPI wglGetContextGPUIDAMD (HGLRC);
800 extern HGLRC WINAPI wglCreateAssociatedContextAMD (UINT);
801 extern HGLRC WINAPI wglCreateAssociatedContextAttribsAMD (UINT, HGLRC, const int *);
802 extern BOOL WINAPI wglDeleteAssociatedContextAMD (HGLRC);
803 extern BOOL WINAPI wglMakeAssociatedContextCurrentAMD (HGLRC);
804 extern HGLRC WINAPI wglGetCurrentAssociatedContextAMD (void);
805 extern VOID WINAPI wglBlitContextFramebufferAMD (HGLRC, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum);
806 #endif /* WGL_WGLEXT_PROTOTYPES */
807 typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT *ids);
808 typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, int property, GLenum dataType, UINT size, void *data);
809 typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
810 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
811 typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int *attribList);
812 typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
813 typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
814 typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
815 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);
816 #endif
817
818
819 #ifdef __cplusplus
820 }
821 #endif
822
823 #endif