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();
|
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
|
||||||
|
|
|
@ -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; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue