OGLplus  (0.59.0) a C++ wrapper for rendering APIs

eagine::animated_value< T, F, S > Class Template Reference

Class representing a value animated between two points, with easing. More...

#include <eagine/animated_value.hpp>

Public Member Functions

 animated_value ()=default
 Default constructor.
 
 animated_value (const T &initial)
 Initializing to the specified value.
 
auto set (T value, valid_if_positive< F > duration, S slope) -> auto &
 Sets the next point to animate into, duration and sigmoid slope.
 
auto set (T value, valid_if_positive< F > duration) -> auto &
 Sets the next point to animate into and the duration of the transition.
 
auto get () const -> T
 Gets the current value between the current and the next point.
 
auto update (F deltaT) -> auto &
 Updates the transition factor by the specified amount.
 
auto is_done () const noexcept -> bool
 Indicates if the current transition factor is higher than current duration.
 

Detailed Description

template<typename T, typename F, typename S = float>
class eagine::animated_value< T, F, S >

Class representing a value animated between two points, with easing.

Examples
eagine/animated_value.cpp.

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

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).