Function start

Synopsis

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

static void start()

Description

Start the system

Source

Lines 272-286 in Source/Falcor/Utils/Timing/Clock.cpp. Line 43 in Source/Falcor/Utils/Timing/Clock.h.

void Clock::start()
{
    auto loadTexture = [](const std::string& tex)
    {
        auto pTex = Texture::createFromFile("Framework/Textures/" + tex, false, true);
        if (!pTex) throw std::exception("Failed to load texture");
        return pTex;
    };
    gClockTextures.pRewind = loadTexture("Rewind.jpg");
    gClockTextures.pPlay = loadTexture("Play.jpg");
    gClockTextures.pPause = loadTexture("Pause.jpg");
    gClockTextures.pStop = loadTexture("Stop.jpg");
    gClockTextures.pNextFrame = loadTexture("NextFrame.jpg");
    gClockTextures.pPrevFrame = loadTexture("PrevFrame.jpg");
}





Add Discussion as Guest

Log in