MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / OnEndFrame

Method OnEndFrame

Engine/Editor/Source/UI/EditorUI.cpp:854–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852 {
853 if (!ImGui::DockBuilderGetNode(DockspaceID))
854 {
855 ImGui::DockBuilderAddNode(DockspaceID, ImGuiDockNodeFlags_DockSpace);
856 ImGui::DockBuilderSetNodeSize(DockspaceID, ImGui::GetContentRegionAvail());
857 ImGui::DockBuilderFinish(DockspaceID);
858
859 // The Content Browser and Output Log default to footer drawers rather than a permanent bottom split.
860 ImGui::DockBuilderDockWindow(*WorldEditorTool->GetToolName(), DockspaceID);
861 }
862
863 // Resolved before DockSpace() consumes the node, and used by SubmitToolMainWindow later this frame.
864 if (PendingBottomDockTool != nullptr)
865 {
866 PendingBottomDockTool->DesiredDockID = GetOrCreateBottomDockID(PendingBottomDockHeightFrac);
867 PendingBottomDockTool = nullptr;
868 }
869
870 // Create the actual dock space
871 ImGui::PushStyleVar(ImGuiStyleVar_TabRounding, 0);
872 ImGui::DockSpace(DockspaceID, viewport->WorkSize, 0, &EditorWindowClass);
873 ImGui::PopStyleVar();
874 }
875

Callers

nothing calls this directly

Calls 5

IsKeyPressedFunction · 0.50
GetFunction · 0.50
EndFrameMethod · 0.45
SetMouseModeMethod · 0.45
BroadcastMethod · 0.45

Tested by

no test coverage detected