Exemplo n.º 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));
        }
Exemplo n.º 2
0
 public void DispatchToMainThread(Action action)
 {
     DualityApp.DisposeLater(new ActionDisposable(action));
 }
Exemplo n.º 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);
 }