Reset: view manager can be be shutdown.
This commit is contained in:
parent
ad7a3e854d
commit
71a8eac8bd
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Reference in a new issue