Hello
, is it possible to run the RenderWindow thread in the background? If so, can anyone give me a simple code.
#include <SFML\Graphics.hpp>
sf::RenderWindow window;
void openWindow() {
window.create(sf::VideoMode(800, 800), "Window");
while (window.isOpen()) {
sf::Event event;
while (window.pollEvent(event)) {
switch (event.type) {
case sf::Event::Closed:
window.close();
break;
}
}
}
}
Thanks
.