Hello everyone.
Let's say i have this code:
// Loading
while(stateLoading)
{
Window.clear(sf::Color::Black);
//Here draw a picture saying "Loading";
Window.display();
//Load file X
//Load file Y
//Load file Z
//Load file ...
stateLoading=false;
stateMainMenu=true;
}
My question: will all the files first be loaded, and then it will jump to the next state, or some files may not load but it will still go to the next section.
I just wonder, if this is enough to make loading screen, or I need to do something more complex. I know that while in SFML loops over and over again, but does .loadFromFile() method make it something like "wait! we must load this file, then u can go further!"?
I hope you understand my question, if my request wasn't clear I'm sorry, and I'll try to make it more clear.
Have a nice day, good people.