Esempio n. 1
0
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="game"></param>
		public TexturePump ( Game game ) : base( game ) 
		{
			Config		=	new TexturePumpConfig();
			pumpTask	= Task.Factory.StartNew(LoadingFunction);

			if (!Directory.Exists(cachePath)) Directory.CreateDirectory(cachePath);
		}
Esempio n. 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="game"></param>
        public TexturePump(Game game) : base(game)
        {
            Config   = new TexturePumpConfig();
            pumpTask = Task.Factory.StartNew(LoadingFunction);

            if (!Directory.Exists(cachePath))
            {
                Directory.CreateDirectory(cachePath);
            }
        }