// Add a new game object. public void Add(GameObject obj) { if (!gameObjects.Contains(obj) && !addedGameObjects.Contains(obj)) { addedGameObjects.Push(obj); } }
protected override void LoadContent() { model = new Landscape(this); sun = new Sun(this, (Landscape) model); // Create an input layout from the vertices base.LoadContent(); }
protected override void LoadContent() { // currently, the only thing that is rendered model = new Landscape(this, this.camera); base.LoadContent(); }