AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
ATranslationAnimator Class Reference

Public Member Functions

 ATranslationAnimator (const glm::vec2 &from, const glm::vec2 &to={0.f, 0.f})
 
void doAnimation (AView *view, float theta, IRenderer &render) override
 Does the animation (sets matrix, colors, etc...) More...
 
- Public Member Functions inherited from AAnimator
void setCurve (const std::function< float(float)> &curve)
 
void animate (AView *view, IRenderer &render)
 
void postRender (AView *view, IRenderer &render)
 
void pause ()
 
void setDuration (float period)
 
void setRepeating (bool repeating)
 
const AViewgetView () const
 
void setView (AView *view)
 

Additional Inherited Members

- Static Public Member Functions inherited from AAnimator
static _< AAnimatorcombine (const AVector< _< AAnimator > > &animators)
 
- Protected Member Functions inherited from AAnimator
virtual void doPostRender (AView *view, float theta, IRenderer &render)
 
void translateToCenter (IRenderer &render)
 
void translateToCorner (IRenderer &render)
 
- Static Protected Member Functions inherited from AAnimator
static void translateToCenter (AView *view, IRenderer &render)
 
static void translateToCorner (AView *view, IRenderer &render)
 

Member Function Documentation

◆ doAnimation()

void ATranslationAnimator::doAnimation ( AView view,
float  theta,
IRenderer render 
)
overridevirtual

Does the animation (sets matrix, colors, etc...)

Parameters
thetaanimation time value [0;1] where 0 - start of the animation, 1 - end of the animation

Reimplemented from AAnimator.


The documentation for this class was generated from the following files:
Inheritance diagram for ATranslationAnimator:
Collaboration diagram for ATranslationAnimator: