blob: f5c97b213162dbcfe1e7dc4d5f5ed638e3ae1b69 [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;
Vec2D worldTranslation() const { return m_WorldTransform.translation(); }
void opacityChanged() override;
};
} // namespace rive
#endif