/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { base.Initialize(); // TODO: use this.Content to load your game content here // Setting up Screen Resolution // Read more here: http://rbwhitaker.wikidot.com/changing-the-window-size graphics.PreferredBackBufferWidth = 640; graphics.PreferredBackBufferHeight = 480; graphics.IsFullScreen = false; graphics.ApplyChanges(); theline = new Line(); theline.width *= 3; theline.color = Color.GreenYellow; theline.startPoint = Vector2.Zero; theline.endPoint = new Vector2(10, 10); theGrid = new Grid2D(); xMark = new XMark(); xMark.Location = new Vector2(3, 5); xMark.LineColorLocal(Color.Red); xMark.LineWidthLocal(4f); }