예제 #1
0
파일: Scene.cs 프로젝트: mkonicek/raytracer
 /// <summary>
 /// Loads scene from file using given loader, that can read the file.
 /// </summary>
 /// <param name="fileName">File with the scene.</param>
 /// <param name="loader">Proper loader that can read the file.</param>
 public void LoadFrom(string fileName, ISceneLoader loader)
 {
     this.Clear();
     loader.AddToSceneFrom(this, fileName);
 }