#include "light.h" #include "location.h" Light::Light(std::shared_ptr type, const Location & position) : type {std::move(type)}, instance {this->type->instances.acquire(Renderable::commonLocationData.lock()->acquire(position))} { lightsEnable(this->type, instance->location.index); }