Beispiel #1
0
        public static void Main(string[] Args)
        {
            Path work = Path.WorkingDirectory;
            _Cache = work["Cache"];
            Path data = work["Data"];
            DirectoryAllocator alloc = new DirectoryAllocator(data);

            Application.EnableVisualStyles();
            MainForm mf = new MainForm();
            mf.Icon = Icon;
            mf.Text = "DUIP";
            mf.Show();
            DateTime lastupdate = DateTime.Now;

            while (mf.Visible)
            {
                WorldDisplay view = mf.WorldDisplay;
                view.Render();
                DateTime now = DateTime.Now;
                double updatetime = (now - lastupdate).TotalSeconds;
                lastupdate = now;
                view.Update(updatetime);

                Application.DoEvents();
            }
        }
Beispiel #2
0
 /// <summary>
 /// Loads a texture from a file on the filesystem.
 /// </summary>
 public static Texture Load(MPath Path)
 {
     using (Bitmap bm = new Bitmap(Path))
     {
         return Create(bm);
     }
 }
Beispiel #3
0
 public FileSystemRenderCache(Path Path)
 {
     this.Path = Path;
     this.Path.MakeDirectory();
 }
Beispiel #4
0
 public StandardFileItem(Path Path)
 {
     this._Path = Path;
 }