feat: update editor ui framework and assets

This commit is contained in:
2026-03-28 15:07:19 +08:00
parent 4a12e26860
commit 4717b595c4
45 changed files with 2434 additions and 461 deletions

View File

@@ -0,0 +1,31 @@
#pragma once
#include <imgui.h>
struct ID3D12Device;
struct ID3D12CommandQueue;
namespace XCEngine {
namespace Editor {
namespace UI {
class ImGuiBackendBridge;
enum class AssetIconKind {
Folder,
File,
GameObject
};
void InitializeBuiltInIcons(
ImGuiBackendBridge& backend,
ID3D12Device* device,
ID3D12CommandQueue* commandQueue);
void ShutdownBuiltInIcons();
void DrawAssetIcon(ImDrawList* drawList, const ImVec2& min, const ImVec2& max, AssetIconKind kind);
} // namespace UI
} // namespace Editor
} // namespace XCEngine