wglext.h
Go to the documentation of this file.
00001 #ifndef __wglext_h_
00002 #define __wglext_h_
00003 
00004 #ifdef __cplusplus
00005 extern "C" {
00006 #endif
00007 
00008 /*
00009 ** License Applicability. Except to the extent portions of this file are
00010 ** made subject to an alternative license as permitted in the SGI Free
00011 ** Software License B, Version 1.1 (the "License"), the contents of this
00012 ** file are subject only to the provisions of the License. You may not use
00013 ** this file except in compliance with the License. You may obtain a copy
00014 ** of the License at Silicon Graphics, Inc., attn: Legal Services, 1600
00015 ** Amphitheatre Parkway, Mountain View, CA 94043-1351, or at:
00016 ** 
00017 ** http://oss.sgi.com/projects/FreeB
00018 ** 
00019 ** Note that, as provided in the License, the Software is distributed on an
00020 ** "AS IS" basis, with ALL EXPRESS AND IMPLIED WARRANTIES AND CONDITIONS
00021 ** DISCLAIMED, INCLUDING, WITHOUT LIMITATION, ANY IMPLIED WARRANTIES AND
00022 ** CONDITIONS OF MERCHANTABILITY, SATISFACTORY QUALITY, FITNESS FOR A
00023 ** PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
00024 ** 
00025 ** Original Code. The Original Code is: OpenGL Sample Implementation,
00026 ** Version 1.2.1, released January 26, 2000, developed by Silicon Graphics,
00027 ** Inc. The Original Code is Copyright (c) 1991-2004 Silicon Graphics, Inc.
00028 ** Copyright in any portions created by third parties is as indicated
00029 ** elsewhere herein. All Rights Reserved.
00030 ** 
00031 ** Additional Notice Provisions: This software was created using the
00032 ** OpenGL(R) version 1.2.1 Sample Implementation published by SGI, but has
00033 ** not been independently verified as being compliant with the OpenGL(R)
00034 ** version 1.2.1 Specification.
00035 */
00036 
00037 #if defined(_WIN32) && !defined(APIENTRY) && !defined(__CYGWIN__) && !defined(__SCITECH_SNAP__)
00038 #define WIN32_LEAN_AND_MEAN 1
00039 #include <windows.h>
00040 #endif
00041 
00042 #ifndef APIENTRY
00043 #define APIENTRY
00044 #endif
00045 #ifndef APIENTRYP
00046 #define APIENTRYP APIENTRY *
00047 #endif
00048 #ifndef GLAPI
00049 #define GLAPI extern
00050 #endif
00051 
00052 /*************************************************************/
00053 
00054 /* Header file version number */
00055 /* wglext.h last updated 2005/01/07 */
00056 /* Current version at http://oss.sgi.com/projects/ogl-sample/registry/ */
00057 #define WGL_WGLEXT_VERSION 6
00058 
00059 #ifndef WGL_ARB_buffer_region
00060 #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
00061 #define WGL_BACK_COLOR_BUFFER_BIT_ARB  0x00000002
00062 #define WGL_DEPTH_BUFFER_BIT_ARB       0x00000004
00063 #define WGL_STENCIL_BUFFER_BIT_ARB     0x00000008
00064 #endif
00065 
00066 #ifndef WGL_ARB_multisample
00067 #define WGL_SAMPLE_BUFFERS_ARB         0x2041
00068 #define WGL_SAMPLES_ARB                0x2042
00069 #endif
00070 
00071 #ifndef WGL_ARB_extensions_string
00072 #endif
00073 
00074 #ifndef WGL_ARB_pixel_format
00075 #define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
00076 #define WGL_DRAW_TO_WINDOW_ARB         0x2001
00077 #define WGL_DRAW_TO_BITMAP_ARB         0x2002
00078 #define WGL_ACCELERATION_ARB           0x2003
00079 #define WGL_NEED_PALETTE_ARB           0x2004
00080 #define WGL_NEED_SYSTEM_PALETTE_ARB    0x2005
00081 #define WGL_SWAP_LAYER_BUFFERS_ARB     0x2006
00082 #define WGL_SWAP_METHOD_ARB            0x2007
00083 #define WGL_NUMBER_OVERLAYS_ARB        0x2008
00084 #define WGL_NUMBER_UNDERLAYS_ARB       0x2009
00085 #define WGL_TRANSPARENT_ARB            0x200A
00086 #define WGL_TRANSPARENT_RED_VALUE_ARB  0x2037
00087 #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
00088 #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
00089 #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
00090 #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
00091 #define WGL_SHARE_DEPTH_ARB            0x200C
00092 #define WGL_SHARE_STENCIL_ARB          0x200D
00093 #define WGL_SHARE_ACCUM_ARB            0x200E
00094 #define WGL_SUPPORT_GDI_ARB            0x200F
00095 #define WGL_SUPPORT_OPENGL_ARB         0x2010
00096 #define WGL_DOUBLE_BUFFER_ARB          0x2011
00097 #define WGL_STEREO_ARB                 0x2012
00098 #define WGL_PIXEL_TYPE_ARB             0x2013
00099 #define WGL_COLOR_BITS_ARB             0x2014
00100 #define WGL_RED_BITS_ARB               0x2015
00101 #define WGL_RED_SHIFT_ARB              0x2016
00102 #define WGL_GREEN_BITS_ARB             0x2017
00103 #define WGL_GREEN_SHIFT_ARB            0x2018
00104 #define WGL_BLUE_BITS_ARB              0x2019
00105 #define WGL_BLUE_SHIFT_ARB             0x201A
00106 #define WGL_ALPHA_BITS_ARB             0x201B
00107 #define WGL_ALPHA_SHIFT_ARB            0x201C
00108 #define WGL_ACCUM_BITS_ARB             0x201D
00109 #define WGL_ACCUM_RED_BITS_ARB         0x201E
00110 #define WGL_ACCUM_GREEN_BITS_ARB       0x201F
00111 #define WGL_ACCUM_BLUE_BITS_ARB        0x2020
00112 #define WGL_ACCUM_ALPHA_BITS_ARB       0x2021
00113 #define WGL_DEPTH_BITS_ARB             0x2022
00114 #define WGL_STENCIL_BITS_ARB           0x2023
00115 #define WGL_AUX_BUFFERS_ARB            0x2024
00116 #define WGL_NO_ACCELERATION_ARB        0x2025
00117 #define WGL_GENERIC_ACCELERATION_ARB   0x2026
00118 #define WGL_FULL_ACCELERATION_ARB      0x2027
00119 #define WGL_SWAP_EXCHANGE_ARB          0x2028
00120 #define WGL_SWAP_COPY_ARB              0x2029
00121 #define WGL_SWAP_UNDEFINED_ARB         0x202A
00122 #define WGL_TYPE_RGBA_ARB              0x202B
00123 #define WGL_TYPE_COLORINDEX_ARB        0x202C
00124 #endif
00125 
00126 #ifndef WGL_ARB_make_current_read
00127 #define ERROR_INVALID_PIXEL_TYPE_ARB   0x2043
00128 #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
00129 #endif
00130 
00131 #ifndef WGL_ARB_pbuffer
00132 #define WGL_DRAW_TO_PBUFFER_ARB        0x202D
00133 #define WGL_MAX_PBUFFER_PIXELS_ARB     0x202E
00134 #define WGL_MAX_PBUFFER_WIDTH_ARB      0x202F
00135 #define WGL_MAX_PBUFFER_HEIGHT_ARB     0x2030
00136 #define WGL_PBUFFER_LARGEST_ARB        0x2033
00137 #define WGL_PBUFFER_WIDTH_ARB          0x2034
00138 #define WGL_PBUFFER_HEIGHT_ARB         0x2035
00139 #define WGL_PBUFFER_LOST_ARB           0x2036
00140 #endif
00141 
00142 #ifndef WGL_ARB_render_texture
00143 #define WGL_BIND_TO_TEXTURE_RGB_ARB    0x2070
00144 #define WGL_BIND_TO_TEXTURE_RGBA_ARB   0x2071
00145 #define WGL_TEXTURE_FORMAT_ARB         0x2072
00146 #define WGL_TEXTURE_TARGET_ARB         0x2073
00147 #define WGL_MIPMAP_TEXTURE_ARB         0x2074
00148 #define WGL_TEXTURE_RGB_ARB            0x2075
00149 #define WGL_TEXTURE_RGBA_ARB           0x2076
00150 #define WGL_NO_TEXTURE_ARB             0x2077
00151 #define WGL_TEXTURE_CUBE_MAP_ARB       0x2078
00152 #define WGL_TEXTURE_1D_ARB             0x2079
00153 #define WGL_TEXTURE_2D_ARB             0x207A
00154 #define WGL_MIPMAP_LEVEL_ARB           0x207B
00155 #define WGL_CUBE_MAP_FACE_ARB          0x207C
00156 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
00157 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
00158 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
00159 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
00160 #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
00161 #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
00162 #define WGL_FRONT_LEFT_ARB             0x2083
00163 #define WGL_FRONT_RIGHT_ARB            0x2084
00164 #define WGL_BACK_LEFT_ARB              0x2085
00165 #define WGL_BACK_RIGHT_ARB             0x2086
00166 #define WGL_AUX0_ARB                   0x2087
00167 #define WGL_AUX1_ARB                   0x2088
00168 #define WGL_AUX2_ARB                   0x2089
00169 #define WGL_AUX3_ARB                   0x208A
00170 #define WGL_AUX4_ARB                   0x208B
00171 #define WGL_AUX5_ARB                   0x208C
00172 #define WGL_AUX6_ARB                   0x208D
00173 #define WGL_AUX7_ARB                   0x208E
00174 #define WGL_AUX8_ARB                   0x208F
00175 #define WGL_AUX9_ARB                   0x2090
00176 #endif
00177 
00178 #ifndef WGL_ARB_pixel_format_float
00179 #define WGL_TYPE_RGBA_FLOAT_ARB        0x21A0
00180 #endif
00181 
00182 #ifndef WGL_EXT_make_current_read
00183 #define ERROR_INVALID_PIXEL_TYPE_EXT   0x2043
00184 #endif
00185 
00186 #ifndef WGL_EXT_pixel_format
00187 #define WGL_NUMBER_PIXEL_FORMATS_EXT   0x2000
00188 #define WGL_DRAW_TO_WINDOW_EXT         0x2001
00189 #define WGL_DRAW_TO_BITMAP_EXT         0x2002
00190 #define WGL_ACCELERATION_EXT           0x2003
00191 #define WGL_NEED_PALETTE_EXT           0x2004
00192 #define WGL_NEED_SYSTEM_PALETTE_EXT    0x2005
00193 #define WGL_SWAP_LAYER_BUFFERS_EXT     0x2006
00194 #define WGL_SWAP_METHOD_EXT            0x2007
00195 #define WGL_NUMBER_OVERLAYS_EXT        0x2008
00196 #define WGL_NUMBER_UNDERLAYS_EXT       0x2009
00197 #define WGL_TRANSPARENT_EXT            0x200A
00198 #define WGL_TRANSPARENT_VALUE_EXT      0x200B
00199 #define WGL_SHARE_DEPTH_EXT            0x200C
00200 #define WGL_SHARE_STENCIL_EXT          0x200D
00201 #define WGL_SHARE_ACCUM_EXT            0x200E
00202 #define WGL_SUPPORT_GDI_EXT            0x200F
00203 #define WGL_SUPPORT_OPENGL_EXT         0x2010
00204 #define WGL_DOUBLE_BUFFER_EXT          0x2011
00205 #define WGL_STEREO_EXT                 0x2012
00206 #define WGL_PIXEL_TYPE_EXT             0x2013
00207 #define WGL_COLOR_BITS_EXT             0x2014
00208 #define WGL_RED_BITS_EXT               0x2015
00209 #define WGL_RED_SHIFT_EXT              0x2016
00210 #define WGL_GREEN_BITS_EXT             0x2017
00211 #define WGL_GREEN_SHIFT_EXT            0x2018
00212 #define WGL_BLUE_BITS_EXT              0x2019
00213 #define WGL_BLUE_SHIFT_EXT             0x201A
00214 #define WGL_ALPHA_BITS_EXT             0x201B
00215 #define WGL_ALPHA_SHIFT_EXT            0x201C
00216 #define WGL_ACCUM_BITS_EXT             0x201D
00217 #define WGL_ACCUM_RED_BITS_EXT         0x201E
00218 #define WGL_ACCUM_GREEN_BITS_EXT       0x201F
00219 #define WGL_ACCUM_BLUE_BITS_EXT        0x2020
00220 #define WGL_ACCUM_ALPHA_BITS_EXT       0x2021
00221 #define WGL_DEPTH_BITS_EXT             0x2022
00222 #define WGL_STENCIL_BITS_EXT           0x2023
00223 #define WGL_AUX_BUFFERS_EXT            0x2024
00224 #define WGL_NO_ACCELERATION_EXT        0x2025
00225 #define WGL_GENERIC_ACCELERATION_EXT   0x2026
00226 #define WGL_FULL_ACCELERATION_EXT      0x2027
00227 #define WGL_SWAP_EXCHANGE_EXT          0x2028
00228 #define WGL_SWAP_COPY_EXT              0x2029
00229 #define WGL_SWAP_UNDEFINED_EXT         0x202A
00230 #define WGL_TYPE_RGBA_EXT              0x202B
00231 #define WGL_TYPE_COLORINDEX_EXT        0x202C
00232 #endif
00233 
00234 #ifndef WGL_EXT_pbuffer
00235 #define WGL_DRAW_TO_PBUFFER_EXT        0x202D
00236 #define WGL_MAX_PBUFFER_PIXELS_EXT     0x202E
00237 #define WGL_MAX_PBUFFER_WIDTH_EXT      0x202F
00238 #define WGL_MAX_PBUFFER_HEIGHT_EXT     0x2030
00239 #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT  0x2031
00240 #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
00241 #define WGL_PBUFFER_LARGEST_EXT        0x2033
00242 #define WGL_PBUFFER_WIDTH_EXT          0x2034
00243 #define WGL_PBUFFER_HEIGHT_EXT         0x2035
00244 #endif
00245 
00246 #ifndef WGL_EXT_depth_float
00247 #define WGL_DEPTH_FLOAT_EXT            0x2040
00248 #endif
00249 
00250 #ifndef WGL_3DFX_multisample
00251 #define WGL_SAMPLE_BUFFERS_3DFX        0x2060
00252 #define WGL_SAMPLES_3DFX               0x2061
00253 #endif
00254 
00255 #ifndef WGL_EXT_multisample
00256 #define WGL_SAMPLE_BUFFERS_EXT         0x2041
00257 #define WGL_SAMPLES_EXT                0x2042
00258 #endif
00259 
00260 #ifndef WGL_I3D_digital_video_control
00261 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
00262 #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
00263 #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
00264 #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
00265 #endif
00266 
00267 #ifndef WGL_I3D_gamma
00268 #define WGL_GAMMA_TABLE_SIZE_I3D       0x204E
00269 #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D  0x204F
00270 #endif
00271 
00272 #ifndef WGL_I3D_genlock
00273 #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
00274 #define WGL_GENLOCK_SOURCE_EXTENAL_SYNC_I3D 0x2045
00275 #define WGL_GENLOCK_SOURCE_EXTENAL_FIELD_I3D 0x2046
00276 #define WGL_GENLOCK_SOURCE_EXTENAL_TTL_I3D 0x2047
00277 #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
00278 #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
00279 #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
00280 #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
00281 #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
00282 #endif
00283 
00284 #ifndef WGL_I3D_image_buffer
00285 #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
00286 #define WGL_IMAGE_BUFFER_LOCK_I3D      0x00000002
00287 #endif
00288 
00289 #ifndef WGL_I3D_swap_frame_lock
00290 #endif
00291 
00292 #ifndef WGL_NV_render_depth_texture
00293 #define WGL_BIND_TO_TEXTURE_DEPTH_NV   0x20A3
00294 #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
00295 #define WGL_DEPTH_TEXTURE_FORMAT_NV    0x20A5
00296 #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
00297 #define WGL_DEPTH_COMPONENT_NV         0x20A7
00298 #endif
00299 
00300 #ifndef WGL_NV_render_texture_rectangle
00301 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
00302 #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
00303 #define WGL_TEXTURE_RECTANGLE_NV       0x20A2
00304 #endif
00305 
00306 #ifndef WGL_ATI_pixel_format_float
00307 #define WGL_TYPE_RGBA_FLOAT_ATI        0x21A0
00308 #define WGL_RGBA_FLOAT_MODE_ATI        0x8820
00309 #define WGL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
00310 #endif
00311 
00312 #ifndef WGL_NV_float_buffer
00313 #define WGL_FLOAT_COMPONENTS_NV        0x20B0
00314 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
00315 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
00316 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
00317 #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
00318 #define WGL_TEXTURE_FLOAT_R_NV         0x20B5
00319 #define WGL_TEXTURE_FLOAT_RG_NV        0x20B6
00320 #define WGL_TEXTURE_FLOAT_RGB_NV       0x20B7
00321 #define WGL_TEXTURE_FLOAT_RGBA_NV      0x20B8
00322 #endif
00323 
00324 #ifndef WGL_NV_swap_group
00325 #endif
00326 
00327 
00328 /*************************************************************/
00329 
00330 #ifndef WGL_ARB_pbuffer
00331 DECLARE_HANDLE(HPBUFFERARB);
00332 #endif
00333 #ifndef WGL_EXT_pbuffer
00334 DECLARE_HANDLE(HPBUFFEREXT);
00335 #endif
00336 
00337 #ifndef WGL_ARB_buffer_region
00338 #define WGL_ARB_buffer_region 1
00339 #ifdef WGL_WGLEXT_PROTOTYPES
00340 extern HANDLE WINAPI wglCreateBufferRegionARB (HDC, int, UINT);
00341 extern VOID WINAPI wglDeleteBufferRegionARB (HANDLE);
00342 extern BOOL WINAPI wglSaveBufferRegionARB (HANDLE, int, int, int, int);
00343 extern BOOL WINAPI wglRestoreBufferRegionARB (HANDLE, int, int, int, int, int, int);
00344 #endif /* WGL_WGLEXT_PROTOTYPES */
00345 typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
00346 typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
00347 typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
00348 typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
00349 #endif
00350 
00351 #ifndef WGL_ARB_multisample
00352 #define WGL_ARB_multisample 1
00353 #endif
00354 
00355 #ifndef WGL_ARB_extensions_string
00356 #define WGL_ARB_extensions_string 1
00357 #ifdef WGL_WGLEXT_PROTOTYPES
00358 extern const char * WINAPI wglGetExtensionsStringARB (HDC);
00359 #endif /* WGL_WGLEXT_PROTOTYPES */
00360 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
00361 #endif
00362 
00363 #ifndef WGL_ARB_pixel_format
00364 #define WGL_ARB_pixel_format 1
00365 #ifdef WGL_WGLEXT_PROTOTYPES
00366 extern BOOL WINAPI wglGetPixelFormatAttribivARB (HDC, int, int, UINT, const int *, int *);
00367 extern BOOL WINAPI wglGetPixelFormatAttribfvARB (HDC, int, int, UINT, const int *, FLOAT *);
00368 extern BOOL WINAPI wglChoosePixelFormatARB (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
00369 #endif /* WGL_WGLEXT_PROTOTYPES */
00370 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, int *piValues);
00371 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int *piAttributes, FLOAT *pfValues);
00372 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00373 #endif
00374 
00375 #ifndef WGL_ARB_make_current_read
00376 #define WGL_ARB_make_current_read 1
00377 #ifdef WGL_WGLEXT_PROTOTYPES
00378 extern BOOL WINAPI wglMakeContextCurrentARB (HDC, HDC, HGLRC);
00379 extern HDC WINAPI wglGetCurrentReadDCARB (void);
00380 #endif /* WGL_WGLEXT_PROTOTYPES */
00381 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00382 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (void);
00383 #endif
00384 
00385 #ifndef WGL_ARB_pbuffer
00386 #define WGL_ARB_pbuffer 1
00387 #ifdef WGL_WGLEXT_PROTOTYPES
00388 extern HPBUFFERARB WINAPI wglCreatePbufferARB (HDC, int, int, int, const int *);
00389 extern HDC WINAPI wglGetPbufferDCARB (HPBUFFERARB);
00390 extern int WINAPI wglReleasePbufferDCARB (HPBUFFERARB, HDC);
00391 extern BOOL WINAPI wglDestroyPbufferARB (HPBUFFERARB);
00392 extern BOOL WINAPI wglQueryPbufferARB (HPBUFFERARB, int, int *);
00393 #endif /* WGL_WGLEXT_PROTOTYPES */
00394 typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00395 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
00396 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
00397 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
00398 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int *piValue);
00399 #endif
00400 
00401 #ifndef WGL_ARB_render_texture
00402 #define WGL_ARB_render_texture 1
00403 #ifdef WGL_WGLEXT_PROTOTYPES
00404 extern BOOL WINAPI wglBindTexImageARB (HPBUFFERARB, int);
00405 extern BOOL WINAPI wglReleaseTexImageARB (HPBUFFERARB, int);
00406 extern BOOL WINAPI wglSetPbufferAttribARB (HPBUFFERARB, const int *);
00407 #endif /* WGL_WGLEXT_PROTOTYPES */
00408 typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00409 typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
00410 typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int *piAttribList);
00411 #endif
00412 
00413 #ifndef WGL_ARB_pixel_format_float
00414 #define WGL_ARB_pixel_format_float 1
00415 #endif
00416 
00417 #ifndef WGL_EXT_display_color_table
00418 #define WGL_EXT_display_color_table 1
00419 #ifdef WGL_WGLEXT_PROTOTYPES
00420 extern GLboolean WINAPI wglCreateDisplayColorTableEXT (GLushort);
00421 extern GLboolean WINAPI wglLoadDisplayColorTableEXT (const GLushort *, GLuint);
00422 extern GLboolean WINAPI wglBindDisplayColorTableEXT (GLushort);
00423 extern VOID WINAPI wglDestroyDisplayColorTableEXT (GLushort);
00424 #endif /* WGL_WGLEXT_PROTOTYPES */
00425 typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00426 typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (const GLushort *table, GLuint length);
00427 typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00428 typedef VOID (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
00429 #endif
00430 
00431 #ifndef WGL_EXT_extensions_string
00432 #define WGL_EXT_extensions_string 1
00433 #ifdef WGL_WGLEXT_PROTOTYPES
00434 extern const char * WINAPI wglGetExtensionsStringEXT (void);
00435 #endif /* WGL_WGLEXT_PROTOTYPES */
00436 typedef const char * (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
00437 #endif
00438 
00439 #ifndef WGL_EXT_make_current_read
00440 #define WGL_EXT_make_current_read 1
00441 #ifdef WGL_WGLEXT_PROTOTYPES
00442 extern BOOL WINAPI wglMakeContextCurrentEXT (HDC, HDC, HGLRC);
00443 extern HDC WINAPI wglGetCurrentReadDCEXT (void);
00444 #endif /* WGL_WGLEXT_PROTOTYPES */
00445 typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
00446 typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (void);
00447 #endif
00448 
00449 #ifndef WGL_EXT_pbuffer
00450 #define WGL_EXT_pbuffer 1
00451 #ifdef WGL_WGLEXT_PROTOTYPES
00452 extern HPBUFFEREXT WINAPI wglCreatePbufferEXT (HDC, int, int, int, const int *);
00453 extern HDC WINAPI wglGetPbufferDCEXT (HPBUFFEREXT);
00454 extern int WINAPI wglReleasePbufferDCEXT (HPBUFFEREXT, HDC);
00455 extern BOOL WINAPI wglDestroyPbufferEXT (HPBUFFEREXT);
00456 extern BOOL WINAPI wglQueryPbufferEXT (HPBUFFEREXT, int, int *);
00457 #endif /* WGL_WGLEXT_PROTOTYPES */
00458 typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList);
00459 typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
00460 typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
00461 typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
00462 typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int *piValue);
00463 #endif
00464 
00465 #ifndef WGL_EXT_pixel_format
00466 #define WGL_EXT_pixel_format 1
00467 #ifdef WGL_WGLEXT_PROTOTYPES
00468 extern BOOL WINAPI wglGetPixelFormatAttribivEXT (HDC, int, int, UINT, int *, int *);
00469 extern BOOL WINAPI wglGetPixelFormatAttribfvEXT (HDC, int, int, UINT, int *, FLOAT *);
00470 extern BOOL WINAPI wglChoosePixelFormatEXT (HDC, const int *, const FLOAT *, UINT, int *, UINT *);
00471 #endif /* WGL_WGLEXT_PROTOTYPES */
00472 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues);
00473 typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues);
00474 typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
00475 #endif
00476 
00477 #ifndef WGL_EXT_swap_control
00478 #define WGL_EXT_swap_control 1
00479 #ifdef WGL_WGLEXT_PROTOTYPES
00480 extern BOOL WINAPI wglSwapIntervalEXT (int);
00481 extern int WINAPI wglGetSwapIntervalEXT (void);
00482 #endif /* WGL_WGLEXT_PROTOTYPES */
00483 typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
00484 typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
00485 #endif
00486 
00487 #ifndef WGL_EXT_depth_float
00488 #define WGL_EXT_depth_float 1
00489 #endif
00490 
00491 #ifndef WGL_NV_vertex_array_range
00492 #define WGL_NV_vertex_array_range 1
00493 #ifdef WGL_WGLEXT_PROTOTYPES
00494 extern void* WINAPI wglAllocateMemoryNV (GLsizei, GLfloat, GLfloat, GLfloat);
00495 extern void WINAPI wglFreeMemoryNV (void *);
00496 #endif /* WGL_WGLEXT_PROTOTYPES */
00497 typedef void* (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readfreq, GLfloat writefreq, GLfloat priority);
00498 typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
00499 #endif
00500 
00501 #ifndef WGL_3DFX_multisample
00502 #define WGL_3DFX_multisample 1
00503 #endif
00504 
00505 #ifndef WGL_EXT_multisample
00506 #define WGL_EXT_multisample 1
00507 #endif
00508 
00509 #ifndef WGL_OML_sync_control
00510 #define WGL_OML_sync_control 1
00511 #ifdef WGL_WGLEXT_PROTOTYPES
00512 extern BOOL WINAPI wglGetSyncValuesOML (HDC, INT64 *, INT64 *, INT64 *);
00513 extern BOOL WINAPI wglGetMscRateOML (HDC, INT32 *, INT32 *);
00514 extern INT64 WINAPI wglSwapBuffersMscOML (HDC, INT64, INT64, INT64);
00515 extern INT64 WINAPI wglSwapLayerBuffersMscOML (HDC, int, INT64, INT64, INT64);
00516 extern BOOL WINAPI wglWaitForMscOML (HDC, INT64, INT64, INT64, INT64 *, INT64 *, INT64 *);
00517 extern BOOL WINAPI wglWaitForSbcOML (HDC, INT64, INT64 *, INT64 *, INT64 *);
00518 #endif /* WGL_WGLEXT_PROTOTYPES */
00519 typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64 *ust, INT64 *msc, INT64 *sbc);
00520 typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32 *numerator, INT32 *denominator);
00521 typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
00522 typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, int fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
00523 typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64 *ust, INT64 *msc, INT64 *sbc);
00524 typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64 *ust, INT64 *msc, INT64 *sbc);
00525 #endif
00526 
00527 #ifndef WGL_I3D_digital_video_control
00528 #define WGL_I3D_digital_video_control 1
00529 #ifdef WGL_WGLEXT_PROTOTYPES
00530 extern BOOL WINAPI wglGetDigitalVideoParametersI3D (HDC, int, int *);
00531 extern BOOL WINAPI wglSetDigitalVideoParametersI3D (HDC, int, const int *);
00532 #endif /* WGL_WGLEXT_PROTOTYPES */
00533 typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
00534 typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
00535 #endif
00536 
00537 #ifndef WGL_I3D_gamma
00538 #define WGL_I3D_gamma 1
00539 #ifdef WGL_WGLEXT_PROTOTYPES
00540 extern BOOL WINAPI wglGetGammaTableParametersI3D (HDC, int, int *);
00541 extern BOOL WINAPI wglSetGammaTableParametersI3D (HDC, int, const int *);
00542 extern BOOL WINAPI wglGetGammaTableI3D (HDC, int, USHORT *, USHORT *, USHORT *);
00543 extern BOOL WINAPI wglSetGammaTableI3D (HDC, int, const USHORT *, const USHORT *, const USHORT *);
00544 #endif /* WGL_WGLEXT_PROTOTYPES */
00545 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int *piValue);
00546 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int *piValue);
00547 typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT *puRed, USHORT *puGreen, USHORT *puBlue);
00548 typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT *puRed, const USHORT *puGreen, const USHORT *puBlue);
00549 #endif
00550 
00551 #ifndef WGL_I3D_genlock
00552 #define WGL_I3D_genlock 1
00553 #ifdef WGL_WGLEXT_PROTOTYPES
00554 extern BOOL WINAPI wglEnableGenlockI3D (HDC);
00555 extern BOOL WINAPI wglDisableGenlockI3D (HDC);
00556 extern BOOL WINAPI wglIsEnabledGenlockI3D (HDC, BOOL *);
00557 extern BOOL WINAPI wglGenlockSourceI3D (HDC, UINT);
00558 extern BOOL WINAPI wglGetGenlockSourceI3D (HDC, UINT *);
00559 extern BOOL WINAPI wglGenlockSourceEdgeI3D (HDC, UINT);
00560 extern BOOL WINAPI wglGetGenlockSourceEdgeI3D (HDC, UINT *);
00561 extern BOOL WINAPI wglGenlockSampleRateI3D (HDC, UINT);
00562 extern BOOL WINAPI wglGetGenlockSampleRateI3D (HDC, UINT *);
00563 extern BOOL WINAPI wglGenlockSourceDelayI3D (HDC, UINT);
00564 extern BOOL WINAPI wglGetGenlockSourceDelayI3D (HDC, UINT *);
00565 extern BOOL WINAPI wglQueryGenlockMaxSourceDelayI3D (HDC, UINT *, UINT *);
00566 #endif /* WGL_WGLEXT_PROTOTYPES */
00567 typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
00568 typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
00569 typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL *pFlag);
00570 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
00571 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT *uSource);
00572 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
00573 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT *uEdge);
00574 typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
00575 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT *uRate);
00576 typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
00577 typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT *uDelay);
00578 typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT *uMaxLineDelay, UINT *uMaxPixelDelay);
00579 #endif
00580 
00581 #ifndef WGL_I3D_image_buffer
00582 #define WGL_I3D_image_buffer 1
00583 #ifdef WGL_WGLEXT_PROTOTYPES
00584 extern LPVOID WINAPI wglCreateImageBufferI3D (HDC, DWORD, UINT);
00585 extern BOOL WINAPI wglDestroyImageBufferI3D (HDC, LPVOID);
00586 extern BOOL WINAPI wglAssociateImageBufferEventsI3D (HDC, const HANDLE *, const LPVOID *, const DWORD *, UINT);
00587 extern BOOL WINAPI wglReleaseImageBufferEventsI3D (HDC, const LPVOID *, UINT);
00588 #endif /* WGL_WGLEXT_PROTOTYPES */
00589 typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
00590 typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
00591 typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const HANDLE *pEvent, const LPVOID *pAddress, const DWORD *pSize, UINT count);
00592 typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hDC, const LPVOID *pAddress, UINT count);
00593 #endif
00594 
00595 #ifndef WGL_I3D_swap_frame_lock
00596 #define WGL_I3D_swap_frame_lock 1
00597 #ifdef WGL_WGLEXT_PROTOTYPES
00598 extern BOOL WINAPI wglEnableFrameLockI3D (void);
00599 extern BOOL WINAPI wglDisableFrameLockI3D (void);
00600 extern BOOL WINAPI wglIsEnabledFrameLockI3D (BOOL *);
00601 extern BOOL WINAPI wglQueryFrameLockMasterI3D (BOOL *);
00602 #endif /* WGL_WGLEXT_PROTOTYPES */
00603 typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (void);
00604 typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (void);
00605 typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL *pFlag);
00606 typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL *pFlag);
00607 #endif
00608 
00609 #ifndef WGL_I3D_swap_frame_usage
00610 #define WGL_I3D_swap_frame_usage 1
00611 #ifdef WGL_WGLEXT_PROTOTYPES
00612 extern BOOL WINAPI wglGetFrameUsageI3D (float *);
00613 extern BOOL WINAPI wglBeginFrameTrackingI3D (void);
00614 extern BOOL WINAPI wglEndFrameTrackingI3D (void);
00615 extern BOOL WINAPI wglQueryFrameTrackingI3D (DWORD *, DWORD *, float *);
00616 #endif /* WGL_WGLEXT_PROTOTYPES */
00617 typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float *pUsage);
00618 typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
00619 typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
00620 typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD *pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
00621 #endif
00622 
00623 #ifndef WGL_ATI_pixel_format_float
00624 #define WGL_ATI_pixel_format_float 1
00625 #endif
00626 
00627 #ifndef WGL_NV_render_depth_texture
00628 #define WGL_NV_render_depth_texture 1
00629 #endif
00630 
00631 #ifndef WGL_NV_render_texture_rectangle
00632 #define WGL_NV_render_texture_rectangle 1
00633 #endif
00634 
00635 #ifndef WGL_NV_float_buffer
00636 #define WGL_NV_float_buffer 1
00637 #endif
00638 
00639 #ifndef WGL_NV_swap_group
00640 #define WGL_NV_swap_group 1
00641 #ifdef WGL_WGLEXT_PROTOTYPES
00642 extern BOOL WINAPI wglJoinSwapGroupNV(HDC hDC, GLuint group);
00643 extern BOOL WINAPI wglBindSwapBarrierNV(GLuint group, GLuint barrier);
00644 extern BOOL WINAPI wglQuerySwapGroupNV(HDC hDC GLuint *group, GLuint *barrier);
00645 extern BOOL WINAPI wglQueryMaxSwapGroupsNV(HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
00646 extern BOOL WINAPI wglQueryFrameCountNV(HDC hDC, GLuint *count);
00647 extern BOOL WINAPI wglResetFrameCountNV(HDC hDC);
00648 #endif /* WGL_WGLEXT_PROTOTYPES */
00649 typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
00650 typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
00651 typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint *group, GLuint *barrier);
00652 typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint *maxGroups, GLuint *maxBarriers);
00653 typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint *count);
00654 typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
00655 #endif
00656 
00657 
00658 #ifdef __cplusplus
00659 }
00660 #endif
00661 
00662 #endif


nao_openni
Author(s): Bener SUAY
autogenerated on Mon Jan 6 2014 11:27:51