public Sprite(SpriteInfo info, Rectangle rectangle) { rotation = 0; texture = WinAdapter.GetTexture(info.Content); frames = info.Framecount; DestRect = rectangle; origin = new Vector2(); if(texture == null) return; frameHeight = texture.Height; frameWidth = texture.Width / frames; }
public void SetImage(SpriteInfo info) { sprite = new Sprite(info, Rectangle); }