Refactor new editor boundaries and test ownership

This commit is contained in:
2026-04-19 15:52:28 +08:00
parent dc13b56cf3
commit 93f06e84ed
279 changed files with 6349 additions and 3238 deletions

View File

@@ -1,6 +1,6 @@
#include "Features/Scene/SceneViewportToolOverlay.h"
#include "Host/TextureHost.h"
#include "Ports/TexturePort.h"
#include <algorithm>
#include <array>
@@ -57,7 +57,7 @@ UIRect BuildButtonRect(const UIRect& panelRect, std::size_t index) {
bool SceneViewportToolOverlay::Initialize(
const std::filesystem::path& repoRoot,
Host::TextureHost& renderer) {
Ports::TexturePort& renderer) {
Shutdown(renderer);
const std::filesystem::path iconRoot =
@@ -87,7 +87,7 @@ bool SceneViewportToolOverlay::Initialize(
return loadedAnyTexture;
}
void SceneViewportToolOverlay::Shutdown(Host::TextureHost& renderer) {
void SceneViewportToolOverlay::Shutdown(Ports::TexturePort& renderer) {
for (ToolTextureSet& textureSet : m_toolTextures) {
renderer.ReleaseTexture(textureSet.inactiveTexture);
renderer.ReleaseTexture(textureSet.activeTexture);