light/modules/mirror/include/mirror/panel/scene_hierarchy.hpp

34 lines
650 B
C++
Raw Normal View History

2022-03-08 21:19:19 +03:30
#pragma once
2025-07-05 13:28:41 +03:30
#include <engine/scene/entity.hpp>
#include <engine/scene/scene.hpp>
#include <mirror/panel/panel.hpp>
2022-03-08 21:19:19 +03:30
namespace Light {
class PropertiesPanel;
class SceneHierarchyPanel: public Panel
{
public:
SceneHierarchyPanel();
2025-07-06 14:02:50 +03:30
2025-07-06 16:52:50 +03:30
SceneHierarchyPanel(Ref<Scene> context, Ref<PropertiesPanel> properties_panel = nullptr);
2022-03-08 21:19:19 +03:30
void on_user_interface_update();
2022-03-08 21:19:19 +03:30
2025-07-06 16:52:50 +03:30
void set_context(Ref<Scene> context, Ref<PropertiesPanel> properties_panel = nullptr);
2022-03-08 21:19:19 +03:30
private:
void draw_node(Entity entity, const std::string &label);
Ref<Scene> m_context;
Ref<PropertiesPanel> m_properties_panel_context;
Entity m_selection_context;
2022-03-08 21:19:19 +03:30
};
} // namespace Light