public void Draw(SpriteBatch spriteBatch, Rectangle rect, Color inCol, Rotation90 aRotation) { Color finalColor = inCol.Multiply(color); if (modifiesRect) { drawMode.Draw(spriteBatch, new Rectangle(rect.X + (int)offset.X - padding, rect.Y + (int)offset.Y - padding, rect.Width + padding * 2, rect.Height + padding * 2), texture, finalColor, rotation.rotateBy(aRotation)); } else { drawMode.Draw(spriteBatch, rect, texture, finalColor, rotation.rotateBy(aRotation)); } }
public void Draw(SpriteBatch spriteBatch, Rectangle rect, Color col, Rotation90 aRotation) { image.Draw(spriteBatch, rect, col, rotation.rotateBy(aRotation)); }