Example #1
0
 private void StartMainLoop()
 {
     while (_run)
     {
         _syncContext.Send(p =>
         {
             RefreshSurfaceRequested?.Invoke();
         }, this);
         Thread.Sleep(DrawingThreadSleep);
     }
 }
 private void _engine_RefreshSurfaceRequested()
 {
     RefreshSurfaceRequested?.Invoke();
 }