Update rive-cpp to 2.0 version
[platform/core/uifw/rive-tizen.git] / submodule / rive-cpp / src / world_transform_component.cpp
1 #include "rive/transform_component.hpp"
2 #include "rive/shapes/clipping_shape.hpp"
3 #include "rive/math/vec2d.hpp"
4 #include "rive/constraints/constraint.hpp"
5
6 using namespace rive;
7
8 float WorldTransformComponent::childOpacity() { return opacity(); }
9
10 void WorldTransformComponent::markWorldTransformDirty() {
11     addDirt(ComponentDirt::WorldTransform, true);
12 }
13
14 const Mat2D& WorldTransformComponent::worldTransform() const { return m_WorldTransform; }
15
16 Mat2D& WorldTransformComponent::mutableWorldTransform() { return m_WorldTransform; }
17
18 void WorldTransformComponent::opacityChanged() { addDirt(ComponentDirt::RenderOpacity, true); }