submodule: add rive-cpp to rive-tizen as submodule
[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 onAddedClean(CoreContext* context) override
18                 {
19                         return StatusCode::Ok;
20                 }
21                 StatusCode onAddedDirty(CoreContext* context) override;
22
23                 static void deform(float x,
24                                    float y,
25                                    unsigned int indices,
26                                    unsigned int weights,
27                                    const Mat2D& world,
28                                    const float* boneTransforms,
29                                    Vec2D& result);
30         };
31 } // namespace rive
32
33 #endif