add antialiasing
This commit is contained in:
parent
3ebb0088ce
commit
80801180f6
1 changed files with 4 additions and 1 deletions
|
@ -19,9 +19,12 @@ Ecran::Ecran(const uint w, const uint h, const std::string n, const bool pf) {
|
||||||
}
|
}
|
||||||
++count;
|
++count;
|
||||||
|
|
||||||
|
sf::ContextSettings settings;
|
||||||
|
settings.antialiasingLevel = 8;
|
||||||
|
|
||||||
// Création de la fenêtre SFML
|
// Création de la fenêtre SFML
|
||||||
window.create(VideoMode(w, h + bottomTxtPadding), n,
|
window.create(VideoMode(w, h + bottomTxtPadding), n,
|
||||||
Style::Titlebar | Style::Close);
|
Style::Titlebar | Style::Close, settings);
|
||||||
|
|
||||||
fps = pf;
|
fps = pf;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue