コード例 #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
ファイル: SkinnedData.cpp プロジェクト: BSkin/SQUADALA
/**
 * \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;
}