Refactor new_editor window architecture and routing
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user