Skip to content

Commit 524743a

Browse files
committed
renamed examples
ImageScaling -> PictureScaling ImageRotation -> PictureRotation LottieBigSize -> LottiePerf1 LottieBigSize2 -> LottiePerf2
1 parent 0851be1 commit 524743a

7 files changed

Lines changed: 7 additions & 12 deletions

File tree

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ struct UserExample : tvgexam::Example
3232

3333
bool content(tvg::Canvas* canvas, uint32_t w, uint32_t h) override
3434
{
35-
//The default font for fallback in case
36-
tvg::Text::load(EXAMPLE_DIR"/font/PublicSans-Regular.ttf");
37-
3835
//Animation Controller
3936
animation = unique_ptr<tvg::Animation>(tvg::Animation::gen());
4037
auto picture = animation->picture();
@@ -47,7 +44,7 @@ struct UserExample : tvgexam::Example
4744

4845
canvas->add(shape);
4946

50-
if (!tvgexam::verify(picture->load(EXAMPLE_DIR"/lottie/extensions/bigsize.json"))) return false;
47+
if (!tvgexam::verify(picture->load(EXAMPLE_DIR"/lottie/extensions/perf1.json"))) return false;
5148

5249
//image scaling preserving its aspect ratio
5350
float w2, h2;
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ struct UserExample : tvgexam::Example
3232

3333
bool content(tvg::Canvas* canvas, uint32_t w, uint32_t h) override
3434
{
35-
//The default font for fallback in case
36-
tvg::Text::load(EXAMPLE_DIR"/font/PublicSans-Regular.ttf");
37-
3835
//Animation Controller
3936
animation = unique_ptr<tvg::Animation>(tvg::Animation::gen());
4037
auto picture = animation->picture();
@@ -47,7 +44,7 @@ struct UserExample : tvgexam::Example
4744

4845
canvas->add(shape);
4946

50-
if (!tvgexam::verify(picture->load(EXAMPLE_DIR"/lottie/extensions/bigsize2.json"))) return false;
47+
if (!tvgexam::verify(picture->load(EXAMPLE_DIR"/lottie/extensions/perf2.json"))) return false;
5148

5249
//image scaling preserving its aspect ratio
5350
float w2, h2;

src/meson.build

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ source_file = [
4949
'GradientMasking.cpp',
5050
'GradientStroke.cpp',
5151
'GradientTransform.cpp',
52-
'ImageRotation.cpp',
53-
'ImageScaling.cpp',
5452
'Intersects.cpp',
5553
'LinearGradient.cpp',
5654
'Masking.cpp',
@@ -60,9 +58,12 @@ source_file = [
6058
'MultiCanvas.cpp',
6159
'Opacity.cpp',
6260
'Path.cpp',
61+
'PictureData.cpp',
6362
'PictureJpg.cpp',
6463
'PicturePng.cpp',
6564
'PictureRaw.cpp',
65+
'PictureRotation.cpp',
66+
'PictureScaling.cpp',
6667
'PictureSvg.cpp',
6768
'PictureWebp.cpp',
6869
'RadialGradient.cpp',
@@ -103,8 +104,8 @@ if cc.links(lottie_example, dependencies : thorvg_dep, include_directories : tho
103104
'LottieExpressions.cpp',
104105
'LottieExtension.cpp',
105106
'LottieInteraction.cpp',
106-
'LottieBigSize.cpp',
107-
'LottieBigSize2.cpp',
107+
'LottiePerf1.cpp',
108+
'LottiePerf2.cpp',
108109
'LottieTweening.cpp'
109110
]
110111
message('ThorVG Lottie found. Enabled Lottie examples.')

0 commit comments

Comments
 (0)