I need to use my sf::RenderWindow App(sf::VideoMode(800, 600, 32), "Title"); in multiple cpps, so I should put it in a header right? and then make an init function that I call as the first thing in main()?
So i tried making a private variable in the header file class, sf::RenderWindow App;
but then how would I add the video mode and title after that in the cpp?
Also, i tried to use the Create function, but it gave me an error that said "no instance of overloaded function sf::RenderWindow::Create matches the argument list" I used App.Create((sf::VideoMode(800, 600, 32), "Asteroid Dodger");