Asteroids.TResolutionOption.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch, SpriteFont spriteFont ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
spriteFont Microsoft.Xna.Framework.Graphics.SpriteFont
return void
        public void Draw(SpriteBatch spriteBatch, SpriteFont spriteFont)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(txArrowLeft, recArrowLeft, col);
            spriteBatch.Draw(txArrowRight, recArrowRight, col);
            spriteBatch.Draw(txResolutionBar, recResolutionBar, col);
            spriteBatch.DrawString(spriteFont, arResolutions[arrayNumber][0], posResolutionBar, Color.Black);
            spriteBatch.End();
        }