[core] render light
This commit is contained in:
committed by
Ivo van Dongen
parent
1c9af3226f
commit
20810f988a
25
src/mbgl/renderer/render_light.cpp
Normal file
25
src/mbgl/renderer/render_light.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <mbgl/renderer/render_light.hpp>
|
||||
|
||||
namespace mbgl {
|
||||
|
||||
RenderLight::RenderLight(const style::Light light_)
|
||||
: light(std::move(light_)) {
|
||||
}
|
||||
|
||||
void RenderLight::transition(const CascadeParameters& parameters) {
|
||||
transitioning = TransitioningLight(light, std::move(transitioning), parameters);
|
||||
}
|
||||
|
||||
void RenderLight::evaluate(const PropertyEvaluationParameters& parameters) {
|
||||
evaluated = EvaluatedLight(transitioning, parameters);
|
||||
}
|
||||
|
||||
bool RenderLight::hasTransition() const {
|
||||
return transitioning.hasTransition();
|
||||
}
|
||||
|
||||
const EvaluatedLight& RenderLight::getEvaluated() const {
|
||||
return evaluated;
|
||||
}
|
||||
|
||||
} // namespace mbgl
|
||||
Reference in New Issue
Block a user