save code

This commit is contained in:
xsl
2026-01-13 08:12:46 +08:00
parent 496d56f9c6
commit 52c9da08ed
10 changed files with 25 additions and 4 deletions
+5 -1
View File
@@ -42,8 +42,10 @@ struct InitArg
float g;
float b;
float radius;
float offset_x;
float offset_y;
//Motion motion;
NLOHMANN_DEFINE_TYPE_INTRUSIVE(InitArg, action_fps, zoom, r, g, b, radius);
NLOHMANN_DEFINE_TYPE_INTRUSIVE(InitArg, action_fps, zoom, r, g, b, radius, offset_x, offset_y);
};
@@ -55,6 +57,8 @@ struct PushConstants {
float radius = 240;
float ux = 0;
float uy = 0;
float offset_x = 0;
float offset_y = 0;
};
using Callback = std::function<void()>;