blob: 0dceda8ba5574689a1b25cb4266bbdc47e6b953d [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);
void advance(float seconds, SMIInput** inputs) override;
};
} // namespace rive
#endif