Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: how to get maximum texture quality  (Read 1486 times)

0 Members and 1 Guest are viewing this topic.

IDis

  • Newbie
  • *
  • Posts: 1
    • View Profile
how to get maximum texture quality
« on: August 16, 2020, 11:16:02 pm »
I want to make viewing photos like faststone, but the quality of displaying photos is very low. How can I improve the quality of my photos?


Code: [Select]
  sf::RenderWindow  window (sf::VideoMode(800, 600), L"some", sf::Style::Close, sf::ContextSettings(24, 8, 8));
 std::cout << "Antialiasing level: " << window.getSettings().antialiasingLevel << std::endl; //out = 8
« Last Edit: August 16, 2020, 11:37:36 pm by IDis »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: how to get maximum texture quality
« Reply #1 on: August 17, 2020, 08:36:22 am »
Anti-aliasing only helps with geometry edges, not textures.

See Texture::setSmooth and Texture::generateMipmaps.
Laurent Gomila - SFML developer

 

anything