Antialiasing is turned off by default.
I can see two reasons why your sprites look smooth :
- Antialiasing is forced in your driver's control panel (you should select "let the application choose")
- It's because of the texture filtering ; using Image::SetSmooth can disable it
I think it's the second one, as antialiasing only affects primitive edges. In fact it won't make any difference unless you use 3D (OpenGL) code.
That's great - your second suggestion solved it:
sf::Image BackgroundImage;
if (!BackgroundImage.LoadFromFile("images/terrain_tiles.png"))
return EXIT_FAILURE;
BackgroundImage.SetSmooth(false); sf::Sprite Background(BackgroundImage);
Thanks for your quick response.