#pragma once #include #include #include #include #include #include #include class InspectorPanel : public sophia::Panel { public: // Stand-in for an asset browser: the textures a sprite can pick from. using TextureList = std::vector>; InspectorPanel(sophia::Entity& selected, const TextureList& textures) : Panel{{.name = "Inspector"}}, selected{selected}, textures{textures} {} void onUpdate(const sophia::FrameInfo& frameInfo) override; private: void drawTag(); void drawTransform(); void drawCamera(); void drawSprite(); void drawAddComponent(); sophia::Entity& selected; const TextureList& textures; };