Editor.AmphibianGameControl.Draw C# (CSharp) Method

Draw() protected method

protected Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Gray);

            //_engine.Draw(gameTime);

            Form1 form = MainForm as Form1;

            /*Vector2 offset = new Vector2(-form.CanvasHScroll.Value, -form.CanvasVScroll.Value);
            if (this.Width > map.PixelsWide) {
                offset.X = (this.Width - map.PixelsWide) / 2;
            }
            if (this.Height > map.PixelsHigh) {
                offset.Y = (this.Height - map.PixelsHigh) / 2;
            }*/

            //Matrix tranf = Matrix.CreateTranslation(offset.X, offset.Y, 0) * Matrix.CreateScale(_zoom);

            //_engine.SpriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, null, null, tranf);

            //_viewport.Draw();
            //_engine.SpriteBatch.End();
        }