• Register

SFML is a portable and easy to use multimedia API written in C++. You can see it as a modern, object-oriented alternative to SDL. SFML is composed of several packages to perfectly suit your needs. You can use SFML as a minimal windowing system to interface with OpenGL, or as a fully-featured multimedia library for building games or interactive programs.

Post news Report RSS Devlog #007: Resolutions

It's a hell of a job, but I think I finally got the resolution settings working.

Posted by on

Resolution change

The majority of the work was not really the changing of the screen resolution itself, but the updating of all the things in screen.
When resolution changes I have to update the background size, update GUI positions and scales and also make sure things keep their aspect ratio.

Next to all this I've implemented a working settings configuration file in which the set resolution is saved. All in all a lot of new stuff which is difficult to show you.

At least I can show you a gif of successfully changing between resolutions.

Next I'll keep working on the game settings. Fullscreen/windowed mode is up next.

Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account: