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

Function enable

TheForceEngine/TFE_Editor/editor.cpp:114–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 }
113
114 void enable()
115 {
116 // Ui begin/render is called so we have a "UI Frame" in which to setup UI state.
117 s_editorMode = EDIT_ASSET_BROWSER;
118 s_exitEditor = false;
119 s_programExiting = false;
120 loadFonts();
121 loadIcons();
122 loadConfig();
123 AssetBrowser::init();
124 TFE_RenderShared::modelDraw_init();
125 thumbnail_init(64);
126 TFE_Polygon::clipInit();
127 s_msgBox = MessageBox{};
128 s_gpuImages.clear();
129 }
130
131 bool disable()
132 {

Callers 1

setAppStateFunction · 0.50

Calls 8

loadFontsFunction · 0.85
loadIconsFunction · 0.85
loadConfigFunction · 0.85
modelDraw_initFunction · 0.85
thumbnail_initFunction · 0.85
clipInitFunction · 0.85
initFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected