Example #1
0
        protected override void Initialise()
        {
            Camera3D camera = new Camera3D();

            //create the draw target.
            drawToScreen = new DrawTargetScreen(this, camera);
            drawToScreen.ClearBuffer.ClearColour = Color.CornflowerBlue;

            //NEW CODE
            //create the CameraOrbit object..
            //pass in the application update manager
            cameraOrbit = new CameraOrbit(camera, this.UpdateManager);

            //create the actor instance from Tutorial_10
            drawToScreen.Add(new Tutorial_10.Actor(this.Content, Vector3.Zero));
        }
		protected override void Initialise()
		{
			Camera3D camera = new Camera3D();

			//create the draw target.
			drawToScreen = new DrawTargetScreen(camera);
			drawToScreen.ClearBuffer.ClearColour = Color.CornflowerBlue;

			//NEW CODE
			//create the CameraOrbit object..
			//pass in the application update manager
			cameraOrbit = new CameraOrbit(camera, this.UpdateManager);

			//create the actor instance from Tutorial_10
			drawToScreen.Add(new Tutorial_10.Actor(this.Content, Vector3.Zero));
		}