From 7b02800ad908347133494f9f1334d2384d5ead48 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Thu, 2 Apr 2015 12:16:42 -0700 Subject: remove old symbol collision types --- src/mbgl/text/quads.hpp | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) (limited to 'src/mbgl/text/quads.hpp') diff --git a/src/mbgl/text/quads.hpp b/src/mbgl/text/quads.hpp index 19acd72f46..b47cc718b6 100644 --- a/src/mbgl/text/quads.hpp +++ b/src/mbgl/text/quads.hpp @@ -1,22 +1,46 @@ #ifndef MBGL_TEXT_QUADS #define MBGL_TEXT_QUADS -#include #include - #include +#include + namespace mbgl { + struct SymbolQuad { + explicit SymbolQuad(const vec2 &tl_, const vec2 &tr_, + const vec2 &bl_, const vec2 &br_, + const Rect &tex_, float angle_, const vec2 &anchor_, + float minScale_, float maxScale_) + : tl(tl_), + tr(tr_), + bl(bl_), + br(br_), + tex(tex_), + angle(angle_), + anchor(anchor_), + minScale(minScale_), + maxScale(maxScale_) {} + + vec2 tl, tr, bl, br; + Rect tex; + float angle; + vec2 anchor; + float minScale, maxScale; + }; + + typedef std::vector SymbolQuads; + struct Anchor; class StyleLayoutSymbol; class PositionedIcon; - PlacedGlyphs getIconQuads(Anchor &anchor, const PositionedIcon &shapedIcon, + SymbolQuads getIconQuads(Anchor &anchor, const PositionedIcon &shapedIcon, const std::vector &line, const StyleLayoutSymbol &layout, const bool alongLine); - PlacedGlyphs getGlyphQuads(Anchor &anchor, const Shaping &shapedText, + SymbolQuads getGlyphQuads(Anchor &anchor, const Shaping &shapedText, const float boxScale, const std::vector &line, const StyleLayoutSymbol &layout, const bool alongLine, const GlyphPositions &face); } -- cgit v1.2.1