diff options
Diffstat (limited to 'src/mbgl/layer/background_layer.hpp')
-rw-r--r-- | src/mbgl/layer/background_layer.hpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/mbgl/layer/background_layer.hpp b/src/mbgl/layer/background_layer.hpp deleted file mode 100644 index 39142a3bd3..0000000000 --- a/src/mbgl/layer/background_layer.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#pragma once - -#include <mbgl/style/style_layer.hpp> -#include <mbgl/style/paint_property.hpp> - -namespace mbgl { - -class BackgroundPaintProperties { -public: - PaintProperty<float> backgroundOpacity { 1.0f }; - PaintProperty<Color> backgroundColor { {{ 0, 0, 0, 1 }} }; - PaintProperty<std::string, CrossFadedFunctionEvaluator> backgroundPattern { "" }; -}; - -class BackgroundLayer : public StyleLayer { -public: - BackgroundLayer() : StyleLayer(Type::Background) {} - std::unique_ptr<StyleLayer> clone() const override; - - void parseLayout(const JSValue&) override {}; - void parsePaints(const JSValue&) override; - - void cascade(const StyleCascadeParameters&) override; - bool recalculate(const StyleCalculationParameters&) override; - - std::unique_ptr<Bucket> createBucket(StyleBucketParameters&) const override; - - BackgroundPaintProperties paint; -}; - -template <> -inline bool StyleLayer::is<BackgroundLayer>() const { - return type == Type::Background; -} - -} // namespace mbgl |