From ecd4aa14397ed081a521d8412557724e52f277f3 Mon Sep 17 00:00:00 2001 From: Young Hahn Date: Fri, 10 Jun 2016 23:05:15 -0400 Subject: text-pitch-alignment (#5288) * First pass at port of https://github.com/mapbox/mapbox-gl-js/pull/2668 * RotationAlignmentType => AlignmentType * Handle undefined default value for text-pitch-alignment and implement inheritance for this value from text-rotation-alignment * Update dependencies * Move handling fo undefined default value out of camelize functions --- src/mbgl/text/quads.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/mbgl/text/quads.hpp') diff --git a/src/mbgl/text/quads.hpp b/src/mbgl/text/quads.hpp index 0627647f4c..e78fe308e2 100644 --- a/src/mbgl/text/quads.hpp +++ b/src/mbgl/text/quads.hpp @@ -17,21 +17,22 @@ class SymbolLayoutProperties; struct SymbolQuad { explicit SymbolQuad(const Point &tl_, const Point &tr_, const Point &bl_, const Point &br_, - const Rect &tex_, float angle_, const Point &anchorPoint_, + const Rect &tex_, float anchorAngle_, float glyphAngle_, const Point &anchorPoint_, float minScale_, float maxScale_) : tl(tl_), tr(tr_), bl(bl_), br(br_), tex(tex_), - angle(angle_), + anchorAngle(anchorAngle_), + glyphAngle(glyphAngle_), anchorPoint(anchorPoint_), minScale(minScale_), maxScale(maxScale_) {} Point tl, tr, bl, br; Rect tex; - float angle; + float anchorAngle, glyphAngle; Point anchorPoint; float minScale, maxScale; }; -- cgit v1.2.1