public void RenderSpriteS(Sprite sprite, Rectangle srs, Rectangle dest, Color tint, int scale = 1, double degrees = 0.0) { spriteBatch.Push(); if (Math.Abs(degrees) > Consts.Eps) { spriteBatch.Translate(dest.X, dest.Y); spriteBatch.Rotate(degrees); spriteBatch.Translate(-dest.X, -dest.Y); } spriteBatch.SetBlend(tint); spriteBatch.Scale(scale * 100, scale * 100); spriteBatch.Draw(surface, srs, dest); spriteBatch.Pop(); }
public void RenderSpriteS(Sprite sprite, int x, int y, Color tint, int scale = 1, double degrees = 0.0) { RenderSpriteS(sprite, sprite.Rect, new Rectangle(x, y, sprite.Width, sprite.Height), tint, scale, degrees); }
public void RenderSpriteS(Sprite sprite, Rectangle dest, Color tint, int scale = 1, double degrees = 0.0) { RenderSpriteS(sprite, sprite.Rect, dest, tint, scale); }