Base class for scenes with 3D elements.
Exemplo n.º 1
0
 /// <summary>
 /// Adds a scene to the draw stack. The system will not call
 /// Draw on the scene but it will be initialized and given updates
 /// </summary>
 /// <param name="scene"></param>
 public void AddExternal(_3DAbstract scene)
 {
     External.Add(scene);
     if (this.Device != null)
     {
         scene.Initialize(this);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a scene to the draw stack. The system will not call
 /// Draw on the scene but it will be initialized and given updates
 /// </summary>
 /// <param name="scene"></param>
 public void AddExternal(_3DAbstract scene)
 {
     External.Add(scene);
     if (Device != null)
     {
         scene.Initialize(this);
     }
 }
Exemplo n.º 3
0
 public void Add(_3DAbstract scene)
 {
     Scenes.Add(scene);
     if (Device != null)
     {
         scene.Initialize(this);
     }
 }
Exemplo n.º 4
0
 public void Add(_3DAbstract scene)
 {
     Scenes.Add(scene);
     if (this.Device != null)
     {
         scene.Initialize(this);
     }
 }
Exemplo n.º 5
0
        private List<TreeNode> ExploreScene(_3DAbstract container)
        {
            var result = new List<TreeNode>();

            foreach (var child in container.GetElements())
            {
                var node = new TreeNode(child.ToString());
                ItemMap.Add(node, child);
                result.Add(node);
            }

            return result;
        }
Exemplo n.º 6
0
 public void Remove(_3DAbstract scene)
 {
     Scenes.Remove(scene);
 }
Exemplo n.º 7
0
 public void RemoveExternal(_3DAbstract scene)
 {
     External.Remove(scene);
 }
Exemplo n.º 8
0
 public void RemoveExternal(_3DAbstract scene)
 {
     External.Remove(scene);
 }
Exemplo n.º 9
0
 public void Remove(_3DAbstract scene)
 {
     Scenes.Remove(scene);
 }