light/modules/mirror/public/panels/asset_browser.hpp
light7734 cd886aa8c9
Some checks reported errors
continuous-integration/drone/push Build was killed
refactor: flatten directory structure
2025-07-20 04:46:15 +03:30

47 lines
685 B
C++

#pragma once
#include <filesystem>
#include <mirror/panels/panel.hpp>
#include <renderer/texture.hpp>
namespace lt {
class Scene;
class AssetBrowserPanel: public Panel
{
public:
AssetBrowserPanel(Ref<Scene> active_scene);
void on_user_interface_update();
private:
enum class AssetType
{
none = 0,
scene,
directory,
text,
image,
};
std::filesystem::path m_current_directory;
const std::filesystem::path m_assets_path;
float m_file_size = 128.0f;
float m_file_padding = 8.0f;
Ref<Scene> m_active_scene;
Ref<Texture> m_directory_texture;
Ref<Texture> m_scene_texture;
Ref<Texture> m_image_texture;
Ref<Texture> m_text_texture;
};
} // namespace lt