#include "../includes/Ecran.hpp" sf::RenderWindow Ecran::window; Ecran::Ecran(const uint w, const uint h, const std::string n) { // CrĂ©ation de la fenĂȘtre SFML window.create(sf::VideoMode(w, h), n); } Ecran::~Ecran() {} void Ecran::afficher(const std::function dessin) const { while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) { window.close(); } } window.clear(); // Appel d'une fonction dessin dessin(); window.display(); } }