#pragma once #include #include struct Ecran { // FenĂȘtre static sf::RenderWindow window; Ecran(const uint width = 800, const uint height = 800, const std::string name = "Projet"); // constructor ~Ecran(); // destructor void afficher( /* Function called at each frame */ const std::function drawEachFrame = {[]() {}}, /* Take 2 arguments: position X, position Y * -> called each time user left-click */ const std::function doOnClick = { [](const int, const int) {}}) const; };