mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-10 22:51:58 +00:00
minor fixes
This commit is contained in:
parent
1046ed2c40
commit
ac3e848cfe
3 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include <fstream>
|
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
/* Drawing Commands */
|
/* Drawing Commands */
|
||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
@ -10,12 +9,11 @@ void tvgDrawCmds(tvg::Canvas* canvas)
|
||||||
|
|
||||||
for (int i = 0; i < 40; ++i) {
|
for (int i = 0; i < 40; ++i) {
|
||||||
auto png = tvg::Picture::gen();
|
auto png = tvg::Picture::gen();
|
||||||
if (png->load(EXAMPLE_DIR"/../pngs/samsung.png") != tvg::Result::Success) return;
|
if (png->load(EXAMPLE_DIR"/samsung.png") != tvg::Result::Success) return;
|
||||||
png->translate(i* 5, i * 10);
|
png->translate(i* 5, i * 10);
|
||||||
png->rotate(10 * i);
|
png->rotate(10 * i);
|
||||||
if (canvas->push(move(png)) != tvg::Result::Success) return;
|
if (canvas->push(move(png)) != tvg::Result::Success) return;
|
||||||
}
|
}
|
||||||
// if (canvas->push(move(png3)) != tvg::Result::Success) return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
@ -13,6 +13,7 @@ source_file = [
|
||||||
'GradientStroke.cpp',
|
'GradientStroke.cpp',
|
||||||
'GradientTransform.cpp',
|
'GradientTransform.cpp',
|
||||||
'LinearGradient.cpp',
|
'LinearGradient.cpp',
|
||||||
|
'LoadPng.cpp',
|
||||||
'MultiCanvas.cpp',
|
'MultiCanvas.cpp',
|
||||||
'MultiShapes.cpp',
|
'MultiShapes.cpp',
|
||||||
'Opacity.cpp',
|
'Opacity.cpp',
|
||||||
|
@ -36,7 +37,6 @@ source_file = [
|
||||||
'InvMasking.cpp',
|
'InvMasking.cpp',
|
||||||
'GradientMasking.cpp',
|
'GradientMasking.cpp',
|
||||||
'AnimateMasking.cpp',
|
'AnimateMasking.cpp',
|
||||||
'LoadPng.cpp',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
foreach current_file : source_file
|
foreach current_file : source_file
|
||||||
|
|
Loading…
Add table
Reference in a new issue