SFML community forums
Help => Window => Topic started by: P@u1 on April 22, 2011, 04:25:42 pm
-
Hi everyone,
I'm writing a mario game and looking for a solution to disable the autmatic scale with is applied, when the window is resized.
Instead of rescaling the visible area should be enlarged.
What is the best way to achieve this?
I thought of changing the video mode and/or changing the camera, is this a good idea?
-
You must resize the current view to the new size of the window (you must catch the sf::Event::Resized event).
-
ok, thank you, I will try this.
Can u please explain me the difference / relationship between view and video mode?
I think I understand what a view does, but not, what the video mode does.
-
A video mode is just a structure that gathers width, height and bpp. It does nothing. You use it only to set the size of a window when you create it.