1
0
Fork 0

Reset: view manager can be be shutdown.

This commit is contained in:
James Turner 2013-10-06 17:34:03 +01:00
parent ad7a3e854d
commit 71a8eac8bd
2 changed files with 14 additions and 1 deletions

View file

@ -141,6 +141,16 @@ FGViewMgr::init ()
do_bind(); do_bind();
} }
void
FGViewMgr::shutdown()
{
if (!inited) {
return;
}
inited = false;
}
void void
FGViewMgr::reinit () FGViewMgr::reinit ()
{ {
@ -290,6 +300,8 @@ void
FGViewMgr::unbind () FGViewMgr::unbind ()
{ {
_tiedProperties.Untie(); _tiedProperties.Untie();
config_list.clear();
view_number.clear();
} }
void void

View file

@ -53,7 +53,8 @@ public:
virtual void unbind (); virtual void unbind ();
virtual void update (double dt); virtual void update (double dt);
virtual void reinit (); virtual void reinit ();
virtual void shutdown();
// getters // getters
inline int size() const { return views.size(); } inline int size() const { return views.size(); }
inline int get_current() const { return current; } inline int get_current() const { return current; }