OpenSiv3D  v0.6.5
C++20 framework for creative coding
s3d::SimpleAnimation Class Reference

#include <SimpleAnimation.hpp>

Classes

struct  KeyFrame
 

Public Member Functions

SIV3D_NODISCARD_CXX20 SimpleAnimation ()=default
 
SIV3D_NODISCARD_CXX20 SimpleAnimation (ISteadyClock *pSteadyClock)
 
SimpleAnimationset (StringView name, const KeyFrame &a, const KeyFrame &b, double func(double)=Easing::Linear)
 
SimpleAnimationsetLoop (const SecondsF &loopEnd)
 
SimpleAnimationsetLoop (const SecondsF &loopBegin, const SecondsF &loopEnd)
 
double operator[] (StringView name) const
 
void start ()
 
void pause ()
 
void resume ()
 
void restart ()
 
double posSec () const
 
double lengthSec () const noexcept
 
bool isDone () const
 
size_t loopCount () const
 

Constructor & Destructor Documentation

◆ SimpleAnimation() [1/2]

SIV3D_NODISCARD_CXX20 s3d::SimpleAnimation::SimpleAnimation ( )
default

◆ SimpleAnimation() [2/2]

SIV3D_NODISCARD_CXX20 s3d::SimpleAnimation::SimpleAnimation ( ISteadyClock pSteadyClock)
explicit

Member Function Documentation

◆ isDone()

bool s3d::SimpleAnimation::isDone ( ) const

◆ lengthSec()

double s3d::SimpleAnimation::lengthSec ( ) const
noexcept

◆ loopCount()

size_t s3d::SimpleAnimation::loopCount ( ) const

◆ operator[]()

double s3d::SimpleAnimation::operator[] ( StringView  name) const

◆ pause()

void s3d::SimpleAnimation::pause ( )

◆ posSec()

double s3d::SimpleAnimation::posSec ( ) const

◆ restart()

void s3d::SimpleAnimation::restart ( )

◆ resume()

void s3d::SimpleAnimation::resume ( )

◆ set()

SimpleAnimation& s3d::SimpleAnimation::set ( StringView  name,
const KeyFrame a,
const KeyFrame b,
double   funcdouble = Easing::Linear 
)

◆ setLoop() [1/2]

SimpleAnimation& s3d::SimpleAnimation::setLoop ( const SecondsF loopBegin,
const SecondsF loopEnd 
)

◆ setLoop() [2/2]

SimpleAnimation& s3d::SimpleAnimation::setLoop ( const SecondsF loopEnd)

◆ start()

void s3d::SimpleAnimation::start ( )

The documentation for this class was generated from the following file: