public void Draw(GameTime gameTime, MyGraphicsClass graphics)
 {
     graphics.BeginWorld();
     foreach (GameObject obj in listManager.GetList <GameObject>())
     {
         obj.Draw(gameTime, graphics);
     }
     graphics.EndWorld();
 }
Example #2
0
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Wheat);

            myGraphicsObject.BeginWorld();
            backGround.Draw(gameTime, myGraphicsObject);
            myGraphicsObject.End();

            this.GameObjectCollection.Draw(gameTime, this.GraphicsObject);
        }