public void ShutDown() { ShutdownWindows(); Timer = null; Graphics?.ShutDown(); Graphics = null; Input?.ShutDowm(); Input = null; Configuration = null; }
public virtual bool Initialize(string title, int width, int height, bool vSync, bool fullScreen, int testTimeSeconds) { bool result = false; Configuration = new DSystemConfiguration(title, width, height, fullScreen, vSync); InitializeWindows(title); RenderForm.BackColor = Color.Black; Input = new DInput(); result = Input.Initialize(); Graphics = new DGraphics(); result = Graphics.Initialize(Configuration); Timer = new DTimer(); result = Timer.Initialize(); return(result); }