feat: update editor ui framework and assets
This commit is contained in:
31
editor/src/UI/BuiltInIcons.h
Normal file
31
editor/src/UI/BuiltInIcons.h
Normal 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
|
||||
Reference in New Issue
Block a user