add antialiasing

This commit is contained in:
Mylloon 2024-01-06 21:07:28 +01:00
parent 3ebb0088ce
commit 80801180f6
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -19,9 +19,12 @@ Ecran::Ecran(const uint w, const uint h, const std::string n, const bool pf) {
}
++count;
sf::ContextSettings settings;
settings.antialiasingLevel = 8;
// Création de la fenêtre SFML
window.create(VideoMode(w, h + bottomTxtPadding), n,
Style::Titlebar | Style::Close);
Style::Titlebar | Style::Close, settings);
fps = pf;
}