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;
        }
Exemple #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);
         }
     }
 }
Exemple #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;
        }
Exemple #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;
        }
Exemple #8
0
 public virtual void ApplySate(int currentKeyframeIndex, int nextKeyframeIndex, float lerpValue, ref JointState jointState)
 {
 }
Exemple #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;
        }