Decouple editor render runtime factory

This commit is contained in:
2026-04-26 19:21:38 +08:00
parent caa54b7878
commit fa4fcbe95b
15 changed files with 120 additions and 46 deletions

View File

@@ -9,6 +9,7 @@
#include <cstdint>
#include <filesystem>
#include <memory>
#include <string>
namespace XCEngine::UI::Editor::Rendering::Host {
@@ -68,4 +69,11 @@ public:
const std::filesystem::path* captureOutputPath) = 0;
};
class EditorWindowRenderRuntimeFactory {
public:
virtual ~EditorWindowRenderRuntimeFactory() = default;
virtual std::unique_ptr<EditorWindowRenderRuntime> CreateWindowRenderRuntime() = 0;
};
} // namespace XCEngine::UI::Editor::Rendering::Host