Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / rive-cpp / include / rive / bones / weight.hpp
1 #ifndef _RIVE_WEIGHT_HPP_
2 #define _RIVE_WEIGHT_HPP_
3 #include "rive/generated/bones/weight_base.hpp"
4 #include "rive/math/vec2d.hpp"
5 #include <stdio.h>
6
7 namespace rive {
8     class Weight : public WeightBase {
9     private:
10         Vec2D m_Translation;
11
12     public:
13         Vec2D& translation() { return m_Translation; }
14
15         StatusCode onAddedDirty(CoreContext* context) override;
16
17         static Vec2D deform(Vec2D inPoint,
18                             unsigned int indices,
19                             unsigned int weights,
20                             const Mat2D& world,
21                             const float* boneTransforms);
22     };
23 } // namespace rive
24
25 #endif