blob: 5f97cde3ee85ead8dcb8dddaeca6bd0bf5df8676 [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, Span<SMIInput*> inputs) override;
};
} // namespace rive
#endif