blob: aee0915826e813c6e8927e729dd88a0dcc1abbea [file]
#ifndef _RIVE_TENDON_HPP_
#define _RIVE_TENDON_HPP_
#include "generated/bones/tendon_base.hpp"
#include "math/mat2d.hpp"
#include <stdio.h>
namespace rive
{
class Bone;
class Tendon : public TendonBase
{
private:
Mat2D m_InverseBind;
Bone* m_Bone = nullptr;
public:
Bone* bone() const { return m_Bone; }
const Mat2D& inverseBind() const { return m_InverseBind; }
StatusCode onAddedDirty(CoreContext* context) override;
StatusCode onAddedClean(CoreContext* context) override;
};
} // namespace rive
#endif