コード例 #1
0
ファイル: OgreAnimation.cpp プロジェクト: devxkh/FrankE
	//---------------------------------------------------------------------
	NodeAnimationTrack* Animation::createNodeTrack(void)
	{
		NodeAnimationTrack* ret = OGRE_NEW NodeAnimationTrack(this, mNodeTrackList.size());

		mNodeTrackList.push_back( ret );
		return ret;
	}
コード例 #2
0
ファイル: OgreAnimation.cpp プロジェクト: jjiezheng/pap_full
    //---------------------------------------------------------------------
    NodeAnimationTrack* Animation::createNodeTrack(unsigned short handle)
    {
        if (hasNodeTrack(handle))
        {
            OGRE_EXCEPT(Exception::ERR_DUPLICATE_ITEM, 
                "Node track with the specified handle " +
                StringConverter::toString(handle) + " already exists",
                "Animation::createNodeTrack");
        }

        NodeAnimationTrack* ret = OGRE_NEW NodeAnimationTrack(this, handle);

        mNodeTrackList[handle] = ret;
        return ret;
    }