30 lines
753 B
C++
30 lines
753 B
C++
#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 style::CascadeParameters&) final {}
|
|
bool evaluate(const style::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;
|
|
}
|
|
|
|
}
|