Files
MapLibreParticleLab/include/mbgl/style/image.hpp
2017-05-15 08:20:18 -07:00

30 lines
583 B
C++

#pragma once
#include <mbgl/util/image.hpp>
#include <mbgl/util/immutable.hpp>
namespace mbgl {
namespace style {
class Image {
public:
Image(PremultipliedImage&&, float pixelRatio, bool sdf = false);
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;
float getWidth() const;
float getHeight() const;
class Impl;
Immutable<Impl> impl;
};
} // namespace style
} // namespace mbgl