Hello, how to describe my problem ... I have a main menu. In this main menu are 4 menu-points I can Switch with the keys. This main-menu is open by a void function. And this function works. I see the whole window. But when I use the keys to get to "Exit Game" and press enter, the objective is to close the main-menu window and open an "Exit Game menu" which shall be also fullscreen like the other windows. But how I can code it (for example) that I can close the main-menu (fullscreen) window and open the Exit-menu (fullscreen)
Actual I have 3 functions. First the int main() who show a Picture and a text then with timer it is timed that he call the next function. In the main function the second and third window was set the visible to false so they won´t get shown at the start.
In the next (void) function I put
hauptmenue.setVisible(true); //Second fullscreen window defined in the void function
Fenster.setVisible(false); //First fullscreen window defined in the int main()
And this works! In the second I do it also but then it doesn´t work. Code is very long to put it in here but maybe you have an better idea or a syntax how to "Switch" between fullscreen windows.
Edit : Don´t know it is helping you but all three windows get rendered with RenderWindow.
sf::RenderWindow Fenster(sf::VideoMode(800,600), "Erstes Fenster", sf::Style::Fullscreen);
sf::RenderWindow hauptmenue(sf::VideoMode(800,600), "Hauptmenue", sf::Style::Fullscreen);
sf::RenderWindow Fenbeenden(sf::VideoMode(800,600), "Beenden", sf::Style::Fullscreen);