I've got a little problem
I create my gui in VB.NET (i don't use layouts). When i resize the window (let's say from 800x600 to 1024x768) the gui elements are fixed in there position.
I found a thread where they say to use
But in VB the function resizeWindow doesn't exist
First of all this function from MyGUI 2.* and doesn't exist in MyGUI 3.*
MyGUI::OgreRenderManager class (from OgrePlatform) is also Ogre::WindowEventListener and call resize any time when Ogre says that window was resized, so you probably should modify MyGUI::OgreRenderManager if Ogre not sending this event for some reason..
Thank's altren, good to know
Now i resize the window with:
Now, the next problem is the aspect ratio from the widgets, they are stretched or compressed (depending on the resolution).
I think i can calculate the size of the widgets mathematically in relation to the resolution, or is there any other way to do that ?
This also breaks aspect ratio of everything in scene (not only GUI). You should also call (C++ code)
mCamera->setAspectRatio(width / height); after resize.
myCamera.aspectRatio doesn't seems to do anything. All 3d objects rendered fine regardless of the resolution.
As you can see, in the second image the widgets are stretched. This happens if the aspect ratio is not 4:3 like in the first image.