Files
face_sdk/vulkan/main.cpp
T

42 lines
951 B
C++

#include "FaceApp.h"
int main() {
InitArg init_arg;
Motion motion;
motion.type = "bottom_makeup";
motion.technique = "base_makeup";
motion.step = "press2";
motion.show_type = "direction";
motion.png_name = "test";
motion.png_num = 1;
#
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.zoom = 1.5f;
string json_str = json(init_arg).dump();
FaceApp app;
app.SetInitArg(json_str.c_str());
app.initVulkan();
app.mainLoop();
//try {
// app.mainLoop();
//} catch (const std::exception& e) {
// std::cerr << e.what() << std::endl;
// return EXIT_FAILURE;
//}
app.cleanup();
return EXIT_SUCCESS;
}