mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
examples - updated a resource usage
This commit is contained in:
parent
6276175d5b
commit
49c6336b33
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ void tvgDrawCmds(tvg::Canvas* canvas)
|
|||
picture1->load(EXAMPLE_DIR"/cartman.svg");
|
||||
picture1->size(400, 400);
|
||||
auto picture2 = tvg::Picture::gen();
|
||||
picture2->load(EXAMPLE_DIR"/samsung-7.svg");
|
||||
picture2->load(EXAMPLE_DIR"/logo.svg");
|
||||
picture2->size(400, 400);
|
||||
canvas->push(move(picture1));
|
||||
|
||||
|
@ -104,8 +104,8 @@ void tvgUpdateCmds(tvg::Canvas* canvas, float progress)
|
|||
while retaining other properties. */
|
||||
|
||||
// Translate mask object with its stroke & update
|
||||
pMaskShape->translate(0 , progress * 300);
|
||||
pMask->translate(0 , progress * 300);
|
||||
pMaskShape->translate(0 , progress * 300 - 100);
|
||||
pMask->translate(0 , progress * 300 - 100);
|
||||
|
||||
canvas->update();
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Add table
Reference in a new issue