diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-01-24 10:40:50 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2019-04-17 17:21:41 +0300 |
commit | 1a66a02097f0e3c95a4d06610fc0b7609f6d77b9 (patch) | |
tree | e6a0c00bb8b45497df58fc5088319800139c10ee /src/mbgl/style/layers/raster_layer_properties.hpp | |
parent | cd5f87e9d2f373d1a6c7797de767e545b52cddcc (diff) | |
download | qtlocation-mapboxgl-1a66a02097f0e3c95a4d06610fc0b7609f6d77b9.tar.gz |
[core] Introduce `style::LayerProperties` interface and its implementations
Diffstat (limited to 'src/mbgl/style/layers/raster_layer_properties.hpp')
-rw-r--r-- | src/mbgl/style/layers/raster_layer_properties.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mbgl/style/layers/raster_layer_properties.hpp b/src/mbgl/style/layers/raster_layer_properties.hpp index 08818c9fb3..c380ea471d 100644 --- a/src/mbgl/style/layers/raster_layer_properties.hpp +++ b/src/mbgl/style/layers/raster_layer_properties.hpp @@ -3,6 +3,8 @@ #pragma once #include <mbgl/style/types.hpp> +#include <mbgl/style/layer_properties.hpp> +#include <mbgl/style/layers/raster_layer.hpp> #include <mbgl/style/layout_property.hpp> #include <mbgl/style/paint_property.hpp> #include <mbgl/style/properties.hpp> @@ -55,5 +57,18 @@ class RasterPaintProperties : public Properties< RasterFadeDuration > {}; +class RasterLayerProperties final : public LayerProperties { +public: + explicit RasterLayerProperties(Immutable<RasterLayer::Impl>); + RasterLayerProperties( + Immutable<RasterLayer::Impl>, + RasterPaintProperties::PossiblyEvaluated); + ~RasterLayerProperties() override; + + const RasterLayer::Impl& layerImpl() const; + // Data members. + RasterPaintProperties::PossiblyEvaluated evaluated; +}; + } // namespace style } // namespace mbgl |