le2d v0.4.7
2D game engine framework
 
Loading...
Searching...
No Matches
le::anim Namespace Reference

Classes

class  Animation
 Class template for Animation types. More...
 
class  Animator
 Class template for Animator types. More...
 
struct  Interpolator
 Base class template for linear interpolation. More...
 
struct  Interpolator< glm::vec< Length, Type > >
 Interpolator specialization for glm::vec types. More...
 
struct  Interpolator< Transform >
 Interpolator specialization for Transform. More...
 
struct  Keyframe
 Class template for an animation keyframe. More...
 
struct  SamplerFloor
 Quantized Animation Sampler. More...
 
struct  SamplerLerp
 Interpolation Animation Sampler. More...
 
struct  Timeline
 Class template for a list of animation keyframes. More...
 

Concepts

concept  SamplerT
 Concept for Animation Sampler.
 

Typedefs

using TransformSampler = SamplerLerp< Transform, Interpolator< Transform > >
 Interpolated Transform Animation Sampler.
 
using FlipbookSampler = SamplerFloor< TileId >
 Quantized Flipbook Animation Sampler.
 

Functions

template<typename Type >
constexpr auto interpolate (Type const &a, Type const &b, float const t)
 Wrapper for Interpolator<Type>{}(a, b, t).
 

Typedef Documentation

◆ FlipbookSampler

Quantized Flipbook Animation Sampler.

◆ TransformSampler

Function Documentation

◆ interpolate()

template<typename Type >
constexpr auto le::anim::interpolate ( Type const &  a,
Type const &  b,
float const  t 
)
constexpr

Wrapper for Interpolator<Type>{}(a, b, t).