/// <summary> /// Creates a new Kyoob game. /// </summary> private Game() { // handle when this game exits Exiting += OnGameExit; // create graphics device manager _graphics = new GraphicsDeviceManager( this ); // set content directory Content.RootDirectory = "content"; // load settings Settings = new GameSettings( this ); Settings.Load( SettingsFile ); // add our frame counter component _frameCounter = new FrameCounter( this ); Components.Add( _frameCounter ); }
/// <summary> /// Copies the given game settings object. /// </summary> /// <param name="other">The other settings.</param> private void Copy( GameSettings other ) { AntiAlias = other.AntiAlias; AntiAliasLevel = other.AntiAliasLevel; CullFrustum = other.CullFrustum; Windowed = other.Windowed; SmoothLighting = other.SmoothLighting; ViewDistance = other.ViewDistance; VSync = other.VSync; WindowHeight = other.WindowHeight; WindowResizable = other.WindowResizable; WindowWidth = other.WindowWidth; }