/// <summary> /// This is called when the screen should draw itself. /// </summary> public virtual void Draw(GameTime gameTime) { if (_debugViewEnabled) { ScreenManager.SpriteBatch.Begin(SpriteBlendMode.AlphaBlend); _physicsSimulatorView.Draw(ScreenManager.SpriteBatch); ScreenManager.SpriteBatch.End(); } }
/// <summary> /// This is called when the screen should draw itself. /// </summary> public virtual void Draw(GameTime gameTime) { ScreenManager.SpriteBatch.Begin(SpriteBlendMode.AlphaBlend); if (_mousePickSpring != null) { _lineBrush.Draw(ScreenManager.SpriteBatch, _mousePickSpring.Body.GetWorldPosition(_mousePickSpring.BodyAttachPoint), _mousePickSpring.WorldAttachPoint); } if (_debugViewEnabled) { _physicsSimulatorView.Draw(ScreenManager.SpriteBatch); } _border.Draw(ScreenManager.SpriteBatch); ScreenManager.SpriteBatch.End(); }