/// <summary> /// Set SLGame State /// </summary> /// <param name="isshowcursor"></param> /// <param name="issizable"></param> public void SetSLGame(bool isshowcursor, bool issizable) { if (config == null) { config = new AssemblySettings(Assembly.GetAssembly(typeof(AssemblySettings))); } if (gdm == null) { gdm = new GraphicsDeviceManager(this); pp = new PresentationParameters(); input = new SLInput(); freecamera = new SLFreeCamera(); Content.RootDirectory = config["content"]; gdm.PreparingDeviceSettings += new EventHandler <PreparingDeviceSettingsEventArgs>(gdm_PreparingDeviceSettings); } this.IsMouseVisible = isshowcursor; this.Window.AllowUserResizing = issizable; }
/// <summary> /// Set SLGame State /// </summary> /// <param name="isshowcursor"></param> /// <param name="issizable"></param> public void SetSLGame(bool isshowcursor, bool issizable) { if (config == null) { config = new AssemblySettings(Assembly.GetAssembly(typeof(AssemblySettings))); } if (gdm == null) { gdm = new GraphicsDeviceManager(this); pp = new PresentationParameters(); input = new SLInput(); freecamera = new SLFreeCamera(); Content.RootDirectory = config["content"]; gdm.PreparingDeviceSettings += new EventHandler<PreparingDeviceSettingsEventArgs>(gdm_PreparingDeviceSettings); } this.IsMouseVisible = isshowcursor; this.Window.AllowUserResizing = issizable; }