public override void Initialize() { this._windowCenter = new Vector2(this.Game.Window.ClientBounds.Width / 2, this.Game.Window.ClientBounds.Height / 2); this._xAxis = new LineParametric(this._windowCenter, this._windowCenter + new Vector2(1.0f, 0.0f)); this._yAxis = new LineParametric(this._windowCenter, this._windowCenter + new Vector2(0.0f, 1.0f)); this._axes.Add(this._xAxis); this._axes.Add(this._yAxis); }
public override void Initialize() { this._windowCenter = new Vector2(this.Game.Window.ClientBounds.Width / 2, this.Game.Window.ClientBounds.Height / 2); this._xAxis = new LineParametric(this._windowCenter, this._windowCenter + new Vector2(1.0f, 0.0f)); this._yAxis = new LineParametric(this._windowCenter, this._windowCenter + new Vector2(0.0f, 1.0f)); this._spriteBatch = new SpriteBatch(this.Game.GraphicsDevice); this._whiteTex = new Texture2D(this.Game.GraphicsDevice, 1, 1); this._whiteTex.SetData(new Color[] { Color.White }); this._destRect = new Rectangle(); base.Initialize(); }