MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / update

Function update

TheForceEngine/TFE_Editor/editor.cpp:572–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

570 }
571
572 bool update(bool consoleOpen, bool minimized, bool exiting)
573 {
574 // If the program is minimized, the editor should skip any processing.
575 if (minimized)
576 {
577 return s_exitEditor;
578 }
579 s_programExiting = exiting;
580
581 editor_clearUid();
582 thumbnail_update();
583
584 TFE_RenderBackend::clearWindow();
585
586 updateTooltips();
587 handlePopupBegin();
588 menu();
589
590 if (s_editorMode == EDIT_ASSET_BROWSER)
591 {
592 AssetBrowser::update();
593 }
594 else if (s_editorMode == EDIT_ASSET)
595 {
596 switch (s_editorAssetType)
597 {
598 case TYPE_LEVEL:
599 {
600 LevelEditor::update();
601 } break;
602 default:
603 {
604 // Invalid mode, this code should never be reached.
605 assert(0);
606 s_editorMode = EDIT_ASSET_BROWSER;
607 }
608 }
609 }
610
611 handlePopupEnd();
612
613 return s_exitEditor;
614 }
615
616 bool render()
617 {

Callers

nothing calls this directly

Calls 7

editor_clearUidFunction · 0.85
thumbnail_updateFunction · 0.85
clearWindowFunction · 0.85
updateTooltipsFunction · 0.85
handlePopupBeginFunction · 0.85
handlePopupEndFunction · 0.85
menuFunction · 0.70

Tested by

no test coverage detected