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(); } }
/// <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); } }
public FileSystemRenderCache(Path Path) { this.Path = Path; this.Path.MakeDirectory(); }
public StandardFileItem(Path Path) { this._Path = Path; }