development/Common/Render/source/Gui/imgui_OutputConsole.cpp
// Convert a Level to a Win32 console color text attribute
/*static*/
Convert a Level to a Win32 console color text attribute
static
Convert a Level to a Win32 console color text attribute static
math3d::Color OutputConsole::toWin32Attribute(ylog::Log::Level aLevel)
{
    math3d::Color color;
    switch (aLevel)
    {
        case ylog::Log::Level::eDebug:
            color = DirectX::Colors::Gray;
            break;
        case ylog::Log::Level::eInfo:
            color = DirectX::Colors::Green;
            break;
        case ylog::Log::Level::eNotice:
            color = DirectX::Colors::Yellow;
            break;
        case ylog::Log::Level::eWarning:
            color = DirectX::Colors::Orchid;
            break;
        case ylog::Log::Level::eError:
            color = DirectX::Colors::Red;
            break;
        case ylog::Log::Level::eCritic:
            color = DirectX::Colors::Purple;
            break;
        default:
            color = DirectX::Colors::Aqua;
            break;
    }
    return color;
}
math3d :: Color OutputConsole :: toWin32Attribute ( ylog :: Log :: Level aLevel ) { math3d :: Color color ; switch ( aLevel ) { case ylog :: Log :: Level :: eDebug : color = DirectX :: Colors :: Gray ; break ; case ylog :: Log :: Level :: eInfo : color = DirectX :: Colors :: Green ; break ; case ylog :: Log :: Level :: eNotice : color = DirectX :: Colors :: Yellow ; break ; case ylog :: Log :: Level :: eWarning : color = DirectX :: Colors :: Orchid ; break ; case ylog :: Log :: Level :: eError : color = DirectX :: Colors :: Red ; break ; case ylog :: Log :: Level :: eCritic : color = DirectX :: Colors :: Purple ; break ; default : color = DirectX :: Colors :: Aqua ; break ; } return color ; }
Convert a Level to a Win32 console color text attribute
static
Convert a Level to a Win32 console color text attribute static