summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/paint_parameters.hpp
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-11-09 13:24:43 -0800
committerChris Loer <chris.loer@gmail.com>2017-11-17 08:40:07 -0800
commit6f2b05761baa72a7c7327c4b00d30b372cdd0dcb (patch)
tree7a6d5dc3d79720b930d5669d16d5912239fcc344 /src/mbgl/renderer/paint_parameters.hpp
parent0e5dd48e4e64f8afe2cdce081a2391f98ade4639 (diff)
downloadqtlocation-mapboxgl-6f2b05761baa72a7c7327c4b00d30b372cdd0dcb.tar.gz
[core] Switch from background to foreground placement
- Background placement code now just generates static symbol buffers - Don't render GeometryTiles until their symbols are loaded. This is necessary for the CrossTileSymbolIndex to successfully prevent flicker. - SymbolInstances are transferred to SymbolBucket for use on foreground during collision detection - Symbols are sorted on foreground by sorting their index buffer but leaving vertex buffers intact (only works within one segment) - Vertical glyphs are generated at same time as horizontal glyphs. `reprojectLineLabels` chooses which one to use at render time and hides the other. - Icons are now always represented with a single collision box, even if they're placed along a line (this means their rotation alignment may be wrong, but the approach of representing them with multiple collision boxes wasn't very accurate either). - Generate vertices for new debug collision boxes and collision circles - Only add symbols within tile boundaries (reduces work, avoids double-draw) - Update symbol_projection.cpp to support line label projection calls from CollisionIndex.
Diffstat (limited to 'src/mbgl/renderer/paint_parameters.hpp')
-rw-r--r--src/mbgl/renderer/paint_parameters.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mbgl/renderer/paint_parameters.hpp b/src/mbgl/renderer/paint_parameters.hpp
index 60f5af4e9a..8d9a57955f 100644
--- a/src/mbgl/renderer/paint_parameters.hpp
+++ b/src/mbgl/renderer/paint_parameters.hpp
@@ -74,6 +74,8 @@ public:
uint32_t currentLayer;
float depthRangeSize;
const float depthEpsilon = 1.0f / (1 << 16);
+
+ float symbolFadeChange;
};
} // namespace mbgl