summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/update_parameters.hpp
blob: 6e78acfa07152d7cb32bd6e46efffc2f38cb17cb (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
#pragma once

#include <mbgl/map/mode.hpp>
#include <mbgl/map/update.hpp>

namespace mbgl {

class TransformState;
class Scheduler;
class FileSource;
class AnnotationManager;

class UpdateParameters {
public:
    const MapMode mode;
    const float pixelRatio;
    const MapDebugOptions debugOptions;
    const TimePoint timePoint;

    const std::string glyphURL;
    const bool spriteLoaded;
    const style::TransitionOptions transitionOptions;
    const Immutable<style::Light::Impl> light;
    const std::vector<Immutable<style::Image::Impl>> images;
    const std::vector<Immutable<style::Source::Impl>> sources;
    const std::vector<Immutable<style::Layer::Impl>> layers;

    Scheduler& scheduler;
    FileSource& fileSource;
    AnnotationManager& annotationManager;
    const TransformState& transformState;
};

} // namespace mbgl