is there a way to automatically scale my guis when resizing the screen resolution?
also
is there a way to resize the resolution while inside the application?
^^
screen resolution...
screen resolution...
opensource = freedom
<br>
how can you face the problem if the problem is your face?
<br>
how can you face the problem if the problem is your face?
reply
try the search button on forums, and yes you can change the resolution of your application while it is running, i think in code snippets forum someone wrote a code to do that 
so try the little search button
so try the little search button
You have to poll the screen resolution with videoDriver->getScreenSize() and compare it always to the resolution of the last frame. Then make sure that your gui-elements all have one common parent element (that's useful anyway). Resize that parent element. All child-elements will then be resized depending on their alignment settings. You can change those for each element with setAlignment.
I think there is currently no way to resize the main-window with irrlicht functions. It is probably possible with some system functions.
I think there is currently no way to resize the main-window with irrlicht functions. It is probably possible with some system functions.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Changing the size of the device should change the size of the video driver and the root GUI element, this should cascade down through the alignment settings and adjust your GUI automatically, providing the alignment is set up correctly.
IIRC, the image in the bottom left corner of the meshviewer app should demonstrate this behaviour.
IIRC, the image in the bottom left corner of the meshviewer app should demonstrate this behaviour.
Well, we have no function so far to change the size of the device...
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Don't all windowing systems send a notification when the window size changes? Windows provides WM_SIZE notification and X provides the ResizeRequest event type. It seems like the device could receive the appropriate messages and then either send them on to the user through the event receiver or just call OnResize(). That way the user wouldn't need to poll.
Travis
Travis