/// <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); }
/// <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; }