Files
MapLibreParticleLab/src/mbgl/style/layers/background_layer_properties.cpp
Mikhail Pozdnyakov c144591322 [core] Introduce LayerProperties::constantsMask()
Constants mask for data-driven paint properties is a reliable
criteria of whether the given updated properties can still be used
with the existing bucket (and the gl program instance).
2019-07-02 16:05:09 +03:00

34 lines
1.0 KiB
C++

// This file is generated. Edit scripts/generate-style-code.js, then run `make style-code`.
#include <mbgl/style/layers/background_layer_properties.hpp>
#include <mbgl/style/layers/background_layer_impl.hpp>
namespace mbgl {
namespace style {
BackgroundLayerProperties::BackgroundLayerProperties(
Immutable<BackgroundLayer::Impl> impl_)
: LayerProperties(std::move(impl_)) {}
BackgroundLayerProperties::BackgroundLayerProperties(
Immutable<BackgroundLayer::Impl> impl_,
CrossfadeParameters crossfade_,
BackgroundPaintProperties::PossiblyEvaluated evaluated_)
: LayerProperties(std::move(impl_)),
crossfade(std::move(crossfade_)),
evaluated(std::move(evaluated_)) {}
BackgroundLayerProperties::~BackgroundLayerProperties() = default;
unsigned long BackgroundLayerProperties::constantsMask() const {
return evaluated.constantsMask();
}
const BackgroundLayer::Impl& BackgroundLayerProperties::layerImpl() const {
return static_cast<const BackgroundLayer::Impl&>(*baseImpl);
}
} // namespace style
} // namespace mbgl