VirtualBox

source: vbox/trunk/include/VBox/HostServices/wglext.h@ 76585

Last change on this file since 76585 was 76585, checked in by vboxsync, 6 years ago

*: scm --fix-header-guard-endif

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 27.2 KB
Line 
1
2#ifndef VBOX_INCLUDED_HostServices_wglext_h
3#define VBOX_INCLUDED_HostServices_wglext_h
4#ifndef RT_WITHOUT_PRAGMA_ONCE
5# pragma once
6#endif
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12/*
13** Copyright (c) 2007 The Khronos Group Inc.
14**
15** Permission is hereby granted, free of charge, to any person obtaining a
16** copy of this software and/or associated documentation files (the
17** "Materials"), to deal in the Materials without restriction, including
18** without limitation the rights to use, copy, modify, merge, publish,
19** distribute, sublicense, and/or sell copies of the Materials, and to
20** permit persons to whom the Materials are furnished to do so, subject to
21** the following conditions:
22**
23** The above copyright notice and this permission notice shall be included
24** in all copies or substantial portions of the Materials.
25**
26** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
27** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
28** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
29** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
30** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
31** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
32** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
33*/
34
35#if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
36#define WIN32_LEAN_AND_MEAN 1
37#include <iprt/win/windows.h>
38#endif
39
40#ifndef APIENTRY
41#define APIENTRY
42#endif
43#ifndef APIENTRYP
44#define APIENTRYP APIENTRY *
45#endif
46#ifndef GLAPI
47#define GLAPI extern
48#endif
49
50/*************************************************************/
51
52/* Header file version number */
53/* wglext.h last updated 2007/02/09 */
54/* Current version at http://www.opengl.org/registry/ */
55#define WGL_WGLEXT_VERSION 9
56
57#ifndef WGL_ARB_buffer_region
58#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
59#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
60#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
61#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
62#endif
63
64#ifndef WGL_ARB_multisample
65#define WGL_SAMPLE_BUFFERS_ARB 0x2041
66#define WGL_SAMPLES_ARB 0x2042
67#endif
68
69#ifndef WGL_ARB_extensions_string
70#endif
71
72#ifndef WGL_ARB_pixel_format
73#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
74#define WGL_DRAW_TO_WINDOW_ARB 0x2001
75#define WGL_DRAW_TO_BITMAP_ARB 0x2002
76#define WGL_ACCELERATION_ARB 0x2003
77#define WGL_NEED_PALETTE_ARB 0x2004
78#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
79#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
80#define WGL_SWAP_METHOD_ARB 0x2007
81#define WGL_NUMBER_OVERLAYS_ARB 0x2008
82#define WGL_NUMBER_UNDERLAYS_ARB 0x2009
83#define WGL_TRANSPARENT_ARB 0x200A
84#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
85#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
86#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
87#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
88#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
89#define WGL_SHARE_DEPTH_ARB 0x200C
90#define WGL_SHARE_STENCIL_ARB 0x200D
91#define WGL_SHARE_ACCUM_ARB 0x200E
92#define WGL_SUPPORT_GDI_ARB 0x200F
93#define WGL_SUPPORT_OPENGL_ARB 0x2010
94#define WGL_DOUBLE_BUFFER_ARB 0x2011
95#define WGL_STEREO_ARB 0x2012
96#define WGL_PIXEL_TYPE_ARB 0x2013
97#define WGL_COLOR_BITS_ARB 0x2014
98#define WGL_RED_BITS_ARB 0x2015
99#define WGL_RED_SHIFT_ARB 0x2016
100#define WGL_GREEN_BITS_ARB 0x2017
101#define WGL_GREEN_SHIFT_ARB 0x2018
102#define WGL_BLUE_BITS_ARB 0x2019
103#define WGL_BLUE_SHIFT_ARB 0x201A
104#define WGL_ALPHA_BITS_ARB 0x201B
105#define WGL_ALPHA_SHIFT_ARB 0x201C
106#define WGL_ACCUM_BITS_ARB 0x201D
107#define WGL_ACCUM_RED_BITS_ARB 0x201E
108#define WGL_ACCUM_GREEN_BITS_ARB 0x201F
109#define WGL_ACCUM_BLUE_BITS_ARB 0x2020
110#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
111#define WGL_DEPTH_BITS_ARB 0x2022
112#define WGL_STENCIL_BITS_ARB 0x2023
113#define WGL_AUX_BUFFERS_ARB 0x2024
114#define WGL_NO_ACCELERATION_ARB 0x2025
115#define WGL_GENERIC_ACCELERATION_ARB 0x2026
116#define WGL_FULL_ACCELERATION_ARB 0x2027
117#define WGL_SWAP_EXCHANGE_ARB 0x2028
118#define WGL_SWAP_COPY_ARB 0x2029
119#define WGL_SWAP_UNDEFINED_ARB 0x202A
120#define WGL_TYPE_RGBA_ARB 0x202B
121#define WGL_TYPE_COLORINDEX_ARB 0x202C
122#endif
123
124#ifndef WGL_ARB_make_current_read
125#define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
126#define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
127#endif
128
129#ifndef WGL_ARB_pbuffer
130#define WGL_DRAW_TO_PBUFFER_ARB 0x202D
131#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
132#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
133#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
134#define WGL_PBUFFER_LARGEST_ARB 0x2033
135#define WGL_PBUFFER_WIDTH_ARB 0x2034
136#define WGL_PBUFFER_HEIGHT_ARB 0x2035
137#define WGL_PBUFFER_LOST_ARB 0x2036
138#endif
139
140#ifndef WGL_ARB_render_texture
141#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
142#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
143#define WGL_TEXTURE_FORMAT_ARB 0x2072
144#define WGL_TEXTURE_TARGET_ARB 0x2073
145#define WGL_MIPMAP_TEXTURE_ARB 0x2074
146#define WGL_TEXTURE_RGB_ARB 0x2075
147#define WGL_TEXTURE_RGBA_ARB 0x2076
148#define WGL_NO_TEXTURE_ARB 0x2077
149#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
150#define WGL_TEXTURE_1D_ARB 0x2079
151#define WGL_TEXTURE_2D_ARB 0x207A
152#define WGL_MIPMAP_LEVEL_ARB 0x207B
153#define WGL_CUBE_MAP_FACE_ARB 0x207C
154#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
155#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
156#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
157#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
158#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
159#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
160#define WGL_FRONT_LEFT_ARB 0x2083
161#define WGL_FRONT_RIGHT_ARB 0x2084
162#define WGL_BACK_LEFT_ARB 0x2085
163#define WGL_BACK_RIGHT_ARB 0x2086
164#define WGL_AUX0_ARB 0x2087
165#define WGL_AUX1_ARB 0x2088
166#define WGL_AUX2_ARB 0x2089
167#define WGL_AUX3_ARB 0x208A
168#define WGL_AUX4_ARB 0x208B
169#define WGL_AUX5_ARB 0x208C
170#define WGL_AUX6_ARB 0x208D
171#define WGL_AUX7_ARB 0x208E
172#define WGL_AUX8_ARB 0x208F
173#define WGL_AUX9_ARB 0x2090
174#endif
175
176#ifndef WGL_ARB_pixel_format_float
177#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
178#endif
179
180#ifndef WGL_EXT_make_current_read
181#define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
182#endif
183
184#ifndef WGL_EXT_pixel_format
185#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
186#define WGL_DRAW_TO_WINDOW_EXT 0x2001
187#define WGL_DRAW_TO_BITMAP_EXT 0x2002
188#define WGL_ACCELERATION_EXT 0x2003
189#define WGL_NEED_PALETTE_EXT 0x2004
190#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
191#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
192#define WGL_SWAP_METHOD_EXT 0x2007
193#define WGL_NUMBER_OVERLAYS_EXT 0x2008
194#define WGL_NUMBER_UNDERLAYS_EXT 0x2009
195#define WGL_TRANSPARENT_EXT 0x200A
196#define WGL_TRANSPARENT_VALUE_EXT 0x200B
197#define WGL_SHARE_DEPTH_EXT 0x200C
198#define WGL_SHARE_STENCIL_EXT 0x200D
199#define WGL_SHARE_ACCUM_EXT 0x200E
200#define WGL_SUPPORT_GDI_EXT 0x200F
201#define WGL_SUPPORT_OPENGL_EXT 0x2010
202#define WGL_DOUBLE_BUFFER_EXT 0x2011
203#define WGL_STEREO_EXT 0x2012
204#define WGL_PIXEL_TYPE_EXT 0x2013
205#define WGL_COLOR_BITS_EXT 0x2014
206#define WGL_RED_BITS_EXT 0x2015
207#define WGL_RED_SHIFT_EXT 0x2016
208#define WGL_GREEN_BITS_EXT 0x2017
209#define WGL_GREEN_SHIFT_EXT 0x2018
210#define WGL_BLUE_BITS_EXT 0x2019
211#define WGL_BLUE_SHIFT_EXT 0x201A
212#define WGL_ALPHA_BITS_EXT 0x201B
213#define WGL_ALPHA_SHIFT_EXT 0x201C
214#define WGL_ACCUM_BITS_EXT 0x201D
215#define WGL_ACCUM_RED_BITS_EXT 0x201E
216#define WGL_ACCUM_GREEN_BITS_EXT 0x201F
217#define WGL_ACCUM_BLUE_BITS_EXT 0x2020
218#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
219#define WGL_DEPTH_BITS_EXT 0x2022
220#define WGL_STENCIL_BITS_EXT 0x2023
221#define WGL_AUX_BUFFERS_EXT 0x2024
222#define WGL_NO_ACCELERATION_EXT 0x2025
223#define WGL_GENERIC_ACCELERATION_EXT 0x2026
224#define WGL_FULL_ACCELERATION_EXT 0x2027
225#define WGL_SWAP_EXCHANGE_EXT 0x2028
226#define WGL_SWAP_COPY_EXT 0x2029
227#define WGL_SWAP_UNDEFINED_EXT 0x202A
228#define WGL_TYPE_RGBA_EXT 0x202B
229#define WGL_TYPE_COLORINDEX_EXT 0x202C
230#endif
231
232#ifndef WGL_EXT_pbuffer
233#define WGL_DRAW_TO_PBUFFER_EXT 0x202D
234#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
235#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
236#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
237#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
238#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
239#define WGL_PBUFFER_LARGEST_EXT 0x2033
240#define WGL_PBUFFER_WIDTH_EXT 0x2034
241#define WGL_PBUFFER_HEIGHT_EXT 0x2035
242#endif
243
244#ifndef WGL_EXT_depth_float
245#define WGL_DEPTH_FLOAT_EXT 0x2040
246#endif
247
248#ifndef WGL_3DFX_multisample
249#define WGL_SAMPLE_BUFFERS_3DFX 0x2060
250#define WGL_SAMPLES_3DFX 0x2061
251#endif
252
253#ifndef WGL_EXT_multisample
254#define WGL_SAMPLE_BUFFERS_EXT 0x2041
255#define WGL_SAMPLES_EXT 0x2042
256#endif
257
258#ifndef WGL_I3D_digital_video_control
259#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
260#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
261#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
262#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
263#endif
264
265#ifndef WGL_I3D_gamma
266#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
267#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
268#endif
269
270#ifndef WGL_I3D_genlock
271#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
272#define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
273#define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
274#define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
275#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
276#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
277#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
278#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
279#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
280#endif
281
282#ifndef WGL_I3D_image_buffer
283#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
284#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
285#endif
286
287#ifndef WGL_I3D_swap_frame_lock
288#endif
289
290#ifndef WGL_NV_render_depth_texture
291#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
292#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
293#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
294#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
295#define WGL_DEPTH_COMPONENT_NV 0x20A7
296#endif
297
298#ifndef WGL_NV_render_texture_rectangle
299#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
300#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
301#define WGL_TEXTURE_RECTANGLE_NV 0x20A2
302#endif
303
304#ifndef WGL_ATI_pixel_format_float
305#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
306#endif
307
308#ifndef WGL_NV_float_buffer
309#define WGL_FLOAT_COMPONENTS_NV 0x20B0
310#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
311#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
312#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
313#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
314#define WGL_TEXTURE_FLOAT_R_NV 0x20B5
315#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
316#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
317#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
318#endif
319
320#ifndef WGL_3DL_stereo_control
321#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
322#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
323#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
324#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
325#endif
326
327#ifndef WGL_EXT_pixel_format_packed_float
328#define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
329#endif
330
331#ifndef WGL_EXT_framebuffer_sRGB
332#define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
333#endif
334
335
336/*************************************************************/
337
338#ifndef WGL_ARB_pbuffer
339DECLARE_HANDLE(HPBUFFERARB);
340#endif
341#ifndef WGL_EXT_pbuffer
342DECLARE_HANDLE(HPBUFFEREXT);
343#endif
344
345#ifndef WGL_ARB_buffer_region
346#define WGL_ARB_buffer_region 1
347#ifdef WGL_WGLEXT_PROTOTYPES
348extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
349extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
350extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
351extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
352#endif /* WGL_WGLEXT_PROTOTYPES */
353typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
354typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
355typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
356typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
357#endif
358
359#ifndef WGL_ARB_multisample
360#define WGL_ARB_multisample 1
361#endif
362
363#ifndef WGL_ARB_extensions_string
364#define WGL_ARB_extensions_string 1
365#ifdef WGL_WGLEXT_PROTOTYPES
366extern const char * WINAPI wglGetExtensionsStringARB (HDC);
367#endif /* WGL_WGLEXT_PROTOTYPES */
368typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
369#endif
370
371#ifndef WGL_ARB_pixel_format
372#define WGL_ARB_pixel_format 1
373#ifdef WGL_WGLEXT_PROTOTYPES
374extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
375extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
376extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
377#endif /* WGL_WGLEXT_PROTOTYPES */
378typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
379typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
380typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
381#endif
382
383#ifndef WGL_ARB_make_current_read
384#define WGL_ARB_make_current_read 1
385#ifdef WGL_WGLEXT_PROTOTYPES
386extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
387extern HDC WINAPI wglGetCurrentReadDCARB (void);
388#endif /* WGL_WGLEXT_PROTOTYPES */
389typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
390typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
391#endif
392
393#ifndef WGL_ARB_pbuffer
394#define WGL_ARB_pbuffer 1
395#ifdef WGL_WGLEXT_PROTOTYPES
396extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
397extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
398extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
399extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
400extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
401#endif /* WGL_WGLEXT_PROTOTYPES */
402typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
403typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
404typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
405typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
406typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
407#endif
408
409#ifndef WGL_ARB_render_texture
410#define WGL_ARB_render_texture 1
411#ifdef WGL_WGLEXT_PROTOTYPES
412extern BOOL WINAPI wglBindTexImageARB (HPBUFFERARB, int);
413extern BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB, int);
414extern BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB, const int *);
415#endif /* WGL_WGLEXT_PROTOTYPES */
416typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
417typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
418typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
419#endif
420
421#ifndef WGL_ARB_pixel_format_float
422#define WGL_ARB_pixel_format_float 1
423#endif
424
425#ifndef WGL_EXT_display_color_table
426#define WGL_EXT_display_color_table 1
427#ifdef WGL_WGLEXT_PROTOTYPES
428extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
429extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
430extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
431extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
432#endif /* WGL_WGLEXT_PROTOTYPES */
433typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
434typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
435typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
436typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
437#endif
438
439#ifndef WGL_EXT_extensions_string
440#define WGL_EXT_extensions_string 1
441#ifdef WGL_WGLEXT_PROTOTYPES
442extern const char * WINAPI wglGetExtensionsStringEXT (void);
443#endif /* WGL_WGLEXT_PROTOTYPES */
444typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
445#endif
446
447#ifndef WGL_EXT_make_current_read
448#define WGL_EXT_make_current_read 1
449#ifdef WGL_WGLEXT_PROTOTYPES
450extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
451extern HDC WINAPI wglGetCurrentReadDCEXT (void);
452#endif /* WGL_WGLEXT_PROTOTYPES */
453typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
454typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
455#endif
456
457#ifndef WGL_EXT_pbuffer
458#define WGL_EXT_pbuffer 1
459#ifdef WGL_WGLEXT_PROTOTYPES
460extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
461extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
462extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
463extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
464extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
465#endif /* WGL_WGLEXT_PROTOTYPES */
466typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
467typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
468typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
469typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
470typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
471#endif
472
473#ifndef WGL_EXT_pixel_format
474#define WGL_EXT_pixel_format 1
475#ifdef WGL_WGLEXT_PROTOTYPES
476extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
477extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
478extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
479#endif /* WGL_WGLEXT_PROTOTYPES */
480typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
481typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
482typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
483#endif
484
485#ifndef WGL_EXT_swap_control
486#define WGL_EXT_swap_control 1
487#ifdef WGL_WGLEXT_PROTOTYPES
488extern BOOL WINAPI wglSwapIntervalEXT (int);
489extern int WINAPI wglGetSwapIntervalEXT (void);
490#endif /* WGL_WGLEXT_PROTOTYPES */
491typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
492typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
493#endif
494
495#ifndef WGL_EXT_depth_float
496#define WGL_EXT_depth_float 1
497#endif
498
499#ifndef WGL_NV_vertex_array_range
500#define WGL_NV_vertex_array_range 1
501#ifdef WGL_WGLEXT_PROTOTYPES
502extern void* WINAPI wglAllocateMemoryNV (GLsizei, GLfloat, GLfloat, GLfloat);
503extern void WINAPI wglFreeMemoryNV (void *);
504#endif /* WGL_WGLEXT_PROTOTYPES */
505typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
506typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
507#endif
508
509#ifndef WGL_3DFX_multisample
510#define WGL_3DFX_multisample 1
511#endif
512
513#ifndef WGL_EXT_multisample
514#define WGL_EXT_multisample 1
515#endif
516
517#ifndef WGL_OML_sync_control
518#define WGL_OML_sync_control 1
519#ifdef WGL_WGLEXT_PROTOTYPES
520extern BOOL WINAPI wglGetSyncValuesOML (HDC, INT64 *, INT64 *, INT64 *);
521extern BOOL WINAPI wglGetMscRateOML (HDC, INT32 *, INT32 *);
522extern INT64 WINAPI wglSwapBuffersMscOML (HDC, INT64, INT64, INT64);
523extern INT64 WINAPI wglSwapLayerBuffersMscOML (HDC, int, INT64, INT64, INT64);
524extern BOOL WINAPI wglWaitForMscOML (HDC, INT64, INT64, INT64, INT64 *, INT64 *, INT64 *);
525extern BOOL WINAPI wglWaitForSbcOML (HDC, INT64, INT64 *, INT64 *, INT64 *);
526#endif /* WGL_WGLEXT_PROTOTYPES */
527typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
528typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
529typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
530typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
531typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
532typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
533#endif
534
535#ifndef WGL_I3D_digital_video_control
536#define WGL_I3D_digital_video_control 1
537#ifdef WGL_WGLEXT_PROTOTYPES
538extern BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC, int, int *);
539extern BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC, int, const int *);
540#endif /* WGL_WGLEXT_PROTOTYPES */
541typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
542typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
543#endif
544
545#ifndef WGL_I3D_gamma
546#define WGL_I3D_gamma 1
547#ifdef WGL_WGLEXT_PROTOTYPES
548extern BOOL WINAPI wglGetGammaTableParametersI3D (HDC, int, int *);
549extern BOOL WINAPI wglSetGammaTableParametersI3D (HDC, int, const int *);
550extern BOOL WINAPI wglGetGammaTableI3D (HDC, int, USHORT *, USHORT *, USHORT *);
551extern BOOL WINAPI wglSetGammaTableI3D (HDC, int, const USHORT *, const USHORT *, const USHORT *);
552#endif /* WGL_WGLEXT_PROTOTYPES */
553typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
554typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
555typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
556typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
557#endif
558
559#ifndef WGL_I3D_genlock
560#define WGL_I3D_genlock 1
561#ifdef WGL_WGLEXT_PROTOTYPES
562extern BOOL WINAPI wglEnableGenlockI3D (HDC);
563extern BOOL WINAPI wglDisableGenlockI3D (HDC);
564extern BOOL WINAPI wglIsEnabledGenlockI3D (HDC, BOOL *);
565extern BOOL WINAPI wglGenlockSourceI3D (HDC, UINT);
566extern BOOL WINAPI wglGetGenlockSourceI3D (HDC, UINT *);
567extern BOOL WINAPI wglGenlockSourceEdgeI3D (HDC, UINT);
568extern BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC, UINT *);
569extern BOOL WINAPI wglGenlockSampleRateI3D (HDC, UINT);
570extern BOOL WINAPI wglGetGenlockSampleRateI3D (HDC, UINT *);
571extern BOOL WINAPI wglGenlockSourceDelayI3D (HDC, UINT);
572extern BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC, UINT *);
573extern BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC, UINT *, UINT *);
574#endif /* WGL_WGLEXT_PROTOTYPES */
575typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
576typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
577typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
578typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
579typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
580typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
581typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
582typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
583typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
584typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
585typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
586typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
587#endif
588
589#ifndef WGL_I3D_image_buffer
590#define WGL_I3D_image_buffer 1
591#ifdef WGL_WGLEXT_PROTOTYPES
592extern LPVOID WINAPI wglCreateImageBufferI3D (HDC, DWORD, UINT);
593extern BOOL WINAPI wglDestroyImageBufferI3D (HDC, LPVOID);
594extern BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC, const HANDLE *, const LPVOID *, const DWORD *, UINT);
595extern BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC, const LPVOID *, UINT);
596#endif /* WGL_WGLEXT_PROTOTYPES */
597typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
598typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
599typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
600typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
601#endif
602
603#ifndef WGL_I3D_swap_frame_lock
604#define WGL_I3D_swap_frame_lock 1
605#ifdef WGL_WGLEXT_PROTOTYPES
606extern BOOL WINAPI wglEnableFrameLockI3D (void);
607extern BOOL WINAPI wglDisableFrameLockI3D (void);
608extern BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *);
609extern BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *);
610#endif /* WGL_WGLEXT_PROTOTYPES */
611typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
612typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
613typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
614typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
615#endif
616
617#ifndef WGL_I3D_swap_frame_usage
618#define WGL_I3D_swap_frame_usage 1
619#ifdef WGL_WGLEXT_PROTOTYPES
620extern BOOL WINAPI wglGetFrameUsageI3D (float *);
621extern BOOL WINAPI wglBeginFrameTrackingI3D (void);
622extern BOOL WINAPI wglEndFrameTrackingI3D (void);
623extern BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *, DWORD *, float *);
624#endif /* WGL_WGLEXT_PROTOTYPES */
625typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
626typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
627typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
628typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
629#endif
630
631#ifndef WGL_ATI_pixel_format_float
632#define WGL_ATI_pixel_format_float 1
633#endif
634
635#ifndef WGL_NV_float_buffer
636#define WGL_NV_float_buffer 1
637#endif
638
639#ifndef WGL_EXT_pixel_format_packed_float
640#define WGL_EXT_pixel_format_packed_float 1
641#endif
642
643#ifndef WGL_EXT_framebuffer_sRGB
644#define WGL_EXT_framebuffer_sRGB 1
645#endif
646
647
648#ifdef __cplusplus
649}
650#endif
651
652#endif /* !VBOX_INCLUDED_HostServices_wglext_h */
Note: See TracBrowser for help on using the repository browser.

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