Example #1
0
        public void AddChild(SceneNode child)
        {
            if (child.Parent != null)
                throw new Exception("Ce noeud est déjà attaché à un autre Parent");

            child.Parent = this;
            this.Children.Add(child);
        }
Example #2
0
 public SceneGraph()
 {
     Root = new SceneNode();
 }
Example #3
0
 public void AttachToNode(SceneNode parent)
 {
     parent.AddChild(this);
 }