wglew.h 64 KB

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