summaryrefslogtreecommitdiff
path: root/include/mbgl/style
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2014-08-28 10:34:10 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2014-08-28 10:43:53 -0700
commit9f734ee61d74eec08d92a108a2a2bc2930052ba3 (patch)
tree344a9a72fd27ec5177dd74271b53944bd24d96c0 /include/mbgl/style
parente2c2ab843e5532b5bf627370ed8037121b961a8d (diff)
downloadqtlocation-mapboxgl-9f734ee61d74eec08d92a108a2a2bc2930052ba3.tar.gz
background-opacity support
Diffstat (limited to 'include/mbgl/style')
-rw-r--r--include/mbgl/style/property_key.hpp1
-rw-r--r--include/mbgl/style/style_properties.hpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/style/property_key.hpp b/include/mbgl/style/property_key.hpp
index ec68ea991e..28aa800607 100644
--- a/include/mbgl/style/property_key.hpp
+++ b/include/mbgl/style/property_key.hpp
@@ -60,6 +60,7 @@ enum class PropertyKey {
RasterContrast,
RasterFade,
+ BackgroundOpacity,
BackgroundColor
};
diff --git a/include/mbgl/style/style_properties.hpp b/include/mbgl/style/style_properties.hpp
index bbe8812bc7..891406ff8b 100644
--- a/include/mbgl/style/style_properties.hpp
+++ b/include/mbgl/style/style_properties.hpp
@@ -92,6 +92,7 @@ struct RasterProperties {
struct BackgroundProperties {
inline BackgroundProperties() {}
+ float opacity = 1.0f;
Color color = {{ 0, 0, 0, 1 }};
};