Hi!
[Backstory] Feel free to ignore it.
I'm making a simple game, just to learn how to do new things and also learn how to you use SFML.
Its my first time using it and its been fun, but I have a few questions i couldn't find answer for, hope someone can help me. Yes i tried google and also searched the forum (keywords: window create resize) but didn't find what I am looking for.
[questions]If I have to use several screens in my game, only displaying one at a time, whats the best/correct way to do this?
Right now I create 1 RenderWindow and pass it to 2 separate .hpp files which use the windows differently (different sizes, background color, etc). When one closes, the other one opens. Check the spoilers if my explanation on how I do it was poor .
My question is, how should I do this?- create 1 RenderWindow for each screen I use?
- Use only 1 RenderWindow and resize it and set a new view?
- Use 1 RenderWindow without any formating and then use RenderWindow.create to give it settings for each screen I use?
Every way works. But I have no clue what positive and negative aspects they have.
For this simple game it makes no difference, I think, but I want to learn about it, for future reference.
Thank you for your time reading this!
And
IF(you answered){thank you for your answer};