2021-08-01 16:55:26 +04:30
|
|
|
#pragma once
|
|
|
|
|
2022-03-08 21:19:19 +03:30
|
|
|
#include "Panel.hpp"
|
|
|
|
#include "Scene/Entity.hpp"
|
2021-08-01 16:55:26 +04:30
|
|
|
|
|
|
|
namespace Light {
|
|
|
|
|
2022-03-06 22:25:23 +03:30
|
|
|
class PropertiesPanel: public Panel
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
Entity m_EntityContext;
|
|
|
|
|
|
|
|
public:
|
|
|
|
PropertiesPanel() = default;
|
|
|
|
~PropertiesPanel() = default;
|
2021-08-01 16:55:26 +04:30
|
|
|
|
2022-03-06 22:25:23 +03:30
|
|
|
void OnUserInterfaceUpdate();
|
2021-08-01 16:55:26 +04:30
|
|
|
|
2022-03-06 22:25:23 +03:30
|
|
|
void SetEntityContext(Entity entity);
|
2021-08-07 19:39:46 +04:30
|
|
|
|
2022-03-06 22:25:23 +03:30
|
|
|
private:
|
|
|
|
void DrawVec3Control(const std::string& label, glm::vec3& values, float resetValue = 0.0f, float columnWidth = 100.0f);
|
2021-08-10 11:45:35 +04:30
|
|
|
|
2022-03-06 22:25:23 +03:30
|
|
|
template<typename ComponentType, typename UIFunction>
|
|
|
|
void DrawComponent(const std::string& name, Entity entity, UIFunction function);
|
|
|
|
};
|
2021-08-01 16:55:26 +04:30
|
|
|
|
2021-08-10 11:45:35 +04:30
|
|
|
|
2022-03-06 22:25:23 +03:30
|
|
|
} // namespace Light
|