Page 1 of 1
Resizable window
Posted: Mon Jan 21, 2008 5:44 pm
by Caspian
I know that Irrlicht can create resizable windows, but I need to resize viewports when the window is resized. Is there an event that I can catch which will give me the new dimentions of the window after it has been resized?
Thanks.
Re: Resizable window
Posted: Mon Jan 21, 2008 6:03 pm
by randomMesh
Caspian wrote:Is there an event that I can catch which will give me the new dimentions of the window after it has been resized?
Thanks.
Doesn't give
Code: Select all
device->getVideoDriver()->getScreenSize()
updated values?
Posted: Mon Jan 21, 2008 7:11 pm
by bitplane
Thinking about it, there should really be events for this kind of thing. Checking the screen size each loop is a crappy way to go about it.
Posted: Mon Jan 21, 2008 9:01 pm
by Caspian
Thanks for your replies -- I was hoping to not have to check every time whether the screen has been resized (as bitplane said), but I guess it's not terribly inefficient.