Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / rive-cpp / include / rive / animation / blend_state_1d_instance.hpp
1 #ifndef _RIVE_BLEND_STATE_1D_INSTANCE_HPP_
2 #define _RIVE_BLEND_STATE_1D_INSTANCE_HPP_
3
4 #include "rive/animation/blend_state_instance.hpp"
5 #include "rive/animation/blend_state_1d.hpp"
6 #include "rive/animation/blend_animation_1d.hpp"
7
8 namespace rive {
9     class BlendState1DInstance : public BlendStateInstance<BlendState1D, BlendAnimation1D> {
10     private:
11         BlendStateAnimationInstance<BlendAnimation1D>* m_From = nullptr;
12         BlendStateAnimationInstance<BlendAnimation1D>* m_To = nullptr;
13         int animationIndex(float value);
14
15     public:
16         BlendState1DInstance(const BlendState1D* blendState, ArtboardInstance* instance);
17         void advance(float seconds, Span<SMIInput*> inputs) override;
18     };
19 } // namespace rive
20 #endif