Biggles
28-02-2006 11:53:54
Hey, just wondering, what are the various ways to propperly shut down a pyogre app?
I know you can have a framelistener return false, but obviously that doesn't work if you just have a loop calling Root.renderOneFrame()
(actually, just had a deeper look at root, i'm guessing Root.shutdown() does everything for me?)
Also, in that situation, there are a few problems when the ogre window loses focus (ie, it seems to stop rendering)
Finally, is there a way of catching when the user clicks the window's close X (in the corner) so I can shutdown various other things properly (working on a multi-threaded GUI)?
ta!
I know you can have a framelistener return false, but obviously that doesn't work if you just have a loop calling Root.renderOneFrame()
(actually, just had a deeper look at root, i'm guessing Root.shutdown() does everything for me?)
Also, in that situation, there are a few problems when the ogre window loses focus (ie, it seems to stop rendering)
Finally, is there a way of catching when the user clicks the window's close X (in the corner) so I can shutdown various other things properly (working on a multi-threaded GUI)?
ta!