Resizable window

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Caspian
Posts: 15
Joined: Sun Mar 18, 2007 2:38 am

Resizable window

Post 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.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Re: Resizable window

Post 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?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Caspian
Posts: 15
Joined: Sun Mar 18, 2007 2:38 am

Post 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.
Post Reply