#include <SkeletonAnimManager.h>
◆ CSkeletonAnimManager()
CSkeletonAnimManager::CSkeletonAnimManager |
( |
CColladaManager & |
colladaManager | ) |
|
◆ ~CSkeletonAnimManager()
CSkeletonAnimManager::~CSkeletonAnimManager |
( |
| ) |
|
◆ BuildAnimation()
std::unique_ptr< CSkeletonAnim > CSkeletonAnimManager::BuildAnimation |
( |
const VfsPath & |
pathname, |
|
|
const CStr8 & |
name, |
|
|
const CStr8 & |
ID, |
|
|
int |
frequency, |
|
|
float |
speed, |
|
|
float |
actionpos, |
|
|
float |
actionpos2, |
|
|
float |
soundpos |
|
) |
| |
Load raw animation frame animation from given file, and build an animation specific to this model.
BuildAnimation: load raw animation frame animation from given file, and build a animation specific to this model.
- Parameters
-
pathname | animation file to load |
name | animation name (e.g. "idle") |
ID | specific ID of the animation, to sync with props |
frequency | influences the random choices |
speed | animation speed as a factor of the default animation speed |
actionpos | offset of 'action' event, in range [0, 1] |
actionpos2 | offset of 'action2' event, in range [0, 1] |
sound | offset of 'sound' event, in range [0, 1] |
- Returns
- new animation, or NULL on error
◆ GetAnimation()
◆ NONCOPYABLE()
◆ m_Animations
◆ m_ColladaManager
The documentation for this class was generated from the following files: