GraceFt v2.3
开源图形引擎 EGE(Easy Graphics Engine) 的高层封装库
 
载入中...
搜索中...
未找到
GFt::AnimationParams< Type > 模板结构体 参考

动画参数结构体 更多...

#include <Animation.hpp>

Public 属性

const float & duration
 动画持续时间(毫秒)
 
const Initial< Type > & initial
 动画初始值,可以是值或 getter 方法,若为 getter 方法则在动画开始时调用并作为初始值
 
const Setter< Type > & setter
 动画值的 setter 方法
 
const Type & target
 动画目标值
 
TransFunc trans_func
 动画过渡函数
 

详细描述

template<typename Type>
requires Animatable<Type>
struct GFt::AnimationParams< Type >

动画参数结构体

类成员变量说明

◆ duration

template<typename Type >
const float& GFt::AnimationParams< Type >::duration

动画持续时间(毫秒)

◆ initial

template<typename Type >
const Initial<Type>& GFt::AnimationParams< Type >::initial

动画初始值,可以是值或 getter 方法,若为 getter 方法则在动画开始时调用并作为初始值

◆ setter

template<typename Type >
const Setter<Type>& GFt::AnimationParams< Type >::setter

动画值的 setter 方法

◆ target

template<typename Type >
const Type& GFt::AnimationParams< Type >::target

动画目标值

◆ trans_func

template<typename Type >
TransFunc GFt::AnimationParams< Type >::trans_func

动画过渡函数