Example #1
0
static void ButtonCallback(GLFWwindow *window, int b, int action, int mods)
{
    double x, y;
    glfwGetCursorPos(window, &x, &y);
    gOldMouseX = x;
    gOldMouseY = y;

    bool quit = gSceneController->Button(b, action, mods, x, y);
    if(quit)
        glfwSetWindowShouldClose(window, GL_TRUE);
}