Example #1
0
 //Constructor with handle
 public Instance(RenderableObject handle)
 {
     inverseNetTransformationMatrix = Matrix4x4.Identity;
     netTransformationMatrix = Matrix4x4.Identity;
     payload = handle;
     this.Material = null;
 }
Example #2
0
 /// <summary>
 /// Appends given render object to the end of the scene list
 /// </summary>
 /// <param name="o">Object to add</param>
 public void AddObjectToScene(RenderableObject o)
 {
     _renderList.Add(o);
 }
Example #3
0
 /// <summary>
 /// Appends object to the end of the instantiable objects list
 /// </summary>
 /// <param name="o">Object to add</param>
 public void AddObject(RenderableObject o)
 {
     _objectList.Add(o);
 }
 public void AddObject(RenderableObject toAdd)
 {
     containedObjects.Add(toAdd);
 }