MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / runInternal

Method runInternal

Source/Falcor/Core/SampleApp.cpp:281–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void SampleApp::runInternal()
282{
283 // Load and run
284 onLoad(getRenderContext());
285
286 mProgressBar.close();
287
288 mFrameRate.reset();
289
290 // If a window was created, run the message loop, otherwise just run a render loop.
291 if (mpWindow)
292 {
293 mpWindow->msgLoop();
294 }
295 else
296 {
297 while (!mShouldTerminate)
298 handleRenderFrame();
299 }
300
301 onShutdown();
302}
303
304bool screenSizeUI(Gui::Widgets& widget, uint2& screenDims)
305{

Callers

nothing calls this directly

Calls 6

onLoadFunction · 0.85
onShutdownFunction · 0.85
msgLoopMethod · 0.80
getRenderContextFunction · 0.70
closeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected