public override void Process(Action onFinish = null)
 {
     ThreadManager.RunTask(() => _proc(onFinish), x =>
     {
         foreach (KeyValuePair <FlScriptExecutionContext, Dictionary <Bitmap, byte[]> > textureUpdate in x)
         {
             foreach (KeyValuePair <Bitmap, byte[]> bytese in textureUpdate.Value)
             {
                 CLAPI.UpdateBitmap(CLAPI.MainThread, bytese.Key, bytese.Value);
             }
         }
     });
 }
Esempio n. 2
0
 public override void Process()
 {
     ThreadManager.RunTask(_proc, (o) => OnFinishQueue());
 }