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