Files
MapLibreParticleLab/include/mbgl/style/image.hpp
John Firebaugh aa216d0025 [core] Don't use a separate SpriteAtlas for annotation images
Instead, just add them to the Style as needed. Includes changes from #8905 and takes care to avoid regressing #3817.
2017-05-26 11:21:56 -07:00

32 lines
617 B
C++

#pragma once
#include <mbgl/util/image.hpp>
#include <mbgl/util/immutable.hpp>
#include <string>
namespace mbgl {
namespace style {
class Image {
public:
Image(std::string id, PremultipliedImage&&, float pixelRatio, bool sdf = false);
Image(const Image&);
std::string getID() const;
const PremultipliedImage& getImage() const;
// Pixel ratio of the sprite image.
float getPixelRatio() const;
// Whether this image should be interpreted as a signed distance field icon.
bool isSdf() const;
class Impl;
Immutable<Impl> impl;
};
} // namespace style
} // namespace mbgl