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,6 +1,6 @@
#include "Features/Scene/SceneViewportToolOverlay.h"
#include "Ports/TexturePort.h"
#include "Rendering/Host/UiTextureHost.h"
#include <XCEditor/Widgets/UIEditorTextLayout.h>
@@ -202,7 +202,7 @@ UIRect BuildToggleButtonRect(
bool SceneViewportToolOverlay::Initialize(
const std::filesystem::path& repoRoot,
Ports::TexturePort& renderer) {
Rendering::Host::UiTextureHost& renderer) {
Shutdown(renderer);
const std::filesystem::path iconRoot =
@@ -232,7 +232,7 @@ bool SceneViewportToolOverlay::Initialize(
return loadedAnyTexture;
}
void SceneViewportToolOverlay::Shutdown(Ports::TexturePort& renderer) {
void SceneViewportToolOverlay::Shutdown(Rendering::Host::UiTextureHost& renderer) {
for (ToolTextureSet& textureSet : m_toolTextures) {
renderer.ReleaseTexture(textureSet.inactiveTexture);
renderer.ReleaseTexture(textureSet.activeTexture);