changes for ImGui

This commit is contained in:
2026-09-15 02:23:22 -07:00
parent 12a1e6eca9
commit 05fe3c2ee8
14 changed files with 593 additions and 6 deletions
@@ -0,0 +1,23 @@
#pragma once
#include <entt/entt.hpp>
#include <sophia/frame_info.hpp>
#include <sophia/ui/panel.hpp>
#include <vector>
namespace sophia {
class EcsInspectorPanel : public Panel {
public:
explicit EcsInspectorPanel(entt::registry& registry)
: Panel{"ECS Inspector"}, registry{registry} {}
void onUpdate(const FrameInfo& frameInfo) override;
private:
entt::registry& registry;
entt::entity selected = entt::null;
std::vector<entt::entity> entityScratch;
};
} // namespace sophia