コード例 #1
0
ファイル: EngineManager.cs プロジェクト: HungryBear/rayden
        public void Initialize()
        {
            if (this.Scene == null)
            {
                throw new ArgumentException("Scene is not initialized.");
            }

            this.IntersectionDevice =
                //new OpenClIntersectionDevice(scene, true, 0);
                new MegarayIntersectionDevice(Scene, null);
            //this.ImagingDevice = new ImageDevice(this.En)

        }
コード例 #2
0
ファイル: EngineManager.cs プロジェクト: HungryBear/rayden
 public void Dispose()
 {
     if (this.IntersectionDevice != null)
     {
         this.IntersectionDevice.Stop();
         this.IntersectionDevice.Dispose();
         this.IntersectionDevice = null;
     }
 }