Example #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();
            }
        }
Example #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);
     }
 }
Example #3
0
 public FileSystemRenderCache(Path Path)
 {
     this.Path = Path;
     this.Path.MakeDirectory();
 }
Example #4
0
File: File.cs Project: dzamkov/DUIP
 public StandardFileItem(Path Path)
 {
     this._Path = Path;
 }