void resizeCallback(GLFWwindow* window, int width, int height) { GLWindow* instance = (GLWindow*)glfwGetWindowUserPointer(window); instance->setWidth(width); instance->setHeight(height); instance->onResize(width, height); }
static void WindowSizeFunc(GLFWwindow* window, int w, int h) { GLWindow* glwnd = (GLWindow*)glfwGetWindowUserPointer(window); WindowResizeEventArgs args(w, h); glwnd->onResize().raise(glwnd, args); }