Function ~DebugConsole

Synopsis

#include <Source/Falcor/Utils/Debug/DebugConsole.h>

virtual ~DebugConsole()

Description

No description yet.

Source

Lines 67-86 in Source/Falcor/Utils/Debug/DebugConsole.h.

virtual ~DebugConsole()
{
    flush();
    if (mWaitForKey)
    {
        pause();
    }
    // Restore the streams
    std::cin.rdbuf(mPrevCin);
    std::cerr.rdbuf(mPrevCerr);
    std::cout.rdbuf(mPrevCout);
    // Restore stdout to default
    //freopen("OUT", "w", stdout);
    //fclose(mFp);
    // Close console window
    FreeConsole();
}





Add Discussion as Guest

Log in to DocsForge