/** * \brief Go to the next animation * \author Keith Ditchburn \date 18 July 2005 */ void CXFileEntity::NextAnimation() { unsigned int newAnimationSet=m_currentAnimationSet+1; if (newAnimationSet>=m_numAnimationSets) newAnimationSet=0; SetAnimationSet(newAnimationSet); }
/** * \brief Go to the next animation * \author Keith Ditchburn \date 18 July 2005 */ void SkinnedData::NextAnimation() { unsigned int newAnimationSet=currentAnimationSet+1; if (newAnimationSet>=numAnimationSets) newAnimationSet=0; SetAnimationSet(newAnimationSet); }
bool CXFileEntity::LoadXFile(const std::string &filename,int startAnimation) { if (!Load(filename)) { return false; } SetAnimationSet(startAnimation); return true; }