MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / OnFrame

Method OnFrame

ogsr_engine/xrGame/MainMenu.cpp:382–418  ·  view source on GitHub ↗

pureFrame

Source from the content-addressed store, hash-verified

380
381// pureFrame
382void CMainMenu::OnFrame()
383{
384 if (m_Flags.test(flNeedChangeCapture))
385 {
386 m_Flags.set(flNeedChangeCapture, FALSE);
387 if (m_Flags.test(flActive))
388 IR_Capture();
389 else
390 IR_Release();
391 }
392 CDialogHolder::OnFrame();
393
394 // screenshot stuff
395 if (m_Flags.test(flGameSaveScreenshot) && Device.dwFrame > m_screenshotFrame)
396 {
397 m_Flags.set(flGameSaveScreenshot, FALSE);
398
399 ::Render->Screenshot(IRender_interface::SM_FOR_GAMESAVE, m_screenshot_name);
400
401 if (g_pGameLevel && m_Flags.test(flActive))
402 {
403 Device.seqFrame.Remove(g_pGameLevel);
404 Device.seqRender.Remove(g_pGameLevel);
405 };
406
407 if (m_Flags.test(flRestoreConsole))
408 Console->Show();
409 }
410
411 if (IsActive())
412 CheckForErrorDlg();
413
414 if (languageChanged)
415 {
416 languageChanged = false;
417 }
418}
419
420void CMainMenu::OnDeviceCreate() {}
421

Callers

nothing calls this directly

Calls 7

OnFrameFunction · 0.85
IsActiveFunction · 0.85
testMethod · 0.45
setMethod · 0.45
ScreenshotMethod · 0.45
RemoveMethod · 0.45
ShowMethod · 0.45

Tested by

no test coverage detected