I was unsure whether to put this here or in the Graphics forum but basically I'm trying to set my camera view to a size of an equal aspect ratio of the monitor.
VideoMode videoMode = sf::VideoMode::GetDesktopMode();
float aspectRatio = (float)videoMode.Width/(float)videoMode.Height;
float screenSize = 380;
scene->view = new sf::View(sf::FloatRect(0, 0, screenSize, screenSize/aspectRatio));
Hypothetically this should work with any given screenSize but I'm still getting pretty profound distortion with certain numbers (such as 800 on a 16:9 monitor).
Is there a better way to control the field of view while still keeping the proper aspect ratio (no stretching) no matter what monitor you're on?
Thanks!