lottie/vector: change addPolystar* method to addPolystar/addPolygon

It also move its implemented code to VPath::VPathData from VPath.

Change-Id: Idc6f04e04930f1863bb78fd1a05ba86c573e328b
This commit is contained in:
Youngbok Shin
2018-07-24 18:00:25 +09:00
parent 9626223abd
commit d0a08aadc8
4 changed files with 43 additions and 32 deletions

View File

@@ -87,10 +87,8 @@ main(void)
path.addOval(VRectF(300, 100, 100, 50), VPath::Direction::CCW);
path.addPolystarStar(0.0, 150, 150, 15.0,
106.0, 34.0,
231.0, 88.0, VPath::Direction::CW);
path.addPolystar(15.0, 106.0, 34.0, 0.0, 150,
150, 231.0, 88.0, VPath::Direction::CW);
PathTest test(APP);
test.setPath(path);