public SetVisible ( bool visible ) : void | ||
visible | bool | True to show the window, false to hide it |
return | void |
// Creating the window RenderWindow window = new RenderWindow(new VideoMode(800, 600), "SFML Window"); // Hiding the window window.SetVisible(false);
// Creating the window RenderWindow window = new RenderWindow(new VideoMode(800, 600), "SFML Window"); // Showing the window window.SetVisible(true);This example creates a new SFML window with the size 800x600 and a title "SFML Window". Then, the window is shown using the SetVisible method. Package library: SFML.
public SetVisible ( bool visible ) : void | ||
visible | bool | True to show the window, false to hide it |
return | void |