Пример #1
0
 public override void Dispose()
 {
     this.IsInitialized = false;
     if (this.Engine != null)
     {
         this.Engine.Dispose();
         this.Engine = null;
     }
 }
Пример #2
0
 public SunScatting(string name, string texture, World world)
     : base(name)
 {
     this.Engine = new ScattingEngine((float)InnerRadius, (float)OutterRadius, texture);
 }