Exemplo n.º 1
0
 public void ShutDown()
 {
     ShutdownWindows();
     Timer = null;
     Graphics?.ShutDown();
     Graphics = null;
     Input?.ShutDowm();
     Input         = null;
     Configuration = null;
 }
Exemplo n.º 2
0
        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);
        }