Files
MapLibreParticleLab/src/mbgl/gl/custom_layer_impl.hpp
Bart Louwers 71f6da2722 Add clang-format (#1086)
Co-authored-by: mwilsnd <mwilsnd@gmail.com>
2023-05-01 16:57:37 +02:00

35 lines
797 B
C++

#pragma once
#include <mbgl/gl/custom_layer.hpp>
#include <mbgl/style/layer_impl.hpp>
#include <mbgl/style/layer_properties.hpp>
#include <memory>
namespace mbgl {
class TransformState;
namespace style {
class CustomLayer::Impl : public Layer::Impl {
public:
Impl(const std::string& id, std::unique_ptr<CustomLayerHost> host);
bool hasLayoutDifference(const Layer::Impl&) const override;
void stringifyLayout(rapidjson::Writer<rapidjson::StringBuffer>&) const override;
std::shared_ptr<CustomLayerHost> host;
DECLARE_LAYER_TYPE_INFO;
};
class CustomLayerProperties final : public LayerProperties {
public:
explicit CustomLayerProperties(Immutable<CustomLayer::Impl> impl)
: LayerProperties(std::move(impl)) {}
};
} // namespace style
} // namespace mbgl