light/Mirror/src/Panels/PropertiesPanel.h

30 lines
589 B
C
Raw Normal View History

#pragma once
#include "Panel.h"
#include "Scene/Entity.h"
namespace Light {
2022-03-06 22:25:23 +03:30
class PropertiesPanel: public Panel
{
private:
Entity m_EntityContext;
public:
PropertiesPanel() = default;
~PropertiesPanel() = default;
2022-03-06 22:25:23 +03:30
void OnUserInterfaceUpdate();
2022-03-06 22:25:23 +03:30
void SetEntityContext(Entity entity);
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);
2022-03-06 22:25:23 +03:30
template<typename ComponentType, typename UIFunction>
void DrawComponent(const std::string& name, Entity entity, UIFunction function);
};
2022-03-06 22:25:23 +03:30
} // namespace Light