MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / Animation

Class Animation

framework/scene_graph/scripts/animation.h:65–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63};
64
65class Animation : public Script
66{
67 public:
68 Animation(const std::string &name = "");
69
70 Animation(const Animation &);
71
72 virtual void update(float delta_time) override;
73
74 void update_times(float start_time, float end_time);
75
76 void add_channel(vkb::scene_graph::NodeC &node, const AnimationTarget &target, const AnimationSampler &sampler);
77
78 private:
79 std::vector<AnimationChannel> channels;
80
81 float current_time{0.0f};
82
83 float start_time{std::numeric_limits<float>::max()};
84
85 float end_time{std::numeric_limits<float>::min()};
86};
87} // namespace sg
88} // namespace vkb

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected