blob: 97cd755bcef31c1b1e6f944395ce83dbe14e0dcb [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