Exemple #1
0
        private void OnFileChanged(object sender, FileSystemEventArgs e)
        {
            string path = Path.GetFileNameWithoutExtension(e.FullPath);

            lock (changedShaders) {
                changedShaders.Add(path);
            }

            DualityApp.DisposeLater(new ActionDisposable(ReloadChangedShaders));
        }
Exemple #2
0
 public void DispatchToMainThread(Action action)
 {
     DualityApp.DisposeLater(new ActionDisposable(action));
 }
Exemple #3
0
 /// <summary>
 /// Schedules this object for disposal at the end of the current update cycle.
 /// </summary>
 /// <param name="obj"></param>
 public static void DisposeLater(this IManageableObject obj)
 {
     DualityApp.DisposeLater(obj);
 }