Add os_get_glfw_window;

So lovr-keyboard and lovr-mouse and friends can continue to work.
This commit is contained in:
bjorn 2022-08-12 21:09:40 -07:00
parent 3cbf85c98a
commit b615de26d6
1 changed files with 10 additions and 0 deletions

View File

@ -324,3 +324,13 @@ uint32_t os_vk_create_surface(void* instance, void** surface) {
return glfwCreateWindowSurface(instance, glfwState.window, NULL, (VkSurfaceKHR*) surface);
}
#endif
#ifdef _WIN32
#define OS_EXPORT __declspec(dllexport)
#else
#define OS_EXPORT __attribute__((visibility("default")))
#endif
OS_EXPORT GLFWwindow* os_get_glfw_window(void) {
return glfwState.window;
}