blob: aa2cad8278d0dab8d8bb3f5443764370e52aa07b (
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
|
#pragma once
#include <mbgl/style/image.hpp>
namespace mbgl {
namespace style {
class Image::Impl {
public:
Impl(std::string id, PremultipliedImage&&, float pixelRatio, bool sdf = false);
const std::string id;
PremultipliedImage image;
// Pixel ratio of the sprite image.
const float pixelRatio;
// Whether this image should be interpreted as a signed distance field icon.
const bool sdf;
};
} // namespace style
} // namespace mbgl
|