Ejemplo n.º 1
0
        void Settings_SettingsChanged(object sender, Bonsai.Utils.Settings.SettingsEventArgs e)
        {
            int newDetail = Convert.ToInt32(Bonsai.Utils.Settings.GetValue("WaterRipplesDetail", "2"));

            if (WaterRipple.Detail != newDetail)
            {
                WaterRipple.SetDetail(newDetail);
            }
        }
Ejemplo n.º 2
0
 public override void Dispose()
 {
     foreach (WaterRipple ripple in ripples)
     {
         ripple.Dispose();
     }
     ripples.Clear();
     referenceCount--;
     if (referenceCount == 0)
     {
         WaterRipple.CleanUp();
     }
     base.Dispose();
 }