2 #include "mof/KeyFrameAnimation.hpp"
3 #include "mof/Rectangle.hpp"
4 #include "mof/Vector2D.hpp"
8 class BoundsAnimation : public mof::Animation< mof::Rectangle<int> >
14 const mof::Animation<mof::Vector2D>::Handler& position ,
15 const mof::Animation<mof::Vector2D>::Handler& scale
17 : m_position( position) , m_scale( scale )
21 mof::Rectangle<int> getValue( mof::FrameNumber frame ) const
23 mof::Vector2D position = m_position->getValue( frame );
24 mof::Vector2D scale = m_scale->getValue( frame );
25 return mof::Rectangle<int>
27 position.x , position.y ,
28 position.x + scale.x ,
35 mof::Animation<mof::Vector2D>::Handler m_position;
36 mof::Animation<mof::Vector2D>::Handler m_scale;