glfw3native.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595
  1. /*************************************************************************
  2. * GLFW 3.3 - www.glfw.org
  3. * A library for OpenGL, window and input
  4. *------------------------------------------------------------------------
  5. * Copyright (c) 2002-2006 Marcus Geelnard
  6. * Copyright (c) 2006-2018 Camilla Löwy <elmindreda@glfw.org>
  7. *
  8. * This software is provided 'as-is', without any express or implied
  9. * warranty. In no event will the authors be held liable for any damages
  10. * arising from the use of this software.
  11. *
  12. * Permission is granted to anyone to use this software for any purpose,
  13. * including commercial applications, and to alter it and redistribute it
  14. * freely, subject to the following restrictions:
  15. *
  16. * 1. The origin of this software must not be misrepresented; you must not
  17. * claim that you wrote the original software. If you use this software
  18. * in a product, an acknowledgment in the product documentation would
  19. * be appreciated but is not required.
  20. *
  21. * 2. Altered source versions must be plainly marked as such, and must not
  22. * be misrepresented as being the original software.
  23. *
  24. * 3. This notice may not be removed or altered from any source
  25. * distribution.
  26. *
  27. *************************************************************************/
  28. #ifndef _glfw3_native_h_
  29. #define _glfw3_native_h_
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33. /*************************************************************************
  34. * Doxygen documentation
  35. *************************************************************************/
  36. /*! @file glfw3native.h
  37. * @brief The header of the native access functions.
  38. *
  39. * This is the header file of the native access functions. See @ref native for
  40. * more information.
  41. */
  42. /*! @defgroup native Native access
  43. * @brief Functions related to accessing native handles.
  44. *
  45. * **By using the native access functions you assert that you know what you're
  46. * doing and how to fix problems caused by using them. If you don't, you
  47. * shouldn't be using them.**
  48. *
  49. * Before the inclusion of @ref glfw3native.h, you may define zero or more
  50. * window system API macro and zero or more context creation API macros.
  51. *
  52. * The chosen backends must match those the library was compiled for. Failure
  53. * to do this will cause a link-time error.
  54. *
  55. * The available window API macros are:
  56. * * `GLFW_EXPOSE_NATIVE_WIN32`
  57. * * `GLFW_EXPOSE_NATIVE_COCOA`
  58. * * `GLFW_EXPOSE_NATIVE_X11`
  59. * * `GLFW_EXPOSE_NATIVE_WAYLAND`
  60. *
  61. * The available context API macros are:
  62. * * `GLFW_EXPOSE_NATIVE_WGL`
  63. * * `GLFW_EXPOSE_NATIVE_NSGL`
  64. * * `GLFW_EXPOSE_NATIVE_GLX`
  65. * * `GLFW_EXPOSE_NATIVE_EGL`
  66. * * `GLFW_EXPOSE_NATIVE_OSMESA`
  67. *
  68. * These macros select which of the native access functions that are declared
  69. * and which platform-specific headers to include. It is then up your (by
  70. * definition platform-specific) code to handle which of these should be
  71. * defined.
  72. */
  73. /*************************************************************************
  74. * System headers and types
  75. *************************************************************************/
  76. #if defined(GLFW_EXPOSE_NATIVE_WIN32) || defined(GLFW_EXPOSE_NATIVE_WGL)
  77. // This is a workaround for the fact that glfw3.h needs to export APIENTRY (for
  78. // example to allow applications to correctly declare a GL_KHR_debug callback)
  79. // but windows.h assumes no one will define APIENTRY before it does
  80. #if defined(GLFW_APIENTRY_DEFINED)
  81. #undef APIENTRY
  82. #undef GLFW_APIENTRY_DEFINED
  83. #endif
  84. #include <windows.h>
  85. #elif defined(GLFW_EXPOSE_NATIVE_COCOA) || defined(GLFW_EXPOSE_NATIVE_NSGL)
  86. #if defined(__OBJC__)
  87. #import <Cocoa/Cocoa.h>
  88. #else
  89. #include <ApplicationServices/ApplicationServices.h>
  90. typedef void* id;
  91. #endif
  92. #elif defined(GLFW_EXPOSE_NATIVE_X11) || defined(GLFW_EXPOSE_NATIVE_GLX)
  93. #include <X11/Xlib.h>
  94. #include <X11/extensions/Xrandr.h>
  95. #elif defined(GLFW_EXPOSE_NATIVE_WAYLAND)
  96. #include <wayland-client.h>
  97. #endif
  98. #if defined(GLFW_EXPOSE_NATIVE_WGL)
  99. /* WGL is declared by windows.h */
  100. #endif
  101. #if defined(GLFW_EXPOSE_NATIVE_NSGL)
  102. /* NSGL is declared by Cocoa.h */
  103. #endif
  104. #if defined(GLFW_EXPOSE_NATIVE_GLX)
  105. #include <GL/glx.h>
  106. #endif
  107. #if defined(GLFW_EXPOSE_NATIVE_EGL)
  108. #include <EGL/egl.h>
  109. #endif
  110. #if defined(GLFW_EXPOSE_NATIVE_OSMESA)
  111. #include <GL/osmesa.h>
  112. #endif
  113. /*************************************************************************
  114. * Functions
  115. *************************************************************************/
  116. #if defined(GLFW_EXPOSE_NATIVE_WIN32)
  117. /*! @brief Returns the adapter device name of the specified monitor.
  118. *
  119. * @return The UTF-8 encoded adapter device name (for example `\\.\DISPLAY1`)
  120. * of the specified monitor, or `NULL` if an [error](@ref error_handling)
  121. * occurred.
  122. *
  123. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  124. *
  125. * @thread_safety This function may be called from any thread. Access is not
  126. * synchronized.
  127. *
  128. * @since Added in version 3.1.
  129. *
  130. * @ingroup native
  131. */
  132. GLFWAPI const char* glfwGetWin32Adapter(GLFWmonitor* monitor);
  133. /*! @brief Returns the display device name of the specified monitor.
  134. *
  135. * @return The UTF-8 encoded display device name (for example
  136. * `\\.\DISPLAY1\Monitor0`) of the specified monitor, or `NULL` if an
  137. * [error](@ref error_handling) occurred.
  138. *
  139. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  140. *
  141. * @thread_safety This function may be called from any thread. Access is not
  142. * synchronized.
  143. *
  144. * @since Added in version 3.1.
  145. *
  146. * @ingroup native
  147. */
  148. GLFWAPI const char* glfwGetWin32Monitor(GLFWmonitor* monitor);
  149. /*! @brief Returns the `HWND` of the specified window.
  150. *
  151. * @return The `HWND` of the specified window, or `NULL` if an
  152. * [error](@ref error_handling) occurred.
  153. *
  154. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  155. *
  156. * @remark The `HDC` associated with the window can be queried with the
  157. * [GetDC](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdc)
  158. * function.
  159. * @code
  160. * HDC dc = GetDC(glfwGetWin32Window(window));
  161. * @endcode
  162. * This DC is private and does not need to be released.
  163. *
  164. * @thread_safety This function may be called from any thread. Access is not
  165. * synchronized.
  166. *
  167. * @since Added in version 3.0.
  168. *
  169. * @ingroup native
  170. */
  171. GLFWAPI HWND glfwGetWin32Window(GLFWwindow* window);
  172. #endif
  173. #if defined(GLFW_EXPOSE_NATIVE_WGL)
  174. /*! @brief Returns the `HGLRC` of the specified window.
  175. *
  176. * @return The `HGLRC` of the specified window, or `NULL` if an
  177. * [error](@ref error_handling) occurred.
  178. *
  179. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  180. * GLFW_NOT_INITIALIZED.
  181. *
  182. * @remark The `HDC` associated with the window can be queried with the
  183. * [GetDC](https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getdc)
  184. * function.
  185. * @code
  186. * HDC dc = GetDC(glfwGetWin32Window(window));
  187. * @endcode
  188. * This DC is private and does not need to be released.
  189. *
  190. * @thread_safety This function may be called from any thread. Access is not
  191. * synchronized.
  192. *
  193. * @since Added in version 3.0.
  194. *
  195. * @ingroup native
  196. */
  197. GLFWAPI HGLRC glfwGetWGLContext(GLFWwindow* window);
  198. #endif
  199. #if defined(GLFW_EXPOSE_NATIVE_COCOA)
  200. /*! @brief Returns the `CGDirectDisplayID` of the specified monitor.
  201. *
  202. * @return The `CGDirectDisplayID` of the specified monitor, or
  203. * `kCGNullDirectDisplay` if an [error](@ref error_handling) occurred.
  204. *
  205. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  206. *
  207. * @thread_safety This function may be called from any thread. Access is not
  208. * synchronized.
  209. *
  210. * @since Added in version 3.1.
  211. *
  212. * @ingroup native
  213. */
  214. GLFWAPI CGDirectDisplayID glfwGetCocoaMonitor(GLFWmonitor* monitor);
  215. /*! @brief Returns the `NSWindow` of the specified window.
  216. *
  217. * @return The `NSWindow` of the specified window, or `nil` if an
  218. * [error](@ref error_handling) occurred.
  219. *
  220. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  221. *
  222. * @thread_safety This function may be called from any thread. Access is not
  223. * synchronized.
  224. *
  225. * @since Added in version 3.0.
  226. *
  227. * @ingroup native
  228. */
  229. GLFWAPI id glfwGetCocoaWindow(GLFWwindow* window);
  230. #endif
  231. #if defined(GLFW_EXPOSE_NATIVE_NSGL)
  232. /*! @brief Returns the `NSOpenGLContext` of the specified window.
  233. *
  234. * @return The `NSOpenGLContext` of the specified window, or `nil` if an
  235. * [error](@ref error_handling) occurred.
  236. *
  237. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  238. * GLFW_NOT_INITIALIZED.
  239. *
  240. * @thread_safety This function may be called from any thread. Access is not
  241. * synchronized.
  242. *
  243. * @since Added in version 3.0.
  244. *
  245. * @ingroup native
  246. */
  247. GLFWAPI id glfwGetNSGLContext(GLFWwindow* window);
  248. #endif
  249. #if defined(GLFW_EXPOSE_NATIVE_X11)
  250. /*! @brief Returns the `Display` used by GLFW.
  251. *
  252. * @return The `Display` used by GLFW, or `NULL` if an
  253. * [error](@ref error_handling) occurred.
  254. *
  255. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  256. *
  257. * @thread_safety This function may be called from any thread. Access is not
  258. * synchronized.
  259. *
  260. * @since Added in version 3.0.
  261. *
  262. * @ingroup native
  263. */
  264. GLFWAPI Display* glfwGetX11Display(void);
  265. /*! @brief Returns the `RRCrtc` of the specified monitor.
  266. *
  267. * @return The `RRCrtc` of the specified monitor, or `None` if an
  268. * [error](@ref error_handling) occurred.
  269. *
  270. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  271. *
  272. * @thread_safety This function may be called from any thread. Access is not
  273. * synchronized.
  274. *
  275. * @since Added in version 3.1.
  276. *
  277. * @ingroup native
  278. */
  279. GLFWAPI RRCrtc glfwGetX11Adapter(GLFWmonitor* monitor);
  280. /*! @brief Returns the `RROutput` of the specified monitor.
  281. *
  282. * @return The `RROutput` of the specified monitor, or `None` if an
  283. * [error](@ref error_handling) occurred.
  284. *
  285. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  286. *
  287. * @thread_safety This function may be called from any thread. Access is not
  288. * synchronized.
  289. *
  290. * @since Added in version 3.1.
  291. *
  292. * @ingroup native
  293. */
  294. GLFWAPI RROutput glfwGetX11Monitor(GLFWmonitor* monitor);
  295. /*! @brief Returns the `Window` of the specified window.
  296. *
  297. * @return The `Window` of the specified window, or `None` if an
  298. * [error](@ref error_handling) occurred.
  299. *
  300. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  301. *
  302. * @thread_safety This function may be called from any thread. Access is not
  303. * synchronized.
  304. *
  305. * @since Added in version 3.0.
  306. *
  307. * @ingroup native
  308. */
  309. GLFWAPI Window glfwGetX11Window(GLFWwindow* window);
  310. /*! @brief Sets the current primary selection to the specified string.
  311. *
  312. * @param[in] string A UTF-8 encoded string.
  313. *
  314. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
  315. * GLFW_PLATFORM_ERROR.
  316. *
  317. * @pointer_lifetime The specified string is copied before this function
  318. * returns.
  319. *
  320. * @thread_safety This function must only be called from the main thread.
  321. *
  322. * @sa @ref clipboard
  323. * @sa glfwGetX11SelectionString
  324. * @sa glfwSetClipboardString
  325. *
  326. * @since Added in version 3.3.
  327. *
  328. * @ingroup native
  329. */
  330. GLFWAPI void glfwSetX11SelectionString(const char* string);
  331. /*! @brief Returns the contents of the current primary selection as a string.
  332. *
  333. * If the selection is empty or if its contents cannot be converted, `NULL`
  334. * is returned and a @ref GLFW_FORMAT_UNAVAILABLE error is generated.
  335. *
  336. * @return The contents of the selection as a UTF-8 encoded string, or `NULL`
  337. * if an [error](@ref error_handling) occurred.
  338. *
  339. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED and @ref
  340. * GLFW_PLATFORM_ERROR.
  341. *
  342. * @pointer_lifetime The returned string is allocated and freed by GLFW. You
  343. * should not free it yourself. It is valid until the next call to @ref
  344. * glfwGetX11SelectionString or @ref glfwSetX11SelectionString, or until the
  345. * library is terminated.
  346. *
  347. * @thread_safety This function must only be called from the main thread.
  348. *
  349. * @sa @ref clipboard
  350. * @sa glfwSetX11SelectionString
  351. * @sa glfwGetClipboardString
  352. *
  353. * @since Added in version 3.3.
  354. *
  355. * @ingroup native
  356. */
  357. GLFWAPI const char* glfwGetX11SelectionString(void);
  358. #endif
  359. #if defined(GLFW_EXPOSE_NATIVE_GLX)
  360. /*! @brief Returns the `GLXContext` of the specified window.
  361. *
  362. * @return The `GLXContext` of the specified window, or `NULL` if an
  363. * [error](@ref error_handling) occurred.
  364. *
  365. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  366. * GLFW_NOT_INITIALIZED.
  367. *
  368. * @thread_safety This function may be called from any thread. Access is not
  369. * synchronized.
  370. *
  371. * @since Added in version 3.0.
  372. *
  373. * @ingroup native
  374. */
  375. GLFWAPI GLXContext glfwGetGLXContext(GLFWwindow* window);
  376. /*! @brief Returns the `GLXWindow` of the specified window.
  377. *
  378. * @return The `GLXWindow` of the specified window, or `None` if an
  379. * [error](@ref error_handling) occurred.
  380. *
  381. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  382. * GLFW_NOT_INITIALIZED.
  383. *
  384. * @thread_safety This function may be called from any thread. Access is not
  385. * synchronized.
  386. *
  387. * @since Added in version 3.2.
  388. *
  389. * @ingroup native
  390. */
  391. GLFWAPI GLXWindow glfwGetGLXWindow(GLFWwindow* window);
  392. #endif
  393. #if defined(GLFW_EXPOSE_NATIVE_WAYLAND)
  394. /*! @brief Returns the `struct wl_display*` used by GLFW.
  395. *
  396. * @return The `struct wl_display*` used by GLFW, or `NULL` if an
  397. * [error](@ref error_handling) occurred.
  398. *
  399. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  400. *
  401. * @thread_safety This function may be called from any thread. Access is not
  402. * synchronized.
  403. *
  404. * @since Added in version 3.2.
  405. *
  406. * @ingroup native
  407. */
  408. GLFWAPI struct wl_display* glfwGetWaylandDisplay(void);
  409. /*! @brief Returns the `struct wl_output*` of the specified monitor.
  410. *
  411. * @return The `struct wl_output*` of the specified monitor, or `NULL` if an
  412. * [error](@ref error_handling) occurred.
  413. *
  414. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  415. *
  416. * @thread_safety This function may be called from any thread. Access is not
  417. * synchronized.
  418. *
  419. * @since Added in version 3.2.
  420. *
  421. * @ingroup native
  422. */
  423. GLFWAPI struct wl_output* glfwGetWaylandMonitor(GLFWmonitor* monitor);
  424. /*! @brief Returns the main `struct wl_surface*` of the specified window.
  425. *
  426. * @return The main `struct wl_surface*` of the specified window, or `NULL` if
  427. * an [error](@ref error_handling) occurred.
  428. *
  429. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  430. *
  431. * @thread_safety This function may be called from any thread. Access is not
  432. * synchronized.
  433. *
  434. * @since Added in version 3.2.
  435. *
  436. * @ingroup native
  437. */
  438. GLFWAPI struct wl_surface* glfwGetWaylandWindow(GLFWwindow* window);
  439. #endif
  440. #if defined(GLFW_EXPOSE_NATIVE_EGL)
  441. /*! @brief Returns the `EGLDisplay` used by GLFW.
  442. *
  443. * @return The `EGLDisplay` used by GLFW, or `EGL_NO_DISPLAY` if an
  444. * [error](@ref error_handling) occurred.
  445. *
  446. * @errors Possible errors include @ref GLFW_NOT_INITIALIZED.
  447. *
  448. * @thread_safety This function may be called from any thread. Access is not
  449. * synchronized.
  450. *
  451. * @since Added in version 3.0.
  452. *
  453. * @ingroup native
  454. */
  455. GLFWAPI EGLDisplay glfwGetEGLDisplay(void);
  456. /*! @brief Returns the `EGLContext` of the specified window.
  457. *
  458. * @return The `EGLContext` of the specified window, or `EGL_NO_CONTEXT` if an
  459. * [error](@ref error_handling) occurred.
  460. *
  461. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  462. * GLFW_NOT_INITIALIZED.
  463. *
  464. * @thread_safety This function may be called from any thread. Access is not
  465. * synchronized.
  466. *
  467. * @since Added in version 3.0.
  468. *
  469. * @ingroup native
  470. */
  471. GLFWAPI EGLContext glfwGetEGLContext(GLFWwindow* window);
  472. /*! @brief Returns the `EGLSurface` of the specified window.
  473. *
  474. * @return The `EGLSurface` of the specified window, or `EGL_NO_SURFACE` if an
  475. * [error](@ref error_handling) occurred.
  476. *
  477. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  478. * GLFW_NOT_INITIALIZED.
  479. *
  480. * @thread_safety This function may be called from any thread. Access is not
  481. * synchronized.
  482. *
  483. * @since Added in version 3.0.
  484. *
  485. * @ingroup native
  486. */
  487. GLFWAPI EGLSurface glfwGetEGLSurface(GLFWwindow* window);
  488. #endif
  489. #if defined(GLFW_EXPOSE_NATIVE_OSMESA)
  490. /*! @brief Retrieves the color buffer associated with the specified window.
  491. *
  492. * @param[in] window The window whose color buffer to retrieve.
  493. * @param[out] width Where to store the width of the color buffer, or `NULL`.
  494. * @param[out] height Where to store the height of the color buffer, or `NULL`.
  495. * @param[out] format Where to store the OSMesa pixel format of the color
  496. * buffer, or `NULL`.
  497. * @param[out] buffer Where to store the address of the color buffer, or
  498. * `NULL`.
  499. * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an
  500. * [error](@ref error_handling) occurred.
  501. *
  502. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  503. * GLFW_NOT_INITIALIZED.
  504. *
  505. * @thread_safety This function may be called from any thread. Access is not
  506. * synchronized.
  507. *
  508. * @since Added in version 3.3.
  509. *
  510. * @ingroup native
  511. */
  512. GLFWAPI int glfwGetOSMesaColorBuffer(GLFWwindow* window, int* width, int* height, int* format, void** buffer);
  513. /*! @brief Retrieves the depth buffer associated with the specified window.
  514. *
  515. * @param[in] window The window whose depth buffer to retrieve.
  516. * @param[out] width Where to store the width of the depth buffer, or `NULL`.
  517. * @param[out] height Where to store the height of the depth buffer, or `NULL`.
  518. * @param[out] bytesPerValue Where to store the number of bytes per depth
  519. * buffer element, or `NULL`.
  520. * @param[out] buffer Where to store the address of the depth buffer, or
  521. * `NULL`.
  522. * @return `GLFW_TRUE` if successful, or `GLFW_FALSE` if an
  523. * [error](@ref error_handling) occurred.
  524. *
  525. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  526. * GLFW_NOT_INITIALIZED.
  527. *
  528. * @thread_safety This function may be called from any thread. Access is not
  529. * synchronized.
  530. *
  531. * @since Added in version 3.3.
  532. *
  533. * @ingroup native
  534. */
  535. GLFWAPI int glfwGetOSMesaDepthBuffer(GLFWwindow* window, int* width, int* height, int* bytesPerValue, void** buffer);
  536. /*! @brief Returns the `OSMesaContext` of the specified window.
  537. *
  538. * @return The `OSMesaContext` of the specified window, or `NULL` if an
  539. * [error](@ref error_handling) occurred.
  540. *
  541. * @errors Possible errors include @ref GLFW_NO_WINDOW_CONTEXT and @ref
  542. * GLFW_NOT_INITIALIZED.
  543. *
  544. * @thread_safety This function may be called from any thread. Access is not
  545. * synchronized.
  546. *
  547. * @since Added in version 3.3.
  548. *
  549. * @ingroup native
  550. */
  551. GLFWAPI OSMesaContext glfwGetOSMesaContext(GLFWwindow* window);
  552. #endif
  553. #ifdef __cplusplus
  554. }
  555. #endif
  556. #endif /* _glfw3_native_h_ */