public static void Initialize(string backendType) { if (backendType == null) { throw new ArgumentNullException("backendType"); } if (engine != null) { return; } toolkit = Toolkit.Load(backendType, false); toolkit.SetActive(); Initialize(toolkit); }
public static void Initialize(string backendType) { if (engine != null) { return; } toolkit = Toolkit.Load(backendType, false); toolkit.SetActive(); engine = toolkit.Backend; mainLoop = new UILoop(toolkit); UIThread = System.Threading.Thread.CurrentThread; toolkit.EnterUserCode(); }