3
« on: April 05, 2021, 09:27:33 pm »
So the window on starting,simply freezes.All i see is the border of the window and the desktop background.Even with the simplest example on this website,i get that rezult.
#include <SFML/Window.hpp>
int main()
{
sf::Window window(sf::VideoMode(800, 600), "My window");
// run the program as long as the window is open
while (window.isOpen())
{
// check all the window's events that were triggered since the last iteration of the loop
sf::Event event;
while (window.pollEvent(event))
{
// "close requested" event: we close the window
if (event.type == sf::Event::Closed)
window.close();
}
}
return 0;
}
Now this doesn't happen with renderWindow,but renderWindow starts and quits immediatly.
At least he starts....i get a glimpse of the window.
I use Ubuntu Mate 20.04.2 LTS 64bit
latest sfml
gcc 9.3.0
Thoughts?