コード例 #1
0
 public void Remove(Drawable3D drawable, bool dispose = false)
 {
     if (dispose)
     {
         drawable.Dispose();
     }
     drawable.Parent = null;
     drawable.Scene  = null;
 }
コード例 #2
0
        public void Add(Drawable3D drawable)
        {
            if (LoadState == LoadState.NotLoaded)
            {
                pendingChildren.Add(drawable);
            }
            else
            {
                if (drawable.IsLoaded)
                {
                    Debug.Assert(drawable.Parent == null, "May not add a drawable to multiple containers.");
                    drawable.Parent = this;
                    drawable.Scene  = Scene;
                }

                children.Add(drawable);
            }
        }
コード例 #3
0
 public void Remove(Drawable3D drawable)
 {
     Content.Add(drawable);
 }
コード例 #4
0
 public void Add(Drawable3D drawable)
 {
     Content.Add(drawable);
 }