summaryrefslogtreecommitdiff
path: root/include/mbgl/style/conversion/rotation.hpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2020-04-06 16:17:39 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-04-06 16:17:39 +0300
commitd1aff1c73f542f1ae17b76555b6343da4f1ae474 (patch)
treed773f299f8bab94a9ac454fd6288d4cc1a1decfb /include/mbgl/style/conversion/rotation.hpp
parent3911ef6a0f4a47343429482e0e37a90e5b2fd606 (diff)
downloadqtlocation-mapboxgl-upstream/galinelle_locationComponent_interpolate_rotation.tar.gz
Diffstat (limited to 'include/mbgl/style/conversion/rotation.hpp')
-rw-r--r--include/mbgl/style/conversion/rotation.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mbgl/style/conversion/rotation.hpp b/include/mbgl/style/conversion/rotation.hpp
new file mode 100644
index 0000000000..b250b6e947
--- /dev/null
+++ b/include/mbgl/style/conversion/rotation.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <mbgl/style/rotation.hpp>
+#include <mbgl/style/conversion.hpp>
+#include <mbgl/util/optional.hpp>
+
+namespace mbgl {
+namespace style {
+namespace conversion {
+
+template <>
+struct Converter<style::Rotation> {
+ optional<style::Rotation> operator()(const Convertible& value, Error& error) const;
+};
+
+} // namespace conversion
+} // namespace style
+} // namespace mbgl