Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/RenderSystems/GL/include/GL/wglew.h @ 3

Last change on this file since 3 was 3, checked in by anonymous, 17 years ago

=update

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