protected override void Draw(DxTime time) { base.Draw(time); Update(); BufferBmp.CopyFromMemory(Buff, Width * 4); RenderTarget2D.DrawBitmap(BufferBmp, 1f, BitmapInterpolationMode.Linear); }
protected override void Draw(DemoTime time) { base.Draw(time); if (gameState.State == EGameState.MainMenu) { mainMenu.Draw(time); return; } if (gameState.State == EGameState.Game) { base.Draw(time); RenderTarget2D.Clear(Color4.Black); if (time.ElapseTime < 2) { RenderTarget2D.DrawBitmap(_infoGamePanel, new SharpDX.RectangleF(RESOLUTION.Width / 2 - _infoGamePanel.Size.Width / 2, RESOLUTION.Height / 2 - _infoGamePanel.Size.Height / 2, _infoGamePanel.Size.Width, _infoGamePanel.Size.Height), 1.0f, BitmapInterpolationMode.Linear); } BuildingsFactory.Draw(time); MobsFactory.Draw(time); _myCharacter.Draw(time); GameInterface.Draw(time); _timeLastDraw = time.ElapseTime; return; } }
protected override void Draw(DemoTime time) { base.Draw(time); // Draw the TextLayout RenderTarget2D.DrawBitmap(_bitmap, 1.0f, BitmapInterpolationMode.Linear); }
public override void Draw(DemoTime time) { base.Draw(time); if (_drawRange && _bitmapRange != null) { RenderTarget2D.DrawBitmap(_bitmapRange, new RectangleF(_position.X - _range / 2, Position.Y - _range / 2, _range, _range), 1.0f, BitmapInterpolationMode.Linear); } _bullets.ForEach(delegate(CommonBullet Bullet) { Bullet.Draw(time); }); }
public void Draw() { RenderTarget2D.DrawBitmap(_bitmap, 1.0f, BitmapInterpolationMode.Linear); }