save code
This commit is contained in:
+27
-1
@@ -1,10 +1,36 @@
|
||||
|
||||
|
||||
#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();
|
||||
|
||||
Reference in New Issue
Block a user