wglext.h 27 KB

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