public void OnLateDraw(GameTime gameTime) { _collisionManager.Draw(ActiveWorld.Player.Camera); _renderStatisticsOverlay.Draw(_spriteBatch); bool anyActive; lock (_uiElements) { anyActive = _uiElements.Count > 0 && _uiElements.Any(e => e.IsActive); } if (anyActive) { _spriteBatch.Begin(); lock (_uiElements) { _uiElements.ForEach(e => { if (e.IsActive) { e.Draw(gameTime); } }); } _spriteBatch.End(); } #if DEBUG_RENDERING _sceneRenderer.LateDebugDraw3D(); #endif }
protected override void Draw(GameTime gameTime) { _screenManager.OnEarlyDraw(gameTime); _renderer.Draw(); _screenManager.OnLateDraw(gameTime); _notificationBarOverlay.Draw(_spriteBatch); base.Draw(gameTime); }
public void OnLateDraw(GameTime gameTime) { GameInstance.GraphicsDevice.Clear(Color.LightGray); _mainOverlay.Draw(GameInstance.GetService <SpriteBatch>()); }
public override void OnDraw(float elapsedTime) { base.OnDraw(elapsedTime); _mainOverlay.Draw(Game.SpriteBatch); _splash.Draw(Game.SpriteBatch); }
public void OnLateDraw(GameTime gameTime) { GameInstance.GraphicsDevice.Clear(Color.Black); _overlay.Draw(GameInstance.GetService <SpriteBatch>()); }