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 ,
  NONE , LINEAR , RANDOM_F , RANDOM_3F
}
 
enum class  Type : uint8_t {
  NONE , LINEAR , RANDOM_F , RANDOM_3F ,
  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
 
 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
 
}; 
 
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 [1/2]

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

◆ Type [2/2]

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

Constructor & Destructor Documentation

◆ AnimationFunction() [1/2]

nngn::AnimationFunction::AnimationFunction ( )
inlinenoexcept

◆ AnimationFunction() [2/2]

nngn::AnimationFunction::AnimationFunction ( )
inlinenoexcept

Member Function Documentation

◆ done() [1/2]

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

◆ done() [2/2]

bool nngn::AnimationFunction::done ( ) const

◆ load() [1/2]

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:

◆ load() [2/2]

void nngn::AnimationFunction::load ( nngn::lua::table_view  t)

◆ update() [1/2]

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:

◆ update() [2/2]

vec3 nngn::AnimationFunction::update ( const Timing t,
Math::rnd_generator_t rnd 
)

Member Data Documentation

◆ 

union { ... } nngn::AnimationFunction::@18

◆ 

union { ... } nngn::AnimationFunction::@38

◆ 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: