1 #ifndef _RIVE_ANIMATION_STATE_INSTANCE_HPP_
2 #define _RIVE_ANIMATION_STATE_INSTANCE_HPP_
5 #include "animation/state_instance.hpp"
6 #include "animation/linear_animation_instance.hpp"
12 /// Represents an instance of an animation state.
13 class AnimationStateInstance : public StateInstance
16 LinearAnimationInstance m_AnimationInstance;
20 AnimationStateInstance(const AnimationState* animationState);
22 void advance(float seconds, SMIInput** inputs) override;
23 void apply(Artboard* artboard, float mix) override;
25 bool keepGoing() const override;
27 const LinearAnimationInstance* animationInstance() const
29 return &m_AnimationInstance;
32 LinearAnimationInstance* animationInstance()
34 return &m_AnimationInstance;