Пример #1
0
        public static void Initialize(Toolkit toolkit)
        {
            engine   = toolkit.Backend;
            mainLoop = new UILoop(toolkit);

            UIThread = System.Threading.Thread.CurrentThread;

            toolkit.EnterUserCode();
        }
Пример #2
0
        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();
        }
Пример #3
0
		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 ();
		}
Пример #4
0
        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();
        }