blob: 455d5b5ad3cc5e7684a728ed95c853028b5f7890 (
plain)
1
2
3
4
5
6
7
8
9
|
#include "light.h"
#include "location.h"
Light::Light(std::shared_ptr<const Illuminator> type, const Location & position) :
type {std::move(type)},
instance {this->type->instances.acquire(Renderable::commonLocationData.lock()->acquire(position))}
{
lightsEnable(this->type, instance->location.index);
}
|