Function instance

Synopsis

#include <Source/Falcor/Utils/Scripting/Console.h>

static Console & instance()

Description

Global console instance.

Return
Returns the global console instance.

Source

Lines 128-133 in Source/Falcor/Utils/Scripting/Console.cpp. Line 61 in Source/Falcor/Utils/Scripting/Console.h.

Console& Console::instance()
{
    static std::unique_ptr<Console> pInstance;
    if (!pInstance) pInstance = std::unique_ptr<Console>(new Console());
    return *pInstance;
}





Add Discussion as Guest

Log in to DocsForge