Device resizing
Posted: Tue Nov 07, 2006 9:29 am
Hi
I'm trying to get a (any) scenegraph library to work well in a control in a .NET/WinForms application. The trouble I'm having to begin with is resizing the device, how do I code to make sure that the device resolution is always the same resolution as the size of the control it renders in? That is, I don't want it stretched to fill!
When I use DirectX directly in my current implementation I just re-create the device any time a resize occurs, but I havent figured out what to tear down and re-initialize in irrlicht to achieve that.
Any suggestions or example code would be appreciated. For example, in the meshviewer application example, how would one change the code to get a (true) resizing rendering rather than a fixed resolution stretched window?
Thanks
/Anders
I'm trying to get a (any) scenegraph library to work well in a control in a .NET/WinForms application. The trouble I'm having to begin with is resizing the device, how do I code to make sure that the device resolution is always the same resolution as the size of the control it renders in? That is, I don't want it stretched to fill!
When I use DirectX directly in my current implementation I just re-create the device any time a resize occurs, but I havent figured out what to tear down and re-initialize in irrlicht to achieve that.
Any suggestions or example code would be appreciated. For example, in the meshviewer application example, how would one change the code to get a (true) resizing rendering rather than a fixed resolution stretched window?
Thanks
/Anders