blob: d0c81a2dfbb3e24f63348c7e0ccee720f8d2560d [file] [log] [blame]
#ifndef _RIVE_BLEND_STATE_1D_INSTANCE_HPP_
#define _RIVE_BLEND_STATE_1D_INSTANCE_HPP_
#include "rive/animation/blend_state_instance.hpp"
#include "rive/animation/blend_state_1d.hpp"
#include "rive/animation/blend_animation_1d.hpp"
namespace rive
{
class BlendState1DInstance : public BlendStateInstance<BlendState1D, BlendAnimation1D>
{
private:
BlendStateAnimationInstance<BlendAnimation1D>* m_From = nullptr;
BlendStateAnimationInstance<BlendAnimation1D>* m_To = nullptr;
int animationIndex(float value);
public:
BlendState1DInstance(const BlendState1D* blendState, ArtboardInstance* instance);
void advance(float seconds, StateMachineInstance* stateMachineInstance) override;
};
} // namespace rive
#endif