2023-03-09 17:39:57 +01:00
|
|
|
#include "PointLightActor.h"
|
|
|
|
|
|
|
|
|
|
using namespace Seele;
|
|
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
PointLightActor::PointLightActor(PScene scene) : Actor(scene) { attachComponent<Component::PointLight>(); }
|
2023-03-09 17:39:57 +01:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
PointLightActor::PointLightActor(PScene scene, Vector position, Vector color, float attenuation) : Actor(scene) {
|
2024-02-01 17:07:51 +01:00
|
|
|
attachComponent<Component::PointLight>(Vector4(position, 1), Vector4(color, attenuation));
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
PointLightActor::~PointLightActor() {}
|
2023-03-09 17:39:57 +01:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
Component::PointLight& PointLightActor::getPointLightComponent() { return accessComponent<Component::PointLight>(); }
|
2023-03-09 17:39:57 +01:00
|
|
|
|
2024-06-09 12:20:04 +02:00
|
|
|
const Component::PointLight& PointLightActor::getPointLightComponent() const { return accessComponent<Component::PointLight>(); }
|