MCPcopy Create free account
hub / github.com/Tencent/libpag / ShapePathToPath

Function ShapePathToPath

src/rendering/renderers/ShapeRenderer.cpp:335–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void ShapePathToPath(ShapePathElement* shapePath, tgfx::Path* path, Frame frame) {
336 auto pathData = shapePath->shapePath->getValueAt(frame);
337 if (pathData == nullptr) {
338 return;
339 }
340 path->addPath(ToPath(*pathData));
341}
342
343tgfx::PathFillType ToPathFillType(FillRule rule) {
344 return rule == FillRule::EvenOdd ? tgfx::PathFillType::EvenOdd : tgfx::PathFillType::Winding;

Callers 1

RenderElements_ShapePathFunction · 0.85

Calls 2

ToPathFunction · 0.85
getValueAtMethod · 0.45

Tested by

no test coverage detected