Resize 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
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Resize Window

Post by joy »

Is it possible to chance the size of a window from a small size to full screen?

I created a small window (640x480) which is the child of the window which is full screen. In this small window I got guielements and 3D objects.
With a mouse right click I want to change the small window to full screen. But because it got childelemtens I don't want to destroy the window and build a new one (here the childelements would get lost, wouldn't they?)

So instead of create a new full screen window I rather want to resize the window. Is that possible?

Thanks in advance for answers, suggestions, ideas...
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

Ok, I found some topic that ask for that too and it seems that this is not possible. Yet?????

But is there anyone who has an idea to get the same effect? I hard issue about this is, that I just can'T drop the window and create a new one, because then 2d Guielements would get lost.

Any ideas?
Guest

Post by Guest »

If it's only because of the gui elements then what about saving the state of them somehow (or even the class instances (tree) itself) then switch to fullscreen mode (create new and destroy old device) and restore them in the new device. Just an idea.
greets,
jox
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

That was me. Forgot to log in, sorry. :)
joy
Posts: 124
Joined: Tue Apr 27, 2004 9:15 am
Location: Germany

Post by joy »

Thanks for answering I guess I need to save, yes. When I do it your way is there already the tree I can save somehow or to I have to press the objects of the classes into a tree?
Post Reply