summaryrefslogtreecommitdiff
path: root/src/mbgl/style/layers/background_layer_properties.cpp
blob: f0da811379f24dfddd1a630a840e9a6ba8674c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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;

const BackgroundLayer::Impl& BackgroundLayerProperties::layerImpl() const {
    return static_cast<const BackgroundLayer::Impl&>(*baseImpl);
}

} // namespace style
} // namespace mbgl