src/main.cpp
// glfw: whenever the mouse scroll wheel scrolls, this callback is called
// ----------------------------------------------------------------------
whenever the mouse scroll wheel scrolls, this callback is called
whenever the mouse scroll wheel scrolls this callback is called
void scroll_callback(GLFWwindow* window, double xOffset, double yOffset) {
    auto& state = *static_cast<engine::State*>(glfwGetWindowUserPointer(window));
    auto camera = state.getCamera();
    auto offset = static_cast<float>(yOffset);
    camera->processMouseScroll(offset);
}
void scroll_callback ( GLFWwindow * window , double xOffset , double yOffset ) { auto & state = * static_cast < engine :: State * > ( glfwGetWindowUserPointer ( window ) ) ; auto camera = state . getCamera ( ) ; auto offset = static_cast < float > ( yOffset ) ; camera -> processMouseScroll ( offset ) ; }
glfw: whenever the mouse scroll wheel scrolls, this callback is called
glfw : whenever the mouse scroll wheel scrolls this callback is called