I have a Pong game using SFML organized after this tutorial.
This is the UML diagram from the tutorial.
Now I am not sure where I should put my SFML RenderWindow variable (and other things that might need to be shared between game states.
I have a PlayingGameState with a shared_ptr to a GameStateManager. So the right place should be the GameStateManager class. Or should I put it into the DirectRenderingGameStateManager and change the shared_ptr to DirectRenderingGameStateManager?