nngn
Loading...
Searching...
No Matches
nngn::AnimationFunction Class Reference

#include <animation.h>

Collaboration diagram for nngn::AnimationFunction:

Classes

struct  linear_t
 

Public Types

enum class  Type : uint8_t { NONE , LINEAR , RANDOM_F , RANDOM_3F }
 

Public Member Functions

 AnimationFunction () noexcept
 
void load (nngn::lua::table_view t)
 
vec3 update (const Timing &t, Math::rnd_generator_t *rnd)
 
bool done () const
 

Private Attributes

Type type = {}
 
union { 
 
   linear_t   linear = {} 
 
   std::uniform_real_distribution< float >   rnd_f 
 
   std::array< std::uniform_real_distribution< float >, 3 >   rnd_3f 
 
};  
 

Member Enumeration Documentation

◆ Type

enum class nngn::AnimationFunction::Type : uint8_t
strong
Enumerator
NONE 
LINEAR 
RANDOM_F 
RANDOM_3F 

Constructor & Destructor Documentation

◆ AnimationFunction()

nngn::AnimationFunction::AnimationFunction ( )
inlinenoexcept

Member Function Documentation

◆ done()

bool nngn::AnimationFunction::done ( ) const
Here is the caller graph for this function:

◆ load()

void nngn::AnimationFunction::load ( nngn::lua::table_view t)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ update()

vec3 nngn::AnimationFunction::update ( const Timing & t,
Math::rnd_generator_t * rnd )
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ [union]

union { ... } nngn::AnimationFunction

◆ linear

linear_t nngn::AnimationFunction::linear = {}

◆ rnd_3f

std::array<std::uniform_real_distribution<float>, 3> nngn::AnimationFunction::rnd_3f

◆ rnd_f

std::uniform_real_distribution<float> nngn::AnimationFunction::rnd_f

◆ type

Type nngn::AnimationFunction::type = {}
private

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