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

Method Take

Engine/source/EtFramework/Util/ScreenshotCapture.cpp:52–64  ·  view source on GitHub ↗

--------------------------------- ScreenshotCapture::Take Reigster ourselves with the requested viewport. the actual capture is deferred until rendering is completed

Source from the content-addressed store, hash-verified

50// Reigster ourselves with the requested viewport. the actual capture is deferred until rendering is completed
51//
52void ScreenshotCapture::Take(render::Viewport* const viewport)
53{
54 if (m_Viewport == nullptr)
55 {
56 m_Viewport = viewport;
57
58 m_Viewport->RegisterListener(this);
59 }
60 else
61 {
62 LOG("ScreenshotCapture::Take > some system is already taking a capture of a viewport!", core::LogLevel::Warning);
63 }
64}
65
66//---------------------------------
67// ScreenshotCapture::OnViewportPostFlush

Callers 1

OnTickMethod · 0.80

Calls 1

RegisterListenerMethod · 0.45

Tested by

no test coverage detected