feat: add audio system
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define EDITOR_ASSETBROWSER_H
|
||||
|
||||
#include <filesystem>
|
||||
#include <future>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -10,6 +11,8 @@ class AssetBrowser final {
|
||||
public:
|
||||
std::optional<std::string> Draw(bool* open = nullptr);
|
||||
|
||||
void ConfigureCooking(std::filesystem::path cooker, std::vector<std::string> schemes);
|
||||
|
||||
private:
|
||||
struct Entry {
|
||||
std::string name;
|
||||
@@ -17,6 +20,8 @@ private:
|
||||
};
|
||||
|
||||
void Refresh();
|
||||
void StartCook();
|
||||
void PollCook();
|
||||
void Navigate(const std::string& scheme, const std::filesystem::path& folder);
|
||||
[[nodiscard]] std::string VirtualPath(const std::string& name) const;
|
||||
void DrawEntry(const Entry& entry, std::optional<std::string>& opened, bool& navigated);
|
||||
@@ -27,6 +32,11 @@ private:
|
||||
std::vector<Entry> m_Entries;
|
||||
std::string m_Filter;
|
||||
bool m_Dirty{true};
|
||||
|
||||
std::filesystem::path m_Cooker;
|
||||
std::vector<std::string> m_CookSchemes;
|
||||
std::future<bool> m_Cook;
|
||||
bool m_AppFocused{true};
|
||||
};
|
||||
|
||||
#endif // EDITOR_ASSETBROWSER_H
|
||||
|
||||
Reference in New Issue
Block a user