Ejemplo n.º 1
0
 //Constructor with handle
 public Instance(RenderableObject handle)
 {
     inverseNetTransformationMatrix = Matrix4x4.Identity;
     netTransformationMatrix = Matrix4x4.Identity;
     payload = handle;
     this.Material = null;
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 4
0
 public void AddObject(RenderableObject toAdd)
 {
     containedObjects.Add(toAdd);
 }