]> git.jsancho.org Git - lugaru.git/blob - Dependencies/OpenGL/GL/wglext.h
Replaced headers with icculus' OpenGL headers, which hopefully fix MSVC building...
[lugaru.git] / Dependencies / OpenGL / GL / wglext.h
1 #ifndef __wglext_h_
2 #define __wglext_h_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /*
9 ** License Applicability. Except to the extent portions of this file are
10 ** made subject to an alternative license as permitted in the SGI Free
11 ** Software License B, Version 1.1 (the "License"), the contents of this
12 ** file are subject only to the provisions of the License. You may not use
13 ** this file except in compliance with the License. You may obtain a copy
14 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
15 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
16 ** 
17 ** http://oss.sgi.com/projects/FreeB
18 ** 
19 ** Note that, as provided in the License, the Software is distributed on an
20 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
21 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
22 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
23 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
24 ** 
25 ** Original Code. The Original Code is: OpenGL Sample Implementation,
26 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
27 ** Inc. The Original Code is Copyright (c) 1991-2000 Silicon Graphics, Inc.
28 ** Copyright in any portions created by third parties is as indicated
29 ** elsewhere herein. All Rights Reserved.
30 ** 
31 ** Additional Notice Provisions: This software was created using the
32 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
33 ** not been independently verified as being compliant with the OpenGL(R)
34 ** version 1.2.1 Specification.
35 */
36
37 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__)
38 #define WIN32_LEAN_AND_MEAN 1
39 #include <windows.h>
40 #endif
41
42 #ifndef APIENTRY
43 #define APIENTRY
44 #endif
45
46 /*************************************************************/
47
48 /* Header file version number */
49 #define WGL_WGLEXT_VERSION 1
50
51 #ifndef WGL_ARB_buffer_region
52 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
53 #define WGL_BACK_COLOR_BUFFER_BIT_ARB  0x00000002
54 #define WGL_DEPTH_BUFFER_BIT_ARB       0x00000004
55 #define WGL_STENCIL_BUFFER_BIT_ARB     0x00000008
56 #endif
57
58 #ifndef WGL_ARB_extensions_string
59 #endif
60
61 #ifndef WGL_ARB_pixel_format
62 #define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
63 #define WGL_DRAW_TO_WINDOW_ARB         0x2001
64 #define WGL_DRAW_TO_BITMAP_ARB         0x2002
65 #define WGL_ACCELERATION_ARB           0x2003
66 #define WGL_NEED_PALETTE_ARB           0x2004
67 #define WGL_NEED_SYSTEM_PALETTE_ARB    0x2005
68 #define WGL_SWAP_LAYER_BUFFERS_ARB     0x2006
69 #define WGL_SWAP_METHOD_ARB            0x2007
70 #define WGL_NUMBER_OVERLAYS_ARB        0x2008
71 #define WGL_NUMBER_UNDERLAYS_ARB       0x2009
72 #define WGL_TRANSPARENT_ARB            0x200A
73 #define WGL_TRANSPARENT_RED_VALUE_ARB  0x2037
74 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
75 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
76 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
77 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
78 #define WGL_SHARE_DEPTH_ARB            0x200C
79 #define WGL_SHARE_STENCIL_ARB          0x200D
80 #define WGL_SHARE_ACCUM_ARB            0x200E
81 #define WGL_SUPPORT_GDI_ARB            0x200F
82 #define WGL_SUPPORT_OPENGL_ARB         0x2010
83 #define WGL_DOUBLE_BUFFER_ARB          0x2011
84 #define WGL_STEREO_ARB                 0x2012
85 #define WGL_PIXEL_TYPE_ARB             0x2013
86 #define WGL_COLOR_BITS_ARB             0x2014
87 #define WGL_RED_BITS_ARB               0x2015
88 #define WGL_RED_SHIFT_ARB              0x2016
89 #define WGL_GREEN_BITS_ARB             0x2017
90 #define WGL_GREEN_SHIFT_ARB            0x2018
91 #define WGL_BLUE_BITS_ARB              0x2019
92 #define WGL_BLUE_SHIFT_ARB             0x201A
93 #define WGL_ALPHA_BITS_ARB             0x201B
94 #define WGL_ALPHA_SHIFT_ARB            0x201C
95 #define WGL_ACCUM_BITS_ARB             0x201D
96 #define WGL_ACCUM_RED_BITS_ARB         0x201E
97 #define WGL_ACCUM_GREEN_BITS_ARB       0x201F
98 #define WGL_ACCUM_BLUE_BITS_ARB        0x2020
99 #define WGL_ACCUM_ALPHA_BITS_ARB       0x2021
100 #define WGL_DEPTH_BITS_ARB             0x2022
101 #define WGL_STENCIL_BITS_ARB           0x2023
102 #define WGL_AUX_BUFFERS_ARB            0x2024
103 #define WGL_NO_ACCELERATION_ARB        0x2025
104 #define WGL_GENERIC_ACCELERATION_ARB   0x2026
105 #define WGL_FULL_ACCELERATION_ARB      0x2027
106 #define WGL_SWAP_EXCHANGE_ARB          0x2028
107 #define WGL_SWAP_COPY_ARB              0x2029
108 #define WGL_SWAP_UNDEFINED_ARB         0x202A
109 #define WGL_TYPE_RGBA_ARB              0x202B
110 #define WGL_TYPE_COLORINDEX_ARB        0x202C
111 #endif
112
113 #ifndef WGL_ARB_make_current_read
114 #define ERROR_INVALID_PIXEL_TYPE_ARB   0x2043
115 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
116 #endif
117
118 #ifndef WGL_ARB_pbuffer
119 #define WGL_DRAW_TO_PBUFFER_ARB        0x202D
120 #define WGL_MAX_PBUFFER_PIXELS_ARB     0x202E
121 #define WGL_MAX_PBUFFER_WIDTH_ARB      0x202F
122 #define WGL_MAX_PBUFFER_HEIGHT_ARB     0x2030
123 #define WGL_PBUFFER_LARGEST_ARB        0x2033
124 #define WGL_PBUFFER_WIDTH_ARB          0x2034
125 #define WGL_PBUFFER_HEIGHT_ARB         0x2035
126 #define WGL_PBUFFER_LOST_ARB           0x2036
127 #endif
128
129 #ifndef WGL_EXT_make_current_read
130 #define ERROR_INVALID_PIXEL_TYPE_EXT   0x2043
131 #endif
132
133 #ifndef WGL_EXT_pixel_format
134 #define WGL_NUMBER_PIXEL_FORMATS_EXT   0x2000
135 #define WGL_DRAW_TO_WINDOW_EXT         0x2001
136 #define WGL_DRAW_TO_BITMAP_EXT         0x2002
137 #define WGL_ACCELERATION_EXT           0x2003
138 #define WGL_NEED_PALETTE_EXT           0x2004
139 #define WGL_NEED_SYSTEM_PALETTE_EXT    0x2005
140 #define WGL_SWAP_LAYER_BUFFERS_EXT     0x2006
141 #define WGL_SWAP_METHOD_EXT            0x2007
142 #define WGL_NUMBER_OVERLAYS_EXT        0x2008
143 #define WGL_NUMBER_UNDERLAYS_EXT       0x2009
144 #define WGL_TRANSPARENT_EXT            0x200A
145 #define WGL_TRANSPARENT_VALUE_EXT      0x200B
146 #define WGL_SHARE_DEPTH_EXT            0x200C
147 #define WGL_SHARE_STENCIL_EXT          0x200D
148 #define WGL_SHARE_ACCUM_EXT            0x200E
149 #define WGL_SUPPORT_GDI_EXT            0x200F
150 #define WGL_SUPPORT_OPENGL_EXT         0x2010
151 #define WGL_DOUBLE_BUFFER_EXT          0x2011
152 #define WGL_STEREO_EXT                 0x2012
153 #define WGL_PIXEL_TYPE_EXT             0x2013
154 #define WGL_COLOR_BITS_EXT             0x2014
155 #define WGL_RED_BITS_EXT               0x2015
156 #define WGL_RED_SHIFT_EXT              0x2016
157 #define WGL_GREEN_BITS_EXT             0x2017
158 #define WGL_GREEN_SHIFT_EXT            0x2018
159 #define WGL_BLUE_BITS_EXT              0x2019
160 #define WGL_BLUE_SHIFT_EXT             0x201A
161 #define WGL_ALPHA_BITS_EXT             0x201B
162 #define WGL_ALPHA_SHIFT_EXT            0x201C
163 #define WGL_ACCUM_BITS_EXT             0x201D
164 #define WGL_ACCUM_RED_BITS_EXT         0x201E
165 #define WGL_ACCUM_GREEN_BITS_EXT       0x201F
166 #define WGL_ACCUM_BLUE_BITS_EXT        0x2020
167 #define WGL_ACCUM_ALPHA_BITS_EXT       0x2021
168 #define WGL_DEPTH_BITS_EXT             0x2022
169 #define WGL_STENCIL_BITS_EXT           0x2023
170 #define WGL_AUX_BUFFERS_EXT            0x2024
171 #define WGL_NO_ACCELERATION_EXT        0x2025
172 #define WGL_GENERIC_ACCELERATION_EXT   0x2026
173 #define WGL_FULL_ACCELERATION_EXT      0x2027
174 #define WGL_SWAP_EXCHANGE_EXT          0x2028
175 #define WGL_SWAP_COPY_EXT              0x2029
176 #define WGL_SWAP_UNDEFINED_EXT         0x202A
177 #define WGL_TYPE_RGBA_EXT              0x202B
178 #define WGL_TYPE_COLORINDEX_EXT        0x202C
179 #endif
180
181 #ifndef WGL_EXT_pbuffer
182 #define WGL_DRAW_TO_PBUFFER_EXT        0x202D
183 #define WGL_MAX_PBUFFER_PIXELS_EXT     0x202E
184 #define WGL_MAX_PBUFFER_WIDTH_EXT      0x202F
185 #define WGL_MAX_PBUFFER_HEIGHT_EXT     0x2030
186 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT  0x2031
187 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
188 #define WGL_PBUFFER_LARGEST_EXT        0x2033
189 #define WGL_PBUFFER_WIDTH_EXT          0x2034
190 #define WGL_PBUFFER_HEIGHT_EXT         0x2035
191 #endif
192
193 #ifndef WGL_ARB_render_texture
194 #define WGL_BIND_TO_TEXTURE_RGB_ARB        0x2070
195 #define WGL_BIND_TO_TEXTURE_RGBA_ARB       0x2071
196 #define WGL_TEXTURE_FORMAT_ARB             0x2072
197 #define WGL_TEXTURE_TARGET_ARB             0x2073
198 #define WGL_MIPMAP_TEXTURE_ARB             0x2074
199 #define WGL_TEXTURE_RGB_ARB                0x2075
200 #define WGL_TEXTURE_RGBA_ARB               0x2076
201 #define WGL_NO_TEXTURE_ARB                 0x2077
202 #define WGL_TEXTURE_CUBE_MAP_ARB           0x2078
203 #define WGL_TEXTURE_1D_ARB                 0x2079
204 #define WGL_TEXTURE_2D_ARB                 0x207A
205 #define WGL_MIPMAP_LEVEL_ARB               0x207B
206 #define WGL_CUBE_MAP_FACE_ARB              0x207C
207 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
208 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
209 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
210 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
211 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
212 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
213 #define WGL_FRONT_LEFT_ARB                 0x2083
214 #define WGL_FRONT_RIGHT_ARB                0x2084
215 #define WGL_BACK_LEFT_ARB                  0x2085
216 #define WGL_BACK_RIGHT_ARB                 0x2086
217 #define WGL_AUX0_ARB                       0x2087
218 #define WGL_AUX1_ARB                       0x2088
219 #define WGL_AUX2_ARB                       0x2089
220 #define WGL_AUX3_ARB                       0x208A
221 #define WGL_AUX4_ARB                       0x208B
222 #define WGL_AUX5_ARB                       0x208C
223 #define WGL_AUX6_ARB                       0x208D
224 #define WGL_AUX7_ARB                       0x208E
225 #define WGL_AUX8_ARB                       0x208F
226 #define WGL_AUX9_ARB                       0x2090
227 #endif
228
229 #ifndef WGL_EXT_depth_float
230 #define WGL_DEPTH_FLOAT_EXT                0x2040
231 #endif
232
233 #ifndef WGL_NV_float_buffer
234 #define WGL_FLOAT_COMPONENTS_NV                     0x20B0
235 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV    0x20B1
236 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV   0x20B2
237 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV  0x20B3
238 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
239
240 #define WGL_TEXTURE_FLOAT_R_NV                      0x20B5
241 #define WGL_TEXTURE_FLOAT_RG_NV                     0x20B6
242 #define WGL_TEXTURE_FLOAT_RGB_NV                    0x20B7
243 #define WGL_TEXTURE_FLOAT_RGBA_NV                   0x20B8
244 #endif
245
246 #ifndef WGL_NV_render_texture_rectangle
247 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV        0x20A0
248 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV       0x20A1
249
250 #define WGL_TEXTURE_RECTANGLE_NV                    0x20A2
251 #endif
252
253
254 #ifndef WGL_NV_render_depth_texture
255 #define WGL_TEXTURE_DEPTH_COMPONENT_NV          0x20A6
256 #define WGL_DEPTH_TEXTURE_FORMAT_NV             0x20A5
257 #define WGL_BIND_TO_TEXTURE_DEPTH_NV            0x20A3
258 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV  0x20A4
259 #define WGL_DEPTH_COMPONENT_NV                  0x20A7
260 #endif
261
262 #ifndef WGL_3DFX_multisample
263 #define WGL_SAMPLE_BUFFERS_3DFX        0x2060
264 #define WGL_SAMPLES_3DFX               0x2061
265 #endif
266
267 #ifndef WGL_EXT_multisample
268 #define WGL_SAMPLE_BUFFERS_EXT         0x2041
269 #define WGL_SAMPLES_EXT                0x2042
270 #endif
271
272 #ifndef WGL_I3D_unknown_genlock_extension_name
273 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
274 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
275 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
276 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
277 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
278 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
279 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
280 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
281 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
282 #endif
283
284 #ifndef WGL_I3D_unknown_gamma_extension_name
285 #define WGL_GAMMA_TABLE_SIZE_I3D       0x204E
286 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D  0x204F
287 #endif
288
289 #ifndef WGL_I3D_unknown_digital_video_cursor_extension_name
290 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
291 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
292 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
293 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
294 #endif
295
296
297 /*************************************************************/
298
299 #ifndef WGL_ARB_pbuffer
300 DECLARE_HANDLE(HPBUFFERARB);
301 #endif
302 #ifndef WGL_EXT_pbuffer
303 DECLARE_HANDLE(HPBUFFEREXT);
304 #endif
305
306 #ifndef WGL_ARB_buffer_region
307 #define WGL_ARB_buffer_region 1
308 #ifdef WGL_WGLEXT_PROTOTYPES
309 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
310 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
311 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
312 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
313 #endif /* WGL_WGLEXT_PROTOTYPES */
314 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
315 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
316 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
317 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
318 #endif
319
320 #ifndef WGL_ARB_extensions_string
321 #define WGL_ARB_extensions_string 1
322 #ifdef WGL_WGLEXT_PROTOTYPES
323 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
324 #endif /* WGL_WGLEXT_PROTOTYPES */
325 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
326 #endif
327
328 #ifndef WGL_ARB_pixel_format
329 #define WGL_ARB_pixel_format 1
330 #ifdef WGL_WGLEXT_PROTOTYPES
331 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
332 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
333 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
334 #endif /* WGL_WGLEXT_PROTOTYPES */
335 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
336 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
337 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
338 #endif
339
340 #ifndef WGL_ARB_make_current_read
341 #define WGL_ARB_make_current_read 1
342 #ifdef WGL_WGLEXT_PROTOTYPES
343 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
344 extern HDC WINAPI wglGetCurrentReadDCARB (void);
345 #endif /* WGL_WGLEXT_PROTOTYPES */
346 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
347 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
348 #endif
349
350 #ifndef WGL_ARB_pbuffer
351 #define WGL_ARB_pbuffer 1
352 #ifdef WGL_WGLEXT_PROTOTYPES
353 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
354 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
355 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
356 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
357 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
358 #endif /* WGL_WGLEXT_PROTOTYPES */
359 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
360 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
361 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
362 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
363 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
364 #endif
365
366 #ifndef WGL_EXT_display_color_table
367 #define WGL_EXT_display_color_table 1
368 #ifdef WGL_WGLEXT_PROTOTYPES
369 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
370 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
371 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
372 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
373 #endif /* WGL_WGLEXT_PROTOTYPES */
374 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
375 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
376 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
377 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
378 #endif
379
380 #ifndef WGL_EXT_extensions_string
381 #define WGL_EXT_extensions_string 1
382 #ifdef WGL_WGLEXT_PROTOTYPES
383 extern const char * WINAPI wglGetExtensionsStringEXT (void);
384 #endif /* WGL_WGLEXT_PROTOTYPES */
385 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
386 #endif
387
388 #ifndef WGL_EXT_make_current_read
389 #define WGL_EXT_make_current_read 1
390 #ifdef WGL_WGLEXT_PROTOTYPES
391 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
392 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
393 #endif /* WGL_WGLEXT_PROTOTYPES */
394 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
395 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
396 #endif
397
398 #ifndef WGL_EXT_pbuffer
399 #define WGL_EXT_pbuffer 1
400 #ifdef WGL_WGLEXT_PROTOTYPES
401 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
402 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
403 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
404 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
405 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
406 #endif /* WGL_WGLEXT_PROTOTYPES */
407 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
408 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
409 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
410 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
411 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
412 #endif
413
414 #ifndef WGL_EXT_pixel_format
415 #define WGL_EXT_pixel_format 1
416 #ifdef WGL_WGLEXT_PROTOTYPES
417 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
418 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
419 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
420 #endif /* WGL_WGLEXT_PROTOTYPES */
421 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
422 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
423 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
424 #endif
425
426 #ifndef WGL_EXT_swap_control
427 #define WGL_EXT_swap_control 1
428 #ifdef WGL_WGLEXT_PROTOTYPES
429 extern BOOL WINAPI wglSwapIntervalEXT (int);
430 extern int WINAPI wglGetSwapIntervalEXT (void);
431 #endif /* WGL_WGLEXT_PROTOTYPES */
432 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
433 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
434 #endif
435
436 #ifndef WGL_EXT_depth_float
437 #define WGL_EXT_depth_float 1
438 #endif
439
440 #ifndef WGL_3DFX_multisample
441 #define WGL_3DFX_multisample 1
442 #endif
443
444 #ifndef WGL_EXT_multisample
445 #define WGL_EXT_multisample 1
446 #endif
447
448 /* added by Cass -- but this should already be in here! */
449 #ifndef WGL_NV_allocate_memory
450 #define WGL_NV_allocate_memory 1
451 #ifdef WGL_WGLEXT_PROTOTYPES
452 extern void * wglAllocateMemoryNV(int size, float readfreq, float writefreq, float priority);
453 extern void wglFreeMemoryNV(void * pointer); 
454 #endif
455 typedef void * (APIENTRY * PFNWGLALLOCATEMEMORYNVPROC) (int size, float readfreq, float writefreq, float priority);
456 typedef void (APIENTRY * PFNWGLFREEMEMORYNVPROC) (void *pointer);
457 #endif
458
459 #ifndef WGL_ARB_render_texture
460 #define WGL_ARB_render_texture 1
461 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
462 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
463 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int * piAttribList);
464 #endif
465
466 #ifndef WGL_NV_float_buffer
467 #define WGL_NV_float_buffer 1
468 #endif
469
470 #ifndef WGL_NV_render_texture_rectangle
471 #define WGL_NV_render_texture_rectangle 1
472 #endif
473
474 #ifndef WGL_NV_render_depth_texture
475 #define WGL_NV_render_depth_texture 1
476 #endif
477
478 #ifdef __cplusplus
479 }
480 #endif
481
482 #endif
483
484