Asteroids.OptionsText.Draw C# (CSharp) Метод

Draw() публичный Метод

public Draw ( SpriteBatch spriteBatch ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
Результат void
        public void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Begin();
            spriteBatch.Draw(txBackground, new Rectangle(0, 0, graphics.PreferredBackBufferWidth, graphics.PreferredBackBufferHeight), Color.White);
            spriteBatch.Draw(txBack, recBack, Color.White);
            spriteBatch.Draw(txSelectArrow, recSelectArrow, Color.White);
            spriteBatch.DrawString(spriteFont, textHeader, posHeaderConverted, col);
            spriteBatch.DrawString(spriteFont, textResolution, posResolutionConverted, col);
            spriteBatch.DrawString(spriteFont, textSound, posSoundConverted, col);
            spriteBatch.DrawString(spriteFont, textAlias, posAliasConverted, col);
            spriteBatch.DrawString(spriteFont, textAliasOn, posAliasOnConverted, col);
            spriteBatch.DrawString(spriteFont, textAliasOff, posAliasOffConverted, col);
            spriteBatch.End();
        }