Hanim是一个轻量级的动画框架.
Animation = HEngine(HAnimate, HObject)
- 动画对象和动画行为(分离)设计(也支持耦合模式)
- 支持立即模式GUI库(opengl/imgui等)
- 支持保留模式GUI库(Qt/其他)
- 内置基础缓动曲线并支持自定义扩展
- Header-Only库, 无三方依赖(需std & C++ >= 17)
- 支持动画控制,API简单易用
ImGui::Begin("Hello Hanim");
HPlayWidget(1, hanim::Loading("Loading", {100, 100}, {200, 30}));
HPlayWidget(
2,
hanim::Loading(
"Hello Hanim", {100, 150}, {200, 30},
60, ImVec4(1.f, 0, 0, 0.5f), ImVec4(0, 0.5f, 0, 0.8f)
)
);
ImGui::End();