Im trying to make a game with the SFML.
I'm making a sf::RenderWindow but when I try to pass the window to another class it fails. I can't access the window. Because I think it's good to make a separate class for handling events like 'close the window' etc. but then I can't access it. How can I fix this?
RenderWindow *window;
window = new RenderWindow(VideoMode(768, 614), "Tower Defence ver 2.0");