Пример #1
0
 // Add a new game object.
 public void Add(GameObject obj)
 {
     if (!gameObjects.Contains(obj) && !addedGameObjects.Contains(obj))
     {
         addedGameObjects.Push(obj);
     }
 }
Пример #2
0
        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();
        }