Exemple #1
0
 public Sprite(AnimationStrip animationStrip, Vector?size = null, Vector?origin = null, Mask?maskShape = null)
 {
     this.AnimationStrip = animationStrip;
     this.Size           = size ?? animationStrip.SubImage(0).Size;
     this._origin        = origin;
     this._maskShape     = maskShape ?? Mask.Automatic;
 }
Exemple #2
0
 public SubTexture SubImage(double dt)
 => AnimationStrip.SubImage(dt);