wglew.h 61 KB

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