CarpMuffin.Sprites.Sprite.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
return void
        public virtual void Draw(SpriteBatch spriteBatch)
        {
            if (!IsVisible) return;
            if (Texture == null) return;
            spriteBatch.Draw(Texture, null, Bounds, SourceRectangle, Origin, Rotation, Scale, Tint, SpriteEffects);
        }