OpenGL_Planetarium/PlanetariumApp.cpp
void InputCallbacks::I_MouseButtonForwarder(GLFWwindow* window, int button, int action, int mods)
{
    PlanetariumApp* app = reinterpret_cast<PlanetariumApp*>(glfwGetWindowUserPointer(window));
    if (app) {

        app->I_MouseButton(window, button, action, mods);
    }
}
// Input callbacks use window user pointer to receiver the app instance memory address
// and then use the API to pass the input info. 
// This trick is fairly standard in windows enviroment at least, as far as I can tell. 
// Here GLFW provides a bit more OS agnostic version of the window user pointer implementation.  
Input callbacks use window user pointer to receiver the app instance memory address
and then use the API to pass the input info.
This trick is fairly standard in windows enviroment at least, as far as I can tell.
Here GLFW provides a bit more OS agnostic version of the window user pointer implementation.
Input callbacks use window user pointer to receiver the app instance memory address and then use the API to pass the input info . This trick is fairly standard in windows enviroment at least as far as I can tell . Here GLFW provides a bit more OS agnostic version of the window user pointer implementation .
void InputCallbacks::I_MouseButtonForwarder(GLFWwindow* window, int button, int action, int mods)
{
    PlanetariumApp* app = reinterpret_cast<PlanetariumApp*>(glfwGetWindowUserPointer(window));
    if (app) {
        app->I_MouseButton(window, button, action, mods);
    }
}
void InputCallbacks :: I_MouseButtonForwarder ( GLFWwindow * window , int button , int action , int mods ) { PlanetariumApp * app = reinterpret_cast < PlanetariumApp * > ( glfwGetWindowUserPointer ( window ) ) ; if ( app ) { app -> I_MouseButton ( window , button , action , mods ) ; } }
Input callbacks use window user pointer to receiver the app instance memory address
and then use the API to pass the input info.
Input callbacks use window user pointer to receiver the app instance memory address and then use the API to pass the input info .