GraceFt v2.3
开源图形引擎 EGE(Easy Graphics Engine) 的高层封装库
 
载入中...
搜索中...
未找到
GFt::AnimationManager类 参考

动画管理器 更多...

#include <Animation.hpp>

Public 成员函数

void registerAnimation (AnimationAbstract *animation)
 注册动画对象
 
void unregisterAnimation (AnimationAbstract *animation)
 注销动画对象
 
void updateAll (const TimePoint &now)
 更新所有动画对象
 

静态 Public 成员函数

static AnimationManagergetInstance ()
 获取动画管理器实例
 

详细描述

动画管理器

此类是线程安全的

成员函数说明

◆ getInstance()

AnimationManager & GFt::AnimationManager::getInstance ( )
static

获取动画管理器实例

◆ registerAnimation()

void GFt::AnimationManager::registerAnimation ( AnimationAbstract * animation)

注册动画对象

参数
animation动画对象

◆ unregisterAnimation()

void GFt::AnimationManager::unregisterAnimation ( AnimationAbstract * animation)

注销动画对象

参数
animation动画对象

◆ updateAll()

void GFt::AnimationManager::updateAll ( const TimePoint & now)

更新所有动画对象

参数
now当前时间