diff options
author | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-11-13 18:04:47 +0200 |
---|---|---|
committer | Alexander Shalamov <alexander.shalamov@mapbox.com> | 2019-12-02 17:11:49 +0200 |
commit | 2bb2a40b6d13d4fe44e8879003a3e53416033a34 (patch) | |
tree | 19b184fc5faef7a2bfaba579f61c59e8e3e1db7b /test/text/quads.test.cpp | |
parent | f4f652063d9a9903d96bf6f32257a5e6fd6dbfe2 (diff) | |
download | qtlocation-mapboxgl-2bb2a40b6d13d4fe44e8879003a3e53416033a34.tar.gz |
[core] Shape images in labels and create image quads
Diffstat (limited to 'test/text/quads.test.cpp')
-rw-r--r-- | test/text/quads.test.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/text/quads.test.cpp b/test/text/quads.test.cpp index b04617a40b..4d7f254efa 100644 --- a/test/text/quads.test.cpp +++ b/test/text/quads.test.cpp @@ -45,7 +45,10 @@ TEST(getIconQuads, style) { shapedText.bottom = 30.0f; shapedText.left = -60.0f; shapedText.right = 20.0f; - shapedText.positionedGlyphs.emplace_back(PositionedGlyph(32, 0.0f, 0.0f, false, 0, 1.0)); + // shapedText.positionedGlyphs.emplace_back(PositionedGlyph(32, 0.0f, 0.0f, false, 0, 1.0)); + shapedText.positionedLines.emplace_back(); + shapedText.positionedLines.back().positionedGlyphs.emplace_back( + PositionedGlyph(32, 0.0f, 0.0f, false, 0, 1.0, /*texRect*/ {}, /*metrics*/ {}, /*imageID*/ nullopt)); // none { |