예제 #1
0
    //--------------------------------------------------------------------------
    KeyFrame* VertexAnimationTrack::createKeyFrameImpl(Real time)
    {
        switch(mAnimationType)
        {
        default:
        case VAT_MORPH:
            return OGRE_NEW VertexMorphKeyFrame(this, time);
        case VAT_POSE:
            return OGRE_NEW VertexPoseKeyFrame(this, time);
        };

    }
예제 #2
0
파일: OgreKeyFrame.cpp 프로젝트: Kanma/Ogre
 //---------------------------------------------------------------------
 KeyFrame* VertexMorphKeyFrame::_clone(AnimationTrack* newParent) const
 {
     VertexMorphKeyFrame* newKf = OGRE_NEW VertexMorphKeyFrame(newParent, mTime);
     newKf->mBuffer = mBuffer;
     return newKf;
 }