Lines Matching refs:shape
41 static bool _draw(LottieGroup* parent, LottieShape* shape, RenderContext* ctx);
315 static bool _draw(LottieGroup* parent, LottieShape* shape, RenderContext* ctx) in _draw() argument
319 if (shape) { in _draw()
320 ctx->merging = shape->pooling(); in _draw()
345 auto shape = static_cast<Shape*>((*propagator)->duplicate()); in _repeat() local
346 P(shape)->rs.path = P(path)->rs.path; in _repeat()
349 shape->opacity(opacity); in _repeat()
361 shape->transform(m * (inv * PP(shape)->transform())); in _repeat()
362 shapes.push(shape); in _repeat()
371 for (auto shape = shapes.begin(); shape < shapes.end(); ++shape) { in _repeat() local
372 parent->scene->push(cast(*shape)); in _repeat()
373 propagators.push(*shape); in _repeat()
376 for (auto shape = shapes.end() - 1; shape >= shapes.begin(); --shape) { in _repeat() local
377 parent->scene->push(cast(*shape)); in _repeat()
378 propagators.push(*shape); in _repeat()
386 static void _appendRect(Shape* shape, float x, float y, float w, float h, float r, const LottieOffs… in _appendRect() argument
413 …(offsetPath) offsetPath->modifyRect(commands, 5, points, 4, P(shape)->rs.path.cmds, P(shape)->rs.p… in _appendRect()
414 else shape->appendPath(commands, 5, points, 4); in _appendRect()
466 …h) offsetPath->modifyRect(commands, cmdCnt, points, ptsCnt, P(shape)->rs.path.cmds, P(shape)->rs.p… in _appendRect()
467 else shape->appendPath(commands, cmdCnt, points, ptsCnt); in _appendRect()
486 auto shape = rect->pooling(); in updateRect() local
487 shape->reset(); in updateRect()
488 …_appendRect(shape, position.x - size.x * 0.5f, position.y - size.y * 0.5f, size.x, size.y, r, ctx-… in updateRect()
489 _repeat(parent, shape, ctx); in updateRect()
497 static void _appendCircle(Shape* shape, float cx, float cy, float rx, float ry, const LottieOffsetM… in _appendCircle() argument
535 shape->appendPath(commands, cmdsCnt, points, ptsCnt); in _appendCircle()
547 auto shape = ellipse->pooling(); in updateEllipse() local
548 shape->reset(); in updateEllipse()
549 …_appendCircle(shape, position.x, position.y, size.x * 0.5f, size.y * 0.5f, ctx->offsetPath, ctx->t… in updateEllipse()
550 _repeat(parent, shape, ctx); in updateEllipse()
563 auto shape = path->pooling(); in updatePath() local
564 shape->reset(); in updatePath()
565 …path->pathset(frameNo, P(shape)->rs.path.cmds, P(shape)->rs.path.pts, ctx->transform, ctx->roundne… in updatePath()
566 _repeat(parent, shape, ctx); in updatePath()
597 Shape* shape; in _updateStar() local
599 shape = star->pooling(); in _updateStar()
600 shape->reset(); in _updateStar()
602 shape = merging; in _updateStar()
623 P(shape)->rs.path.pts.reserve(numPoints + 2); in _updateStar()
624 P(shape)->rs.path.cmds.reserve(numPoints + 3); in _updateStar()
626 P(shape)->rs.path.pts.reserve(numPoints * 3 + 2); in _updateStar()
627 P(shape)->rs.path.cmds.reserve(numPoints + 3); in _updateStar()
633 shape->moveTo(in.x, in.y); in _updateStar()
681 shape->cubicTo(in2.x, in2.y, in3.x, in3.y, in4.x, in4.y); in _updateStar()
685 shape->lineTo(in.x, in.y); in _updateStar()
690 shape->close(); in _updateStar()
695 …roundness->modifyPolystar(P(shape)->rs.path.cmds, P(shape)->rs.path.pts, P(intermediate)->rs.path.… in _updateStar()
698 …roundness->modifyPolystar(P(shape)->rs.path.cmds, P(shape)->rs.path.pts, P(merging)->rs.path.cmds,… in _updateStar()
700 …} else if (offsetPath) offsetPath->modifyPolystar(P(shape)->rs.path.cmds, P(shape)->rs.path.pts, P… in _updateStar()
722 Shape* shape; in _updatePolygon() local
724 shape = star->pooling(); in _updatePolygon()
725 shape->reset(); in _updatePolygon()
727 shape = merging; in _updatePolygon()
729 P(shape)->rs.path.pts.reserve(ptsCnt * 3 + 2); in _updatePolygon()
730 P(shape)->rs.path.cmds.reserve(ptsCnt + 3); in _updatePolygon()
732 P(shape)->rs.path.pts.reserve(ptsCnt + 2); in _updatePolygon()
733 P(shape)->rs.path.cmds.reserve(ptsCnt + 3); in _updatePolygon()
739 shape->moveTo(in.x, in.y); in _updatePolygon()
768 shape->cubicTo(in2.x, in2.y, in3.x, in3.y, in4.x, in4.y); in _updatePolygon()
772 shape->lineTo(in.x, in.y); in _updatePolygon()
776 shape->close(); in _updatePolygon()
781 …roundness->modifyPolystar(P(shape)->rs.path.cmds, P(shape)->rs.path.pts, P(intermediate)->rs.path.… in _updatePolygon()
784 …roundness->modifyPolystar(P(shape)->rs.path.cmds, P(shape)->rs.path.pts, P(merging)->rs.path.cmds,… in _updatePolygon()
786 …} else if (offsetPath) offsetPath->modifyPolystar(P(shape)->rs.path.cmds, P(shape)->rs.path.pts, P… in _updatePolygon()
806 auto shape = star->pooling(); in updatePolystar() local
807 shape->reset(); in updatePolystar()
808 …parent, star, identity ? nullptr : &matrix, ctx->roundness, ctx->offsetPath, frameNo, shape, exps); in updatePolystar()
809 …arent, star, identity ? nullptr : &matrix, ctx->roundness, ctx->offsetPath, frameNo, shape, exps); in updatePolystar()
810 _repeat(parent, shape, ctx); in updatePolystar()
1046 auto shape = text->pooling(); in updateText() local
1047 shape->reset(); in updateText()
1051 …if (static_cast<LottiePath*>(*p)->pathset(frameNo, P(shape)->rs.path.cmds, P(shape)->rs.path.pts, … in updateText()
1052 P(shape)->update(RenderUpdateFlag::Path); in updateText()
1056 shape->fill(doc.color.rgb[0], doc.color.rgb[1], doc.color.rgb[2]); in updateText()
1057 shape->translate(cursor.x, cursor.y); in updateText()
1058 shape->opacity(255); in updateText()
1061 shape->stroke(StrokeJoin::Round); in updateText()
1062 shape->stroke(doc.stroke.width / scale); in updateText()
1063 … shape->stroke(doc.stroke.color.rgb[0], doc.stroke.color.rgb[1], doc.stroke.color.rgb[2]); in updateText()
1089 shape->opacity((*s)->style.opacity(frameNo)); in updateText()
1092 … shape->fill(color.rgb[0], color.rgb[1], color.rgb[2], (*s)->style.fillOpacity(frameNo)); in updateText()
1096 shape->stroke((*s)->style.strokeWidth(frameNo) / scale); in updateText()
1097 …shape->stroke(strokeColor.rgb[0], strokeColor.rgb[1], strokeColor.rgb[2], (*s)->style.strokeOpacit… in updateText()
1109 shape->transform(matrix); in updateText()
1112 scene->push(cast(shape)); in updateText()
1185 auto shape = layer->pooling(); in updateMaskings() local
1186 shape->reset(); in updateMaskings()
1187 shape->fill(255, 255, 255, mask->opacity(frameNo)); in updateMaskings()
1188 shape->transform(layer->cache.matrix); in updateMaskings()
1189 …mask->pathset(frameNo, P(shape)->rs.path.cmds, P(shape)->rs.path.pts, nullptr, nullptr, nullptr, e… in updateMaskings()
1190 pShape->composite(tvg::cast(shape), method); in updateMaskings()
1191 pShape = shape; in updateMaskings()