public override void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
 {
     Frame f = Frames[currentKeyframeIndex];
     jointState.TextureRect = f.TexRect;
     jointState.Texture = f.Texture;
     jointState.FlipState = f.FlipState;
     jointState.Origin = f.Origin;
     jointState.Visible = f.Visible;
 }
        public override void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
        {
            //jointState.Color = Color.Lerp(
            //    Frames[currentKeyframeIndex].Color,
            //    Frames[nextKeyframeIndex].Color,
            //    lerpValue);

            jointState.Color = Frames[currentKeyframeIndex].Color;
        }
        public override void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
        {
            //Transform2D.Lerp(
            //    ref Frames[currentKeyframeIndex].Transform,
            //    ref Frames[nextKeyframeIndex].Transform,
            //    lerpValue, ref jointState.Transform);

            jointState.Transform = Frames[currentKeyframeIndex].Transform;
        }
Example #4
0
 public void Draw(SpriteBatch spriteBatch)
 {
     for (int i = 0; i < Clip.DrawOrder.Length; ++i)
     {
         int        index = Clip.DrawOrder[i];
         JointState js    = JointStates[index];
         if (js.Texture != null && js.Visible)
         {
             spriteBatch.Draw(
                 js.Texture,
                 AbsoluteTransforms[index].Pos,
                 new Rectangle?(js.TextureRect),
                 js.Color,
                 AbsoluteTransforms[index].Rot,
                 js.Origin,
                 AbsoluteTransforms[index].Scale,
                 js.FlipState,
                 0.0f);
         }
     }
 }
Example #5
0
        public override void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
        {
            //Transform2D.Lerp(
            //    ref Frames[currentKeyframeIndex].Transform,
            //    ref Frames[nextKeyframeIndex].Transform,
            //    lerpValue, ref jointState.Transform);

            jointState.Transform = Frames[currentKeyframeIndex].Transform;
        }
Example #6
0
 public virtual void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
 {
 }
        public override void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
        {
            //jointState.Color = Color.Lerp(
            //    Frames[currentKeyframeIndex].Color,
            //    Frames[nextKeyframeIndex].Color,
            //    lerpValue);

            jointState.Color = Frames[currentKeyframeIndex].Color;
        }
Example #8
0
 public virtual void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
 {
 }
Example #9
0
        public override void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
        {
            Frame f = Frames[currentKeyframeIndex];

            jointState.TextureRect = f.TexRect;
            jointState.Texture     = f.Texture;
            jointState.FlipState   = f.FlipState;
            jointState.Origin      = f.Origin;
            jointState.Visible     = f.Visible;
        }