MCPcopy Create free account
hub / github.com/Illation/ETEngine / Initialize

Method Initialize

Engine/source/EtFramework/Util/ScreenshotCapture.cpp:34–45  ·  view source on GitHub ↗

--------------------------------- ScreenshotCapture::Initialize Mount all screenshot files that are in the desired directory

Source from the content-addressed store, hash-verified

32// Mount all screenshot files that are in the desired directory
33//
34void ScreenshotCapture::Initialize(std::string basePath)
35{
36 if (basePath.size() == 0)
37 {
38 basePath = "./";
39 }
40 else if (basePath[basePath.size()-1] != '/')
41 {
42 basePath += '/';
43 }
44 m_BaseDir = new core::Directory(basePath, nullptr, true);
45}
46
47//---------------------------------
48// ScreenshotCapture::Take

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected