blob: cb728fecb303fc8231ce242d1956f415f0d51eed (
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
|
#pragma once
#include <mbgl/renderer/render_layer.hpp>
#include <mbgl/style/layers/custom_layer.hpp>
namespace mbgl {
class RenderCustomLayer: public RenderLayer {
public:
RenderCustomLayer(const style::CustomLayer::Impl&);
~RenderCustomLayer() final = default;
std::unique_ptr<RenderLayer> clone() const override;
void cascade(const CascadeParameters&) final {}
bool evaluate(const PropertyEvaluationParameters&) final;
std::unique_ptr<Bucket> createBucket(const BucketParameters&, const std::vector<const RenderLayer*>&) const final;
const style::CustomLayer::Impl* const impl;
};
template <>
inline bool RenderLayer::is<RenderCustomLayer>() const {
return type == style::LayerType::Custom;
}
}
|