#include "FaceApp.h" int main() { InitArg init_arg; Motion motion; motion.type = "底妆"; motion.technique = "基础上妆"; motion.step = "2按压"; motion.show_type = "方向"; motion.png_name = "pic"; motion.png_num = 3; init_arg.motion = motion; //motion.type = "底妆"; //motion.technique = "基础上妆"; //motion.step = "2按压"; //motion.show_type = "区域"; //motion.png_name = "pic"; //motion.png_num = 1; //init_arg.motions.push_back(motion); init_arg.action_fps = 3; init_arg.zoom = 1.5f; string json_str = json(init_arg).dump(); FaceApp app; app.SetInitArg(json_str.c_str()); app.initVulkan(); try { app.mainLoop(); } catch (const std::exception& e) { std::cerr << e.what() << std::endl; return EXIT_FAILURE; } app.cleanup(); return EXIT_SUCCESS; }