add clear_exit_flag

This commit is contained in:
David Rose 2003-03-11 02:18:47 +00:00
parent 220b7cd4fa
commit 082be720ce
2 changed files with 13 additions and 1 deletions

View File

@ -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;
}

View File

@ -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();