public Recellection()
        {
            tobiiController = TobiiController.GetInstance(this.Window.Handle);
            tobiiController.Init();
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            contentMngr = Content;
        }
Пример #2
0
        public Recellection()
        {
            tobiiController = TobiiController.GetInstance(this.Window.Handle);
            tobiiController.Init();
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            contentMngr = Content;
        }
Пример #3
0
 /// <summary>
 /// Provides singleton functionality
 /// </summary>
 /// <param name="xnaHandle"></param>
 /// <returns></returns>
 public static TobiiController GetInstance(IntPtr xnaHandle)
 {
     if (_instance == null)
     {
         //the xnaHandle was not used, so it has been removed
         //the constructor still takes it to not mess with other peoples code
         _instance = new TobiiController();
     }
     return(_instance);
 }
 /// <summary>
 /// Provides singleton functionality
 /// </summary>
 /// <param name="xnaHandle"></param>
 /// <returns></returns>
 public static TobiiController GetInstance(IntPtr xnaHandle)
 {
     if (_instance == null)
     {
         //the xnaHandle was not used, so it has been removed
         //the constructor still takes it to not mess with other peoples code
         _instance = new TobiiController();
     }
     return _instance;
 }