Function windowSizeCallback

Synopsis

#include <Source/Falcor/Core/Window.cpp>

static void windowSizeCallback(GLFWwindow *pGlfwWindow, int width, int height)

Description

No description yet.

Source

Lines 57-70 in Source/Falcor/Core/Window.cpp.

static void windowSizeCallback(GLFWwindow* pGlfwWindow, int width, int height)
{
    // We also get here in case the window was minimized, so we need to ignore it
    if (width == 0 || height == 0)
    {
        return;
    }
    Window* pWindow = (Window*)glfwGetWindowUserPointer(pGlfwWindow);
    if (pWindow != nullptr)
    {
        pWindow->resize(width, height); // Window callback is handled in here
    }
}





Add Discussion as Guest

Log in to DocsForge