Refactor new_editor window architecture and routing

This commit is contained in:
2026-04-23 14:11:33 +08:00
parent 5c0a878aa0
commit af5690395d
121 changed files with 1647 additions and 1592 deletions

View File

@@ -1,7 +1,7 @@
#include "Features/Scene/SceneViewportFeature.h"
#include "Composition/EditorPanelIds.h"
#include "Ports/TexturePort.h"
#include "Rendering/Host/UiTextureHost.h"
#include "Rendering/Viewport/ViewportHostService.h"
#include "Scene/EditorSceneRuntime.h"
#include "State/EditorCommandFocusService.h"
@@ -10,7 +10,7 @@ namespace XCEngine::UI::Editor::App {
void SceneViewportFeature::Initialize(
const std::filesystem::path& repoRoot,
Ports::TexturePort& textureHost,
Rendering::Host::UiTextureHost& textureHost,
const BuiltInIcons* builtInIcons,
ViewportHostService& viewportHostService) {
viewportHostService.SetContentRenderer(
@@ -21,7 +21,7 @@ void SceneViewportFeature::Initialize(
}
void SceneViewportFeature::Shutdown(
Ports::TexturePort& textureHost,
Rendering::Host::UiTextureHost& textureHost,
ViewportHostService& viewportHostService) {
viewportHostService.SetContentRenderer(kScenePanelId, nullptr, {});
m_controller.Shutdown(textureHost);