summaryrefslogtreecommitdiff
path: root/src/mbgl/text/quads.hpp
diff options
context:
space:
mode:
authorAnsis Brammanis <brammanis@gmail.com>2015-03-31 15:33:57 -0700
committerAnsis Brammanis <brammanis@gmail.com>2015-03-31 15:33:57 -0700
commit9309f59de3e156432087b55f0f7e3ebc026b78e8 (patch)
treedf786aef3dd6a787d572b04b2f30ba607f364526 /src/mbgl/text/quads.hpp
parent7b29c5b2576d687fb8491291f1f28b09020100de (diff)
downloadqtlocation-mapboxgl-9309f59de3e156432087b55f0f7e3ebc026b78e8.tar.gz
split generating symbol quads from collision code
Collision prevention is temporarily disabled.
Diffstat (limited to 'src/mbgl/text/quads.hpp')
-rw-r--r--src/mbgl/text/quads.hpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mbgl/text/quads.hpp b/src/mbgl/text/quads.hpp
new file mode 100644
index 0000000000..19acd72f46
--- /dev/null
+++ b/src/mbgl/text/quads.hpp
@@ -0,0 +1,24 @@
+#ifndef MBGL_TEXT_QUADS
+#define MBGL_TEXT_QUADS
+
+#include <mbgl/text/types.hpp>
+#include <mbgl/text/glyph.hpp>
+
+#include <mbgl/util/vec.hpp>
+
+namespace mbgl {
+
+ struct Anchor;
+ class StyleLayoutSymbol;
+ class PositionedIcon;
+
+ PlacedGlyphs getIconQuads(Anchor &anchor, const PositionedIcon &shapedIcon,
+ const std::vector<Coordinate> &line, const StyleLayoutSymbol &layout,
+ const bool alongLine);
+
+ PlacedGlyphs getGlyphQuads(Anchor &anchor, const Shaping &shapedText,
+ const float boxScale, const std::vector<Coordinate> &line, const StyleLayoutSymbol &layout,
+ const bool alongLine, const GlyphPositions &face);
+}
+
+#endif