#region File Description //----------------------------------------------------------------------------- // Keyframe.cs // // Microsoft XNA Community Game Platform // Copyright (C) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- #endregion #region Using Statements using System; using Microsoft.Xna.Framework; #endregion namespace SkinnedModel { /// /// Describes the position of a single bone at a single point in time. /// public class Keyframe { #region Fields int boneValue; TimeSpan timeValue; Matrix transformValue; #endregion /// /// Constructs a new keyframe object. /// public Keyframe(int bone, TimeSpan time, Matrix transform) { boneValue = bone; timeValue = time; transformValue = transform; } /// /// Gets the index of the target bone that is animated by this keyframe. /// public int Bone { get { return boneValue; } } /// /// Gets the time offset from the start of the animation to this keyframe. /// public TimeSpan Time { get { return timeValue; } } /// /// Gets the bone transform for this keyframe. /// public Matrix Transform { get { return transformValue; } } } }