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