source: GTP/trunk/Lib/Vis/Preprocessing/src/GL/wglew.h @ 1001

Revision 1001, 38.4 KB checked in by mattausch, 18 years ago (diff)

added mesh instance support
improved support for occlusion queries + other extensions

Line 
1/*
2** The OpenGL Extension Wrangler Library
3** Copyright (C) 2002-2006, Milan Ikits <milan ikits[]ieee org>
4** Copyright (C) 2002-2006, Marcelo E. Magallon <mmagallo[]debian org>
5** Copyright (C) 2002, Lev Povalahev
6** All rights reserved.
7**
8** Redistribution and use in source and binary forms, with or without
9** modification, are permitted provided that the following conditions are met:
10**
11** * Redistributions of source code must retain the above copyright notice,
12**   this list of conditions and the following disclaimer.
13** * Redistributions in binary form must reproduce the above copyright notice,
14**   this list of conditions and the following disclaimer in the documentation
15**   and/or other materials provided with the distribution.
16** * The name of the author may be used to endorse or promote products
17**   derived from this software without specific prior written permission.
18**
19** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29** THE POSSIBILITY OF SUCH DAMAGE.
30*/
31
32#ifndef __wglew_h__
33#define __wglew_h__
34#define __WGLEW_H__
35
36#ifdef __wglext_h_
37#error wglext.h included before wglew.h
38#endif
39
40#define __wglext_h_
41
42#if !defined(APIENTRY) && !defined(__CYGWIN__)
43#  ifndef WIN32_LEAN_AND_MEAN
44#    define WIN32_LEAN_AND_MEAN 1
45#  endif
46#include <windows.h>
47#endif
48
49/*
50 * GLEW_STATIC needs to be set when using the static version.
51 * GLEW_BUILD is set when building the DLL version.
52 */
53#ifdef GLEW_STATIC
54#  define GLEWAPI extern
55#else
56#  ifdef GLEW_BUILD
57#    define GLEWAPI extern __declspec(dllexport)
58#  else
59#    define GLEWAPI extern __declspec(dllimport)
60#  endif
61#endif
62
63#ifdef __cplusplus
64extern "C" {
65#endif
66
67/* -------------------------- WGL_3DFX_multisample ------------------------- */
68
69#ifndef WGL_3DFX_multisample
70#define WGL_3DFX_multisample 1
71
72#define WGL_SAMPLE_BUFFERS_3DFX 0x2060
73#define WGL_SAMPLES_3DFX 0x2061
74
75#define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
76
77#endif /* WGL_3DFX_multisample */
78
79/* ------------------------- WGL_3DL_stereo_control ------------------------ */
80
81#ifndef WGL_3DL_stereo_control
82#define WGL_3DL_stereo_control 1
83
84#define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
85#define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
86#define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
87#define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
88
89typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
90
91#define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
92
93#define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
94
95#endif /* WGL_3DL_stereo_control */
96
97/* ------------------------- WGL_ARB_buffer_region ------------------------- */
98
99#ifndef WGL_ARB_buffer_region
100#define WGL_ARB_buffer_region 1
101
102#define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
103#define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
104#define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
105#define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
106
107typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
108typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
109typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
110typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
111
112#define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
113#define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
114#define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
115#define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
116
117#define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
118
119#endif /* WGL_ARB_buffer_region */
120
121/* ----------------------- WGL_ARB_extensions_string ----------------------- */
122
123#ifndef WGL_ARB_extensions_string
124#define WGL_ARB_extensions_string 1
125
126typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
127
128#define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
129
130#define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
131
132#endif /* WGL_ARB_extensions_string */
133
134/* ----------------------- WGL_ARB_make_current_read ----------------------- */
135
136#ifndef WGL_ARB_make_current_read
137#define WGL_ARB_make_current_read 1
138
139typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
140typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
141
142#define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
143#define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
144
145#define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
146
147#endif /* WGL_ARB_make_current_read */
148
149/* -------------------------- WGL_ARB_multisample -------------------------- */
150
151#ifndef WGL_ARB_multisample
152#define WGL_ARB_multisample 1
153
154#define WGL_SAMPLE_BUFFERS_ARB 0x2041
155#define WGL_SAMPLES_ARB 0x2042
156
157#define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
158
159#endif /* WGL_ARB_multisample */
160
161/* ---------------------------- WGL_ARB_pbuffer ---------------------------- */
162
163#ifndef WGL_ARB_pbuffer
164#define WGL_ARB_pbuffer 1
165
166#define WGL_DRAW_TO_PBUFFER_ARB 0x202D
167#define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
168#define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
169#define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
170#define WGL_PBUFFER_LARGEST_ARB 0x2033
171#define WGL_PBUFFER_WIDTH_ARB 0x2034
172#define WGL_PBUFFER_HEIGHT_ARB 0x2035
173#define WGL_PBUFFER_LOST_ARB 0x2036
174
175DECLARE_HANDLE(HPBUFFERARB);
176
177typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
178typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
179typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
180typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
181typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
182
183#define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
184#define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
185#define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
186#define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
187#define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
188
189#define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
190
191#endif /* WGL_ARB_pbuffer */
192
193/* -------------------------- WGL_ARB_pixel_format ------------------------- */
194
195#ifndef WGL_ARB_pixel_format
196#define WGL_ARB_pixel_format 1
197
198#define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
199#define WGL_DRAW_TO_WINDOW_ARB 0x2001
200#define WGL_DRAW_TO_BITMAP_ARB 0x2002
201#define WGL_ACCELERATION_ARB 0x2003
202#define WGL_NEED_PALETTE_ARB 0x2004
203#define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
204#define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
205#define WGL_SWAP_METHOD_ARB 0x2007
206#define WGL_NUMBER_OVERLAYS_ARB 0x2008
207#define WGL_NUMBER_UNDERLAYS_ARB 0x2009
208#define WGL_TRANSPARENT_ARB 0x200A
209#define WGL_SHARE_DEPTH_ARB 0x200C
210#define WGL_SHARE_STENCIL_ARB 0x200D
211#define WGL_SHARE_ACCUM_ARB 0x200E
212#define WGL_SUPPORT_GDI_ARB 0x200F
213#define WGL_SUPPORT_OPENGL_ARB 0x2010
214#define WGL_DOUBLE_BUFFER_ARB 0x2011
215#define WGL_STEREO_ARB 0x2012
216#define WGL_PIXEL_TYPE_ARB 0x2013
217#define WGL_COLOR_BITS_ARB 0x2014
218#define WGL_RED_BITS_ARB 0x2015
219#define WGL_RED_SHIFT_ARB 0x2016
220#define WGL_GREEN_BITS_ARB 0x2017
221#define WGL_GREEN_SHIFT_ARB 0x2018
222#define WGL_BLUE_BITS_ARB 0x2019
223#define WGL_BLUE_SHIFT_ARB 0x201A
224#define WGL_ALPHA_BITS_ARB 0x201B
225#define WGL_ALPHA_SHIFT_ARB 0x201C
226#define WGL_ACCUM_BITS_ARB 0x201D
227#define WGL_ACCUM_RED_BITS_ARB 0x201E
228#define WGL_ACCUM_GREEN_BITS_ARB 0x201F
229#define WGL_ACCUM_BLUE_BITS_ARB 0x2020
230#define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
231#define WGL_DEPTH_BITS_ARB 0x2022
232#define WGL_STENCIL_BITS_ARB 0x2023
233#define WGL_AUX_BUFFERS_ARB 0x2024
234#define WGL_NO_ACCELERATION_ARB 0x2025
235#define WGL_GENERIC_ACCELERATION_ARB 0x2026
236#define WGL_FULL_ACCELERATION_ARB 0x2027
237#define WGL_SWAP_EXCHANGE_ARB 0x2028
238#define WGL_SWAP_COPY_ARB 0x2029
239#define WGL_SWAP_UNDEFINED_ARB 0x202A
240#define WGL_TYPE_RGBA_ARB 0x202B
241#define WGL_TYPE_COLORINDEX_ARB 0x202C
242#define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
243#define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
244#define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
245#define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
246#define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
247
248typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
249typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues);
250typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues);
251
252#define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
253#define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
254#define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
255
256#define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
257
258#endif /* WGL_ARB_pixel_format */
259
260/* ----------------------- WGL_ARB_pixel_format_float ---------------------- */
261
262#ifndef WGL_ARB_pixel_format_float
263#define WGL_ARB_pixel_format_float 1
264
265#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
266
267#define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
268
269#endif /* WGL_ARB_pixel_format_float */
270
271/* ------------------------- WGL_ARB_render_texture ------------------------ */
272
273#ifndef WGL_ARB_render_texture
274#define WGL_ARB_render_texture 1
275
276#define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
277#define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
278#define WGL_TEXTURE_FORMAT_ARB 0x2072
279#define WGL_TEXTURE_TARGET_ARB 0x2073
280#define WGL_MIPMAP_TEXTURE_ARB 0x2074
281#define WGL_TEXTURE_RGB_ARB 0x2075
282#define WGL_TEXTURE_RGBA_ARB 0x2076
283#define WGL_NO_TEXTURE_ARB 0x2077
284#define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
285#define WGL_TEXTURE_1D_ARB 0x2079
286#define WGL_TEXTURE_2D_ARB 0x207A
287#define WGL_MIPMAP_LEVEL_ARB 0x207B
288#define WGL_CUBE_MAP_FACE_ARB 0x207C
289#define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
290#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
291#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
292#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
293#define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
294#define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
295#define WGL_FRONT_LEFT_ARB 0x2083
296#define WGL_FRONT_RIGHT_ARB 0x2084
297#define WGL_BACK_LEFT_ARB 0x2085
298#define WGL_BACK_RIGHT_ARB 0x2086
299#define WGL_AUX0_ARB 0x2087
300#define WGL_AUX1_ARB 0x2088
301#define WGL_AUX2_ARB 0x2089
302#define WGL_AUX3_ARB 0x208A
303#define WGL_AUX4_ARB 0x208B
304#define WGL_AUX5_ARB 0x208C
305#define WGL_AUX6_ARB 0x208D
306#define WGL_AUX7_ARB 0x208E
307#define WGL_AUX8_ARB 0x208F
308#define WGL_AUX9_ARB 0x2090
309
310typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
311typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
312typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
313
314#define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
315#define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
316#define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
317
318#define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
319
320#endif /* WGL_ARB_render_texture */
321
322/* ----------------------- WGL_ATI_pixel_format_float ---------------------- */
323
324#ifndef WGL_ATI_pixel_format_float
325#define WGL_ATI_pixel_format_float 1
326
327#define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
328#define GL_RGBA_FLOAT_MODE_ATI 0x8820
329#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
330
331#define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
332
333#endif /* WGL_ATI_pixel_format_float */
334
335/* -------------------- WGL_ATI_render_texture_rectangle ------------------- */
336
337#ifndef WGL_ATI_render_texture_rectangle
338#define WGL_ATI_render_texture_rectangle 1
339
340#define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
341
342#define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
343
344#endif /* WGL_ATI_render_texture_rectangle */
345
346/* -------------------------- WGL_EXT_depth_float -------------------------- */
347
348#ifndef WGL_EXT_depth_float
349#define WGL_EXT_depth_float 1
350
351#define WGL_DEPTH_FLOAT_EXT 0x2040
352
353#define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
354
355#endif /* WGL_EXT_depth_float */
356
357/* ---------------------- WGL_EXT_display_color_table ---------------------- */
358
359#ifndef WGL_EXT_display_color_table
360#define WGL_EXT_display_color_table 1
361
362typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
363typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
364typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
365typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
366
367#define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
368#define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
369#define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
370#define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
371
372#define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
373
374#endif /* WGL_EXT_display_color_table */
375
376/* ----------------------- WGL_EXT_extensions_string ----------------------- */
377
378#ifndef WGL_EXT_extensions_string
379#define WGL_EXT_extensions_string 1
380
381typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
382
383#define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
384
385#define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
386
387#endif /* WGL_EXT_extensions_string */
388
389/* ----------------------- WGL_EXT_make_current_read ----------------------- */
390
391#ifndef WGL_EXT_make_current_read
392#define WGL_EXT_make_current_read 1
393
394typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
395typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
396
397#define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
398#define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
399
400#define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
401
402#endif /* WGL_EXT_make_current_read */
403
404/* -------------------------- WGL_EXT_multisample -------------------------- */
405
406#ifndef WGL_EXT_multisample
407#define WGL_EXT_multisample 1
408
409#define WGL_SAMPLE_BUFFERS_EXT 0x2041
410#define WGL_SAMPLES_EXT 0x2042
411
412#define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
413
414#endif /* WGL_EXT_multisample */
415
416/* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
417
418#ifndef WGL_EXT_pbuffer
419#define WGL_EXT_pbuffer 1
420
421#define WGL_DRAW_TO_PBUFFER_EXT 0x202D
422#define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
423#define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
424#define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
425#define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
426#define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
427#define WGL_PBUFFER_LARGEST_EXT 0x2033
428#define WGL_PBUFFER_WIDTH_EXT 0x2034
429#define WGL_PBUFFER_HEIGHT_EXT 0x2035
430
431DECLARE_HANDLE(HPBUFFEREXT);
432
433typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
434typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
435typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
436typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
437typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
438
439#define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
440#define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
441#define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
442#define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
443#define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
444
445#define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
446
447#endif /* WGL_EXT_pbuffer */
448
449/* -------------------------- WGL_EXT_pixel_format ------------------------- */
450
451#ifndef WGL_EXT_pixel_format
452#define WGL_EXT_pixel_format 1
453
454#define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
455#define WGL_DRAW_TO_WINDOW_EXT 0x2001
456#define WGL_DRAW_TO_BITMAP_EXT 0x2002
457#define WGL_ACCELERATION_EXT 0x2003
458#define WGL_NEED_PALETTE_EXT 0x2004
459#define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
460#define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
461#define WGL_SWAP_METHOD_EXT 0x2007
462#define WGL_NUMBER_OVERLAYS_EXT 0x2008
463#define WGL_NUMBER_UNDERLAYS_EXT 0x2009
464#define WGL_TRANSPARENT_EXT 0x200A
465#define WGL_TRANSPARENT_VALUE_EXT 0x200B
466#define WGL_SHARE_DEPTH_EXT 0x200C
467#define WGL_SHARE_STENCIL_EXT 0x200D
468#define WGL_SHARE_ACCUM_EXT 0x200E
469#define WGL_SUPPORT_GDI_EXT 0x200F
470#define WGL_SUPPORT_OPENGL_EXT 0x2010
471#define WGL_DOUBLE_BUFFER_EXT 0x2011
472#define WGL_STEREO_EXT 0x2012
473#define WGL_PIXEL_TYPE_EXT 0x2013
474#define WGL_COLOR_BITS_EXT 0x2014
475#define WGL_RED_BITS_EXT 0x2015
476#define WGL_RED_SHIFT_EXT 0x2016
477#define WGL_GREEN_BITS_EXT 0x2017
478#define WGL_GREEN_SHIFT_EXT 0x2018
479#define WGL_BLUE_BITS_EXT 0x2019
480#define WGL_BLUE_SHIFT_EXT 0x201A
481#define WGL_ALPHA_BITS_EXT 0x201B
482#define WGL_ALPHA_SHIFT_EXT 0x201C
483#define WGL_ACCUM_BITS_EXT 0x201D
484#define WGL_ACCUM_RED_BITS_EXT 0x201E
485#define WGL_ACCUM_GREEN_BITS_EXT 0x201F
486#define WGL_ACCUM_BLUE_BITS_EXT 0x2020
487#define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
488#define WGL_DEPTH_BITS_EXT 0x2022
489#define WGL_STENCIL_BITS_EXT 0x2023
490#define WGL_AUX_BUFFERS_EXT 0x2024
491#define WGL_NO_ACCELERATION_EXT 0x2025
492#define WGL_GENERIC_ACCELERATION_EXT 0x2026
493#define WGL_FULL_ACCELERATION_EXT 0x2027
494#define WGL_SWAP_EXCHANGE_EXT 0x2028
495#define WGL_SWAP_COPY_EXT 0x2029
496#define WGL_SWAP_UNDEFINED_EXT 0x202A
497#define WGL_TYPE_RGBA_EXT 0x202B
498#define WGL_TYPE_COLORINDEX_EXT 0x202C
499
500typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
501typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
502typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
503
504#define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
505#define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
506#define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
507
508#define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
509
510#endif /* WGL_EXT_pixel_format */
511
512/* -------------------------- WGL_EXT_swap_control ------------------------- */
513
514#ifndef WGL_EXT_swap_control
515#define WGL_EXT_swap_control 1
516
517typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
518typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
519
520#define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
521#define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
522
523#define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
524
525#endif /* WGL_EXT_swap_control */
526
527/* --------------------- WGL_I3D_digital_video_control --------------------- */
528
529#ifndef WGL_I3D_digital_video_control
530#define WGL_I3D_digital_video_control 1
531
532#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
533#define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
534#define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
535#define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
536
537typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
538typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
539
540#define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
541#define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
542
543#define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
544
545#endif /* WGL_I3D_digital_video_control */
546
547/* ----------------------------- WGL_I3D_gamma ----------------------------- */
548
549#ifndef WGL_I3D_gamma
550#define WGL_I3D_gamma 1
551
552#define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
553#define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
554
555typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
556typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
557typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
558typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
559
560#define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
561#define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
562#define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
563#define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
564
565#define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
566
567#endif /* WGL_I3D_gamma */
568
569/* ---------------------------- WGL_I3D_genlock ---------------------------- */
570
571#ifndef WGL_I3D_genlock
572#define WGL_I3D_genlock 1
573
574#define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
575#define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
576#define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
577#define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
578#define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
579#define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
580#define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
581#define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
582#define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
583
584typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
585typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
586typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
587typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
588typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
589typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
590typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
591typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
592typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
593typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
594typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
595typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
596
597#define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
598#define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
599#define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
600#define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
601#define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
602#define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
603#define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
604#define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
605#define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
606#define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
607#define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
608#define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
609
610#define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
611
612#endif /* WGL_I3D_genlock */
613
614/* -------------------------- WGL_I3D_image_buffer ------------------------- */
615
616#ifndef WGL_I3D_image_buffer
617#define WGL_I3D_image_buffer 1
618
619#define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
620#define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
621
622typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
623typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
624typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
625typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
626
627#define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
628#define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
629#define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
630#define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
631
632#define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
633
634#endif /* WGL_I3D_image_buffer */
635
636/* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
637
638#ifndef WGL_I3D_swap_frame_lock
639#define WGL_I3D_swap_frame_lock 1
640
641typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
642typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
643typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
644typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
645
646#define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
647#define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
648#define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
649#define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
650
651#define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
652
653#endif /* WGL_I3D_swap_frame_lock */
654
655/* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
656
657#ifndef WGL_I3D_swap_frame_usage
658#define WGL_I3D_swap_frame_usage 1
659
660typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
661typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
662typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
663typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
664
665#define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
666#define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
667#define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
668#define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
669
670#define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
671
672#endif /* WGL_I3D_swap_frame_usage */
673
674/* -------------------------- WGL_NV_float_buffer -------------------------- */
675
676#ifndef WGL_NV_float_buffer
677#define WGL_NV_float_buffer 1
678
679#define WGL_FLOAT_COMPONENTS_NV 0x20B0
680#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
681#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
682#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
683#define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
684#define WGL_TEXTURE_FLOAT_R_NV 0x20B5
685#define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
686#define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
687#define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
688
689#define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
690
691#endif /* WGL_NV_float_buffer */
692
693/* ---------------------- WGL_NV_render_depth_texture ---------------------- */
694
695#ifndef WGL_NV_render_depth_texture
696#define WGL_NV_render_depth_texture 1
697
698#define WGL_NO_TEXTURE_ARB 0x2077
699#define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
700#define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
701#define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
702#define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
703#define WGL_DEPTH_COMPONENT_NV 0x20A7
704
705#define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
706
707#endif /* WGL_NV_render_depth_texture */
708
709/* -------------------- WGL_NV_render_texture_rectangle -------------------- */
710
711#ifndef WGL_NV_render_texture_rectangle
712#define WGL_NV_render_texture_rectangle 1
713
714#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
715#define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
716#define WGL_TEXTURE_RECTANGLE_NV 0x20A2
717
718#define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
719
720#endif /* WGL_NV_render_texture_rectangle */
721
722/* ----------------------- WGL_NV_vertex_array_range ----------------------- */
723
724#ifndef WGL_NV_vertex_array_range
725#define WGL_NV_vertex_array_range 1
726
727typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
728typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
729
730#define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
731#define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
732
733#define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
734
735#endif /* WGL_NV_vertex_array_range */
736
737/* -------------------------- WGL_OML_sync_control ------------------------- */
738
739#ifndef WGL_OML_sync_control
740#define WGL_OML_sync_control 1
741
742typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
743typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
744typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
745typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
746typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
747typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
748
749#define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
750#define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
751#define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
752#define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
753#define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
754#define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
755
756#define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
757
758#endif /* WGL_OML_sync_control */
759
760/* ------------------------------------------------------------------------- */
761
762#ifdef GLEW_MX
763#define WGLEW_EXPORT
764#else
765#define WGLEW_EXPORT GLEWAPI
766#endif /* GLEW_MX */
767
768#ifdef GLEW_MX
769struct WGLEWContextStruct
770{
771#endif /* GLEW_MX */
772
773WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
774
775WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
776WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
777WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
778WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
779
780WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
781
782WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
783WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
784
785WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
786WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
787WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
788WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
789WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
790
791WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
792WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
793WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
794
795WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
796WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
797WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
798
799WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
800WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
801WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
802WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
803
804WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
805
806WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
807WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
808
809WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
810WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
811WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
812WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
813WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
814
815WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
816WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
817WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
818
819WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
820WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
821
822WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
823WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
824
825WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
826WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
827WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
828WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
829
830WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
831WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
832WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
833WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
834WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
835WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
836WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
837WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
838WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
839WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
840WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
841WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
842
843WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
844WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
845WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
846WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
847
848WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
849WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
850WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
851WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
852
853WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
854WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
855WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
856WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
857
858WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
859WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
860
861WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
862WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
863WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
864WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
865WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
866WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
867WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
868WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
869WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
870WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
871WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
872WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample;
873WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer;
874WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format;
875WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
876WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture;
877WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
878WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
879WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float;
880WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table;
881WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string;
882WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read;
883WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample;
884WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer;
885WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format;
886WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control;
887WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
888WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma;
889WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock;
890WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
891WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
892WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
893WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
894WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
895WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
896WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
897WGLEW_EXPORT GLboolean __WGLEW_OML_sync_control;
898
899#ifdef GLEW_MX
900}; /* WGLEWContextStruct */
901#endif /* GLEW_MX */
902
903/* ------------------------------------------------------------------------- */
904
905#ifdef GLEW_MX
906
907typedef struct WGLEWContextStruct WGLEWContext;
908GLEWAPI GLenum wglewContextInit (WGLEWContext* ctx);
909GLEWAPI GLboolean wglewContextIsSupported (WGLEWContext* ctx, const char* name);
910
911#define wglewInit() wglewContextInit(wglewGetContext())
912#define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
913
914#define WGLEW_GET_VAR(x) wglewGetContext()->x
915#define WGLEW_GET_FUN(x) wglewGetContext()->x
916
917#else /* GLEW_MX */
918
919#define WGLEW_GET_VAR(x) x
920#define WGLEW_GET_FUN(x) x
921
922GLEWAPI GLboolean wglewIsSupported (const char* name);
923
924#endif /* GLEW_MX */
925
926GLEWAPI GLboolean wglewGetExtension (const char* name);
927
928#ifdef __cplusplus
929}
930#endif
931
932#undef GLEWAPI
933
934#endif /* __wglew_h__ */
Note: See TracBrowser for help on using the repository browser.