20 lines
411 B
C++
20 lines
411 B
C++
|
#ifndef PROJECT_ECRAN_HPP
|
||
|
#define PROJECT_ECRAN_HPP 1
|
||
|
|
||
|
#include <SFML/Graphics.hpp>
|
||
|
#include <functional>
|
||
|
|
||
|
class Ecran {
|
||
|
// Fenêtre
|
||
|
sf::RenderWindow window;
|
||
|
|
||
|
public:
|
||
|
Ecran(const uint width = 800, const uint height = 800,
|
||
|
const std::string name = "Projet"); // constructor
|
||
|
~Ecran(); // destructor
|
||
|
|
||
|
void afficher(std::function<void()> f = {[]() {}});
|
||
|
};
|
||
|
|
||
|
#endif
|