Function shouldExit

Synopsis

#include <Source/Falcor/Utils/Timing/Clock.h>

bool shouldExit() const

Description

Check if the application should be terminated.

Source

Lines 128-131 in Source/Falcor/Utils/Timing/Clock.cpp. Line 120 in Source/Falcor/Utils/Timing/Clock.h.

bool Clock::shouldExit() const
{
    return ((mExitTime && getTime() >= mExitTime) || (mExitFrame && getFrame() >= mExitFrame));
}





Add Discussion as Guest

Log in to DocsForge