mirror of https://github.com/bjornbytes/lovr.git
Add os_get_glfw_window;
So lovr-keyboard and lovr-mouse and friends can continue to work.
This commit is contained in:
parent
3cbf85c98a
commit
b615de26d6
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue