예제 #1
0
        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
        }
예제 #2
0
 protected override void Draw(GameTime gameTime)
 {
     _screenManager.OnEarlyDraw(gameTime);
     _renderer.Draw();
     _screenManager.OnLateDraw(gameTime);
     _notificationBarOverlay.Draw(_spriteBatch);
     base.Draw(gameTime);
 }
예제 #3
0
 public void OnLateDraw(GameTime gameTime)
 {
     GameInstance.GraphicsDevice.Clear(Color.LightGray);
     _mainOverlay.Draw(GameInstance.GetService <SpriteBatch>());
 }
예제 #4
0
 public override void OnDraw(float elapsedTime)
 {
     base.OnDraw(elapsedTime);
     _mainOverlay.Draw(Game.SpriteBatch);
     _splash.Draw(Game.SpriteBatch);
 }
예제 #5
0
        public void OnLateDraw(GameTime gameTime)
        {
            GameInstance.GraphicsDevice.Clear(Color.Black);

            _overlay.Draw(GameInstance.GetService <SpriteBatch>());
        }