public static void Initialize(Toolkit toolkit) { engine = toolkit.Backend; mainLoop = new UILoop(toolkit); UIThread = System.Threading.Thread.CurrentThread; toolkit.EnterUserCode(); }
public static void Initialize(Toolkit tk) { if (toolkit == null) { toolkit = tk; } engine = tk.Backend; mainLoop = new UILoop(tk); UIThread = System.Threading.Thread.CurrentThread; tk.EnterUserCode(); }
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 (); }
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(); }