diff options
author | Minh Nguyễn <mxn@1ec5.org> | 2018-03-30 03:21:44 -0700 |
---|---|---|
committer | Minh Nguyễn <mxn@1ec5.org> | 2018-03-30 15:36:32 -0700 |
commit | d066e94103e7e21dbd795a986659fc729aa53a4e (patch) | |
tree | 7819e62d61cb093a20dee2aa510a921f3887bf21 /include/mbgl | |
parent | f4d9fb816d4a22bcc17a07452a926f4f06e75d3b (diff) | |
download | qtlocation-mapboxgl-d066e94103e7e21dbd795a986659fc729aa53a4e.tar.gz |
[core] Fixed to-rgba with zero opacity
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/util/color.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/util/color.hpp b/include/mbgl/util/color.hpp index 300d7fae82..01a4c8f292 100644 --- a/include/mbgl/util/color.hpp +++ b/include/mbgl/util/color.hpp @@ -4,6 +4,7 @@ #include <cassert> #include <string> +#include <array> namespace mbgl { @@ -37,6 +38,7 @@ public: static optional<Color> parse(const std::string&); std::string stringify() const; + std::array<double, 4> toArray() const; }; inline bool operator==(const Color& colorA, const Color& colorB) { |