wglew.h 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425
  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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(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. #if !defined(WGL_EXT_create_context_es2_profile)
  376. #define WGL_EXT_create_context_es2_profile 1
  377. #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
  378. #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
  379. #define WGLEW_EXT_create_context_es2_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es2_profile)
  380. #endif /* !WGL_EXT_create_context_es2_profile */
  381. /* ------------------- WGL_EXT_create_context_es_profile ------------------- */
  382. #if !defined(WGL_EXT_create_context_es_profile)
  383. #define WGL_EXT_create_context_es_profile 1
  384. #define WGL_CONTEXT_ES_PROFILE_BIT_EXT 0x00000004
  385. #define WGL_CONTEXT_ES2_PROFILE_BIT_EXT 0x00000004
  386. #define WGLEW_EXT_create_context_es_profile WGLEW_GET_VAR(__WGLEW_EXT_create_context_es_profile)
  387. #endif /* !WGL_EXT_create_context_es_profile */
  388. /* -------------------------- WGL_EXT_depth_float -------------------------- */
  389. #if !defined(WGL_EXT_depth_float)
  390. #define WGL_EXT_depth_float 1
  391. #define WGL_DEPTH_FLOAT_EXT 0x2040
  392. #define WGLEW_EXT_depth_float WGLEW_GET_VAR(__WGLEW_EXT_depth_float)
  393. #endif /* !WGL_EXT_depth_float */
  394. /* ---------------------- WGL_EXT_display_color_table ---------------------- */
  395. #if !defined(WGL_EXT_display_color_table)
  396. #define WGL_EXT_display_color_table 1
  397. typedef GLboolean (WINAPI * PFNWGLBINDDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  398. typedef GLboolean (WINAPI * PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  399. typedef void (WINAPI * PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC) (GLushort id);
  400. typedef GLboolean (WINAPI * PFNWGLLOADDISPLAYCOLORTABLEEXTPROC) (GLushort* table, GLuint length);
  401. #define wglBindDisplayColorTableEXT WGLEW_GET_FUN(__wglewBindDisplayColorTableEXT)
  402. #define wglCreateDisplayColorTableEXT WGLEW_GET_FUN(__wglewCreateDisplayColorTableEXT)
  403. #define wglDestroyDisplayColorTableEXT WGLEW_GET_FUN(__wglewDestroyDisplayColorTableEXT)
  404. #define wglLoadDisplayColorTableEXT WGLEW_GET_FUN(__wglewLoadDisplayColorTableEXT)
  405. #define WGLEW_EXT_display_color_table WGLEW_GET_VAR(__WGLEW_EXT_display_color_table)
  406. #endif /* !WGL_EXT_display_color_table */
  407. /* ----------------------- WGL_EXT_extensions_string ----------------------- */
  408. #if !defined(WGL_EXT_extensions_string)
  409. #define WGL_EXT_extensions_string 1
  410. typedef const char* (WINAPI * PFNWGLGETEXTENSIONSSTRINGEXTPROC) (void);
  411. #define wglGetExtensionsStringEXT WGLEW_GET_FUN(__wglewGetExtensionsStringEXT)
  412. #define WGLEW_EXT_extensions_string WGLEW_GET_VAR(__WGLEW_EXT_extensions_string)
  413. #endif /* !WGL_EXT_extensions_string */
  414. /* ------------------------ WGL_EXT_framebuffer_sRGB ----------------------- */
  415. #if !defined(WGL_EXT_framebuffer_sRGB)
  416. #define WGL_EXT_framebuffer_sRGB 1
  417. #define WGL_FRAMEBUFFER_SRGB_CAPABLE_EXT 0x20A9
  418. #define WGLEW_EXT_framebuffer_sRGB WGLEW_GET_VAR(__WGLEW_EXT_framebuffer_sRGB)
  419. #endif /* !WGL_EXT_framebuffer_sRGB */
  420. /* ----------------------- WGL_EXT_make_current_read ----------------------- */
  421. #if !defined(WGL_EXT_make_current_read)
  422. #define WGL_EXT_make_current_read 1
  423. #define ERROR_INVALID_PIXEL_TYPE_EXT 0x2043
  424. typedef HDC (WINAPI * PFNWGLGETCURRENTREADDCEXTPROC) (VOID);
  425. typedef BOOL (WINAPI * PFNWGLMAKECONTEXTCURRENTEXTPROC) (HDC hDrawDC, HDC hReadDC, HGLRC hglrc);
  426. #define wglGetCurrentReadDCEXT WGLEW_GET_FUN(__wglewGetCurrentReadDCEXT)
  427. #define wglMakeContextCurrentEXT WGLEW_GET_FUN(__wglewMakeContextCurrentEXT)
  428. #define WGLEW_EXT_make_current_read WGLEW_GET_VAR(__WGLEW_EXT_make_current_read)
  429. #endif /* !WGL_EXT_make_current_read */
  430. /* -------------------------- WGL_EXT_multisample -------------------------- */
  431. #if !defined(WGL_EXT_multisample)
  432. #define WGL_EXT_multisample 1
  433. #define WGL_SAMPLE_BUFFERS_EXT 0x2041
  434. #define WGL_SAMPLES_EXT 0x2042
  435. #define WGLEW_EXT_multisample WGLEW_GET_VAR(__WGLEW_EXT_multisample)
  436. #endif /* !WGL_EXT_multisample */
  437. /* ---------------------------- WGL_EXT_pbuffer ---------------------------- */
  438. #if !defined(WGL_EXT_pbuffer)
  439. #define WGL_EXT_pbuffer 1
  440. #define WGL_DRAW_TO_PBUFFER_EXT 0x202D
  441. #define WGL_MAX_PBUFFER_PIXELS_EXT 0x202E
  442. #define WGL_MAX_PBUFFER_WIDTH_EXT 0x202F
  443. #define WGL_MAX_PBUFFER_HEIGHT_EXT 0x2030
  444. #define WGL_OPTIMAL_PBUFFER_WIDTH_EXT 0x2031
  445. #define WGL_OPTIMAL_PBUFFER_HEIGHT_EXT 0x2032
  446. #define WGL_PBUFFER_LARGEST_EXT 0x2033
  447. #define WGL_PBUFFER_WIDTH_EXT 0x2034
  448. #define WGL_PBUFFER_HEIGHT_EXT 0x2035
  449. DECLARE_HANDLE(HPBUFFEREXT);
  450. typedef HPBUFFEREXT (WINAPI * PFNWGLCREATEPBUFFEREXTPROC) (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int* piAttribList);
  451. typedef BOOL (WINAPI * PFNWGLDESTROYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer);
  452. typedef HDC (WINAPI * PFNWGLGETPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer);
  453. typedef BOOL (WINAPI * PFNWGLQUERYPBUFFEREXTPROC) (HPBUFFEREXT hPbuffer, int iAttribute, int* piValue);
  454. typedef int (WINAPI * PFNWGLRELEASEPBUFFERDCEXTPROC) (HPBUFFEREXT hPbuffer, HDC hDC);
  455. #define wglCreatePbufferEXT WGLEW_GET_FUN(__wglewCreatePbufferEXT)
  456. #define wglDestroyPbufferEXT WGLEW_GET_FUN(__wglewDestroyPbufferEXT)
  457. #define wglGetPbufferDCEXT WGLEW_GET_FUN(__wglewGetPbufferDCEXT)
  458. #define wglQueryPbufferEXT WGLEW_GET_FUN(__wglewQueryPbufferEXT)
  459. #define wglReleasePbufferDCEXT WGLEW_GET_FUN(__wglewReleasePbufferDCEXT)
  460. #define WGLEW_EXT_pbuffer WGLEW_GET_VAR(__WGLEW_EXT_pbuffer)
  461. #endif /* !WGL_EXT_pbuffer */
  462. /* -------------------------- WGL_EXT_pixel_format ------------------------- */
  463. #if !defined(WGL_EXT_pixel_format)
  464. #define WGL_EXT_pixel_format 1
  465. #define WGL_NUMBER_PIXEL_FORMATS_EXT 0x2000
  466. #define WGL_DRAW_TO_WINDOW_EXT 0x2001
  467. #define WGL_DRAW_TO_BITMAP_EXT 0x2002
  468. #define WGL_ACCELERATION_EXT 0x2003
  469. #define WGL_NEED_PALETTE_EXT 0x2004
  470. #define WGL_NEED_SYSTEM_PALETTE_EXT 0x2005
  471. #define WGL_SWAP_LAYER_BUFFERS_EXT 0x2006
  472. #define WGL_SWAP_METHOD_EXT 0x2007
  473. #define WGL_NUMBER_OVERLAYS_EXT 0x2008
  474. #define WGL_NUMBER_UNDERLAYS_EXT 0x2009
  475. #define WGL_TRANSPARENT_EXT 0x200A
  476. #define WGL_TRANSPARENT_VALUE_EXT 0x200B
  477. #define WGL_SHARE_DEPTH_EXT 0x200C
  478. #define WGL_SHARE_STENCIL_EXT 0x200D
  479. #define WGL_SHARE_ACCUM_EXT 0x200E
  480. #define WGL_SUPPORT_GDI_EXT 0x200F
  481. #define WGL_SUPPORT_OPENGL_EXT 0x2010
  482. #define WGL_DOUBLE_BUFFER_EXT 0x2011
  483. #define WGL_STEREO_EXT 0x2012
  484. #define WGL_PIXEL_TYPE_EXT 0x2013
  485. #define WGL_COLOR_BITS_EXT 0x2014
  486. #define WGL_RED_BITS_EXT 0x2015
  487. #define WGL_RED_SHIFT_EXT 0x2016
  488. #define WGL_GREEN_BITS_EXT 0x2017
  489. #define WGL_GREEN_SHIFT_EXT 0x2018
  490. #define WGL_BLUE_BITS_EXT 0x2019
  491. #define WGL_BLUE_SHIFT_EXT 0x201A
  492. #define WGL_ALPHA_BITS_EXT 0x201B
  493. #define WGL_ALPHA_SHIFT_EXT 0x201C
  494. #define WGL_ACCUM_BITS_EXT 0x201D
  495. #define WGL_ACCUM_RED_BITS_EXT 0x201E
  496. #define WGL_ACCUM_GREEN_BITS_EXT 0x201F
  497. #define WGL_ACCUM_BLUE_BITS_EXT 0x2020
  498. #define WGL_ACCUM_ALPHA_BITS_EXT 0x2021
  499. #define WGL_DEPTH_BITS_EXT 0x2022
  500. #define WGL_STENCIL_BITS_EXT 0x2023
  501. #define WGL_AUX_BUFFERS_EXT 0x2024
  502. #define WGL_NO_ACCELERATION_EXT 0x2025
  503. #define WGL_GENERIC_ACCELERATION_EXT 0x2026
  504. #define WGL_FULL_ACCELERATION_EXT 0x2027
  505. #define WGL_SWAP_EXCHANGE_EXT 0x2028
  506. #define WGL_SWAP_COPY_EXT 0x2029
  507. #define WGL_SWAP_UNDEFINED_EXT 0x202A
  508. #define WGL_TYPE_RGBA_EXT 0x202B
  509. #define WGL_TYPE_COLORINDEX_EXT 0x202C
  510. typedef BOOL (WINAPI * PFNWGLCHOOSEPIXELFORMATEXTPROC) (HDC hdc, const int* piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats);
  511. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBFVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, FLOAT *pfValues);
  512. typedef BOOL (WINAPI * PFNWGLGETPIXELFORMATATTRIBIVEXTPROC) (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int* piAttributes, int *piValues);
  513. #define wglChoosePixelFormatEXT WGLEW_GET_FUN(__wglewChoosePixelFormatEXT)
  514. #define wglGetPixelFormatAttribfvEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribfvEXT)
  515. #define wglGetPixelFormatAttribivEXT WGLEW_GET_FUN(__wglewGetPixelFormatAttribivEXT)
  516. #define WGLEW_EXT_pixel_format WGLEW_GET_VAR(__WGLEW_EXT_pixel_format)
  517. #endif /* !WGL_EXT_pixel_format */
  518. /* ------------------- WGL_EXT_pixel_format_packed_float ------------------- */
  519. #if !defined(WGL_EXT_pixel_format_packed_float)
  520. #define WGL_EXT_pixel_format_packed_float 1
  521. #define WGL_TYPE_RGBA_UNSIGNED_FLOAT_EXT 0x20A8
  522. #define WGLEW_EXT_pixel_format_packed_float WGLEW_GET_VAR(__WGLEW_EXT_pixel_format_packed_float)
  523. #endif /* !WGL_EXT_pixel_format_packed_float */
  524. /* -------------------------- WGL_EXT_swap_control ------------------------- */
  525. #if !defined(WGL_EXT_swap_control)
  526. #define WGL_EXT_swap_control 1
  527. typedef int (WINAPI * PFNWGLGETSWAPINTERVALEXTPROC) (void);
  528. typedef BOOL (WINAPI * PFNWGLSWAPINTERVALEXTPROC) (int interval);
  529. #define wglGetSwapIntervalEXT WGLEW_GET_FUN(__wglewGetSwapIntervalEXT)
  530. #define wglSwapIntervalEXT WGLEW_GET_FUN(__wglewSwapIntervalEXT)
  531. #define WGLEW_EXT_swap_control WGLEW_GET_VAR(__WGLEW_EXT_swap_control)
  532. #endif /* !WGL_EXT_swap_control */
  533. /* ----------------------- WGL_EXT_swap_control_tear ----------------------- */
  534. #if !defined(WGL_EXT_swap_control_tear)
  535. #define WGL_EXT_swap_control_tear 1
  536. #define WGLEW_EXT_swap_control_tear WGLEW_GET_VAR(__WGLEW_EXT_swap_control_tear)
  537. #endif /* !WGL_EXT_swap_control_tear */
  538. /* --------------------- WGL_I3D_digital_video_control --------------------- */
  539. #if !defined(WGL_I3D_digital_video_control)
  540. #define WGL_I3D_digital_video_control 1
  541. #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_FRAMEBUFFER_I3D 0x2050
  542. #define WGL_DIGITAL_VIDEO_CURSOR_ALPHA_VALUE_I3D 0x2051
  543. #define WGL_DIGITAL_VIDEO_CURSOR_INCLUDED_I3D 0x2052
  544. #define WGL_DIGITAL_VIDEO_GAMMA_CORRECTED_I3D 0x2053
  545. typedef BOOL (WINAPI * PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
  546. typedef BOOL (WINAPI * PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
  547. #define wglGetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewGetDigitalVideoParametersI3D)
  548. #define wglSetDigitalVideoParametersI3D WGLEW_GET_FUN(__wglewSetDigitalVideoParametersI3D)
  549. #define WGLEW_I3D_digital_video_control WGLEW_GET_VAR(__WGLEW_I3D_digital_video_control)
  550. #endif /* !WGL_I3D_digital_video_control */
  551. /* ----------------------------- WGL_I3D_gamma ----------------------------- */
  552. #if !defined(WGL_I3D_gamma)
  553. #define WGL_I3D_gamma 1
  554. #define WGL_GAMMA_TABLE_SIZE_I3D 0x204E
  555. #define WGL_GAMMA_EXCLUDE_DESKTOP_I3D 0x204F
  556. typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, USHORT* puRed, USHORT *puGreen, USHORT *puBlue);
  557. typedef BOOL (WINAPI * PFNWGLGETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, int* piValue);
  558. typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEI3DPROC) (HDC hDC, int iEntries, const USHORT* puRed, const USHORT *puGreen, const USHORT *puBlue);
  559. typedef BOOL (WINAPI * PFNWGLSETGAMMATABLEPARAMETERSI3DPROC) (HDC hDC, int iAttribute, const int* piValue);
  560. #define wglGetGammaTableI3D WGLEW_GET_FUN(__wglewGetGammaTableI3D)
  561. #define wglGetGammaTableParametersI3D WGLEW_GET_FUN(__wglewGetGammaTableParametersI3D)
  562. #define wglSetGammaTableI3D WGLEW_GET_FUN(__wglewSetGammaTableI3D)
  563. #define wglSetGammaTableParametersI3D WGLEW_GET_FUN(__wglewSetGammaTableParametersI3D)
  564. #define WGLEW_I3D_gamma WGLEW_GET_VAR(__WGLEW_I3D_gamma)
  565. #endif /* !WGL_I3D_gamma */
  566. /* ---------------------------- WGL_I3D_genlock ---------------------------- */
  567. #if !defined(WGL_I3D_genlock)
  568. #define WGL_I3D_genlock 1
  569. #define WGL_GENLOCK_SOURCE_MULTIVIEW_I3D 0x2044
  570. #define WGL_GENLOCK_SOURCE_EXTERNAL_SYNC_I3D 0x2045
  571. #define WGL_GENLOCK_SOURCE_EXTERNAL_FIELD_I3D 0x2046
  572. #define WGL_GENLOCK_SOURCE_EXTERNAL_TTL_I3D 0x2047
  573. #define WGL_GENLOCK_SOURCE_DIGITAL_SYNC_I3D 0x2048
  574. #define WGL_GENLOCK_SOURCE_DIGITAL_FIELD_I3D 0x2049
  575. #define WGL_GENLOCK_SOURCE_EDGE_FALLING_I3D 0x204A
  576. #define WGL_GENLOCK_SOURCE_EDGE_RISING_I3D 0x204B
  577. #define WGL_GENLOCK_SOURCE_EDGE_BOTH_I3D 0x204C
  578. typedef BOOL (WINAPI * PFNWGLDISABLEGENLOCKI3DPROC) (HDC hDC);
  579. typedef BOOL (WINAPI * PFNWGLENABLEGENLOCKI3DPROC) (HDC hDC);
  580. typedef BOOL (WINAPI * PFNWGLGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT uRate);
  581. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT uDelay);
  582. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT uEdge);
  583. typedef BOOL (WINAPI * PFNWGLGENLOCKSOURCEI3DPROC) (HDC hDC, UINT uSource);
  584. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSAMPLERATEI3DPROC) (HDC hDC, UINT* uRate);
  585. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEDELAYI3DPROC) (HDC hDC, UINT* uDelay);
  586. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEEDGEI3DPROC) (HDC hDC, UINT* uEdge);
  587. typedef BOOL (WINAPI * PFNWGLGETGENLOCKSOURCEI3DPROC) (HDC hDC, UINT* uSource);
  588. typedef BOOL (WINAPI * PFNWGLISENABLEDGENLOCKI3DPROC) (HDC hDC, BOOL* pFlag);
  589. typedef BOOL (WINAPI * PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC) (HDC hDC, UINT* uMaxLineDelay, UINT *uMaxPixelDelay);
  590. #define wglDisableGenlockI3D WGLEW_GET_FUN(__wglewDisableGenlockI3D)
  591. #define wglEnableGenlockI3D WGLEW_GET_FUN(__wglewEnableGenlockI3D)
  592. #define wglGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGenlockSampleRateI3D)
  593. #define wglGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGenlockSourceDelayI3D)
  594. #define wglGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGenlockSourceEdgeI3D)
  595. #define wglGenlockSourceI3D WGLEW_GET_FUN(__wglewGenlockSourceI3D)
  596. #define wglGetGenlockSampleRateI3D WGLEW_GET_FUN(__wglewGetGenlockSampleRateI3D)
  597. #define wglGetGenlockSourceDelayI3D WGLEW_GET_FUN(__wglewGetGenlockSourceDelayI3D)
  598. #define wglGetGenlockSourceEdgeI3D WGLEW_GET_FUN(__wglewGetGenlockSourceEdgeI3D)
  599. #define wglGetGenlockSourceI3D WGLEW_GET_FUN(__wglewGetGenlockSourceI3D)
  600. #define wglIsEnabledGenlockI3D WGLEW_GET_FUN(__wglewIsEnabledGenlockI3D)
  601. #define wglQueryGenlockMaxSourceDelayI3D WGLEW_GET_FUN(__wglewQueryGenlockMaxSourceDelayI3D)
  602. #define WGLEW_I3D_genlock WGLEW_GET_VAR(__WGLEW_I3D_genlock)
  603. #endif /* !WGL_I3D_genlock */
  604. /* -------------------------- WGL_I3D_image_buffer ------------------------- */
  605. #if !defined(WGL_I3D_image_buffer)
  606. #define WGL_I3D_image_buffer 1
  607. #define WGL_IMAGE_BUFFER_MIN_ACCESS_I3D 0x00000001
  608. #define WGL_IMAGE_BUFFER_LOCK_I3D 0x00000002
  609. typedef BOOL (WINAPI * PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, HANDLE* pEvent, LPVOID *pAddress, DWORD *pSize, UINT count);
  610. typedef LPVOID (WINAPI * PFNWGLCREATEIMAGEBUFFERI3DPROC) (HDC hDC, DWORD dwSize, UINT uFlags);
  611. typedef BOOL (WINAPI * PFNWGLDESTROYIMAGEBUFFERI3DPROC) (HDC hDC, LPVOID pAddress);
  612. typedef BOOL (WINAPI * PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC) (HDC hdc, LPVOID* pAddress, UINT count);
  613. #define wglAssociateImageBufferEventsI3D WGLEW_GET_FUN(__wglewAssociateImageBufferEventsI3D)
  614. #define wglCreateImageBufferI3D WGLEW_GET_FUN(__wglewCreateImageBufferI3D)
  615. #define wglDestroyImageBufferI3D WGLEW_GET_FUN(__wglewDestroyImageBufferI3D)
  616. #define wglReleaseImageBufferEventsI3D WGLEW_GET_FUN(__wglewReleaseImageBufferEventsI3D)
  617. #define WGLEW_I3D_image_buffer WGLEW_GET_VAR(__WGLEW_I3D_image_buffer)
  618. #endif /* !WGL_I3D_image_buffer */
  619. /* ------------------------ WGL_I3D_swap_frame_lock ------------------------ */
  620. #if !defined(WGL_I3D_swap_frame_lock)
  621. #define WGL_I3D_swap_frame_lock 1
  622. typedef BOOL (WINAPI * PFNWGLDISABLEFRAMELOCKI3DPROC) (VOID);
  623. typedef BOOL (WINAPI * PFNWGLENABLEFRAMELOCKI3DPROC) (VOID);
  624. typedef BOOL (WINAPI * PFNWGLISENABLEDFRAMELOCKI3DPROC) (BOOL* pFlag);
  625. typedef BOOL (WINAPI * PFNWGLQUERYFRAMELOCKMASTERI3DPROC) (BOOL* pFlag);
  626. #define wglDisableFrameLockI3D WGLEW_GET_FUN(__wglewDisableFrameLockI3D)
  627. #define wglEnableFrameLockI3D WGLEW_GET_FUN(__wglewEnableFrameLockI3D)
  628. #define wglIsEnabledFrameLockI3D WGLEW_GET_FUN(__wglewIsEnabledFrameLockI3D)
  629. #define wglQueryFrameLockMasterI3D WGLEW_GET_FUN(__wglewQueryFrameLockMasterI3D)
  630. #define WGLEW_I3D_swap_frame_lock WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_lock)
  631. #endif /* !WGL_I3D_swap_frame_lock */
  632. /* ------------------------ WGL_I3D_swap_frame_usage ----------------------- */
  633. #if !defined(WGL_I3D_swap_frame_usage)
  634. #define WGL_I3D_swap_frame_usage 1
  635. typedef BOOL (WINAPI * PFNWGLBEGINFRAMETRACKINGI3DPROC) (void);
  636. typedef BOOL (WINAPI * PFNWGLENDFRAMETRACKINGI3DPROC) (void);
  637. typedef BOOL (WINAPI * PFNWGLGETFRAMEUSAGEI3DPROC) (float* pUsage);
  638. typedef BOOL (WINAPI * PFNWGLQUERYFRAMETRACKINGI3DPROC) (DWORD* pFrameCount, DWORD *pMissedFrames, float *pLastMissedUsage);
  639. #define wglBeginFrameTrackingI3D WGLEW_GET_FUN(__wglewBeginFrameTrackingI3D)
  640. #define wglEndFrameTrackingI3D WGLEW_GET_FUN(__wglewEndFrameTrackingI3D)
  641. #define wglGetFrameUsageI3D WGLEW_GET_FUN(__wglewGetFrameUsageI3D)
  642. #define wglQueryFrameTrackingI3D WGLEW_GET_FUN(__wglewQueryFrameTrackingI3D)
  643. #define WGLEW_I3D_swap_frame_usage WGLEW_GET_VAR(__WGLEW_I3D_swap_frame_usage)
  644. #endif /* !WGL_I3D_swap_frame_usage */
  645. /* --------------------------- WGL_NV_DX_interop --------------------------- */
  646. #if !defined(WGL_NV_DX_interop)
  647. #define WGL_NV_DX_interop 1
  648. #define WGL_ACCESS_READ_ONLY_NV 0x0000
  649. #define WGL_ACCESS_READ_WRITE_NV 0x0001
  650. #define WGL_ACCESS_WRITE_DISCARD_NV 0x0002
  651. typedef BOOL (WINAPI * PFNWGLDXCLOSEDEVICENVPROC) (HANDLE hDevice);
  652. typedef BOOL (WINAPI * PFNWGLDXLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
  653. typedef BOOL (WINAPI * PFNWGLDXOBJECTACCESSNVPROC) (HANDLE hObject, GLenum access);
  654. typedef HANDLE (WINAPI * PFNWGLDXOPENDEVICENVPROC) (void* dxDevice);
  655. typedef HANDLE (WINAPI * PFNWGLDXREGISTEROBJECTNVPROC) (HANDLE hDevice, void* dxObject, GLuint name, GLenum type, GLenum access);
  656. typedef BOOL (WINAPI * PFNWGLDXSETRESOURCESHAREHANDLENVPROC) (void* dxObject, HANDLE shareHandle);
  657. typedef BOOL (WINAPI * PFNWGLDXUNLOCKOBJECTSNVPROC) (HANDLE hDevice, GLint count, HANDLE* hObjects);
  658. typedef BOOL (WINAPI * PFNWGLDXUNREGISTEROBJECTNVPROC) (HANDLE hDevice, HANDLE hObject);
  659. #define wglDXCloseDeviceNV WGLEW_GET_FUN(__wglewDXCloseDeviceNV)
  660. #define wglDXLockObjectsNV WGLEW_GET_FUN(__wglewDXLockObjectsNV)
  661. #define wglDXObjectAccessNV WGLEW_GET_FUN(__wglewDXObjectAccessNV)
  662. #define wglDXOpenDeviceNV WGLEW_GET_FUN(__wglewDXOpenDeviceNV)
  663. #define wglDXRegisterObjectNV WGLEW_GET_FUN(__wglewDXRegisterObjectNV)
  664. #define wglDXSetResourceShareHandleNV WGLEW_GET_FUN(__wglewDXSetResourceShareHandleNV)
  665. #define wglDXUnlockObjectsNV WGLEW_GET_FUN(__wglewDXUnlockObjectsNV)
  666. #define wglDXUnregisterObjectNV WGLEW_GET_FUN(__wglewDXUnregisterObjectNV)
  667. #define WGLEW_NV_DX_interop WGLEW_GET_VAR(__WGLEW_NV_DX_interop)
  668. #endif /* !WGL_NV_DX_interop */
  669. /* --------------------------- WGL_NV_DX_interop2 -------------------------- */
  670. #if !defined(WGL_NV_DX_interop2)
  671. #define WGL_NV_DX_interop2 1
  672. #define WGLEW_NV_DX_interop2 WGLEW_GET_VAR(__WGLEW_NV_DX_interop2)
  673. #endif /* !WGL_NV_DX_interop2 */
  674. /* --------------------------- WGL_NV_copy_image --------------------------- */
  675. #if !defined(WGL_NV_copy_image)
  676. #define WGL_NV_copy_image 1
  677. 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);
  678. #define wglCopyImageSubDataNV WGLEW_GET_FUN(__wglewCopyImageSubDataNV)
  679. #define WGLEW_NV_copy_image WGLEW_GET_VAR(__WGLEW_NV_copy_image)
  680. #endif /* !WGL_NV_copy_image */
  681. /* -------------------------- WGL_NV_float_buffer -------------------------- */
  682. #if !defined(WGL_NV_float_buffer)
  683. #define WGL_NV_float_buffer 1
  684. #define WGL_FLOAT_COMPONENTS_NV 0x20B0
  685. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_R_NV 0x20B1
  686. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RG_NV 0x20B2
  687. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGB_NV 0x20B3
  688. #define WGL_BIND_TO_TEXTURE_RECTANGLE_FLOAT_RGBA_NV 0x20B4
  689. #define WGL_TEXTURE_FLOAT_R_NV 0x20B5
  690. #define WGL_TEXTURE_FLOAT_RG_NV 0x20B6
  691. #define WGL_TEXTURE_FLOAT_RGB_NV 0x20B7
  692. #define WGL_TEXTURE_FLOAT_RGBA_NV 0x20B8
  693. #define WGLEW_NV_float_buffer WGLEW_GET_VAR(__WGLEW_NV_float_buffer)
  694. #endif /* !WGL_NV_float_buffer */
  695. /* -------------------------- WGL_NV_gpu_affinity -------------------------- */
  696. #if !defined(WGL_NV_gpu_affinity)
  697. #define WGL_NV_gpu_affinity 1
  698. #define ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV 0x20D0 // NOTE jwilkins: incorrect name
  699. #define ERROR_MISSING_AFFINITY_MASK_NV 0x20D1 // NOTE jwilkins: incorrect name
  700. DECLARE_HANDLE(HGPUNV);
  701. typedef struct _GPU_DEVICE {
  702. DWORD cb;
  703. CHAR DeviceName[32];
  704. CHAR DeviceString[128];
  705. DWORD Flags;
  706. RECT rcVirtualScreen;
  707. } GPU_DEVICE, *PGPU_DEVICE;
  708. typedef HDC (WINAPI * PFNWGLCREATEAFFINITYDCNVPROC) (const HGPUNV *phGpuList);
  709. typedef BOOL (WINAPI * PFNWGLDELETEDCNVPROC) (HDC hdc);
  710. typedef BOOL (WINAPI * PFNWGLENUMGPUDEVICESNVPROC) (HGPUNV hGpu, UINT iDeviceIndex, PGPU_DEVICE lpGpuDevice);
  711. typedef BOOL (WINAPI * PFNWGLENUMGPUSFROMAFFINITYDCNVPROC) (HDC hAffinityDC, UINT iGpuIndex, HGPUNV *hGpu);
  712. typedef BOOL (WINAPI * PFNWGLENUMGPUSNVPROC) (UINT iGpuIndex, HGPUNV *phGpu);
  713. #define wglCreateAffinityDCNV WGLEW_GET_FUN(__wglewCreateAffinityDCNV)
  714. #define wglDeleteDCNV WGLEW_GET_FUN(__wglewDeleteDCNV)
  715. #define wglEnumGpuDevicesNV WGLEW_GET_FUN(__wglewEnumGpuDevicesNV)
  716. #define wglEnumGpusFromAffinityDCNV WGLEW_GET_FUN(__wglewEnumGpusFromAffinityDCNV)
  717. #define wglEnumGpusNV WGLEW_GET_FUN(__wglewEnumGpusNV)
  718. #define WGLEW_NV_gpu_affinity WGLEW_GET_VAR(__WGLEW_NV_gpu_affinity)
  719. #endif /* !WGL_NV_gpu_affinity */
  720. /* ---------------------- WGL_NV_multisample_coverage ---------------------- */
  721. #if !defined(WGL_NV_multisample_coverage)
  722. #define WGL_NV_multisample_coverage 1
  723. #define WGL_COVERAGE_SAMPLES_NV 0x2042
  724. #define WGL_COLOR_SAMPLES_NV 0x20B9
  725. #define WGLEW_NV_multisample_coverage WGLEW_GET_VAR(__WGLEW_NV_multisample_coverage)
  726. #endif /* !WGL_NV_multisample_coverage */
  727. /* -------------------------- WGL_NV_present_video ------------------------- */
  728. #if !defined(WGL_NV_present_video)
  729. #define WGL_NV_present_video 1
  730. #define WGL_NUM_VIDEO_SLOTS_NV 0x20F0
  731. DECLARE_HANDLE(HVIDEOOUTPUTDEVICENV);
  732. typedef BOOL (WINAPI * PFNWGLBINDVIDEODEVICENVPROC) (HDC hDc, unsigned int uVideoSlot, HVIDEOOUTPUTDEVICENV hVideoDevice, const int* piAttribList);
  733. typedef int (WINAPI * PFNWGLENUMERATEVIDEODEVICESNVPROC) (HDC hDc, HVIDEOOUTPUTDEVICENV* phDeviceList);
  734. typedef BOOL (WINAPI * PFNWGLQUERYCURRENTCONTEXTNVPROC) (int iAttribute, int* piValue);
  735. #define wglBindVideoDeviceNV WGLEW_GET_FUN(__wglewBindVideoDeviceNV)
  736. #define wglEnumerateVideoDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoDevicesNV)
  737. #define wglQueryCurrentContextNV WGLEW_GET_FUN(__wglewQueryCurrentContextNV)
  738. #define WGLEW_NV_present_video WGLEW_GET_VAR(__WGLEW_NV_present_video)
  739. #endif /* !WGL_NV_present_video */
  740. /* ---------------------- WGL_NV_render_depth_texture ---------------------- */
  741. #if !defined(WGL_NV_render_depth_texture)
  742. #define WGL_NV_render_depth_texture 1
  743. #define WGL_NO_TEXTURE_ARB 0x2077
  744. #define WGL_BIND_TO_TEXTURE_DEPTH_NV 0x20A3
  745. #define WGL_BIND_TO_TEXTURE_RECTANGLE_DEPTH_NV 0x20A4
  746. #define WGL_DEPTH_TEXTURE_FORMAT_NV 0x20A5
  747. #define WGL_TEXTURE_DEPTH_COMPONENT_NV 0x20A6
  748. #define WGL_DEPTH_COMPONENT_NV 0x20A7
  749. #define WGLEW_NV_render_depth_texture WGLEW_GET_VAR(__WGLEW_NV_render_depth_texture)
  750. #endif /* !WGL_NV_render_depth_texture */
  751. /* -------------------- WGL_NV_render_texture_rectangle -------------------- */
  752. #if !defined(WGL_NV_render_texture_rectangle)
  753. #define WGL_NV_render_texture_rectangle 1
  754. #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGB_NV 0x20A0
  755. #define WGL_BIND_TO_TEXTURE_RECTANGLE_RGBA_NV 0x20A1
  756. #define WGL_TEXTURE_RECTANGLE_NV 0x20A2
  757. #define WGLEW_NV_render_texture_rectangle WGLEW_GET_VAR(__WGLEW_NV_render_texture_rectangle)
  758. #endif /* !WGL_NV_render_texture_rectangle */
  759. /* --------------------------- WGL_NV_swap_group --------------------------- */
  760. #if !defined(WGL_NV_swap_group)
  761. #define WGL_NV_swap_group 1
  762. typedef BOOL (WINAPI * PFNWGLBINDSWAPBARRIERNVPROC) (GLuint group, GLuint barrier);
  763. typedef BOOL (WINAPI * PFNWGLJOINSWAPGROUPNVPROC) (HDC hDC, GLuint group);
  764. typedef BOOL (WINAPI * PFNWGLQUERYFRAMECOUNTNVPROC) (HDC hDC, GLuint* count);
  765. typedef BOOL (WINAPI * PFNWGLQUERYMAXSWAPGROUPSNVPROC) (HDC hDC, GLuint* maxGroups, GLuint *maxBarriers);
  766. typedef BOOL (WINAPI * PFNWGLQUERYSWAPGROUPNVPROC) (HDC hDC, GLuint* group, GLuint *barrier);
  767. typedef BOOL (WINAPI * PFNWGLRESETFRAMECOUNTNVPROC) (HDC hDC);
  768. #define wglBindSwapBarrierNV WGLEW_GET_FUN(__wglewBindSwapBarrierNV)
  769. #define wglJoinSwapGroupNV WGLEW_GET_FUN(__wglewJoinSwapGroupNV)
  770. #define wglQueryFrameCountNV WGLEW_GET_FUN(__wglewQueryFrameCountNV)
  771. #define wglQueryMaxSwapGroupsNV WGLEW_GET_FUN(__wglewQueryMaxSwapGroupsNV)
  772. #define wglQuerySwapGroupNV WGLEW_GET_FUN(__wglewQuerySwapGroupNV)
  773. #define wglResetFrameCountNV WGLEW_GET_FUN(__wglewResetFrameCountNV)
  774. #define WGLEW_NV_swap_group WGLEW_GET_VAR(__WGLEW_NV_swap_group)
  775. #endif /* !WGL_NV_swap_group */
  776. /* ----------------------- WGL_NV_vertex_array_range ----------------------- */
  777. #if !defined(WGL_NV_vertex_array_range)
  778. #define WGL_NV_vertex_array_range 1
  779. typedef void * (WINAPI * PFNWGLALLOCATEMEMORYNVPROC) (GLsizei size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
  780. typedef void (WINAPI * PFNWGLFREEMEMORYNVPROC) (void *pointer);
  781. #define wglAllocateMemoryNV WGLEW_GET_FUN(__wglewAllocateMemoryNV)
  782. #define wglFreeMemoryNV WGLEW_GET_FUN(__wglewFreeMemoryNV)
  783. #define WGLEW_NV_vertex_array_range WGLEW_GET_VAR(__WGLEW_NV_vertex_array_range)
  784. #endif /* !WGL_NV_vertex_array_range */
  785. /* -------------------------- WGL_NV_video_capture ------------------------- */
  786. #if !defined(WGL_NV_video_capture)
  787. #define WGL_NV_video_capture 1
  788. #define WGL_UNIQUE_ID_NV 0x20CE
  789. #define WGL_NUM_VIDEO_CAPTURE_SLOTS_NV 0x20CF
  790. DECLARE_HANDLE(HVIDEOINPUTDEVICENV);
  791. typedef BOOL (WINAPI * PFNWGLBINDVIDEOCAPTUREDEVICENVPROC) (UINT uVideoSlot, HVIDEOINPUTDEVICENV hDevice);
  792. typedef UINT (WINAPI * PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC) (HDC hDc, HVIDEOINPUTDEVICENV* phDeviceList);
  793. typedef BOOL (WINAPI * PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  794. typedef BOOL (WINAPI * PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice, int iAttribute, int* piValue);
  795. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC) (HDC hDc, HVIDEOINPUTDEVICENV hDevice);
  796. #define wglBindVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewBindVideoCaptureDeviceNV)
  797. #define wglEnumerateVideoCaptureDevicesNV WGLEW_GET_FUN(__wglewEnumerateVideoCaptureDevicesNV)
  798. #define wglLockVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewLockVideoCaptureDeviceNV)
  799. #define wglQueryVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewQueryVideoCaptureDeviceNV)
  800. #define wglReleaseVideoCaptureDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoCaptureDeviceNV)
  801. #define WGLEW_NV_video_capture WGLEW_GET_VAR(__WGLEW_NV_video_capture)
  802. #endif /* !WGL_NV_video_capture */
  803. /* -------------------------- WGL_NV_video_output -------------------------- */
  804. #if !defined(WGL_NV_video_output)
  805. #define WGL_NV_video_output 1
  806. #define WGL_BIND_TO_VIDEO_RGB_NV 0x20C0
  807. #define WGL_BIND_TO_VIDEO_RGBA_NV 0x20C1
  808. #define WGL_BIND_TO_VIDEO_RGB_AND_DEPTH_NV 0x20C2
  809. #define WGL_VIDEO_OUT_COLOR_NV 0x20C3
  810. #define WGL_VIDEO_OUT_ALPHA_NV 0x20C4
  811. #define WGL_VIDEO_OUT_DEPTH_NV 0x20C5
  812. #define WGL_VIDEO_OUT_COLOR_AND_ALPHA_NV 0x20C6
  813. #define WGL_VIDEO_OUT_COLOR_AND_DEPTH_NV 0x20C7
  814. #define WGL_VIDEO_OUT_FRAME 0x20C8
  815. #define WGL_VIDEO_OUT_FIELD_1 0x20C9
  816. #define WGL_VIDEO_OUT_FIELD_2 0x20CA
  817. #define WGL_VIDEO_OUT_STACKED_FIELDS_1_2 0x20CB
  818. #define WGL_VIDEO_OUT_STACKED_FIELDS_2_1 0x20CC
  819. DECLARE_HANDLE(HPVIDEODEV);
  820. typedef BOOL (WINAPI * PFNWGLBINDVIDEOIMAGENVPROC) (HPVIDEODEV hVideoDevice, HPBUFFERARB hPbuffer, int iVideoBuffer);
  821. typedef BOOL (WINAPI * PFNWGLGETVIDEODEVICENVPROC) (HDC hDC, int numDevices, HPVIDEODEV* hVideoDevice);
  822. typedef BOOL (WINAPI * PFNWGLGETVIDEOINFONVPROC) (HPVIDEODEV hpVideoDevice, unsigned long* pulCounterOutputPbuffer, unsigned long *pulCounterOutputVideo);
  823. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEODEVICENVPROC) (HPVIDEODEV hVideoDevice);
  824. typedef BOOL (WINAPI * PFNWGLRELEASEVIDEOIMAGENVPROC) (HPBUFFERARB hPbuffer, int iVideoBuffer);
  825. typedef BOOL (WINAPI * PFNWGLSENDPBUFFERTOVIDEONVPROC) (HPBUFFERARB hPbuffer, int iBufferType, unsigned long* pulCounterPbuffer, BOOL bBlock);
  826. #define wglBindVideoImageNV WGLEW_GET_FUN(__wglewBindVideoImageNV)
  827. #define wglGetVideoDeviceNV WGLEW_GET_FUN(__wglewGetVideoDeviceNV)
  828. #define wglGetVideoInfoNV WGLEW_GET_FUN(__wglewGetVideoInfoNV)
  829. #define wglReleaseVideoDeviceNV WGLEW_GET_FUN(__wglewReleaseVideoDeviceNV)
  830. #define wglReleaseVideoImageNV WGLEW_GET_FUN(__wglewReleaseVideoImageNV)
  831. #define wglSendPbufferToVideoNV WGLEW_GET_FUN(__wglewSendPbufferToVideoNV)
  832. #define WGLEW_NV_video_output WGLEW_GET_VAR(__WGLEW_NV_video_output)
  833. #endif /* !WGL_NV_video_output */
  834. /* -------------------------- WGL_OML_sync_control ------------------------- */
  835. #if !defined(WGL_OML_sync_control)
  836. #define WGL_OML_sync_control 1
  837. typedef BOOL (WINAPI * PFNWGLGETMSCRATEOMLPROC) (HDC hdc, INT32* numerator, INT32 *denominator);
  838. typedef BOOL (WINAPI * PFNWGLGETSYNCVALUESOMLPROC) (HDC hdc, INT64* ust, INT64 *msc, INT64 *sbc);
  839. typedef INT64 (WINAPI * PFNWGLSWAPBUFFERSMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder);
  840. typedef INT64 (WINAPI * PFNWGLSWAPLAYERBUFFERSMSCOMLPROC) (HDC hdc, INT fuPlanes, INT64 target_msc, INT64 divisor, INT64 remainder);
  841. typedef BOOL (WINAPI * PFNWGLWAITFORMSCOMLPROC) (HDC hdc, INT64 target_msc, INT64 divisor, INT64 remainder, INT64* ust, INT64 *msc, INT64 *sbc);
  842. typedef BOOL (WINAPI * PFNWGLWAITFORSBCOMLPROC) (HDC hdc, INT64 target_sbc, INT64* ust, INT64 *msc, INT64 *sbc);
  843. #define wglGetMscRateOML WGLEW_GET_FUN(__wglewGetMscRateOML)
  844. #define wglGetSyncValuesOML WGLEW_GET_FUN(__wglewGetSyncValuesOML)
  845. #define wglSwapBuffersMscOML WGLEW_GET_FUN(__wglewSwapBuffersMscOML)
  846. #define wglSwapLayerBuffersMscOML WGLEW_GET_FUN(__wglewSwapLayerBuffersMscOML)
  847. #define wglWaitForMscOML WGLEW_GET_FUN(__wglewWaitForMscOML)
  848. #define wglWaitForSbcOML WGLEW_GET_FUN(__wglewWaitForSbcOML)
  849. #define WGLEW_OML_sync_control WGLEW_GET_VAR(__WGLEW_OML_sync_control)
  850. #endif /* !WGL_OML_sync_control */
  851. /* ------------------------------------------------------------------------- */
  852. #ifdef GLEW_MX
  853. #define WGLEW_EXPORT
  854. #else
  855. #define WGLEW_EXPORT GLEWAPI
  856. #endif /* GLEW_MX */
  857. #ifdef GLEW_MX
  858. struct WGLEWContextStruct
  859. {
  860. #endif /* GLEW_MX */
  861. WGLEW_EXPORT PFNWGLSETSTEREOEMITTERSTATE3DLPROC __wglewSetStereoEmitterState3DL;
  862. WGLEW_EXPORT PFNWGLBLITCONTEXTFRAMEBUFFERAMDPROC __wglewBlitContextFramebufferAMD;
  863. WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTAMDPROC __wglewCreateAssociatedContextAMD;
  864. WGLEW_EXPORT PFNWGLCREATEASSOCIATEDCONTEXTATTRIBSAMDPROC __wglewCreateAssociatedContextAttribsAMD;
  865. WGLEW_EXPORT PFNWGLDELETEASSOCIATEDCONTEXTAMDPROC __wglewDeleteAssociatedContextAMD;
  866. WGLEW_EXPORT PFNWGLGETCONTEXTGPUIDAMDPROC __wglewGetContextGPUIDAMD;
  867. WGLEW_EXPORT PFNWGLGETCURRENTASSOCIATEDCONTEXTAMDPROC __wglewGetCurrentAssociatedContextAMD;
  868. WGLEW_EXPORT PFNWGLGETGPUIDSAMDPROC __wglewGetGPUIDsAMD;
  869. WGLEW_EXPORT PFNWGLGETGPUINFOAMDPROC __wglewGetGPUInfoAMD;
  870. WGLEW_EXPORT PFNWGLMAKEASSOCIATEDCONTEXTCURRENTAMDPROC __wglewMakeAssociatedContextCurrentAMD;
  871. WGLEW_EXPORT PFNWGLCREATEBUFFERREGIONARBPROC __wglewCreateBufferRegionARB;
  872. WGLEW_EXPORT PFNWGLDELETEBUFFERREGIONARBPROC __wglewDeleteBufferRegionARB;
  873. WGLEW_EXPORT PFNWGLRESTOREBUFFERREGIONARBPROC __wglewRestoreBufferRegionARB;
  874. WGLEW_EXPORT PFNWGLSAVEBUFFERREGIONARBPROC __wglewSaveBufferRegionARB;
  875. WGLEW_EXPORT PFNWGLCREATECONTEXTATTRIBSARBPROC __wglewCreateContextAttribsARB;
  876. WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGARBPROC __wglewGetExtensionsStringARB;
  877. WGLEW_EXPORT PFNWGLGETCURRENTREADDCARBPROC __wglewGetCurrentReadDCARB;
  878. WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTARBPROC __wglewMakeContextCurrentARB;
  879. WGLEW_EXPORT PFNWGLCREATEPBUFFERARBPROC __wglewCreatePbufferARB;
  880. WGLEW_EXPORT PFNWGLDESTROYPBUFFERARBPROC __wglewDestroyPbufferARB;
  881. WGLEW_EXPORT PFNWGLGETPBUFFERDCARBPROC __wglewGetPbufferDCARB;
  882. WGLEW_EXPORT PFNWGLQUERYPBUFFERARBPROC __wglewQueryPbufferARB;
  883. WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCARBPROC __wglewReleasePbufferDCARB;
  884. WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATARBPROC __wglewChoosePixelFormatARB;
  885. WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVARBPROC __wglewGetPixelFormatAttribfvARB;
  886. WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVARBPROC __wglewGetPixelFormatAttribivARB;
  887. WGLEW_EXPORT PFNWGLBINDTEXIMAGEARBPROC __wglewBindTexImageARB;
  888. WGLEW_EXPORT PFNWGLRELEASETEXIMAGEARBPROC __wglewReleaseTexImageARB;
  889. WGLEW_EXPORT PFNWGLSETPBUFFERATTRIBARBPROC __wglewSetPbufferAttribARB;
  890. WGLEW_EXPORT PFNWGLBINDDISPLAYCOLORTABLEEXTPROC __wglewBindDisplayColorTableEXT;
  891. WGLEW_EXPORT PFNWGLCREATEDISPLAYCOLORTABLEEXTPROC __wglewCreateDisplayColorTableEXT;
  892. WGLEW_EXPORT PFNWGLDESTROYDISPLAYCOLORTABLEEXTPROC __wglewDestroyDisplayColorTableEXT;
  893. WGLEW_EXPORT PFNWGLLOADDISPLAYCOLORTABLEEXTPROC __wglewLoadDisplayColorTableEXT;
  894. WGLEW_EXPORT PFNWGLGETEXTENSIONSSTRINGEXTPROC __wglewGetExtensionsStringEXT;
  895. WGLEW_EXPORT PFNWGLGETCURRENTREADDCEXTPROC __wglewGetCurrentReadDCEXT;
  896. WGLEW_EXPORT PFNWGLMAKECONTEXTCURRENTEXTPROC __wglewMakeContextCurrentEXT;
  897. WGLEW_EXPORT PFNWGLCREATEPBUFFEREXTPROC __wglewCreatePbufferEXT;
  898. WGLEW_EXPORT PFNWGLDESTROYPBUFFEREXTPROC __wglewDestroyPbufferEXT;
  899. WGLEW_EXPORT PFNWGLGETPBUFFERDCEXTPROC __wglewGetPbufferDCEXT;
  900. WGLEW_EXPORT PFNWGLQUERYPBUFFEREXTPROC __wglewQueryPbufferEXT;
  901. WGLEW_EXPORT PFNWGLRELEASEPBUFFERDCEXTPROC __wglewReleasePbufferDCEXT;
  902. WGLEW_EXPORT PFNWGLCHOOSEPIXELFORMATEXTPROC __wglewChoosePixelFormatEXT;
  903. WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBFVEXTPROC __wglewGetPixelFormatAttribfvEXT;
  904. WGLEW_EXPORT PFNWGLGETPIXELFORMATATTRIBIVEXTPROC __wglewGetPixelFormatAttribivEXT;
  905. WGLEW_EXPORT PFNWGLGETSWAPINTERVALEXTPROC __wglewGetSwapIntervalEXT;
  906. WGLEW_EXPORT PFNWGLSWAPINTERVALEXTPROC __wglewSwapIntervalEXT;
  907. WGLEW_EXPORT PFNWGLGETDIGITALVIDEOPARAMETERSI3DPROC __wglewGetDigitalVideoParametersI3D;
  908. WGLEW_EXPORT PFNWGLSETDIGITALVIDEOPARAMETERSI3DPROC __wglewSetDigitalVideoParametersI3D;
  909. WGLEW_EXPORT PFNWGLGETGAMMATABLEI3DPROC __wglewGetGammaTableI3D;
  910. WGLEW_EXPORT PFNWGLGETGAMMATABLEPARAMETERSI3DPROC __wglewGetGammaTableParametersI3D;
  911. WGLEW_EXPORT PFNWGLSETGAMMATABLEI3DPROC __wglewSetGammaTableI3D;
  912. WGLEW_EXPORT PFNWGLSETGAMMATABLEPARAMETERSI3DPROC __wglewSetGammaTableParametersI3D;
  913. WGLEW_EXPORT PFNWGLDISABLEGENLOCKI3DPROC __wglewDisableGenlockI3D;
  914. WGLEW_EXPORT PFNWGLENABLEGENLOCKI3DPROC __wglewEnableGenlockI3D;
  915. WGLEW_EXPORT PFNWGLGENLOCKSAMPLERATEI3DPROC __wglewGenlockSampleRateI3D;
  916. WGLEW_EXPORT PFNWGLGENLOCKSOURCEDELAYI3DPROC __wglewGenlockSourceDelayI3D;
  917. WGLEW_EXPORT PFNWGLGENLOCKSOURCEEDGEI3DPROC __wglewGenlockSourceEdgeI3D;
  918. WGLEW_EXPORT PFNWGLGENLOCKSOURCEI3DPROC __wglewGenlockSourceI3D;
  919. WGLEW_EXPORT PFNWGLGETGENLOCKSAMPLERATEI3DPROC __wglewGetGenlockSampleRateI3D;
  920. WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEDELAYI3DPROC __wglewGetGenlockSourceDelayI3D;
  921. WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEEDGEI3DPROC __wglewGetGenlockSourceEdgeI3D;
  922. WGLEW_EXPORT PFNWGLGETGENLOCKSOURCEI3DPROC __wglewGetGenlockSourceI3D;
  923. WGLEW_EXPORT PFNWGLISENABLEDGENLOCKI3DPROC __wglewIsEnabledGenlockI3D;
  924. WGLEW_EXPORT PFNWGLQUERYGENLOCKMAXSOURCEDELAYI3DPROC __wglewQueryGenlockMaxSourceDelayI3D;
  925. WGLEW_EXPORT PFNWGLASSOCIATEIMAGEBUFFEREVENTSI3DPROC __wglewAssociateImageBufferEventsI3D;
  926. WGLEW_EXPORT PFNWGLCREATEIMAGEBUFFERI3DPROC __wglewCreateImageBufferI3D;
  927. WGLEW_EXPORT PFNWGLDESTROYIMAGEBUFFERI3DPROC __wglewDestroyImageBufferI3D;
  928. WGLEW_EXPORT PFNWGLRELEASEIMAGEBUFFEREVENTSI3DPROC __wglewReleaseImageBufferEventsI3D;
  929. WGLEW_EXPORT PFNWGLDISABLEFRAMELOCKI3DPROC __wglewDisableFrameLockI3D;
  930. WGLEW_EXPORT PFNWGLENABLEFRAMELOCKI3DPROC __wglewEnableFrameLockI3D;
  931. WGLEW_EXPORT PFNWGLISENABLEDFRAMELOCKI3DPROC __wglewIsEnabledFrameLockI3D;
  932. WGLEW_EXPORT PFNWGLQUERYFRAMELOCKMASTERI3DPROC __wglewQueryFrameLockMasterI3D;
  933. WGLEW_EXPORT PFNWGLBEGINFRAMETRACKINGI3DPROC __wglewBeginFrameTrackingI3D;
  934. WGLEW_EXPORT PFNWGLENDFRAMETRACKINGI3DPROC __wglewEndFrameTrackingI3D;
  935. WGLEW_EXPORT PFNWGLGETFRAMEUSAGEI3DPROC __wglewGetFrameUsageI3D;
  936. WGLEW_EXPORT PFNWGLQUERYFRAMETRACKINGI3DPROC __wglewQueryFrameTrackingI3D;
  937. WGLEW_EXPORT PFNWGLDXCLOSEDEVICENVPROC __wglewDXCloseDeviceNV;
  938. WGLEW_EXPORT PFNWGLDXLOCKOBJECTSNVPROC __wglewDXLockObjectsNV;
  939. WGLEW_EXPORT PFNWGLDXOBJECTACCESSNVPROC __wglewDXObjectAccessNV;
  940. WGLEW_EXPORT PFNWGLDXOPENDEVICENVPROC __wglewDXOpenDeviceNV;
  941. WGLEW_EXPORT PFNWGLDXREGISTEROBJECTNVPROC __wglewDXRegisterObjectNV;
  942. WGLEW_EXPORT PFNWGLDXSETRESOURCESHAREHANDLENVPROC __wglewDXSetResourceShareHandleNV;
  943. WGLEW_EXPORT PFNWGLDXUNLOCKOBJECTSNVPROC __wglewDXUnlockObjectsNV;
  944. WGLEW_EXPORT PFNWGLDXUNREGISTEROBJECTNVPROC __wglewDXUnregisterObjectNV;
  945. WGLEW_EXPORT PFNWGLCOPYIMAGESUBDATANVPROC __wglewCopyImageSubDataNV;
  946. WGLEW_EXPORT PFNWGLCREATEAFFINITYDCNVPROC __wglewCreateAffinityDCNV;
  947. WGLEW_EXPORT PFNWGLDELETEDCNVPROC __wglewDeleteDCNV;
  948. WGLEW_EXPORT PFNWGLENUMGPUDEVICESNVPROC __wglewEnumGpuDevicesNV;
  949. WGLEW_EXPORT PFNWGLENUMGPUSFROMAFFINITYDCNVPROC __wglewEnumGpusFromAffinityDCNV;
  950. WGLEW_EXPORT PFNWGLENUMGPUSNVPROC __wglewEnumGpusNV;
  951. WGLEW_EXPORT PFNWGLBINDVIDEODEVICENVPROC __wglewBindVideoDeviceNV;
  952. WGLEW_EXPORT PFNWGLENUMERATEVIDEODEVICESNVPROC __wglewEnumerateVideoDevicesNV;
  953. WGLEW_EXPORT PFNWGLQUERYCURRENTCONTEXTNVPROC __wglewQueryCurrentContextNV;
  954. WGLEW_EXPORT PFNWGLBINDSWAPBARRIERNVPROC __wglewBindSwapBarrierNV;
  955. WGLEW_EXPORT PFNWGLJOINSWAPGROUPNVPROC __wglewJoinSwapGroupNV;
  956. WGLEW_EXPORT PFNWGLQUERYFRAMECOUNTNVPROC __wglewQueryFrameCountNV;
  957. WGLEW_EXPORT PFNWGLQUERYMAXSWAPGROUPSNVPROC __wglewQueryMaxSwapGroupsNV;
  958. WGLEW_EXPORT PFNWGLQUERYSWAPGROUPNVPROC __wglewQuerySwapGroupNV;
  959. WGLEW_EXPORT PFNWGLRESETFRAMECOUNTNVPROC __wglewResetFrameCountNV;
  960. WGLEW_EXPORT PFNWGLALLOCATEMEMORYNVPROC __wglewAllocateMemoryNV;
  961. WGLEW_EXPORT PFNWGLFREEMEMORYNVPROC __wglewFreeMemoryNV;
  962. WGLEW_EXPORT PFNWGLBINDVIDEOCAPTUREDEVICENVPROC __wglewBindVideoCaptureDeviceNV;
  963. WGLEW_EXPORT PFNWGLENUMERATEVIDEOCAPTUREDEVICESNVPROC __wglewEnumerateVideoCaptureDevicesNV;
  964. WGLEW_EXPORT PFNWGLLOCKVIDEOCAPTUREDEVICENVPROC __wglewLockVideoCaptureDeviceNV;
  965. WGLEW_EXPORT PFNWGLQUERYVIDEOCAPTUREDEVICENVPROC __wglewQueryVideoCaptureDeviceNV;
  966. WGLEW_EXPORT PFNWGLRELEASEVIDEOCAPTUREDEVICENVPROC __wglewReleaseVideoCaptureDeviceNV;
  967. WGLEW_EXPORT PFNWGLBINDVIDEOIMAGENVPROC __wglewBindVideoImageNV;
  968. WGLEW_EXPORT PFNWGLGETVIDEODEVICENVPROC __wglewGetVideoDeviceNV;
  969. WGLEW_EXPORT PFNWGLGETVIDEOINFONVPROC __wglewGetVideoInfoNV;
  970. WGLEW_EXPORT PFNWGLRELEASEVIDEODEVICENVPROC __wglewReleaseVideoDeviceNV;
  971. WGLEW_EXPORT PFNWGLRELEASEVIDEOIMAGENVPROC __wglewReleaseVideoImageNV;
  972. WGLEW_EXPORT PFNWGLSENDPBUFFERTOVIDEONVPROC __wglewSendPbufferToVideoNV;
  973. WGLEW_EXPORT PFNWGLGETMSCRATEOMLPROC __wglewGetMscRateOML;
  974. WGLEW_EXPORT PFNWGLGETSYNCVALUESOMLPROC __wglewGetSyncValuesOML;
  975. WGLEW_EXPORT PFNWGLSWAPBUFFERSMSCOMLPROC __wglewSwapBuffersMscOML;
  976. WGLEW_EXPORT PFNWGLSWAPLAYERBUFFERSMSCOMLPROC __wglewSwapLayerBuffersMscOML;
  977. WGLEW_EXPORT PFNWGLWAITFORMSCOMLPROC __wglewWaitForMscOML;
  978. WGLEW_EXPORT PFNWGLWAITFORSBCOMLPROC __wglewWaitForSbcOML;
  979. WGLEW_EXPORT GLboolean __WGLEW_3DFX_multisample;
  980. WGLEW_EXPORT GLboolean __WGLEW_3DL_stereo_control;
  981. WGLEW_EXPORT GLboolean __WGLEW_AMD_gpu_association;
  982. WGLEW_EXPORT GLboolean __WGLEW_ARB_buffer_region;
  983. WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context;
  984. WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_profile;
  985. WGLEW_EXPORT GLboolean __WGLEW_ARB_create_context_robustness;
  986. WGLEW_EXPORT GLboolean __WGLEW_ARB_extensions_string;
  987. WGLEW_EXPORT GLboolean __WGLEW_ARB_framebuffer_sRGB;
  988. WGLEW_EXPORT GLboolean __WGLEW_ARB_make_current_read;
  989. WGLEW_EXPORT GLboolean __WGLEW_ARB_multisample;
  990. WGLEW_EXPORT GLboolean __WGLEW_ARB_pbuffer;
  991. WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format;
  992. WGLEW_EXPORT GLboolean __WGLEW_ARB_pixel_format_float;
  993. WGLEW_EXPORT GLboolean __WGLEW_ARB_render_texture;
  994. WGLEW_EXPORT GLboolean __WGLEW_ARB_robustness_application_isolation;
  995. WGLEW_EXPORT GLboolean __WGLEW_ARB_robustness_share_group_isolation;
  996. WGLEW_EXPORT GLboolean __WGLEW_ATI_pixel_format_float;
  997. WGLEW_EXPORT GLboolean __WGLEW_ATI_render_texture_rectangle;
  998. WGLEW_EXPORT GLboolean __WGLEW_EXT_create_context_es2_profile;
  999. WGLEW_EXPORT GLboolean __WGLEW_EXT_create_context_es_profile;
  1000. WGLEW_EXPORT GLboolean __WGLEW_EXT_depth_float;
  1001. WGLEW_EXPORT GLboolean __WGLEW_EXT_display_color_table;
  1002. WGLEW_EXPORT GLboolean __WGLEW_EXT_extensions_string;
  1003. WGLEW_EXPORT GLboolean __WGLEW_EXT_framebuffer_sRGB;
  1004. WGLEW_EXPORT GLboolean __WGLEW_EXT_make_current_read;
  1005. WGLEW_EXPORT GLboolean __WGLEW_EXT_multisample;
  1006. WGLEW_EXPORT GLboolean __WGLEW_EXT_pbuffer;
  1007. WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format;
  1008. WGLEW_EXPORT GLboolean __WGLEW_EXT_pixel_format_packed_float;
  1009. WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control;
  1010. WGLEW_EXPORT GLboolean __WGLEW_EXT_swap_control_tear;
  1011. WGLEW_EXPORT GLboolean __WGLEW_I3D_digital_video_control;
  1012. WGLEW_EXPORT GLboolean __WGLEW_I3D_gamma;
  1013. WGLEW_EXPORT GLboolean __WGLEW_I3D_genlock;
  1014. WGLEW_EXPORT GLboolean __WGLEW_I3D_image_buffer;
  1015. WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_lock;
  1016. WGLEW_EXPORT GLboolean __WGLEW_I3D_swap_frame_usage;
  1017. WGLEW_EXPORT GLboolean __WGLEW_NV_DX_interop;
  1018. WGLEW_EXPORT GLboolean __WGLEW_NV_DX_interop2;
  1019. WGLEW_EXPORT GLboolean __WGLEW_NV_copy_image;
  1020. WGLEW_EXPORT GLboolean __WGLEW_NV_float_buffer;
  1021. WGLEW_EXPORT GLboolean __WGLEW_NV_gpu_affinity;
  1022. WGLEW_EXPORT GLboolean __WGLEW_NV_multisample_coverage;
  1023. WGLEW_EXPORT GLboolean __WGLEW_NV_present_video;
  1024. WGLEW_EXPORT GLboolean __WGLEW_NV_render_depth_texture;
  1025. WGLEW_EXPORT GLboolean __WGLEW_NV_render_texture_rectangle;
  1026. WGLEW_EXPORT GLboolean __WGLEW_NV_swap_group;
  1027. WGLEW_EXPORT GLboolean __WGLEW_NV_vertex_array_range;
  1028. WGLEW_EXPORT GLboolean __WGLEW_NV_video_capture;
  1029. WGLEW_EXPORT GLboolean __WGLEW_NV_video_output;
  1030. WGLEW_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 wglewContextInit (WGLEWContext* ctx);
  1038. GLEWAPI GLboolean 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 GLenum wglewContextInit (void); // NOTE jwilkins: Why does this require GLEW_MX? Should I enable GLEW_MX? instead?
  1047. #define wglewInit() wglewContextInit() // NOTE jwilkins: Why does this require GLEW_MX? Should I enable GLEW_MX? instead?
  1048. GLEWAPI GLboolean wglewIsSupported (const char* name);
  1049. #endif /* GLEW_MX */
  1050. GLEWAPI GLboolean wglewGetExtension (const char* name);
  1051. #ifdef __cplusplus
  1052. }
  1053. #endif
  1054. #undef GLEWAPI
  1055. #endif /* __wglew_h__ */