/// <summary>
        /// Metoda se postara o reinicializaci veci po resetu zarizeni
        /// </summary>
        public void DeviceReset()
        {
            Console.SetWindowXMargin(device.PresentationParameters.BackBufferWidth - 250);
            Console.SetDefaultWindowColor(Color.Red);

            Camera.SetCameraDevice(device);
            Camera.GetCameraInstance().SetFarDistance(currentFarDistance);

            Console.ConsoleSetDevice(device);

            if (occlusion != null)
            {
                occlusion.ReInit();
            }

            #region Inicializace textur, atp.
            shadowMap.ReInit();
            collisionMap.ReInit();
            #endregion

            sceneManager.SetCamera(Camera.GetCameraInstance());
            sceneManager.ReInitObjects();

            cursorPosition = initializator.GetResolution() * 0.5f;

            if (hud != null)
            {
                hud.onResolutionChange();
            }
        }