finish chicken nugget anime loader
This commit is contained in:
@@ -28,6 +28,10 @@ namespace basalt::shared::anime_loader {
|
||||
math::Quaternion next_rotation; ///< 后一帧的摄像机旋转。
|
||||
};
|
||||
|
||||
struct AnimeLoaderConfig {
|
||||
|
||||
};
|
||||
|
||||
enum class AnimeLoaderStatus {
|
||||
Ready,
|
||||
Loaded,
|
||||
@@ -45,15 +49,19 @@ namespace basalt::shared::anime_loader {
|
||||
virtual ~IAnimeLoader();
|
||||
|
||||
public:
|
||||
void load();
|
||||
/**
|
||||
* @brief
|
||||
* @remarks
|
||||
* \li 重写时只允许往frames里插入数据。
|
||||
* \li 重写时务必保证frames里插入的数据大于2个,且初始节点的Key总是0。动画帧个数必须大于4。
|
||||
*/
|
||||
virtual void load(AnimeLoaderConfig&& config);
|
||||
KeyFrameSpan tick();
|
||||
|
||||
protected:
|
||||
virtual void internal_load();
|
||||
|
||||
protected:
|
||||
AnimeLoaderStatus status;
|
||||
math::Index time, last_index;
|
||||
AnimeLoaderConfig config;
|
||||
math::Index time;
|
||||
std::map<math::Index, KeyFrame> frames;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user