Exemplo n.º 1
0
        public AnimationPlayer(SkinningData skinningData, Dictionary<XnaScrapId, AbstractAnimationClip> clips)
            : base(new TimeSpan(), new XnaScrapId(), clips)
        {
            if (skinningData == null)
                throw new ArgumentNullException("skinningData");

            skinningDataValue = skinningData;

            boneTransforms = new Matrix[skinningData.BindPose.Count];
            worldTransforms = new Matrix[skinningData.BindPose.Count];
            skinTransforms = new Matrix[skinningData.BindPose.Count];
        }
Exemplo n.º 2
0
 public AnimationPlayerFactory(SkinningData data)
 {
     m_data = data;
     foreach (KeyValuePair<String, AnimationClip> keyValue in m_data.AnimationClips)
     {
         XnaScrapId animId = new XnaScrapId(keyValue.Key);
         keyValue.Value.ClipId = animId;
         m_clips.Add(animId, keyValue.Value);
     }
 }