/// <summary>
		/// Overridden.  Creats a scene graph with a <see cref="PCacheCamera">PCacheCamera</see>
		/// as the main camera.
		/// </summary>
		protected override PCamera CreateBasicScenegraph() {
			PRoot r = new PRoot();
			PLayer l = new PLayer();
			PCamera c = new PCacheCamera();

			r.AddChild(c); 
			r.AddChild(l); 
			c.AddLayer(l);
		
			return c;
		}
Beispiel #2
0
		/// <summary>
		/// Creates a basic PiccoloDirect3D scene graph.
		/// </summary>
		/// <returns>The main camera node in the new scene graph.</returns>
		/// <remarks>
		/// The scene graph will consist of  root node with two children, a layer and a
		/// camera.  Additionally, The camera will be set to view the layer.  Typically,
		/// you will want to add new nodes to the layer.
		/// </remarks>
		public static P3Camera CreateBasicScenegraph() {
			PRoot r = new PRoot();
			PLayer l = new PLayer();
			P3Camera c = new P3Camera();
		
			r.AddChild(c); 
			r.AddChild(l); 
			c.AddLayer(l);
		
			return c;
		}