blob: c1ffdd207ce8f281ba6fe441e51b275ae7cbcd77 (
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
|
#pragma once
#include <mbgl/renderer/sources/render_tile_source.hpp>
#include <mbgl/renderer/tile_pyramid.hpp>
#include <mbgl/style/sources/vector_source_impl.hpp>
namespace mbgl {
class RenderVectorSource final : public RenderTileSource {
public:
explicit RenderVectorSource(Immutable<style::VectorSource::Impl>);
void update(Immutable<style::Source::Impl>,
const std::vector<Immutable<style::LayerProperties>>&,
bool needsRendering,
bool needsRelayout,
const TileParameters&) final;
private:
const style::VectorSource::Impl& impl() const;
optional<Tileset> tileset;
};
template <>
inline bool RenderSource::is<RenderVectorSource>() const {
return baseImpl->type == style::SourceType::Vector;
}
} // namespace mbgl
|