Exemple #1
0
 //---------------------------------------------------------------------
 KeyFrame* VertexPoseKeyFrame::_clone(AnimationTrack* newParent) const
 {
     VertexPoseKeyFrame* newKf = OGRE_NEW VertexPoseKeyFrame(newParent, mTime);
     // By-value copy ok
     newKf->mPoseRefs = mPoseRefs;
     return newKf;
 }
    //--------------------------------------------------------------------------
    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);
        };

    }