public virtual void Initialize(string title, int width, int height, bool fullScreen, Surface surface) { if (Configuration == null) { Configuration = new DSystemConfiguration(title, width, height, fullScreen); } InitializeWindows(title); DApplication = new DApplication(); DApplication.Initialize(Configuration, RenderForm.Handle, surface); Timer = new DTimer(); Timer.Initialize(); }
public void Frame() { Timer.Frame2(); DApplication.Frame(Timer.FrameTime); }