Exemplo n.º 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);
        };

    }
Exemplo n.º 2
0
 //---------------------------------------------------------------------
 KeyFrame* VertexMorphKeyFrame::_clone(AnimationTrack* newParent) const
 {
     VertexMorphKeyFrame* newKf = OGRE_NEW VertexMorphKeyFrame(newParent, mTime);
     newKf->mBuffer = mBuffer;
     return newKf;
 }