示例#1
0
void resizeCallback(GLFWwindow* window, int width, int height) {
    GLWindow* instance = (GLWindow*)glfwGetWindowUserPointer(window);
    instance->setWidth(width);
    instance->setHeight(height);
    instance->onResize(width, height);
}
示例#2
0
    static void WindowSizeFunc(GLFWwindow* window, int w, int h) {
        GLWindow* glwnd = (GLWindow*)glfwGetWindowUserPointer(window);

        WindowResizeEventArgs args(w, h);
        glwnd->onResize().raise(glwnd, args);
    }