BasicUI_MonoGame_Win_Desktop.Game1.Draw C# (CSharp) Метод

Draw() защищенный Метод

This is called when the game should draw itself.
protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime Provides a snapshot of timing values.
Результат void
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.SetRenderTarget(renderTarget);
            Color color = new Color();
            color.A = 255;
            color.R = (byte)random.Next(0, 255);
            color.G = (byte)random.Next(0, 255);
            color.B = (byte)random.Next(0, 255);
            GraphicsDevice.Clear(color);
            GraphicsDevice.SetRenderTarget(null);

            GraphicsDevice.Clear(Color.CornflowerBlue);

            basicUI.Draw(gameTime.ElapsedGameTime.TotalMilliseconds);
            debug.Draw();
            base.Draw(gameTime);
        }