Skip to content

Commit

Permalink
Add a note about context.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryouze committed Oct 28, 2024
1 parent e16f3c0 commit 93fe211
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ namespace {
* @param antialiasing Anti-aliasing level (default: 8).
*
* @return Improved context settings.
*
* @note According to the SFML documentation, "if any of these settings is not supported by the graphics card, SFML tries to find the closest valid match. For example, if 4x anti-aliasing is too high, it tries 2x and then falls back to 0."
*/
[[nodiscard]] sf::ContextSettings get_improved_context_settings(const unsigned int antialiasing = 8)
{
Expand Down

0 comments on commit 93fe211

Please sign in to comment.