diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-10-19 13:19:52 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-10-22 09:21:30 -0700 |
commit | df89de5cc5bf043ca2fe57ef4dd9a7b5d25464cb (patch) | |
tree | ecac13b203cd45451aeff565cb11b179a5ef84d6 /src/mbgl/text/quads.cpp | |
parent | 83d39364f9de987d7840900db2e01673bc1ed6ef (diff) | |
download | qtlocation-mapboxgl-df89de5cc5bf043ca2fe57ef4dd9a7b5d25464cb.tar.gz |
[core] Rationalize style property classes: <type>{Paint,Layout}Properties
Diffstat (limited to 'src/mbgl/text/quads.cpp')
-rw-r--r-- | src/mbgl/text/quads.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mbgl/text/quads.cpp b/src/mbgl/text/quads.cpp index 61f5eef71a..35f224ac12 100644 --- a/src/mbgl/text/quads.cpp +++ b/src/mbgl/text/quads.cpp @@ -1,7 +1,7 @@ #include <mbgl/text/quads.hpp> #include <mbgl/text/shaping.hpp> #include <mbgl/geometry/anchor.hpp> -#include <mbgl/style/style_layout.hpp> +#include <mbgl/style/style_properties.hpp> #include <mbgl/util/math.hpp> #include <cassert> @@ -9,8 +9,8 @@ namespace mbgl { const float globalMinScale = 0.5f; // underscale by 1 zoom level -SymbolQuads getIconQuads(Anchor &anchor, const PositionedIcon &shapedIcon, - const std::vector<Coordinate> &line, const StyleLayoutSymbol &layout, +SymbolQuads getIconQuads(Anchor& anchor, const PositionedIcon& shapedIcon, + const std::vector<Coordinate>& line, const SymbolLayoutProperties& layout, const bool alongLine) { const float border = 1.0; @@ -128,9 +128,9 @@ void getSegmentGlyphs(std::back_insert_iterator<GlyphInstances> glyphs, Anchor & } } -SymbolQuads getGlyphQuads(Anchor &anchor, const Shaping &shapedText, - const float boxScale, const std::vector<Coordinate> &line, const StyleLayoutSymbol &layout, - const bool alongLine, const GlyphPositions &face) { +SymbolQuads getGlyphQuads(Anchor& anchor, const Shaping& shapedText, + const float boxScale, const std::vector<Coordinate>& line, const SymbolLayoutProperties& layout, + const bool alongLine, const GlyphPositions& face) { const float textRotate = layout.text.rotate * M_PI / 180; const bool keepUpright = layout.text.keep_upright; |