Example #1
0
 private void applyConfig()
 {
     if (Environment.CurrentManagedThreadId != AGSGame.UIThreadID)
     {
         _messagePump.Post(_ => applyConfigOnUiThread(), null);
     }
     else
     {
         applyConfigOnUiThread();
     }
 }
Example #2
0
 private void dispose(bool disposing)
 {
     if (_texture != 0)
     {
         _messagePump.Post(_ => _graphics.DeleteTexture(_texture), null);
     }
 }
Example #3
0
        private void disposeTexture()
        {
            var texture = _texture;

            if (texture != 0)
            {
                _messagePump.Post(_ => _graphics.DeleteTexture(texture), null);
            }
        }
Example #4
0
 public static void Load(IRenderMessagePump messagePump, AGSProject agsProj, AGSEditor editor)
 {
     editor.Project = agsProj;
     messagePump.Post(async _ => await load(agsProj, editor), null);
 }
Example #5
0
 public static void Load(IRenderMessagePump messagePump, AGSProject agsProj)
 {
     messagePump.Post(async _ => load(agsProj), null);
 }