#ifndef MBGL_TEXT_QUADS #define MBGL_TEXT_QUADS #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 &anchorPoint_, float minScale_, float maxScale_) : tl(tl_), tr(tr_), bl(bl_), br(br_), tex(tex_), angle(angle_), anchorPoint(anchorPoint_), minScale(minScale_), maxScale(maxScale_) {} vec2 tl, tr, bl, br; Rect tex; float angle; vec2 anchorPoint; float minScale, maxScale; }; typedef std::vector SymbolQuads; struct Anchor; class SymbolLayoutProperties; class PositionedIcon; SymbolQuads getIconQuads(Anchor& anchor, const PositionedIcon& shapedIcon, const std::vector& line, const SymbolLayoutProperties& layout, const bool alongLine); SymbolQuads getGlyphQuads(Anchor& anchor, const Shaping& shapedText, const float boxScale, const std::vector& line, const SymbolLayoutProperties& layout, const bool alongLine, const GlyphPositions& face); } // namespace mbgl #endif