summaryrefslogtreecommitdiff
path: root/include/mbgl/sprite
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2017-04-21 14:52:19 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2017-04-24 15:52:28 -0700
commit5dd98df50ba1210b1eef0d8d6655713a725f2995 (patch)
treeb289bb3cbad5d1c3076816f4891a057d6089fc93 /include/mbgl/sprite
parent6f708ac5458fe332e25ca398431928b7ff5ba404 (diff)
downloadqtlocation-mapboxgl-5dd98df50ba1210b1eef0d8d6655713a725f2995.tar.gz
[all] Rationalize style::Image
A style has a collection of images, just as it has collections of sources and layers. * Name things appropriately * Use std::unique_ptr
Diffstat (limited to 'include/mbgl/sprite')
-rw-r--r--include/mbgl/sprite/sprite_image.hpp29
1 files changed, 0 insertions, 29 deletions
diff --git a/include/mbgl/sprite/sprite_image.hpp b/include/mbgl/sprite/sprite_image.hpp
deleted file mode 100644
index 05d9871bf9..0000000000
--- a/include/mbgl/sprite/sprite_image.hpp
+++ /dev/null
@@ -1,29 +0,0 @@
-#pragma once
-
-#include <mbgl/util/noncopyable.hpp>
-#include <mbgl/util/geo.hpp>
-#include <mbgl/util/image.hpp>
-
-#include <string>
-#include <memory>
-#include <cstdint>
-
-namespace mbgl {
-
-class SpriteImage : private util::noncopyable {
-public:
- SpriteImage(PremultipliedImage&&, float pixelRatio, bool sdf = false);
-
- 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;
-
- float getWidth() const { return image.size.width / pixelRatio; }
- float getHeight() const { return image.size.height / pixelRatio; }
-};
-
-} // namespace mbgl