[core] delegate light changes to render light
This commit is contained in:
committed by
Ivo van Dongen
parent
feae5e22ee
commit
6fd40867d6
@@ -2,12 +2,21 @@
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
RenderLight::RenderLight(const style::Light light_)
|
||||
: light(std::move(light_)) {
|
||||
RenderLight::RenderLight(std::shared_ptr<const style::Light::Impl> impl_)
|
||||
: impl(std::move(impl_)) {
|
||||
}
|
||||
|
||||
RenderLight::RenderLight(std::shared_ptr<const style::Light::Impl> impl_, const TransitioningLight transitioning_)
|
||||
: impl(std::move(impl_))
|
||||
, transitioning(transitioning_) {
|
||||
}
|
||||
|
||||
std::unique_ptr<RenderLight> RenderLight::copy(std::shared_ptr<const style::Light::Impl> impl_) const {
|
||||
return std::make_unique<RenderLight>(std::move(impl_), transitioning);
|
||||
}
|
||||
|
||||
void RenderLight::transition(const CascadeParameters& parameters) {
|
||||
transitioning = TransitioningLight(light.properties, std::move(transitioning), parameters);
|
||||
transitioning = TransitioningLight(impl->properties, std::move(transitioning), parameters);
|
||||
}
|
||||
|
||||
void RenderLight::evaluate(const PropertyEvaluationParameters& parameters) {
|
||||
|
||||
Reference in New Issue
Block a user