动画编码完成
This commit is contained in:
+16
-13
@@ -49,24 +49,27 @@ int main() {
|
||||
|
||||
InitArg init_arg;
|
||||
Motion motion;
|
||||
motion.type = "底妆";
|
||||
motion.technique = "基础上妆";
|
||||
motion.step = "2按压";
|
||||
motion.show_type = "方向示意图";
|
||||
motion.png_name = "4.png";
|
||||
motion.png_num = 1;
|
||||
motion.type = "action24";
|
||||
for (int i = 0; i < 25; ++i)
|
||||
{
|
||||
if (i < 10)
|
||||
{
|
||||
motion.png_names.push_back("00000" + std::to_string(i) + ".png");
|
||||
}
|
||||
else
|
||||
{
|
||||
motion.png_names.push_back("0000" + std::to_string(i) + ".png");
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
|
||||
init_arg.motion = motion;
|
||||
|
||||
//motion.type = "底妆";
|
||||
//motion.technique = "基础上妆";
|
||||
//motion.step = "2按压";
|
||||
//motion.show_type = "区域";
|
||||
//motion.png_name = "pic";
|
||||
//motion.png_num = 1;
|
||||
|
||||
init_arg.action_fps = 3;
|
||||
init_arg.action_fps = 10;
|
||||
init_arg.zoom = 1.5f;
|
||||
|
||||
string json_str = json(init_arg).dump();
|
||||
|
||||
Reference in New Issue
Block a user