Color class (#5361)

* Color class

* Switch to list initialization
This commit is contained in:
Young Hahn
2016-06-15 11:38:22 -04:00
committed by GitHub
parent fe64238b4c
commit 24b66bc8cd
40 changed files with 105 additions and 62 deletions

View File

@@ -13,6 +13,7 @@
#include <mbgl/style/layers/raster_layer_impl.hpp>
#include <mbgl/style/layers/symbol_layer.hpp>
#include <mbgl/style/layers/symbol_layer_impl.hpp>
#include <mbgl/util/color.hpp>
using namespace mbgl;
using namespace mbgl::style;
@@ -28,7 +29,7 @@ template <class T, class... Params> void testClone(Params... params) {
EXPECT_EQ("test", layer->baseImpl->clone()->getID());
}
const auto color = PropertyValue<Color> {{{ 1, 0, 0, 1 }}};
const auto color = PropertyValue<Color> {{ 1, 0, 0, 1 }};
const auto opacity = PropertyValue<float> { 1.0f };
const auto radius = PropertyValue<float> { 1.0f };
const auto blur = PropertyValue<float> { 1.0f };