Close the window and destroy all the attached resources.
After calling this function, the Window instance remains valid and you
can call create() to recreate the window. All other functions such as
pollEvent() or display() will still work (i.e. you don't have to test
isOpen() every time), and will have no effect on closed windows.
Close the window and destroy all the attached resources.
After calling this function, the Window instance remains valid and you can call create() to recreate the window. All other functions such as pollEvent() or display() will still work (i.e. you don't have to test isOpen() every time), and will have no effect on closed windows.