Fix editor scene persistence and XC scene workflow

This commit is contained in:
2026-03-26 01:26:26 +08:00
parent 39edb0b497
commit 0651666d8c
35 changed files with 1958 additions and 256 deletions

View File

@@ -1,6 +1,7 @@
#pragma once
#include <memory>
#include <string>
#include <imgui.h>
#include <d3d12.h>
#include <dxgi1_6.h>
@@ -23,6 +24,7 @@ public:
void Shutdown();
void Render();
void OnResize(int width, int height);
HWND GetWindowHandle() const { return m_hwnd; }
IEditorContext& GetEditorContext() const { return *m_editorContext; }
@@ -33,6 +35,7 @@ private:
bool CreateDevice();
bool CreateRenderTarget();
void CleanupRenderTarget();
void UpdateWindowTitle();
HWND m_hwnd = nullptr;
int m_width = 1280;
@@ -54,7 +57,8 @@ private:
Core::LayerStack m_layerStack;
EditorLayer* m_editorLayer = nullptr;
std::shared_ptr<IEditorContext> m_editorContext;
std::wstring m_lastWindowTitle;
};
}
}
}