protected override void Initialize() { _spriteBatch = new SpriteBatch(GraphicsDevice); _font = Content.Load <SpriteFont>("Fonts/Segoe14"); _mousePosition = Vector2.Zero; DrawCurrentGameObject = false; _selectedItemsDisplay = new SelectedItemsDisplay(GraphicsDevice); _lineTexture = new Texture2D(GraphicsDevice, 1, 1); _lineTexture.SetData <Color>(new Color[] { Color.White }); }
protected override void Initialize() { _spriteBatch = new SpriteBatch(GraphicsDevice); _font = Content.Load <SpriteFont>("Fonts/Segoe14"); _mousePosition = Vector2.Zero; DrawCurrentGameObject = false; _selectedItemsDisplay = new SelectedItemsDisplay(GraphicsDevice); _lineTexture = new Texture2D(GraphicsDevice, 1, 1); _lineTexture.SetData <Color>(new Color[] { Color.White }); _jointView = new DebugViewXNA(_gameObject.World); _jointView.DefaultShapeColor = Color.White; _jointView.SleepingShapeColor = Color.LightGray; _jointView.LoadContent(GraphicsDevice, new Viewport(0, 0, this.Size.Width, this.Size.Height), Content); _jointView.AppendFlags(DebugViewFlags.Joint); }