1 #ifndef _RIVE_BLEND_STATE_1D_INSTANCE_HPP_
2 #define _RIVE_BLEND_STATE_1D_INSTANCE_HPP_
4 #include "rive/animation/blend_state_instance.hpp"
5 #include "rive/animation/blend_state_1d.hpp"
6 #include "rive/animation/blend_animation_1d.hpp"
9 class BlendState1DInstance : public BlendStateInstance<BlendState1D, BlendAnimation1D> {
11 BlendStateAnimationInstance<BlendAnimation1D>* m_From = nullptr;
12 BlendStateAnimationInstance<BlendAnimation1D>* m_To = nullptr;
13 int animationIndex(float value);
16 BlendState1DInstance(const BlendState1D* blendState, ArtboardInstance* instance);
17 void advance(float seconds, Span<SMIInput*> inputs) override;