class SFML::ContextSettings

Configuration for the underlying OpenGL context that backs a Window / RenderWindow. Passed at window-creation time to request anti-aliasing, depth/stencil buffers, or a specific OpenGL version.

settings = SFML::ContextSettings.new(antialiasing: 4) window = SFML::RenderWindow.new(800, 600, โ€œSmoothโ€, context: settings)

Or use the RenderWindow.new shortcut directly:

window = SFML::RenderWindow.new(800, 600, โ€œSmoothโ€, antialiasing: 4)

Anti-aliasing is the most common knob โ€” typical values are 0 (off), 2, 4, or 8. The driver picks the closest level it actually supports; query window.context_settings after creation to see what you got.