MCPcopy Create free account
hub / github.com/NVIDIA-RTX/RTXPT / PreAnim

Method PreAnim

Rtxpt/SampleCommon/CaptureScriptManager.cpp:196–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void CaptureScriptManager::PreAnim(float& fElapsedTimeSeconds)
197{
198 // don't start anything until everything is loaded
199 if (m_app.HasAsyncLoadingInProgress())
200 return;
201
202 if (m_start && !m_screenshotFileName.empty())
203 {
204 m_app.SetSceneTime(m_sequenceBeginTime);
205 m_start = false;
206 m_active = true;
207 m_resetAndWarmupCounter = -1;
208 }
209 if (m_active && m_type == 1)
210 fElapsedTimeSeconds = m_sequenceDeltaTime;
211}
212
213void CaptureScriptManager::PostAnim()
214{

Callers 1

AnimateMethod · 0.80

Calls 3

emptyMethod · 0.80
SetSceneTimeMethod · 0.80

Tested by

no test coverage detected