summaryrefslogtreecommitdiff
path: root/src/mbgl/renderer/buckets/line_bucket.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/renderer/buckets/line_bucket.hpp')
-rw-r--r--src/mbgl/renderer/buckets/line_bucket.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mbgl/renderer/buckets/line_bucket.hpp b/src/mbgl/renderer/buckets/line_bucket.hpp
index 4fb77c377e..6f1b3b20c4 100644
--- a/src/mbgl/renderer/buckets/line_bucket.hpp
+++ b/src/mbgl/renderer/buckets/line_bucket.hpp
@@ -47,12 +47,17 @@ private:
TriangleElement(uint16_t a_, uint16_t b_, uint16_t c_) : a(a_), b(b_), c(c_) {}
uint16_t a, b, c;
};
- void addCurrentVertex(const GeometryCoordinate& currentVertex, double& distance,
+ void addCurrentVertex(const GeometryCoordinate& currentVertex, double distance,
const Point<double>& normal, double endLeft, double endRight, bool round,
- std::size_t startVertex, std::vector<LineBucket::TriangleElement>& triangleStore);
+ std::size_t startVertex, std::vector<LineBucket::TriangleElement>& triangleStore,
+ optional<double> totalDistance, optional<double> startDistance);
void addPieSliceVertex(const GeometryCoordinate& currentVertex, double distance,
const Point<double>& extrude, bool lineTurnsLeft, std::size_t startVertex,
- std::vector<TriangleElement>& triangleStore);
+ std::vector<TriangleElement>& triangleStore,
+ optional<double> totalDistance, optional<double> startDistance);
+
+ double scaleDistance(double, double, double) const;
+ bool shouldClipAtEdge(const GeometryCoordinate&, double) const;
std::ptrdiff_t e1;
std::ptrdiff_t e2;