Grindstone Game Engine v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
AssetPicker.hpp
1#pragma once
2
3#include <functional>
4#include <string>
5
6#include <Common/ResourcePipeline/AssetType.hpp>
7#include <Common/ResourcePipeline/Uuid.hpp>
8#include <Editor/AssetRegistry.hpp>
9
10namespace Grindstone::Editor::ImguiEditor {
12 public:
13 using AssetPickerCallback = std::function<void(Uuid, std::string)>;
14
15 void OpenPrompt(AssetType assetType, AssetPickerCallback callback);
16 void Render();
17 private:
18 bool isShowing = false;
19 AssetPickerCallback callback;
20 std::vector<AssetRegistry::Entry> assets;
21 std::vector<AssetRegistry::Entry> filteredResults;
22 std::string searchString;
23 };
24}
Definition Uuid.hpp:6