There are a lot of threads about window resizing, but most of them contain either dead links or are some 4 years old, so I hope it's okay that I open a new thread about this.
My questions should be fairly easy to answer anyways:
As the title says, I'm having problems with window resizing when trying to preserve a correct aspect ratio.
My first problem is that I don't know how to catch a resize event, since I didn't find such an event when reading through the irr::SEvent pages.
My second problem is that I'm somewhat unsure on how to proceed once I've catched such an event.
What I'd like to try is to first call
Code: Select all
driver->OnResize( new_size );
Code: Select all
camera->setAspectRatio( new_size.Width/new_size.Height );