add clear_exit_flag
This commit is contained in:
parent
220b7cd4fa
commit
082be720ce
|
|
@ -92,7 +92,7 @@ get_window(int n) const {
|
|||
// Description: Closes the indicated WindowFramework window and
|
||||
// removes it from the list.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
void PandaFramework::
|
||||
INLINE void PandaFramework::
|
||||
close_window(WindowFramework *wf) {
|
||||
int n = find_window(wf);
|
||||
if (n >= 0) {
|
||||
|
|
@ -183,3 +183,14 @@ INLINE void PandaFramework::
|
|||
set_exit_flag() {
|
||||
_exit_flag = true;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: PandaFramework::clear_exit_flag
|
||||
// Access: Public
|
||||
// Description: Resets the exit flag after it has previously been
|
||||
// set.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
INLINE void PandaFramework::
|
||||
clear_exit_flag() {
|
||||
_exit_flag = false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,6 +98,7 @@ public:
|
|||
void main_loop();
|
||||
|
||||
INLINE void set_exit_flag();
|
||||
INLINE void clear_exit_flag();
|
||||
|
||||
protected:
|
||||
virtual PT(WindowFramework) make_window_framework();
|
||||
|
|
|
|||
Loading…
Reference in New Issue