public IAccelerator CreateAccelerator(SceneGraph sg, double time, List<RenderItem> items) { switch(this.type) { case AcceleratorType.Grid: return new GridAccelerator(items); case AcceleratorType.Naive: return new NaiveAccelerator(items); case AcceleratorType.BinSpaceTree: return new BSPAccelerator(items); default : return new OctTreeAccelerator(items); } }
public SceneDescription(SceneGraph sg) { this.sg = sg; }