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

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