1
Window / Re: Automatically resizing window with pictures to monitor resolution
« on: December 10, 2013, 02:57:21 pm »
Yes, but if someone for example has monitor with resolution 1366x768 and someone else 800x600, how can i know what int must I write?
entity.setScale(4.0f, 1.6f);
entity.setScale(a, b);
Of course I can get resolution of screen with
sf::VideoMode vm = sf::VideoMode::getDesktopMode();
sf::RenderWindow window( vm, "Title" );
but it's maybe the hardest way.
entity.setScale(4.0f, 1.6f);
entity.setScale(a, b);
Of course I can get resolution of screen with
sf::VideoMode vm = sf::VideoMode::getDesktopMode();
sf::RenderWindow window( vm, "Title" );
but it's maybe the hardest way.