You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1454 lines
62 KiB

4 years ago
  1. /*
  2. ** The OpenGL Extension Wrangler Library
  3. ** Copyright (C) 2008-2015, Nigel Stewart <nigels[]users sourceforge net>
  4. ** Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee org>
  5. ** Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org>
  6. ** Copyright (C) 2002, Lev Povalahev
  7. ** All rights reserved.
  8. **
  9. ** Redistribution and use in source and binary forms, with or without
  10. ** modification, are permitted provided that the following conditions are met:
  11. **
  12. ** * Redistributions of source code must retain the above copyright notice,
  13. ** this list of conditions and the following disclaimer.
  14. ** * Redistributions in binary form must reproduce the above copyright notice,
  15. ** this list of conditions and the following disclaimer in the documentation
  16. ** and/or other materials provided with the distribution.
  17. ** * The name of the author may be used to endorse or promote products
  18. ** derived from this software without specific prior written permission.
  19. **
  20. ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. ** AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. ** IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. ** ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  24. ** LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. ** CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26. ** SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27. ** INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28. ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. ** ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
  30. ** THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. /*
  33. ** Copyright (c) 2007 The Khronos Group Inc.
  34. **
  35. ** Permission is hereby granted, free of charge, to any person obtaining a
  36. ** copy of this software and/or associated documentation files (the
  37. ** "Materials"), to deal in the Materials without restriction, including
  38. ** without limitation the rights to use, copy, modify, merge, publish,
  39. ** distribute, sublicense, and/or sell copies of the Materials, and to
  40. ** permit persons to whom the Materials are furnished to do so, subject to
  41. ** the following conditions:
  42. **
  43. ** The above copyright notice and this permission notice shall be included
  44. ** in all copies or substantial portions of the Materials.
  45. **
  46. ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  47. ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  48. ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  49. ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  50. ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  51. ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  52. ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
  53. */
  54. #ifndef __wglew_h__
  55. #define __wglew_h__
  56. #ifdef WIN32
  57. #define __WGLEW_H__
  58. #ifdef __wglext_h_
  59. #error wglext.h included before wglew.h
  60. #endif
  61. #define __wglext_h_
  62. #if !defined(WINAPI)
  63. # ifndef WIN32_LEAN_AND_MEAN
  64. # define WIN32_LEAN_AND_MEAN 1
  65. # endif
  66. #include <windows.h>
  67. # undef WIN32_LEAN_AND_MEAN
  68. #endif
  69. /*
  70. * GLEW_STATIC needs to be set when using the static version.
  71. * GLEW_BUILD is set when building the DLL version.
  72. */
  73. #ifdef GLEW_STATIC
  74. # define GLEWAPI extern
  75. #else
  76. # ifdef GLEW_BUILD
  77. # define GLEWAPI extern __declspec(dllexport)
  78. # else
  79. # define GLEWAPI extern __declspec(dllimport)
  80. # endif
  81. #endif
  82. #ifdef __cplusplus
  83. extern "C" {
  84. #endif
  85. /* -------------------------- WGL_3DFX_multisample ------------------------- */
  86. #ifndef WGL_3DFX_multisample
  87. #define WGL_3DFX_multisample 1
  88. #define WGL_SAMPLE_BUFFERS_3DFX 0x2060
  89. #define WGL_SAMPLES_3DFX 0x2061
  90. #define WGLEW_3DFX_multisample WGLEW_GET_VAR(__WGLEW_3DFX_multisample)
  91. #endif /* WGL_3DFX_multisample */
  92. /* ------------------------- WGL_3DL_stereo_control ------------------------ */
  93. #ifndef WGL_3DL_stereo_control
  94. #define WGL_3DL_stereo_control 1
  95. #define WGL_STEREO_EMITTER_ENABLE_3DL 0x2055
  96. #define WGL_STEREO_EMITTER_DISABLE_3DL 0x2056
  97. #define WGL_STEREO_POLARITY_NORMAL_3DL 0x2057
  98. #define WGL_STEREO_POLARITY_INVERT_3DL 0x2058
  99. typedef BOOL (WINAPI * PFNWGLSETSTEREOEMITTERSTATE3DLPROC) (HDC hDC, UINT uState);
  100. #define wglSetStereoEmitterState3DL WGLEW_GET_FUN(__wglewSetStereoEmitterState3DL)
  101. #define WGLEW_3DL_stereo_control WGLEW_GET_VAR(__WGLEW_3DL_stereo_control)
  102. #endif /* WGL_3DL_stereo_control */
  103. /* ------------------------ WGL_AMD_gpu_association ------------------------ */
  104. #ifndef WGL_AMD_gpu_association
  105. #define WGL_AMD_gpu_association 1
  106. #define WGL_GPU_VENDOR_AMD 0x1F00
  107. #define WGL_GPU_RENDERER_STRING_AMD 0x1F01
  108. #define WGL_GPU_OPENGL_VERSION_STRING_AMD 0x1F02
  109. #define WGL_GPU_FASTEST_TARGET_GPUS_AMD 0x21A2
  110. #define WGL_GPU_RAM_AMD 0x21A3
  111. #define WGL_GPU_CLOCK_AMD 0x21A4
  112. #define WGL_GPU_NUM_PIPES_AMD 0x21A5
  113. #define WGL_GPU_NUM_SIMD_AMD 0x21A6
  114. #define WGL_GPU_NUM_RB_AMD 0x21A7
  115. #define WGL_GPU_NUM_SPI_AMD 0x21A8
  116. typedef VOID (WINAPI * PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC) (HGLRC dstCtx, GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter);
  117. typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC) (UINT id);
  118. typedef HGLRC (WINAPI * PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC) (UINT id, HGLRC hShareContext, const int* attribList);
  119. typedef BOOL (WINAPI * PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC) (HGLRC hglrc);
  120. typedef UINT (WINAPI * PFNWGLGETCONTEXTGPUIDAMDPROC) (HGLRC hglrc);
  121. typedef HGLRC (WINAPI * PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC) (void);
  122. typedef UINT (WINAPI * PFNWGLGETGPUIDSAMDPROC) (UINT maxCount, UINT* ids);
  123. typedef INT (WINAPI * PFNWGLGETGPUINFOAMDPROC) (UINT id, INT property, GLenum dataType, UINT size, void* data);
  124. typedef BOOL (WINAPI * PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC) (HGLRC hglrc);
  125. #define wglBlitContextFramebufferAMD WGLEW_GET_FUN(__wglewBlitContextFramebufferAMD)
  126. #define wglCreateAssociatedContextAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAMD)
  127. #define wglCreateAssociatedContextAttribsAMD WGLEW_GET_FUN(__wglewCreateAssociatedContextAttribsAMD)
  128. #define wglDeleteAssociatedContextAMD WGLEW_GET_FUN(__wglewDeleteAssociatedContextAMD)
  129. #define wglGetContextGPUIDAMD WGLEW_GET_FUN(__wglewGetContextGPUIDAMD)
  130. #define wglGetCurrentAssociatedContextAMD WGLEW_GET_FUN(__wglewGetCurrentAssociatedContextAMD)
  131. #define wglGetGPUIDsAMD WGLEW_GET_FUN(__wglewGetGPUIDsAMD)
  132. #define wglGetGPUInfoAMD WGLEW_GET_FUN(__wglewGetGPUInfoAMD)
  133. #define wglMakeAssociatedContextCurrentAMD WGLEW_GET_FUN(__wglewMakeAssociatedContextCurrentAMD)
  134. #define WGLEW_AMD_gpu_association WGLEW_GET_VAR(__WGLEW_AMD_gpu_association)
  135. #endif /* WGL_AMD_gpu_association */
  136. /* ------------------------- WGL_ARB_buffer_region ------------------------- */
  137. #ifndef WGL_ARB_buffer_region
  138. #define WGL_ARB_buffer_region 1
  139. #define WGL_FRONT_COLOR_BUFFER_BIT_ARB 0x00000001
  140. #define WGL_BACK_COLOR_BUFFER_BIT_ARB 0x00000002
  141. #define WGL_DEPTH_BUFFER_BIT_ARB 0x00000004
  142. #define WGL_STENCIL_BUFFER_BIT_ARB 0x00000008
  143. typedef HANDLE (WINAPI * PFNWGLCREATEBUFFERREGIONARBPROC) (HDC hDC, int iLayerPlane, UINT uType);
  144. typedef VOID (WINAPI * PFNWGLDELETEBUFFERREGIONARBPROC) (HANDLE hRegion);
  145. typedef BOOL (WINAPI * PFNWGLRESTOREBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc);
  146. typedef BOOL (WINAPI * PFNWGLSAVEBUFFERREGIONARBPROC) (HANDLE hRegion, int x, int y, int width, int height);
  147. #define wglCreateBufferRegionARB WGLEW_GET_FUN(__wglewCreateBufferRegionARB)
  148. #define wglDeleteBufferRegionARB WGLEW_GET_FUN(__wglewDeleteBufferRegionARB)
  149. #define wglRestoreBufferRegionARB WGLEW_GET_FUN(__wglewRestoreBufferRegionARB)
  150. #define wglSaveBufferRegionARB WGLEW_GET_FUN(__wglewSaveBufferRegionARB)
  151. #define WGLEW_ARB_buffer_region WGLEW_GET_VAR(__WGLEW_ARB_buffer_region)
  152. #endif /* WGL_ARB_buffer_region */
  153. /* --------------------- WGL_ARB_context_flush_control --------------------- */
  154. #ifndef WGL_ARB_context_flush_control
  155. #define WGL_ARB_context_flush_control 1
  156. #define WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB 0x0000
  157. #define WGL_CONTEXT_RELEASE_BEHAVIOR_ARB 0x2097
  158. #define WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB 0x2098
  159. #define WGLEW_ARB_context_flush_control WGLEW_GET_VAR(__WGLEW_ARB_context_flush_control)
  160. #endif /* WGL_ARB_context_flush_control */
  161. /* ------------------------- WGL_ARB_create_context ------------------------ */
  162. #ifndef WGL_ARB_create_context
  163. #define WGL_ARB_create_context 1
  164. #define WGL_CONTEXT_DEBUG_BIT_ARB 0x0001
  165. #define WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
  166. #define WGL_CONTEXT_MAJOR_VERSION_ARB 0x2091
  167. #define WGL_CONTEXT_MINOR_VERSION_ARB 0x2092
  168. #define WGL_CONTEXT_LAYER_PLANE_ARB 0x2093
  169. #define WGL_CONTEXT_FLAGS_ARB 0x2094
  170. #define ERROR_INVALID_VERSION_ARB 0x2095
  171. #define ERROR_INVALID_PROFILE_ARB 0x2096
  172. typedef HGLRC (WINAPI * PFNWGLCREATECONTEXTATTRIBSARBPROC) (HDC hDC, HGLRC hShareContext, const int* attribList);
  173. #define wglCreateContextAttribsARB WGLEW_GET_FUN(__wglewCreateContextAttribsARB)
  174. #define WGLEW_ARB_create_context WGLEW_GET_VAR(__WGLEW_ARB_create_context)
  175. #endif /* WGL_ARB_create_context */
  176. /* --------------------- WGL_ARB_create_context_profile -------------------- */
  177. #ifndef WGL_ARB_create_context_profile
  178. #define WGL_ARB_create_context_profile 1
  179. #define WGL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
  180. #define WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
  181. #define WGL_CONTEXT_PROFILE_MASK_ARB 0x9126
  182. #define WGLEW_ARB_create_context_profile WGLEW_GET_VAR(__WGLEW_ARB_create_context_profile)
  183. #endif /* WGL_ARB_create_context_profile */
  184. /* ------------------- WGL_ARB_create_context_robustness ------------------- */
  185. #ifndef WGL_ARB_create_context_robustness
  186. #define WGL_ARB_create_context_robustness 1
  187. #define WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
  188. #define WGL_LOSE_CONTEXT_ON_RESET_ARB 0x8252
  189. #define WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
  190. #define WGL_NO_RESET_NOTIFICATION_ARB 0x8261
  191. #define WGLEW_ARB_create_context_robustness WGLEW_GET_VAR(__WGLEW_ARB_create_context_robustness)
  192. #endif /* WGL_ARB_create_context_robustness */
  193. /* ----------------------- WGL_ARB_extensions_string ----------------------- */
  194. #ifndef WGL_ARB_extensions_string
  195. #define WGL_ARB_extensions_string 1
  196. typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGARBPROC) (HDC hdc);
  197. #define wglGetExtensionsStringARB WGLEW_GET_FUN(__wglewGetExtensionsStringARB)
  198. #define WGLEW_ARB_extensions_string WGLEW_GET_VAR(__WGLEW_ARB_extensions_string)
  199. #endif /* WGL_ARB_extensions_string */
  200. /* ------------------------ WGL_ARB_framebuffer_sRGB ----------------------- */
  201. #ifndef WGL_ARB_framebuffer_sRGB
  202. #define WGL_ARB_framebuffer_sRGB 1
  203. #define WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20A9
  204. #define WGLEW_ARB_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_ARB_framebuffer_sRGB)
  205. #endif /* WGL_ARB_framebuffer_sRGB */
  206. /* ----------------------- WGL_ARB_make_current_read ----------------------- */
  207. #ifndef WGL_ARB_make_current_read
  208. #define WGL_ARB_make_current_read 1
  209. #define ERROR_INVALID_PIXEL_TYPE_ARB 0x2043
  210. #define ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB 0x2054
  211. typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCARBPROC) (VOID);
  212. typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTARBPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  213. #define wglGetCurrentReadDCARB WGLEW_GET_FUN(__wglewGetCurrentReadDCARB)
  214. #define wglMakeContextCurrentARB WGLEW_GET_FUN(__wglewMakeContextCurrentARB)
  215. #define WGLEW_ARB_make_current_read WGLEW_GET_VAR(__WGLEW_ARB_make_current_read)
  216. #endif /* WGL_ARB_make_current_read */
  217. /* -------------------------- WGL_ARB_multisample -------------------------- */
  218. #ifndef WGL_ARB_multisample
  219. #define WGL_ARB_multisample 1
  220. #define WGL_SAMPLE_BUFFERS_ARB 0x2041
  221. #define WGL_SAMPLES_ARB 0x2042
  222. #define WGLEW_ARB_multisample WGLEW_GET_VAR(__WGLEW_ARB_multisample)
  223. #endif /* WGL_ARB_multisample */
  224. /* ---------------------------- WGL_ARB_pbuffer ---------------------------- */
  225. #ifndef WGL_ARB_pbuffer
  226. #define WGL_ARB_pbuffer 1
  227. #define WGL_DRAW_TO_PBUFFER_ARB 0x202D
  228. #define WGL_MAX_PBUFFER_PIXELS_ARB 0x202E
  229. #define WGL_MAX_PBUFFER_WIDTH_ARB 0x202F
  230. #define WGL_MAX_PBUFFER_HEIGHT_ARB 0x2030
  231. #define WGL_PBUFFER_LARGEST_ARB 0x2033
  232. #define WGL_PBUFFER_WIDTH_ARB 0x2034
  233. #define WGL_PBUFFER_HEIGHT_ARB 0x2035
  234. #define WGL_PBUFFER_LOST_ARB 0x2036
  235. DECLARE_HANDLE(HPBUFFERARB);
  236. typedef HPBUFFERARB (WINAPI * PFNWGLCREATEPBUFFERARBPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
  237. typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFERARBPROC) (HPBUFFERARB hPbuffer);
  238. typedef HDC (WINAPI * PFNWGLGETPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer);
  239. typedef BOOL (WINAPI * PFNWGLQUERYPBUFFERARBPROC) (HPBUFFERARB hPbuffer, int iAttribute, int* piValue);
  240. typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCARBPROC) (HPBUFFERARB hPbuffer, HDC hDC);
  241. #define wglCreatePbufferARB WGLEW_GET_FUN(__wglewCreatePbufferARB)
  242. #define wglDestroyPbufferARB WGLEW_GET_FUN(__wglewDestroyPbufferARB)
  243. #define wglGetPbufferDCARB WGLEW_GET_FUN(__wglewGetPbufferDCARB)
  244. #define wglQueryPbufferARB WGLEW_GET_FUN(__wglewQueryPbufferARB)
  245. #define wglReleasePbufferDCARB WGLEW_GET_FUN(__wglewReleasePbufferDCARB)
  246. #define WGLEW_ARB_pbuffer WGLEW_GET_VAR(__WGLEW_ARB_pbuffer)
  247. #endif /* WGL_ARB_pbuffer */
  248. /* -------------------------- WGL_ARB_pixel_format ------------------------- */
  249. #ifndef WGL_ARB_pixel_format
  250. #define WGL_ARB_pixel_format 1
  251. #define WGL_NUMBER_PIXEL_FORMATS_ARB 0x2000
  252. #define WGL_DRAW_TO_WINDOW_ARB 0x2001
  253. #define WGL_DRAW_TO_BITMAP_ARB 0x2002
  254. #define WGL_ACCELERATION_ARB 0x2003
  255. #define WGL_NEED_PALETTE_ARB 0x2004
  256. #define WGL_NEED_SYSTEM_PALETTE_ARB 0x2005
  257. #define WGL_SWAP_LAYER_BUFFERS_ARB 0x2006
  258. #define WGL_SWAP_METHOD_ARB 0x2007
  259. #define WGL_NUMBER_OVERLAYS_ARB 0x2008
  260. #define WGL_NUMBER_UNDERLAYS_ARB 0x2009
  261. #define WGL_TRANSPARENT_ARB 0x200A
  262. #define WGL_SHARE_DEPTH_ARB 0x200C
  263. #define WGL_SHARE_STENCIL_ARB 0x200D
  264. #define WGL_SHARE_ACCUM_ARB 0x200E
  265. #define WGL_SUPPORT_GDI_ARB 0x200F
  266. #define WGL_SUPPORT_OPENGL_ARB 0x2010
  267. #define WGL_DOUBLE_BUFFER_ARB 0x2011
  268. #define WGL_STEREO_ARB 0x2012
  269. #define WGL_PIXEL_TYPE_ARB 0x2013
  270. #define WGL_COLOR_BITS_ARB 0x2014
  271. #define WGL_RED_BITS_ARB 0x2015
  272. #define WGL_RED_SHIFT_ARB 0x2016
  273. #define WGL_GREEN_BITS_ARB 0x2017
  274. #define WGL_GREEN_SHIFT_ARB 0x2018
  275. #define WGL_BLUE_BITS_ARB 0x2019
  276. #define WGL_BLUE_SHIFT_ARB 0x201A
  277. #define WGL_ALPHA_BITS_ARB 0x201B
  278. #define WGL_ALPHA_SHIFT_ARB 0x201C
  279. #define WGL_ACCUM_BITS_ARB 0x201D
  280. #define WGL_ACCUM_RED_BITS_ARB 0x201E
  281. #define WGL_ACCUM_GREEN_BITS_ARB 0x201F
  282. #define WGL_ACCUM_BLUE_BITS_ARB 0x2020
  283. #define WGL_ACCUM_ALPHA_BITS_ARB 0x2021
  284. #define WGL_DEPTH_BITS_ARB 0x2022
  285. #define WGL_STENCIL_BITS_ARB 0x2023
  286. #define WGL_AUX_BUFFERS_ARB 0x2024
  287. #define WGL_NO_ACCELERATION_ARB 0x2025
  288. #define WGL_GENERIC_ACCELERATION_ARB 0x2026
  289. #define WGL_FULL_ACCELERATION_ARB 0x2027
  290. #define WGL_SWAP_EXCHANGE_ARB 0x2028
  291. #define WGL_SWAP_COPY_ARB 0x2029
  292. #define WGL_SWAP_UNDEFINED_ARB 0x202A
  293. #define WGL_TYPE_RGBA_ARB 0x202B
  294. #define WGL_TYPE_COLORINDEX_ARB 0x202C
  295. #define WGL_TRANSPARENT_RED_VALUE_ARB 0x2037
  296. #define WGL_TRANSPARENT_GREEN_VALUE_ARB 0x2038
  297. #define WGL_TRANSPARENT_BLUE_VALUE_ARB 0x2039
  298. #define WGL_TRANSPARENT_ALPHA_VALUE_ARB 0x203A
  299. #define WGL_TRANSPARENT_INDEX_VALUE_ARB 0x203B
  300. typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATARBPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  301. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, FLOAT *pfValues);
  302. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVARBPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, const int* piAttributes, int *piValues);
  303. #define wglChoosePixelFormatARB WGLEW_GET_FUN(__wglewChoosePixelFormatARB)
  304. #define wglGetPixelFormatAttribfvARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvARB)
  305. #define wglGetPixelFormatAttribivARB WGLEW_GET_FUN(__wglewGetPixelFormatAttribivARB)
  306. #define WGLEW_ARB_pixel_format WGLEW_GET_VAR(__WGLEW_ARB_pixel_format)
  307. #endif /* WGL_ARB_pixel_format */
  308. /* ----------------------- WGL_ARB_pixel_format_float ---------------------- */
  309. #ifndef WGL_ARB_pixel_format_float
  310. #define WGL_ARB_pixel_format_float 1
  311. #define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
  312. #define WGLEW_ARB_pixel_format_float WGLEW_GET_VAR(__WGLEW_ARB_pixel_format_float)
  313. #endif /* WGL_ARB_pixel_format_float */
  314. /* ------------------------- WGL_ARB_render_texture ------------------------ */
  315. #ifndef WGL_ARB_render_texture
  316. #define WGL_ARB_render_texture 1
  317. #define WGL_BIND_TO_TEXTURE_RGB_ARB 0x2070
  318. #define WGL_BIND_TO_TEXTURE_RGBA_ARB 0x2071
  319. #define WGL_TEXTURE_FORMAT_ARB 0x2072
  320. #define WGL_TEXTURE_TARGET_ARB 0x2073
  321. #define WGL_MIPMAP_TEXTURE_ARB 0x2074
  322. #define WGL_TEXTURE_RGB_ARB 0x2075
  323. #define WGL_TEXTURE_RGBA_ARB 0x2076
  324. #define WGL_NO_TEXTURE_ARB 0x2077
  325. #define WGL_TEXTURE_CUBE_MAP_ARB 0x2078
  326. #define WGL_TEXTURE_1D_ARB 0x2079
  327. #define WGL_TEXTURE_2D_ARB 0x207A
  328. #define WGL_MIPMAP_LEVEL_ARB 0x207B
  329. #define WGL_CUBE_MAP_FACE_ARB 0x207C
  330. #define WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB 0x207D
  331. #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB 0x207E
  332. #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB 0x207F
  333. #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB 0x2080
  334. #define WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB 0x2081
  335. #define WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB 0x2082
  336. #define WGL_FRONT_LEFT_ARB 0x2083
  337. #define WGL_FRONT_RIGHT_ARB 0x2084
  338. #define WGL_BACK_LEFT_ARB 0x2085
  339. #define WGL_BACK_RIGHT_ARB 0x2086
  340. #define WGL_AUX0_ARB 0x2087
  341. #define WGL_AUX1_ARB 0x2088
  342. #define WGL_AUX2_ARB 0x2089
  343. #define WGL_AUX3_ARB 0x208A
  344. #define WGL_AUX4_ARB 0x208B
  345. #define WGL_AUX5_ARB 0x208C
  346. #define WGL_AUX6_ARB 0x208D
  347. #define WGL_AUX7_ARB 0x208E
  348. #define WGL_AUX8_ARB 0x208F
  349. #define WGL_AUX9_ARB 0x2090
  350. typedef BOOL (WINAPI * PFNWGLBINDTEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
  351. typedef BOOL (WINAPI * PFNWGLRELEASETEXIMAGEARBPROC) (HPBUFFERARB hPbuffer, int iBuffer);
  352. typedef BOOL (WINAPI * PFNWGLSETPBUFFERATTRIBARBPROC) (HPBUFFERARB hPbuffer, const int* piAttribList);
  353. #define wglBindTexImageARB WGLEW_GET_FUN(__wglewBindTexImageARB)
  354. #define wglReleaseTexImageARB WGLEW_GET_FUN(__wglewReleaseTexImageARB)
  355. #define wglSetPbufferAttribARB WGLEW_GET_FUN(__wglewSetPbufferAttribARB)
  356. #define WGLEW_ARB_render_texture WGLEW_GET_VAR(__WGLEW_ARB_render_texture)
  357. #endif /* WGL_ARB_render_texture */
  358. /* ---------------- WGL_ARB_robustness_application_isolation --------------- */
  359. #ifndef WGL_ARB_robustness_application_isolation
  360. #define WGL_ARB_robustness_application_isolation 1
  361. #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
  362. #define WGLEW_ARB_robustness_application_isolation WGLEW_GET_VAR(__WGLEW_ARB_robustness_application_isolation)
  363. #endif /* WGL_ARB_robustness_application_isolation */
  364. /* ---------------- WGL_ARB_robustness_share_group_isolation --------------- */
  365. #ifndef WGL_ARB_robustness_share_group_isolation
  366. #define WGL_ARB_robustness_share_group_isolation 1
  367. #define WGL_CONTEXT_RESET_ISOLATION_BIT_ARB 0x00000008
  368. #define WGLEW_ARB_robustness_share_group_isolation WGLEW_GET_VAR(__WGLEW_ARB_robustness_share_group_isolation)
  369. #endif /* WGL_ARB_robustness_share_group_isolation */
  370. /* ----------------------- WGL_ATI_pixel_format_float ---------------------- */
  371. #ifndef WGL_ATI_pixel_format_float
  372. #define WGL_ATI_pixel_format_float 1
  373. #define WGL_TYPE_RGBA_FLOAT_ATI 0x21A0
  374. #define GL_RGBA_FLOAT_MODE_ATI 0x8820
  375. #define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI 0x8835
  376. #define WGLEW_ATI_pixel_format_float WGLEW_GET_VAR(__WGLEW_ATI_pixel_format_float)
  377. #endif /* WGL_ATI_pixel_format_float */
  378. /* -------------------- WGL_ATI_render_texture_rectangle ------------------- */
  379. #ifndef WGL_ATI_render_texture_rectangle
  380. #define WGL_ATI_render_texture_rectangle 1
  381. #define WGL_TEXTURE_RECTANGLE_ATI 0x21A5
  382. #define WGLEW_ATI_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_ATI_render_texture_rectangle)
  383. #endif /* WGL_ATI_render_texture_rectangle */
  384. /* ------------------- WGL_EXT_create_context_es2_profile ------------------ */
  385. #ifndef WGL_EXT_create_context_es2_profile
  386. #define WGL_EXT_create_context_es2_profile 1
  387. #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
  388. #define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile)
  389. #endif /* WGL_EXT_create_context_es2_profile */
  390. /* ------------------- WGL_EXT_create_context_es_profile ------------------- */
  391. #ifndef WGL_EXT_create_context_es_profile
  392. #define WGL_EXT_create_context_es_profile 1
  393. #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
  394. #define WGLEW_EXT_create_context_es_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es_profile)
  395. #endif /* WGL_EXT_create_context_es_profile */
  396. /* -------------------------- WGL_EXT_depth_float -------------------------- */
  397. #ifndef WGL_EXT_depth_float
  398. #define WGL_EXT_depth_float 1
  399. #define WGL_DEPTH_FLOAT_EXT 0x2040
  400. #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
  401. #endif /* WGL_EXT_depth_float */
  402. /* ---------------------- WGL_EXT_display_color_table ---------------------- */
  403. #ifndef WGL_EXT_display_color_table
  404. #define WGL_EXT_display_color_table 1
  405. typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  406. typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  407. typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  408. typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
  409. #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
  410. #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
  411. #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
  412. #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
  413. #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
  414. #endif /* WGL_EXT_display_color_table */
  415. /* ----------------------- WGL_EXT_extensions_string ----------------------- */
  416. #ifndef WGL_EXT_extensions_string
  417. #define WGL_EXT_extensions_string 1
  418. typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
  419. #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
  420. #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
  421. #endif /* WGL_EXT_extensions_string */
  422. /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */
  423. #ifndef WGL_EXT_framebuffer_sRGB
  424. #define WGL_EXT_framebuffer_sRGB 1
  425. #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
  426. #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
  427. #endif /* WGL_EXT_framebuffer_sRGB */
  428. /* ----------------------- WGL_EXT_make_current_read ----------------------- */
  429. #ifndef WGL_EXT_make_current_read
  430. #define WGL_EXT_make_current_read 1
  431. #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
  432. typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
  433. typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  434. #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
  435. #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
  436. #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
  437. #endif /* WGL_EXT_make_current_read */
  438. /* -------------------------- WGL_EXT_multisample -------------------------- */
  439. #ifndef WGL_EXT_multisample
  440. #define WGL_EXT_multisample 1
  441. #define WGL_SAMPLE_BUFFERS_EXT 0x2041
  442. #define WGL_SAMPLES_EXT 0x2042
  443. #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
  444. #endif /* WGL_EXT_multisample */
  445. /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
  446. #ifndef WGL_EXT_pbuffer
  447. #define WGL_EXT_pbuffer 1
  448. #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
  449. #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
  450. #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
  451. #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
  452. #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
  453. #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
  454. #define WGL_PBUFFER_LARGEST_EXT 0x2033
  455. #define WGL_PBUFFER_WIDTH_EXT 0x2034
  456. #define WGL_PBUFFER_HEIGHT_EXT 0x2035
  457. DECLARE_HANDLE(HPBUFFEREXT);
  458. typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
  459. typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
  460. typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
  461. typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
  462. typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
  463. #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
  464. #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
  465. #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
  466. #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
  467. #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
  468. #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
  469. #endif /* WGL_EXT_pbuffer */
  470. /* -------------------------- WGL_EXT_pixel_format ------------------------- */
  471. #ifndef WGL_EXT_pixel_format
  472. #define WGL_EXT_pixel_format 1
  473. #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
  474. #define WGL_DRAW_TO_WINDOW_EXT 0x2001
  475. #define WGL_DRAW_TO_BITMAP_EXT 0x2002
  476. #define WGL_ACCELERATION_EXT 0x2003
  477. #define WGL_NEED_PALETTE_EXT 0x2004
  478. #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
  479. #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
  480. #define WGL_SWAP_METHOD_EXT 0x2007
  481. #define WGL_NUMBER_OVERLAYS_EXT 0x2008
  482. #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
  483. #define WGL_TRANSPARENT_EXT 0x200A
  484. #define WGL_TRANSPARENT_VALUE_EXT 0x200B
  485. #define WGL_SHARE_DEPTH_EXT 0x200C
  486. #define WGL_SHARE_STENCIL_EXT 0x200D
  487. #define WGL_SHARE_ACCUM_EXT 0x200E
  488. #define WGL_SUPPORT_GDI_EXT 0x200F
  489. #define WGL_SUPPORT_OPENGL_EXT 0x2010
  490. #define WGL_DOUBLE_BUFFER_EXT 0x2011
  491. #define WGL_STEREO_EXT 0x2012
  492. #define WGL_PIXEL_TYPE_EXT 0x2013
  493. #define WGL_COLOR_BITS_EXT 0x2014
  494. #define WGL_RED_BITS_EXT 0x2015
  495. #define WGL_RED_SHIFT_EXT 0x2016
  496. #define WGL_GREEN_BITS_EXT 0x2017
  497. #define WGL_GREEN_SHIFT_EXT 0x2018
  498. #define WGL_BLUE_BITS_EXT 0x2019
  499. #define WGL_BLUE_SHIFT_EXT 0x201A
  500. #define WGL_ALPHA_BITS_EXT 0x201B
  501. #define WGL_ALPHA_SHIFT_EXT 0x201C
  502. #define WGL_ACCUM_BITS_EXT 0x201D
  503. #define WGL_ACCUM_RED_BITS_EXT 0x201E
  504. #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
  505. #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
  506. #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
  507. #define WGL_DEPTH_BITS_EXT 0x2022
  508. #define WGL_STENCIL_BITS_EXT 0x2023
  509. #define WGL_AUX_BUFFERS_EXT 0x2024
  510. #define WGL_NO_ACCELERATION_EXT 0x2025
  511. #define WGL_GENERIC_ACCELERATION_EXT 0x2026
  512. #define WGL_FULL_ACCELERATION_EXT 0x2027
  513. #define WGL_SWAP_EXCHANGE_EXT 0x2028
  514. #define WGL_SWAP_COPY_EXT 0x2029
  515. #define WGL_SWAP_UNDEFINED_EXT 0x202A
  516. #define WGL_TYPE_RGBA_EXT 0x202B
  517. #define WGL_TYPE_COLORINDEX_EXT 0x202C
  518. typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  519. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
  520. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
  521. #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
  522. #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
  523. #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
  524. #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
  525. #endif /* WGL_EXT_pixel_format */
  526. /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */
  527. #ifndef WGL_EXT_pixel_format_packed_float
  528. #define WGL_EXT_pixel_format_packed_float 1
  529. #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
  530. #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
  531. #endif /* WGL_EXT_pixel_format_packed_float */
  532. /* -------------------------- WGL_EXT_swap_control ------------------------- */
  533. #ifndef WGL_EXT_swap_control
  534. #define WGL_EXT_swap_control 1
  535. typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
  536. typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
  537. #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
  538. #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
  539. #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
  540. #endif /* WGL_EXT_swap_control */
  541. /* ----------------------- WGL_EXT_swap_control_tear ----------------------- */
  542. #ifndef WGL_EXT_swap_control_tear
  543. #define WGL_EXT_swap_control_tear 1
  544. #define WGLEW_EXT_swap_control_tear WGLEW_GET_VAR(__WGLEW_EXT_swap_control_tear)
  545. #endif /* WGL_EXT_swap_control_tear */
  546. /* --------------------- WGL_I3D_digital_video_control --------------------- */
  547. #ifndef WGL_I3D_digital_video_control
  548. #define WGL_I3D_digital_video_control 1
  549. #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
  550. #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
  551. #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
  552. #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
  553. typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
  554. typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
  555. #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
  556. #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
  557. #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
  558. #endif /* WGL_I3D_digital_video_control */
  559. /* ----------------------------- WGL_I3D_gamma ----------------------------- */
  560. #ifndef WGL_I3D_gamma
  561. #define WGL_I3D_gamma 1
  562. #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
  563. #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
  564. typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
  565. typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
  566. typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
  567. typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
  568. #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
  569. #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
  570. #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
  571. #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
  572. #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
  573. #endif /* WGL_I3D_gamma */
  574. /* ---------------------------- WGL_I3D_genlock ---------------------------- */
  575. #ifndef WGL_I3D_genlock
  576. #define WGL_I3D_genlock 1
  577. #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
  578. #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
  579. #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
  580. #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
  581. #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
  582. #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
  583. #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
  584. #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
  585. #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
  586. typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
  587. typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
  588. typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
  589. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
  590. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
  591. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
  592. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
  593. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
  594. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
  595. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
  596. typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
  597. typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
  598. #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
  599. #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
  600. #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
  601. #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
  602. #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
  603. #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
  604. #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
  605. #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
  606. #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
  607. #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
  608. #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
  609. #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
  610. #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
  611. #endif /* WGL_I3D_genlock */
  612. /* -------------------------- WGL_I3D_image_buffer ------------------------- */
  613. #ifndef WGL_I3D_image_buffer
  614. #define WGL_I3D_image_buffer 1
  615. #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
  616. #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
  617. typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
  618. typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
  619. typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
  620. typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
  621. #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
  622. #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
  623. #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
  624. #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
  625. #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
  626. #endif /* WGL_I3D_image_buffer */
  627. /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
  628. #ifndef WGL_I3D_swap_frame_lock
  629. #define WGL_I3D_swap_frame_lock 1
  630. typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
  631. typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
  632. typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
  633. typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
  634. #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
  635. #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
  636. #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
  637. #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
  638. #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
  639. #endif /* WGL_I3D_swap_frame_lock */
  640. /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
  641. #ifndef WGL_I3D_swap_frame_usage
  642. #define WGL_I3D_swap_frame_usage 1
  643. typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
  644. typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
  645. typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
  646. typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
  647. #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
  648. #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
  649. #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
  650. #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
  651. #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
  652. #endif /* WGL_I3D_swap_frame_usage */
  653. /* --------------------------- WGL_NV_DX_interop --------------------------- */
  654. #ifndef WGL_NV_DX_interop
  655. #define WGL_NV_DX_interop 1
  656. #define WGL_ACCESS_READ_ONLY_NV 0x0000
  657. #define WGL_ACCESS_READ_WRITE_NV 0x0001
  658. #define WGL_ACCESS_WRITE_DISCARD_NV 0x0002
  659. typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
  660. typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
  661. typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
  662. typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void* dxDevice);
  663. typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access);
  664. typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void* dxObject, HANDLE shareHandle);
  665. typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
  666. typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
  667. #define wglDXCloseDeviceNV WGLEW_GET_FUN(__wglewDXCloseDeviceNV)
  668. #define wglDXLockObjectsNV WGLEW_GET_FUN(__wglewDXLockObjectsNV)
  669. #define wglDXObjectAccessNV WGLEW_GET_FUN(__wglewDXObjectAccessNV)
  670. #define wglDXOpenDeviceNV WGLEW_GET_FUN(__wglewDXOpenDeviceNV)
  671. #define wglDXRegisterObjectNV WGLEW_GET_FUN(__wglewDXRegisterObjectNV)
  672. #define wglDXSetResourceShareHandleNV WGLEW_GET_FUN(__wglewDXSetResourceShareHandleNV)
  673. #define wglDXUnlockObjectsNV WGLEW_GET_FUN(__wglewDXUnlockObjectsNV)
  674. #define wglDXUnregisterObjectNV WGLEW_GET_FUN(__wglewDXUnregisterObjectNV)
  675. #define WGLEW_NV_DX_interop WGLEW_GET_VAR(__WGLEW_NV_DX_interop)
  676. #endif /* WGL_NV_DX_interop */
  677. /* --------------------------- WGL_NV_DX_interop2 -------------------------- */
  678. #ifndef WGL_NV_DX_interop2
  679. #define WGL_NV_DX_interop2 1
  680. #define WGLEW_NV_DX_interop2 WGLEW_GET_VAR(__WGLEW_NV_DX_interop2)
  681. #endif /* WGL_NV_DX_interop2 */
  682. /* --------------------------- WGL_NV_copy_image --------------------------- */
  683. #ifndef WGL_NV_copy_image
  684. #define WGL_NV_copy_image 1
  685. typedef BOOL (WINAPI * PFNWGLCOPYIMAGESUBDATANVPROC) (HGLRC hSrcRC, GLuint srcName, GLenum srcTarget, GLint srcLevel, GLint srcX, GLint srcY, GLint srcZ, HGLRC hDstRC, GLuint dstName, GLenum dstTarget, GLint dstLevel, GLint dstX, GLint dstY, GLint dstZ, GLsizei width, GLsizei height, GLsizei depth);
  686. #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
  687. #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
  688. #endif /* WGL_NV_copy_image */
  689. /* ------------------------ WGL_NV_delay_before_swap ----------------------- */
  690. #ifndef WGL_NV_delay_before_swap
  691. #define WGL_NV_delay_before_swap 1
  692. typedef BOOL (WINAPI * PFNWGLDELAYBEFORESWAPNVPROC) (HDC hDC, GLfloat seconds);
  693. #define wglDelayBeforeSwapNV WGLEW_GET_FUN(__wglewDelayBeforeSwapNV)
  694. #define WGLEW_NV_delay_before_swap WGLEW_GET_VAR(__WGLEW_NV_delay_before_swap)
  695. #endif /* WGL_NV_delay_before_swap */
  696. /* -------------------------- WGL_NV_float_buffer -------------------------- */
  697. #ifndef WGL_NV_float_buffer
  698. #define WGL_NV_float_buffer 1
  699. #define WGL_FLOAT_COMPONENTS_NV 0x20B0
  700. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
  701. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
  702. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
  703. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
  704. #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
  705. #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
  706. #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
  707. #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
  708. #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
  709. #endif /* WGL_NV_float_buffer */
  710. /* -------------------------- WGL_NV_gpu_affinity -------------------------- */
  711. #ifndef WGL_NV_gpu_affinity
  712. #define WGL_NV_gpu_affinity 1
  713. #define WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0
  714. #define WGL_ERROR_MISSING_AFFINITY_MASK_NV 0x20D1
  715. DECLARE_HANDLE(HGPUNV);
  716. typedef struct _GPU_DEVICE {
  717. DWORD cb;
  718. CHAR DeviceName[32];
  719. CHAR DeviceString[128];
  720. DWORD Flags;
  721. RECT rcVirtualScreen;
  722. } GPU_DEVICE, *PGPU_DEVICE;
  723. typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
  724. typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
  725. typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
  726. typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
  727. typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
  728. #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
  729. #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
  730. #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
  731. #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
  732. #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
  733. #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
  734. #endif /* WGL_NV_gpu_affinity */
  735. /* ---------------------- WGL_NV_multisample_coverage ---------------------- */
  736. #ifndef WGL_NV_multisample_coverage
  737. #define WGL_NV_multisample_coverage 1
  738. #define WGL_COVERAGE_SAMPLES_NV 0x2042
  739. #define WGL_COLOR_SAMPLES_NV 0x20B9
  740. #define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage)
  741. #endif /* WGL_NV_multisample_coverage */
  742. /* -------------------------- WGL_NV_present_video ------------------------- */
  743. #ifndef WGL_NV_present_video
  744. #define WGL_NV_present_video 1
  745. #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
  746. DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
  747. typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList);
  748. typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
  749. typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue);
  750. #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
  751. #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
  752. #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
  753. #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
  754. #endif /* WGL_NV_present_video */
  755. /* ---------------------- WGL_NV_render_depth_texture ---------------------- */
  756. #ifndef WGL_NV_render_depth_texture
  757. #define WGL_NV_render_depth_texture 1
  758. #define WGL_NO_TEXTURE_ARB 0x2077
  759. #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
  760. #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
  761. #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
  762. #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
  763. #define WGL_DEPTH_COMPONENT_NV 0x20A7
  764. #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
  765. #endif /* WGL_NV_render_depth_texture */
  766. /* -------------------- WGL_NV_render_texture_rectangle -------------------- */
  767. #ifndef WGL_NV_render_texture_rectangle
  768. #define WGL_NV_render_texture_rectangle 1
  769. #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
  770. #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
  771. #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
  772. #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
  773. #endif /* WGL_NV_render_texture_rectangle */
  774. /* --------------------------- WGL_NV_swap_group --------------------------- */
  775. #ifndef WGL_NV_swap_group
  776. #define WGL_NV_swap_group 1
  777. typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
  778. typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
  779. typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
  780. typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
  781. typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
  782. typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
  783. #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
  784. #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
  785. #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
  786. #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
  787. #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
  788. #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
  789. #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
  790. #endif /* WGL_NV_swap_group */
  791. /* ----------------------- WGL_NV_vertex_array_range ----------------------- */
  792. #ifndef WGL_NV_vertex_array_range
  793. #define WGL_NV_vertex_array_range 1
  794. typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
  795. typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
  796. #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
  797. #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
  798. #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
  799. #endif /* WGL_NV_vertex_array_range */
  800. /* -------------------------- WGL_NV_video_capture ------------------------- */
  801. #ifndef WGL_NV_video_capture
  802. #define WGL_NV_video_capture 1
  803. #define WGL_UNIQUE_ID_NV 0x20CE
  804. #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
  805. DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
  806. typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
  807. typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV* phDeviceList);
  808. typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  809. typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int* piValue);
  810. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  811. #define wglBindVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewBindVideoCaptureDeviceNV)
  812. #define wglEnumerateVideoCaptureDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoCaptureDevicesNV)
  813. #define wglLockVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewLockVideoCaptureDeviceNV)
  814. #define wglQueryVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewQueryVideoCaptureDeviceNV)
  815. #define wglReleaseVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoCaptureDeviceNV)
  816. #define WGLEW_NV_video_capture WGLEW_GET_VAR(__WGLEW_NV_video_capture)
  817. #endif /* WGL_NV_video_capture */
  818. /* -------------------------- WGL_NV_video_output -------------------------- */
  819. #ifndef WGL_NV_video_output
  820. #define WGL_NV_video_output 1
  821. #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
  822. #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
  823. #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
  824. #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
  825. #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
  826. #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
  827. #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  828. #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  829. #define WGL_VIDEO_OUT_FRAME 0x20C8
  830. #define WGL_VIDEO_OUT_FIELD_1 0x20C9
  831. #define WGL_VIDEO_OUT_FIELD_2 0x20CA
  832. #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
  833. #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
  834. DECLARE_HANDLE(HPVIDEODEV);
  835. typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
  836. typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice);
  837. typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  838. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
  839. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
  840. typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock);
  841. #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
  842. #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
  843. #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
  844. #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
  845. #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
  846. #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
  847. #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
  848. #endif /* WGL_NV_video_output */
  849. /* -------------------------- WGL_OML_sync_control ------------------------- */
  850. #ifndef WGL_OML_sync_control
  851. #define WGL_OML_sync_control 1
  852. typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
  853. typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
  854. typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
  855. typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
  856. typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
  857. typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
  858. #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
  859. #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
  860. #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
  861. #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
  862. #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
  863. #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
  864. #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
  865. #endif /* WGL_OML_sync_control */
  866. /* ------------------------------------------------------------------------- */
  867. #ifdef GLEW_MX
  868. #define WGLEW_FUN_EXPORT
  869. #define WGLEW_VAR_EXPORT
  870. #else
  871. #define WGLEW_FUN_EXPORT GLEW_FUN_EXPORT
  872. #define WGLEW_VAR_EXPORT GLEW_VAR_EXPORT
  873. #endif /* GLEW_MX */
  874. #ifdef GLEW_MX
  875. struct WGLEWContextStruct
  876. {
  877. #endif /* GLEW_MX */
  878. WGLEW_FUN_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
  879. WGLEW_FUN_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
  880. WGLEW_FUN_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
  881. WGLEW_FUN_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
  882. WGLEW_FUN_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
  883. WGLEW_FUN_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
  884. WGLEW_FUN_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
  885. WGLEW_FUN_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
  886. WGLEW_FUN_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
  887. WGLEW_FUN_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
  888. WGLEW_FUN_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
  889. WGLEW_FUN_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
  890. WGLEW_FUN_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
  891. WGLEW_FUN_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
  892. WGLEW_FUN_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
  893. WGLEW_FUN_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
  894. WGLEW_FUN_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
  895. WGLEW_FUN_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
  896. WGLEW_FUN_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
  897. WGLEW_FUN_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
  898. WGLEW_FUN_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
  899. WGLEW_FUN_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
  900. WGLEW_FUN_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
  901. WGLEW_FUN_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
  902. WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
  903. WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
  904. WGLEW_FUN_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
  905. WGLEW_FUN_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
  906. WGLEW_FUN_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
  907. WGLEW_FUN_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
  908. WGLEW_FUN_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
  909. WGLEW_FUN_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
  910. WGLEW_FUN_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
  911. WGLEW_FUN_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
  912. WGLEW_FUN_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
  913. WGLEW_FUN_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
  914. WGLEW_FUN_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
  915. WGLEW_FUN_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
  916. WGLEW_FUN_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
  917. WGLEW_FUN_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
  918. WGLEW_FUN_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
  919. WGLEW_FUN_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
  920. WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
  921. WGLEW_FUN_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
  922. WGLEW_FUN_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
  923. WGLEW_FUN_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
  924. WGLEW_FUN_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
  925. WGLEW_FUN_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
  926. WGLEW_FUN_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
  927. WGLEW_FUN_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
  928. WGLEW_FUN_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
  929. WGLEW_FUN_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
  930. WGLEW_FUN_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
  931. WGLEW_FUN_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
  932. WGLEW_FUN_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
  933. WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
  934. WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
  935. WGLEW_FUN_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
  936. WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
  937. WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
  938. WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
  939. WGLEW_FUN_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
  940. WGLEW_FUN_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
  941. WGLEW_FUN_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
  942. WGLEW_FUN_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
  943. WGLEW_FUN_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
  944. WGLEW_FUN_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
  945. WGLEW_FUN_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
  946. WGLEW_FUN_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
  947. WGLEW_FUN_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
  948. WGLEW_FUN_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
  949. WGLEW_FUN_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
  950. WGLEW_FUN_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
  951. WGLEW_FUN_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
  952. WGLEW_FUN_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
  953. WGLEW_FUN_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
  954. WGLEW_FUN_EXPORT PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV;
  955. WGLEW_FUN_EXPORT PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV;
  956. WGLEW_FUN_EXPORT PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV;
  957. WGLEW_FUN_EXPORT PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV;
  958. WGLEW_FUN_EXPORT PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV;
  959. WGLEW_FUN_EXPORT PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV;
  960. WGLEW_FUN_EXPORT PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV;
  961. WGLEW_FUN_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV;
  962. WGLEW_FUN_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
  963. WGLEW_FUN_EXPORT PFNWGLDELAYBEFORESWAPNVPROC __wglewDelayBeforeSwapNV;
  964. WGLEW_FUN_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
  965. WGLEW_FUN_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
  966. WGLEW_FUN_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
  967. WGLEW_FUN_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
  968. WGLEW_FUN_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
  969. WGLEW_FUN_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
  970. WGLEW_FUN_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
  971. WGLEW_FUN_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
  972. WGLEW_FUN_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
  973. WGLEW_FUN_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
  974. WGLEW_FUN_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
  975. WGLEW_FUN_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
  976. WGLEW_FUN_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
  977. WGLEW_FUN_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
  978. WGLEW_FUN_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
  979. WGLEW_FUN_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
  980. WGLEW_FUN_EXPORT PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV;
  981. WGLEW_FUN_EXPORT PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV;
  982. WGLEW_FUN_EXPORT PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV;
  983. WGLEW_FUN_EXPORT PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV;
  984. WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV;
  985. WGLEW_FUN_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
  986. WGLEW_FUN_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
  987. WGLEW_FUN_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
  988. WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
  989. WGLEW_FUN_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
  990. WGLEW_FUN_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
  991. WGLEW_FUN_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
  992. WGLEW_FUN_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
  993. WGLEW_FUN_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
  994. WGLEW_FUN_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
  995. WGLEW_FUN_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
  996. WGLEW_FUN_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
  997. WGLEW_VAR_EXPORT GLboolean __WGLEW_3DFX_multisample;
  998. WGLEW_VAR_EXPORT GLboolean __WGLEW_3DL_stereo_control;
  999. WGLEW_VAR_EXPORT GLboolean __WGLEW_AMD_gpu_association;
  1000. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_buffer_region;
  1001. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_context_flush_control;
  1002. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context;
  1003. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
  1004. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_create_context_robustness;
  1005. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_extensions_string;
  1006. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
  1007. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_make_current_read;
  1008. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_multisample;
  1009. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pbuffer;
  1010. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pixel_format;
  1011. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
  1012. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_render_texture;
  1013. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_robustness_application_isolation;
  1014. WGLEW_VAR_EXPORT GLboolean __WGLEW_ARB_robustness_share_group_isolation;
  1015. WGLEW_VAR_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
  1016. WGLEW_VAR_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
  1017. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile;
  1018. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_create_context_es_profile;
  1019. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_depth_float;
  1020. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_display_color_table;
  1021. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_extensions_string;
  1022. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
  1023. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_make_current_read;
  1024. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_multisample;
  1025. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pbuffer;
  1026. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pixel_format;
  1027. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
  1028. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_swap_control;
  1029. WGLEW_VAR_EXPORT GLboolean __WGLEW_EXT_swap_control_tear;
  1030. WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
  1031. WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_gamma;
  1032. WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_genlock;
  1033. WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_image_buffer;
  1034. WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
  1035. WGLEW_VAR_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
  1036. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop;
  1037. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_DX_interop2;
  1038. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_copy_image;
  1039. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_delay_before_swap;
  1040. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_float_buffer;
  1041. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
  1042. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_multisample_coverage;
  1043. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_present_video;
  1044. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
  1045. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
  1046. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_swap_group;
  1047. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
  1048. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_capture;
  1049. WGLEW_VAR_EXPORT GLboolean __WGLEW_NV_video_output;
  1050. WGLEW_VAR_EXPORT GLboolean __WGLEW_OML_sync_control;
  1051. #ifdef GLEW_MX
  1052. }; /* WGLEWContextStruct */
  1053. #endif /* GLEW_MX */
  1054. /* ------------------------------------------------------------------------- */
  1055. #ifdef GLEW_MX
  1056. typedef struct WGLEWContextStruct WGLEWContext;
  1057. GLEWAPI GLenum GLEWAPIENTRY wglewContextInit (WGLEWContext *ctx);
  1058. GLEWAPI GLboolean GLEWAPIENTRY wglewContextIsSupported (const WGLEWContext *ctx, const char *name);
  1059. #define wglewInit() wglewContextInit(wglewGetContext())
  1060. #define wglewIsSupported(x) wglewContextIsSupported(wglewGetContext(), x)
  1061. #define WGLEW_GET_VAR(x) (*(const GLboolean*)&(wglewGetContext()->x))
  1062. #define WGLEW_GET_FUN(x) wglewGetContext()->x
  1063. #else /* GLEW_MX */
  1064. GLEWAPI GLenum GLEWAPIENTRY wglewInit ();
  1065. GLEWAPI GLboolean GLEWAPIENTRY wglewIsSupported (const char *name);
  1066. #define WGLEW_GET_VAR(x) (*(const GLboolean*)&x)
  1067. #define WGLEW_GET_FUN(x) x
  1068. #endif /* GLEW_MX */
  1069. GLEWAPI GLboolean GLEWAPIENTRY wglewGetExtension (const char *name);
  1070. #ifdef __cplusplus
  1071. }
  1072. #endif
  1073. #undef GLEWAPI
  1074. #endif
  1075. #endif /* __wglew_h__ */