Hello!
To say it in a short way, this is how i start my game:
int main(){
MainProgram game(new sf::RenderWindow(sf::VideoMode(1280, 720), "Title"));
game.insertNewState<StateMainMenu>();
game.programLoop();
}
And it looks cool (to me) until i want to go fullscreen. The only way i can go fullscreen is by closing the current window, then making a new one. The problem is i cannot get the title from the window, to pass it to the new one.
Originally i was about posting this here: http://en.sfml-dev.org/forums/index.php?topic=2276.0 , then the site warned me to make a new post instead of writing into a really old one.
int main() {
std::string title = "SomeTitle?";
MainProgram game(new sf::RenderWindow(sf::VideoMode(1280, 720), title.c_str()));
game.insertNewState<StateMainMenu>();
game.programLoop();
}
Or add „title” member to your MainProgram.
But IMHO getTitle() function would be nice feature.