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();
}
void
FGViewMgr::shutdown()
{
if (!inited) {
return;
}
inited = false;
}
void
FGViewMgr::reinit ()
{
@ -290,6 +300,8 @@ void
FGViewMgr::unbind ()
{
_tiedProperties.Untie();
config_list.clear();
view_number.clear();
}
void

View file

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