示例#1
0
/**
 * \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);
}
示例#2
0
/**
 * \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);
}
示例#3
0
bool CXFileEntity::LoadXFile(const std::string &filename,int startAnimation)
{
	if (!Load(filename))
	{
		return false;
	}

	SetAnimationSet(startAnimation);

	return true;
}