blob: 320ba86c67e3e17361b05d0c22888b1e3f854761 [file] [log] [blame]
#ifndef _RIVE_WORLD_TRANSFORM_COMPONENT_HPP_
#define _RIVE_WORLD_TRANSFORM_COMPONENT_HPP_
#include "rive/generated/world_transform_component_base.hpp"
#include "rive/math/mat2d.hpp"
namespace rive {
class TransformComponent;
class WorldTransformComponent : public WorldTransformComponentBase {
friend class TransformComponent;
protected:
Mat2D m_WorldTransform;
public:
void markWorldTransformDirty();
virtual float childOpacity();
Mat2D& mutableWorldTransform();
const Mat2D& worldTransform() const;
void worldTranslation(Vec2D& result) const;
void opacityChanged() override;
};
} // namespace rive
#endif