blob: 6bc23f0759e7066c242b6b28b7062d0b64ad9ab4 (
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
37
38
39
40
41
42
43
44
45
|
#pragma once
#include <mbgl/style/layer_impl.hpp>
#include <mbgl/style/layers/custom_layer.hpp>
namespace mbgl {
class TransformState;
namespace style {
class CustomLayer::Impl : public Layer::Impl {
public:
virtual ~Impl();
Impl(const std::string& id,
CustomLayerInitializeFunction,
CustomLayerRenderFunction,
CustomLayerContextLostFunction,
CustomLayerDeinitializeFunction,
CustomLayerContextOwnerChangedFunction,
CustomLayerContextAttachFunction,
CustomLayerContextDetachFunction,
void* context);
bool hasLayoutDifference(const Layer::Impl&) const override;
void stringifyLayout(rapidjson::Writer<rapidjson::StringBuffer>&) const override;
CustomLayerInitializeFunction initializeFn = nullptr;
CustomLayerRenderFunction renderFn = nullptr;
CustomLayerContextLostFunction contextLostFn = nullptr;
CustomLayerDeinitializeFunction deinitializeFn = nullptr;
CustomLayerContextOwnerChangedFunction changeOwnerFn = nullptr;
CustomLayerContextAttachFunction attachFn = nullptr;
CustomLayerContextDetachFunction detachFn = nullptr;
void* context = nullptr;
void didSetObserver(bool didSet) const;
};
} // namespace style
} // namespace mbgl
|