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

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