Monad Engine da02fba2
> Undercity Codex_
Loading...
Searching...
No Matches
LightComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "scene/Component.h"
4
5#include <glm/vec3.hpp>
6
7namespace eng
8{
9 class LightComponent : public Component
10 {
12 public:
13 void LoadProperties(const nlohmann::json& json) override;
14 void Update(float deltaTime) override;
15
16 void SetColor(const glm::vec3& color);
17 const glm::vec3& GetColor() const;
18
19 private:
20 glm::vec3 m_color = glm::vec3(1.0f);
21 };
22}
void LoadProperties(const nlohmann::json &json) override
void Update(float deltaTime) override
const glm::vec3 & GetColor() const
void SetColor(const glm::vec3 &color)
#define COMPONENT(ComponentClass)
Definition Component.h:105