Gruppe22.Client.Window.Draw C# (CSharp) Method

Draw() public method

public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public override void Draw(GameTime gameTime)
        {
            _spriteBatch.Begin();
            _spriteBatch.Draw(_background, new Rectangle(_displayRect.X - 1, _displayRect.Y - 1, _displayRect.Width + 2, _displayRect.Height + 2), new Rectangle(39, 6, 1, 1), Color.White);
            _spriteBatch.Draw(_background, _displayRect, new Rectangle(39, 6, 1, 1), Color.Black);
            _spriteBatch.End();

            foreach (UIElement child in _children)
            {
                child.Draw(gameTime);
            }
        }