예제 #1
0
 /// <summary>
 /// Adds the display object to the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to add.</param>
 /// <returns>Whether or not the display object was added.</returns>
 public bool Add(MeshBase displayObject)
 {
     if (!selfDrawingDisplayObjects.Contains(displayObject))
     {
         displayObject.Activate();
         selfDrawingDisplayObjects.Add(displayObject);
         return(true);
     }
     return(false);
 }
예제 #2
0
 /// <summary>
 /// Removes an object from the drawer.
 /// </summary>
 /// <param name="displayObject">Display object to remove.</param>
 /// <returns>Whether or not the object was present.</returns>
 public bool Remove(MeshBase displayObject)
 {
     return(selfDrawingDisplayObjects.Remove(displayObject));
 }