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