| 63 | }; |
| 64 | |
| 65 | class 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 |
nothing calls this directly
no outgoing calls
no test coverage detected