MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Run

Method Run

Sources/OvEditor/src/OvEditor/Core/ProjectHub.cpp:238–258  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238std::optional<OvEditor::Core::ProjectHubResult> OvEditor::Core::ProjectHub::Run()
239{
240 ProjectHubPanel panel;
241
242 m_uiManager->SetCanvas(m_canvas);
243 m_canvas.AddPanel(panel);
244
245 while (!m_window->ShouldClose())
246 {
247 m_device->PollEvents();
248 m_uiManager->Render();
249 m_window->SwapBuffers();
250
251 if (!panel.IsOpened())
252 {
253 m_window->SetShouldClose(true);
254 }
255 }
256
257 return panel.GetResult();
258}
259
260void OvEditor::Core::ProjectHub::SetupContext()
261{

Callers 3

TryRunFunction · 0.45
mainFunction · 0.45
OpenProjectFunction · 0.45

Calls 9

SetCanvasMethod · 0.80
AddPanelMethod · 0.80
ShouldCloseMethod · 0.80
PollEventsMethod · 0.80
SwapBuffersMethod · 0.80
SetShouldCloseMethod · 0.80
GetResultMethod · 0.80
RenderMethod · 0.45
IsOpenedMethod · 0.45

Tested by

no test coverage detected