} // StarEngine private static void StartupCommonCode() { #if (!XBOX) Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Handle otherwise unhandled exceptions that occur in Windows Forms threads. Application.ThreadException += UnhandledExceptions; Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException, true); #endif using (EngineManager engineManager = new EngineManager()) { engineManager.Run(); } } // StartupCommonCode
} // Resolution #endregion #endregion #region Toggle Fullscreen /// <summary> /// Toggles between full screen and windowed mode. /// </summary> public static void ToggleFullscreen() { EngineManager.ToggleFullScreen(); } // ToggleFullscreen