Esempio n. 1
0
        private void GraphicsDeviceService_DeviceDisposing(object sender, EventArgs e)
        {
            if (GameSystems.State == GameSystemState.ContentLoaded)
            {
                UnloadContent();
            }

            resumeManager.OnDestroyed();

            GraphicsDevice = null;
        }
Esempio n. 2
0
        private void graphicsDeviceService_DeviceDisposing(object sender, EventArgs e)
        {
            // TODO: Unload all assets
            //Content.UnloadAll();

            if (GameSystems.State == GameSystemState.ContentLoaded)
            {
                UnloadContent();
            }

            resumeManager.OnDestroyed();

            GraphicsDevice = null;
        }
Esempio n. 3
0
 private void graphicsDeviceService_DeviceResetting(object sender, EventArgs e)
 {
     // TODO: ResumeManager?
     //throw new NotImplementedException();
     resumeManager.OnDestroyed();
 }