Unload and restart

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.
User avatar
Kristian
Hobgoblin
Posts: 542
Joined: Sun Jan 12, 2003 7:35 pm
Location: Copenhagen, Denmark

Unload and restart

Post by Kristian »

hello,
I need to be able to restart ogre without shutting down my application. Does anyone have a tip on how to secure that when i unload ogre loaded is really unloaded ?
Kristian, crying out loud: "If it works. Don't fix it!" :p
HCA
HCA2
GuppyLife
User avatar
:wumpus:
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 3067
Joined: Tue Feb 10, 2004 12:53 pm
Location: The Netherlands
x 1

Post by :wumpus: »

Yes, if you shut down ogre and then delete the Root() object it is really unloaded. Though sure you have no lingering shared pointers to objects inside Ogre, at shutdown. (ie .setNull() them)