Hi Valentin,
There really is no need to go down the multi-threaded route with MFC. Firstly, I think that Robert pointed to the osgsimpleviewer examples in a previous post that should help in designing a more robust way to integrate MFC and OSG, failing this you can look at the windowing toolkits section in the wiki that has examples of some older OSG-MFC code, that will certainly put you in the right direction. If I recall (it's been a while) the example in the wiki just sets up a user defined message used to initiate rendering which continues in it's own loop until you decide that it should stop (when the window has lost focus if I remember). You'll have to handle resize events in your app by reseting the viewport size, etc.

Cheers,

Tony.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to