mirror of
https://github.com/rive-app/rive-cpp.git
synced 2026-01-18 21:21:17 +01:00
toSpan() no longer needed
previous PR that removed toSpan() forgot to update this file Diffs= b8ca8ded5 toSpan() no longer needed
This commit is contained in:
@@ -92,7 +92,7 @@ void TessRenderPath::triangulate(TessRenderPath* containerPath) {
|
||||
auto contours = Span(&contour, 1);
|
||||
m_earcut(contours);
|
||||
|
||||
containerPath->addTriangles(contour, toSpan(m_earcut.indices));
|
||||
containerPath->addTriangles(contour, m_earcut.indices);
|
||||
}
|
||||
} else {
|
||||
TESStesselator* tess = nullptr;
|
||||
@@ -125,7 +125,7 @@ void TessRenderPath::triangulate(TessRenderPath* containerPath) {
|
||||
}
|
||||
|
||||
containerPath->addTriangles(Span(reinterpret_cast<const Vec2D*>(verts), nverts),
|
||||
toSpan(indices));
|
||||
indices);
|
||||
}
|
||||
tessDeleteTess(tess);
|
||||
}
|
||||
@@ -162,4 +162,4 @@ void TessRenderPath::extrudeStroke(ContourStroke* stroke,
|
||||
stroke->extrude(&m_segmentedContour, m_isClosed, join, cap, strokeWidth);
|
||||
}
|
||||
|
||||
bool TessRenderPath::empty() const { return m_rawPath.empty(); }
|
||||
bool TessRenderPath::empty() const { return m_rawPath.empty(); }
|
||||
|
||||
Reference in New Issue
Block a user