summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/layout.hpp
blob: de2d28728f1e2f1ece557940f1cf658292bb200d (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
30
31
32
33
34
35
36
#pragma once

#include <mbgl/style/layer_type.hpp>
#include <mbgl/renderer/image_atlas.hpp>
#include <mbgl/text/glyph_atlas.hpp>
#include <memory>

namespace mbgl {

class Bucket;
class BucketParameters;
class RenderLayer;
class FeatureIndex;

class Layout {
public:
    Layout() = default;
    virtual ~Layout() = default;

    virtual void createBucket(const ImagePositions&,
                              std::unique_ptr<FeatureIndex>&,
                              std::unordered_map<std::string, std::shared_ptr<Bucket>>&,
                              const bool,
                              const bool) = 0;

    virtual void prepareSymbols(const GlyphMap&, const GlyphPositions&,
                                const ImageMap&, const ImagePositions&) {};

    virtual bool hasSymbolInstances() const {
        return true;
    };
    
    virtual bool hasDependencies() const = 0;
};

} // namespace mbgl