添加了动画,资源也改为英文名了
This commit is contained in:
+14
-15
@@ -2,16 +2,16 @@
|
||||
#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;
|
||||
motion.type = "bottom_makeup";
|
||||
motion.technique = "base_makeup";
|
||||
motion.step = "press2";
|
||||
motion.show_type = "direction";
|
||||
motion.png_name = "demo";
|
||||
motion.png_num = 1;
|
||||
#
|
||||
|
||||
init_arg.motion = motion;
|
||||
|
||||
@@ -22,8 +22,6 @@ int main() {
|
||||
//motion.png_name = "pic";
|
||||
//motion.png_num = 1;
|
||||
|
||||
//init_arg.motions.push_back(motion);
|
||||
|
||||
init_arg.action_fps = 3;
|
||||
init_arg.zoom = 1.5f;
|
||||
|
||||
@@ -32,12 +30,13 @@ int main() {
|
||||
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.mainLoop();
|
||||
//try {
|
||||
// app.mainLoop();
|
||||
//} catch (const std::exception& e) {
|
||||
// std::cerr << e.what() << std::endl;
|
||||
// return EXIT_FAILURE;
|
||||
//}
|
||||
app.cleanup();
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Reference in New Issue
Block a user