2 #include <GLFW/glfw3.h>
4 #include <unordered_map>
12 void onWindowClose(GLFWwindow *handle)
19 void onWindowResize(GLFWwindow* handle,
int width,
int height)
41 if (*it == window)
return;
44 QUORI_FACE_TRACE(glfwSetWindowCloseCallback(window->getHandle(), &onWindowClose));
45 QUORI_FACE_TRACE(glfwSetFramebufferSizeCallback(window->getHandle(), &onWindowResize));
56 QUORI_FACE_TRACE(glfwSetFramebufferSizeCallback((*it)->getHandle(),
nullptr));
69 if ((*it)->getHandle() == handle)
return *it;